:root { color-scheme: light; }
body { margin: 0; background: #f3f4f6; font: 12px/1.4 ui-sans-serif, system-ui, sans-serif; color: #333; }
.wf { padding: 10px; max-width: 1600px; margin: 0 auto; }
.bar { background: #1f2937; color: #fff; padding: 6px 10px; border-radius: 4px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pill { background: #374151; padding: 1px 7px; border-radius: 10px; font-size: 11px; margin-left: 8px; }
.pill.warn { background: #92400e; }
.light { color: #cbd5e1; }
.row { display: flex; gap: 8px; }
.box { background: #fff; border: 1px solid #e5e7eb; border-radius: 4px; padding: 8px; flex: 1; margin-bottom: 8px; min-width: 0; }
.flex3 { flex: 3; } .flex2 { flex: 2; }
.box h5 { margin: 0 0 5px; font-size: 12px; color: #111; display: flex; justify-content: space-between; gap: 12px; }
.box h5 span { color: #777; font-weight: normal; text-align: right; }
table { width: 100%; border-collapse: collapse; }
td { padding: 3px 4px; border-top: 1px solid #f0f0f0; white-space: nowrap; vertical-align: top; }
th { text-align: left; font-weight: normal; color: #888; font-size: 10px; padding: 0 4px 2px; }
.up { color: #15803d; font-weight: 600; } .dn { color: #b91c1c; font-weight: 600; }
.g { color: #15803d } .o { color: #d97706 } .r { color: #b91c1c }
.feed div { padding: 4px 0; border-top: 1px solid #f0f0f0; }
.tag { font-size: 9px; padding: 0 4px; border-radius: 3px; background: #e5e7eb; margin-right: 4px; vertical-align: middle; }
.big { font-size: 20px; font-weight: 700; }
.strip { display: flex; gap: 22px; align-items: center; }
.strip > div { min-width: 110px; } .strip .rechts { margin-left: auto; text-align: right; }
.muted { color: #777; font-size: 11px; }
.sep { display: inline-block; width: 6px; border-right: 1px dashed #bbb; margin-right: 4px; height: 14px; vertical-align: middle; }
.h { display: inline-block; width: 28px; text-align: center; font-size: 10px; padding: 2px 0; border-radius: 2px; font-variant-numeric: tabular-nums; }
.h.leeg { color: #bbb; background: #f3f4f6; }
.h.k { color: #888; font-size: 9px; cursor: pointer; } .h.k:hover { color: #111; }
.heat { white-space: nowrap; }
.hh th { font-size: 9px; }
.sw { display: inline-flex; align-items: center; gap: 5px; background: #374151; border-radius: 12px; padding: 2px 8px 2px 4px; margin-left: 8px; font-size: 11px; cursor: pointer; }
.knob { width: 26px; height: 14px; border-radius: 7px; background: #15803d; position: relative; display: inline-block; }
.knob.uit { background: #6b7280; }
.knob::after { content: ""; position: absolute; right: 2px; top: 2px; width: 10px; height: 10px; border-radius: 5px; background: #fff; }
.knob.uit::after { right: auto; left: 2px; }
.seg { display: inline-flex; border: 1px solid #4b5563; border-radius: 10px; overflow: hidden; margin-left: 8px; font-size: 11px; }
.seg span { padding: 1px 8px; cursor: pointer; } .seg .on { background: #e5e7eb; color: #111; font-weight: 600; }
.t { display: inline-block; min-width: 38px; color: #555; font-variant-numeric: tabular-nums; font-size: 11px; }
.sl { white-space: nowrap; } .sl.rood { color: #b91c1c; } .sl.oranje { color: #d97706; } .sl.groen { color: #15803d; }
.badge { font-size: 10px; color: #92400e; } .badge.rood { color: #b91c1c; }
.claude { font-size: 10px; color: #444; white-space: normal; max-width: 260px; }
.sparkcel { width: 100%; } .spark { width: 100%; height: 22px; display: block; }
.stijgers td, .stijgers th { padding-left: 3px; padding-right: 3px; }
body.login { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
body.login form { width: 280px; display: grid; gap: 8px; }
body.login input, body.login button { font: inherit; padding: 8px; border: 1px solid #d1d5db; border-radius: 4px; }
body.login button { background: #1f2937; color: #fff; cursor: pointer; }

/* Brede tabellen schuiven horizontaal binnen hun vak; de coinkolom blijft staan. */
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.stijgers td:nth-child(2), .stijgers th:nth-child(2), .shorts td:first-child, .shorts th:first-child { position: sticky; left: 0; background: #fff; z-index: 1; }

/* Mobiel: alles onder elkaar, balk en BTC-strook mogen afbreken. */
@media (max-width: 900px) {
  .wf { padding: 6px; }
  .row { flex-direction: column; gap: 0; }
  .bar { flex-wrap: wrap; gap: 6px; }
  .bar > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .pill, .sw, .seg { margin-left: 0; }
  .strip { flex-wrap: wrap; gap: 10px 18px; }
  .strip .rechts { margin-left: 0; text-align: left; flex-basis: 100%; }
  .box h5 { flex-direction: column; gap: 2px; }
  .box h5 span { text-align: left; }
  .sparkcel { min-width: 80px; }
  .feed div { white-space: normal; }
}

/* Plan 2: agenda en listings & nieuws */
.agenda td.vb { white-space: normal; min-width: 220px; max-width: 420px; color: #444; }
.agenda td { white-space: normal; }
.agenda td.t, .agenda td.sl { white-space: nowrap; }
.x { cursor: pointer; color: #b91c1c; margin-left: 4px; }
.evform { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.evform input, .evform select, .evform button { font: inherit; padding: 3px 6px; border: 1px solid #d1d5db; border-radius: 4px; }
.evform input[name="titel"] { flex: 1; min-width: 180px; }
.evform button { background: #1f2937; color: #fff; cursor: pointer; }
#nieuws .feed div { white-space: normal; }
#nieuws a { color: inherit; }
.stijgers td a { color: inherit; text-decoration: none; } .stijgers td a:hover b { text-decoration: underline; }
