/* defreest.us front page: the application renderings.
   Every screen is markup drawn in the palette of the application it shows, with sample data.
   A screen is a box with a fixed aspect ratio; its text is sized from the box width (cqw), so a
   rendering keeps its proportions at every page width and never shifts the layout around it.
   Loops move transform and opacity only and rest on a complete frame when motion is reduced.
   No images, no fonts, no remote references (the Content-Security-Policy allows this file only). */

.screen {
  --s-bg: #101415;
  --s-panel: #171c1d;
  --s-line: #293334;
  --s-text: #e7eeeb;
  --s-muted: #91a49c;
  --s-accent: #79c9b5;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 32 / 21.65;
  overflow: hidden;
  background: var(--s-bg);
  color: var(--s-text);
  color-scheme: dark;
}

.ui {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 10px;
  font-size: calc(100cqw / var(--cols, 32));
  line-height: 1.3;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}
.ui p { margin: 0; }
.ui b { font-weight: 650; }
.ui i, .ui em, .ui u { font-style: normal; text-decoration: none; }
.ui small { font-size: 0.78em; }

/* Two densities: compact everywhere, wide where the box is wide (the hero window and the wide cards). */
@media (max-width: 599.98px) {
  .window .w { display: none !important; }
  .window .ui { --cols: 29; }
}
@media (min-width: 600px) {
  .window .c { display: none !important; }
  .window .ui { --cols: 44; }
}
@media (max-width: 980px) { .app .w { display: none !important; } }
/* Narrow pages: fewer columns, so the text inside a rendering stays readable on a phone. */
@media (max-width: 760px) {
  .app .ui { --cols: 28; }
  .shot .screen { aspect-ratio: 28 / 21.65; }
}
@media (min-width: 981px) {
  .app:not(.span-7) .w, .span-7 .c { display: none !important; }
  .span-7 .ui { --cols: 50; }
  .span-7 .screen { aspect-ratio: 50 / 23.87; }
  .span-4 .ui { --cols: 27; }
  .span-4 .screen { aspect-ratio: 27 / 21; }
}

/* Shared parts */

