/* Tycoon alpha. The look borrows from a service truck: dark body paint, a white
   door panel for the paperwork, and hi-vis yellow for the one thing that matters. */
:root {
  --paint: #12313a; --paint-2: #1c4550; --panel: #f3f6f4; --sheet: #ffffff; --ink: #14242a; --mute: #5b6f76;
  --line: #cfd9d6; --hivis: #f2b705; --gain: #1f7a55; --loss: #b5361c; --focus: #0a6cc2;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif; --body: 'Barlow', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--panel); color: var(--ink); font: 16px/1.45 var(--body); }
h1, h2, h3 { font-family: var(--cond); font-weight: 600; margin: 0; line-height: 1.1; }
button, select, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.num { font-family: var(--cond); font-weight: 600; font-variant-numeric: tabular-nums; }
.gain { color: var(--gain); } .loss { color: var(--loss); } .mute { color: var(--mute); }

.top { background: var(--paint); color: #fff; padding: 14px 20px 0; }
.bar { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; max-width: 1320px; margin: 0 auto; }
.bar h1 { font-size: 30px; font-weight: 700; letter-spacing: .01em; }
.bar .when { font-family: var(--cond); font-size: 22px; }
.bar .tools { margin-left: auto; display: flex; gap: 8px; }
.bar .tools button { background: none; border: 1px solid #ffffff55; color: #fff; padding: 4px 12px; border-radius: 3px; cursor: pointer; }
.bar .tools button:hover { background: #ffffff1a; }

/* The gauge: the one loud element. */
.gauge { max-width: 1320px; margin: 12px auto 0; padding-bottom: 16px; }
.gauge .read { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gauge .read .now { font-family: var(--cond); font-weight: 700; font-size: 44px; line-height: 1; color: var(--hivis); }
.gauge .track { position: relative; height: 18px; margin-top: 8px; background: var(--paint-2); border-radius: 2px;
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), #ffffff30 calc(10% - 1px) 10%); }
.gauge .fill { height: 100%; background: var(--hivis); border-radius: 2px 0 0 2px; transition: width .35s ease; }
.gauge .held { font-size: 14px; color: #d4e0dd; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .gauge .fill { transition: none; } }

.cols { display: grid; grid-template-columns: 270px minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; max-width: 1320px; margin: 20px auto 48px; padding: 0 20px; align-items: start; }
@media (max-width: 1050px) { .cols { grid-template-columns: 1fr; } }
section { background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px 18px; }
section + section { margin-top: 20px; }
section > h2 { font-size: 24px; margin-bottom: 10px; }
h3 { font-size: 18px; margin: 16px 0 6px; color: var(--paint); }

dl.kv { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; }
dl.kv dt { color: var(--mute); } dl.kv dd { margin: 0; text-align: right; font-family: var(--cond); font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; }
dl.kv .total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }

table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 4px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 500; color: var(--mute); font-size: 14px; } th:first-child, td:first-child { text-align: left; }
td { font-family: var(--cond); font-size: 18px; font-weight: 500; }

.pick { display: block; border: 1px solid var(--line); border-radius: 3px; padding: 8px 10px 8px 36px; margin: 6px 0; position: relative; cursor: pointer; }
.pick input { position: absolute; left: 10px; top: 12px; }
.pick:has(input:checked) { border-color: var(--paint); box-shadow: inset 4px 0 0 var(--hivis); background: #fbfcf7; }
.pick.off { opacity: .55; cursor: not-allowed; }
.pick .t { font-weight: 600; } .pick .c { float: right; font-family: var(--cond); font-weight: 600; margin-left: 10px; }
.pick .a { display: block; color: var(--mute); font-size: 14.5px; clear: both; }
.row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 8px 0; }
.row label { color: var(--mute); }
select, input[type=number] { border: 1px solid var(--line); border-radius: 3px; padding: 5px 8px; background: #fff; }
input[type=number] { width: 120px; }
.go { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--paint); }
.go button { font-family: var(--cond); font-weight: 600; font-size: 21px; padding: 8px 20px; border-radius: 3px; cursor: pointer; border: 2px solid var(--paint); background: #fff; }
.go button.main { background: var(--paint); color: #fff; }
.go button:hover { filter: brightness(1.12); }
.offer { border: 2px solid var(--hivis); border-radius: 3px; padding: 10px 12px; margin: 8px 0; background: #fffbea; }
.warn { border-left: 4px solid var(--loss); padding: 6px 10px; background: #fbefec; margin: 8px 0; }
ul.plain { list-style: none; margin: 0; padding: 0; } ul.plain li { padding: 3px 0; border-bottom: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 92px 1fr; gap: 8px; } .news .d { color: var(--mute); font-size: 14.5px; }
.chart { width: 100%; height: 150px; display: block; }
.start { max-width: 680px; margin: 48px auto; padding: 0 20px; }
.start p { max-width: 62ch; }
.start .go { border: 0; }
details summary { cursor: pointer; color: var(--paint); font-weight: 600; margin-top: 12px; }
.cols section .go { position: sticky; bottom: 0; background: var(--sheet); padding-bottom: 12px; margin-bottom: -6px; }

.bar .tools { flex-wrap: wrap; }
.sheet { max-width: 620px; margin: 20px auto 0; padding: 0 20px; }
.sheet input:not([type=checkbox]), .sheet select, .sheet textarea { border: 1px solid var(--line); border-radius: 3px; padding: 6px 8px; font: inherit; }
.sheet textarea { width: 100%; }
.sheet .row label { min-width: 150px; }
.note { max-width: 1320px; margin: 14px auto 0; padding: 8px 20px; color: var(--gain); font-weight: 600; }
button.link { background: none; border: 0; padding: 0; color: var(--focus); text-decoration: underline; cursor: pointer; font-weight: 600; }
