/* Underclassic AIPX monitor — terminal-style homage. No third-party trademarks. */
@font-face{
  font-family:"IBM Plex Mono";
  src:url("/fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight:400; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"IBM Plex Mono";
  src:url("/fonts/IBMPlexMono-SemiBold.woff2") format("woff2");
  font-weight:600; font-style:normal; font-display:swap;
}

:root{
  --bg:#070806;
  --bg-panel:#0c0d0a;
  --bg-row:#10110d;
  --bg-row-alt:#141510;
  --bg-hover:#1c1a10;
  --amber:#ffbf00;
  --amber-dim:#c49200;
  --amber-dk:#5c4300;
  --text:#e8e0cc;
  --muted:#9a9178;
  --line:#2a2718;
  --up:#3ee07a;
  --down:#ff5a5a;
  --live:#3ee07a;
  --warn:#ffbf00;
  --font:"IBM Plex Mono","JetBrains Mono",ui-monospace,"SFMono-Regular",Menlo,Consolas,"Liberation Mono","Courier New",monospace;
}

html.uc-term, body.uc-term{
  background:var(--bg) !important;
  color:var(--text) !important;
  margin:0;
  min-height:100%;
}
body.uc-term{
  font-family:var(--font);
  font-size:13px;
  line-height:1.45;
  text-rendering:optimizeLegibility;
}
body.uc-term a{ color:var(--amber); text-decoration:none; }
body.uc-term a:hover{ color:#ffe27a; text-decoration:underline; }
body.uc-term a:visited{ color:var(--amber); }

.uc-term-app{ max-width:1240px; margin:0 auto; padding:8px 10px 24px; }

.uc-term-top{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:8px 16px; border-bottom:2px solid var(--amber); padding:6px 0 8px;
}
.uc-term-wordmark{
  font-weight:600; letter-spacing:.14em; color:var(--amber) !important;
  font-size:15px; text-decoration:none !important;
}
.uc-term-product{
  margin-left:10px; color:var(--text); font-weight:600; letter-spacing:.08em; font-size:12px;
}
.uc-term-fine{ margin-left:8px; color:var(--muted); font-size:11px; letter-spacing:.04em; }

.uc-term-status{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; font-size:11px; }
.uc-term-live{
  display:inline-flex; align-items:center; gap:6px;
  color:var(--live); font-weight:600; letter-spacing:.12em;
}
.uc-term-live::before{
  content:""; width:8px; height:8px; border-radius:50%; background:var(--live);
  box-shadow:0 0 0 0 var(--live); animation:uc-pulse 1.8s ease-out infinite;
}
.uc-term-live.is-stale{ color:var(--warn); }
.uc-term-live.is-stale::before{ background:var(--warn); animation:none; }
.uc-term-live.is-off{ color:var(--muted); }
.uc-term-live.is-off::before{ background:var(--muted); animation:none; }
@keyframes uc-pulse{
  0%{ box-shadow:0 0 0 0 rgba(62,224,122,.7); }
  100%{ box-shadow:0 0 0 8px rgba(62,224,122,0); }
}
.uc-term-clock, .uc-term-next{ color:var(--muted); }

.uc-term-lead, p.uc-term-lead{
  margin:8px 0; font-size:12px; color:var(--muted);
}
.uc-term-lead a{ font-weight:600; }

.uc-term-fn{
  display:flex; flex-wrap:wrap; align-items:center; gap:4px 2px;
  background:#0a0b08; border:1px solid var(--line); padding:3px 4px; margin:8px 0;
  font-size:11px;
}
.uc-term-fn button, .uc-term-fn a.uc-fn{
  appearance:none; background:transparent; border:0; color:var(--text);
  font:inherit; cursor:pointer; padding:4px 7px; letter-spacing:.04em;
}
.uc-term-fn button:hover, .uc-term-fn a.uc-fn:hover{ background:var(--amber-dk); color:var(--amber); text-decoration:none; }
.uc-term-fn kbd{
  font:inherit; color:var(--amber); font-weight:600; padding-right:4px;
}
.uc-term-go{ display:flex; align-items:center; gap:6px; margin-left:auto; padding:2px 4px; }
.uc-term-go label{ color:var(--amber); font-weight:600; letter-spacing:.08em; }
.uc-term-go input{
  background:#000; color:var(--amber); border:1px solid var(--amber-dk);
  font:inherit; padding:3px 8px; min-width:10ch; width:16ch;
}
.uc-term-go button{
  background:var(--amber); color:#140f00; font-weight:600; border:0;
  padding:3px 8px; letter-spacing:.06em; cursor:pointer;
}
.uc-term-go button:hover{ background:#ffe27a; }

.uc-term-ticker{
  overflow:hidden; border:1px solid var(--line); background:#050604;
  margin:0 0 10px; height:28px; line-height:28px; font-size:12px;
  white-space:nowrap;
}
.uc-term-ticker-track{
  display:inline-block; white-space:nowrap;
  animation:uc-ticker 45s linear infinite;
}
.uc-term-ticker:hover .uc-term-ticker-track{ animation-play-state:paused; }
.uc-term-ticker-track span{ margin-right:2.5em; color:var(--muted); }
.uc-term-ticker-track .up{ color:var(--up); }
.uc-term-ticker-track .down{ color:var(--down); }
.uc-term-ticker-track .new{ color:var(--amber); }
/* Track HTML is duplicated; shift by half so the loop is seamless and items are visible at t=0. */
@keyframes uc-ticker{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

.uc-term-panel{
  border:1px solid var(--amber-dk); background:var(--bg-panel); margin:0 0 16px;
}
.uc-term-panel-h{
  display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between;
  gap:6px 12px; background:#161308; border-bottom:1px solid var(--amber);
  padding:6px 10px;
}
body.uc-term h1.uc-h1{
  font-family:var(--font); font-size:14px !important; font-weight:600;
  color:var(--amber); letter-spacing:.04em; margin:0 !important;
  text-transform:none;
}
.uc-term-panel-h .uc-term-meta{ color:var(--muted); font-size:11px; }

/* Compact Claude list near the top; keep the dark terminal panel (no light bgcolor). */
.uc-term-claude{ margin:10px 0 12px; }
.uc-term-claude h2{
  margin:0; font-family:var(--font); font-size:13px; font-weight:600;
  color:var(--amber); letter-spacing:.04em;
}
.uc-term-claude table.uc-term-grid td:last-child,
.uc-term-claude table.uc-term-grid th:last-child{ white-space:normal; }
.uc-term-claude .uc-term-compare{
  margin:0; padding:8px 10px; color:var(--text); font-size:12px;
  border-top:1px solid var(--line);
}


.uc-term-tools{
  display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center;
  padding:8px 10px; border-bottom:1px solid var(--line); font-size:12px;
}
.uc-term-tools label{ color:var(--muted); display:flex; align-items:center; gap:6px; }
.uc-term-tools input, .uc-term-tools select{
  background:#000; color:var(--text); border:1px solid var(--amber-dk);
  font:inherit; padding:3px 6px;
}
.uc-term-count{ margin-left:auto; color:var(--muted); font-size:11px; }

.uc-term-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; max-width:100%; }

table.uc-term-grid{
  width:100%; border-collapse:collapse; font-size:12px; background:var(--bg-panel);
}
table.uc-term-grid th, table.uc-term-grid td{
  border-bottom:1px solid var(--line); padding:4px 8px; vertical-align:top;
  white-space:nowrap;
}
table.uc-term-grid th{
  position:sticky; top:0; z-index:1;
  background:#161308; color:var(--amber); font-weight:600;
  letter-spacing:.05em; text-align:left; cursor:pointer; user-select:none;
}
table.uc-term-grid th[data-sort="num"], table.uc-term-grid td.num{ text-align:right; font-variant-numeric:tabular-nums; }
table.uc-term-grid th.is-asc::after{ content:" ▲"; color:var(--amber); }
table.uc-term-grid th.is-desc::after{ content:" ▼"; color:var(--amber); }
table.uc-term-grid tbody tr:nth-child(odd){ background:var(--bg-row); }
table.uc-term-grid tbody tr:nth-child(even){ background:var(--bg-row-alt); }
table.uc-term-grid tbody tr:hover{ background:var(--bg-hover); }
table.uc-term-grid td.chg-up, table.uc-term-grid td .up{ color:var(--up); }
table.uc-term-grid td.chg-down, table.uc-term-grid td .down{ color:var(--down); }
table.uc-term-grid td.chg-new{ color:var(--amber); }
table.uc-term-grid td.flash-up{ animation:uc-flash-up .9s ease-out; }
table.uc-term-grid td.flash-down{ animation:uc-flash-down .9s ease-out; }
@keyframes uc-flash-up{ from{ background:#0d3b20; color:var(--up); } to{ background:transparent; } }
@keyframes uc-flash-down{ from{ background:#3b0d0d; color:var(--down); } to{ background:transparent; } }
table.uc-term-grid .note{ color:var(--muted); font-size:11px; max-width:28ch; white-space:normal; }
table.uc-term-grid tr.is-hidden{ display:none; }
.uc-term-empty{ padding:12px 10px; color:var(--muted); }

/* Legacy boards (full model board, per-vendor tables, answer box).
   HTML 3.2 bgcolor="#eeeeee/#f7f7f7" must be beaten with !important. */
html.uc-term, body.uc-term{ color-scheme: dark; }
body.uc-term table,
body.uc-term thead,
body.uc-term tbody,
body.uc-term tfoot,
body.uc-term tr,
body.uc-term th,
body.uc-term td,
body.uc-term [bgcolor]{
  background:#0c0d0a !important;
  background-color:#0c0d0a !important;
  color:var(--text) !important;
  border-color:var(--line) !important;
}
body.uc-term #answer,
body.uc-term table[border],
body.uc-term table[border="1"]{
  background:var(--bg-panel) !important;
  color:var(--text) !important;
  border-color:var(--amber-dk) !important;
}
body.uc-term table[border] > tr:first-child,
body.uc-term table[border] > tbody > tr:first-child,
body.uc-term th,
body.uc-term table[border] > tr:first-child > td,
body.uc-term table[border] > tbody > tr:first-child > td{
  background:#161308 !important;
  background-color:#161308 !important;
  color:var(--amber) !important;
}
body.uc-term table[border] > tr:nth-child(even),
body.uc-term table[border] > tbody > tr:nth-child(even){
  background:var(--bg-row-alt) !important;
  background-color:var(--bg-row-alt) !important;
}
body.uc-term table[border] > tr:nth-child(odd),
body.uc-term table[border] > tbody > tr:nth-child(odd){
  background:var(--bg-row) !important;
  background-color:var(--bg-row) !important;
}
/* Re-assert header after the odd/even rules. */
body.uc-term table[border] > tr:first-child,
body.uc-term table[border] > tbody > tr:first-child,
body.uc-term table[border] > tr:first-child > td,
body.uc-term table[border] > tbody > tr:first-child > td,
body.uc-term th{
  background:#161308 !important;
  background-color:#161308 !important;
  color:var(--amber) !important;
}
body.uc-term table[border] td[colspan],
body.uc-term table[border] > tbody > tr > td[colspan]{
  color:var(--muted) !important;
}
body.uc-term #answer td, body.uc-term table[border] td, body.uc-term table[border] th{
  border-color:var(--line) !important;
}
body.uc-term a{ color:var(--amber); }
body.uc-term a:visited{ color:var(--amber); }
body.uc-term h2.uc-story{
  font-family:var(--font) !important; color:var(--amber);
  border-bottom:1px solid var(--amber-dk); padding-bottom:4px;
  letter-spacing:.06em;
}
body.uc-term p, body.uc-term li, body.uc-term td, body.uc-term th{ font-family:var(--font); }
body.uc-term .uc-term-copy{ padding:0 2px; }
body.uc-term .uc-term-copy table[border="1"]{ display:table; width:100%; }
body.uc-term .uc-term-wrap{ overflow-x:auto; -webkit-overflow-scrolling:touch; margin:0 0 1em; }

body.uc-term footer, body.uc-term .uc-term-foot{
  border-top:1px solid var(--line); margin-top:24px; padding-top:12px; color:var(--muted);
  font-size:12px;
}
.uc-term-legal{ color:var(--muted); font-size:11px; margin-top:8px; }
.uc-term-brandmark{ letter-spacing:.12em; color:var(--amber-dim); font-size:11px; }

/* Subscribe and other form controls: force a dark field, including autofill. */
body.uc-term input, body.uc-term select, body.uc-term textarea, body.uc-term button:not([class]){
  background:#000 !important; color:var(--text) !important; border:1px solid var(--amber-dk); font:inherit; padding:4px 6px;
}
body.uc-term input[type="submit"], body.uc-term button[type="submit"], body.uc-term .uc-term-go button{
  background:var(--amber) !important; color:#140f00 !important; border:0; font:inherit; font-weight:600; padding:4px 10px; cursor:pointer;
}
body.uc-term input:-webkit-autofill,
body.uc-term input:-webkit-autofill:hover,
body.uc-term input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--text);
  caret-color:var(--text);
  box-shadow:0 0 0 1000px #000 inset;
  transition:background-color 9999s ease-out 0s;
}

.uc-term-help{
  display:none; position:fixed; inset:10% 8%; z-index:20;
  background:#0c0d0a; border:1px solid var(--amber); color:var(--text);
  padding:16px 18px; overflow:auto; box-shadow:0 0 0 100vw rgba(0,0,0,.6);
}
.uc-term-help.is-open{ display:block; }
.uc-term-help h2{ color:var(--amber); margin:0 0 8px; font-size:14px; }
.uc-term-help kbd{ color:var(--amber); font:inherit; font-weight:600; }

@media (max-width:760px){
  body.uc-term{ font-size:12px; }
  .uc-term-product, .uc-term-fine{ display:inline; }
  .uc-term-go{ margin-left:0; width:100%; }
  .uc-term-go input{ flex:1; width:auto; }
  body.uc-term h1.uc-h1{ font-size:13px !important; white-space:normal; }
  /* Keep the monitor as a real table; scroll sideways instead of stacking cells. */
  body.uc-term table.uc-term-grid,
  body.uc-term table.uc-term-grid thead,
  body.uc-term table.uc-term-grid tbody,
  body.uc-term table.uc-term-grid tr,
  body.uc-term table.uc-term-grid td,
  body.uc-term table.uc-term-grid th{
    display:revert !important;
  }
  table.uc-term-grid th, table.uc-term-grid td{ padding:4px 6px; }
  .uc-term-fn button, .uc-term-fn a.uc-fn{ padding:6px 8px; }
  body.uc-term table[border],
  body.uc-term table[border] tbody,
  body.uc-term table[border] tr,
  body.uc-term table[border] td,
  body.uc-term table[border] th{
    display:revert !important;
  }
  body.uc-term table[border],
  body.uc-term table[border] tr,
  body.uc-term table[border] td,
  body.uc-term table[border] th{
    background-color:inherit; /* overwritten below with explicit dark colors */
  }
  body.uc-term table[border],
  body.uc-term table[border] tr,
  body.uc-term table[border] td{ background-color:#0c0d0a !important; color:#e8e0cc !important; }
  body.uc-term table[border] > tr:first-child,
  body.uc-term table[border] > tr:first-child > td,
  body.uc-term table[border] > tbody > tr:first-child,
  body.uc-term table[border] > tbody > tr:first-child > td{ background-color:#161308 !important; color:#ffbf00 !important; }
}

@media (prefers-reduced-motion:reduce){
  .uc-term-ticker-track, .uc-term-live::before,
  table.uc-term-grid td.flash-up, table.uc-term-grid td.flash-down{ animation:none !important; }
}
