:root {
  --paper: #080808;
  --panel: #0d0d0d;
  --panel-raised: #111;
  --line: #252525;
  --line-soft: #1b1b1b;
  --ink: #ededed;
  --muted: #8b8b8b;
  --quiet: #565656;
  --teal: #5cc4c3;
  --teal-deep: #009c9b;
  --green: #34d399;
  --amber: #f59e0b;
  --red: #f87171;
  --mono: "Geist Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Geist, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 4%, rgba(0, 156, 155, .09), transparent 28%),
    radial-gradient(circle at 55% 70%, rgba(92, 196, 195, .03), transparent 30%);
}

::selection { color: #fff; background: rgba(92, 196, 195, .3); }

button, input, select { font: inherit; }
button, select { cursor: pointer; }

.app-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 27px 24px 23px;
  overflow-y: auto;
  border-right: 1px solid #1e1e1e;
  background:
    radial-gradient(circle at 100% 0%, rgba(92, 196, 195, .07), transparent 26%),
    rgba(8, 8, 8, .96);
  scrollbar-color: #2d2d2d transparent;
  scrollbar-width: thin;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: .75;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
}

.brand-mark {
  display: flex;
  align-items: end;
  gap: 3px;
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 7px;
  background: var(--teal);
  box-shadow: 0 0 26px rgba(92, 196, 195, .2);
}

.brand-mark i { width: 4px; border-radius: 2px 2px 0 0; background: #071010; }
.brand-mark i:nth-child(1) { height: 6px; }
.brand-mark i:nth-child(2) { height: 12px; }
.brand-mark i:nth-child(3) { height: 17px; }

.brand-copy { display: flex; flex-direction: column; gap: 1px; }
.brand-copy > span { font-size: 17px; font-weight: 400; letter-spacing: -.45px; }
.brand-copy strong { font-weight: 750; }
.brand-copy b {
  margin-left: 4px;
  padding: 2px 4px;
  border: 1px solid rgba(92, 196, 195, .3);
  border-radius: 4px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: .5px;
  vertical-align: 2px;
}
.brand-copy small { color: #555; font-family: var(--mono); font-size: 8px; }
.brand-copy small span { color: var(--teal); }

.system-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: rgba(255, 255, 255, .015);
  color: #777;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .45px;
  text-transform: uppercase;
}

.system-status span { display: flex; align-items: center; gap: 7px; }
.system-status i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 9px var(--teal); }
.system-status b { color: var(--teal); font-size: 7px; }

.eyebrow {
  color: var(--teal);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.45px;
  text-transform: uppercase;
}

