/* Discussion and moderator screens share the compact desktop forum controls. */
body.discussion, body.staff {
    --edge: #c9cdd1;
    --link: #315d82;
    --muted: #687581;
    --key: linear-gradient(#fff, #f3f4f5 48%, #e1e4e6);
    background: #f7f8f8;
    color: #24292c;
    font: 15px/1.5 Arial, Helvetica, sans-serif;
}
:is(.discussion,.staff) main {
    width: 97%; max-width: 1680px; box-sizing: border-box;
    padding: 18px clamp(10px,1.7vw,28px) 36px;
}
:is(.discussion,.staff) main h1 {border-bottom:1px solid var(--edge);font-size:clamp(22px,2.2vw,30px)}
:is(.discussion,.staff) main a:not(.button) {color:var(--link)}
.discussion main .thread-post {
    grid-template-columns:clamp(165px,15%,218px) minmax(0,1fr);
    margin:10px 0; border:1px solid var(--edge);border-radius:0;background:#fff;
}
.thread-post .thread-bar {padding:7px 13px;background:linear-gradient(#f2f3f4,#e6e8ea);border-bottom:1px solid #d5d9dc;min-height:34px}
.thread-bar strong {font-weight:500;font-size:18px}
.thread-bar>div {font-size:13px;color:var(--muted)}
.thread-bar input {width:15px;height:15px;accent-color:#537797}
.thread-bar button.thread-share {border:0;background:none;color:#596e80;padding:2px 3px;font-size:12px}
.thread-share::before {content:"↗";font-weight:bold;font-size:16px;margin-right:3px}
.discussion main .thread-post .author-card {
    background:#fff;border-right:1px solid #eff0f0;padding:17px 12px;color:#434b50;
    font-size:14px;gap:5px;
}
.thread-post .author-photo,.thread-post .author-initial {
    box-sizing:border-box;width:104px;height:104px;object-fit:contain;object-position:center;
    border:1px solid #b6bdc2;box-shadow:0 1px 3px #0002;border-radius:1px;
}
.thread-post .author-initial {background:linear-gradient(#77838c,#4b555d);color:white}
.thread-post .author-count,.thread-post .warn-count {font-size:13px;color:var(--muted)}
.discussion main .thread-post .post-main {padding:16px 18px 13px;min-height:225px}
.thread-post .post-header {border:0;color:var(--muted);font:13px/1.5 Arial,sans-serif;padding:0}
.thread-post .post-body {font:16px/1.55 Arial,sans-serif;color:#202427}
.thread-post .thread-actions {column-gap:7px;row-gap:5px;align-items:center}
.thread-actions>form:first-of-type:not(.thread-edit-launch) {flex-basis:100%;text-align:right;margin-bottom:8px}
.thread-actions>.thread-edit-launch {flex:0 0 auto}
:is(.discussion,.staff) main :is(button,.post-key,.button),
.staff main .staff-tabs>a {
    box-sizing:border-box;display:inline-block;border:1px solid #b4bcc2;border-radius:3px;
    background:var(--key);color:#293a48;font:normal 14px/1.3 Arial, sans-serif;text-decoration:none;
    padding:5px 11px;box-shadow:inset 0 1px #fff,0 1px 0 #0001;cursor:pointer;vertical-align:middle;
}
:is(.discussion,.staff) main :is(button,.post-key,.button):hover,.staff main .staff-tabs>a:hover {
    background:linear-gradient(#fff,#e3edf4);border-color:#879cac;
}
:is(.discussion,.staff) main :is(button,.post-key,.button):active {background:#dce4ea;box-shadow:inset 0 1px 2px #0002}
.discussion main .thread-actions button[aria-pressed] {background:linear-gradient(#dbe7f2,#9fb8d1);border-color:#91abc2;color:#253f56;font-size:13px}
.thread-actions button[aria-pressed]::before {content:"✓";margin-right:5px}
.discussion main .thread-actions button[aria-pressed=true] {background:#627f99;color:white}
.thread-actions>details>summary {display:inline-block;list-style:none;color:var(--link);cursor:pointer}
.thread-actions>details>summary::-webkit-details-marker {display:none}
.thread-actions>details>summary:hover,.thread-actions a:not(.post-key):hover {text-decoration:underline}
.thread-actions>details[open] {padding:8px 11px;background:#f2f5f7;border:1px solid var(--edge)}
.thread-actions>details[open] form {padding-top:6px}
.thread-post .inline-editor {background:#f0f3f6;border:1px solid #c1cbd2;border-radius:1px;padding:3px}
.inline-editor .inline-tools {display:block;padding:0;background:#e6ecf1}
.inline-tools .tool-row {display:flex;align-items:center;gap:2px;flex-wrap:wrap;padding:3px 6px;border-bottom:1px solid #cbd4dd}
.inline-tools label {display:inline-flex;gap:5px;align-items:center;color:#465564;font-size:12px;margin:0 6px 0 0}
.inline-tools select {background:#fbfbfc;border:1px solid #adb8c0;padding:3px;color:#374854;border-radius:2px}
.discussion main .tool-row button {
    background:transparent;border:1px solid transparent;box-shadow:none;padding:0;min-width:29px;height:27px;
    font:16px/1 Georgia,serif;color:#34465a;text-align:center;
}
.discussion main .tool-row button:hover,.discussion main .tool-row button:focus-visible {border-color:#9caebb;background:linear-gradient(#fff,#d5e0e9)}
.tool-row [data-command=bold] {font-weight:bold!important}
.tool-row [data-command=italic] {font-style:italic!important}
.tool-row [data-command=underline] {text-decoration:underline}
.tool-row [data-command=strikeThrough] {text-decoration:line-through}
.tool-row [data-command^=justify] {font-size:0!important}
.tool-row [data-command^=justify]::before {
    content:"";display:inline-block;width:15px;height:12px;
    background:linear-gradient(#475969 0 0) 0 0/100% 2px no-repeat,linear-gradient(#475969 0 0) var(--align,0%) 50%/62% 2px no-repeat,linear-gradient(#475969 0 0) 0 100%/100% 2px no-repeat;
}
.tool-row [data-command=justifyCenter] {--align:50%}
.tool-row [data-command=justifyRight] {--align:100%}
.discussion main button:disabled {opacity:.45;cursor:default}
.thread-post .inline-canvas,.thread-post .inline-editor textarea {margin:0;min-height:clamp(230px,31vh,400px);background:white;border:1px solid #b9c3cb;padding:10px;resize:vertical;overflow:auto}
.thread-post .inline-editor.expanded :is(.inline-canvas,textarea) {min-height:60vh}
.inline-editor .inline-options {background:#f3f5f7;border-bottom:1px solid #d3dade;font-size:13px;color:#515e68}
.inline-options label {display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}
.inline-options input[name=reason] {width:min(290px,100%);height:28px;border:1px solid #adb4ba;background:#fff}
.inline-editor .inline-actions {background:#e8ebee;padding:10px}
.discussion main .inline-actions>button:first-child,.staff main form button[type=submit],.staff main .mod-form button:not([type=button]) {
    background:linear-gradient(#48545f,#2b333b);color:white;border-color:#303943;
}
.inline-actions a {font-weight:600;color:#963c36!important}
.discussion main [hidden],.staff main [hidden] {display:none}
.staff .navigation-page,.staff .moderation-shell {max-width:none}
.staff main .staff-tabs {background:#e9edf0;gap:4px;padding:6px;border:1px solid var(--edge)}
.staff main .staff-tabs>a[aria-current=page] {background:#445a6b;color:white;box-shadow:none}
.staff main .staff-directory,.staff main .mod-card,.staff main .compose-card {border:1px solid var(--edge);border-radius:2px}
.staff main .mod-card>h2:first-child,.staff main .navigation-card:nth-child(even) {background:#edf0f2}
.staff main :is(input:not([type=checkbox],[type=radio],[type=hidden]),textarea,select) {border:1px solid #abb5be;background:white;border-radius:2px;max-width:100%}
:is(.discussion,.staff) main :focus-visible {outline:2px solid #3976a3;outline-offset:2px}
@media(max-width:700px) {
    :is(.discussion,.staff) main {width:100%;padding:12px 8px 24px}
    .discussion main .thread-post {grid-template-columns:minmax(0,1fr)}
    .discussion main .thread-post .author-card {border-right:none;border-bottom:1px solid #e8ebed;padding:7px 10px;gap:5px 10px}
    .thread-post .author-photo,.thread-post .author-initial {width:45px;height:45px}
    .discussion main .thread-post .post-main {padding:10px;min-height:0}
    .thread-post .thread-actions {justify-content:flex-end}
    .thread-actions>details[open] input {max-width:100%}
    .inline-tools .tool-row {padding:3px}
    .discussion main .tool-row button {min-width:32px;height:32px}
    .inline-options label {min-width:0}
}

.discussion main .thread-bar .thread-share {
    font-size:12px;padding:3px 4px;color:#596e80;background:transparent;border:0;box-shadow:none;
}
.thread-share::before {
    content:"";display:inline-block;width:15px;height:15px;vertical-align:-2px;margin-right:4px;
    background:radial-gradient(circle at 3px 7.5px,currentColor 0 2px,transparent 2.5px),radial-gradient(circle at 12px 3px,currentColor 0 2px,transparent 2.5px),radial-gradient(circle at 12px 12px,currentColor 0 2px,transparent 2.5px),linear-gradient(153deg,transparent 43%,currentColor 46% 54%,transparent 57%) 4px 3px/8px 5px no-repeat,linear-gradient(27deg,transparent 43%,currentColor 46% 54%,transparent 57%) 4px 7px/8px 5px no-repeat;
}
.discussion main .tool-row :is([data-command=createLink],[data-command=unlink]) {font-size:0;position:relative}
.tool-row :is([data-command=createLink],[data-command=unlink])::before,
.tool-row :is([data-command=createLink],[data-command=unlink])::after {
    content:"";position:absolute;width:9px;height:5px;border:1.6px solid currentColor;border-radius:4px;transform:rotate(-35deg);
    left:calc(50% - 9px);top:calc(50% - 1px);
}
.tool-row :is([data-command=createLink],[data-command=unlink])::after {left:calc(50% - 2px);top:calc(50% - 5px)}
.tool-row [data-command=unlink]::after {border-style:dashed}
.thread-post .inline-editor .inline-options label {display:inline-flex;flex-flow:row wrap;align-items:center;width:auto;font-weight:normal}
.thread-post .inline-editor .inline-options input[type=checkbox] {display:inline-block;width:15px;height:15px;margin:0 2px 0 0;flex:none}
.thread-post .inline-editor .inline-options input[name=reason] {margin:0;flex:0 1 270px;min-width:100px}
.staff-directory .navigation-card {position:relative;padding-left:52px}
.staff-directory .navigation-card::before {
    content:"";position:absolute;left:17px;top:17px;width:19px;height:14px;border:1px solid #738c9e;border-radius:2px;
    background:linear-gradient(#e0eaf1,#aec3d3);box-shadow:inset 0 2px #edf3f6,0 1px 1px #0001;
}
.staff-directory .navigation-card::after {
    content:"";position:absolute;left:18px;top:14px;width:9px;height:3px;border:1px solid #738c9e;border-bottom:0;border-radius:2px 2px 0 0;background:#cbdbe6;
}
.staff-directory .navigation-card:has(a[href*="view=log"])::before {
    height:18px;width:14px;background:repeating-linear-gradient(to bottom,#fff 0 3px,#b6c8d6 3px 4px) content-box,#ebf1f5;padding:2px;
}
.staff-directory .navigation-card:has(a[href*="view=log"])::after {display:none}
.tool-dialog{border:1px solid #9faeba;border-radius:4px;padding:15px;max-width:min(460px,92vw);width:100%;background:#f5f7f8;color:#273744}
.tool-dialog::backdrop{background:#1b28384d}.tool-dialog h3{margin:0 0 12px}.tool-dialog label{display:grid;gap:3px;margin:6px 0}
.tool-dialog input,.tool-dialog textarea,.tool-dialog select{width:100%;box-sizing:border-box;font:inherit}.tool-dialog-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:12px}
.discussion main .tool-row [data-command=files]{width:auto;padding:0 5px;font:13px Arial,sans-serif}
.discussion main .tool-row :is([data-command=error],[data-command=info],[data-command=warning],[data-command=success]){border-radius:3px;height:20px;min-width:20px;margin:0 2px;color:#fff}
.tool-row [data-command=error]{background:#ab4942!important}.tool-row [data-command=info]{background:#427bab!important}.tool-row [data-command=warning]{background:#ac790b!important}.tool-row [data-command=success]{background:#547b43!important}
.post-body [class^=thread-note-]{padding:.6em .9em;margin:.55em 0;border-left:4px solid;background:#f4f6f7}.thread-note-error{color:#93382e}.thread-note-info{color:#23547d}.thread-note-warning{color:#775012}.thread-note-success{color:#376439}
.editor-media-token{display:inline-block;border:1px solid #b2c3cf;color:#344d61;background:#eef3f6;padding:1px 5px}.thread-image img{display:block;max-width:100%;height:auto}
.thread-face-arial{font-family:Arial,sans-serif}.thread-face-georgia{font-family:Georgia,serif}.thread-face-tahoma{font-family:Tahoma,sans-serif}.thread-face-times-new-roman{font-family:"Times New Roman",serif}.thread-face-trebuchet-ms{font-family:"Trebuchet MS",sans-serif}.thread-face-verdana{font-family:Verdana,sans-serif}.thread-face-courier-new{font-family:"Courier New",monospace}
.thread-size-1{font-size:8pt}.thread-size-2{font-size:10pt}.thread-size-3{font-size:12pt}.thread-size-4{font-size:14pt}.thread-size-5{font-size:18pt}.thread-size-6{font-size:24pt}.thread-size-7{font-size:36pt}
.thread-color-000000{color:#000!important}.thread-color-555555{color:#555!important}.thread-color-990000{color:#900!important}.thread-color-cc6600{color:#c60!important}.thread-color-997700{color:#970!important}.thread-color-227744{color:#274!important}.thread-color-1766aa{color:#1766aa!important}.thread-color-7034a0{color:#7034a0!important}
