.themes-page { display:grid; gap:16px; }
.themes-top { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.themes-top h3 { margin:0 0 4px; color:#f7e7c8; font-size:18px; }
.themes-top p { margin:0; color:#98a09e; font-size:12px; line-height:1.45; }
.themes-top .button { flex:none; }
.themes-layout { display:grid; grid-template-columns:190px minmax(0,1fr); gap:15px; align-items:start; }
.themes-library,.theme-editor,.theme-preview { min-width:0; border:1px solid #ffffff1b; border-radius:14px; background:#12161b; box-shadow:0 12px 30px #0002; }
.themes-library { display:grid; gap:7px; padding:13px; }
.theme-small-heading { color:#caa969; font-size:9px; font-weight:850; letter-spacing:1.6px; padding:3px 4px 8px; }
.theme-library-card { display:grid; gap:5px; width:100%; padding:11px; border:1px solid #ffffff17; border-radius:9px; background:#191d22; color:#e9e9e7; text-align:left; }
.theme-library-card:hover { border-color:#bb96574d; background:#222124; }
.theme-library-card.active { border-color:#dda95488; background:linear-gradient(125deg,#3a3022,#202024); }
.theme-library-card strong { font-size:12px; overflow-wrap:anywhere; }
.theme-library-card small { color:#9ba2a1; font-size:10px; line-height:1.4; }
.theme-empty-hint { margin:0; color:#9ba2a1; font-size:11px; line-height:1.5; }
.themes-main { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(270px,.8fr); gap:15px; min-width:0; align-items:start; }
.theme-editor { overflow:hidden; }
.theme-editor-head { display:flex; align-items:end; justify-content:space-between; gap:12px; padding:17px 18px 11px; }
.theme-name-field { display:grid; gap:7px; flex:1; min-width:0; }
.theme-name-field span { color:#caa969; font-size:9px; font-weight:850; letter-spacing:1.3px; }
.theme-name-field input,.theme-search,.theme-target-name { width:100%; min-width:0; min-height:39px; border:1px solid #ffffff29; border-radius:8px; background:#0c1015; color:#f5f2e9; padding:8px 10px; font-size:12px; }
.theme-name-field input:focus,.theme-search:focus,.theme-target-name:focus { outline:none; border-color:#d9ae64; box-shadow:0 0 0 2px #d9ae6426; }
.theme-summary { margin:0; padding:0 18px 15px; color:#a4aaa8; font-size:11px; }
.theme-tools { display:flex; flex-wrap:wrap; gap:6px; padding:13px 18px; border-top:1px solid #ffffff15; border-bottom:1px solid #ffffff15; }
.theme-search { flex:1 1 190px; min-height:34px; }
.theme-filter,.theme-preview-mode { border:1px solid #ffffff1f; border-radius:7px; background:#202329; color:#a7afac; padding:7px 9px; font-size:10px; font-weight:750; }
.theme-filter:hover,.theme-preview-mode:hover { color:#fff; border-color:#c49b62; }
.theme-filter.active,.theme-preview-mode.active { color:#f5d38e; border-color:#c49b6270; background:#382d21; }
.theme-channel-list { display:grid; gap:4px; max-height:min(65vh,760px); padding:10px; overflow:auto; }
.theme-channel-row { display:grid; grid-template-columns:32px minmax(115px,1fr) 16px minmax(135px,1.1fr) 28px; align-items:center; gap:7px; min-width:0; padding:7px; border:1px solid #ffffff10; border-radius:8px; background:#191d23; }
.theme-channel-row[hidden] { display:none; }
.theme-channel-row.is-child { margin-left:13px; }
.theme-channel-row.is-changed { border-color:#d2a85f72; background:#292621; }
.theme-channel-row.is-ignored { opacity:.68; }
.theme-channel-row.is-missing { border-style:dashed; }
.theme-channel-row .ruby-switch { margin:0; }
.theme-current-name { display:flex; align-items:center; gap:7px; min-width:0; color:#c8ceca; font-size:11px; }
.theme-current-name > span:last-child { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.theme-channel-type { flex:none; display:inline-grid; place-items:center; width:19px; height:19px; color:#c5a66c; }
.theme-channel-type svg { display:block; width:16px; height:16px; }
.theme-channel-type.is-announcement,.theme-channel-type.is-rules { color:#d5ad63; }
.theme-channel-type.is-forum,.theme-channel-type.is-media { color:#a9bcd0; }
.theme-arrow { color:#bd9855; text-align:center; }
.theme-target-name { min-height:32px; padding:6px 8px; font-size:11px; }
.theme-target-name:disabled { color:#8a918f; border-color:#ffffff15; }
.theme-reset { width:27px; height:27px; padding:0; border:1px solid #ffffff20; border-radius:7px; background:#252930; color:#c9b99d; font-size:17px; }
.theme-reset:hover { border-color:#d6ae62; color:#ffe0a0; }
.theme-actions { display:flex; flex-wrap:wrap; gap:9px; padding:16px 18px; border-top:1px solid #ffffff15; }
.theme-job { margin:0 18px 18px; padding:11px; border:1px solid #c49b6252; border-radius:8px; background:#29251f; color:#ecd39f; font-size:11px; line-height:1.5; }
.theme-preview { position:sticky; top:15px; overflow:hidden; }
.theme-preview-head { display:flex; align-items:center; gap:5px; padding:13px; border-bottom:1px solid #ffffff1c; }
.theme-preview-head strong { flex:1; color:#ebd8b5; font-size:12px; }
.theme-preview-list { display:grid; gap:3px; max-height:min(72vh,800px); padding:11px; overflow:auto; }
.theme-preview-channel { display:flex; align-items:center; gap:6px; min-width:0; min-height:28px; padding:4px 7px; border-radius:5px; background:#1b2027; color:#b8c1c4; font-size:11px; overflow-wrap:anywhere; }
.theme-preview-channel.is-category { margin-top:8px; background:#25272d; color:#dfd0b3; font-weight:850; }
.theme-preview-channel.is-child { margin-left:11px; }
.theme-preview-channel.is-changed { background:#433321; color:#ffdf9d; }
.theme-welcome { padding:40px; border:1px dashed #ffffff26; border-radius:12px; color:#a9afab; text-align:center; font-size:13px; }
@media (max-width:1400px) { .themes-main { grid-template-columns:1fr; } .theme-preview { position:static; } .theme-preview-list { max-height:300px; } }
@media (max-width:1000px) { .themes-layout { grid-template-columns:1fr; } .themes-library { display:flex; align-items:center; overflow-x:auto; } .theme-small-heading { flex:none; } .theme-library-card { min-width:160px; max-width:210px; } }
@media (max-width:610px) { .themes-top,.theme-editor-head { align-items:stretch; flex-direction:column; } .theme-channel-row { grid-template-columns:32px minmax(0,1fr) 28px; } .theme-channel-row .theme-arrow { display:none; } .theme-channel-row .theme-target-name { grid-column:2/-1; } .theme-channel-row .theme-reset { grid-column:3; grid-row:1; } .theme-tools { padding:10px; } .theme-channel-list { padding:7px; } }
