:root {
    color-scheme: light;
    --ink: #15171a;
    --muted: #697079;
    --paper: #f4f5f1;
    --surface: #ffffff;
    --surface-soft: #f8f9f5;
    --line: #e1e4dc;
    --line-strong: #ccd1c5;
    --night: #111318;
    --night-soft: #1c1f25;
    --acid: #d7ff52;
    --acid-deep: #aacb2d;
    --blue: #405cf5;
    --red: #c53b47;
    --green: #277a4e;
    --amber: #9b6a11;
    --radius-sm: 9px;
    --radius: 15px;
    --radius-lg: 24px;
    --shadow: 0 24px 70px rgba(17, 19, 24, .12);
    --sidebar: 252px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; max-width: 100%; overflow-x: hidden; background: var(--paper); }

body {
    margin: 0;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled, input:disabled, textarea:disabled, select:disabled { cursor: not-allowed; opacity: .6; }
a { color: inherit; }
[hidden], .is-hidden { display: none !important; }

:focus-visible {
    outline: 3px solid rgba(64, 92, 245, .35);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: white;
    background: var(--night);
    transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.ambient {
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    filter: blur(2px);
    pointer-events: none;
}
.ambient-one { width: 42vw; height: 42vw; top: -24vw; left: -10vw; background: rgba(215, 255, 82, .38); }
.ambient-two { width: 38vw; height: 38vw; right: -22vw; bottom: -20vw; background: rgba(64, 92, 245, .12); }

.eyebrow {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--night);
    font-family: "Arial Narrow", "Aptos Display", "Helvetica Neue", Arial, sans-serif;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: -.06em;
    text-decoration: none;
}
.brand-lockup img {
    display: block;
    width: 36px;
    height: 36px;
}
.brand-sidebar img {
    width: 32px;
    height: 32px;
}
.brand-lockup > span > span {
    color: var(--blue);
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 750;
    line-height: 1;
    transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: var(--night); background: var(--acid); border-color: var(--acid); box-shadow: 0 8px 20px rgba(170, 203, 45, .18); }
.button-primary:hover:not(:disabled) { background: #e0ff78; box-shadow: 0 10px 26px rgba(170, 203, 45, .28); }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--line-strong); }
.button-secondary:hover:not(:disabled) { border-color: var(--ink); }
.button-ghost { color: var(--muted); background: transparent; border-color: transparent; }
.button-ghost:hover:not(:disabled) { color: var(--ink); background: #eef0e9; }
.button-danger { color: var(--red); background: #fff5f5; border-color: #f1c9cc; }
.button-danger:hover:not(:disabled) { color: white; background: var(--red); border-color: var(--red); }
.button-wide { width: 100%; justify-content: space-between; padding-inline: 18px; }
.button-small { min-height: 36px; padding: 8px 12px; font-size: .84rem; }

.icon-button {
    display: inline-grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface);
    font-size: 1.2rem;
    line-height: 1;
}
.icon-button:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-soft); }

.login-view {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(400px, 48%) 1fr;
    background: rgba(244, 245, 241, .72);
}
.login-card {
    display: flex;
    width: min(540px, 100%);
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 8vw, 110px);
    margin: auto;
}
.login-card .brand-lockup { position: absolute; top: 40px; }
.login-card h1 { margin: 0; font-size: clamp(2.6rem, 5vw, 4.5rem); letter-spacing: -.075em; line-height: .95; }
.login-intro { max-width: 470px; margin: 22px 0 30px; color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.login-card .eyebrow { margin-top: 80px; color: var(--blue); }

.stack-form { display: grid; gap: 18px; }
.field { display: grid; min-width: 0; gap: 8px; }
.field > span:first-child, .field > label:first-child {
    color: #40454c;
    font-size: .78rem;
    font-weight: 780;
    letter-spacing: .02em;
}
.field span small { color: var(--muted); font-weight: 550; }
.field > small { color: var(--muted); font-size: .72rem; line-height: 1.4; }
.field > small b { color: inherit; }

input, textarea, select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    background: var(--surface);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input, select { padding: 0 12px; }
textarea { min-height: 100px; padding: 12px; line-height: 1.5; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a0a5a9; }
input:hover, textarea:hover, select:hover { border-color: #afb5aa; }
input:focus, textarea:focus, select:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px rgba(64, 92, 245, .12); }

.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 64px; }
.reveal-button { position: absolute; top: 50%; right: 7px; padding: 6px; border: 0; color: var(--blue); background: transparent; font-size: .74rem; font-weight: 750; transform: translateY(-50%); }
.form-error { margin: 0; padding: 11px 13px; border: 1px solid #f0c8cc; border-radius: 8px; color: #922d37; background: #fff4f5; font-size: .82rem; line-height: 1.45; }

.security-note { display: flex; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.security-note p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.security-note strong { color: var(--ink); }
.security-note code { color: #414650; font-size: .72rem; }
.security-icon { display: grid; width: 28px; height: 28px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--green); background: #e7f5eb; }

.login-story {
    position: relative;
    display: flex;
    min-height: calc(100vh - 32px);
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(42px, 7vw, 96px);
    margin: 16px 16px 16px 0;
    overflow: hidden;
    border-radius: 26px;
    color: white;
    background:
        radial-gradient(circle at 85% 18%, rgba(215, 255, 82, .98) 0 4%, transparent 4.4%),
        radial-gradient(circle at 90% 22%, rgba(215, 255, 82, .22) 0 21%, transparent 21.4%),
        linear-gradient(142deg, #2d43bf 0%, #121520 58%, #07080a 100%);
}
.login-story::before, .login-story::after { content: ""; position: absolute; border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; }
.login-story::before { width: 420px; height: 420px; top: -130px; right: -100px; }
.login-story::after { width: 620px; height: 620px; top: -230px; right: -200px; }
.story-kicker { margin: 0 0 18px; color: var(--acid); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-story blockquote { max-width: 720px; margin: 0 0 50px; font-size: clamp(2.2rem, 4.5vw, 5.2rem); font-weight: 720; letter-spacing: -.065em; line-height: .98; }
.story-metrics { display: flex; flex-wrap: wrap; gap: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .16); }
.story-metrics span { display: grid; gap: 4px; color: rgba(255, 255, 255, .58); font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; }
.story-metrics strong { color: white; font-size: 1.25rem; letter-spacing: -.03em; }

.admin-app { display: grid; min-height: 100vh; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar);
    flex-direction: column;
    padding: 25px 18px 19px;
    color: #f5f6f2;
    background: var(--night);
}
.brand-sidebar { padding: 0 9px; color: white; }
.brand-sidebar > span:last-child > span { color: var(--acid); }
.admin-nav { display: grid; gap: 5px; margin-top: 64px; }
.nav-label { margin: 0 10px 10px; color: #989da7; font-size: .63rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-item {
    display: grid;
    min-height: 45px;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #a9adb5;
    background: transparent;
    font-size: .85rem;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
}
.nav-item > span:first-child { color: #717680; font-size: 1rem; text-align: center; }
.nav-item b { min-width: 23px; padding: 3px 6px; border-radius: 99px; color: #8d929a; background: #262930; font-size: .66rem; text-align: center; }
.nav-item:hover { color: white; background: #1a1d22; }
.nav-item.is-active { color: var(--acid); background: #22262d; border-color: #2b3037; }
.nav-item.is-active > span:first-child { color: var(--acid); }
.nav-item.is-active b { color: var(--night); background: var(--acid); }
.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; margin-top: auto; border-top: 1px solid #26292f; }
.sidebar-foot > span:last-child { display: grid; gap: 2px; }
.sidebar-foot strong { color: #e4e6df; font-size: .73rem; }
.sidebar-foot small { color: #9ca1aa; font-size: .62rem; }
.environment-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(215, 255, 82, .1); }

.workspace { min-width: 0; grid-column: 2; }
.topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 18px;
    padding: 12px clamp(20px, 4vw, 54px);
    border-bottom: 1px solid rgba(221, 225, 216, .9);
    background: rgba(244, 245, 241, .9);
    backdrop-filter: blur(16px);
}
.topbar .eyebrow { margin-bottom: 2px; }
.current-date { margin: 0; color: var(--muted); font-size: .74rem; }
.topbar-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.save-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .72rem; }
.save-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.save-state.is-saving i { background: var(--amber); animation: pulse 1s infinite; }
.save-state.is-error i { background: var(--red); }
.user-menu { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.avatar { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: var(--night); background: var(--acid); font-size: .7rem; font-weight: 850; }
.user-copy { display: grid; gap: 1px; }
.user-copy strong { font-size: .75rem; }
.user-copy small { color: var(--muted); font-size: .65rem; }
.menu-button { display: none; }

.content-area { width: min(1440px, 100%); padding: clamp(28px, 5vw, 60px) clamp(20px, 4vw, 54px) 80px; margin: 0 auto; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.panel-heading h1 { margin: 0; font-size: clamp(2.25rem, 4vw, 4.2rem); letter-spacing: -.065em; line-height: .95; }
.panel-heading > div:first-child > p:last-child { max-width: 620px; margin: 14px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.heading-actions { display: flex; gap: 9px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card {
    display: grid;
    min-height: 130px;
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .75);
}
.stat-card > span:nth-child(2) { display: grid; gap: 4px; }
.stat-card small { color: var(--muted); font-size: .69rem; font-weight: 720; }
.stat-card strong { font-size: 2rem; letter-spacing: -.06em; line-height: 1; }
.stat-card em { grid-column: 1 / -1; color: #626970; font-size: .64rem; font-style: normal; }
.stat-icon { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 10px; color: var(--blue); background: #edf0ff; }
.stat-accent { color: white; background: var(--night); border-color: var(--night); }
.stat-accent small, .stat-accent em { color: #9398a2; }
.stat-accent .stat-icon { color: var(--night); background: var(--acid); }

.catalog-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .85); box-shadow: 0 9px 35px rgba(28, 31, 37, .035); }
.catalog-toolbar { display: flex; align-items: center; gap: 9px; padding: 14px; border-bottom: 1px solid var(--line); }
.search-field { position: relative; min-width: 230px; flex: 1; }
.search-field > span:first-child { position: absolute; top: 50%; left: 13px; color: #8f959b; font-size: 1.2rem; transform: translateY(-52%); }
.search-field input { padding-left: 39px; background: var(--surface-soft); }
.select-field { min-width: 145px; }
.select-field select { background: var(--surface-soft); }
.result-count { min-width: 80px; color: var(--muted); font-size: .7rem; text-align: right; }

.table-wrap { overflow-x: auto; }
.review-table { width: 100%; border-collapse: collapse; }
.review-table th { padding: 12px 18px; color: #5d646b; background: #fafbf8; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.review-table td { padding: 14px 18px; border-top: 1px solid #eef0ea; color: #484d54; font-size: .76rem; vertical-align: middle; }
.review-table tbody tr { transition: background .15s ease; }
.review-table tbody tr:hover { background: #fbfcf8; }
.review-identity { display: grid; min-width: 240px; grid-template-columns: 40px 1fr; align-items: center; gap: 11px; }
.review-glyph { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; color: var(--blue); background: #edf0ff; font-weight: 850; }
.review-glyph.service { color: #7d4dba; background: #f4ecff; }
.review-identity span:last-child { display: grid; gap: 3px; }
.review-identity strong { max-width: 360px; overflow: hidden; color: var(--ink); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.review-identity small { color: #62686e; font-size: .65rem; }
.type-chip, .status-pill { display: inline-flex; width: fit-content; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 99px; font-size: .62rem; font-weight: 760; text-transform: capitalize; }
.type-chip { color: #52585f; background: #f0f2ed; }
.score-badge { color: var(--ink); font-size: .86rem; font-weight: 850; }
.score-badge small { color: #61686e; font-size: .62rem; font-weight: 600; }
.status-published { color: var(--green); background: #eaf6ee; }
.status-published::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-draft { color: var(--amber); background: #fbf3df; }
.status-archived { color: #6c737a; background: #edeFEB; }
.row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.row-action { min-height: 32px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 7px; color: #545b62; background: white; font-size: .68rem; font-weight: 720; }
.row-action:hover { color: var(--ink); border-color: var(--line-strong); }
.row-action.publish { color: var(--green); }

.loading-state, .empty-state { display: grid; min-height: 250px; place-items: center; align-content: center; padding: 40px; text-align: center; }
.loading-state span { width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.loading-state p, .empty-state p { margin: 9px 0 0; color: var(--muted); font-size: .78rem; }
.empty-state > span { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 50%; color: var(--blue); background: #eef0ff; font-size: 1.35rem; }
.empty-state h2 { margin: 13px 0 0; font-size: 1rem; }

.audit-card { min-height: 350px; }
.audit-event { display: grid; gap: 3px; }
.audit-event strong { color: var(--ink); font-size: .76rem; }
.audit-event small { color: var(--muted); font-size: .65rem; }
.audit-table td { min-width: 130px; }
.audit-table td:first-child { min-width: 210px; }
.integrity-banner { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 15px 17px; color: #7f1f29; border: 1px solid #e5aeb4; border-radius: 11px; background: #fff0f1; font-size: .78rem; }
.integrity-banner span { color: #752d34; }
.submission-table td { min-width: 120px; }
.submission-table td:first-child { min-width: 170px; }
.submission-table td:nth-child(2) { min-width: 210px; }
.submission-table td:nth-child(3) { min-width: 300px; }
.submission-identity { display: grid; gap: 4px; }
.submission-identity strong { color: var(--ink); font-size: .78rem; }
.submission-identity span, .submission-copy { color: #62686e; font-size: .66rem; }
.submission-contact { display: grid; gap: 3px; }
.submission-contact strong { color: var(--ink); font-size: .75rem; }
.submission-contact a { color: #2948d3; font-size: .68rem; }
.submission-kind { width: fit-content; padding: 4px 8px; color: #2948d3; background: #edf0ff; border-radius: 999px; font-size: .6rem; font-weight: 800; text-transform: uppercase; }

.security-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 16px; }
.settings-card { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .82); }
.settings-heading { display: flex; gap: 15px; margin-bottom: 30px; }
.settings-heading > span { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--blue); background: #edf0ff; font-size: 1.15rem; }
.settings-heading h2 { margin: 1px 0 5px; font-size: 1.05rem; }
.settings-heading p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.settings-card .stack-form { max-width: 560px; }
.security-posture { color: white; background: var(--night); border-color: var(--night); }
.security-posture .settings-heading > span { color: var(--night); background: var(--acid); }
.security-posture .settings-heading p { color: #858b94; }
.control-list { padding: 0; margin: 0; list-style: none; }
.control-list li { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 0; border-top: 1px solid #2a2d34; color: #c8cbd0; font-size: .75rem; }
.control-list b { color: var(--acid); font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; }

.toast-region { position: fixed; z-index: 300; top: 18px; right: 18px; display: grid; width: min(360px, calc(100vw - 36px)); gap: 9px; pointer-events: none; }
.toast { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 13px 15px; border: 1px solid #dce0d6; border-radius: 12px; background: rgba(255, 255, 255, .96); box-shadow: 0 16px 45px rgba(17, 19, 24, .15); animation: toast-in .25s ease both; }
.toast > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--green); background: #e8f5ec; font-size: .7rem; }
.toast strong { display: block; margin-bottom: 2px; font-size: .75rem; }
.toast p { margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.toast.error > span { color: var(--red); background: #fff0f1; }

dialog { padding: 0; border: 0; }
dialog::backdrop { background: rgba(9, 11, 15, .67); backdrop-filter: blur(5px); }
.editor-dialog {
    width: min(920px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    margin: 12px max(12px, calc((100vw - 920px) / 2));
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.editor-form { display: grid; max-height: calc(100vh - 24px); grid-template-rows: auto minmax(0, 1fr) auto; }
.editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 22px 26px; border-bottom: 1px solid var(--line); background: #fbfcf8; }
.editor-header h2 { display: inline; margin: 0 9px 0 0; font-size: 1.35rem; letter-spacing: -.035em; }
.editor-header .status-pill { vertical-align: 3px; }
.editor-body { overflow-y: auto; overscroll-behavior: contain; }
.editor-section { padding: 30px 32px 34px; border-bottom: 1px solid var(--line); }
.editor-section:last-child { border-bottom: 0; }
.section-heading { display: grid; grid-template-columns: 35px 1fr; gap: 13px; margin-bottom: 24px; }
.section-heading > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; color: var(--blue); background: #eef0ff; font-size: .64rem; font-weight: 850; }
.section-heading h3 { margin: 0 0 4px; font-size: .96rem; }
.section-heading p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.section-heading-action { grid-template-columns: 35px 1fr auto; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-wide { grid-column: 1 / -1; }
.form-grid-halves { margin-top: 24px; }
.prefix-input { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.prefix-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(64, 92, 245, .12); }
.prefix-input em { display: flex; align-items: center; padding: 0 10px; color: #8b9095; background: #f2f4ef; font-size: .7rem; font-style: normal; white-space: nowrap; }
.prefix-input input { min-width: 100px; border: 0; border-radius: 0; box-shadow: none !important; }

.score-layout { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.overall-score { display: flex; align-items: baseline; justify-content: center; align-content: center; flex-wrap: wrap; padding: 20px; border-radius: 12px; color: white; background: var(--night); }
.overall-score small { width: 100%; margin-bottom: 7px; color: #8d929b; font-size: .64rem; font-weight: 750; text-align: center; text-transform: uppercase; letter-spacing: .1em; }
.overall-score strong { font-size: 3.2rem; letter-spacing: -.08em; line-height: 1; }
.overall-score span { color: #8d929b; font-size: .7rem; }
.score-fields { display: grid; gap: 12px; }
.score-field { display: grid; grid-template-columns: 92px 1fr 34px; align-items: center; gap: 12px; }
.score-field > span { color: #51565c; font-size: .7rem; font-weight: 700; }
.score-field input { min-height: 18px; padding: 0; border: 0; box-shadow: none; accent-color: var(--blue); }
.score-field output { color: var(--ink); font-size: .72rem; font-weight: 820; text-align: right; }

.offer-list { display: grid; gap: 12px; }
.offer-row { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fafbf8; }
.offer-row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.offer-row-head strong { font-size: .75rem; }
.offer-row-head .icon-button { width: 30px; height: 30px; border: 0; background: transparent; }
.offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.check-field { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; align-content: end; column-gap: 9px; min-height: 66px; }
.check-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check-field > span { position: relative; width: 36px; height: 20px; grid-row: 1 / 3; border-radius: 99px; background: #d8dbd4; transition: background .2s; }
.check-field > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: white; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .2s; }
.check-field input:checked + span { background: var(--blue); }
.check-field input:checked + span::after { transform: translateX(16px); }
.check-field input:focus-visible + span { outline: 3px solid rgba(64, 92, 245, .25); }
.check-field b { font-size: .73rem; }
.check-field small { color: var(--muted); font-size: .63rem; }
.inline-empty { margin: 0; padding: 20px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--muted); font-size: .72rem; text-align: center; }
.domain-help { margin-top: 14px; color: var(--muted); font-size: .68rem; }
.domain-help summary { width: fit-content; color: var(--blue); cursor: pointer; font-weight: 720; }
.domain-help p { line-height: 1.6; }

.video-preview { overflow: hidden; border-radius: 14px; background: var(--night); aspect-ratio: 16 / 9; }
.video-preview iframe { width: 100%; height: 100%; border: 0; }
.publish-section { background: #fbfcf8; }
.publish-controls { display: grid; grid-template-columns: 1fr 210px; align-items: end; gap: 22px; }
.toggle-field { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.toggle-field input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-field > span { position: relative; width: 42px; height: 24px; grid-row: 1 / 3; border-radius: 99px; background: #d5d8d1; transition: background .2s; }
.toggle-field > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 1px 5px rgba(0, 0, 0, .22); transition: transform .2s; }
.toggle-field input:checked + span { background: var(--blue); }
.toggle-field input:checked + span::after { transform: translateX(18px); }
.toggle-field b { font-size: .76rem; }
.toggle-field small { color: var(--muted); font-size: .65rem; }

.editor-footer { display: flex; align-items: center; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--line); background: white; box-shadow: 0 -10px 30px rgba(17, 19, 24, .04); }
.footer-spacer { flex: 1; }
.confirm-dialog { width: min(420px, calc(100vw - 32px)); border-radius: 18px; box-shadow: var(--shadow); }
.confirm-dialog form { padding: 32px; text-align: center; }
.confirm-icon { display: grid; width: 50px; height: 50px; place-items: center; margin: 0 auto 16px; border-radius: 50%; color: var(--red); background: #fff0f1; font-weight: 900; }
.confirm-dialog h2 { margin: 0 0 9px; font-size: 1.2rem; }
.confirm-dialog p { margin: 0 0 24px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.confirm-dialog form > div { display: flex; justify-content: center; gap: 8px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1050px) {
    :root { --sidebar: 215px; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .save-state { display: none; }
    .login-story blockquote { font-size: clamp(2.2rem, 5vw, 4.2rem); }
}

@media (max-width: 820px) {
    .login-view { display: block; }
    .login-card { width: min(560px, 100%); padding: 80px 28px 40px; }
    .login-card .brand-lockup { top: 26px; }
    .login-card .eyebrow { margin-top: 30px; }
    .login-story { display: none; }
    .admin-app { display: block; }
    .workspace { min-height: 100vh; }
    .sidebar { width: min(280px, 85vw); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .24); }
    body.nav-open .sidebar { transform: none; }
    .menu-button { display: grid; }
    .topbar { padding-inline: 16px; }
    .content-area { padding-inline: 16px; }
    .user-copy { display: none; }
    .panel-heading { align-items: flex-start; flex-direction: column; }
    .security-grid { grid-template-columns: 1fr; }
    .review-table th:nth-child(2), .review-table td:nth-child(2), .review-table th:nth-child(5), .review-table td:nth-child(5) { display: none; }
    .editor-dialog { width: 100%; max-width: none; max-height: 100vh; margin: 0; border-radius: 0; }
    .editor-form { max-height: 100vh; }
}

@media (max-width: 600px) {
    .heading-actions { width: 100%; }
    .heading-actions .button { flex: 1; padding-inline: 10px; font-size: .77rem; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .stat-card { min-height: 115px; padding: 15px; }
    .stat-card strong { font-size: 1.6rem; }
    .catalog-toolbar { align-items: stretch; flex-wrap: wrap; }
    .search-field { width: 100%; flex-basis: 100%; }
    .select-field { min-width: calc(50% - 5px); flex: 1; }
    .result-count { width: 100%; text-align: left; }
    .review-table { table-layout: fixed; }
    .review-table th { padding-inline: 9px; }
    .review-table td { padding: 12px 9px; }
    .review-table th:nth-child(3), .review-table td:nth-child(3) { display: none; }
    .review-table th:nth-child(4), .review-table td:nth-child(4) { width: 92px; }
    .review-table th:nth-child(6), .review-table td:nth-child(6) { width: 54px; }
    .review-identity { min-width: 0; grid-template-columns: 32px minmax(0, 1fr); gap: 9px; }
    .review-identity strong, .review-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .review-glyph { width: 32px; height: 32px; }
    .row-action.publish { display: none; }
    .submission-table { min-width: 760px; table-layout: auto; }
    .editor-header, .editor-section { padding-inline: 18px; }
    .editor-section { padding-block: 24px; }
    .form-grid, .offer-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .section-heading-action { grid-template-columns: 35px 1fr; }
    .section-heading-action .button { grid-column: 2; justify-self: start; }
    .score-layout { grid-template-columns: 1fr; padding: 14px; }
    .overall-score { min-height: 110px; }
    .score-field { grid-template-columns: 78px 1fr 30px; gap: 8px; }
    .publish-controls { grid-template-columns: 1fr; }
    .editor-footer { flex-wrap: wrap; }
    .editor-footer .footer-spacer { display: none; }
    .editor-footer .button { flex: 1; font-size: .72rem; padding-inline: 9px; }
    #deleteItemButton { flex-basis: 100%; }
    .topbar .eyebrow, .current-date { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