.ui .k {
  color: var(--s-muted);
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6em; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  min-width: 0;
  padding: 0.6em 0.7em;
  border: 1px solid var(--s-line);
  border-radius: 0.7em;
  background: var(--s-panel);
  overflow: hidden;
}
.kpi .v {
  font-size: 1.7em;
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.kpi .v i { margin-left: 0.1em; color: var(--s-muted); font-size: 0.5em; font-weight: 500; letter-spacing: 0; }
.live { display: flex; align-items: center; gap: 0.5em; color: var(--s-muted); font-size: 0.64em; letter-spacing: 0.08em; text-transform: uppercase; }
.live::before { content: ""; width: 0.7em; height: 0.7em; border-radius: 50%; background: #55cf8f; animation: beat 2.2s ease-in-out infinite; }
.pnl {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 0.6em 0.75em;
  border: 1px solid var(--s-line);
  border-radius: 0.7em;
  background: var(--s-panel);
}
.pnl-h { padding-bottom: 0.35em; font-size: 0.82em; font-weight: 650; }
.bar { position: relative; display: block; height: 0.42em; border-radius: 1em; background: var(--s-line); overflow: hidden; }
.bar > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--s-accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 1));
  animation: grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s both;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12em 0.6em;
  border: 1px solid var(--s-line);
  border-radius: 1em;
  color: var(--s-muted);
  font-size: 0.72em;
  white-space: nowrap;
}
.chip.ok { border-color: rgba(85, 207, 143, 0.5); color: #55cf8f; }
.chip.bad { border-color: rgba(238, 109, 118, 0.55); color: #ee6d76; }

.p08 { --p: 0.08; } .p18 { --p: 0.18; } .p31 { --p: 0.31; } .p35 { --p: 0.35; } .p41 { --p: 0.41; } .p44 { --p: 0.44; }
.p52 { --p: 0.52; } .p62 { --p: 0.62; } .p64 { --p: 0.64; } .p68 { --p: 0.68; } .p71 { --p: 0.71; } .p78 { --p: 0.78; }
.p81 { --p: 0.81; } .p86 { --p: 0.86; } .p88 { --p: 0.88; } .p96 { --p: 0.96; }
.h46 { --h: 0.46; } .h51 { --h: 0.51; } .h55 { --h: 0.55; } .h58 { --h: 0.58; } .h62 { --h: 0.62; }
.h70 { --h: 0.7; } .h72 { --h: 0.72; } .h80 { --h: 0.8; } .h88 { --h: 0.88; } .h96 { --h: 0.96; }

@keyframes grow { from { transform: scaleX(0); } }
@keyframes rise-bar { from { transform: scaleY(0); } }
@keyframes beat { 0%, 100% { opacity: 1; transform: none; } 50% { opacity: 0.35; transform: scale(0.8); } }
@keyframes arrive { from { opacity: 0; transform: translateX(-0.8em); } }

/* Staged entrances for the looping demos: step n arrives in turn, everything clears at the end. */
@keyframes st1 { 0%, 2% { opacity: 0; transform: translateY(0.5em); } 6%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes st2 { 0%, 9% { opacity: 0; transform: translateY(0.5em); } 13%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes st3 { 0%, 16% { opacity: 0; transform: translateY(0.5em); } 20%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes st4 { 0%, 23% { opacity: 0; transform: translateY(0.5em); } 27%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes st5 { 0%, 30% { opacity: 0; transform: translateY(0.5em); } 34%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes st6 { 0%, 37% { opacity: 0; transform: translateY(0.5em); } 41%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* The hero window: the Cockpit */

.window {
  position: relative;
  width: 100%;
  border: 1px solid #2d393a;
  border-radius: 14px;
  background: #131819;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.65), 0 0 0 6px var(--accent-soft);
  overflow: hidden;
}
.tab-in { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.win-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid #293334;
  color: #b0bfba;
}
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3b4849; }
.win-title { color: #e7eeeb; font-size: 13.5px; font-weight: 650; letter-spacing: 0.02em; }
.win-tabs { display: flex; gap: 2px; margin-left: auto; padding: 3px; border: 1px solid #293334; border-radius: 10px; background: #101415; }
.win-tabs label {
  padding: 5px 12px;
  border-radius: 7px;
  color: #b0bfba;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.win-tabs label:hover { color: #e7eeeb; }
#ck-overview:checked ~ .win-bar label[for="ck-overview"],
#ck-fleet:checked ~ .win-bar label[for="ck-fleet"],
#ck-finance:checked ~ .win-bar label[for="ck-finance"] { background: #283132; color: #a0e2d0; }
#ck-overview:focus-visible ~ .win-bar label[for="ck-overview"],
#ck-fleet:focus-visible ~ .win-bar label[for="ck-fleet"],
#ck-finance:focus-visible ~ .win-bar label[for="ck-finance"] { outline: 2px solid #79c9b5; outline-offset: 2px; }
@media (max-width: 480px) {
  .win-dots { display: none; }
  .win-bar { gap: 10px; padding-left: 12px; }
  .win-tabs label { padding: 5px 9px; }
}
.window figcaption { padding: 9px 14px; border-top: 1px solid #293334; color: #91a49c; font-size: 13px; line-height: 1.45; }

.ck { aspect-ratio: 29 / 22; }
.ck .ui { flex-direction: row; }
.ck-side {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 0.12em;
  width: 9.2em;
  padding: 0.9em 0.7em;
  border-right: 1px solid var(--s-line);
  background: #131819;
}
.ck-mark { display: flex; flex-direction: column; padding: 0 0.45em 0.5em; color: var(--s-muted); font-size: 0.72em; line-height: 1.25; }
.ck-mark b { color: var(--s-text); font-size: 1.25em; letter-spacing: 0.06em; }
.ck-side .k { padding: 0.9em 0.7em 0.3em; font-size: 0.6em; }
.ck-i { padding: 0.3em 0.6em; border-radius: 0.5em; color: #b0bfba; font-size: 0.8em; transition: background-color 0.3s ease, color 0.3s ease; }
#ck-overview:checked ~ .screen .i-overview,
#ck-fleet:checked ~ .screen .i-fleet,
#ck-finance:checked ~ .screen .i-finance { background: rgba(121, 201, 181, 0.13); color: #a0e2d0; font-weight: 600; }
.ck-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ck-bar { display: flex; align-items: center; gap: 0.5em; padding: 0.55em 0.8em; border-bottom: 1px solid var(--s-line); }
.ck-search { flex: 1; min-width: 0; padding: 0.32em 0.8em; border: 1px solid var(--s-line); border-radius: 0.6em; background: var(--s-panel); color: var(--s-muted); font-size: 0.74em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-ask { padding: 0.32em 0.9em; border-radius: 0.6em; background: #79c9b5; color: #0d221c; font-size: 0.74em; font-weight: 650; }
.ck-stop { padding: 0.32em 0.7em; border: 1px solid rgba(238, 109, 118, 0.5); border-radius: 0.6em; color: #ee6d76; font-size: 0.74em; font-weight: 600; }
.ck-panes { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 0.8em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.5em);
  transition: opacity 0.14s ease, transform 0s 0.14s, visibility 0s 0.14s;
}
#ck-overview:checked ~ .screen .p-overview,
#ck-fleet:checked ~ .screen .p-fleet,
#ck-finance:checked ~ .screen .p-finance { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s ease 0.08s, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.08s, visibility 0s 0.08s; }
.ck-t { font-size: 1.25em; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
.ck-t small { margin-left: 0.7em; color: var(--s-muted); font-size: 0.56em; font-weight: 500; letter-spacing: 0; }
.ck-cols { display: flex; flex: 1; gap: 0.6em; min-height: 0; }
.ck-cols .pnl { flex: 1; }
.att, .job, .due { flex: 1; align-items: center; border-top: 1px solid var(--s-line); font-size: 0.82em; }
.att { display: flex; gap: 0.6em; }
.att span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.att em { padding: 0.12em 0.7em; border: 1px solid #3b4849; border-radius: 0.5em; color: #b0bfba; font-size: 0.86em; }
.dot { flex: none; width: 0.55em; height: 0.55em; border-radius: 50%; }
.dot.warn { background: #e3ad4c; }
.dot.info { background: #74a8f5; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 0.3em 0.6em; }
.job span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job small { color: var(--s-muted); }
.job .bar { grid-column: 1 / -1; }
.tbl { flex: 1; padding-block: 0.25em; }
.tr { display: grid; flex: 1; grid-template-columns: 1.3fr 1.1fr 0.9fr; align-items: center; gap: 0.5em; border-top: 1px solid var(--s-line); font-size: 0.8em; }
.tr.th { flex: none; padding: 0.4em 0; border-top: 0; color: var(--s-muted); font-size: 0.66em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tr span:nth-child(2) { color: #b0bfba; }
.tr em { display: inline-block; padding: 0.08em 0.6em; border-radius: 1em; font-size: 0.86em; font-weight: 600; }
.tr em.ok { background: rgba(85, 207, 143, 0.14); color: #55cf8f; }
.tr em.warn { background: rgba(227, 173, 76, 0.16); color: #e3ad4c; animation: beat 2.2s ease-in-out infinite; }
.due { display: grid; grid-template-columns: minmax(0, 1fr) auto 4.8em; gap: 0.6em; }
.due span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.due b { font-variant-numeric: tabular-nums; }
.due em { color: var(--s-muted); font-size: 0.86em; text-align: right; }
.due em.warn { color: #e3ad4c; }
.cat { display: grid; flex: 1; grid-template-columns: 5em minmax(0, 1fr); align-items: center; gap: 0.6em; color: #b0bfba; font-size: 0.8em; }
@media (min-width: 600px) {
  .ck { aspect-ratio: 44 / 27; }
  .window .tr { grid-template-columns: 1.3fr 1.1fr 0.8fr 0.8fr; }
  .window .pane { padding: 0.9em; gap: 0.7em; }
}

/* TMOS: Converse and Routing */

.cv, .rt { aspect-ratio: 32 / 17.2; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 980px) {
  .cv, .rt { aspect-ratio: 28 / 17.2; }
  .cv .ui, .rt .ui { --cols: 28; }
}
.cv .ui, .rt .ui { gap: 0.6em; padding: 1em 1.1em; }
.dm-h { display: flex; align-items: baseline; gap: 0.7em; }
.dm-h b { color: var(--s-accent); font-family: var(--mono); font-size: 0.78em; letter-spacing: 0.12em; text-transform: uppercase; }
.dm-h span { color: var(--s-muted); font-size: 0.8em; }
.cv-turn { display: flex; flex-direction: column; gap: 0.35em; }
.cv-q { align-self: flex-end; padding: 0.35em 0.85em; border-radius: 0.9em 0.9em 0.2em 0.9em; background: #283132; font-family: var(--mono); font-size: 0.86em; }
.type { display: inline-block; white-space: nowrap; }
.cv-a { display: flex; flex-wrap: wrap; align-items: center; align-self: flex-start; gap: 0.35em; max-width: 94%; padding: 0.5em 0.75em; border: 1px solid var(--s-line); border-radius: 0.2em 0.9em 0.9em 0.9em; background: var(--s-panel); }
.cv-a q { flex-basis: 100%; font-size: 0.92em; }
.cv .t1 .cv-q { animation: q1 11s infinite both; }
.cv .t1 .type { animation: ty1 11s steps(21, end) infinite both; }
.cv .t1 .cv-a { animation: st2 11s infinite both; animation-delay: 0.25s; }
.cv .t2 .cv-q { animation: q2 11s infinite both; }
.cv .t2 .type { animation: ty2 11s steps(19, end) infinite both; }
.cv .t2 .cv-a { animation: st5 11s infinite both; }
@keyframes q1 { 0%, 1% { opacity: 0; } 3%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes q2 { 0%, 19% { opacity: 0; } 21%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ty1 { 0%, 3% { clip-path: inset(0 100% 0 0); } 10%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes ty2 { 0%, 21% { clip-path: inset(0 100% 0 0); } 29%, 100% { clip-path: inset(0 0 0 0); } }

.rt-job { display: flex; align-items: center; gap: 0.7em; font-size: 0.9em; }
.rt-job .k { font-size: 0.8em; }
.rt-job .chip { margin-left: auto; font-size: 0.78em; }
.rt-rows { display: flex; flex: 1; flex-direction: column; gap: 0.4em; min-height: 0; }
.rt-r {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: 8.4em minmax(0, 1fr) 1.8em 6.2em;
  align-items: center;
  gap: 0.7em;
  padding: 0 0.8em;
  border: 1px solid var(--s-line);
  border-radius: 0.6em;
  background: var(--s-panel);
  font-size: 0.84em;
}
.rt-r b { text-align: right; font-variant-numeric: tabular-nums; }
.rt-r em { color: var(--s-muted); font-size: 0.9em; text-align: right; white-space: nowrap; }
.rt-r .bar::after { content: ""; position: absolute; left: 70%; top: 0; bottom: 0; width: 1px; background: #e7eeeb; opacity: 0.7; }
.rt-r:nth-child(1) .bar > i { background: #5f716b; animation: grow-loop 9s cubic-bezier(0.2, 0.7, 0.2, 1) infinite both; }
.rt-r:nth-child(2) .bar > i { animation: grow-loop 9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s infinite both; }
.rt-r:nth-child(3) .bar > i { background: #74a8f5; animation: grow-loop 9s cubic-bezier(0.2, 0.7, 0.2, 1) 1s infinite both; }
.pick em { color: #a0e2d0; font-weight: 650; animation: st4 9s infinite both; }
.pick::after { content: ""; position: absolute; inset: -1px; border: 1.5px solid var(--s-accent); border-radius: inherit; background: rgba(121, 201, 181, 0.08); animation: st4 9s infinite both; }
.rt-f { color: var(--s-muted); font-size: 0.74em; }
@keyframes grow-loop { 0%, 4% { transform: scaleX(0); } 18%, 100% { transform: scaleX(var(--p)); } }
@media (min-width: 981px) {
  .cv, .rt { aspect-ratio: 40 / 16.4; }
  .cv .ui, .rt .ui { --cols: 40; }
}

/* Tacticus Analytics */

.ta {
  --s-panel: rgba(30, 41, 59, 0.8);
  --s-line: rgba(71, 85, 105, 0.55);
  --s-text: #f3f4f6;
  --s-muted: #a3adbb;
  --s-accent: #60a5fa;
  background: linear-gradient(160deg, #0f172a, #1e293b);
}
.ta-nav { display: flex; align-items: center; gap: 1.1em; padding: 0 0.9em; border-bottom: 1px solid var(--s-line); background: rgba(15, 23, 42, 0.7); color: #d1d5db; font-size: 0.76em; }
.ta-nav > * { padding: 0.75em 0; }
.ta-nav b { margin-right: 0.3em; color: #93c5fd; letter-spacing: 0.1em; text-transform: uppercase; }
.ta-nav .on { color: #fff; box-shadow: inset 0 -2px 0 #60a5fa; }
.ta-nav em { margin-left: auto; padding: 0.1em 0.7em; border: 1px solid rgba(251, 191, 36, 0.45); border-radius: 1em; color: #fbbf24; font-size: 0.9em; }
.ta-body { display: flex; flex: 1; flex-direction: column; gap: 0.55em; min-height: 0; padding: 0.7em 0.9em 0.9em; }
.ta-h { font-size: 1em; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ta .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ta .kpi:nth-child(1) .v { color: #60a5fa; }
.ta .kpi:nth-child(2) .v { color: #4ade80; }
.ta .kpi:nth-child(3) .v { color: #fbbf24; }
.ta .kpi:nth-child(4) .v { color: #c084fc; }
.ta-grid { display: flex; flex: 1; gap: 0.6em; min-height: 0; }
.ta-grid .pnl { flex: 1.35; }
.ta-grid .pnl.w { flex: 1; }
.cols { display: flex; flex: 1; align-items: stretch; gap: 0.9em; min-height: 0; padding: 0.2em 0.3em 0; }
.col { display: grid; flex: 1; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 0.2em 0.18em; }
.col i { border-radius: 0.25em 0.25em 0 0; transform-origin: 50% 100%; transform: scaleY(var(--h)); animation: rise-bar 1.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.col .a { background: #3b82f6; }
.col .m { background: #93c5fd; }
.col:nth-child(2) i { animation-delay: 0.1s; }
.col:nth-child(3) i { animation-delay: 0.2s; }
.col:nth-child(4) i { animation-delay: 0.3s; }
.col:nth-child(5) i { animation-delay: 0.4s; }
.col small { grid-column: 1 / -1; color: var(--s-muted); font-size: 0.66em; font-weight: 600; text-align: center; }
.rk { display: grid; flex: 1; grid-template-columns: 1.3em minmax(0, 1fr) auto; align-items: center; gap: 0.5em; border-top: 1px solid var(--s-line); font-size: 0.82em; animation: arrive 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rk b { color: var(--s-muted); }
.rk:nth-child(2) b { color: #fbbf24; }
.rk i { color: #93c5fd; font-variant-numeric: tabular-nums; }
.rk:nth-child(3) { animation-delay: 0.12s; }
.rk:nth-child(4) { animation-delay: 0.24s; }
.rk:nth-child(5) { animation-delay: 0.36s; }
.rk:nth-child(6) { animation-delay: 0.48s; }
@media (min-width: 981px) { .span-7 .ta .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Eye of Terror */

.eo { --s-bg: #07080c; --s-panel: #10131a; --s-line: rgba(255, 255, 255, 0.09); --s-text: #e6e9f0; --s-muted: #8f98ab; --s-accent: #93c5fd; }
.eo-top { display: flex; align-items: center; gap: 1.1em; padding: 0.75em 1em; border-bottom: 1px solid var(--s-line); color: var(--s-muted); font-size: 0.76em; }
.eo-top b { margin-right: auto; color: var(--s-text); font-size: 1.12em; letter-spacing: 0.02em; }
.eo-top .on { color: #93c5fd; }
.eo-next { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 0.25em; margin: 0.8em 1em 0; padding: 0.8em 1em; border: 1px solid var(--s-line); border-radius: 0.8em; background: linear-gradient(135deg, #171b24, #0b0d12); }
.eo-big { font-size: 1.5em; font-weight: 650; letter-spacing: -0.012em; line-height: 1.15; }
.eo-sub { color: var(--s-muted); font-size: 0.85em; }
.eo-sub b { color: #93c5fd; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.eo-pips { position: absolute; right: 1em; top: 0.9em; display: flex; gap: 0.35em; }
.eo-pips i { width: 0.85em; height: 0.85em; border: 1.5px solid #93c5fd; border-radius: 50%; }
.eo-pips .f { background: #93c5fd; }
.eo-pips .g { position: relative; }
.eo-pips .g::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #93c5fd; opacity: 0.25; animation: fill 2.6s ease-in-out infinite; }
.eo-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6em; margin: 0.7em 1em 0; }
.eo-tiles p { display: flex; flex-direction: column; gap: 0.25em; padding: 0.6em 0.7em; border: 1px solid var(--s-line); border-radius: 0.7em; background: var(--s-panel); }
.eo-tiles b { font-size: 1.1em; }
.eo-tiles .good { color: #4ade80; }
.eo-out { display: flex; flex-direction: column; gap: 0.45em; margin: 0.8em 1em 1em; }
.eo-out small { color: var(--s-muted); font-size: 0.76em; }
.eo .bar > i { background: linear-gradient(90deg, #3b82f6, #93c5fd); }
@keyframes fill { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.75; } }

/* Battle Simulator */

.bs { --s-bg: #101416; --s-panel: #192023; --s-line: #354046; --s-text: #f3f0e7; --s-muted: #aab4b8; --s-accent: #d0b16d; }
.bs-top { display: flex; align-items: center; justify-content: space-between; padding: 0.6em 0.9em; border-bottom: 1px solid var(--s-line); }
.bs-eye { color: #d0b16d; font-family: Georgia, "Times New Roman", serif; font-size: 0.92em; font-variant: small-caps; letter-spacing: 0.12em; }
.bs-tabs { display: flex; gap: 0.3em; font-size: 0.7em; }
.bs-tabs i { padding: 0.25em 0.65em; border: 1px solid var(--s-line); border-radius: 0.4em; color: var(--s-muted); }
.bs-tabs .on { border-color: #d0b16d; background: rgba(208, 177, 109, 0.13); color: var(--s-text); }
.bs-main { display: grid; flex: 1; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 0.7em; min-height: 0; padding: 0.7em 0.9em; }
.bs-board { width: 100%; height: 100%; min-height: 0; }
.hx { fill: #192023; stroke: #354046; stroke-width: 1; }
.hr { fill: rgba(79, 209, 220, 0.1); stroke: rgba(79, 209, 220, 0.5); }
.hb { fill: rgba(210, 70, 60, 0.2); stroke: rgba(230, 96, 86, 0.75); }
.hc { fill: rgba(210, 70, 60, 0.5); }
.ht { animation: hit 8s infinite both; }
.bs-boss { fill: #ffe1dc; font-family: var(--font); font-size: 6.4px; font-weight: 700; letter-spacing: 0.08em; text-anchor: middle; dominant-baseline: central; }
.bs-u circle { fill: #101416; stroke: #4fd1dc; stroke-width: 1.6; }
.bs-u text { fill: #c6f4f8; font-family: var(--font); font-size: 8px; font-weight: 700; text-anchor: middle; dominant-baseline: central; }
.bs-c { transform: translate(13px, -22.5px); animation: move-c 8s cubic-bezier(0.4, 0, 0.2, 1) infinite both; }
.bs-dmg { fill: #ffb4a8; font-family: var(--font); font-size: 10px; font-weight: 700; text-anchor: middle; animation: dmg 8s infinite both; }
.bs-trace { display: flex; flex-direction: column; min-width: 0; padding: 0.6em 0.7em; border: 1px solid var(--s-line); border-radius: 0.6em; background: var(--s-panel); }
.bs-trace .k { padding-bottom: 0.5em; color: #d0b16d; }
.tl { display: flex; flex: 1; align-items: center; gap: 0.6em; border-top: 1px solid var(--s-line); font-family: var(--mono); font-size: 0.7em; white-space: nowrap; overflow: hidden; }
.tl b { color: #d0b16d; font-weight: 600; }
.tl i { margin-left: auto; color: var(--s-muted); }
.tl.l1 { animation: st1 8s infinite both; }
.tl.l2 { animation: st2 8s infinite both; }
.tl.l3 { animation: st3 8s infinite both; }
.tl.l4 { animation: st4 8s infinite both; }
.tl.l5 { animation: st5 8s infinite both; }
.tl.l6 { animation: st6 8s infinite both; }
.bs-foot { display: flex; align-items: center; gap: 0.7em; padding: 0.55em 0.9em; border-top: 1px solid var(--s-line); }
.bs-foot .bar { flex: 1; }
.bs-foot .bar > i { background: #d2463c; animation: hp 8s infinite both; }
.bs-foot em { padding: 0.3em 0.9em; border-radius: 0.4em; background: #d0b16d; color: #1a1608; font-size: 0.74em; font-weight: 700; }
@keyframes move-c { 0%, 8% { transform: none; } 18%, 95% { transform: translate(13px, -22.5px); } 100% { transform: none; } }
@keyframes hit { 0%, 22% { fill: rgba(210, 70, 60, 0.2); } 26% { fill: rgba(255, 150, 130, 0.95); } 36%, 100% { fill: rgba(210, 70, 60, 0.2); } }
@keyframes dmg { 0%, 27% { opacity: 0; transform: translateY(6px); } 33%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes hp { 0%, 29% { transform: scaleX(0.64); } 37%, 95% { transform: scaleX(0.52); } 100% { transform: scaleX(0.64); } }

/* Fieldbook */

.fb { --s-bg: #f5f6f8; --s-panel: #fff; --s-line: #dbe0e8; --s-text: #18202c; --s-muted: #566173; --s-accent: #1c4d8f; color-scheme: light; }
.fb-side { display: flex; flex: none; flex-direction: column; gap: 0.15em; width: 9em; padding: 0.9em 0.7em; border-right: 1px solid var(--s-line); background: #fff; }
.fb-mark { display: flex; align-items: center; gap: 0.5em; padding-bottom: 0.7em; font-size: 0.9em; font-weight: 700; }
.fb-mark b { display: grid; place-items: center; width: 1.7em; height: 1.7em; border-radius: 0.45em; background: #1c4d8f; color: #fff; }
.fb-side span { padding: 0.32em 0.65em; border-radius: 0.5em; color: var(--s-muted); font-size: 0.8em; }
.fb-side .on { background: #e5edf8; color: #1c4d8f; font-weight: 600; }
.fb-cli { margin-top: auto; padding: 0.7em; border-radius: 0.6em; background: #eef1f5; color: var(--s-muted); font-family: var(--mono); font-size: 0.62em; line-height: 1.5; }
.fb-cli b { color: #1d6f47; font-weight: 600; }
.fb-page { display: flex; flex: 1; flex-direction: column; gap: 0.35em; min-width: 0; padding: 0.9em 1.1em; background: #fff; }
.fb-chips { display: flex; gap: 0.4em; }
.fb-chips span { padding: 0.14em 0.65em; border-radius: 1em; background: #e5edf8; color: #1c4d8f; font-size: 0.66em; font-weight: 600; }
.fb-chips span:first-child { background: #fbf0dc; color: #8a5600; }
.fb-h1 { font-size: 1.5em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.fb-meta { color: var(--s-muted); font-size: 0.68em; }
.fb .k { color: #1c4d8f; }
.fb-page .k { padding-top: 0.5em; }
.fb-p { font-size: 0.86em; line-height: 1.45; }
.fb-ex { padding-top: 0.3em; }
.fb-p sup { margin-left: 0.1em; padding: 0 0.3em; border-radius: 0.3em; color: #1c4d8f; font-size: 0.74em; font-weight: 700; line-height: 1; }
.fb-src { display: flex; flex-direction: column; gap: 0.2em; padding: 0.7em 0.8em 0.8em; border-top: 1px solid var(--s-line); }
.fb-src .k { padding: 0 0.4em 0.2em; }
.src { display: grid; grid-template-columns: 1.2em minmax(0, 1fr) auto; gap: 0 0.5em; padding: 0.28em 0.5em; border-radius: 0.4em; font-size: 0.76em; }
.src b { color: #1c4d8f; }
.src i { color: var(--s-muted); font-size: 0.92em; }
.fb-je { display: flex; flex-direction: column; margin-top: 0.5em; border: 1px solid var(--s-line); border-radius: 0.5em; overflow: hidden; }
.je { display: grid; grid-template-columns: minmax(0, 1fr) 4em 4em; gap: 0.6em; padding: 0.3em 0.7em; border-top: 1px solid var(--s-line); font-size: 0.76em; }
.je.th { border-top: 0; background: #eef1f5; color: var(--s-muted); font-size: 0.64em; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; }
.je b, .je span + span { font-variant-numeric: tabular-nums; text-align: right; }
.fb-rev { display: flex; flex-direction: column; gap: 0.15em; margin-top: auto; padding: 0.6em 0.5em 0; border-top: 1px solid var(--s-line); font-size: 0.76em; }
.fb-rev .k { padding: 0; font-size: 0.8em; }
.fb-rev small { color: var(--s-muted); font-size: 0.9em; line-height: 1.35; }
.c1, .src.s1 { animation: hl1 10s infinite; }
.c2, .src.s2 { animation: hl2 10s infinite; }
.c3, .src.s3 { animation: hl3 10s infinite; }
@keyframes hl1 { 0%, 3% { background-color: transparent; } 8%, 28% { background-color: #fff1b8; } 33%, 100% { background-color: transparent; } }
@keyframes hl2 { 0%, 36% { background-color: transparent; } 41%, 61% { background-color: #fff1b8; } 66%, 100% { background-color: transparent; } }
@keyframes hl3 { 0%, 69% { background-color: transparent; } 74%, 94% { background-color: #fff1b8; } 99%, 100% { background-color: transparent; } }
@media (min-width: 981px) {
  .span-7 .fb .ui { flex-direction: row; }
  .span-7 .fb-src { flex: none; gap: 0.5em; width: 15.5em; padding: 0.9em 0.7em; border-top: 0; border-left: 1px solid var(--s-line); }
  .span-7 .src { grid-template-columns: 1.2em minmax(0, 1fr); }
  .span-7 .src i { grid-column: 2; }
}

/* Wall */

.wl { --s-bg: #050607; --s-panel: #101315; --s-line: #22282b; --s-text: #f4f6f5; --s-muted: #9aa5a8; --s-accent: #f0b24a; }
.wl .ui { gap: 0.6em; padding: 0.9em 1.2em 1em; }
.wl-head { display: flex; align-items: flex-end; justify-content: space-between; }
.wl-clock { display: flex; align-items: baseline; gap: 0.3em; line-height: 1; }
.wl-clock b { font-size: 3.6em; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.wl-clock i { color: var(--s-muted); font-size: 1em; }
.wl-date { padding-bottom: 0.35em; color: #d5dbdc; font-size: 0.95em; text-align: right; }
.wl-warn { display: flex; align-items: center; gap: 0.6em; padding: 0.4em 0.8em; border: 1px solid rgba(240, 178, 74, 0.38); border-radius: 0.6em; background: rgba(240, 178, 74, 0.13); color: #f0b24a; font-size: 0.8em; font-weight: 600; }
.wl-warn i { width: 0.6em; height: 0.6em; border-radius: 50%; background: #f0b24a; animation: beat 2.2s ease-in-out infinite; }
.wl-grid { display: grid; flex: 1; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0.6em; min-height: 0; }
.wl-wx, .wl-next { display: flex; flex-direction: column; gap: 0.45em; min-width: 0; padding: 0.7em 0.8em; border: 1px solid var(--s-line); border-radius: 0.8em; background: var(--s-panel); }
.wl-now { display: flex; align-items: center; gap: 0.7em; }
.wl-now b { font-size: 2.1em; font-weight: 300; line-height: 1; }
.wl-now span { display: flex; flex-direction: column; font-size: 0.84em; }
.wl-now small { color: var(--s-muted); font-size: 0.9em; }
.wl-curve { flex: 1; width: 100%; min-height: 0; }
.wl-area { fill: rgba(240, 178, 74, 0.12); }
.wl-line { fill: none; stroke: #f0b24a; stroke-width: 1.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wl-hours { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wl-hours span { display: flex; flex-direction: column; align-items: center; gap: 0.35em; font-size: 0.72em; }
.wl-hours small { color: var(--s-muted); font-size: 0.9em; }
.wl-hours i { display: block; height: 1.25em; }
.wl-hours .sun { width: 1.25em; border-radius: 50%; background: #f0b24a; box-shadow: 0 0 0.7em rgba(240, 178, 74, 0.55); }
.wl-hours .cloud { width: 1.7em; height: 0.95em; margin: 0.15em 0; border-radius: 1em; background: #8f9aa0; }
.wl-hours .moon { width: 1.15em; height: 1.15em; margin: 0.05em 0; border-radius: 50%; box-shadow: inset 0.34em -0.14em 0 0 #cfd6da; }
.wl-ev { display: flex; flex-direction: column; padding-left: 0.6em; border-left: 0.22em solid #5aa7f0; font-size: 0.85em; line-height: 1.25; }
.wl-ev + .wl-ev { border-left-color: #55cf8f; }
.wl-ev span { color: var(--s-muted); font-size: 0.9em; }
.wl-next .k + .wl-ev { margin-top: -0.1em; }
.td { display: flex; align-items: center; gap: 0.5em; font-size: 0.82em; }
.td::before { content: ""; flex: none; width: 0.85em; height: 0.85em; border: 1.5px solid var(--s-muted); border-radius: 0.25em; }
.td.done { color: var(--s-muted); text-decoration: line-through; }
.td.done::before { border-color: #55cf8f; background: #55cf8f; }
.wl-toast { position: absolute; right: 1.9em; bottom: 1.7em; display: flex; flex-direction: column; padding: 0.55em 0.9em; border-radius: 0.8em; background: #f4f6f5; color: #0b0d0e; font-size: 0.82em; font-weight: 600; box-shadow: 0 0.7em 1.8em rgba(0, 0, 0, 0.6); animation: toast 10s cubic-bezier(0.2, 0.7, 0.2, 1) infinite both; }
.wl-toast b { color: #8a5600; font-size: 0.76em; letter-spacing: 0.09em; text-transform: uppercase; }
@keyframes toast { 0%, 12% { opacity: 0; transform: translateY(0.9em); } 18%, 86% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(0.9em); } }

/* Kitchen */

.kt { --s-bg: #f6f4ef; --s-panel: #fff; --s-line: #e3dfd6; --s-text: #22262b; --s-muted: #686e76; --s-accent: #1f6fd0; color-scheme: light; }
.kt-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.6em 1em; background: #1f6fd0; color: #fff; }
.kt-bar b { font-size: 1em; letter-spacing: 0.01em; }
.kt-lang { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 5.6em; padding: 0.15em; border-radius: 1em; background: rgba(255, 255, 255, 0.24); font-size: 0.74em; font-weight: 700; text-align: center; }
.kt-lang i { position: relative; padding: 0.2em 0; }
.kt-lang u { position: absolute; top: 0.15em; bottom: 0.15em; left: 0.15em; width: calc(50% - 0.15em); border-radius: 1em; background: #fff; animation: knob 9s cubic-bezier(0.4, 0, 0.2, 1) infinite both; }
.kt-lang .en { color: #1f6fd0; animation: lang-en 9s infinite both; }
.kt-lang .es { animation: lang-es 9s infinite both; }
.sw { display: inline-grid; }
p.sw { display: grid; }
.sw > * { grid-area: 1 / 1; }
.sw > .en { animation: sw-en 9s infinite both; }
.sw > .es { opacity: 0; animation: sw-es 9s infinite both; }
.kt-page { display: flex; flex: 1; flex-direction: column; gap: 0.7em; min-height: 0; padding: 0.9em 1em 1em; }
.kt-h { font-size: 1.5em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.kt-cards { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6em; min-height: 0; }
.kt-cards p { display: flex; flex-direction: column; gap: 0.1em; min-width: 0; padding: 0.7em; border: 1px solid var(--s-line); border-radius: 0.8em; background: #fff; font-size: 0.82em; font-weight: 600; }
.ic { width: 2.2em; height: 2.2em; margin-bottom: auto; border-radius: 0.65em; }
.kt-cards small { color: var(--s-muted); font-size: 0.86em; font-weight: 500; }
.ic.i1 { background: radial-gradient(circle at 50% 50%, #ffb267 0 32%, #ffe6cc 34%); }
.ic.i2 { background: linear-gradient(#5b9be6 0 28%, #dbe9fb 28%); }
.ic.i3 { background: repeating-linear-gradient(#d9f2df 0 18%, #49a565 18% 26%, #d9f2df 26% 33.3%); }
.kt-tonight { position: relative; display: flex; flex-direction: column; gap: 0.12em; padding: 0.7em 0.9em; border: 1px solid var(--s-line); border-radius: 0.8em; background: #fff; }
.kt .k { color: #1f6fd0; }
.kt-dish { font-size: 1.05em; font-weight: 700; }
.kt-meta { color: var(--s-muted); font-size: 0.76em; }
.kt-mic { position: absolute; right: 0.9em; top: 50%; display: grid; place-items: center; width: 2.4em; height: 2.4em; margin-top: -1.2em; border-radius: 50%; background: #1f6fd0; }
.kt-mic i { width: 0.66em; height: 1.1em; border-radius: 0.4em; background: #fff; }
.kt-mic::after { content: ""; position: absolute; inset: 0; border: 2px solid #1f6fd0; border-radius: 50%; opacity: 0; animation: ring 2.6s ease-out infinite; }
@keyframes knob { 0%, 44% { transform: none; } 50%, 94% { transform: translateX(100%); } 100% { transform: none; } }
@keyframes lang-en { 0%, 44% { color: #1f6fd0; } 50%, 94% { color: #fff; } 100% { color: #1f6fd0; } }
@keyframes lang-es { 0%, 44% { color: #fff; } 50%, 94% { color: #1f6fd0; } 100% { color: #fff; } }
@keyframes sw-en { 0%, 44% { opacity: 1; } 46.5%, 97.5% { opacity: 0; } 100% { opacity: 1; } }
@keyframes sw-es { 0%, 47.5% { opacity: 0; } 50%, 94% { opacity: 1; } 96.5%, 100% { opacity: 0; } }
@keyframes ring { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }

/* Sentinel */

.sn { --s-bg: #0b0f12; --s-panel: #12181c; --s-line: #222c33; --s-text: #dfe7ea; --s-muted: #8696a0; }
.sn .ui { gap: 0.6em; padding: 0.85em 0.9em; }
.sn-pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9em; font-family: var(--mono); font-size: 0.7em; }
.sn-pipe span { position: relative; padding: 0.4em 0; border: 1px solid var(--s-line); border-radius: 0.5em; background: var(--s-panel); color: #b6c3ca; text-align: center; }
.sn-pipe span + span::before { content: ""; position: absolute; right: 100%; top: 50%; width: 1.3em; border-top: 1px dashed #3a4852; }
.sn-pipe span::after { content: ""; position: absolute; inset: -1px; border: 1px solid var(--s-accent); border-radius: inherit; background: rgba(121, 201, 181, 0.14); opacity: 0; animation: lit 4s infinite; }
.sn-pipe .s2::after { animation-delay: 1s; }
.sn-pipe .s3::after { animation-delay: 2s; }
.sn-pipe .s4::after { animation-delay: 3s; }
.sn-log { display: flex; flex: 1; flex-direction: column; justify-content: space-around; min-height: 0; }
.ev { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.8em; font-family: var(--mono); font-size: 0.72em; }
.ev time { color: var(--s-muted); }
.ev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv { min-width: 5.6em; padding: 0.12em 0.6em; border-radius: 0.4em; font-size: 0.92em; font-weight: 600; text-align: center; }
.lv.noise { background: #1a2227; color: #96a5ae; }
.lv.info { background: rgba(116, 168, 245, 0.16); color: #8ab4f8; }
.lv.handled { background: rgba(85, 207, 143, 0.15); color: #55cf8f; }
.lv.notable { background: rgba(227, 173, 76, 0.17); color: #e3ad4c; }
.lv.crit { background: #ee6d76; color: #1a0b0d; }
.ev.e1 { animation: st1 10s infinite both; }
.ev.e2 { animation: st2 10s infinite both; }
.ev.e3 { animation: st3 10s infinite both; }
.ev.e4 { animation: st4 10s infinite both; }
.ev.e5 { animation: st5 10s infinite both; }
.sn-page { display: flex; flex-direction: column; gap: 0.12em; padding: 0.5em 0.8em; border: 1px solid rgba(238, 109, 118, 0.6); border-radius: 0.6em; background: rgba(238, 109, 118, 0.11); font-size: 0.76em; animation: st6 10s infinite both; }
.sn-page b { color: #ff9aa1; }
.sn-page span { color: #b6c3ca; font-family: var(--mono); font-size: 0.9em; }
.sn-sum { display: flex; justify-content: space-between; padding-top: 0.55em; border-top: 1px solid var(--s-line); color: var(--s-muted); font-family: var(--mono); font-size: 0.64em; }
.sn-sum b { color: var(--s-text); font-weight: 600; }
@keyframes lit { 0%, 100% { opacity: 0; } 6%, 20% { opacity: 1; } 32% { opacity: 0; } }

/* Hunters */

.hn .ui { gap: 0.5em; padding: 0.9em 1em; }
.hn-top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6em; }
.hn-top b { font-size: 1.15em; letter-spacing: -0.012em; }
.hn-rows { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.hn-r { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) 4.4em 1.7em 6.1em; align-items: center; gap: 0.6em; border-top: 1px solid var(--s-line); font-size: 0.82em; }
.hn-n { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; white-space: nowrap; overflow: hidden; }
.hn-n small { color: var(--s-muted); font-size: 0.84em; }
.hn-r b { text-align: right; font-variant-numeric: tabular-nums; }
.hn-r em { padding: 0.12em 0; border-radius: 1em; font-size: 0.82em; font-weight: 600; text-align: center; }
.hn-r .t1 { background: rgba(121, 201, 181, 0.16); color: #a0e2d0; }
.hn-r .t2 { background: rgba(116, 168, 245, 0.15); color: #8ab4f8; }
.hn-r .t4 { background: #1d2425; color: var(--s-muted); }
.hn-r:nth-child(2) .bar > i, .hn-r:nth-child(3) .bar > i { background: #74a8f5; animation-delay: 0.3s; }
.hn-r:nth-child(4) .bar > i { background: #5f716b; animation-delay: 0.45s; }
.hn-alert { display: flex; flex-direction: column; gap: 0.1em; padding: 0.5em 0.8em; border: 1px solid rgba(121, 201, 181, 0.6); border-radius: 0.6em; background: rgba(121, 201, 181, 0.11); font-size: 0.78em; animation: st3 9s infinite both; }
.hn-alert b { color: #a0e2d0; }
.hn-alert span { color: #b0bfba; }

/* Omarchy plugins */

.pg { --s-text: #f4eef8; --s-muted: #a79fb5; background: linear-gradient(135deg, #2e1a52 0%, #7c3382 55%, #d9728a 100%); }
.pg-bar { display: flex; align-items: center; justify-content: space-between; padding: 0.5em 0.9em; background: rgba(10, 8, 16, 0.74); color: #e9e2f0; font-size: 0.72em; }
.pg-ws, .pg-ic { display: flex; align-items: center; gap: 0.55em; }
.pg-ws i { width: 0.6em; height: 0.6em; border-radius: 50%; background: rgba(255, 255, 255, 0.32); }
.pg-ws .on { background: #fff; }
.pg-ic i { width: 1.1em; height: 1.1em; border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 0.3em; }
.pg-ic .on { border-color: #ffb000; background: #ffb000; }
.pg-pop { position: absolute; display: flex; flex-direction: column; gap: 0.5em; padding: 0.75em 0.85em; border-radius: 0.7em; box-shadow: 0 0.8em 2.2em rgba(0, 0, 0, 0.5); }
.pg-ai { top: 2.7em; right: 0.9em; width: 16em; border: 1px solid #4a3500; background: #0a0a0a; color: #ffb000; font-family: var(--mono); }
.pg-mise { left: 0.9em; bottom: 0.9em; width: 16.5em; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(18, 16, 26, 0.95); }
.pg-h { font-size: 0.68em; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.pg-m { display: grid; grid-template-columns: 4.6em minmax(0, 1fr) auto; align-items: center; gap: 0.6em; font-size: 0.68em; }
.pg-m b { font-weight: 500; }
.pg-ai .bar { height: 0.7em; border-radius: 0; background: #2a1d00; }
.pg-ai .bar > i { border-radius: 0; background: #ffb000; }
.pg-m:nth-child(3) .bar > i { animation-delay: 0.3s; }
.pg-m:nth-child(4) .bar > i { animation-delay: 0.45s; }
.pg-v { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 0.4em; font-family: var(--mono); font-size: 0.7em; }
.pg-v.th { color: var(--s-muted); font-family: var(--font); font-size: 0.62em; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pg-v span + span { color: #cfc8da; }
.pg-v b { color: #cfc8da; font-weight: 500; }
.pg-v .new { color: #7db4ff; font-weight: 700; animation: beat 2.2s ease-in-out infinite; }

/* Estate map: TMOS at the centre, an application at the end of every link.
   The stage is always dark, like the renderings, because the picture is made of light.
   Where things are is geometry, written by brand/build_map.py into the marked region below.
   How it looks and moves is here. Every rule rests on a complete still picture: each link
   holds one light part-way along (--p), and motion is added on top of that.
   A signal leaves the centre along each link in turn (--d), the node lights when it lands,
   and a smaller light comes back. A link is lit (--lit) while its node or its card is chosen. */

.map {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(72% 92% at 50% 47%, #13231f 0%, #0b1112 54%, #070a0b 100%);
  color: #edf0e9;
  color-scheme: dark;
}
.map [class*="hue-"] { --hue: var(--hue-d); }
.map-stage { position: relative; container-type: inline-size; width: 100%; margin-inline: auto; perspective: 1200px; }
.map-plane {
  position: absolute;
  inset: 0;
  transform: rotateX(calc(var(--my, 0) * -2.6deg)) rotateY(calc(var(--mx, 0) * 3.2deg));
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-tall { display: none; }
.map figcaption { position: absolute; left: 18px; bottom: 13px; max-width: 19em; color: #91a49c; font-size: 12.5px; line-height: 1.4; }
/* Below desktop width the corner is taken by a node's name, so the caption sits under the stage. */
@media (max-width: 980px) {
  .map figcaption { position: static; max-width: none; padding: 0 16px 14px; text-align: center; }
}

/* map:start */
.map-stage { aspect-ratio: 1000 / 520; }
.map-core { left: 50%; top: 48.1%; }
.nd-1 { left: 50%; top: 11.5%; }
.nd-2 { left: 73%; top: 18.5%; }
.nd-3 { left: 87.3%; top: 36.8%; }
.nd-4 { left: 87.3%; top: 59.4%; }
.nd-5 { left: 73%; top: 77.6%; }
.nd-6 { left: 50%; top: 84.6%; }
.nd-7 { left: 27%; top: 77.6%; }
.nd-8 { left: 12.7%; top: 59.4%; }
.nd-9 { left: 12.7%; top: 36.8%; }
.nd-10 { left: 27%; top: 18.5%; }
.map-wide .ctr { transform-origin: 500px 250px; }
@media (max-width: 760px) {
  .map-stage { aspect-ratio: 400 / 512; }
  .map-core { left: 50%; top: 47.7%; }
  .nd-1 { left: 50%; top: 9.4%; }
  .nd-2 { left: 70.3%; top: 16.7%; }
  .nd-3 { left: 82.8%; top: 35.8%; }
  .nd-4 { left: 82.8%; top: 59.5%; }
  .nd-5 { left: 70.3%; top: 78.6%; }
  .nd-6 { left: 50%; top: 85.9%; }
  .nd-7 { left: 29.7%; top: 78.6%; }
  .nd-8 { left: 17.2%; top: 59.5%; }
  .nd-9 { left: 17.2%; top: 35.8%; }
  .nd-10 { left: 29.7%; top: 16.7%; }
}
.map-tall .ctr { transform-origin: 200px 244px; }
.e1, .nd-1 { --i: 0; --d: -6s; --p: 0.62; }
.map-stage:has(.nd-1:hover) .e1,
.map-stage:has(.nd-1:focus-visible) .e1,
.apps:has(#tmos:target) :is(.e1, .nd-1) { --lit: 1; }
.e2, .nd-2 { --i: 1; --d: -5.4s; --p: 0.4; }
.map-stage:has(.nd-2:hover) .e2,
.map-stage:has(.nd-2:focus-visible) .e2,
.apps:has(#fieldbook:target) :is(.e2, .nd-2),
.apps:has(#fieldbook:hover) :is(.e2, .nd-2) { --lit: 1; }
.e3, .nd-3 { --i: 2; --d: -4.8s; --p: 0.78; }
.map-stage:has(.nd-3:hover) .e3,
.map-stage:has(.nd-3:focus-visible) .e3,
.apps:has(#hunters:target) :is(.e3, .nd-3),
.apps:has(#hunters:hover) :is(.e3, .nd-3) { --lit: 1; }
.e4, .nd-4 { --i: 3; --d: -4.2s; --p: 0.52; }
.map-stage:has(.nd-4:hover) .e4,
.map-stage:has(.nd-4:focus-visible) .e4,
.apps:has(#plugins:target) :is(.e4, .nd-4),
.apps:has(#plugins:hover) :is(.e4, .nd-4) { --lit: 1; }
.e5, .nd-5 { --i: 4; --d: -3.6s; --p: 0.7; }
.map-stage:has(.nd-5:hover) .e5,
.map-stage:has(.nd-5:focus-visible) .e5,
.apps:has(#kitchen:target) :is(.e5, .nd-5),
.apps:has(#kitchen:hover) :is(.e5, .nd-5) { --lit: 1; }
.e6, .nd-6 { --i: 5; --d: -3s; --p: 0.44; }
.map-stage:has(.nd-6:hover) .e6,
.map-stage:has(.nd-6:focus-visible) .e6,
.apps:has(#wall:target) :is(.e6, .nd-6),
.apps:has(#wall:hover) :is(.e6, .nd-6) { --lit: 1; }
.e7, .nd-7 { --i: 6; --d: -2.4s; --p: 0.82; }
.map-stage:has(.nd-7:hover) .e7,
.map-stage:has(.nd-7:focus-visible) .e7,
.apps:has(#sentinel:target) :is(.e7, .nd-7),
.apps:has(#sentinel:hover) :is(.e7, .nd-7) { --lit: 1; }
.e8, .nd-8 { --i: 7; --d: -1.8s; --p: 0.56; }
.map-stage:has(.nd-8:hover) .e8,
.map-stage:has(.nd-8:focus-visible) .e8,
.apps:has(#eye-of-terror:target) :is(.e8, .nd-8),
.apps:has(#eye-of-terror:hover) :is(.e8, .nd-8) { --lit: 1; }
.e9, .nd-9 { --i: 8; --d: -1.2s; --p: 0.36; }
.map-stage:has(.nd-9:hover) .e9,
.map-stage:has(.nd-9:focus-visible) .e9,
.apps:has(#battle-simulator:target) :is(.e9, .nd-9),
.apps:has(#battle-simulator:hover) :is(.e9, .nd-9) { --lit: 1; }
.e10, .nd-10 { --i: 9; --d: -0.6s; --p: 0.74; }
.map-stage:has(.nd-10:hover) .e10,
.map-stage:has(.nd-10:focus-visible) .e10,
.apps:has(#tacticus-analytics:target) :is(.e10, .nd-10),
.apps:has(#tacticus-analytics:hover) :is(.e10, .nd-10) { --lit: 1; }
/* map:end */

/* Far layer: glow, small lights, a slow sweep */
.map .far { transform: translate(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -8px)); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.h0 { stop-color: #79c9b5; stop-opacity: 0.3; }
.h1 { stop-color: #79c9b5; stop-opacity: 0.07; }
.h2 { stop-color: #79c9b5; stop-opacity: 0; }
.halo { animation: map-breathe 7s ease-in-out infinite; }
.star { fill: #dfe9e4; opacity: 0.32; }
.star.t0, .star.t1, .star.t2, .star.t3 { animation: map-twinkle 5.2s ease-in-out infinite; }
.star.t1 { animation-delay: -1.3s; }
.star.t2 { animation-delay: -2.6s; }
.star.t3 { animation-delay: -3.9s; }
.orbit { fill: none; stroke: #edf0e9; stroke-opacity: 0.1; stroke-width: 1; }
.orbit.o2 { stroke-dasharray: 2 8; stroke-opacity: 0.16; }
.motes { fill: none; stroke: #a8e3d3; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 12.5; stroke-opacity: 0.55; animation: map-drift 90s linear infinite; }
.motes.inner { stroke-width: 1.8; stroke-dasharray: 0 20; stroke-opacity: 0.4; animation-duration: 70s; animation-direction: reverse; }

/* Links */
.link, .node { --lit: 0; }
.beam { fill: none; stroke: var(--hue); stroke-width: 10; stroke-linecap: round; stroke-opacity: calc(0.03 + var(--lit) * 0.12); transition: stroke-opacity 0.25s ease; }
.edge {
  fill: none;
  stroke-width: calc(1.3px + var(--lit) * 1.1px);
  stroke-linecap: round;
  stroke-opacity: calc(0.6 + var(--lit) * 0.4);
  stroke-dasharray: 1 0;
  transition: stroke-opacity 0.25s ease, stroke-width 0.25s ease;
}
.s0 { stop-color: #79c9b5; stop-opacity: 0.22; }
.s1 { stop-color: var(--hue); }
.sig { fill: none; stroke: var(--hue); stroke-linecap: round; animation-duration: 6s; animation-timing-function: cubic-bezier(0.5, 0, 0.3, 1); animation-iteration-count: infinite; animation-delay: var(--d); }
.sig.tail { stroke-width: calc(2.4px + var(--lit) * 1px); stroke-opacity: 0.62; stroke-dasharray: 0.2 2; stroke-dashoffset: calc(0.2 - var(--p)); animation-name: map-tail; }
.sig.head { stroke: #ffffff; stroke-width: calc(3.2px + var(--lit) * 1px); stroke-dasharray: 0.03 2; stroke-dashoffset: calc(0.03 - var(--p)); animation-name: map-head; }
.sig.back { stroke: #edf0e9; stroke-width: 1.7; stroke-opacity: 0.8; stroke-dasharray: 0.05 2; stroke-dashoffset: 0.05; animation-name: map-back; }
.port { fill: var(--hue); opacity: 0.55; transform-box: fill-box; transform-origin: center; animation: map-port 6s ease-out infinite; animation-delay: var(--d); }

/* The hub: the TMOS mark at full size, alive */
.ripple { fill: none; stroke: #79c9b5; stroke-width: 1.2; opacity: 0; animation: map-ripple 6s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.ripple.r2 { animation-delay: -3s; }
.ring { fill: none; stroke: #79c9b5; stroke-opacity: 0.4; stroke-width: 1.2; }
.sat { fill: #edf0e9; }
.sats { animation: map-spin 30s linear infinite; }
.arcs { fill: none; stroke: #79c9b5; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 16 24; stroke-opacity: 0.85; animation: map-spin 22s linear infinite reverse; }
.c0 { stop-color: #327060; }
.c1 { stop-color: #16322b; }
.c2 { stop-color: #0b1917; }
.disc { stroke: #79c9b5; stroke-opacity: 0.55; stroke-width: 1; }
.rim { fill: none; stroke: #79c9b5; stroke-opacity: 0.22; stroke-width: 1; }
.map-core {
  position: absolute;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.4cqw;
  margin: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.map-core .mk { width: 4.4cqw; height: 4.4cqw; stroke: #edf0e9; color: #79c9b5; }
.map-core b { margin-right: -0.16em; font-size: clamp(11px, 1.3cqw, 14px); font-weight: 750; letter-spacing: 0.16em; line-height: 1; }

/* Nodes: real links, placed by percentage over the drawing */
.map-nodes { position: absolute; inset: 0; }
.node {
  position: absolute;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  color: #edf0e9;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.node::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 190px;
  height: 190px;
  margin: -95px 0 0 -95px;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--hue) calc(15% + var(--lit) * 14%), transparent), transparent);
  pointer-events: none;
}
.node:hover, .node:focus-visible { --lit: 1; }
.node:focus-visible { outline: none; }
.node .mk-tile {
  position: relative;
  width: 100%;
  height: 100%;
  border-color: color-mix(in srgb, var(--hue) 58%, #1b2223);
  border-radius: 14px;
  background: linear-gradient(160deg, #202a2b, #0f1415);
  box-shadow: 0 8px 20px -10px #000, inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: scale(calc(1 + var(--lit) * 0.1));
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.node:focus-visible .mk-tile { outline: 2px solid #ffffff; outline-offset: 3px; }
.node .mk { width: 26px; height: 26px; stroke: #edf0e9; }
.node .mk-tile::before,
.node .mk-tile::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; }
.node .mk-tile::before {
  box-shadow: 0 0 0 1px var(--hue), 0 0 22px 1px color-mix(in srgb, var(--hue) 62%, transparent);
  opacity: 0;
  animation: map-land 6s ease-out infinite;
  animation-delay: var(--d);
}
.node .mk-tile::after {
  box-shadow: 0 0 0 1.5px var(--hue), 0 0 30px 4px color-mix(in srgb, var(--hue) 72%, transparent);
  opacity: var(--lit);
  transition: opacity 0.2s ease;
}
.node-name {
  position: absolute;
  left: 50%;
  top: calc(100% + 7px);
  transform: translateX(-50%);
  opacity: calc(0.82 + var(--lit) * 0.18);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 1px 8px #070a0b, 0 0 2px #070a0b;
  white-space: nowrap;
}

/* The map assembles once, from the centre out, the first time it is seen (site.js marks it). */
.js .map:not(.built) .map-core,
.js .map:not(.built) .hub { opacity: 0; }
.js .map:not(.built) .node { opacity: 0; transform: scale(0.6); }
.js .map:not(.built) .edge { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.js .map:not(.built) .sig,
.js .map:not(.built) .port,
.js .map:not(.built) .motes { opacity: 0; }
.map.built .map-core,
.map.built .hub { transition: opacity 0.7s ease; }
.map.built .edge { stroke-dasharray: 1 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s cubic-bezier(0.3, 0, 0.2, 1) calc(0.25s + var(--i) * 70ms), stroke-opacity 0.25s ease, stroke-width 0.25s ease; }
.map.built .node { transition: opacity 0.5s ease calc(0.8s + var(--i) * 70ms), transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) calc(0.8s + var(--i) * 70ms); }
.map.built .sig,
.map.built .port,
.map.built .motes { transition: opacity 0.8s ease 1.6s; }

@keyframes map-tail { 0% { stroke-dashoffset: 0.2; } 42%, 100% { stroke-dashoffset: -1; } }
@keyframes map-head { 0% { stroke-dashoffset: 0.03; } 42%, 100% { stroke-dashoffset: -1.17; } }
@keyframes map-back { 0%, 52% { stroke-dashoffset: -1; } 90%, 100% { stroke-dashoffset: 0.05; } }
@keyframes map-port { 0%, 36% { opacity: 0.5; transform: scale(1); } 42% { opacity: 1; transform: scale(2.1); } 64%, 100% { opacity: 0.5; transform: scale(1); } }
@keyframes map-land { 0%, 37% { opacity: 0; } 43% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes map-ripple { 0% { opacity: 0.55; transform: scale(1); } 100% { opacity: 0; transform: scale(3); } }
@keyframes map-breathe { 0%, 100% { opacity: 0.8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes map-twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
@keyframes map-spin { to { transform: rotate(360deg); } }
@keyframes map-drift { to { stroke-dashoffset: -100; } }

@media (max-width: 760px) {
  .map-wide { display: none; }
  .map-tall { display: block; }
  .map-stage { max-width: 440px; }
  .map-core .mk { width: 10cqw; height: 10cqw; }
  .map-core b { font-size: clamp(11px, 3cqw, 13px); }
  .map-core { gap: 1cqw; }
  .node { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
  .node::before { width: 130px; height: 130px; margin: -65px 0 0 -65px; }
  .node .mk-tile { border-radius: 12px; }
  .node .mk { width: 23px; height: 23px; }
  .node-name { top: calc(100% + 5px); font-size: 11.5px; }
}

/* A demo runs only while it is on screen (site.js marks it); without the script it simply runs. */
.js [data-live]:not(.on) *,
.js [data-live]:not(.on) *::before,
.js [data-live]:not(.on) *::after { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  [data-live] *,
  [data-live] *::before,
  [data-live] *::after { animation: none !important; transition: none !important; }
  .c1, .src.s1 { background-color: #fff1b8; }
  .win-tabs label { transition: none; }
}

@media print {
  .window, .shot, .demos, .map { display: none; }
}
