:root {
  color-scheme: dark;
  font-family: "Golos Text", "Aptos", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #edf2ee;
  background: #0b1013;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #edf2ee;
  --muted: #a5b1ab;
  --soft-muted: #77847d;
  --line: #26343a;
  --line-strong: #36464d;
  --canvas: #0b1013;
  --surface: #121a1f;
  --surface-soft: #182329;
  --green: #76d39a;
  --green-deep: #24513c;
  --green-dark: #173b2b;
  --lime: #c5f28b;
  --blue: #87a9ff;
  --purple: #bd9aff;
  --orange: #e4aa61;
  --red: #ff8f86;
  --shadow-card: 0 12px 35px rgba(0, 0, 0, .23), 0 1px 2px rgba(0, 0, 0, .18);
  --shadow-raised: 0 22px 50px rgba(0, 0, 0, .38), 0 4px 10px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 5% 0%, rgba(207, 234, 196, .33), transparent 31rem),
    radial-gradient(ellipse at 100% 18%, rgba(216, 228, 199, .25), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(77, 114, 200, .42);
  outline-offset: 3px;
}
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-size: clamp(28px, 3vw, 36px); line-height: 1.1; letter-spacing: -.045em; }
h2 { margin-bottom: 4px; font-size: 19px; line-height: 1.25; letter-spacing: -.03em; }
.muted { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 9px;
  height: 9px;
  border: 2px solid var(--green);
  border-radius: 3px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(213, 242, 142, .27);
  content: "";
  transform: rotate(-8deg);
}

