#modal:has(#new-form){width:min(820px,calc(100% - 32px));max-height:min(92vh,980px);overflow-y:auto;padding:34px 38px;background:radial-gradient(ellipse at 50% 0%,#352515 0,#17120d 46%,#120f0b 100%);border-color:#80603a;box-shadow:0 28px 120px #000,0 0 0 1px #24190d}
.topic-composer-heading{position:relative;margin:0 0 26px;padding:0 0 20px;border-bottom:1px solid #49371f}
.topic-composer-heading:after{content:'✦';position:absolute;right:4px;top:1px;color:#b99456;font-size:28px;text-shadow:0 0 22px #a16e2d}
.topic-composer-heading .eyebrow{color:#c3a36c;margin-bottom:9px}
.topic-composer-heading h2{font:32px/1.2 Georgia,serif;color:#f0dfbd}
.topic-composer-heading>p:last-child{max-width:620px;margin:9px 0 0;color:#b4a184;font-size:14px;line-height:1.65}
.topic-category-picker{border:0;padding:0;margin:0 0 24px;min-width:0}
.topic-category-picker legend{font-size:14px;font-weight:700;color:#d3bd92;margin-bottom:11px}
.topic-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.topic-category-card{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr) 18px;align-items:center;gap:11px;min-height:83px;padding:12px;border:1px solid #49371f;border-radius:4px;background:linear-gradient(145deg,#211910,#15110d);cursor:pointer;transition:border-color .18s,background .18s,transform .18s,box-shadow .18s}
.topic-category-card:hover{border-color:#9b7946;transform:translateY(-2px);background:linear-gradient(145deg,#302313,#1b140d)}
.topic-category-card:has(input:checked){border-color:#d2ab60;background:linear-gradient(145deg,#3a2a16,#21180e);box-shadow:inset 0 0 0 1px #8c6934,0 0 18px #a6773025}
.topic-category-card input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.topic-category-card input:focus-visible+.topic-category-icon{outline:2px solid #e5c47d;outline-offset:3px}
.topic-category-icon{display:grid;place-items:center;width:42px;height:46px;border:1px solid #654c29;background:radial-gradient(circle at 50% 30%,#473318,#20170d 75%);clip-path:polygon(0 0,100% 0,100% 82%,50% 100%,0 82%);color:#ddb96d;font-size:22px}
.topic-category-copy{display:block;min-width:0;pointer-events:none}
.topic-category-copy strong{display:block;color:#e8d6b3;font:17px Georgia,serif}
.topic-category-copy small{display:block;margin-top:5px;color:#a9987a;font-size:11px;line-height:1.4}
.topic-category-check{display:grid;place-items:center;width:17px;height:17px;border:1px solid #67502e;border-radius:50%;color:transparent;font-size:11px;pointer-events:none}
.topic-category-card:has(input:checked) .topic-category-check{border-color:#d7b266;background:#d7b266;color:#20170c}
.topic-composer-form .form-field{margin:18px 0;color:#d0bb92}
.topic-composer-form .form-field input,.topic-composer-form .form-field textarea{margin-top:9px;border-color:#544129;background:#0f0d0a;padding:13px 14px;color:#eee3d1}
.topic-composer-form .form-field input{height:49px;font-size:16px}
.topic-composer-form .form-field textarea{min-height:205px;line-height:1.7;font-size:15px;resize:vertical}
.topic-composer-form .form-field input:focus,.topic-composer-form .form-field textarea:focus{border-color:#c09a58;box-shadow:0 0 0 3px #be91421a;outline:0}
.topic-composer-form .form-field small{display:block;margin-top:6px;color:#99886a;font-size:11px;font-weight:400;line-height:1.5}
.topic-composer-form .similar-topics{margin:-7px 0 16px}
.topic-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;padding-top:17px;border-top:1px solid #403018}
.topic-composer-tip{display:flex;align-items:flex-start;gap:9px;margin:0;max-width:420px;color:#a89778;font-size:12px;line-height:1.6}
.topic-composer-tip span{color:#d6b36b;font-size:17px}
.topic-composer-footer .gold{min-width:220px;min-height:48px;box-shadow:0 5px 22px #b7863833}
.topic-composer-form>.form-error{margin:10px 0 0}
@media(max-width:700px){#modal:has(#new-form){padding:27px 20px}.topic-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.topic-category-card{grid-template-columns:37px minmax(0,1fr) 16px;gap:8px;min-height:76px;padding:9px}.topic-category-icon{width:36px;height:40px;font-size:19px}.topic-category-copy strong{font-size:15px}.topic-category-copy small{font-size:10px}.topic-composer-footer{align-items:stretch;flex-direction:column}.topic-composer-footer .gold{width:100%;min-width:0}.topic-composer-form .form-field textarea{min-height:175px}}
@media(max-width:390px){.topic-category-grid{grid-template-columns:1fr}.topic-category-card{min-height:67px}.topic-composer-heading h2{font-size:28px}}
.topic-owner-actions{display:flex;justify-content:flex-end;gap:9px;margin:0 0 11px}.topic-owner-actions button{padding:7px 12px;font-size:12px;color:#d8c59f;border-color:#57442a;background:#19140e}.topic-owner-actions button:hover{border-color:#b38b4b;color:#f0d69f}.topic-owner-actions .topic-delete-action{color:#d5a293;border-color:#634039}.topic-owner-actions .topic-delete-action:hover{border-color:#b87360;background:#291711}.topic-owner-actions~.detail-title{margin-bottom:15px}
#modal:has(#topic-edit-form){width:min(920px,calc(100% - 32px));max-height:min(94vh,1050px);overflow-y:auto;padding:34px 38px;background:radial-gradient(ellipse at 50% 0%,#352515 0,#17120d 46%,#120f0b 100%);border-color:#80603a;box-shadow:0 28px 120px #000,0 0 0 1px #24190d}
#topic-edit-form .rich-editor{margin:18px 0 21px;border:1px solid #574128;border-radius:4px;overflow:hidden;background:#100e0b}
#topic-edit-form .rich-editor-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px;border-bottom:1px solid #46351f;background:linear-gradient(100deg,#261c10,#17120d)}
#topic-edit-form .rich-editor-toolbar button{min-width:36px;height:34px;padding:5px 10px;border:1px solid transparent;border-radius:3px;background:transparent;color:#d9c49c;font-size:13px}
#topic-edit-form .rich-editor-toolbar button:hover,#topic-edit-form .rich-editor-toolbar button[aria-pressed="true"]{border-color:#74572f;background:#342615;color:#f0d18c}
#topic-edit-form .rich-toolbar-spacer{flex:1}
#topic-edit-form .rich-editor-label{margin:0;padding:0;color:#d0bb92}
#topic-edit-form .rich-editor-input{display:block;width:100%;min-height:260px;margin:0;padding:18px;border:0;border-radius:0;resize:vertical;background:#100e0b;color:#eee3d1;font:15px/1.75 Arial,sans-serif}
#topic-edit-form .rich-editor-input:focus{outline:2px solid #a8844b;outline-offset:-2px}
#topic-edit-form .rich-editor-foot{display:flex;justify-content:space-between;gap:12px;padding:8px 13px;border-top:1px solid #352817;color:#927f60;font-size:11px}
#topic-edit-form .rich-editor-foot b{color:#d5b775}
#topic-edit-form .rich-editor-preview{padding:18px 20px;border-top:1px solid #574128;background:linear-gradient(145deg,#20180f,#15110c);color:#d9c8a8;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
#topic-edit-form .rich-editor-preview[hidden]{display:none}
.post-body a,.rich-editor-preview a{color:#e0bd79;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.forum-quote{margin:14px 0;padding:12px 16px;border-left:3px solid #b18b4f;background:#20180f;color:#c9b58e}
.forum-spoiler{display:block;margin:12px 0;border:1px solid #564027;border-radius:3px;background:#19140e}
.forum-spoiler summary{padding:8px 12px;color:#d7b66f;cursor:pointer;font-size:13px;font-weight:700}
.forum-spoiler>div{padding:12px;border-top:1px solid #44331e;color:#d6c7aa}
@media(max-width:700px){#modal:has(#topic-edit-form){padding:26px 19px}.topic-editor-toolbar{gap:3px}#topic-edit-form .rich-editor-input{min-height:210px;padding:13px}#topic-edit-form .rich-toolbar-spacer{display:none}}
#modal:has(#new-form),#modal:has(#topic-edit-form){width:min(920px,calc(100% - 32px));max-height:min(94vh,1040px);padding:32px 38px}
:is(#new-form,#topic-edit-form) .rich-editor{margin:10px 0 0;border:1px solid #574128;border-radius:5px;overflow:hidden;background:#100e0b;box-shadow:0 12px 28px #0003}
:is(#new-form,#topic-edit-form) .rich-editor-toolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:9px 11px;border-bottom:1px solid #46351f;background:linear-gradient(100deg,#261c10,#17120d)}
:is(#new-form,#topic-edit-form) .rich-editor-toolbar button{min-width:36px;height:34px;padding:5px 10px;border:1px solid transparent;border-radius:4px;background:transparent;color:#d9c49c;font-size:13px;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
:is(#new-form,#topic-edit-form) .rich-editor-toolbar button:hover,:is(#new-form,#topic-edit-form) .rich-editor-toolbar button[aria-pressed="true"]{border-color:#74572f;background:#342615;color:#f0d18c}
:is(#new-form,#topic-edit-form) .rich-editor-toolbar .rich-photo-button{border-color:#74572f;background:#21190f;color:#e4c67f}
:is(#new-form,#topic-edit-form) .rich-editor-toolbar .rich-photo-button:disabled{opacity:.55;cursor:wait}
:is(#new-form,#topic-edit-form) .rich-editor-toolbar button:focus-visible,:is(#new-form,#topic-edit-form) .rich-editor-toolbar select:focus-visible{outline:2px solid #e3c477;outline-offset:2px}
:is(#new-form,#topic-edit-form) .rich-toolbar-divider{height:25px;border-left:1px solid #534127;margin:0 3px}
:is(#new-form,#topic-edit-form) .rich-color-control{display:flex;align-items:center;gap:7px;padding:0 5px;color:#bdaa87;font-size:11px}
:is(#new-form,#topic-edit-form) .rich-color-control select{height:31px;max-width:96px;padding:4px 23px 4px 7px;border:1px solid #544129;border-radius:3px;background:#15110c;color:#e6d5b4;font-size:11px}
:is(#new-form,#topic-edit-form) .rich-toolbar-spacer{flex:1}
:is(#new-form,#topic-edit-form) .rich-editor-label{display:block;margin:0;padding:0;color:#d0bb92}
:is(#new-form,#topic-edit-form) .rich-editor-input{display:block;width:100%;min-height:245px;margin:0;padding:17px 18px;border:0;border-radius:0;resize:vertical;background:#100e0b;color:#eee3d1;font:15px/1.75 Arial,sans-serif}
:is(#new-form,#topic-edit-form) .rich-editor-input:focus{outline:2px solid #a8844b;outline-offset:-2px}
:is(#new-form,#topic-edit-form) .rich-editor-foot{display:flex;justify-content:space-between;gap:12px;padding:8px 13px;border-top:1px solid #352817;color:#927f60;font-size:11px}
:is(#new-form,#topic-edit-form) .rich-editor-foot b{color:#d5b775}
:is(#new-form,#topic-edit-form) .rich-editor-preview{min-height:110px;padding:18px 20px;border-top:1px solid #574128;background:linear-gradient(145deg,#20180f,#15110c);color:#d9c8a8;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
:is(#new-form,#topic-edit-form) .rich-editor-preview[hidden]{display:none}
.rich-preview-card{max-width:720px;margin:0 auto;padding:18px 20px;border:1px solid #49371f;border-radius:4px;background:linear-gradient(145deg,#211910,#15110d)}
.rich-preview-card h3{margin:10px 0 14px;color:#f0dfbd;font:23px/1.3 Georgia,serif}
.rich-preview-body{color:#d9c8a8;line-height:1.75;overflow-wrap:anywhere}
.rich-preview-button{border-color:#806239!important;background:#302313!important;color:#f0d18c!important}
.topic-body-heading{display:block;margin-bottom:8px;color:#d0bb92;font-size:13px;font-weight:700}
.topic-body-field>small{display:block;margin-top:7px;color:#99886a;font-size:11px;line-height:1.5}
.forum-quote{margin:14px 0;padding:12px 16px;border-left:3px solid #b18b4f;background:#20180f;color:#c9b58e}
.forum-spoiler{display:block;margin:12px 0;border:1px solid #564027;border-radius:4px;background:#19140e}
.forum-spoiler summary{padding:9px 12px;color:#d7b66f;cursor:pointer;font-size:13px;font-weight:700}
.forum-spoiler>div{padding:12px;border-top:1px solid #44331e;color:#d6c7aa}
.post-body .forum-image,.rich-preview-body .forum-image{display:block;max-width:min(100%,720px);max-height:620px;margin:14px 0;border:1px solid #594528;border-radius:4px;object-fit:contain;background:#100e0b}
.post-body a,.rich-editor-preview a{color:#e0bd79;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
@media(max-width:700px){#modal:has(#new-form),#modal:has(#topic-edit-form){padding:25px 19px}.topic-composer-heading h2{font-size:28px}:is(#new-form,#topic-edit-form) .rich-editor-input{min-height:205px;padding:13px}:is(#new-form,#topic-edit-form) .rich-toolbar-spacer{display:none}:is(#new-form,#topic-edit-form) .rich-editor-toolbar{gap:3px;padding:7px}:is(#new-form,#topic-edit-form) .rich-color-control{padding:0 3px}}

/* Forum colors: compatible with style-src self. */
.forum-color-f0d18c{color:#f0d18c}
.forum-color-e7e0d4{color:#e7e0d4}
.forum-color-91c7ff{color:#91c7ff}
.forum-color-9ed6a5{color:#9ed6a5}
.forum-color-f29c9c{color:#f29c9c}
.forum-color-d7a5ff{color:#d7a5ff}
.forum-color-f3a66f{color:#f3a66f}

#new-form button.topic-category-card{text-align:left;font:inherit;width:100%;color:#e8d6b3}#new-form .topic-category-card[aria-pressed="true"]{border-color:#d2ab60;background:linear-gradient(145deg,#3a2a16,#21180e);box-shadow:inset 0 0 0 1px #8c6934}#new-form .topic-category-card[aria-pressed="true"] .topic-category-check{border-color:#d7b266;background:#d7b266;color:#20170c}#new-form .topic-category-children{margin-top:14px;padding:14px;border-left:2px solid #c6a25d;background:#21180f;color:#d0bb92}#new-form .topic-category-children[hidden]{display:none!important}#new-form .topic-category-child-grid{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}#new-form .topic-category-child-grid button{min-height:42px;padding:9px 18px;background:#17120d;border-color:#574129;color:#e8d6b3}#new-form .topic-category-child-grid button[aria-pressed="true"]{border-color:#d2ab60;background:#302313;color:#f0d18c}#new-form .topic-category-selection{margin:12px 0 0;color:#d0bb92;font-size:13px}

#topics .topic-locked-status{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;flex-shrink:0;width:48px;color:#d6b36b}#topics .topic-locked-status svg{display:block;width:21px;height:21px}#topics .topic-locked-status small{margin:0;color:#a9987a;font-size:11px}
