:root {
    color-scheme: light;
    --ink: #19263a;
    --muted: #536478;
    --paper: #f5f7fa;
    --surface: #fff;
    --line: #dce3ec;
    --nav: #172335;
    --blue: #234f94;
    --blue-dark: #193c76;
    font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, form { margin: 0; }
body { min-width: 280px; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #5684cc; outline-offset: 3px; }
h1, h2, h3 { line-height: 1.18; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { font-size: 1.12rem; letter-spacing: -.015em; }
h3 { font-size: 1.08rem; }
svg { flex-shrink: 0; vertical-align: middle; }
.shell { display: grid; grid-template-columns: 235px minmax(0, 1fr); min-height: 100vh; }
.sidebar { display: flex; flex-direction: column; gap: 44px; padding: 26px 16px 18px; background: var(--nav); color: white; }
.brand { display: block; padding: 0 7px; }
.brand-logo { display: block; width: 180px; max-width: 100%; height: auto; }
.profile small { display: block; margin-top: 4px; color: #b7c5d5; font-size: .76rem; }
.nav-label { margin: 0 11px 10px; color: #aab9cc; font-size: .66rem; font-weight: 700; letter-spacing: .14em; }
.nav-link { display: flex; align-items: center; gap: 10px; color: #dce5ef; font-weight: 600; border: 0; background: none; border-radius: 8px; padding: 10px 11px; width: 100%; text-align: left; margin: 3px 0; }
.nav-link svg { width: 17px; height: 17px; }
.nav-link:hover, .nav-link.active { background: #2d405b; color: #fff; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #3b495d; padding-top: 13px; }
.profile { display: flex; gap: 10px; align-items: center; padding: 8px; overflow-wrap: anywhere; }
.avatar { display: grid; place-items: center; background: #354661; border-radius: 50%; flex: 0 0 35px; height: 35px; font-weight: 700; }
.topbar { min-height: 64px; display: flex; justify-content: space-between; align-items: center; padding: 0 clamp(20px, 4vw, 54px); background: var(--surface); border-bottom: 1px solid var(--line); font-weight: 700; }
.topbar-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .78rem; }
.topbar-label svg { width: 17px; height: 17px; }
.main { max-width: 1440px; margin: 0 auto; padding: 36px clamp(20px, 4vw, 54px) 48px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 24px; }
.eyebrow { font-size: .72rem; color: var(--blue-dark); letter-spacing: .14em; font-weight: 800; margin-bottom: 7px; }
.page-heading p:not(.eyebrow), .muted { color: var(--muted); }
.page-heading p:not(.eyebrow) { margin-top: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 13px; background: var(--surface); color: var(--ink); font-weight: 650; min-height: 40px; text-align: center; }
.button:hover { background: #edf2f8; }
.button svg { width: 17px; height: 17px; }
.button.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.button.primary:hover { background: var(--blue-dark); }
.button.compact { min-height: 28px; padding: 3px 6px; font-size: .75rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 4px #1b2b4110; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.metric { display: flex; align-items: center; gap: 13px; padding: 17px 18px; color: var(--ink); }
.metric:hover, .metric.selected { border-color: #6b8aba; }
.metric-icon { display: inline-grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; }
.metric-label { color: var(--muted); display: block; font-size: .85rem; font-weight: 650; }
.metric strong { display: block; font-size: 1.62rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.neutral { background: #eaf0f8; color: #334e75; }
.amber { background: #f9edcf; color: #775213; }
.green { background: #e1f1e8; color: #245f43; }
.list-header { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.list-header p { color: var(--muted); margin-top: 4px; font-size: .85rem; }
.filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 6px; padding-left: 9px; color: var(--muted); border: 1px solid var(--line); border-radius: 8px; }
.search svg { width: 17px; height: 17px; }
.search input { width: min(150px, 100%); border: 0; padding-left: 1px; }
select, input:not([type=checkbox]), textarea { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; background: var(--surface); color: var(--ink); min-height: 38px; }
.search input { border: 0; padding-left: 1px; }
.filter-clear { padding: 5px 2px; font-size: .85rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead th { background: #f5f7fb; color: var(--muted); font-size: .8rem; }
th, td { padding: 11px 15px; border-top: 1px solid var(--line); }
td:nth-child(n+3), th:nth-child(n+3) { text-align: center; }
tbody td, tbody th { vertical-align: middle; }
tbody small { display: block; color: var(--muted); font-weight: 400; margin-top: 3px; }
tbody tr:hover { background: #fafcff; }
.article-link { font-weight: 700; overflow-wrap: anywhere; }
.article-link:hover { text-decoration: underline; }
.article-link svg { width: 14px; height: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 20px; font-size: .75rem; font-weight: 750; }
.badge::before { content: ''; display: inline-block; width: 6px; height: 6px; flex-shrink: 0; background: currentColor; border-radius: 50%; }
input[type=checkbox] { accent-color: var(--blue); width: 17px; height: 17px; vertical-align: middle; margin: 3px; cursor: pointer; }
input[type=checkbox]:disabled { cursor: default; }
.approval { display: inline-flex; align-items: center; gap: 4px; }
.approval-feedback { color: var(--blue-dark); font-size: .8rem; }
.empty { display: grid; justify-items: center; gap: 11px; padding: 46px 20px; text-align: center; border-top: 1px solid var(--line); }
.empty p { color: var(--muted); }
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 13px; border-top: 1px solid var(--line); gap: 9px; }
.pagination a:last-child { text-align: right; }
.back { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; margin-bottom: 18px; }
.back svg { width: 17px; height: 17px; }
.stack { display: grid; gap: 12px; }
.stack label { font-weight: 650; }
.editor-form { max-width: 880px; padding: clamp(16px, 3vw, 28px); }
textarea { width: 100%; resize: vertical; line-height: 1.65; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.review { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.reviewers { display: flex; flex-wrap: wrap; gap: 12px; }
.reviewers span { display: flex; align-items: center; gap: 4px; }
.texts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.texts > .editor-form { align-self: start; }
.document { overflow: hidden; }
.document header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 15px; border-bottom: 1px solid var(--line); }
.document-action { margin-inline-start: auto; }
.language { border-radius: 5px; background: #eaf0f8; color: var(--blue-dark); padding: 3px 7px; font-size: .75rem; font-weight: 750; }
.prose { padding: 19px clamp(14px, 3vw, 27px); line-height: 1.68; white-space: pre-wrap; overflow-wrap: anywhere; }
.notice { padding: 11px 13px; margin-bottom: 16px; border-radius: 8px; background: #e4f3eb; color: #245f43; }
.field-error { color: #982e42; font-size: .86rem; }
.login { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: radial-gradient(ellipse at 75% 15%, #334e71, var(--nav) 70%); }
.login-card { padding: clamp(20px, 5vw, 36px); width: min(440px, 100%); }
.login-card .brand { padding: 0; margin-bottom: 25px; }
.login-card .brand-logo { width: 210px; }
.login-card .stack { margin-top: 22px; }
.login-card label input { display: block; width: 100%; margin-top: 5px; }
.login-card h1 + p { margin-top: 8px; }
.press-feed { display: grid; gap: 14px; }
.press-card { display: grid; justify-items: start; gap: 12px; padding: clamp(16px, 3vw, 27px); }
.press-card h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); overflow-wrap: anywhere; }
.press-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.press-meta .badge { overflow-wrap: anywhere; }
.press-copy-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: .8rem; font-weight: 650; }
.press-summary { max-width: 78ch; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.press-link { color: var(--blue-dark); }
.press-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.press-feed + .pagination { margin-top: 15px; }
@media (max-width: 1100px) {
    .list-header { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 740px) {
    .shell { grid-template-columns: minmax(0,1fr); }
    .sidebar { gap: 12px; padding: 12px; flex-direction: row; align-items: center; flex-wrap: wrap; }
    .sidebar .brand-logo { width: 150px; }
    .sidebar nav, .sidebar-bottom { display: flex; flex-wrap: wrap; align-items: center; }
    .nav-label, .sidebar .profile, .topbar { display: none; }
    .sidebar-bottom { margin: 0 0 0 auto; border: 0; padding: 0; }
    .nav-link { width: auto; padding: 6px; font-size: .8rem; }
    .main { padding-top: 22px; }
    .texts { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
    .page-heading, .review { align-items: flex-start; flex-direction: column; }
    .summary { gap: 6px; }
    .metric { flex-direction: column; align-items: flex-start; padding: 8px; gap: 5px; }
    .metric-icon { width: 33px; height: 33px; flex-basis: 33px; }
    .metric-label { font-size: .74rem; }
    .search input { width: 125px; }
}
@media (max-width: 580px) {
    .table-wrap table, .table-wrap tbody { display: block; }
    .table-wrap thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
    .table-wrap tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 6px 12px;
        border-top: 1px solid var(--line);
        padding: 12px 14px;
    }
    .table-wrap tbody td, .table-wrap tbody th { border: 0; padding: 0; }
    .table-wrap tbody th, .table-wrap tbody td:first-of-type {
        grid-column: 1 / -1;
        text-align: left;
    }
    .table-wrap tbody td[data-reviewer] {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 4px;
        padding: 3px 6px;
        border-radius: 6px;
        background: #edf2f8;
        font-size: .77rem;
        font-weight: 650;
    }
    .table-wrap tbody td[data-reviewer]::before { content: attr(data-reviewer); }
}
