/* Posting-only layer. No changes to forum index, navigation or post display. */
.corp-composer {
    --composer-bg:var(--corp-surface,#15130f);
    --composer-panel:var(--corp-surface-secondary,#1c1914);
    --composer-border:var(--corp-border,#44331d);
    --composer-accent:var(--corp-bronze,#b78032);
    --composer-text:var(--corp-text,#e8e1d4);
    --composer-muted:var(--corp-text-muted,#a69b89);
    min-width:0; max-width:100%; color:var(--composer-text);
}
.corp-editor-host {
    --composer-bg:var(--corp-surface,#15130f);
    --composer-panel:var(--corp-surface-secondary,#1c1914);
    --composer-border:var(--corp-border,#44331d);
    --composer-accent:var(--corp-bronze,#b78032);
    --composer-text:var(--corp-text,#e8e1d4);
    --composer-muted:var(--corp-text-muted,#a69b89);
}
.corp-composer *, .corp-composer *::before, .corp-composer *::after { box-sizing:border-box; }
.corp-composer__heading { padding:20px 22px 16px; border:1px solid var(--composer-border); border-left:3px solid var(--composer-accent); background:var(--composer-panel); }
.corp-composer__eyebrow { font-size:11px; font-weight:700; letter-spacing:.15em; color:var(--composer-accent); }
.corp-composer__heading h1 { margin:6px 0; font-size:24px; line-height:1.3; }
.corp-composer__heading p, .corp-composer__hint { margin:4px 0 12px; color:var(--composer-muted); font-size:13px; }
.corp-composer__field { margin:0; padding:20px 22px; background:var(--composer-bg); border:1px solid var(--composer-border); border-top:0; }
.corp-composer__field > label { display:block; font-size:15px; font-weight:600; margin-bottom:10px; }
.corp-composer__subject { display:flex; gap:10px; align-items:stretch; }
.corp-composer__subject input { flex:1 1 auto; min-width:0; }
.corp-composer__subject select { flex:0 1 220px; max-width:100%; }
.corp-composer input.textbox, .corp-composer textarea, .corp-composer select {
    max-width:100%; border:1px solid var(--composer-border); border-radius:3px; background:#181510;
    color:var(--composer-text); padding:11px 12px; font:16px/1.5 "Segoe UI",Arial,sans-serif;
}
.corp-composer textarea[name="message"] { width:100%; min-height:250px; resize:vertical; }
.corp-composer textarea[name="to"], .corp-composer textarea[name="bcc"] { width:100% !important; }
.corp-composer input[type="checkbox"], .corp-composer input[type="radio"] { accent-color:var(--composer-accent); min-width:18px; min-height:18px; }
.corp-composer :is(input,textarea,select,button,summary,a):focus-visible { outline:2px solid #d09a48; outline-offset:3px; }
.corp-composer__settings { margin:14px 0; border:1px solid var(--composer-border); background:var(--composer-bg); }
.corp-composer__settings summary { min-height:48px; padding:13px 16px; cursor:pointer; font-size:14px; font-weight:600; }
.corp-composer__settings[open] summary { border-bottom:1px solid var(--composer-border); }
.corp-composer__options { width:100%; border:0; }
.corp-composer__options td { padding:12px 16px; vertical-align:top; }
.corp-composer__options td:first-child { width:190px; }
.corp-composer__settings label { display:inline-block; padding:6px 0; line-height:1.5; }
.corp-composer__login:empty, .corp-composer__captcha:empty, .corp-composer__attachments:empty { display:none; }
.corp-composer__attachments { margin-top:18px; }
.corp-composer .corp-attachment-table { width:100%; table-layout:fixed; }
.corp-composer .corp-attachment-table td { white-space:normal !important; overflow-wrap:anywhere; padding:12px; }
.corp-composer input[type="file"] { max-width:100%; width:100%; font-size:14px; margin-top:8px; }
.corp-composer #upload_bar { background:var(--composer-accent) !important; }
.corp-composer #dropzone { border-color:var(--composer-border) !important; padding:28px 12px !important; color:var(--composer-muted); }
.corp-composer__actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; padding:18px 0; text-align:start !important; }
.corp-composer .button, .corp-editor__more { min-height:44px; border-radius:3px; padding:10px 16px; font-size:14px; font-weight:600; cursor:pointer; }
.corp-composer .button { border:1px solid var(--composer-border); background:var(--composer-panel); color:var(--composer-text); }
.corp-composer :is([name="submit"],[name="submitbutton"],#quick_reply_submit) { background:#b78032; border-color:#b78032; color:#17110a; order:3; }
.corp-composer [name="previewpost"], .corp-composer [name="preview"] { order:1; }
.corp-composer [name="savedraft"], .corp-composer [name="saveasdraft"] { order:2; }
.corp-composer .button:hover { border-color:#d09a48; filter:brightness(1.08); }
.corp-preview:empty { display:none; }
.corp-preview__notice { display:inline-block; margin:4px 10px; color:#ddc6a2; font-size:13px; font-weight:400; }
.corp-editor-host .corp-editor { max-width:100%; width:100% !important; border:1px solid var(--composer-border); border-radius:3px; background:#181510; box-shadow:none; overflow:visible; }
.corp-editor-host .corp-editor iframe { width:100% !important; max-width:100%; margin:0; display:block; background:#181510; }
.corp-editor-host .corp-editor textarea { max-width:100%; margin:0; padding:16px; background:#181510; color:var(--composer-text); font:15px/1.65 Consolas,monospace; border:0; }
.corp-editor-host .sceditor-toolbar,
.corp-composer .sceditor-toolbar {
    position:relative; z-index:20; display:flex !important; flex-wrap:nowrap !important; align-items:center;
    gap:6px; min-height:54px; padding:6px 8px; overflow:visible !important; border:0;
    border-bottom:1px solid #654a29; background:linear-gradient(180deg,#211b14 0%,#17130f 100%);
    box-shadow:inset 0 1px 0 #ffffff0a,inset 0 -1px 0 #0008;
}
.corp-editor-host .corp-editor__primary {
    display:flex; flex:1 1 auto; min-width:0; align-items:center; gap:4px; overflow-x:auto; overflow-y:hidden;
    scrollbar-width:thin; scrollbar-color:#695031 transparent; overscroll-behavior-inline:contain;
}
.corp-editor-host .corp-editor__group { display:flex; flex:0 0 auto; align-items:center; gap:2px; margin:0; padding:0; border:0; background:none; box-shadow:none; }
.corp-editor-host .corp-editor__primary > .corp-editor__group + .corp-editor__group::before {
    content:""; display:block; width:1px; height:22px; margin:0 3px; background:var(--composer-border);
}
.corp-editor-host .sceditor-button,
.corp-composer .sceditor-button {
    position:relative; float:none !important; display:inline-flex !important; flex:0 0 40px; align-items:center;
    justify-content:center; width:40px !important; height:40px !important; margin:0 !important; padding:0 !important;
    overflow:visible !important; border:1px solid #5c4529 !important; border-radius:4px; background:#282117 !important;
    color:#eee3d1 !important; box-shadow:inset 0 1px 0 #ffffff0d,0 1px 1px #0008 !important; text-indent:0 !important;
    transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease;
}
.corp-editor-host .sceditor-button .corp-editor__icon {
    display:flex !important; width:22px !important; height:22px !important; margin:0 !important; padding:0 !important;
    align-items:center; justify-content:center; background:none !important; color:inherit; filter:none !important;
}
.corp-editor-host .corp-editor__icon svg { display:block; width:23px; height:23px; overflow:visible; fill:none; stroke:currentColor; stroke-width:2.15; stroke-linecap:round; stroke-linejoin:round; }
.corp-editor-host .corp-editor__icon circle[r="1"] { fill:currentColor; stroke:none; }
.corp-editor-host .corp-editor__icon .corp-editor__icon-accent { stroke:var(--composer-accent); stroke-width:2.5; }
.corp-composer .sceditor-button > div:not(.corp-editor__icon) {
    opacity:.96; filter:brightness(0) saturate(100%) invert(92%) sepia(13%) saturate(365%) hue-rotate(351deg) brightness(100%) contrast(91%) !important;
}
.corp-composer .sceditor-toolbar:not([data-corp-toolbar]) { overflow-x:auto !important; overflow-y:hidden !important; }
.corp-composer .sceditor-toolbar:not([data-corp-toolbar]) .sceditor-group {
    display:flex; flex:0 0 auto; float:none; margin:0 2px; border-color:#4f3b24; background:transparent; box-shadow:none;
}
.corp-editor-host .sceditor-button:hover,
.corp-editor-host .sceditor-button:focus-visible,
.corp-composer .sceditor-button:hover,
.corp-composer .sceditor-button:focus-visible { color:#fff7ea !important; background:#3b2d1c !important; border-color:#c18a3b !important; box-shadow:inset 0 1px 0 #ffffff17,0 0 0 1px #b7803238 !important; }
.corp-editor-host .sceditor-button.active,
.corp-editor-host .sceditor-button[aria-pressed="true"],
.corp-composer .sceditor-button.active,
.corp-composer .sceditor-button[aria-pressed="true"] { color:#171009 !important; background:#c08a3b !important; border-color:#e0ad61 !important; box-shadow:inset 0 1px 0 #ffe1ad66,0 0 0 1px #b7803266 !important; }
.corp-editor-host .sceditor-button.disabled,
.corp-composer .sceditor-button.disabled { opacity:.5; cursor:not-allowed; }
.corp-editor-host .corp-editor__primary .sceditor-button[data-tooltip]::after {
    content:attr(data-tooltip); position:absolute; top:calc(100% + 8px); left:50%; z-index:1000; display:block;
    min-width:max-content; max-width:190px; padding:6px 8px; border:1px solid #695031; border-radius:3px;
    background:#100e0b; color:var(--composer-text); font:12px/1.2 "Segoe UI",Arial,sans-serif; text-align:center;
    white-space:normal; pointer-events:none; opacity:0; visibility:hidden; transform:translate(-50%,-3px);
    transition:opacity 140ms ease,transform 140ms ease,visibility 140ms ease;
}
.corp-editor-host .corp-editor__primary .sceditor-button[data-tooltip]:is(:hover,:focus-visible)::after {
    opacity:1; visibility:visible; transform:translate(-50%,0);
}
.corp-editor__more-wrap { position:relative; flex:0 0 auto; }
.corp-editor__more {
    display:inline-flex; min-width:72px; min-height:40px !important; height:40px; align-items:center; justify-content:center;
    gap:7px; padding:0 12px !important; border:1px solid #8c6433; border-radius:4px;
    background:#302517; color:#f4e7d2; font:700 13px/1 "Segoe UI",Arial,sans-serif; cursor:pointer;
    transition:color 160ms ease,background-color 160ms ease,border-color 160ms ease;
}
.corp-editor__more:hover, .corp-editor__more:focus-visible, .corp-editor__more[aria-expanded="true"] {
    border-color:#d09a48; background:#49351f; color:#fff4e3;
}
.corp-editor__more svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; transition:transform 160ms ease; }
.corp-editor__more[aria-expanded="true"] svg { transform:rotate(180deg); }
.corp-editor__menu {
    position:absolute; top:calc(100% + 7px); right:0; z-index:700; width:min(360px,calc(100vw - 24px));
    max-height:min(420px,calc(100vh - 90px)); overflow:auto; padding:7px; border:1px solid #695031;
    border-radius:4px; background:#181510; color:var(--composer-text); box-shadow:0 14px 34px #000b;
}
.corp-editor__menu[hidden], .corp-editor__more-wrap[hidden] { display:none !important; }
.corp-editor__menu-section { margin:0; padding:7px; }
.corp-editor__menu-section + .corp-editor__menu-section { border-top:1px solid var(--composer-border); }
.corp-editor__menu-section h3 { margin:0 0 6px; color:var(--composer-muted); font:700 10px/1.3 "Segoe UI",Arial,sans-serif; letter-spacing:.12em; text-transform:uppercase; }
.corp-editor__menu-tools, .corp-editor__menu-tools .corp-editor__group { display:flex; flex-wrap:wrap; gap:4px; }
.corp-editor__menu .sceditor-button { flex-basis:40px; }
.corp-editor__menu .sceditor-button::after { display:none !important; }
.corp-editor-dropdown { box-sizing:border-box; max-width:calc(100vw - 20px); padding:12px; background:#211c15 !important; color:#e8e1d4 !important; border:1px solid #695031 !important; box-shadow:0 8px 24px #0008; }
.corp-editor-dropdown a { color:#e8e1d4 !important; min-width:36px; min-height:36px; border-radius:3px; }
.corp-editor-dropdown a:hover, .corp-editor-dropdown a:focus-visible { background:#3a2c1c !important; color:#f1d19e !important; }
.corp-editor-dropdown :is(input,select,textarea) { box-sizing:border-box; max-width:100%; min-height:44px; background:#15130f; color:#e8e1d4; border:1px solid #695031; padding:8px; }
.corp-editor-dropdown :is(input,select,textarea):focus { border-color:#b78032; box-shadow:0 0 0 2px #b7803238; }
.corp-editor-dropdown :is(.button,input[type="button"],input[type="submit"]) { min-height:40px; padding:8px 13px; border:1px solid #695031; border-radius:3px; background:#332719; color:#e8e1d4; font-weight:600; cursor:pointer; }
.corp-editor-dropdown .sceditor-emoticons { max-width:330px; max-height:260px; overflow:auto; }
.corp-editor-dropdown .sceditor-emoticons a { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; }
.corp-editor-dropdown :focus-visible { outline:2px solid #d09a48; outline-offset:2px; }
.corp-composer--pm > table { width:100%; table-layout:fixed; }
.corp-composer__pm-fields { width:100%; table-layout:fixed; }
.corp-composer__pm-fields td { padding:14px; overflow-wrap:anywhere; }
.corp-composer__pm-fields td:first-child { width:170px; }
.corp-composer__pm-fields input[name="subject"] { width:100%; }
.corp-composer__quick-table { width:100%; table-layout:fixed; }
.corp-composer__quick-table td { white-space:normal; overflow-wrap:anywhere; }
.corp-composer__quick-table td > div[style*="95%"] { width:100% !important; padding:0 !important; }
.corp-composer--quick textarea[name="message"] { min-height:180px; }
.corp-composer--quick td.corp-composer__actions { display:table-cell; padding:16px; }
@media (max-width:600px) {
    .corp-editor-host .sceditor-toolbar, .corp-composer .sceditor-toolbar { min-height:56px; gap:4px; padding:6px; }
    .corp-editor-host .corp-editor__primary { gap:1px; scrollbar-width:none; }
    .corp-editor-host .corp-editor__primary::-webkit-scrollbar { display:none; }
    .corp-editor-host .corp-editor__primary > .corp-editor__group + .corp-editor__group::before { display:none; }
    .corp-editor-host .sceditor-button, .corp-composer .sceditor-button { flex-basis:44px; width:44px !important; height:44px !important; }
    .corp-editor__more { min-width:68px; min-height:44px !important; height:44px; padding:0 10px !important; }
    .corp-editor__menu { top:calc(100% + 6px); width:min(360px,calc(100vw - 20px)); max-height:min(70vh,420px); }
    .corp-editor__menu .sceditor-button { flex-basis:44px; }
}
@media (max-width:760px) {
    .corp-composer__heading, .corp-composer__field { padding:16px; }
    .corp-composer__subject { flex-direction:column; }
    .corp-composer__subject select { flex-basis:auto; width:100%; }
    .corp-composer__options, .corp-composer__options tbody, .corp-composer__options tr, .corp-composer__options td,
    .corp-composer__pm-fields, .corp-composer__pm-fields tbody, .corp-composer__pm-fields tr, .corp-composer__pm-fields td,
    .corp-composer__quick-table, .corp-composer__quick-table tbody, .corp-composer__quick-table thead,
    .corp-composer__quick-table tr, .corp-composer__quick-table td,
    .corp-composer .corp-attachment-table, .corp-composer .corp-attachment-table tbody,
    .corp-composer .corp-attachment-table tr, .corp-composer .corp-attachment-table td { display:block; width:100% !important; min-width:0 !important; }
    .corp-composer--pm > table, .corp-composer--pm > table > tbody,
    .corp-composer--pm > table > tbody > tr, .corp-composer--pm > table > tbody > tr > td { display:block; width:100%; min-width:0; }
    .corp-composer__options td:first-child { padding-bottom:0; }
    .corp-composer__pm-fields td, .corp-composer__quick-table td { padding:12px; }
    .corp-composer__actions { justify-content:stretch; }
    .corp-composer__actions .button { flex:1 1 140px; margin:0; }
}
@media (prefers-reduced-motion:reduce) {
    .corp-composer *, .corp-editor-host .corp-editor * { transition:none !important; }
}
