/* "LIQUIDSNIPER" — industrial / quotation-mark minimalism */
:root {
  --bg: #f4f3ef;
  --paper: #ffffff;
  --ink: #0b0b0b;
  --ink-2: #55534e;
  --ink-3: #9a978f;
  --rule: #0b0b0b;
  --rule-soft: #dad8d1;
  --accent: #ff4f00;          /* safety orange: alleen voor merk-accenten */
  --good: #0a7a3d;
  --bad: #c4231b;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0c; --paper: #151514; --ink: #f2f1ec; --ink-2: #b3b0a7; --ink-3: #75726b;
    --rule: #f2f1ec; --rule-soft: #2c2b28; --good: #3fc47a; --bad: #ff6b5e;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 13px; line-height: 1.4; letter-spacing: .01em;
  padding: 28px clamp(16px, 4vw, 56px) 40px; max-width: 1480px; margin: 0 auto;
}
a { color: inherit; }
.label, dt, th, .caption, .note, .no, .foot, .who, .status, button, .login-meta, .login-foot {
  text-transform: uppercase; letter-spacing: .08em; font-size: 11px;
}
.label, dt { color: var(--ink-2); display: block; margin-bottom: 6px; }
.num, dd, td.r { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--good); }
.neg { color: var(--bad); }
.muted { color: var(--ink-3); }

/* header */
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
       border-bottom: 2px solid var(--rule); padding-bottom: 14px; flex-wrap: wrap; }
.wordmark { font-weight: 700; font-size: clamp(28px, 4.2vw, 52px); letter-spacing: -.02em; line-height: .95; }
.caption { color: var(--ink-2); margin-top: 8px; }
#mode { color: var(--accent); }
.top-right { display: flex; align-items: center; gap: 22px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); display: inline-block; }
.status.ok i { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 20%, transparent); }
.status.down i { background: var(--bad); }
.status.down b { color: var(--bad); }
button { font-family: var(--font); cursor: pointer; }
button.link { background: none; border: 0; border-bottom: 1px solid var(--ink); color: var(--ink); padding: 0 0 1px; font-weight: 700; }
button.link:hover { color: var(--accent); border-color: var(--accent); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr); gap: 32px; padding: 30px 0 26px;
        border-bottom: 1px solid var(--rule-soft); align-items: end; }
.big { font-family: var(--font); font-size: clamp(44px, 5.6vw, 84px); font-weight: 700; letter-spacing: -.045em; line-height: .9; white-space: nowrap; }
.delta { font-family: var(--mono); font-size: 14px; margin-top: 10px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--rule); }
.kpis > div { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule-soft); }
.kpis dd { font-size: 20px; }

/* sections */
section { margin-top: 34px; }
.sec-head { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 4px; }
.sec-head h2 { font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.sec-head .no { font-family: var(--mono); color: var(--accent); font-weight: 700; }
.sec-head .note { margin-left: auto; color: var(--ink-3); }

/* chart */
.chart { height: 260px; position: relative; margin-top: 10px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid line { stroke: var(--rule-soft); stroke-width: 1; }
.chart .axis text { fill: var(--ink-3); font-family: var(--mono); font-size: 10px; }
.chart .base { stroke: var(--ink-3); stroke-dasharray: 3 4; stroke-width: 1; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--ink); opacity: .05; }
.chart .cross { stroke: var(--ink-2); stroke-width: 1; }
.chart .dot { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.chart .hit { fill: transparent; cursor: crosshair; }
.empty { color: var(--ink-3); padding: 30px 0; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

/* strategies */
.strats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.strats section, .strat { margin-top: 0; }
.strat-body { display: grid; grid-template-columns: repeat(4, 1fr); }
.strat-body > div { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--rule-soft); }
.strat-body dd { font-size: 15px; white-space: nowrap; }
.strat-body dt { white-space: nowrap; }
.strat-body .wide { grid-column: span 2; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 10px 10px 8px 0; border-bottom: 1px solid var(--rule-soft); white-space: nowrap; }
td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule-soft); white-space: nowrap; }
.r { text-align: right; }
tbody tr:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
td .sym { font-weight: 700; text-decoration: none; border-bottom: 1px solid transparent; }
td .sym:hover { border-color: currentColor; }
td .sub { color: var(--ink-3); font-size: 11px; margin-left: 6px; }
.tag { display: inline-block; border: 1px solid var(--ink); padding: 1px 6px 0; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.tag.momentum { background: var(--ink); color: var(--bg); }
.reason { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }

/* log */
.log { list-style: none; font-family: var(--mono); font-size: 12px; }
.log li { display: grid; grid-template-columns: 70px 70px 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule-soft); }
.log .t { color: var(--ink-3); }
.log .k { text-transform: uppercase; color: var(--ink-2); }
.log .warn .k, .log .warn .m { color: var(--bad); }
.log .m { overflow-wrap: anywhere; }

.foot { display: flex; gap: 28px; margin-top: 48px; padding-top: 12px; border-top: 2px solid var(--rule); color: var(--ink-2); flex-wrap: wrap; }
.foot #updated { margin-left: auto; font-family: var(--mono); text-transform: none; letter-spacing: 0; }

/* tooltip */
.tip { position: fixed; pointer-events: none; background: var(--ink); color: var(--bg); font-family: var(--mono);
       font-size: 11px; padding: 6px 8px; z-index: 10; white-space: nowrap; }
.tip b { display: block; font-size: 13px; }

/* login */
body.login { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
.login-wrap { width: min(440px, 100%); }
.login-meta, .login-foot { display: flex; justify-content: space-between; color: var(--ink-2); }
.login-meta { border-bottom: 2px solid var(--rule); padding-bottom: 8px; margin-bottom: 28px; }
.login .wordmark { font-size: clamp(36px, 10vw, 54px); }
.login-form { margin-top: 36px; display: grid; gap: 20px; }
.login-form input { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink);
                    font: 16px var(--mono); padding: 8px 0; border-radius: 0; outline: none; }
.login-form input:focus { border-bottom: 2px solid var(--accent); padding-bottom: 7px; }
.login-form button { justify-self: start; background: var(--ink); color: var(--bg); border: 0; padding: 14px 26px; font-weight: 700; margin-top: 6px; }
.login-form button:hover { background: var(--accent); color: #000; }
.error { color: var(--bad); font-size: 12px; }
.login-foot { margin-top: 56px; border-top: 1px solid var(--rule-soft); padding-top: 10px; }

@media (max-width: 1180px) {
  .strats { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero, .strats { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .strat-body { grid-template-columns: repeat(2, 1fr); }
  .top-right { width: 100%; justify-content: space-between; }
  .sec-head .note { display: none; }
}
