:root {
  --black: #08090a;
  --black-soft: #101214;
  --panel: #111416;
  --panel-raised: #171a1d;
  --white: #f4f4f1;
  --soft-white: #c7c9c8;
  --grey: #85898a;
  --blue: #0b6d9f;
  --blue-bright: #37b4f2;
  --lime: #25eb7b;
  --line: rgba(255, 255, 255, .12);
  --shell: min(1370px, calc(100% - 84px));
}

* { box-sizing: border-box; }
html { background: var(--black); }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--white); background: var(--black); font: 300 13px/1.45 "Space Grotesk", Arial, sans-serif; }
body.modal-open { overflow: hidden; }
body.auth-pending .admin-app { visibility: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, select, textarea { color: var(--white); }
[hidden] { display: none !important; }
.admin-shell { width: var(--shell); min-width: 0; margin-inline: auto; }

.admin-sidebar { position: fixed; z-index: 20; inset: 0 auto 0 0; display: flex; flex-direction: column; width: 238px; padding: 28px 18px 22px; border-right: 1px solid var(--line); background: #0b0d0f; }
.admin-app { min-height: 100vh; margin-left: 238px; }
.sidebar-brand { padding: 0 11px 30px; }
.sidebar-label { margin: 0 11px 10px; color: #5d6365; font-size: 8px; letter-spacing: .18em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 4px; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 41px; padding: 0 11px; color: var(--grey); font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.sidebar-nav a > span:last-child { min-width: 0; }
.sidebar-nav a:hover, .sidebar-nav a.is-current { color: var(--white); border-left: 2px solid var(--blue-bright); background: rgba(55,180,242,.08); }
.nav-symbol { width: 17px; color: var(--blue-bright); font-size: 16px; text-align: center; }
.sidebar-bottom { display: grid; gap: 15px; margin-top: auto; }
.sidebar-add { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 38px; padding: 9px 11px; color: var(--black); background: var(--white); font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; transition: color .2s ease, background .2s ease; }
.sidebar-add span { color: var(--blue); font-size: 15px; }
.sidebar-add:hover, .sidebar-add.is-current { color: var(--white); background: var(--blue); }
.sidebar-add:hover span, .sidebar-add.is-current span { color: var(--lime); }
.sidebar-home { display: block; min-width: 0; padding: 0 11px; color: var(--grey); font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; }
.sidebar-home span { margin-left: 6px; color: var(--blue-bright); font-size: 13px; }
.sidebar-home:hover { color: var(--white); }
.sidebar-logout { width: max-content; max-width: 100%; padding: 0 11px; color: #a96b67; border: 0; background: transparent; font-size: 9px; line-height: 1.35; overflow-wrap: anywhere; text-align: left; }
.sidebar-logout span { margin-left: 6px; color: #d5867e; }
.sidebar-logout:hover { color: #ffaaa3; }

.admin-header { border-bottom: 1px solid var(--line); background: rgba(8, 9, 10, .95); }
.admin-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 74px; padding-block: 12px; }
.admin-heading-row { display: flex; flex: 1 1 280px; align-items: center; min-width: 0; gap: 12px; }
.admin-heading-row > div { min-width: 0; }
.sidebar-toggle { display: none; width: 34px; height: 34px; padding: 6px; border: 1px solid var(--line); background: transparent; }
.sidebar-toggle span { display: block; width: 20px; height: 1px; margin: 4px auto; background: var(--white); transition: transform .2s ease, opacity .2s ease; }
.sidebar-overlay { display: none; }
.admin-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--white); font-size: 16px; font-weight: 500; letter-spacing: -.05em; line-height: .8; }
.admin-brand img { width: 30px; }
.admin-brand small { display: block; margin-top: 5px; color: #aeb1b1; font-size: 6px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; }
.admin-nav-meta { display: flex; flex: 1 1 220px; align-items: center; justify-content: flex-end; min-width: 0; gap: 10px 20px; color: var(--grey); font-size: 10px; }
.online-dot { display: inline-flex; align-items: center; gap: 7px; }
.online-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(37, 235, 123, .7); }
.view-site-link { max-width: 100%; padding: 8px 12px; color: var(--soft-white); line-height: 1.35; overflow-wrap: anywhere; border: 1px solid rgba(255, 255, 255, .35); transition: border-color .2s ease, color .2s ease, background .2s ease; }
.view-site-link span { margin-left: 12px; color: var(--blue-bright); font-size: 14px; }
.view-site-link:hover { color: var(--white); border-color: var(--blue-bright); background: rgba(55, 180, 242, .06); }

.admin-main { padding: 73px 0 110px; }
.admin-page-title { margin: 5px 0 0; color: var(--white); font-size: 17px; font-weight: 400; line-height: 1.15; letter-spacing: -.03em; overflow-wrap: anywhere; text-transform: uppercase; }
.admin-hero { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 49px; }
.admin-kicker { margin: 0 0 12px; color: var(--blue-bright); font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }
.admin-hero h1 { max-width: 700px; margin: 0; font-size: clamp(48px, 6.4vw, 86px); font-weight: 500; line-height: .9; letter-spacing: -.06em; text-transform: uppercase; }
.admin-hero h2 { max-width: 700px; margin: 0; color: var(--white); font-size: clamp(48px, 6.4vw, 86px); font-weight: 500; line-height: .9; letter-spacing: -.06em; text-transform: uppercase; }
.admin-hero h2 em { color: var(--blue-bright); font-style: normal; }
.admin-hero h1 em { color: var(--blue-bright); font-style: normal; }
.admin-hero-copy { max-width: 400px; margin: 23px 0 0; color: var(--soft-white); font-size: 11px; line-height: 1.55; }
.workspace-card { display: flex; align-items: center; gap: 14px; width: 250px; padding: 18px; border: 1px solid var(--line); background: linear-gradient(140deg, rgba(55, 180, 242, .12), rgba(255, 255, 255, .025)); }
.workspace-icon { display: grid; flex: 0 0 33px; width: 33px; height: 33px; place-items: center; color: var(--black); background: var(--lime); font-size: 18px; }
.workspace-card small, .workspace-card strong, .workspace-card p { display: block; }
.workspace-card small { margin-bottom: 3px; color: var(--grey); font-size: 8px; text-transform: uppercase; letter-spacing: .14em; }
.workspace-card strong { font-size: 12px; font-weight: 500; }
.workspace-card p { margin: 5px 0 0; color: var(--grey); font-size: 9px; line-height: 1.3; }

.stats-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 12px; margin-bottom: 36px; }
.stat-card { min-height: 115px; padding: 17px 18px; border: 1px solid var(--line); background: var(--panel); }
.stat-card span, .stat-card small { display: block; color: var(--grey); font-size: 9px; }
.stat-card strong { display: block; margin: 8px 0 7px; color: var(--white); font-size: 38px; font-weight: 400; line-height: 1; letter-spacing: -.07em; }
.stat-card-featured { border-color: rgba(55, 180, 242, .45); background: linear-gradient(135deg, rgba(11, 109, 159, .36), rgba(16, 18, 20, .8)); }
.stat-card-featured strong { color: var(--blue-bright); }

.content-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.filter-tabs { display: flex; gap: 5px; }
.filter-tab { padding: 8px 10px; color: var(--grey); border: 1px solid transparent; background: transparent; font-size: 10px; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.filter-tab b { margin-left: 4px; color: inherit; font-size: 9px; font-weight: 400; }
.filter-tab:hover { color: var(--soft-white); }
.filter-tab.is-active { color: var(--white); border-color: var(--line); background: var(--panel); }
.filter-tab.is-active b { color: var(--blue-bright); }
.toolbar-actions { display: flex; gap: 10px; }
.search-box { display: flex; align-items: center; width: 205px; height: 36px; padding: 0 10px; color: var(--grey); border: 1px solid var(--line); background: var(--panel); }
.search-box span { margin-right: 6px; font-size: 19px; line-height: 1; }
.search-box input { width: 100%; padding: 0; color: var(--white); border: 0; outline: 0; background: transparent; font-size: 10px; }
.search-box input::placeholder { color: #686d6f; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid var(--white); font-size: 10px; transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease; }
.primary-button { color: var(--black); background: var(--white); }
.primary-button span { color: var(--blue); font-size: 15px; line-height: 1; }
.primary-button:hover { color: var(--white); background: transparent; transform: translateY(-1px); }
.secondary-button { color: var(--soft-white); border-color: rgba(255, 255, 255, .28); background: transparent; }
.secondary-button:hover { color: var(--white); border-color: var(--white); background: rgba(255, 255, 255, .05); }

.admin-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, .76fr); align-items: start; gap: 14px; }
.panel-surface { border: 1px solid var(--line); background: var(--panel); }
.posts-panel { min-height: 720px; padding: 26px 25px; }
.editor-panel { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow-y: auto; padding: 26px 25px; scrollbar-color: rgba(255, 255, 255, .23) transparent; scrollbar-width: thin; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.panel-heading .admin-kicker { margin-bottom: 8px; }
.panel-heading h2 { margin: 0; font-size: 26px; font-weight: 400; letter-spacing: -.04em; text-transform: uppercase; }
.results-label { color: var(--grey); font-size: 9px; }
.editor-heading { align-items: start; margin-bottom: 25px; }
.icon-button, .modal-close { width: 30px; height: 30px; padding: 0; color: var(--grey); border: 1px solid var(--line); background: transparent; font-size: 17px; line-height: 1; }
.icon-button:hover, .modal-close:hover { color: var(--white); border-color: var(--white); }

.post-list { display: grid; gap: 8px; }
.post-item { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 112px; padding: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .018); transition: border-color .2s ease, background .2s ease; }
.post-item:hover { border-color: rgba(55, 180, 242, .55); background: rgba(55, 180, 242, .045); }
.post-thumb { width: 104px; height: 90px; overflow: hidden; background: #202426; }
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-thumb-empty { display: grid; place-items: center; height: 100%; color: #606769; font-size: 9px; letter-spacing: .12em; text-align: center; text-transform: uppercase; }
.post-item-main { min-width: 0; }
.post-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--grey); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.post-type { color: var(--blue-bright); }
.post-item h3 { overflow: hidden; margin: 0 0 6px; color: var(--white); font-size: 16px; font-weight: 400; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.post-item-excerpt { display: -webkit-box; overflow: hidden; margin: 0; color: var(--grey); font-size: 10px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.status-badge { display: inline-flex; align-items: center; min-height: 19px; padding: 0 7px; color: var(--soft-white); border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .05); font-size: 8px; white-space: nowrap; }
.status-published { color: var(--lime); border-color: rgba(37, 235, 123, .27); background: rgba(37, 235, 123, .08); }
.status-in-development, .status-coming-soon { color: var(--blue-bright); border-color: rgba(55, 180, 242, .25); background: rgba(55, 180, 242, .07); }
.status-featured { color: #ffd84d; border-color: rgba(255, 216, 77, .3); background: rgba(255, 216, 77, .08); }
.post-order-label { color: rgba(255, 255, 255, .35); white-space: nowrap; }
.post-item-actions { display: flex; align-items: center; gap: 4px; }
.post-action { width: 29px; height: 29px; padding: 0; color: var(--grey); border: 1px solid transparent; background: transparent; font-size: 14px; }
.post-action:hover { color: var(--white); border-color: var(--line); background: rgba(255, 255, 255, .05); }
.post-action[data-action="delete"]:hover { color: #ff766e; border-color: rgba(255, 118, 110, .3); }
.empty-state { padding: 92px 20px; color: var(--grey); text-align: center; }
.empty-mark { margin-bottom: 12px; color: var(--blue-bright); font-size: 32px; }
.empty-state h3 { margin: 0 0 8px; color: var(--white); font-size: 16px; font-weight: 400; text-transform: none; }
.empty-state p { margin: 0 0 17px; font-size: 10px; }
.text-button { padding: 0; color: var(--soft-white); border: 0; background: transparent; font-size: 10px; text-decoration: underline; text-underline-offset: 4px; }
.text-button span { margin-left: 9px; color: var(--blue-bright); font-size: 15px; text-decoration: none; }
.text-button:hover { color: var(--blue-bright); }

.post-form { display: grid; gap: 20px; }
.type-fieldset { margin: 0; padding: 0; border: 0; }
.type-fieldset legend { margin-bottom: 8px; color: var(--grey); font-size: 9px; }
.type-switch { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5px; }
.type-option { min-height: 35px; padding: 0 10px; color: var(--grey); border: 1px solid var(--line); background: rgba(255, 255, 255, .018); font-size: 10px; text-align: left; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.type-option span { margin-right: 6px; color: var(--blue-bright); }
.type-option.is-active { color: var(--white); border-color: rgba(55, 180, 242, .55); background: rgba(55, 180, 242, .1); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 10px; }
.field { display: grid; align-content: start; gap: 7px; min-width: 0; color: var(--soft-white); font-size: 9px; }
.field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.field > span small, .section-label small { color: var(--grey); font-size: 8px; font-weight: 300; }
.field b { color: var(--blue-bright); font-weight: 400; }
.field-span-2 { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 11px; border: 1px solid rgba(255, 255, 255, .14); outline: none; border-radius: 0; background: #0d1012; font-size: 10px; transition: border-color .2s ease, background .2s ease; }
.field input, .field select { height: 36px; }
.field textarea { min-height: 76px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #5d6365; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue-bright); background: #11181b; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--grey) 50%), linear-gradient(135deg, var(--grey) 50%, transparent 50%); background-position: calc(100% - 15px) 15px, calc(100% - 11px) 15px; background-repeat: no-repeat; background-size: 4px 4px, 4px 4px; }
.form-section { padding-top: 17px; border-top: 1px solid rgba(255, 255, 255, .09); }
.section-label { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 11px; color: var(--soft-white); font-size: 9px; }
.image-upload { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 13px; align-items: start; }
.cover-preview { width: 116px; height: 88px; overflow: hidden; background: #202426; }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #62686a; font-size: 9px; letter-spacing: .1em; line-height: 1.4; text-align: center; text-transform: uppercase; }
.upload-controls { display: grid; gap: 7px; min-width: 0; }
.upload-button { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; min-height: 33px; padding: 0 10px; color: var(--black); background: var(--soft-white); font-size: 9px; cursor: pointer; }
.upload-button span { color: var(--blue); font-size: 14px; }
.upload-button:hover { color: var(--white); background: var(--blue); }
.upload-controls input[type="file"] { display: none; }
.compact-field { gap: 5px; }
.compact-field input { height: 33px; }
.field-note, .form-hint { color: var(--grey); font-size: 8px; line-height: 1.4; }
.link-section { display: grid; gap: 11px; }
.gallery-section { display: grid; gap: 11px; }
.gallery-upload-row { display: flex; gap: 8px; }
.gallery-upload-button { width: max-content; min-width: 190px; }
.gallery-section input[type="file"] { display: none; }
.gallery-preview { display: flex; flex-wrap: wrap; gap: 7px; }
.gallery-preview-item { position: relative; width: 72px; height: 53px; overflow: hidden; background: #202426; }
.gallery-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-preview-item span { position: absolute; right: 3px; bottom: 3px; padding: 1px 3px; color: var(--white); background: rgba(0,0,0,.65); font-size: 7px; }
.gallery-empty { color: var(--grey); font-size: 8px; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.platform-options { display: flex; flex-wrap: wrap; gap: 7px; }
.platform-options label { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 8px; color: var(--grey); border: 1px solid rgba(255, 255, 255, .12); font-size: 8px; cursor: pointer; }
.platform-options label:has(input:checked) { color: var(--blue-bright); border-color: rgba(55, 180, 242, .5); background: rgba(55, 180, 242, .08); }
.platform-options input, .featured-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.platform-options label span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border: 1px solid var(--grey); border-radius: 50%; vertical-align: -1px; }
.platform-options label:has(input:checked) span::before { border-color: var(--blue-bright); background: var(--blue-bright); box-shadow: inset 0 0 0 2px #101214; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); }
.featured-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--grey); font-size: 9px; cursor: pointer; }
.fake-check { display: grid; width: 16px; height: 16px; place-items: center; color: transparent; border: 1px solid var(--grey); font-size: 10px; }
.featured-toggle:has(input:checked) { color: var(--white); }
.featured-toggle:has(input:checked) .fake-check { color: var(--black); border-color: var(--lime); background: var(--lime); }
.form-actions { display: flex; gap: 8px; }
.form-hint { margin: -8px 0 0; text-align: right; }

.create-main { padding-top: 54px; }
.create-intro { max-width: 760px; margin: 0 auto 28px; }
.post-back-link { display: inline-flex; margin-bottom: 34px; color: var(--grey); font-size: 9px; }
.post-back-link:hover { color: var(--blue-bright); }
.create-intro h2 { margin: 0; color: var(--white); font-size: clamp(42px, 5.5vw, 70px); font-weight: 500; line-height: .9; letter-spacing: -.06em; text-transform: uppercase; }
.create-intro h2 em { color: var(--blue-bright); font-style: normal; }
.create-intro > p:last-child { max-width: 380px; margin: 18px 0 0; color: var(--soft-white); font-size: 11px; }
.create-editor { max-width: 760px; margin: 0 auto; padding: 28px 30px; }
.create-editor .panel-heading h3 { margin: 0; font-size: 26px; font-weight: 400; letter-spacing: -.04em; text-transform: uppercase; }
.create-editor .post-form { max-width: 100%; }
.settings-view { max-width: 850px; margin: 25px auto 0; }
.settings-view h2 { margin: 0 0 30px; font-size: clamp(38px, 5vw, 65px); font-weight: 400; letter-spacing: -.06em; text-transform: uppercase; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.settings-card { min-height: 215px; padding: 24px; border: 1px solid var(--line); background: var(--panel); }
.settings-card.settings-danger { border-color: rgba(255,118,110,.22); }
.settings-icon { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 22px; color: var(--black); background: var(--blue-bright); font-size: 19px; }
.settings-danger .settings-icon { color: var(--white); background: #8e4945; }
.settings-card h3 { margin: 0 0 9px; font-size: 17px; font-weight: 400; text-transform: uppercase; }
.settings-card p { max-width: 310px; min-height: 61px; margin: 0 0 20px; color: var(--grey); font-size: 10px; line-height: 1.55; }
.settings-status { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); font-size: 9px; }
.settings-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

.banners-view { margin: 25px auto 0; }
.banner-page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.banner-page-heading h2 { margin: 0; font-size: clamp(38px, 5vw, 65px); font-weight: 400; letter-spacing: -.06em; text-transform: uppercase; }
.banner-page-heading p:last-child { max-width: 430px; margin: 15px 0 0; color: var(--grey); font-size: 10px; line-height: 1.5; }
.banner-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr); align-items: start; gap: 14px; }
.banners-panel { min-height: 560px; padding: 26px 25px; }
.banner-editor { position: sticky; top: 18px; padding: 26px 25px; }
.banner-list { display: grid; gap: 8px; }
.banner-item { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 118px; padding: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .018); transition: border-color .2s ease, background .2s ease; }
.banner-item:hover { border-color: rgba(55, 180, 242, .55); background: rgba(55, 180, 242, .045); }
.banner-thumb { width: 140px; height: 96px; overflow: hidden; background: #202426; }
.banner-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-item-main { min-width: 0; }
.banner-item-main h3 { overflow: hidden; margin: 0 0 6px; color: var(--white); font-size: 16px; font-weight: 400; letter-spacing: -.03em; text-overflow: ellipsis; white-space: nowrap; }
.banner-form { display: grid; gap: 17px; }
.banner-form .form-grid { gap: 12px 10px; }

.toast { position: fixed; z-index: 50; right: 22px; bottom: 22px; max-width: 300px; padding: 12px 14px; color: var(--black); background: var(--lime); font-size: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { color: var(--white); background: #b64d48; }

.preview-modal { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .78); backdrop-filter: blur(5px); }
.preview-card { position: relative; display: grid; grid-template-columns: minmax(250px, .88fr) minmax(300px, 1.12fr); width: min(920px, 100%); max-height: min(720px, calc(100vh - 44px)); overflow: auto; border: 1px solid rgba(255, 255, 255, .2); background: var(--panel); box-shadow: 0 25px 80px rgba(0, 0, 0, .5); }
.modal-close { position: absolute; z-index: 2; top: 12px; right: 12px; color: var(--white); border-color: rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .3); }
.preview-cover { min-height: 430px; background: #202426 center / cover no-repeat; }
.preview-content { padding: 42px 36px 32px; }
.preview-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--blue-bright); font-size: 8px; letter-spacing: .14em; text-transform: uppercase; }
.preview-meta span:not(:first-child) { padding-left: 8px; color: var(--grey); border-left: 1px solid var(--line); }
.preview-content h2 { max-width: 530px; margin: 0 0 18px; font-size: clamp(32px, 4vw, 55px); font-weight: 400; line-height: .95; letter-spacing: -.06em; text-transform: uppercase; }
.preview-excerpt { margin: 0 0 22px; color: var(--soft-white); font-size: 12px; line-height: 1.55; }
.preview-body { color: var(--grey); font-size: 10px; line-height: 1.65; }
.preview-body p { margin: 0 0 13px; }
.preview-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.preview-link { padding: 7px 9px; color: var(--soft-white); border: 1px solid var(--line); font-size: 8px; }
.preview-link:hover { color: var(--white); border-color: var(--blue-bright); }
.preview-footer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 1100px) {
  :root { --shell: min(100% - 48px, 850px); }
  .admin-sidebar { width: 208px; }
  .admin-app { margin-left: 208px; }
  .admin-workspace { grid-template-columns: 1fr; }
  .editor-panel { position: static; max-height: none; overflow: visible; }
  .banner-workspace { grid-template-columns: 1fr; }
  .banner-editor { position: static; }
}

@media (max-width: 900px) {
  .admin-nav-meta { flex-basis: 100%; justify-content: flex-start; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 32px); }
  body.sidebar-open { overflow: hidden; }
  .admin-sidebar { position: fixed; z-index: 31; inset: 0 auto 0 0; display: flex; width: min(285px, 84vw); padding: 22px 17px; border-right: 1px solid var(--line); border-bottom: 0; transform: translateX(-105%); transition: transform .25s ease; }
  body.sidebar-open .admin-sidebar { transform: translateX(0); }
  .sidebar-overlay { position: fixed; z-index: 30; inset: 0; display: block; visibility: hidden; background: rgba(0,0,0,.7); opacity: 0; transition: opacity .25s ease, visibility .25s ease; }
  body.sidebar-open .sidebar-overlay { visibility: visible; opacity: 1; }
  .admin-app { margin-left: 0; }
  .sidebar-toggle { display: block; }
  .sidebar-brand { padding: 0 0 30px; }
  .sidebar-label { display: block; }
  .sidebar-nav { display: grid; gap: 4px; }
  .sidebar-nav a { flex: initial; min-height: 41px; padding: 0 11px; font-size: 10px; }
  .sidebar-nav a.is-current { border-left: 2px solid var(--blue-bright); border-bottom: 0; }
  .nav-symbol { font-size: 16px; }
  .sidebar-bottom { display: grid; align-items: initial; gap: 15px; margin-top: auto; }
  .sidebar-add { min-height: 38px; padding: 9px 11px; }
  .sidebar-home { padding: 0 11px; font-size: 9px; }
  .sidebar-logout { padding: 0 11px; }
  .admin-nav { min-height: 64px; height: auto; padding-block: 10px; }
  .admin-nav-meta { flex-basis: 100%; justify-content: flex-end; gap: 10px; }
  .online-dot { display: none; }
  .view-site-link { padding: 7px 8px; font-size: 8px; }
  .view-site-link span { margin-left: 5px; }
  .admin-main { padding-top: 48px; }
  .admin-hero { display: block; margin-bottom: 35px; }
  .admin-hero h1 { font-size: clamp(46px, 15vw, 70px); }
  .admin-hero-copy { margin-top: 20px; }
  .workspace-card { width: 100%; margin-top: 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 28px; }
  .stat-card { min-height: 95px; padding: 12px; }
  .stat-card strong { font-size: 29px; }
  .content-toolbar { display: block; }
  .filter-tabs { margin-bottom: 11px; }
  .toolbar-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .search-box { width: auto; }
  .posts-panel, .editor-panel { padding: 21px 15px; }
  .posts-panel { min-height: 500px; }
  .post-item { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .post-thumb { width: 72px; height: 72px; }
  .post-item-actions { position: absolute; top: 7px; right: 7px; }
  .post-item h3 { padding-right: 58px; font-size: 13px; }
  .post-item-excerpt { font-size: 9px; }
  .post-item-meta { margin-bottom: 5px; font-size: 7px; }
  .form-grid, .link-grid { grid-template-columns: 1fr; }
  .field-span-2 { grid-column: auto; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .form-actions { width: 100%; }
  .form-actions .primary-button, .form-actions .secondary-button { flex: 1; }
  .form-hint { text-align: left; }
  .create-main { padding-top: 38px; }
  .create-intro { margin-bottom: 22px; }
  .post-back-link { margin-bottom: 25px; }
  .create-editor { padding: 21px 15px; }
  .settings-grid { grid-template-columns: 1fr; }
  .banner-page-heading { display: block; }
  .banner-page-heading .primary-button { width: 100%; margin-top: 20px; }
  .banner-workspace { grid-template-columns: 1fr; }
  .banner-editor { position: static; }
  .banners-panel, .banner-editor { padding: 21px 15px; }
  .banner-item { grid-template-columns: 72px minmax(0, 1fr); gap: 10px; }
  .banner-thumb { width: 72px; height: 72px; }
  .banner-item .post-item-actions { position: absolute; top: 7px; right: 7px; }
  .banner-item-main h3 { padding-right: 58px; font-size: 13px; }
  .banner-item-main .post-item-meta { margin-bottom: 5px; font-size: 7px; }
  .preview-modal { padding: 10px; }
  .preview-card { display: block; max-height: calc(100vh - 20px); }
  .preview-cover { min-height: 190px; max-height: 34vh; }
  .preview-content { padding: 27px 20px 23px; }
  .preview-content h2 { font-size: 35px; }
}