.page-shell { width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 32px 0 58px; }
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px;
  padding: 0 0 23px;
  border-bottom: 1px solid rgba(210, 221, 212, .8);
}
.page-header > div:first-child { flex: 1 1 280px; min-width: 0; }
.page-header .muted { max-width: 620px; margin-top: 8px; }
.header-tools { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid rgba(220, 229, 221, .92);
  border-radius: 15px;
  background: rgba(255, 255, 255, .74);
  box-shadow: 0 3px 10px rgba(27, 52, 37, .035);
  backdrop-filter: blur(12px);
}
.nav-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 11px;
  color: #65736a;
  font-size: 12px;
  font-weight: 720;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav-link svg, .secondary-button svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.nav-link:hover { background: #f1f5f0; color: var(--green-deep); }
.nav-link.active { background: var(--green-deep); color: #f4f9f4; box-shadow: 0 4px 10px rgba(25, 72, 50, .17); }
.nav-link.active svg { color: var(--lime); }
.logout-form { margin: 0; }
.secondary-button, .primary-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, .86);
  color: #58675e;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, transform .16s ease;
}
.secondary-button:hover { transform: translateY(-1px); border-color: #bdcdbf; background: #fff; color: var(--green-deep); }

.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 13px; }
.section-title-row h2 { margin-bottom: 0; }
.section-title-row p { margin: 0; color: var(--muted); font-size: 12px; }
.section-kicker { display: block; margin-bottom: 4px; color: #819087; font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.metrics-title { margin-top: 29px; }

.queue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.queue-card {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 175px;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 17px 19px 16px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(145deg, #fff 5%, #fbfcfa 100%);
  box-shadow: var(--shadow-card);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.queue-card::before { position: absolute; z-index: -1; top: 0; right: 0; width: 4px; height: 100%; background: var(--queue-accent, var(--green)); content: ""; opacity: .82; }
.queue-card::after { position: absolute; z-index: -1; top: -42px; right: -35px; width: 130px; height: 130px; border: 1px solid color-mix(in srgb, var(--queue-accent, var(--green)) 14%, transparent); border-radius: 50%; background: color-mix(in srgb, var(--queue-accent, var(--green)) 6%, transparent); content: ""; }
.queue-card:nth-child(2) { --queue-accent: var(--blue); }
.queue-card:nth-child(3) { --queue-accent: var(--purple); }
.queue-card:nth-child(4) { --queue-accent: var(--orange); }
.queue-card:nth-child(5) { --queue-accent: #cf6b74; }
.queue-card:nth-child(6) { --queue-accent: #489b9a; }
.queue-card:nth-child(7) { --queue-accent: #667a48; }
.queue-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--queue-accent, var(--green)) 35%, white); box-shadow: var(--shadow-raised); }
.queue-icon { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 13px; border: 1px solid color-mix(in srgb, var(--queue-accent, var(--green)) 17%, white); border-radius: 11px; background: color-mix(in srgb, var(--queue-accent, var(--green)) 9%, white); color: var(--queue-accent, var(--green)); }
.queue-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.queue-title { color: #6d7a71; font-size: 11px; font-weight: 750; letter-spacing: .015em; }
.queue-card strong { margin-top: 1px; color: var(--ink); font-size: 35px; font-weight: 780; line-height: 1.15; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.queue-note { margin-top: 2px; color: #8d9890; font-size: 10px; }
.queue-action { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 13px; color: var(--queue-accent, var(--green)); font-size: 11px; font-weight: 780; }
.queue-action::after { content: "↗"; font-size: 13px; transition: transform .16s ease; }
.queue-card:hover .queue-action::after { transform: translate(2px, -2px); }

.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-bottom: 21px; }
.metric, .panel { border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow-card); }
.metric { position: relative; min-height: 142px; overflow: hidden; padding: 18px 18px 17px; }
.metric::after { position: absolute; top: 0; right: 0; width: 46px; height: 4px; border-radius: 0 0 0 8px; background: var(--lime); content: ""; }
.metric:nth-child(2)::after { background: #a9c88c; }
.metric:nth-child(3)::after { background: #9ab9e7; }
.metric:nth-child(4)::after { background: #eac28a; }
.metric:nth-child(5)::after { background: #c1a7e0; }
.metric-label { min-height: 34px; color: #6b7970; font-size: 11px; font-weight: 720; line-height: 1.4; }
.metric-value { margin: 11px 0 2px; color: var(--ink); font-size: 32px; font-weight: 780; line-height: 1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.metric-note { margin-top: 7px; color: #96a098; font-size: 10px; }

.panel { overflow: hidden; margin-top: 17px; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 21px 22px 14px; }
.panel-heading .muted { margin-top: 6px; }
.info-note { margin: 0; padding: 0 22px 15px; color: #78867d; font-size: 11px; line-height: 1.6; }
.table-scroll { width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #c5d1c7 transparent; scrollbar-width: thin; }
table { width: 100%; border-collapse: separate; border-spacing: 0; text-align: left; font-size: 12px; }
th { position: sticky; top: 0; z-index: 1; background: #f5f8f5; color: #78857c; font-size: 9px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; white-space: nowrap; }
th, td { padding: 13px 15px; border-top: 1px solid #edf1ed; vertical-align: top; }
td { color: #4c5a51; }
tbody tr { transition: background .12s ease; }
tbody tr:hover td { background: #fbfdfb; }
td.channel { min-width: 245px; max-width: 420px; color: #26372d; font-weight: 650; word-break: break-word; }
td.numeric, th.numeric { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.time { color: var(--green-deep); font-weight: 780; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { padding: 28px; color: #89958d; text-align: center; }
.summary-strip { display: flex; gap: 12px; margin-bottom: 16px; }
.summary-strip > div { display: flex; min-width: 205px; align-items: center; justify-content: space-between; gap: 28px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255, 255, 255, .82); box-shadow: var(--shadow-card); color: #728077; font-size: 11px; font-weight: 680; }
.summary-strip strong { color: var(--green-deep); font-size: 24px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.users-panel { overflow: hidden; }
.users-table { min-width: 1080px; }
.users-table th { top: 0; }
.users-table td { vertical-align: middle; }
.activity-table { min-width: 1320px; }
.activity-table td { vertical-align: middle; }
.activity-table .user-name { margin-bottom: 6px; }
.channel-links { min-width: 270px; max-width: 430px; }
.channel-links a, .channel-list a { overflow-wrap: anywhere; text-decoration-color: rgba(44, 105, 77, .3); text-underline-offset: 3px; }
.channel-links a:hover, .channel-list a:hover { text-decoration-color: currentColor; }
.activity-cell { min-width: 150px; }
.activity-detail { display: block; margin-top: 5px; color: #7e8a82; font-size: 10px; line-height: 1.45; }
.user-name { color: #26372d; font-weight: 760; white-space: nowrap; }
.channel-prices { min-width: 250px; }
.channel-list { display: grid; gap: 5px; margin: 0; padding-left: 16px; }
.status-badge { display: inline-flex; min-height: 23px; align-items: center; padding: 4px 9px; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 780; line-height: 1.2; white-space: nowrap; }
.status-good { border-color: #d4e9d7; background: #eff8ef; color: #39704b; }
.status-pending { border-color: #f0e3bd; background: #fff8e5; color: #946d1d; }
.status-bad { border-color: #efd6d2; background: #fff1ef; color: #a44d47; }
.status-neutral { border-color: #e5eae5; background: #f4f6f4; color: #758078; }

.request-tabs { display: flex; gap: 8px; margin: 0 0 14px; padding: 1px 1px 5px; overflow-x: auto; scrollbar-width: thin; }
.request-tab { display: inline-flex; min-height: 42px; flex: 0 0 auto; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .78); color: #65736a; font-size: 11px; font-weight: 750; text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.request-tab:hover { border-color: #c4d5c6; background: #fff; color: var(--green-deep); }
.request-tab.active { border-color: var(--green-deep); background: var(--green-deep); color: #f6faf6; box-shadow: 0 4px 12px rgba(25, 72, 50, .14); }
.request-tab-count { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 6px; border-radius: 8px; background: #edf2ed; color: #68766d; font-size: 10px; font-variant-numeric: tabular-nums; }
.request-tab.active .request-tab-count { background: rgba(213, 242, 142, .18); color: var(--lime); }
.action-notice { margin: 0 0 14px; padding: 12px 15px; border: 1px solid #d1e8d5; border-radius: 13px; background: #f0f8f0; color: #3c754e; font-size: 12px; box-shadow: var(--shadow-card); }
.action-notice.action-error { border-color: #efd4d0; background: #fff4f2; color: #a44d47; }
.request-list { padding-bottom: 7px; }
.request-list .panel-heading { padding-bottom: 16px; }
.request-cards { display: grid; gap: 11px; padding: 0 17px 17px; }
.request-card { position: relative; overflow: hidden; padding: 17px 18px 16px; border: 1px solid #e8eee8; border-radius: 15px; background: linear-gradient(135deg, #fff 0%, #fcfdfb 100%); transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.request-card::before { position: absolute; top: 17px; bottom: 17px; left: 0; width: 3px; border-radius: 0 4px 4px 0; background: #e8c86e; content: ""; }
.request-card:hover { transform: translateY(-1px); border-color: #d6e1d7; box-shadow: 0 8px 24px rgba(28, 54, 38, .07); }
.request-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.request-heading time { color: #89958d; font-size: 10px; font-weight: 650; white-space: nowrap; }
.request-kind { margin-left: 5px; color: #536259; font-size: 11px; font-weight: 760; }
.request-user { margin-top: 11px; color: #26372d; font-size: 13px; font-weight: 770; }
.request-text { overflow-x: auto; margin: 12px 0 0; padding: 13px 14px; border: 1px solid #edf1ed; border-radius: 11px; background: #f7f9f6; color: #4b5950; font: inherit; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.request-text a { color: var(--green); overflow-wrap: anywhere; text-decoration-color: rgba(44, 105, 77, .3); text-underline-offset: 3px; }
.request-fields { display: grid; gap: 8px; margin: 12px 0 0; }
.request-fields > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; }
.request-fields dt { color: #7c8980; font-size: 11px; }
.request-fields dd { min-width: 0; margin: 0; color: #45534a; overflow-wrap: anywhere; }
.request-empty { padding: 42px 24px; border: 1px dashed #d2ddd3; border-radius: 14px; background: #fbfcfa; }
.decision-form { display: grid; gap: 11px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #ebf0eb; }
.decision-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.decision-form label { display: grid; gap: 6px; margin: 0; color: #718078; font-size: 10px; font-weight: 780; }
.decision-form input, .decision-form textarea, input[type="password"] { width: 100%; min-width: 0; min-height: 42px; padding: 9px 11px; border: 1px solid #dce5dd; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.decision-form textarea { min-height: 67px; resize: vertical; }
.decision-form input:focus, .decision-form textarea:focus, input[type="password"]:focus { border-color: #85a78d; outline: none; box-shadow: 0 0 0 3px rgba(44, 105, 77, .12); }
.decision-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.decision-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid #dfe7e0; border-radius: 10px; background: #fff; color: #5f6d64; font: inherit; font-size: 11px; font-weight: 780; cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background .14s ease; }
.decision-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(24, 56, 38, .08); }
.decision-button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px currentColor; }
.decision-reject { border-color: #efd7d3; background: #fff7f5; color: #a44d47; }
.decision-reject:hover:not(:disabled) { background: #fff0ed; }
.decision-pending { border-color: #eee2c0; background: #fffbef; color: #946d1d; }
.decision-pending:hover:not(:disabled) { background: #fff5d8; }
.decision-approve { border-color: var(--green-deep); background: var(--green-deep); color: #f6faf6; }
.decision-approve:hover:not(:disabled) { background: #286044; }
.decision-button:disabled { opacity: .45; cursor: not-allowed; }
footer { padding-top: 22px; color: #89968d; font-size: 10px; text-align: center; }

.login-page, .error-page { display: grid; min-height: 100vh; place-items: center; padding: 28px; }
.login-card, .error-card {
  position: relative;
  width: min(100%, 440px);
  overflow: hidden;
  padding: 35px;
  border: 1px solid rgba(221, 231, 222, .95);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 70px rgba(27, 54, 38, .13), 0 3px 10px rgba(27, 54, 38, .045);
  backdrop-filter: blur(16px);
}
.login-card::before, .error-card::before { position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg, var(--green-deep), #77a36c 55%, var(--lime)); content: ""; }
.brand-mark { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 25px; border: 1px solid rgba(213, 242, 142, .7); border-radius: 15px; background: linear-gradient(145deg, var(--green-deep), #2f7951); box-shadow: 0 8px 18px rgba(25, 72, 50, .18); color: var(--lime); font-size: 22px; font-weight: 800; }
.login-card h1 { margin-bottom: 9px; font-size: 27px; }
.login-card .muted { margin-bottom: 25px; }
.login-card label { display: block; margin-bottom: 8px; color: #59675e; font-size: 11px; font-weight: 760; }
.primary-button { width: 100%; min-height: 48px; margin-top: 15px; border-color: var(--green-deep); background: var(--green-deep); color: #f6faf6; font-size: 13px; }
.primary-button:hover { transform: translateY(-1px); background: #286044; box-shadow: 0 6px 15px rgba(25, 72, 50, .16); }
.error { margin: 0 0 16px; padding: 11px 13px; border: 1px solid #efd4d0; border-radius: 11px; background: #fff4f2; color: #a44d47; font-size: 12px; }

/* Dark, editorial finish shared by every page in the panel. */
body {
  background:
    radial-gradient(ellipse at 8% 0%, rgba(41, 94, 70, .21), transparent 32rem),
    radial-gradient(ellipse at 100% 18%, rgba(52, 68, 104, .16), transparent 29rem),
    var(--canvas);
}
h1, h2 { font-family: "Bodoni MT", "Didot", "Georgia", serif; font-weight: 600; letter-spacing: -.025em; }
.main-nav, .request-tab, .secondary-button { border-color: var(--line); background: rgba(18, 26, 31, .9); color: #c0cbc4; }
.nav-link { color: #a5b1ab; }
.nav-link:hover, .request-tab:hover, .secondary-button:hover { border-color: #466153; background: #1a2825; color: #dff5e5; }
.nav-link.active, .request-tab.active, .decision-approve, .primary-button { background: #287149; border-color: #3b9a65; color: #f2fff5; }
.queue-card, .request-card { border-color: var(--line); background: linear-gradient(145deg, #151f24 0%, #10171b 100%); }
.queue-card:hover, .request-card:hover { border-color: #41564b; }
.queue-title, .metric-label, .request-kind, .user-name, td.channel { color: #dce7df; }
.queue-card strong { color: var(--ink); }
.metric, .panel, .summary-strip > div, .login-card, .error-card { border-color: var(--line); background: rgba(18, 26, 31, .94); }
.section-kicker, .activity-detail, .queue-note, .metric-note, footer { color: #88968e; }
.info-note, .request-user, td { color: #c2cdc6; }
th { background: #192329; color: #9aa8a0; }
th, td { border-color: #263238; }
tbody tr:hover td { background: rgba(38, 57, 49, .34); }
td.time, a { color: #83dca3; }
.summary-strip > div { color: #a5b1ab; }
.status-good { border-color: #315f47; background: #183425; color: #a7e3b8; }
.status-pending { border-color: #67542f; background: #352b19; color: #f0cf83; }
.status-bad { border-color: #70413d; background: #3a211f; color: #ffaaa2; }
.status-neutral { border-color: #3b484e; background: #202a2f; color: #b3c0b8; }
.request-card::before { background: #d6b15d; }
.request-heading time { color: #91a098; }
.request-text { border-color: #28373d; background: #0e1519; color: #c9d4cd; }
.request-fields dt, .decision-form label, .login-card label { color: #a1ada6; }
.request-fields dd { color: #d3ddd6; }
.request-empty { border-color: #344248; background: #141d22; }
.decision-form { border-color: #2b393f; }
.decision-form input, .decision-form textarea, input[type="password"] {
  border-color: #38484f; background: #0d1418; color: #edf2ee;
}
.decision-form input:focus, .decision-form textarea:focus, input[type="password"]:focus { border-color: #6ca882; box-shadow: 0 0 0 3px rgba(91, 176, 123, .16); }
.decision-button { border-color: #394950; background: #1b272c; color: #d4ded7; }
.decision-reject { border-color: #70413d; background: #35201e; color: #ffaaa2; }
.decision-pending { border-color: #67542f; background: #302817; color: #f0cf83; }
.action-notice { border-color: #315f47; background: #173124; color: #a7e3b8; }
.action-notice.action-error, .error { border-color: #70413d; background: #35201e; color: #ffaaa2; }
.user-editor { min-width: 140px; }
.user-editor summary { display: inline-flex; min-height: 34px; align-items: center; padding: 0 11px; border: 1px solid #3b5948; border-radius: 9px; background: #17271e; color: #bdeac9; cursor: pointer; font-size: 11px; font-weight: 750; list-style: none; white-space: nowrap; }
.user-editor summary::-webkit-details-marker { display: none; }
.user-editor[open] { min-width: 300px; }
.user-edit-form { display: grid; width: min(370px, 78vw); gap: 12px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #11191d; box-shadow: var(--shadow-raised); }
.user-edit-form label { display: grid; gap: 6px; color: #d2ddd5; font-size: 11px; font-weight: 720; }
.user-edit-form label .muted { margin: 0; font-size: 10px; font-weight: 450; }
.user-edit-form input, .user-edit-form textarea { width: 100%; min-height: 39px; padding: 9px 10px; border: 1px solid #38484f; border-radius: 9px; background: #0a1115; color: #edf2ee; resize: vertical; }
.user-edit-form textarea { min-height: 115px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; line-height: 1.5; }
.user-edit-form .primary-button { min-height: 39px; margin: 2px 0 0; font-size: 11px; }
.user-editor-cell { min-width: 170px; }
.login-card .muted { color: #9aa8a0; }
.brand-mark { border-color: #4c805b; background: linear-gradient(145deg, #214c37, #2f7951); }

@media (max-width: 720px) {
  .user-editor[open] { min-width: 0; }
  .user-edit-form { width: min(310px, 72vw); }
}
.error-card { width: min(100%, 620px); }
.error-card h1 { font-size: 26px; }

.date-filter {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 26, 31, .88);
}
.date-filter label { display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 720; }
.date-filter input { min-height: 40px; padding: 8px 10px; border: 1px solid #38484f; border-radius: 9px; background: #0d1418; color: var(--ink); color-scheme: dark; font: inherit; font-size: 12px; }
.date-filter input:focus { border-color: #6ca882; outline: none; box-shadow: 0 0 0 3px rgba(91, 176, 123, .16); }
.date-filter button { min-height: 40px; padding: 0 15px; border: 1px solid #3b9a65; border-radius: 9px; background: #287149; color: #f2fff5; font: inherit; font-size: 11px; font-weight: 760; cursor: pointer; }
.date-filter button:hover { background: #328256; }
.publication-list { display: grid; gap: 7px; min-width: 220px; margin: 0; padding: 0; list-style: none; }
.publication-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.publication-channel { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 1120px) {
  .queue-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-shell { width: min(100% - 48px, 1440px); }
}
@media (max-width: 800px) {
  .page-shell { width: calc(100% - 36px); padding-top: 25px; }
  .page-header { align-items: flex-start; flex-wrap: wrap; gap: 15px; margin-bottom: 22px; }
  .page-header > div:first-child { flex-basis: 100%; }
  .header-tools { width: 100%; justify-content: space-between; }
  .main-nav { flex: 1 1 auto; }
  .nav-link { flex: 1 1 0; }
}
@media (max-width: 600px) {
  .page-shell { width: calc(100% - 24px); padding-top: 20px; }
  h1 { font-size: 28px; }
  h2 { font-size: 17px; }
  .page-header { gap: 12px; padding-bottom: 17px; }
  .page-header .muted { max-width: 100%; font-size: 12px; }
  .header-tools { gap: 7px; }
  .main-nav { gap: 2px; padding: 4px; border-radius: 13px; }
  .nav-link { min-height: 40px; gap: 5px; padding: 0 7px; font-size: 10px; }
  .nav-link svg { width: 15px; height: 15px; }
  .header-tools .secondary-button { width: 41px; min-width: 41px; padding: 0; }
  .header-tools .secondary-button span { display: none; }
  .section-title-row { align-items: flex-start; flex-direction: column; gap: 4px; margin-bottom: 11px; }
  .section-title-row p { font-size: 10px; }
  .date-filter { align-items: stretch; flex-direction: column; gap: 8px; padding: 13px; }
  .date-filter label { gap: 5px; }
  .date-filter input, .date-filter button { width: 100%; }
  .metrics-title { margin-top: 24px; }
  .queue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 20px; }
  .queue-card { min-height: 160px; padding: 13px; border-radius: 15px; }
  .queue-icon { width: 30px; height: 30px; margin-bottom: 10px; border-radius: 9px; }
  .queue-card strong { font-size: 31px; }
  .queue-title { font-size: 10px; }
  .queue-note { font-size: 9px; }
  .queue-action { font-size: 10px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .metric { min-height: 124px; padding: 14px; border-radius: 15px; }
  .metric-value { font-size: 29px; }
  .metric-label { min-height: 30px; font-size: 10px; }
  .panel { margin-top: 13px; border-radius: 16px; }
  .panel-heading { padding: 17px 15px 12px; }
  .info-note { padding: 0 15px 12px; }
  th, td { padding: 11px 12px; }
  .summary-strip { flex-wrap: wrap; gap: 8px; }
  .summary-strip > div { flex: 1 1 130px; min-width: 130px; padding: 12px 14px; }
  .request-tabs { gap: 6px; margin-right: -12px; }
  .request-tab { min-height: 38px; padding: 0 10px; font-size: 10px; }
  .request-cards { gap: 9px; padding: 0 9px 10px; }
  .request-card { padding: 14px 13px 13px; border-radius: 13px; }
  .request-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .request-kind { font-size: 10px; }
  .request-fields > div { grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
  .decision-fields { grid-template-columns: 1fr; }
  .decision-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .decision-button { min-height: 39px; padding: 0 5px; font-size: 10px; }
  .login-page, .error-page { padding: 16px; }
  .login-card, .error-card { padding: 27px 23px; border-radius: 20px; }
}
@media (max-width: 380px) {
  .queue-grid { grid-template-columns: 1fr; }
  .queue-card { min-height: 145px; }
  .decision-buttons { grid-template-columns: 1fr; }
  .decision-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