.sidebar-eyebrow { margin: 29px 0 15px; color: #5f5f5f; }

fieldset { padding: 0; margin: 0 0 17px; border: 0; }
legend { width: 100%; padding: 0; margin: 0 0 9px; color: #858585; font-family: var(--mono); font-size: 9px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.spaced-grid { margin: 14px 0; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-wide { margin-bottom: 16px; }
.field > span { color: #5f5f5f; font-family: var(--mono); font-size: 8px; font-weight: 600; letter-spacing: .35px; text-transform: uppercase; }

input, select {
  width: 100%;
  height: 37px;
  padding: 0 10px;
  outline: none;
  border: 1px solid #2d2d2d;
  border-radius: 7px;
  color: #e7e7e7;
  background-color: #101010;
  font-family: var(--mono);
  font-size: 10px;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

select {
  appearance: none;
  padding-right: 29px;
  background-image:
    linear-gradient(45deg, transparent 50%, #737373 50%),
    linear-gradient(135deg, #737373 50%, transparent 50%);
  background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

input:hover, select:hover { border-color: #464646; background-color: #121212; }
input:focus, select:focus { border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(0, 156, 155, .12); }

.input-unit { position: relative; }
.input-unit input { padding-right: 34px; }
.input-unit b { position: absolute; top: 11px; right: 9px; color: #5f5f5f; font-family: var(--mono); font-size: 8px; pointer-events: none; }

details { margin: 2px 0 18px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
summary { padding: 13px 0; color: #858585; font-family: var(--mono); font-size: 9px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--teal); font-size: 14px; line-height: 9px; }
details[open] summary::after { content: "−"; }
.details-content { padding: 4px 0 13px; }

.primary-button, .secondary-button, .preset, .detail-toggle { border: 0; transition: transform .16s ease, border-color .16s ease, background-color .16s ease; }
.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 43px;
  padding: 0 15px;
  border: 1px solid #ededed;
  border-radius: 7px;
  color: #080808;
  background: #ededed;
  font-size: 11px;
  font-weight: 750;
}
.primary-button:hover { transform: translateY(-1px); border-color: #fff; background: #fff; box-shadow: 0 0 30px rgba(255, 255, 255, .08); }
.primary-button:disabled { cursor: wait; opacity: .7; }
.primary-button span:last-child { color: var(--teal-deep); font-size: 16px; }

.method-note { margin-top: 18px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 7px; background: rgba(92, 196, 195, .025); }
.method-note > span { color: var(--teal); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.method-note p { margin: 7px 0 0; color: #646464; font-family: var(--mono); font-size: 8px; line-height: 1.65; }
.sidebar-note { margin: 13px 2px 0; color: #454545; font-family: var(--mono); font-size: 7px; line-height: 1.55; }

.main-content { position: relative; min-width: 0; padding: 0 clamp(28px, 4.5vw, 72px) 24px; overflow: hidden; isolation: isolate; }
.main-content::before {
  content: "";
  position: absolute;
  top: 100px;
  right: -310px;
  z-index: -1;
  width: 640px;
  height: 640px;
  border: 1px solid rgba(92, 196, 195, .18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 80px transparent, 0 0 90px rgba(0, 156, 155, .025);
}
.main-content::after {
  content: "trend × momentum × volume × quality";
  position: absolute;
  top: 255px;
  right: 17px;
  z-index: -1;
  color: rgba(92, 196, 195, .12);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
  transform: rotate(90deg);
  transform-origin: right top;
}

.top-nav { display: flex; align-items: center; min-height: 64px; border-bottom: 1px solid var(--line-soft); color: #777; font-family: var(--mono); font-size: 9px; }
.nav-product { color: #ccc; font-weight: 700; }
.nav-separator { margin: 0 10px; color: #3c3c3c; }
.nav-current { color: #666; }
.top-nav-meta { display: flex; align-items: center; gap: 16px; margin-left: auto; color: #555; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: #929292; font-size: 8px; letter-spacing: .55px; text-transform: uppercase; }
.live-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(92, 196, 195, .07), 0 0 9px rgba(92, 196, 195, .4); }

.hero { min-height: 305px; padding: 63px 0 42px; border-bottom: 1px solid var(--line-soft); }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid rgba(92, 196, 195, .26); border-radius: 999px; background: rgba(92, 196, 195, .045); }
.hero-kicker i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); }
h1 { max-width: 800px; margin: 22px 0 0; color: transparent; background: linear-gradient(110deg, #fff 35%, var(--teal) 49%, #8e9797 57%, #fff 68%); background-clip: text; -webkit-background-clip: text; background-size: 220% auto; font-size: clamp(52px, 6vw, 84px); font-weight: 800; line-height: .9; letter-spacing: -5px; animation: title-shimmer 9s ease-in-out infinite alternate; }
h1 em { font-style: normal; }
.hero > p { max-width: 600px; margin: 23px 0 0; color: #737373; font-family: var(--mono); font-size: 10px; line-height: 1.65; }
@keyframes title-shimmer { from { background-position: 10% center; } to { background-position: 90% center; } }

.presets { display: grid; grid-template-columns: 178px minmax(0, 1fr); gap: 25px; align-items: end; padding: 28px 0; border-bottom: 1px solid var(--line-soft); }
.section-intro p { margin: 7px 0 2px; color: #555; font-family: var(--mono); font-size: 8px; }
.preset-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.preset { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 60px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px; color: #ededed; background: rgba(13, 13, 13, .88); text-align: left; }
.preset:hover { transform: translateY(-1px); border-color: #464646; background: #111; }
.preset.active { border-color: #464646; background: linear-gradient(135deg, rgba(92, 196, 195, .055), transparent 55%), #111; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.preset-index { color: #4d4d4d; font-family: var(--mono); font-size: 9px; }
.preset.active .preset-index { color: var(--teal); }
.preset > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; }
.preset strong { font-size: 10px; font-weight: 650; }
.preset small { margin-top: 4px; color: #5f5f5f; font-family: var(--mono); font-size: 7px; white-space: nowrap; }
.preset > i { margin-left: auto; color: #3e3e3e; font-size: 12px; font-style: normal; }
.preset.active > i { color: var(--teal); }

.loading-state { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 340px; color: #5f5f5f; font-family: var(--mono); font-size: 9px; }
.loader-orbit { position: relative; width: 28px; height: 28px; border: 1px solid #292929; border-radius: 50%; animation: orbit 1.1s linear infinite; }
.loader-orbit i { position: absolute; top: -2px; left: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 9px var(--teal); }
@keyframes orbit { to { transform: rotate(360deg); } }

.error-banner { display: flex; gap: 9px; margin-top: 20px; padding: 13px 15px; border: 1px solid rgba(248, 113, 113, .25); border-radius: 8px; color: #fca5a5; background: rgba(248, 113, 113, .055); font-family: var(--mono); font-size: 9px; }

.regime-card { display: grid; grid-template-columns: minmax(260px, .78fr) minmax(420px, 1.22fr); margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 13, 13, .92); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); }
.regime-main { padding: 23px 24px; border-right: 1px solid var(--line); background: linear-gradient(145deg, rgba(92, 196, 195, .045), transparent 65%); }
.regime-title-line { display: flex; align-items: center; gap: 15px; margin-top: 21px; }
.regime-title-line h2 { margin: 0; font-size: 26px; }
.regime-title-line p { margin: 5px 0 0; color: #797979; font-family: var(--mono); font-size: 8px; }
.regime-pulse { position: relative; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid rgba(92, 196, 195, .28); border-radius: 50%; background: rgba(92, 196, 195, .05); }
.regime-pulse::before, .regime-pulse::after { content: ""; position: absolute; border: 1px solid currentColor; border-radius: 50%; opacity: .14; }
.regime-pulse::before { inset: 6px; }
.regime-pulse::after { inset: 12px; }
.regime-pulse i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.regime-pulse.offensive, .regime-pulse.constructive { color: var(--teal); }
.regime-pulse.transition { color: var(--amber); border-color: rgba(245, 158, 11, .3); background: rgba(245, 158, 11, .05); }
.regime-pulse.defensive { color: var(--red); border-color: rgba(248, 113, 113, .3); background: rgba(248, 113, 113, .05); }
.scope-note { display: block; margin-top: 20px; color: #4e4e4e; font-family: var(--mono); font-size: 7px; }
.breadth-panel { padding: 22px 24px 20px; }
.breadth-heading { display: flex; justify-content: space-between; margin-bottom: 14px; color: #6c6c6c; font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.breadth-heading b { color: #989898; font-weight: 500; }
.phase-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.phase-bar > div:first-child { display: flex; justify-content: space-between; color: #696969; font-family: var(--mono); font-size: 7px; }
.phase-bar > div span { display: flex; align-items: center; gap: 6px; }
.phase-bar > div span i { width: 5px; height: 5px; border-radius: 50%; }
.phase-bar > div b { color: #aaa; font-size: 8px; font-weight: 500; }
.phase-bar > div b small { color: #4f4f4f; font-size: 7px; }
.bar-track { height: 3px; margin-top: 7px; border-radius: 3px; background: #202020; overflow: hidden; }
.bar-track i { display: block; height: 100%; min-width: 2px; border-radius: inherit; }

.stats-grid { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); margin-top: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 13, 13, .92); overflow: hidden; }
.stat-card { position: relative; min-height: 115px; padding: 21px 21px 17px; border-left: 1px solid var(--line); }
.stat-card:first-child { border-left: 0; }
.stat-card > span { color: #5f5f5f; font-family: var(--mono); font-size: 8px; letter-spacing: .5px; text-transform: uppercase; }
.stat-card strong { display: block; margin-top: 13px; color: #ededed; font-size: 31px; font-weight: 620; line-height: 1; letter-spacing: -1.5px; }
.stat-card small { display: block; margin-top: 8px; color: #4f4f4f; font-family: var(--mono); font-size: 7px; }
.primary-stat { background: linear-gradient(135deg, rgba(92, 196, 195, .065), transparent 65%); }
.primary-stat > span { color: var(--teal); }
.primary-stat::after { content: ""; position: absolute; right: 18px; bottom: 18px; width: 20px; height: 20px; border-right: 1px solid var(--teal); border-bottom: 1px solid var(--teal); opacity: .65; }

.table-card { margin-top: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 13, 13, .94); overflow: hidden; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025); }
.table-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 22px 19px; border-bottom: 1px solid var(--line); }
h2 { margin: 5px 0 0; color: #ededed; font-size: 21px; font-weight: 650; letter-spacing: -.7px; }
.table-heading p { margin: 7px 0 0; color: #535353; font-family: var(--mono); font-size: 7px; }
.secondary-button { padding: 9px 12px; border: 1px solid #303030; border-radius: 7px; color: #999; background: #111; font-family: var(--mono); font-size: 7px; font-weight: 650; letter-spacing: .4px; text-transform: uppercase; }
.secondary-button span { margin-left: 4px; color: var(--teal); }
.secondary-button:hover { border-color: #ededed; color: #080808; background: #ededed; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { padding: 11px 12px; border-bottom: 1px solid var(--line); color: #565656; background: #101010; font-family: var(--mono); font-size: 7px; font-weight: 600; letter-spacing: .55px; text-align: right; text-transform: uppercase; }
th:first-child { padding-left: 21px; text-align: left; }
td { padding: 13px 12px; border-top: 1px solid var(--line-soft); color: #9d9d9d; font-family: var(--mono); font-size: 9px; text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:first-child td { border-top: 0; }
td:first-child { padding-left: 21px; text-align: left; }
.result-row { transition: background-color .15s ease; }
.result-row:hover, .result-row.expanded { background: rgba(255, 255, 255, .017); }
.ticker-cell { display: flex; align-items: center; gap: 10px; }
.ticker-logo { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid #2d2d2d; border-radius: 8px; color: var(--teal); background: #151515; font-size: 10px; }
.ticker-cell a { color: #ededed; font-size: 10px; font-weight: 750; text-decoration: none; }
.ticker-cell a:hover { color: var(--teal); }
.ticker-cell small { display: block; max-width: 150px; margin-top: 3px; overflow: hidden; color: #4f4f4f; font-size: 7px; font-weight: 400; text-overflow: ellipsis; }
.score-pill { display: inline-flex; align-items: baseline; gap: 2px; min-width: 45px; padding: 5px 7px; border: 1px solid #303030; border-radius: 6px; background: #141414; }
.score-pill b { color: #c8c8c8; font-size: 10px; }
.score-pill small { color: #555; font-size: 6px; }
.score-pill.high { border-color: rgba(92, 196, 195, .24); background: rgba(92, 196, 195, .06); }
.score-pill.high b { color: var(--teal); }
.score-pill.mid b { color: #d0d0d0; }
.score-pill.low b { color: #777; }
.phase { display: inline-flex; align-items: center; gap: 6px; color: #8e8e8e; font-size: 7px; text-transform: uppercase; }
.phase i { width: 5px; height: 5px; border-radius: 50%; background: #777; }
.phase-2 { color: #8bd9d8; }
.phase-2 i { background: var(--teal); box-shadow: 0 0 7px rgba(92, 196, 195, .5); }
.phase-3 { color: #f8bf62; }
.phase-3 i { background: var(--amber); }
.phase-4 { color: #fca5a5; }
.phase-4 i { background: var(--red); }
.entry-quality { color: #adadad; }
.cell-sub { display: block; margin-top: 3px; color: #484848; font-size: 6px; }
.positive { color: var(--green); font-weight: 650; }
.negative { color: var(--red); font-weight: 650; }
.signal { display: inline-block; padding: 5px 7px; border: 1px solid #2d2d2d; border-radius: 999px; color: #838383; background: #151515; font-size: 7px; font-weight: 700; letter-spacing: .25px; text-transform: uppercase; }
.signal.buy { border-color: rgba(52, 211, 153, .2); color: #6ee7b7; background: rgba(52, 211, 153, .075); }
.signal.watch { border-color: rgba(92, 196, 195, .22); color: #8bd9d8; background: rgba(92, 196, 195, .065); }
.signal.reduce { border-color: rgba(245, 158, 11, .22); color: #f8bf62; background: rgba(245, 158, 11, .065); }
.signal.avoid { border-color: rgba(248, 113, 113, .2); color: #fca5a5; background: rgba(248, 113, 113, .065); }
.detail-toggle { display: grid; place-items: center; width: 25px; height: 25px; margin-left: auto; border: 1px solid #2d2d2d; border-radius: 6px; color: #777; background: #121212; font-family: var(--mono); font-size: 13px; }
.detail-toggle:hover, .detail-toggle[aria-expanded="true"] { border-color: var(--teal-deep); color: var(--teal); background: rgba(92, 196, 195, .055); }

.detail-row td { padding: 0; border-top-color: #2c2c2c; text-align: left; white-space: normal; }
.decision-sheet { display: grid; grid-template-columns: 1fr 1.18fr .82fr; background: linear-gradient(120deg, rgba(92, 196, 195, .035), transparent 32%), #0b0b0b; }
.decision-sheet > section { min-width: 0; padding: 22px; border-right: 1px solid var(--line); }
.decision-sheet > section:last-child { border-right: 0; }
.detail-label { color: #555; font-size: 7px; letter-spacing: .6px; text-transform: uppercase; }
.decision-summary h3 { margin: 8px 0 0; color: #ededed; font-family: var(--sans); font-size: 15px; }
.reason-list { display: grid; gap: 6px; margin: 13px 0 16px; padding: 0; color: #888; font-size: 8px; list-style: none; }
.reason-list li::before { content: "↗"; margin-right: 7px; color: var(--teal); }
.risk-strip { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.risk-strip span { padding: 9px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.risk-strip span:nth-child(-n+2) { border-top: 0; }
.risk-strip span:nth-child(2n) { border-right: 0; }
.risk-strip small { display: block; color: #4f4f4f; font-size: 6px; text-transform: uppercase; }
.risk-strip b { display: block; margin-top: 4px; color: #aaa; font-size: 8px; font-weight: 500; }
.criteria-heading { display: flex; justify-content: space-between; margin-bottom: 11px; color: #5d5d5d; font-size: 7px; letter-spacing: .5px; text-transform: uppercase; }
.criteria-heading b { color: var(--teal); font-size: 9px; }
.criteria-list { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; margin: 0; padding: 0; list-style: none; }
.criteria-list li { display: flex; align-items: flex-start; gap: 6px; min-width: 0; color: #757575; font-size: 7px; line-height: 1.35; }
.criteria-list i { display: grid; place-items: center; width: 14px; height: 14px; flex: 0 0 auto; border: 1px solid #2d2d2d; border-radius: 4px; color: #555; font-size: 8px; font-style: normal; }
.criteria-list .passed { color: #a0a0a0; }
.criteria-list .passed i { border-color: rgba(92, 196, 195, .25); color: var(--teal); background: rgba(92, 196, 195, .055); }
.score-panel { display: flex; flex-direction: column; gap: 12px; }
.score-line > div { display: flex; justify-content: space-between; color: #6b6b6b; font-size: 7px; }
.score-line b { color: #919191; font-weight: 500; }
.score-line > i { display: block; height: 3px; margin-top: 7px; border-radius: 3px; background: #242424; overflow: hidden; }
.score-line > i span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-deep), var(--teal)); }

.empty-state { display: flex; flex-direction: column; align-items: center; padding: 56px 20px; color: #555; text-align: center; }
.empty-state > span { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #282828; border-radius: 50%; color: #4c4c4c; font-family: var(--mono); font-size: 8px; }
.empty-state strong { margin-top: 13px; color: #d0d0d0; font-size: 16px; }
.empty-state p { margin: 7px 0 0; font-family: var(--mono); font-size: 8px; }

.history-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; margin-top: 15px; padding: 21px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 13, 13, .9); }
.history-card h2 { font-size: 17px; }
.history-list { display: grid; gap: 0; }
.history-list article { display: grid; grid-template-columns: 8px minmax(130px, 1fr) 70px 34px; gap: 9px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line-soft); font-family: var(--mono); }
.history-list article:first-child { padding-top: 0; border-top: 0; }
.history-dot { width: 5px; height: 5px; border-radius: 50%; background: #777; }
.history-dot.offensive, .history-dot.constructive { background: var(--teal); }
.history-dot.transition { background: var(--amber); }
.history-dot.defensive { background: var(--red); }
.history-list article > span { display: flex; flex-direction: column; gap: 3px; }
.history-list article > span b { color: #aaa; font-size: 8px; }
.history-list article > span small { color: #4e4e4e; font-size: 6px; }
.history-list article > strong { color: #8b8b8b; font-size: 9px; font-weight: 500; text-align: right; }
.history-list article > strong small { display: block; color: #494949; font-size: 6px; font-weight: 400; }
.history-list article > em { display: grid; place-items: center; height: 25px; border: 1px solid #2c2c2c; border-radius: 5px; color: var(--teal); font-size: 8px; font-style: normal; }
.history-empty { margin: 0; color: #4c4c4c; font-family: var(--mono); font-size: 8px; }

footer { display: flex; justify-content: space-between; margin-top: 22px; padding: 20px 1px 0; border-top: 1px solid var(--line-soft); color: #404040; font-family: var(--mono); font-size: 7px; letter-spacing: .45px; text-transform: uppercase; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
* { scrollbar-color: #2d2d2d #080808; scrollbar-width: thin; }

@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 300px minmax(0, 1fr); }
  .sidebar { padding-inline: 21px; }
  .main-content { padding-inline: 28px; }
  .decision-sheet { grid-template-columns: 1fr 1fr; }
  .score-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .score-panel { display: grid; grid-template-columns: repeat(2, 1fr); }
  .score-panel .detail-label { grid-column: 1 / -1; }
}

@media (max-width: 930px) {
  .presets { grid-template-columns: 1fr; }
  .regime-card { grid-template-columns: 1fr; }
  .regime-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(3) { border-left: 0; }
  .stat-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .history-card { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { background-size: 40px 40px; }
  .app-shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; max-height: none; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .main-content { padding-inline: 18px; }
  .main-content::before, .main-content::after { display: none; }
  .top-nav { align-items: flex-start; flex-wrap: wrap; gap: 4px; padding: 15px 0; }
  .top-nav-meta { width: 100%; margin: 7px 0 0; justify-content: space-between; }
  .hero { min-height: 0; padding: 47px 0 34px; }
  h1 { font-size: clamp(48px, 14vw, 70px); letter-spacing: -3.5px; }
  .preset-list { grid-template-columns: 1fr; }
  .decision-sheet { grid-template-columns: 1fr; }
  .decision-sheet > section { border-right: 0; border-top: 1px solid var(--line); }
  .decision-sheet > section:first-child { border-top: 0; }
  .score-panel { display: flex; grid-column: auto; }
}

@media (max-width: 500px) {
  .phase-bars, .stats-grid { grid-template-columns: 1fr; }
  .stat-card, .stat-card:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .stat-card:first-child { border-top: 0; }
  .table-heading { align-items: flex-start; flex-direction: column; }
  .criteria-list { grid-template-columns: 1fr; }
  .history-list article { grid-template-columns: 8px 1fr 34px; }
  .history-list article > strong { display: none; }
  footer { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
