: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); }
.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; } }
