:root { --cms-blue:#1264ff; --cms-ink:#15171a; --cms-muted:#767b86; --cms-line:#e7e8eb; --cms-bg:#f6f7f9; }
body { background:var(--cms-bg); }
.cms-shell { min-height:100vh; color:var(--cms-ink); display:grid; grid-template-columns:248px 1fr; font-family:"Basier Square",Arial,sans-serif; }
.cms-sidebar { position:fixed; inset:0 auto 0 0; width:248px; padding:28px 20px 20px; background:#111317; color:#fff; display:flex; flex-direction:column; z-index:20; }
.cms-brand { display:block; padding:4px 12px 38px; border-bottom:1px solid #292c32; }
.cms-brand img { width:158px; height:30px; object-fit:contain; object-position:left; }
.cms-nav { display:grid; gap:5px; padding-top:26px; }
.cms-nav button { width:100%; border:0; background:transparent; color:#91959f; border-radius:8px; padding:13px 14px; display:flex; align-items:center; gap:13px; text-align:left; font-size:14px; font-weight:500; transition:.2s ease; }
.cms-nav button span { width:22px; font-size:18px; text-align:center; }
.cms-nav button:hover { color:#fff; background:#1c1f25; }
.cms-nav button.active { color:#fff; background:var(--cms-blue); }
.cms-profile { margin-top:auto; border-top:1px solid #292c32; padding:20px 8px 4px; display:grid; grid-template-columns:38px 1fr auto; gap:10px; align-items:center; }
.cms-profile .avatar { width:38px; height:38px; border-radius:50%; background:#292e38; display:grid; place-items:center; font-weight:700; }
.cms-profile strong,.cms-profile small { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cms-profile strong { font-size:13px; }.cms-profile small { color:#777c86; font-size:11px; margin-top:2px; }.cms-profile a { color:#777c86; }
.cms-main { grid-column:2; padding:0 44px 64px; min-width:0; }
.cms-topbar { min-height:126px; display:flex; align-items:center; justify-content:space-between; gap:30px; border-bottom:1px solid var(--cms-line); margin-bottom:34px; }
.cms-topbar p,.panel-heading p,.category-form>p { margin:0 0 6px; color:var(--cms-blue); text-transform:uppercase; letter-spacing:.09em; font-size:10px; font-weight:700; }
.cms-topbar h1 { margin:0; font-size:30px; line-height:1.1; font-weight:600; }.cms-top-actions { display:flex; align-items:center; gap:12px; }.cms-top-actions a { padding:11px 14px; font-size:13px; color:#555b65; }
.primary { border:0; background:var(--cms-blue); color:#fff; border-radius:7px; padding:12px 17px; font-weight:600; font-size:13px; box-shadow:0 5px 14px rgba(18,100,255,.18); }.primary:hover { background:#0053db; }.primary:disabled { opacity:.55; cursor:wait; }
.cms-notice { position:fixed; right:32px; top:94px; z-index:80; background:#111317; color:#fff; border-radius:8px; padding:13px 14px 13px 18px; min-width:220px; box-shadow:0 10px 35px rgba(0,0,0,.2); font-size:13px; }.cms-notice button { float:right; margin-left:20px; background:transparent; border:0; color:#fff; }
.stat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-bottom:24px; }.stat-grid article { min-height:156px; background:#fff; border:1px solid var(--cms-line); border-radius:10px; padding:24px; display:grid; grid-template-columns:1fr auto; align-content:space-between; }.stat-grid span { color:var(--cms-muted); font-size:13px; }.stat-grid strong { grid-column:1/-1; font-size:44px; line-height:1; font-weight:500; }.stat-grid small { color:#979ba3; font-size:11px; }
.cms-panel { background:#fff; border:1px solid var(--cms-line); border-radius:10px; }.recent-panel { margin-bottom:24px; }.panel-heading { display:flex; justify-content:space-between; align-items:center; padding:24px 26px 20px; }.panel-heading h2,.category-form h2 { margin:0; font-size:20px; font-weight:600; }.panel-heading button { border:0; background:transparent; color:var(--cms-blue); font-weight:600; font-size:12px; }
.quick-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }.quick-grid button { background:#fff; border:1px solid var(--cms-line); border-radius:10px; padding:23px; display:grid; text-align:left; transition:.2s ease; }.quick-grid button:hover { border-color:#b8caff; transform:translateY(-2px); box-shadow:0 8px 20px rgba(20,30,50,.05); }.quick-grid span { width:36px; height:36px; display:grid; place-items:center; border-radius:8px; background:#eef3ff; color:var(--cms-blue); font-size:18px; margin-bottom:18px; }.quick-grid strong { font-size:14px; }.quick-grid small { color:var(--cms-muted); margin-top:5px; }
.article-tools { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:20px 24px; border-bottom:1px solid var(--cms-line); }.cms-search { width:min(380px,50%); display:flex; align-items:center; gap:8px; background:#f5f6f8; border-radius:7px; padding:0 12px; }.cms-search input { width:100%; border:0; background:transparent; padding:11px 0; outline:0; font-size:13px; }.status-filter { display:flex; gap:4px; padding:3px; background:#f3f4f6; border-radius:7px; }.status-filter button { border:0; background:transparent; padding:7px 12px; border-radius:5px; color:#6e737d; font-size:12px; }.status-filter button.active { background:#fff; color:var(--cms-ink); box-shadow:0 1px 4px rgba(0,0,0,.08); }
.article-table { width:100%; }.article-table .table-head,.article-table>article { display:grid; grid-template-columns:minmax(300px,2fr) minmax(100px,.7fr) 100px 110px 120px; gap:18px; align-items:center; padding:12px 24px; }.table-head { border-bottom:1px solid var(--cms-line); color:#8c9098; text-transform:uppercase; letter-spacing:.06em; font-size:9px; font-weight:700; }.article-table>article { min-height:76px; border-bottom:1px solid #eff0f2; font-size:12px; }.article-table>article:last-child { border-bottom:0; }.story-cell { min-width:0; border:0; background:transparent; padding:0; text-align:left; display:flex; align-items:center; gap:13px; }.table-thumb { flex:0 0 auto; width:48px; height:48px; display:grid; place-items:center; overflow:hidden; background:#eef1f6; color:var(--cms-blue); font-weight:700; }.table-thumb img { width:100%; height:100%; object-fit:cover; }.story-cell>span:last-child { min-width:0; }.story-cell strong,.story-cell small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.story-cell strong { font-size:13px; font-weight:600; }.story-cell small { color:#9a9da5; margin-top:5px; }.status-pill { justify-self:start; border-radius:20px; padding:5px 9px; font-size:10px; text-transform:capitalize; }.status-pill.published { color:#15764f; background:#e8f6ef; }.status-pill.draft { color:#7d6842; background:#f7f0e4; }.article-table time { color:#767b84; }.row-actions { display:flex; gap:4px; }.row-actions button { border:0; background:transparent; color:#777c85; font-size:11px; padding:6px; }.row-actions button:last-child:hover { color:#d94444; }.cms-empty { text-align:center; padding:90px 20px; }.cms-empty p { color:var(--cms-muted); }
.category-layout { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(300px,.7fr); gap:22px; }.category-list { border-top:1px solid var(--cms-line); }.category-list article { display:grid; grid-template-columns:12px 1fr auto; gap:14px; align-items:center; padding:17px 25px; border-bottom:1px solid #eff0f2; }.category-list article:last-child { border-bottom:0; }.category-list i { width:10px; height:38px; border-radius:3px; }.category-list strong,.category-list small { display:block; }.category-list small { color:#989ca4; margin-top:4px; }.category-list>article>span { color:#7d8189; font-size:11px; }.category-form { align-self:start; padding:26px; }.category-form label,.settings-form label,.story-editor label,.image-box label { display:grid; gap:7px; color:#6f747d; font-size:11px; font-weight:600; margin-top:22px; }.category-form input,.settings-form input,.settings-form textarea,.story-editor input,.story-editor textarea,.story-editor select { width:100%; border:1px solid #dcdfe4; border-radius:7px; background:#fff; padding:11px 12px; outline:0; color:var(--cms-ink); font-weight:400; }.category-form input:focus,.settings-form input:focus,.settings-form textarea:focus,.story-editor input:focus,.story-editor textarea:focus,.story-editor select:focus { border-color:var(--cms-blue); box-shadow:0 0 0 3px rgba(18,100,255,.1); }.category-form input[type=color] { height:44px; padding:5px; }.category-form .primary { margin-top:24px; width:100%; }
.settings-form { max-width:760px; padding-bottom:26px; }.settings-form>label { margin:0 26px 22px; font-size:12px; }.settings-form textarea { resize:vertical; }.settings-footer { border-top:1px solid var(--cms-line); padding:22px 26px 0; display:flex; justify-content:space-between; align-items:center; gap:20px; }.settings-footer p { margin:0; color:#8a8e96; font-size:11px; }
.editor-backdrop { position:fixed; inset:0; z-index:100; background:rgba(8,10,14,.62); backdrop-filter:blur(4px); display:grid; justify-items:end; }.story-editor { width:min(880px,94vw); height:100vh; background:#f7f8fa; display:grid; grid-template-rows:auto 1fr auto; box-shadow:-20px 0 60px rgba(0,0,0,.18); animation:editorIn .24s ease both; }.story-editor>header { background:#fff; border-bottom:1px solid var(--cms-line); padding:20px 26px; display:flex; justify-content:space-between; align-items:center; }.story-editor>header p { margin:0 0 4px; color:var(--cms-blue); text-transform:uppercase; letter-spacing:.08em; font-size:9px; font-weight:700; }.story-editor>header h2 { max-width:680px; margin:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:20px; }.editor-close { border:0; background:transparent; font-size:26px; color:#777; }.editor-body { min-height:0; overflow:auto; padding:24px; display:grid; grid-template-columns:minmax(0,1.5fr) 280px; gap:18px; align-items:start; }.editor-copy,.publish-box,.image-box { background:#fff; border:1px solid var(--cms-line); border-radius:9px; padding:2px 22px 24px; }.editor-options { display:grid; gap:18px; }.story-editor label { margin-top:20px; }.story-editor .body-input { font-family:"Basier Square",Arial,sans-serif; line-height:1.6; resize:vertical; }.check { grid-template-columns:auto 1fr !important; align-items:center; justify-content:start; }.check input { width:16px; height:16px; accent-color:var(--cms-blue); }.image-box>p { margin:20px 0 12px; color:#6f747d; font-size:11px; font-weight:600; }.image-box img,.image-placeholder { width:100%; aspect-ratio:1.55; object-fit:cover; background:#eef0f4; display:grid; place-items:center; color:#999da5; font-size:11px; }.upload-button { border:1px dashed #bfc6d1; border-radius:7px; padding:10px; text-align:center; color:var(--cms-blue) !important; cursor:pointer; }.upload-button input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; }.story-editor>footer { background:#fff; border-top:1px solid var(--cms-line); padding:14px 24px; display:flex; justify-content:space-between; align-items:center; }.story-editor>footer>span { color:#757a84; font-size:11px; }.story-editor>footer>div { display:flex; gap:10px; align-items:center; }.story-editor>footer a { color:var(--cms-blue); font-size:12px; margin-right:8px; }.story-editor>footer button:not(.primary) { border:1px solid #dadde2; background:#fff; border-radius:7px; padding:10px 15px; }
@keyframes editorIn { from { transform:translateX(35px); opacity:.5; } }
@media (max-width:980px) { .cms-shell { grid-template-columns:78px 1fr; }.cms-sidebar { width:78px; padding-inline:10px; }.cms-brand { padding-inline:4px; }.cms-brand img { width:48px; object-fit:cover; object-position:left; }.cms-nav button { justify-content:center; padding-inline:8px; }.cms-nav button span { font-size:19px; }.cms-nav button:not(.active) { color:#a0a4ad; }.cms-nav button { font-size:0; }.cms-profile>div,.cms-profile>a { display:none; }.cms-profile { grid-template-columns:1fr; justify-items:center; }.cms-main { grid-column:2; padding-inline:24px; }.article-table .table-head,.article-table>article { grid-template-columns:minmax(260px,2fr) 95px 90px 80px; }.article-table .table-head span:nth-child(2),.article-table>article>span:nth-child(2) { display:none; }.category-layout { grid-template-columns:1fr; }.story-editor { width:94vw; } }
@media (max-width:700px) { .cms-shell { display:block; }.cms-sidebar { position:sticky; top:0; width:100%; height:64px; padding:9px 15px; display:flex; flex-direction:row; align-items:center; }.cms-brand { border:0; padding:0; margin-right:auto; }.cms-brand img { width:135px; object-fit:contain; }.cms-nav { display:flex; padding:0; }.cms-nav button { width:42px; }.cms-profile { display:none; }.cms-main { padding:0 16px 48px; }.cms-topbar { min-height:112px; }.cms-topbar p { display:none; }.cms-topbar h1 { font-size:24px; }.cms-top-actions a { display:none; }.stat-grid,.quick-grid { grid-template-columns:1fr; }.article-table .table-head { display:none; }.article-table>article { grid-template-columns:1fr auto; gap:10px; }.article-table>article>span:not(.row-actions),.article-table>article>time { display:none; }.row-actions { justify-self:end; }.article-tools { align-items:stretch; flex-direction:column; }.cms-search { width:100%; }.editor-body { grid-template-columns:1fr; }.story-editor { width:100vw; }.story-editor>footer>span,.story-editor>footer a { display:none; }.story-editor>footer { justify-content:flex-end; } }

.cms-nav a { width:100%; color:#91959f; border-radius:8px; padding:13px 14px; display:flex; align-items:center; gap:13px; font-size:14px; font-weight:500; text-decoration:none; }
.cms-nav a:hover { color:#fff; background:#1c1f25; }
.cms-profile form,.row-actions form { margin:0; }
.cms-profile button { border:0; background:transparent; color:#777c86; font-size:18px; }
.panel-heading a { color:var(--cms-blue); font-size:12px; font-weight:600; text-decoration:none; }
.row-actions a { color:#777c85; font-size:11px; padding:6px; text-decoration:none; }
.row-actions form button { border:0; background:transparent; color:#777c85; font-size:11px; padding:6px; }
.editor-form { overflow:hidden; }
.editor-grid { display:grid; grid-template-columns:minmax(0,1.5fr) 300px; gap:22px; padding:4px 26px 28px; }
.editor-grid>section,.editor-grid>aside { min-width:0; }
.editor-form label { display:grid; gap:7px; margin-top:20px; color:#6f747d; font-size:11px; font-weight:600; }
.editor-form input,.editor-form textarea,.editor-form select { width:100%; border:1px solid #dcdfe4; border-radius:7px; background:#fff; padding:11px 12px; outline:0; color:var(--cms-ink); font:inherit; font-weight:400; }
.editor-form input:focus,.editor-form textarea:focus,.editor-form select:focus { border-color:var(--cms-blue); box-shadow:0 0 0 3px rgba(18,100,255,.1); }
.editor-form .check { display:flex; align-items:center; gap:8px; }
.editor-form .check input { width:16px; height:16px; accent-color:var(--cms-blue); }
.story-format-field { margin:20px 0 2px; padding:16px; border:1px solid #dfe3ea; border-radius:10px; background:#f8f9fb; }
.story-format-field legend { padding:0 5px; color:#343840; font-size:12px; font-weight:700; }
.story-format-field legend span { margin-left:5px; color:var(--cms-blue); font-size:9px; text-transform:uppercase; letter-spacing:.05em; }
.story-format-field>p { margin:0 0 12px; color:#7d828c; font-size:10px; line-height:1.4; }
.story-format-options { display:grid; gap:9px; }
.story-format-option { margin:0 !important; display:block !important; cursor:pointer; }
.story-format-option>input { position:absolute; width:1px !important; height:1px; opacity:0; overflow:hidden; }
.story-format-card { min-height:66px; display:grid; grid-template-columns:36px 1fr; gap:11px; align-items:center; border:1px solid #dfe2e7; border-radius:9px; background:#fff; padding:10px; transition:border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.story-format-icon { width:36px; height:36px; border-radius:8px; background:#16181c; display:grid; place-items:center; }
.story-format-icon img { width:17px; height:17px; }
.story-format-card strong,.story-format-card small { display:block; }
.story-format-card strong { color:#30343a; font-size:11px; }
.story-format-card small { margin-top:3px; color:#858a94; font-size:9px; line-height:1.35; font-weight:400; }
.story-format-option>input:checked + .story-format-card { border-color:var(--cms-blue); background:#f4f7ff; box-shadow:0 0 0 3px rgba(18,100,255,.09); }
.story-format-option>input:focus-visible + .story-format-card { outline:2px solid var(--cms-blue); outline-offset:2px; }
.cover-preview { width:100%; aspect-ratio:1.55; object-fit:cover; margin-top:12px; }
.editor-form>footer { border-top:1px solid var(--cms-line); padding:16px 26px; display:flex; align-items:center; justify-content:space-between; }
.editor-form>footer>div { display:flex; align-items:center; gap:12px; }
.editor-form>footer a { color:var(--cms-blue); font-size:12px; text-decoration:none; }
.secondary { border:1px solid #dadde2; border-radius:7px; padding:10px 15px; color:#555 !important; }
.form-error { color:#b42318; background:#fef3f2; border:1px solid #fee4e2; border-radius:7px; padding:10px 12px; font-size:12px; }
.auth-body { margin:0; min-height:100vh; background:#111317; display:grid; place-items:center; font-family:"Basier Square",Arial,sans-serif; }
.auth-card { width:min(440px,calc(100% - 32px)); background:#fff; border-radius:12px; padding:34px; box-shadow:0 30px 80px rgba(0,0,0,.28); }
.auth-card>a img { width:170px; filter:brightness(0); }
.auth-card>p { color:var(--cms-blue); text-transform:uppercase; letter-spacing:.08em; font-size:10px; font-weight:700; margin:32px 0 6px; }
.auth-card h1 { margin:0 0 24px; font-size:27px; }
.auth-card label { display:grid; gap:7px; color:#6f747d; font-size:11px; font-weight:600; margin-top:18px; }
.auth-card input { border:1px solid #dcdfe4; border-radius:7px; padding:12px; font:inherit; }
.auth-card .primary { width:100%; margin-top:24px; }
@media (max-width:760px) { .editor-grid { grid-template-columns:1fr; }.editor-form>footer { align-items:flex-start; gap:12px; flex-direction:column; } }

.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.filter-bar { display:flex; flex-wrap:wrap; align-items:center; gap:9px; padding:16px 24px; border-top:1px solid var(--cms-line); border-bottom:1px solid var(--cms-line); background:#fbfbfc; }
.filter-control { min-height:38px; display:flex; align-items:center; border:1px solid #dfe2e7; border-radius:10px; background:#fff; color:#686e78; box-shadow:0 1px 2px rgba(16,24,40,.03); transition:border-color .18s ease,box-shadow .18s ease; }
.filter-control:focus-within { border-color:#9bb9ff; box-shadow:0 0 0 3px rgba(18,100,255,.09); }
.filter-search { width:min(260px,100%); padding:0 11px; }
.filter-icon { margin-right:7px; color:#8d929b; font-size:18px; line-height:1; transform:rotate(-18deg); }
.filter-bar input,.filter-bar select { min-width:0; height:36px; border:0; background:transparent; color:var(--cms-ink); font:inherit; font-size:12px; outline:0; }
.filter-bar input { width:100%; padding:0; }
.filter-bar input::placeholder { color:#a0a4ac; }
.filter-select { padding-left:12px; }
.filter-prefix { padding-right:6px; color:#25282d; font-size:12px; font-weight:600; white-space:nowrap; }
.filter-select select { max-width:142px; padding:0 30px 0 2px; cursor:pointer; }
.filter-actions { min-height:38px; display:flex; align-items:center; gap:9px; }
.filter-actions .filter-submit { min-height:38px; padding:0 15px; border-radius:10px; white-space:nowrap; box-shadow:none; }
.filter-actions a { color:#6d727c; font-size:11px; text-decoration:none; padding:9px 6px; }
.category-help { position:relative; margin-bottom:18px; padding:17px 20px 17px 52px; border:1px solid #d7e1f9; border-radius:12px; background:#f7f9ff; }
.category-help::before { content:"i"; position:absolute; left:18px; top:18px; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; background:#e3ebff; color:var(--cms-blue); font-size:12px; font-weight:700; }
.category-help strong { color:#173b82; font-size:13px; }
.category-help p { margin:5px 0 0; max-width:900px; color:#667089; font-size:12px; line-height:1.5; }
.category-error { margin-bottom:18px; }
.category-list .category-edit { display:block; padding:0; background:#fff; transition:background .18s ease; }
.category-list .category-edit:hover { background:#fbfcff; }
.category-edit>form { display:grid; grid-template-columns:48px minmax(180px,1fr) 90px minmax(190px,.8fr) auto; gap:16px; align-items:center; padding:18px 22px; }
.category-color { position:relative; width:44px; height:44px; display:block; cursor:pointer; }
.category-color input { position:absolute; inset:0; width:44px; height:44px; opacity:0; cursor:pointer; }
.category-color span { display:block; width:44px; height:44px; border:6px solid #fff; border-radius:12px; background:var(--category-color); box-shadow:0 0 0 1px #dfe2e7,0 4px 10px rgba(16,24,40,.08); }
.category-name { min-width:0; display:grid; gap:6px; }
.category-name input { min-width:0; width:100%; border:1px solid transparent; border-radius:8px; background:transparent; padding:8px 10px; color:var(--cms-ink); font:inherit; font-size:14px; font-weight:600; transition:.18s ease; }
.category-name input:hover { background:#f5f7fa; }
.category-name input:focus { background:#fff; border-color:var(--cms-blue); box-shadow:0 0 0 3px rgba(18,100,255,.1); outline:0; }
.category-name small { padding-left:10px; color:#9398a2; font-size:10px; font-weight:400; }
.category-name small a { color:var(--cms-blue); text-decoration:none; }
.category-count { justify-self:start; display:flex; align-items:baseline; gap:4px; border-radius:999px; background:#f2f4f7; color:#717780; font-size:10px; white-space:nowrap; padding:6px 9px; }
.category-count strong { color:#2f3339; font-size:12px; }
.nav-toggle { display:grid; grid-template-columns:38px 1fr; gap:10px; align-items:center; color:#555b66; cursor:pointer; }
.nav-toggle input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; }
.toggle-track { width:38px; height:22px; padding:3px; border-radius:999px; background:#d8dce3; transition:.2s ease; }
.toggle-track i { display:block; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(16,24,40,.26); transition:.2s ease; }
.nav-toggle input:checked + .toggle-track { background:var(--cms-blue); }
.nav-toggle input:checked + .toggle-track i { transform:translateX(16px); }
.nav-toggle input:focus-visible + .toggle-track { box-shadow:0 0 0 3px rgba(18,100,255,.18); }
.toggle-copy strong,.toggle-copy small { display:block; }
.toggle-copy strong { color:#34383f; font-size:11px; font-weight:600; }
.toggle-copy small { margin-top:3px; color:#9297a1; font-size:9px; }
.category-edit .category-save { background:#fff; border-color:#dfe2e7; border-radius:9px; font-size:11px; font-weight:600; cursor:pointer; white-space:nowrap; }
.category-edit .category-save:hover { border-color:#a9c2ff; color:var(--cms-blue) !important; }
@media (max-width:1100px) {
  .category-edit>form { grid-template-columns:44px minmax(180px,1fr) auto; }
  .category-count { grid-column:2; }
  .nav-toggle { grid-column:2; }
  .category-edit .secondary { grid-column:3; grid-row:2/4; align-self:center; }
}
@media (max-width:700px) {
  .filter-bar { padding:14px; }
  .filter-search { width:100%; }
  .filter-select { flex:1 1 150px; }
  .filter-select select { width:100%; max-width:none; }
  .filter-actions { width:100%; justify-content:space-between; }
  .category-edit>form { grid-template-columns:38px 1fr; }
  .category-count,.nav-toggle,.category-edit .secondary { grid-column:2; grid-row:auto; justify-self:start; }
  .category-edit .secondary { width:100%; }
}

/* OriginData CMS — Figma UI refresh */
:root {
  --cms-blue:#0877ff;
  --cms-ink:#1f2223;
  --cms-muted:#93939e;
  --cms-line:#f1f1f5;
  --cms-bg:#131313;
  --cms-soft:#f7f8fc;
}
html { background:var(--cms-bg); }
body { margin:0; background:var(--cms-bg); }
button,input,select,textarea { font:inherit; }
.cms-shell,
.cms-shell *,
.cms-shell *::before,
.cms-shell *::after { box-sizing:border-box; }
.cms-shell { min-height:100vh; display:grid; grid-template-columns:325px minmax(0,1fr); padding:24px 24px 24px 0; background:var(--cms-bg); }
.cms-sidebar { position:fixed; inset:0 auto 0 0; width:325px; padding:52px 28px 24px; background:#131313; z-index:20; }
.cms-brand { padding:0 0 44px; border:0; }
.cms-brand img { width:164px; height:32px; }
.cms-nav { gap:8px; padding:0; }
.cms-nav a,.cms-nav .cms-nav-link { position:relative; min-height:52px; padding:0 24px; gap:18px; border-radius:13px; color:#93939e; font-size:16px; line-height:1; font-weight:500; }
.cms-nav a:hover { color:#fff; background:#202323; }
.cms-nav a.active { color:#b0b0b9; background:#292d2d; }
.cms-nav .cms-icon { width:22px; height:22px; flex:0 0 auto; }
.cms-nav-divider { height:1px; margin:24px 0; background:#292d2d; }
.cms-nav-disabled { display:flex; align-items:center; cursor:not-allowed; opacity:.82; }
.cms-nav-disabled small { margin-left:auto; color:#65656d; font-size:9px; text-transform:uppercase; letter-spacing:.04em; }
.cms-sidebar-bottom { margin-top:auto; display:grid; gap:24px; }
.cms-contributor-button { min-height:44px; border:0; border-radius:10px; background:var(--cms-blue); color:#fff; display:flex; justify-content:center; align-items:center; gap:10px; font-size:13px; text-transform:uppercase; }
.cms-contributor-button:disabled { opacity:1; cursor:not-allowed; }
.cms-contributor-button .cms-icon { width:18px; height:18px; }
.cms-profile { margin:0; padding:12px 14px; grid-template-columns:38px minmax(0,1fr) auto; gap:10px; border:0; border-radius:10px; background:#292d2d; }
.cms-profile>.cms-icon { width:34px; height:34px; padding:7px; border-radius:50%; color:#111; background:var(--cms-blue); }
.cms-profile strong { color:#fefefe; font-size:13px; }
.cms-profile small { color:#777782; font-size:11px; }
.cms-profile button { cursor:pointer; }
.cms-icon { width:20px; height:20px; display:block; }

.cms-main { grid-column:2; min-width:0; min-height:calc(100vh - 48px); padding:28px 28px 74px; border-radius:16px; background:#fefefe; overflow:hidden; }
.cms-content { min-width:0; }
.cms-topbar { min-height:auto; margin:0 0 28px; border:0; display:flex; align-items:center; justify-content:space-between; }
.cms-top-actions { order:0; display:flex; gap:20px; }
.cms-top-actions a { min-width:164px; height:68px; padding:0 28px; border-radius:10px; display:flex; align-items:center; justify-content:center; gap:12px; font-size:14px; font-weight:500; text-decoration:none; }
.cms-top-actions .cms-new-story { border:1px solid var(--cms-blue); color:#1f2223; background:#fff; }
.cms-top-actions .cms-new-story .cms-icon { width:19px; height:19px; color:var(--cms-blue); }
.cms-top-actions .cms-view-site { color:#fff; background:var(--cms-blue); }
.cms-top-actions .cms-view-site .cms-icon { width:19px; height:19px; }
.cms-language { margin-left:auto; }
.cms-language select { height:34px; padding:0 30px 0 15px; border:0; border-radius:8px; color:#fff; background:#131313; font-size:12px; font-weight:600; cursor:pointer; }
.dashboard-heading { margin:4px 0 26px; }
.dashboard-heading p { margin:0 0 5px; color:var(--cms-blue); text-transform:uppercase; letter-spacing:.1em; font-size:10px; font-weight:700; }
.dashboard-heading h2 { margin:0; font-size:28px; }
.cms-notice { top:36px; right:40px; }

.stat-grid { gap:18px; margin-bottom:24px; }
.stat-grid article { min-height:150px; border-color:var(--cms-line); border-radius:12px; box-shadow:none; }
.cms-panel { border-color:var(--cms-line); border-radius:12px; box-shadow:none; }
.stories-panel { border:0; border-radius:0; }
.panel-heading { padding:22px 0 18px; }
.panel-heading h2 { font-size:20px; }

.filter-bar { display:grid; grid-template-columns:minmax(300px,1fr) 142px 142px auto 44px; gap:16px; padding:0 0 24px; border:0; background:transparent; align-items:center; }
.filter-control { height:42px; min-height:42px; border-color:#d4d5da; border-radius:8px; box-shadow:none; }
.filter-search { width:100%; padding:0 16px; }
.filter-search .cms-icon { width:20px; height:20px; margin-right:12px; color:#555b61; }
.filter-bar input,.filter-bar select { height:40px; font-size:13px; }
.filter-select { position:relative; display:block; padding:0; }
.filter-prefix { position:absolute; left:16px; top:7px; z-index:1; color:#2c2f33; font-size:10px; font-weight:600; pointer-events:none; }
.filter-select select { width:100%; max-width:none; padding:15px 30px 0 16px; appearance:none; cursor:pointer; }
.filter-select::after { content:""; position:absolute; right:14px; top:18px; width:7px; height:7px; border-right:2px solid var(--cms-blue); border-bottom:2px solid var(--cms-blue); transform:rotate(45deg); pointer-events:none; }
.filter-actions { min-height:42px; gap:5px; }
.filter-actions .filter-submit { height:42px; min-height:42px; padding:0 17px; border-radius:8px; background:var(--cms-blue); }
.filter-actions a { color:#7b7c84; }
.filter-trash { width:44px; height:42px; border:0; border-radius:8px; display:grid; place-items:center; color:var(--cms-blue); background:#f4f7ff; }
.filter-trash .cms-icon { width:19px; height:19px; }
.filter-trash:disabled { opacity:1; }

.article-table { overflow:visible; }
.article-table .table-head,.article-table>article { grid-template-columns:36px minmax(360px,1.8fr) minmax(105px,.6fr) 110px 126px 34px; gap:14px; padding:0 14px; }
.article-table .table-head { min-height:48px; border-top:1px solid var(--cms-line); border-bottom:1px solid var(--cms-line); font-size:10px; color:#77777f; }
.article-table>article { position:relative; min-height:76px; border-bottom:1px solid var(--cms-line); font-size:12px; transition:.18s ease; }
.article-table>article:hover { background:#fbfcff; }
.article-table>article:has(.table-check input:checked) { border:1px solid var(--cms-blue); border-radius:8px; background:#fff; }
.table-check { display:grid; place-items:center; }
.table-check input { width:20px; height:20px; appearance:none; border:2px solid var(--cms-blue); border-radius:5px; background:#fff; cursor:pointer; }
.table-check input:checked { background:var(--cms-blue); box-shadow:inset 0 0 0 4px #fff; }
.story-cell { gap:18px; color:#292b2f; text-decoration:none; }
.table-thumb { width:48px; height:48px; border-radius:8px; }
.story-cell strong { max-width:390px; font-size:13px; line-height:1.3; }
.story-cell small { display:none; }
.status-pill { justify-self:start; min-width:88px; padding:8px 12px; text-align:center; font-size:10px; }
.status-pill.published { color:#145e43; background:#b7ecd4; }
.status-pill.draft { color:#4d5260; background:#f1f3f8; }
.article-table time { color:#3d4044; }
.row-menu { position:relative; justify-self:end; }
.row-menu summary { width:30px; height:40px; border-radius:8px; display:grid; place-items:center; color:var(--cms-blue); cursor:pointer; list-style:none; }
.row-menu summary::-webkit-details-marker { display:none; }
.row-menu[open] summary { background:#f0f5ff; }
.row-menu>div { position:absolute; z-index:20; top:40px; right:0; width:96px; padding:5px 0; border-radius:7px; background:#fff; box-shadow:0 5px 18px rgba(16,24,40,.16); overflow:hidden; }
.row-menu a,.row-menu button { width:100%; min-height:34px; padding:0 16px; border:0; background:#fff; display:flex; align-items:center; color:#555a63; font-size:11px; text-decoration:none; }
.row-menu button { color:#f04438; cursor:pointer; }
.row-menu a:hover,.row-menu button:hover { background:#f7f8fa; }
.table-pagination { min-height:74px; padding:24px 14px 0; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; color:#8d8e98; font-size:11px; }
.table-pagination label { display:flex; align-items:center; gap:10px; }
.table-pagination select { border:1px solid #cfd2d8; border-radius:8px; padding:5px 22px 5px 9px; background:#fff; }
.table-pagination nav { display:flex; align-items:center; gap:12px; }
.table-pagination button { border:0; background:transparent; color:#3d4045; }
.table-pagination button:disabled { color:#a7a8af; }
.table-pagination strong { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; color:#fff; background:var(--cms-blue); }
.table-pagination>span { justify-self:end; }

.category-layout { gap:24px; }
.category-help { border-color:#d9e5ff; background:#f7faff; }
.settings-form { max-width:900px; }
.editor-form { border-radius:12px; }

@media (max-width:1250px) {
  .cms-shell { grid-template-columns:260px minmax(0,1fr); }
  .cms-sidebar { width:260px; padding-inline:22px; }
  .cms-nav a,.cms-nav .cms-nav-link { padding-inline:18px; }
  .article-table .table-head,.article-table>article { grid-template-columns:30px minmax(280px,1.5fr) 90px 96px 110px 30px; gap:10px; }
  .filter-bar { grid-template-columns:minmax(240px,1fr) 130px 130px auto 44px; gap:10px; }
}

@media (max-width:980px) {
  .cms-shell { grid-template-columns:88px minmax(0,1fr); padding-left:0; }
  .cms-sidebar { width:88px; padding:28px 12px 20px; }
  .cms-brand { overflow:hidden; }
  .cms-brand img { width:164px; max-width:none; object-fit:contain; object-position:left; }
  .cms-brand { width:48px; }
  .cms-nav a,.cms-nav .cms-nav-link { padding:0; justify-content:center; }
  .cms-nav a span,.cms-nav-disabled span,.cms-nav-disabled small { display:none; }
  .cms-sidebar-bottom { gap:14px; }
  .cms-contributor-button { width:48px; margin:auto; font-size:0; }
  .cms-profile { padding:8px; grid-template-columns:1fr; justify-items:center; background:transparent; }
  .cms-profile>div,.cms-profile form { display:none; }
  .cms-main { grid-column:2; }
  .filter-bar { grid-template-columns:1fr 130px 130px auto; }
  .filter-trash { display:none; }
  .article-table .table-head,.article-table>article { grid-template-columns:30px minmax(250px,1fr) 90px 100px 30px; }
  .article-table .table-head>span:nth-child(3),.article-table>article>span:nth-child(3) { display:none; }
}

@media (max-width:700px) {
  .cms-shell { display:block; padding:0; }
  .cms-sidebar { position:sticky; width:100%; height:68px; padding:10px 16px; flex-direction:row; }
  .cms-brand { width:135px; padding:0; }
  .cms-brand img { width:135px; }
  .cms-nav { margin-left:auto; display:flex; gap:2px; }
  .cms-nav a,.cms-nav .cms-nav-link { width:42px; min-height:42px; }
  .cms-nav-divider,.cms-nav-disabled,.cms-sidebar-bottom { display:none; }
  .cms-main { min-height:calc(100vh - 68px); padding:18px 16px 40px; border-radius:0; }
  .cms-topbar { margin-bottom:22px; gap:10px; }
  .cms-top-actions { gap:8px; }
  .cms-top-actions a { min-width:0; height:44px; padding:0 13px; font-size:11px; }
  .cms-language select { width:40px; padding:0; color:transparent; background:#131313 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white'%3E%3Cpath d='M4 5h16M4 19h16M5 12h14M12 3a15 15 0 0 1 0 18M12 3a15 15 0 0 0 0 18'/%3E%3C/svg%3E") center/20px no-repeat; }
  .dashboard-heading h2 { font-size:24px; }
  .stat-grid { grid-template-columns:1fr; }
  .filter-bar { grid-template-columns:1fr 1fr; padding:0 0 16px; }
  .filter-search { grid-column:1/-1; }
  .filter-actions { grid-column:1/-1; justify-content:flex-end; }
  .filter-actions .filter-submit { flex:1; }
  .article-table { overflow-x:auto; }
  .article-table .table-head { display:none; }
  .article-table>article { min-width:0; grid-template-columns:26px minmax(0,1fr) 30px; gap:8px; padding:10px 5px; }
  .article-table>article>span:not(.status-pill),.article-table>article>time { display:none; }
  .article-table>article>.status-pill { position:absolute; right:44px; bottom:9px; min-width:66px; padding:4px 7px; }
  .story-cell { gap:10px; }
  .table-thumb { width:44px; height:44px; }
  .story-cell strong { padding-right:68px; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .table-pagination { grid-template-columns:1fr auto; }
  .table-pagination nav { justify-self:end; }
  .table-pagination>span { display:none; }
  .category-layout { grid-template-columns:1fr; }
}

/* Final annotation fixes */
.dashboard-stories-panel { border:0; border-radius:0; }
.cms-language select,
.cms-arrow-select {
  appearance:none;
  background-image:url("/assets/cms-arrow-dropdown.svg");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:12px 12px;
}
.cms-language select { padding-right:36px; }
.cms-arrow-select { padding-right:30px !important; }
.filter-select::after { display:none; }

.filter-bar { grid-template-columns:minmax(300px,1fr) 142px 142px auto; }
.filter-bar > .filter-trash { display:none; }
.table-bulk-trash {
  width:34px; height:34px; border:0; border-radius:8px; display:grid;
  place-items:center; color:var(--cms-blue); background:#f4f7ff; cursor:pointer; justify-self:end;
}
.table-bulk-trash:disabled { opacity:.35; cursor:not-allowed; }
.article-table>article.is-selected,
.article-table>article:has(.table-check input:checked) {
  border:0; border-bottom:1px solid var(--cms-line); border-radius:0; background:#F3F6FC;
}
.table-check { width:24px; height:24px; }
.table-check input { position:absolute; opacity:0; width:1px; height:1px; }
.table-check-box {
  width:22px; height:22px; border:2px solid var(--cms-blue); border-radius:6px;
  display:grid; place-items:center; background:#fff;
}
.table-check-box img { display:none; width:14px; height:14px; }
.table-check input:checked + .table-check-box { background:var(--cms-blue); }
.table-check input:checked + .table-check-box img { display:block; }
.cms-top-actions .cms-new-story:hover { border-width:2px; padding-left:27px; padding-right:27px; }
.cms-top-actions .cms-view-site:hover { opacity:.8; }

.settings-form { display:grid; grid-template-columns:240px minmax(0,1fr); max-width:900px; }
.settings-form .settings-heading { grid-column:1; align-self:start; }
.settings-form .settings-fields { grid-column:2; }
.settings-form .settings-footer { grid-column:1/-1; }
.category-edit>form {
  grid-template-columns:minmax(180px,1fr) 90px minmax(190px,.8fr) auto;
  padding:10px 56px 10px 22px; min-height:68px;
}
.category-list .category-edit { position:relative; }
.category-menu { position:absolute; right:14px; top:14px; }
.category-color { display:none !important; }
.content-language-tabs { display:flex; gap:4px; }
.content-language-tabs button {
  border:1px solid transparent; background:transparent; color:#737985; border-radius:8px;
  min-height:34px; padding:0 12px; font-size:11px; font-weight:600; cursor:pointer;
}
.content-language-tabs button.active { color:var(--cms-blue); background:#f0f5ff; border-color:#d9e5ff; }
[data-language-panel][hidden] { display:none !important; }
.rich-editor { border:1px solid #dcdfe4; border-radius:7px; overflow:hidden; background:#fff; }
.editor-toolbar { display:flex; flex-wrap:wrap; gap:4px; padding:8px; border-bottom:1px solid var(--cms-line); background:#f7f8fc; }
.editor-toolbar button { min-width:32px; height:30px; padding:0 8px; border:1px solid #d9dde5; border-radius:5px; background:#fff; color:#434852; font-size:11px; font-weight:600; cursor:pointer; }
.editor-toolbar button:hover { color:var(--cms-blue); border-color:#9ebdff; background:#f5f8ff; }
.rich-editor textarea { border:0 !important; border-radius:0 !important; box-shadow:none !important; min-height:280px; resize:vertical; }
.editor-help { display:block; padding:0 12px 10px; color:#8d929b; font-size:10px; }
@media (max-width:700px) {
  .settings-form { display:block; }
  .settings-form .settings-heading { margin-bottom:20px; }
  .category-edit>form { grid-template-columns:1fr; gap:10px; padding-right:56px; }
  .category-menu { top:10px; right:10px; }
}
