:root {
  color-scheme: dark;
  --canvas: #111414;
  --surface: #181c1c;
  --line: #353b39;
  --ink: #f3f0e8;
  --muted: #b1b4ad;
  --bronze: #ddbe8c;
  --new: #d6b27d;
  --review: #9aacc2;
  --discovery: #9bafa0;
  --partnership: #7bb3a6;
  --closed: #9d96a7;
  background: var(--canvas);
  color: var(--ink);
  font: 1rem/1.48 "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.console a { color: inherit; text-underline-offset: .23em; }
.console button { font-family: inherit; }
:focus-visible { outline: 2px solid #f6d8a6; outline-offset: 4px; }
.console-skip, .visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  white-space: nowrap;
}
.console-skip:focus {
  width: auto; height: auto; clip-path: none; left: .75rem; top: .75rem; z-index: 5;
  background: var(--bronze); color: #171917; padding: .6rem 1rem;
}
.console { display: grid; grid-template-columns: clamp(12rem, 18vw, 15rem) minmax(0, 1fr); min-height: 100vh; }
.rail {
  position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; display: flex;
  flex-direction: column; align-items: stretch; padding: 1.75rem 1.05rem 1.1rem;
  background: #0d1010; border-right: 1px solid #303634;
}
.rail .rail-brand { display: flex; align-items: center; gap: .7rem; min-height: 44px; padding-inline: .28rem;
  text-decoration: none; white-space: nowrap; font: 1.15rem/1.1 Georgia, "Times New Roman", serif; }
.brand-mark { color: var(--bronze); font: 1.9rem/1 Georgia, "Times New Roman", serif; letter-spacing: -.08em;
  display: inline-block; padding-right: .58rem; border-right: 1px solid #64543f; }
.brand-mark i { margin-right: -.14em; }
.rail-nav { display: grid; align-items: stretch; gap: .3rem; margin-top: 3.15rem; }
.rail-nav a, .rail .rail-exit {
  display: flex; align-items: center; gap: .72rem; min-height: 44px; border: 1px solid transparent;
  border-radius: 3px; padding: .56rem .72rem; color: var(--muted); font-size: .94rem;
  text-decoration: none;
}
.rail-nav a:hover, .rail .rail-exit:hover { color: var(--ink); background: #1b201e; }
.rail-nav a[aria-current="page"] { color: #ead4af; background: #24251f; border-color: #474133; box-shadow: inset 2px 0 #c3a676; }
.rail-nav a::before, .rail .rail-exit::before {
  content: ""; flex: 0 0 1rem; width: 1rem; height: 1rem; display: inline-block; color: currentColor;
}
.rail-nav a[href="/admin/"]::before {
  background: linear-gradient(currentColor 0 0) 0 0/40% 40%, linear-gradient(currentColor 0 0) 100% 0/40% 40%,
              linear-gradient(currentColor 0 0) 0 100%/40% 40%, linear-gradient(currentColor 0 0) 100% 100%/40% 40%;
  background-repeat: no-repeat; opacity: .86;
}
.rail-nav a[href="/admin/applicants/"]::before {
  background: radial-gradient(ellipse at 50% 24%, transparent 16%, currentColor 19% 26%, transparent 29%),
              radial-gradient(ellipse 61% 53% at 50% 96%, transparent 60%, currentColor 66% 76%, transparent 81%);
}
.rail-nav a[href="/admin/calls/"]::before {
  border: 1.5px solid; border-radius: 3px; height: .88rem;
  background: linear-gradient(currentColor 0 0) center 29%/100% 1px no-repeat;
}
.rail .rail-exit { margin-top: auto; border-top: 1px solid var(--line); border-radius: 0; }
.rail .rail-exit::before {
  width: .8rem; height: .8rem; border: 1px solid; border-right: 0;
  background: linear-gradient(currentColor 0 0) 100% 50%/60% 1px no-repeat;
}
.workspace {
  width: 100%; min-width: 0; max-width: 102rem; margin: 0 auto; padding: clamp(1.75rem, 4.1vw, 4.4rem);
}
.workspace h1 { margin: 0; color: var(--ink); font: 400 clamp(2.7rem, 4.6vw, 5.1rem)/1.04 Georgia, "Times New Roman", serif; letter-spacing: -.058em; }
.overview :is(h2, p, dl, dd) { margin: 0; }
.overview-head { display: flex; gap: 1rem; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: clamp(1.4rem, 2.8vw, 2.4rem); }
.overview .as-of { margin-top: .8rem; color: var(--muted); font-size: .91rem; }
.overview .as-of:empty { display: none; }
.overview :is(.refresh, .access-action) { border: 1px solid #535a53; border-radius: 3px; background: #1b201e;
  color: var(--ink); min-height: 42px; padding: .53rem .92rem; display: inline-flex; align-items: center;
  gap: .5rem; text-decoration: none; font-size: .91rem; cursor: pointer; }
.overview .refresh::before { content: "↻"; color: var(--bronze); font: 1.25rem/1 "Segoe UI Symbol", Arial, sans-serif; }
.overview :is(.refresh, .access-action):hover { border-color: #b7a17d; background: #252923; }
.overview .refresh:disabled { opacity: .58; cursor: wait; }
.overview-notice:not(:empty) { margin-top: 1rem; color: var(--muted); }
.access-panel { margin-top: 2rem; max-width: 36rem; border: 1px solid var(--line); border-top: 2px solid var(--bronze); padding: clamp(1.3rem, 3.3vw, 2.5rem); background: var(--surface); }
.access-panel h2 { font: 400 1.9rem Georgia, serif; }
.access-panel p { margin-top: .6rem; color: var(--muted); }
.access-panel :is(a, button) { margin-top: 1.1rem; }
/* Overview queues use the current Alaska day, independently of the chart period. */
.overview { padding: clamp(1.35rem, 2.6vw, 3rem) clamp(1.25rem, 3.2vw, 3.6rem); }
.overview-head { padding-bottom: clamp(1rem, 1.6vw, 1.6rem); }
.overview-head h1 { font-size: clamp(2.5rem, 3.8vw, 4.1rem); }
.attention { margin-block: clamp(1.1rem, 1.65vw, 1.7rem); }
.attention h2 { margin: 0 0 .7rem; font: 500 1.05rem/1.3 "Segoe UI", Arial, sans-serif; }
.attention-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--line); }
.attention-links a { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding: .9rem 1.2rem; color: var(--ink); text-decoration: none; }
.attention-links a:first-child { padding-left: .15rem; }
.attention-links a + a { border-left: 1px solid var(--line); }
.attention-links a:hover span, .decision-list a:hover { text-decoration: underline; }
.attention-links strong { color: var(--bronze); font: 400 clamp(2rem,3.3vw,3.4rem)/1 Georgia, serif; font-variant-numeric: lining-nums tabular-nums; }
.attention-links span { font-size: .95rem; }
.trend .periods { margin-top: 1.12rem; gap: .48rem; }
.trend .periods button { border-radius: 2px; padding: .55rem .74rem; gap: .14rem; }
.trend .periods strong { font-size: clamp(1.45rem,2vw,2.15rem); }
#comparison { margin-top: .8rem; font-size: .91rem; color: #e1cba6; }
.chart-dates, .chart-panel .capacity-detail { color: var(--muted); font-size: .88rem; }
.charts .trend-plot { height: clamp(8.5rem,18vh,14rem); margin-top: .6rem; }
.decision-column { display: grid; gap: .9rem; }
.decisions header { display: flex; justify-content: space-between; align-items: baseline; gap: .55rem; }
.decisions .decision-count { text-decoration: none; color: var(--bronze); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.decisions .decision-count:hover { text-decoration: underline; }
.decision-list { list-style: none; margin: .55rem 0 0; padding: 0; }
.decision-list li { padding: .4rem 0; overflow-wrap: anywhere; }
.decision-list a { font-weight: 600; text-decoration: none; }
.decision-list span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .9rem; }
.chart-panel .decision-empty { color: var(--muted); margin-top: .65rem; font-size: .94rem; }
.chart-panel .capacity-value { color: #e6d7bc; margin-top: .8rem; font: 400 1.35rem/1.25 Georgia,serif; }
.chart-panel .capacity-detail { margin-top: .3rem; }
.rail-nav a[href="/admin/planning/"]::before { height: .72rem; border: 1.3px solid; border-radius: 2px; background: linear-gradient(currentColor 0 0) center 40%/100% 1px no-repeat; }
.rail-nav a[href="/admin/conversion/"]::before { background: linear-gradient(currentColor 0 0) 4% 100%/18% 35%,linear-gradient(currentColor 0 0) 49% 100%/18% 65%,linear-gradient(currentColor 0 0) 94% 100%/18% 94%; background-repeat: no-repeat; }
.periods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.periods button { position: relative; display: grid; gap: .3rem; text-align: left; color: var(--ink); font: inherit;
  border: 1px solid var(--line); border-radius: 4px; background: #171b1a; padding: clamp(.85rem, 1.7vw, 1.45rem); cursor: pointer; min-width: 0; }
.periods button:hover { border-color: #747363; background: #202321; }
.periods button[aria-pressed="true"] { border-color: #85714f; background: #24251f; box-shadow: inset 0 2px #c9ad7f; }
.periods button span { color: var(--muted); font-size: .91rem; }
.periods button[aria-pressed="true"] span { color: #ead4af; }
.periods strong { font-size: clamp(1.8rem, 3.3vw, 3.25rem); line-height: 1.08; letter-spacing: -.055em; font-weight: 400; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.charts { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(14rem, .95fr); gap: 1rem; align-items: start; }
.chart-panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(1rem, 1.55vw, 1.55rem); }
.chart-panel h2 { color: var(--ink); font: 400 clamp(1.55rem, 2.4vw, 2.25rem)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.chart-panel header p { color: var(--muted); margin-top: .4rem; font-size: .86rem; }
.trend-plot { position: relative; width: 100%; height: 15.8rem; margin-top: 1.15rem; }
#trend-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.axis-label { fill: #adb3ab; font: 11px "Segoe UI", Arial, sans-serif; }
.grid-line { stroke: #383f3d; stroke-width: 1; }
.trend-fill { fill: #ba9c68; fill-opacity: .1; }
.trend-line { fill: none; stroke: #debd86; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.trend-line.is-empty { stroke-dasharray: 3 5; stroke-width: 1.5; }
.trend-point { fill: #f4d7a4; stroke: #171c1b; stroke-width: 1.5; }
.plot-empty { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); background: var(--surface); color: var(--muted); padding: .32rem .65rem; font-size: .87rem; text-align: center; }
.series-data { margin-top: .85rem; border-top: 1px solid var(--line); }
.series-data summary, .console .panel-link { display: flex; align-items: center; justify-content: space-between; gap: .4rem; min-height: 45px; padding-top: .35rem; color: var(--bronze); font-size: .87rem; cursor: pointer; }
.series-data summary { list-style: none; }
.series-data summary::-webkit-details-marker { display: none; }
.series-data summary::after { content: "+"; font-size: 1.2rem; }
.series-data[open] summary::after { content: "−"; }
.series-data table { width: 100%; border-collapse: collapse; margin-block: .65rem .2rem; font-variant-numeric: tabular-nums; font-size: .86rem; }
.series-data caption { text-align: left; color: var(--muted); padding-bottom: .6rem; }
.series-data :is(th, td) { padding: .4rem .25rem; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.series-data thead th { font-weight: 600; color: var(--ink); }
.series-data tr > :last-child { text-align: right; }
.ring { position: relative; display: grid; place-items: center; margin: 1.2rem auto; width: min(8.85rem, 85%); aspect-ratio: 1; }
.ring svg { display: block; width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 11; }
.ring-track { stroke: #363d39; }
.ring .new { stroke: var(--new); }
.ring .review { stroke: var(--review); }
.ring .discovery { stroke: var(--discovery); }
.ring .partnership { stroke: var(--partnership); }
.ring .closed { stroke: var(--closed); }
.ring-total { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-total strong { line-height: 1.04; font-size: clamp(1.55rem, 2.3vw, 2.3rem); letter-spacing: -.04em; font-weight: 400; }
.ring-total span { font-size: .78rem; color: var(--muted); }
.stage-key > div { display: flex; align-items: baseline; gap: .75rem; justify-content: space-between; padding: .22rem 0; }
.stage-key dt { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-size: .92rem; }
.stage-key dt::before { content: ""; width: .55rem; height: .55rem; background: var(--new); border-radius: 2px; }
.stage-key .review dt::before { background: var(--review); }
.stage-key .discovery dt::before { background: var(--discovery); }
.stage-key .partnership dt::before { background: var(--partnership); }
.stage-key .closed dt::before { background: var(--closed); }
.stage-key dd { font-variant-numeric: tabular-nums; font-size: .88rem; }
.stage-key dd span { color: var(--muted); }
.console .panel-link { margin-top: .75rem; border-top: 1px solid var(--line); text-decoration: none; }
.panel-link:hover, .series-data summary:hover { text-decoration: underline; }
@media (min-width: 95rem) { .trend-plot { height: 17rem; } }
@media (max-width: 73rem) { .charts { grid-template-columns: minmax(0,1.5fr) minmax(13.5rem,1fr); } .workspace { padding: 2rem 1.55rem; } }
@media (max-width: 64rem) {
  .console { display: block; }
  .rail { position: static; width: auto; height: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem 1.3rem;
    padding: .7rem 1.4rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail-nav { display: flex; flex-wrap: wrap; margin: 0; justify-content: center; gap: .15rem; }
  .rail-nav a, .rail .rail-exit { padding: .4rem .6rem; }
  .rail .rail-exit { margin: 0; border: 0; }
  .rail-nav a[aria-current="page"] { box-shadow: inset 0 -2px #c3a676; }
}
@media (max-width: 48rem) {
  .rail { padding: .6rem 1.05rem 0; grid-template-columns: minmax(0,1fr) auto; gap: .15rem .5rem; }
  .rail .rail-brand { padding-left: 0; }
  .rail-nav { grid-row: 2; grid-column: 1 / -1; display: flex; justify-content: flex-start; gap: .15rem .35rem; }
  .rail-nav a { min-height: 42px; border-radius: 3px 3px 0 0; padding-inline: .5rem; font-size: .84rem; gap: .4rem; }
  .rail-nav a::before { flex-basis: .8rem; width: .8rem; height: .8rem; }
  .rail .rail-exit { grid-row: 1; grid-column: 2; font-size: .84rem; }
  .workspace { padding: 1.65rem 1.05rem 2.4rem; }
  .overview-head { align-items: start; gap: .6rem; }
  .overview .refresh { min-height: 38px; padding-inline: .57rem; font-size: .83rem; }
  .periods { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem; }
  .periods button { padding: .76rem .87rem; }
  .charts { grid-template-columns: 1fr; gap: .85rem; }
  .trend-plot { height: 12.75rem; }
}
@media (max-width: 48rem) {
  .attention-links a { display: grid; align-content: start; gap: .35rem; padding: .68rem .5rem; }
  .attention-links span { font-size: .86rem; }
  .trend .periods { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .trend .periods button { padding: .48rem .4rem; }
  .trend .periods button span { font-size: .83rem; }
  .rail-nav { column-gap: .15rem; }
  .rail-nav a { padding-inline: .36rem; }
  .rail-nav a::before { display: none; }
}
@media (max-width: 23rem) {
  .rail-nav a::before { display: none; }
  .workspace h1 { font-size: 2.36rem; }
}
@media (min-width: 64.01rem) and (max-height: 50rem) {
  .overview { padding-block: 1.2rem; }
  .overview-head { padding-bottom: .75rem; }
  .overview-head .as-of { margin-top: .38rem; }
  .attention { margin-block: .83rem; }
  .attention-links a { padding-block: .62rem; }
  .chart-panel { padding: 1rem 1.15rem; }
  .decision-column { gap: .65rem; }
  .decisions .panel-link, .capacity .panel-link { margin-top: .45rem; min-height: 35px; }
  .charts .trend-plot { height: 8.5rem; }
}
@media (min-width: 48.01rem) and (max-width: 64rem) { .overview { padding-block: 1.1rem; } }
@media (forced-colors: active) {
  .periods button[aria-pressed="true"], .rail-nav a[aria-current="page"] { outline: 2px solid Highlight; }
  .grid-line, .ring-track { stroke: GrayText; } .axis-label { fill: CanvasText; }
  .trend-line { stroke: Highlight; } .trend-point { fill: Highlight; }
}
