:root {
  --navy-950: #041426;
  --navy-900: #06213a;
  --navy-800: #093552;
  --navy-700: #0b5573;
  --cyan: #21c8dd;
  --cyan-soft: #b8f5fb;
  --acid: #b6ff32;
  --paper: #f3f7f8;
  --white: #fff;
  --ink: #0b263d;
  --muted: #6f8290;
  --line: #d8e2e6;
  --danger: #e94d45;
  --shadow: 0 28px 70px rgba(4, 26, 43, .14);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, "Microsoft YaHei", "PingFang SC", sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(420px, .78fr); background: var(--navy-950); }
.login-visual { position: relative; min-height: 100vh; overflow: hidden; padding: 50px clamp(42px, 6vw, 108px); color: #fff; background: linear-gradient(135deg, rgba(5, 34, 57, .78), rgba(3, 17, 34, .96)), radial-gradient(circle at 76% 38%, rgba(33, 200, 221, .42), transparent 35%), #061c31; display: flex; flex-direction: column; }
.login-visual::before { content: ""; position: absolute; inset: auto -15% -26% 8%; height: 64%; border-radius: 50%; border: 1px solid rgba(101, 218, 232, .25); box-shadow: 0 0 0 90px rgba(15, 108, 135, .08), 0 0 0 190px rgba(15, 108, 135, .05); transform: rotate(-9deg); }
.login-visual::after { content: ""; position: absolute; width: 420px; height: 420px; right: 9%; top: 22%; background: linear-gradient(135deg, transparent 47%, rgba(182, 255, 50, .24) 48%, transparent 50%), linear-gradient(45deg, transparent 47%, rgba(33, 200, 221, .25) 48%, transparent 50%); opacity: .38; transform: rotate(8deg); }
.login-visual__grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(to bottom right, #000, transparent 72%); }
.login-brand, .sidebar-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; color: inherit; text-decoration: none; }
.brand-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid currentColor; color: var(--cyan); font-size: 15px; font-weight: 900; letter-spacing: -.03em; transform: skew(-8deg); }
.login-brand b, .sidebar-brand b { display: block; font-size: 18px; letter-spacing: .04em; }
.login-brand small, .sidebar-brand small { display: block; margin-top: 3px; color: #82a1b5; font-size: 10px; letter-spacing: .17em; }
.login-message { position: relative; z-index: 1; margin: auto 0; max-width: 810px; }
.login-message > p, .login-card__index, .editor-card__head span, .live-preview > span, .section-heading span, .upload-card > span, .media-result > span { color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.login-message h1 { margin: 26px 0; font-size: clamp(48px, 5.5vw, 88px); line-height: 1.04; letter-spacing: -.055em; }
.login-message h1 em { color: var(--cyan); font-style: normal; }
.login-message > span { display: block; max-width: 660px; color: #b5c8d6; font-size: 17px; line-height: 1.8; }
.login-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; color: #7593a8; font-size: 10px; letter-spacing: .18em; }
.login-foot i { width: 34px; height: 2px; background: var(--acid); }
.login-panel { min-height: 100vh; padding: 48px clamp(30px, 5vw, 86px); display: grid; place-items: center; background: #f8fbfc; }
.login-card { width: min(440px, 100%); }
.login-card h2 { margin: 18px 0 8px; font-size: 40px; letter-spacing: -.04em; }
.login-card > p { margin: 0 0 36px; color: var(--muted); line-height: 1.7; }
.login-card label { display: block; margin: 18px 0; }
.login-card label > span, .field > span { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 800; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
input { height: 52px; padding: 0 15px; }
textarea { padding: 14px 15px; resize: vertical; line-height: 1.65; }
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(33, 200, 221, .12); }
.primary-button { width: 100%; height: 56px; margin-top: 12px; padding: 0 18px 0 22px; border: 0; background: var(--navy-900); color: #fff; display: flex; align-items: center; justify-content: space-between; font-weight: 900; }
.primary-button:hover { background: #0b3b5b; }
.primary-button b { color: var(--acid); font-size: 23px; }
.primary-button:disabled, .save-button:disabled { opacity: .55; cursor: wait; }
.form-message { display: block; min-height: 24px; margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-message.is-error { color: var(--danger); }
.form-message.is-success { color: #177965; }
.login-card details { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 18px; color: var(--muted); font-size: 13px; }
.login-card summary { color: var(--ink); cursor: pointer; font-weight: 800; }

.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 254px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 20px 22px; color: #fff; background: var(--navy-950); display: flex; flex-direction: column; }
.sidebar-brand { padding: 0 10px 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.sidebar-brand .brand-mark { width: 38px; height: 38px; font-size: 13px; }
.sidebar-brand b { font-size: 14px; }
.sidebar nav { min-height: 0; display: grid; gap: 8px; margin-top: 28px; overflow-y: auto; scrollbar-width: thin; }
.sidebar nav button { position: relative; width: 100%; height: 52px; padding: 0 13px; border: 1px solid transparent; background: transparent; color: #8fa9ba; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 11px; text-align: left; }
.sidebar nav button span { font-size: 14px; font-weight: 800; }
.sidebar nav button i { font-style: normal; font-size: 10px; color: #5f788a; }
.sidebar nav button:hover { color: #fff; background: rgba(255,255,255,.05); }
.sidebar nav button.is-active { color: #fff; border-color: rgba(33, 200, 221, .28); background: rgba(33, 200, 221, .12); }
.sidebar nav button.is-active::before { content: ""; position: absolute; left: -21px; width: 3px; height: 25px; background: var(--cyan); }
.sidebar nav button.is-active i { color: var(--acid); }
.sidebar-state { margin-top: auto; padding: 18px 10px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 11px; }
.sidebar-state > span { width: 9px; height: 9px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(182,255,50,.1); }
.sidebar-state b, .sidebar-state small { display: block; }
.sidebar-state b { font-size: 12px; }
.sidebar-state small { margin-top: 3px; color: #6e899c; font-size: 9px; letter-spacing: .08em; }
.workspace { min-width: 0; }
.topbar { min-height: 92px; padding: 18px clamp(24px, 4vw, 62px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar > div:first-child > span { color: #69808f; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.topbar h1 { margin: 5px 0 0; font-size: 22px; letter-spacing: -.025em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-actions a, .topbar-actions button { height: 40px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; }
.topbar-actions a:hover, .topbar-actions button:hover { border-color: var(--cyan); }
.topbar-actions svg { width: 16px; height: 16px; }
main { padding: clamp(24px, 3vw, 46px) clamp(24px, 4vw, 62px) 70px; }
.admin-panel { max-width: 1440px; margin: 0 auto; }
.status-banner { position: relative; overflow: hidden; min-height: 230px; padding: clamp(28px, 4vw, 55px); color: #fff; background: linear-gradient(118deg, rgba(5,31,52,.97), rgba(8,75,97,.9)), radial-gradient(circle at 78% 30%, rgba(33,200,221,.62), transparent 34%); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.status-banner::after { content: ""; position: absolute; width: 360px; height: 360px; right: 4%; top: -78%; border: 1px solid rgba(255,255,255,.18); transform: rotate(28deg); box-shadow: 55px 55px 0 rgba(33,200,221,.07), 110px 110px 0 rgba(182,255,50,.04); }
.status-banner > * { position: relative; z-index: 1; }
.status-banner span { color: var(--acid); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.status-banner h2 { max-width: 760px; margin: 14px 0 10px; font-size: clamp(27px, 3vw, 44px); letter-spacing: -.045em; }
.status-banner p { margin: 0; color: #b3cbd8; line-height: 1.7; }
.status-banner a { flex: 0 0 auto; padding: 16px 20px; background: var(--cyan); color: var(--navy-950); text-decoration: none; font-size: 13px; font-weight: 900; }
.status-banner a b { margin-left: 20px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-top: 0; }
.metric-grid article { min-height: 170px; padding: 25px 28px; border-right: 1px solid var(--line); }
.metric-grid article:last-child { border-right: 0; }
.metric-grid article > span { color: #7d919e; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.metric-grid strong { display: block; margin: 16px 0 3px; font-size: 48px; color: var(--navy-800); letter-spacing: -.06em; }
.metric-grid .metric-word { margin-top: 28px; font-size: 28px; color: #1594a6; }
.metric-grid p, .metric-grid i { margin: 0; font-style: normal; }
.metric-grid p { font-size: 14px; font-weight: 900; }
.metric-grid i { display: block; margin-top: 9px; color: var(--muted); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.quick-card { min-height: 210px; padding: 30px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; justify-content: space-between; }
.quick-card--cyan { background: #dff9fc; border-color: #b6ecf2; }
.quick-card span { color: #258ca0; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.quick-card h3 { margin: 14px 0 7px; font-size: 25px; }
.quick-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.quick-card button { align-self: flex-start; padding: 0; border: 0; background: none; color: var(--ink); font-size: 13px; font-weight: 900; }
.recent-block { margin-top: 42px; }
.section-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.section-heading h2 { margin: 7px 0 0; font-size: 30px; letter-spacing: -.035em; }
.section-heading p { margin: 7px 0 0; color: var(--muted); }
.section-heading > button { padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); background: none; color: var(--ink); font-size: 12px; font-weight: 900; }
.recent-list { border-top: 2px solid var(--ink); background: #fff; }
.recent-item { min-height: 82px; padding: 16px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: 20px; }
.recent-item time { color: #608091; font-size: 12px; font-weight: 900; }
.recent-item b { font-size: 14px; }
.recent-item span { color: var(--muted); font-size: 11px; }
.recent-item i { padding: 5px 9px; border-radius: 999px; background: #e8f8f4; color: #12715d; font-size: 10px; font-style: normal; font-weight: 900; }
.recent-item i.is-draft { background: #f2f3f4; color: #71808a; }

.editor-layout, .media-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); gap: 24px; align-items: start; }
.editor-card, .live-preview, .upload-card, .media-result { border: 1px solid var(--line); background: #fff; }
.editor-card { padding: clamp(24px, 3vw, 40px); }
.editor-card__head { padding-bottom: 25px; border-bottom: 1px solid var(--line); display: flex; align-items: start; justify-content: space-between; gap: 25px; }
.editor-card__head h2, .upload-card h2, .media-result h2 { margin: 8px 0; font-size: 29px; }
.editor-card__head p, .upload-card p { margin: 0; color: var(--muted); }
.save-button, .primary-inline { min-height: 44px; padding: 0 18px; border: 0; background: var(--navy-900); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; font-weight: 900; }
.save-button:hover, .primary-inline:hover { background: #0c4262; }
.save-button svg, .primary-inline svg { width: 16px; height: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.field--wide { grid-column: 1 / -1; }
.field small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.content-groups { display: grid; gap: 14px; margin-top: 26px; }
.content-group { border: 1px solid var(--line); background: #fbfdfe; }
.content-group[open] { background: #fff; box-shadow: 0 10px 26px rgba(7,39,60,.05); }
.content-group summary { min-height: 72px; padding: 16px 20px; display: grid; grid-template-columns: 34px 1fr auto; gap: 13px; align-items: center; cursor: pointer; list-style: none; }
.content-group summary::-webkit-details-marker { display: none; }
.content-group summary::after { content: "+"; grid-column: 3; grid-row: 1 / span 2; color: var(--cyan); font-size: 23px; font-weight: 400; }
.content-group[open] summary::after { content: "−"; }
.content-group summary > span { grid-row: 1 / span 2; color: var(--cyan); font: 900 11px Arial, sans-serif; letter-spacing: .12em; }
.content-group summary b { color: var(--navy-900); font-size: 15px; }
.content-group summary small { grid-column: 2; color: var(--muted); font-size: 10px; }
.content-group .form-grid { margin-top: 0; padding: 23px 20px 25px; border-top: 1px solid var(--line); }
.live-preview { position: sticky; top: 115px; overflow: hidden; padding: 28px; color: #fff; background: var(--navy-950); box-shadow: var(--shadow); }
.live-preview > span b { color: #fff; }
.preview-panel { margin-top: 22px; animation: preview-in .22s ease both; }
.preview-panel[hidden] { display: none !important; }
@keyframes preview-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.preview-brand { padding: 15px 18px; color: var(--navy-900); background: #eef8fa; }
.preview-brand b, .preview-brand small { display: block; }
.preview-brand b { font-size: 14px; }
.preview-brand small { margin-top: 3px; color: #63808d; font-size: 7px; letter-spacing: .08em; }
.preview-hero { min-height: 300px; padding: 35px 28px; background: radial-gradient(circle at 85% 20%, rgba(33,200,221,.42), transparent 40%), linear-gradient(145deg, #0d4866, #061b31); display: flex; flex-direction: column; justify-content: center; }
.preview-hero small { color: var(--acid); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.preview-hero h3 { margin: 18px 0; font-size: clamp(26px, 2.5vw, 42px); line-height: 1.08; letter-spacing: -.05em; }
.preview-hero h3 span, .preview-hero h3 em { display: block; }
.preview-hero h3 em { color: var(--cyan); font-style: normal; }
.preview-hero p { margin: 0; color: #acc6d4; font-size: 12px; line-height: 1.7; }
.preview-tags { margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.preview-tags li { padding: 6px 8px; border: 1px solid rgba(255,255,255,.28); color: #dcecf3; font-size: 9px; }
.preview-news { padding: 20px; background: #eef8fa; color: var(--ink); }
.preview-news > span { color: #3aa3b3; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.preview-news b { display: block; margin-top: 7px; font-size: 18px; }
.preview-news p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.preview-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.preview-actions b, .preview-actions span { padding: 7px 9px; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 8px; font-weight: 800; }
.preview-actions b { border-color: var(--cyan); background: rgba(33,200,221,.2); }
.preview-news-page { padding: 28px 24px; color: var(--ink); background: #f4fafb; }
.preview-news-page > span, .preview-page-copy > span, .preview-focus > small, .preview-footer-card > small { color: var(--cyan); font-size: 8px; font-weight: 900; letter-spacing: .13em; }
.preview-news-page h3 { margin: 10px 0 7px; font-size: 25px; }
.preview-news-page p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.preview-news-lines { margin-top: 24px; display: grid; gap: 8px; }
.preview-news-lines i { height: 28px; border-top: 1px solid #bed2d9; border-bottom: 1px solid #e0eaed; background: linear-gradient(90deg, var(--cyan) 0 4px, transparent 4px); }
.preview-cta-card { padding: 24px; background: var(--cyan); color: var(--navy-950); }
.preview-cta-card small { font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.preview-cta-card h4 { margin: 10px 0 0; font-size: 21px; line-height: 1.2; }
.preview-cta-card .preview-actions b, .preview-cta-card .preview-actions span { border-color: rgba(3,35,54,.28); color: var(--navy-950); }
.preview-page-hero { min-height: 140px; padding: 25px 22px; display: flex; flex-direction: column; justify-content: end; background: linear-gradient(145deg, rgba(4,31,53,.2), rgba(4,31,53,.78)), linear-gradient(135deg, #5f91ad, #143d59); }
.preview-page-hero small { color: #9feffc; font-size: 8px; letter-spacing: .13em; }
.preview-page-hero > b { margin-top: 9px; font-size: 27px; }
.preview-page-hero > p { margin: 9px 0 0; color: #c1d6df; font-size: 9px; line-height: 1.55; }
.preview-page-hero--course { min-height: 185px; }
.preview-page-hero--admission { min-height: 245px; background: linear-gradient(145deg, #092a3f, #0c626e); }
.preview-page-hero--services { min-height: 235px; background: linear-gradient(145deg, #09243b, #164f63); }
.preview-page-hero h3 { margin: 12px 0 0; font-size: 29px; line-height: 1.08; }
.preview-page-hero h3 b, .preview-page-hero h3 em { display: block; font-style: normal; }
.preview-page-hero h3 em { color: var(--cyan); }
.preview-page-copy { padding: 24px 22px; color: var(--ink); background: #fff; }
.preview-page-copy h3 { margin: 11px 0; font-size: 23px; line-height: 1.18; }
.preview-page-copy h3 b, .preview-page-copy h3 em { display: block; font-style: normal; }
.preview-page-copy p, .preview-focus p, .preview-service-card p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.65; }
.preview-page-copy button, .preview-footer-card button { margin-top: 15px; padding: 8px 10px; border: 0; color: #fff; background: var(--navy-900); font-size: 8px; }
.preview-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #d8e4e8; background: #edf6f8; }
.preview-mini-grid b { padding: 14px 4px; color: var(--navy-900); text-align: center; font-size: 9px; }
.preview-focus, .preview-service-card { padding: 22px; color: var(--ink); background: #fff; }
.preview-focus h3 { margin: 9px 0; font-size: 21px; }.preview-focus h3 em { color: var(--cyan); font-style: normal; }
.preview-route { padding: 18px 22px; color: #fff; background: #0b354b; }
.preview-route b, .preview-route span { display: block; font-size: 13px; line-height: 1.45; }
.preview-route span { color: var(--cyan); }
.preview-meta { padding: 14px 18px; display: grid; gap: 6px; color: #a7c2cc; background: #0a2638; font-size: 8px; }
.preview-note { padding: 18px; color: var(--ink); background: #e9f6f8; }
.preview-note b { color: #078296; font-size: 11px; }.preview-note p { margin: 6px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.preview-service-card h4 { margin: 0 0 9px; font-size: 18px; line-height: 1.25; }.preview-service-card .preview-actions b, .preview-service-card .preview-actions span { border-color: #b6ccd4; color: var(--navy-900); }
.preview-footer-card { padding: 27px 23px; color: #fff; background: linear-gradient(145deg, #061827, #0b303c); }
.preview-footer-card h3 { margin: 13px 0 4px; font-size: 24px; }.preview-footer-card > b { color: #8fa9b2; font-size: 8px; }.preview-footer-card > p { color: #91a9b0; font-size: 9px; line-height: 1.65; }
.preview-footer-card dl { margin: 20px 0 0; display: grid; gap: 8px; }.preview-footer-card dl div { display: grid; grid-template-columns: 38px 1fr; gap: 8px; }.preview-footer-card dt { color: #57747e; font-size: 8px; }.preview-footer-card dd { margin: 0; color: #b6c9ce; font-size: 8px; }
.preview-footer-card footer { margin-top: 22px; padding-top: 14px; display: grid; gap: 5px; border-top: 1px solid #29434c; color: #58717a; font-size: 7px; }.preview-footer-card footer i { font-style: normal; }
.section-heading--toolbar { align-items: center; margin-bottom: 26px; }
.section-heading--toolbar .primary-inline { border: 0; padding: 0 18px; }
.section-heading__actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.news-table { border: 1px solid var(--line); background: #fff; }
.news-row { min-height: 96px; padding: 15px 20px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 105px minmax(0, 1fr) 100px 150px; align-items: center; gap: 18px; }
.news-row:last-child { border-bottom: 0; }
.news-row time { color: #567487; font-size: 12px; font-weight: 900; }
.news-row h3 { margin: 0 0 6px; font-size: 15px; }
.news-row p { margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status-pill { justify-self: start; padding: 6px 10px; border-radius: 999px; background: #e7f8f3; color: #18745f; font-size: 10px; font-weight: 900; }
.status-pill.is-draft { background: #eef0f2; color: #6d7d87; }
.row-actions { display: flex; justify-content: flex-end; gap: 8px; }
.row-actions button { padding: 8px 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; }
.row-actions button:hover { border-color: var(--cyan); }
.row-actions button.is-danger:hover { border-color: var(--danger); color: var(--danger); }
.empty-state { padding: 60px 25px; text-align: center; color: var(--muted); }
.empty-state b { display: block; color: var(--ink); margin-bottom: 8px; }
.media-layout { grid-template-columns: minmax(360px, .75fr) minmax(0, 1.25fr); }
.upload-card, .media-result { padding: clamp(24px, 3vw, 40px); }
.drop-zone { min-height: 210px; margin: 28px 0 8px; border: 1px dashed #8fb2bf; background: #f3fafb; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone b { padding: 11px 18px; background: var(--navy-900); color: #fff; font-size: 12px; }
.drop-zone span { color: var(--muted); font-size: 11px; }
.empty-media { min-height: 330px; margin-top: 22px; border: 1px solid var(--line); background: #f6f9fa; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.empty-media b { color: var(--ink); }
.empty-media p { max-width: 350px; }
.media-preview { margin-top: 22px; }
.media-preview img { width: 100%; max-height: 360px; object-fit: contain; background: #edf2f3; }
.media-preview label { display: block; margin-top: 15px; }
.media-preview label span { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 900; }
.media-preview input { font-size: 11px; }

.news-dialog { width: min(760px, calc(100vw - 34px)); max-height: calc(100vh - 34px); padding: 0; border: 0; background: transparent; }
.news-dialog::backdrop { background: rgba(2, 18, 31, .72); backdrop-filter: blur(6px); }
.dialog-frame { max-height: calc(100vh - 34px); overflow: auto; padding: clamp(24px, 4vw, 42px); background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.3); }
.dialog-head { padding-bottom: 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.dialog-head span { color: #2395a7; font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.dialog-head h2 { margin: 7px 0 0; font-size: 30px; }
.dialog-head > button { width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; font-size: 22px; }
.toggle-field { display: flex; align-items: center; gap: 12px; }
.toggle-field input { width: 20px; height: 20px; accent-color: var(--navy-800); }
.toggle-field span b, .toggle-field span small { display: block; }
.toggle-field span b { font-size: 13px; }
.toggle-field span small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.dialog-actions { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.dialog-actions > button:first-child { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 800; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 48px)); padding: 15px 18px; color: #fff; background: var(--navy-900); box-shadow: var(--shadow); font-size: 13px; font-weight: 800; transform: translateY(30px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast.is-error { background: #8d2929; }

.management-section { margin-top: 26px; border: 1px solid var(--line); background: #fff; }
.management-section__head { min-height: 72px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.management-section__head > div { display: flex; align-items: center; gap: 12px; }
.management-section__head span { color: var(--cyan); font-size: 11px; font-weight: 900; }
.management-section__head h3 { margin: 0; font-size: 19px; }
.management-section__head > b { min-width: 38px; height: 28px; padding: 0 9px; display: grid; place-items: center; color: var(--navy-900); background: #dff6fa; font-size: 12px; }
.management-list { border: 1px solid var(--line); background: #fff; }
.management-section .management-list { border: 0; }
.management-list--cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; border: 0; background: transparent; }
.management-empty { grid-column: 1 / -1; min-height: 190px; padding: 40px 24px; display: grid; place-content: center; text-align: center; color: var(--muted); background: #fff; border: 1px solid var(--line); }
.management-section .management-empty { border: 0; }
.management-empty b { color: var(--ink); font-size: 17px; }
.management-empty p { max-width: 520px; margin: 8px auto 0; font-size: 12px; line-height: 1.7; }
.management-row { min-height: 145px; padding: 21px 22px; display: grid; grid-template-columns: minmax(0,1fr) minmax(290px,.72fr); gap: 24px; align-items: start; border-bottom: 1px solid var(--line); }
.management-row:last-child { border-bottom: 0; }
.management-list--cards .management-row { min-height: 280px; grid-template-columns: 1fr; align-content: start; border: 1px solid var(--line); }
.management-row__copy > span { color: #268ea0; font-size: 10px; font-weight: 900; letter-spacing: .05em; }
.management-row__copy h3 { margin: 7px 0 9px; font-size: 18px; line-height: 1.35; }
.management-row__copy p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; }
.management-row--listing { grid-template-columns: 135px minmax(0,1fr) minmax(280px,.62fr); }
.management-list--cards .management-row--listing { grid-template-columns: 120px minmax(0,1fr); }
.management-row--listing > img { width: 135px; height: 125px; object-fit: cover; background: #edf2f3; }
.management-list--cards .management-row--listing > img { width: 120px; height: 110px; }
.management-list--cards .management-row--listing .management-editor { grid-column: 1 / -1; }
.management-editor { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 9px; }
.management-editor select,.management-editor textarea,.management-metrics input { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 0; color: var(--ink); background: #f9fbfb; font: inherit; font-size: 11px; outline: none; }
.management-editor textarea { resize: vertical; }
.management-editor select:focus,.management-editor textarea:focus,.management-metrics input:focus { border-color: var(--cyan); }
.management-editor button,.management-actions button { min-height: 39px; padding: 0 14px; border: 0; color: #fff; background: var(--navy-900); font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; }
.management-editor button { grid-column: 1 / -1; }
.management-editor button:hover,.management-actions button:hover { background: #0b607a; }
.management-editor button:disabled { opacity: .55; cursor: wait; }
.management-actions { margin-top: 18px; }
.management-actions--split { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.management-actions button.is-danger { background: #d9483b; }.management-actions button.is-danger:hover { background: #b93329; }
.management-row--company-product { border-top: 3px solid #13c6e4; }
.management-row--company-product .management-actions { grid-column: 1 / -1; }
.listing-review-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; padding: 13px; border: 1px solid #b9ccd6; background: #f2f7f8; }
.listing-review-actions button { min-height: 44px; border: 0; color: #fff; font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; }
.listing-review-actions .is-approve { color: #092844; background: #6ce0ef; }.listing-review-actions .is-approve:hover { background: #8be9f4; }
.listing-review-actions .is-reject { background: #d9483b; }.listing-review-actions .is-reject:hover { background: #b93329; }
.listing-review-actions button:disabled { opacity: .55; cursor: wait; }
.management-metrics { margin: 14px 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.management-metrics label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 900; }
.recorded-pilot-list { padding: 16px; background: #eef5f6; }
.management-row--recorded-pilot { border-top: 4px solid var(--cyan) !important; box-shadow: 0 12px 30px rgba(3,41,61,.07); }
.management-row--recorded-pilot .management-row__copy > span { color: #16849a; }

@media (max-width: 1200px) {
  .management-list--cards { grid-template-columns: 1fr; }
  .management-row--listing { grid-template-columns: 120px minmax(0,1fr); }
  .management-row--listing .management-editor { grid-column: 1 / -1; }
}

@media (max-width: 1050px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-visual { min-height: 52vh; }
  .login-panel { min-height: 48vh; }
  .admin-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .sidebar-brand div, .sidebar nav button span, .sidebar nav button i, .sidebar-state div { display: none; }
  .sidebar-brand { justify-content: center; padding-inline: 0; }
  .sidebar nav button { grid-template-columns: 1fr; place-items: center; padding: 0; }
  .sidebar nav button.is-active::before { left: -13px; }
  .sidebar-state { justify-content: center; padding-inline: 0; }
  .editor-layout, .media-layout { grid-template-columns: 1fr; }
  .live-preview { position: static; }
}

@media (max-width: 740px) {
  .login-visual { min-height: 58vh; padding: 30px 24px; }
  .login-message h1 { font-size: 44px; }
  .login-panel { padding: 42px 24px; }
  .admin-shell { display: block; }
  .sidebar { position: fixed; z-index: 12; inset: auto 0 0; width: 100%; height: 70px; padding: 8px 10px; display: block; }
  .sidebar-brand, .sidebar-state { display: none; }
  .sidebar nav { height: 100%; margin: 0; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .sidebar nav button { width: 72px; min-width: 72px; height: 100%; }
  .sidebar nav button.is-active::before { left: 50%; top: -8px; width: 28px; height: 3px; transform: translateX(-50%); }
  .workspace { padding-bottom: 70px; }
  .topbar { padding: 15px 18px; }
  .topbar h1 { font-size: 18px; }
  .topbar-actions a { font-size: 0; width: 40px; padding: 0; justify-content: center; }
  .topbar-actions button { font-size: 0; width: 40px; padding: 0; justify-content: center; }
  main { padding: 20px 16px 45px; }
  .status-banner { min-height: 330px; align-items: flex-start; flex-direction: column; justify-content: flex-end; }
  .metric-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .metric-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric-grid article:last-child { border-bottom: 0; }
  .recent-item { grid-template-columns: 75px 1fr; }
  .recent-item i { grid-column: 2; justify-self: start; }
  .editor-card__head, .section-heading { align-items: stretch; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field--wide { grid-column: auto; }
  .content-group summary { grid-template-columns: 30px 1fr auto; }
  .news-row { grid-template-columns: 75px 1fr; }
  .news-row .status-pill { grid-column: 1; }
  .row-actions { grid-column: 2; justify-content: flex-start; }
  .management-row,.management-row--listing,.management-list--cards .management-row--listing { grid-template-columns: 1fr; }
  .management-row--listing > img,.management-list--cards .management-row--listing > img { width: 100%; height: 190px; }
  .management-row--listing .management-editor,.management-list--cards .management-row--listing .management-editor { grid-column: auto; }
  .management-editor { grid-template-columns: 1fr; }.management-editor button { grid-column: auto; }
  .management-metrics { grid-template-columns: 1fr; }
}
