/* OpsLab one-page monthly report. Shared by every industry page (draft-*-onepager.html). */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
/* Same colour tokens as the main site, so the page reads as one family. */
:root {
  --bg:#0A0F1C; --bg2:#172036; --bg2b:#111829; --bg3:#1C2743; --border:#26324F;
  --line:rgba(255,255,255,.07);
  --text:#DDE1EA; --muted:#949BAE; --accent:#CF6829; --accent2:#E07840;
  /* Change arrows: bright on purpose (PM 31.10) - they are the first thing to read. */
  --up:#4ADE80; --down:#FF5A4A;
  /* Danger levels of a value against its threshold; "normal" is plain text, not green. */
  --crit:#FF5A4A; --warn:#F28B3C;
  --good:#3FB68B; --bad:#E5604D;
  --water:rgba(79,179,176,.10); --ice:#E8EEF6;
  --page-bg:radial-gradient(1200px 600px at 70% -10%,#121b33 0%,transparent 60%),
            linear-gradient(to left,#0F1830 0%,#0B1122 55%,#080C17 100%);
  --shadow:0 1px 0 rgba(255,255,255,.05) inset,0 10px 28px rgba(0,0,0,.35);
  color-scheme:dark;
}
html[data-theme="light"] {
  --bg:#E9E7E1; --bg2:#F4F2ED; --bg2b:#EFEDE7; --bg3:#FAF8F4; --border:#D8D4CA;
  --line:rgba(0,0,0,.08);
  --text:#111317; --muted:#4A4F5A; --accent:#C26122; --accent2:#B25412;
  --up:#0E9F4F; --down:#E0301E; --crit:#D42A18; --warn:#C8640F;
  --good:#1f8a5c; --bad:#c0392b;
  --water:rgba(31,122,119,.10); --ice:#FFFFFF;
  --page-bg:linear-gradient(to left,#EDEBE5 0%,#E9E7E1 55%,#E4E2DB 100%);
  --shadow:0 1px 0 rgba(255,255,255,.7) inset,0 6px 18px rgba(60,50,30,.08);
  color-scheme:light;
}
body {
  background:var(--page-bg); color:var(--text);
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  font-size:16px; line-height:1.5; -webkit-font-smoothing:antialiased; min-height:100vh;
}
a { color:var(--accent2); text-decoration:none; }
.wrap { max-width:1120px; margin:0 auto; padding:0 28px; }

.bar { display:flex; justify-content:space-between; align-items:center; height:60px; }
.logo { font-size:1.35rem; font-weight:800; letter-spacing:-.4px; color:var(--text); }
.logo b { color:var(--accent); }
.theme { background:var(--bg2); border:1px solid var(--border); border-radius:8px; color:var(--muted);
  width:36px; height:32px; cursor:pointer; display:grid; place-items:center; }
.theme:hover { border-color:var(--accent); color:var(--text); }
.theme svg { width:16px; height:16px; }

.head { padding:18px 0 14px; }
.kicker { color:var(--accent2); font-size:.74rem; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; margin-bottom:8px; }
h1 { font-size:clamp(1.6rem,3.6vw,2.4rem); font-weight:400; letter-spacing:-.6px; line-height:1.15; }
h1 em { font-style:normal; color:var(--accent2); }
.headline { margin-top:10px; font-size:clamp(1rem,1.8vw,1.12rem); color:var(--muted); }
.headline b { color:var(--text); font-weight:600; }

/* Month strip: the report grows by one pill every month. */
.months { display:flex; gap:6px; margin:0 0 16px; overflow-x:auto; scrollbar-width:none; padding:10px 2px; position:sticky; top:0; z-index:50; background:color-mix(in srgb,var(--bg) 92%,transparent); backdrop-filter:blur(6px); }
.months::-webkit-scrollbar { display:none; }
.mo { flex:1 0 54px; background:var(--bg2); border:1px solid var(--border); border-radius:10px; color:var(--muted);
  font:inherit; font-size:.8rem; font-weight:600; padding:7px 4px 6px; cursor:pointer; position:relative; text-align:center; line-height:1.2; }
.mo small { display:block; font-size:.64rem; opacity:.7; font-weight:500; }
.mo:hover { border-color:var(--accent); color:var(--text); }
.mo.on { background:var(--accent); border-color:var(--accent); color:#fff; }
.mo.new::after { content:""; position:absolute; top:5px; right:6px; width:6px; height:6px; border-radius:50%; background:var(--accent2); }
.mo.on.new::after { background:#fff; }
.mo.yr { flex:1.3 0 64px; margin-left:6px; border-style:dashed; }
.mo.yr.on { border-style:solid; }
.hint { font-size:.74rem; color:var(--muted); opacity:.8; margin-bottom:16px; }

.card { background:linear-gradient(160deg,var(--bg2),var(--bg2b)); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); }
.panel { padding:18px 20px 16px; min-width:0; }
.panel h2 { font-size:1.05rem; font-weight:700; letter-spacing:-.2px; margin-bottom:2px; }
.panel h2 b { color:var(--accent2); }
.panel .sub { font-size:.78rem; color:var(--muted); margin-bottom:12px; }
.row { display:grid; gap:16px; margin-bottom:16px; }
.r-hero { grid-template-columns:1.45fr 1fr; }
.r-2 { grid-template-columns:1.4fr 1fr; }

/* ---------- two grids: incidents | hours ---------- */
.wf { display:grid; grid-template-columns:auto auto auto; justify-content:center; align-items:center; gap:20px 36px; }
.wf-arrow { align-self:center; } .wf-arrow svg { width:56px; height:28px; display:block; }
/* On narrow screens the later ".wf svg { width:100% }" rule stretched the arrow to half a screen; the .wf prefix wins over it. */
@media (max-width:900px) { .wf .wf-arrow svg { width:56px; height:28px; } .wf { grid-template-columns:auto; } .wf-col { margin:0 auto; } .wf-arrow { justify-self:center; } .wf-arrow svg { transform:rotate(90deg); } }
.wf-col { display:flex; flex-direction:column; align-items:stretch; }
.wf-hd { text-align:left; margin-bottom:10px; }
.wf-hd .n { font-size:clamp(1.8rem,4vw,2.4rem); font-weight:800; letter-spacing:-1px; line-height:1; }
.wf-hd .n small { font-size:.45em; color:var(--muted); font-weight:700; letter-spacing:0; margin-left:4px; }
.wf-hd .l { font-size:.8rem; color:var(--muted); margin-top:4px; }
.wf svg { width:100%; height:auto; display:block; }
.wf-lg { display:grid; grid-template-columns:auto 1fr auto; gap:6px 10px; align-items:baseline; margin-top:12px; font-size:.86rem; }
.wf-lg i { width:12px; height:12px; border-radius:3px; display:inline-block; align-self:center; }
.wf-lg b { font-size:1.05rem; text-align:right; white-space:nowrap; }
.wf-lg .hot { color:var(--accent2); }
.wf-lg .cold { color:var(--muted); }
.wf-unit { grid-column:1/-1; text-align:center; font-size:.72rem; color:var(--muted); margin-top:-4px; }

/* ---------- tiles ---------- */
.hero { padding:18px 20px 14px; display:flex; flex-direction:column; }
.hero .top { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.hero .lab { font-size:.86rem; color:var(--muted); font-weight:600; }
.hero .val { display:flex; align-items:baseline; gap:14px; margin:4px 0 2px; flex-wrap:wrap; }
.hero .num { font-size:clamp(2.6rem,5vw,3.4rem); font-weight:800; letter-spacing:-1.5px; line-height:1; }
.hero .num small { font-size:.4em; color:var(--muted); font-weight:700; letter-spacing:0; margin-left:4px; }
.hero .yr { font-size:.8rem; color:var(--muted); }
.sw { display:inline-flex; background:var(--bg3); border:1px solid var(--border); border-radius:8px; padding:2px; flex-shrink:0; }
.sw button { background:none; border:0; color:var(--muted); font:inherit; font-size:.78rem; font-weight:700; padding:5px 11px; border-radius:6px; cursor:pointer; }
.sw button.on { background:var(--accent); color:#fff; }
.money { margin:8px 0 2px; font-size:.76rem; color:var(--muted); }
.money .mstack { display:flex; gap:2px; height:10px; margin:5px 0 6px; }
.money .mstack span { border-radius:3px; }
.money .ml { display:flex; flex-wrap:wrap; gap:2px 14px; }
.money .ml i { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:5px; }
.hero svg { margin-top:10px; }

.tiles { display:grid; grid-template-columns:1fr 1fr; grid-template-rows:repeat(3,1fr) auto; gap:10px; }
.tiles .kpi { display:flex; flex-direction:column; justify-content:center; }
.kpi { background:linear-gradient(160deg,var(--bg2),var(--bg2b)); border:1px solid var(--border); border-radius:14px; padding:12px 14px 10px; box-shadow:var(--shadow); }
.kpi:hover, .hero:hover { border-color:var(--accent); }
.kpi .lab { font-size:.76rem; color:var(--muted); font-weight:600; }
.kpi .r { display:flex; justify-content:space-between; align-items:baseline; gap:6px; margin-top:2px; }
.kpi .num { font-size:1.9rem; font-weight:800; letter-spacing:-.8px; line-height:1.1; }
.kpi .num small { font-size:.48em; color:var(--muted); font-weight:700; letter-spacing:0; margin-left:2px; }
.lv-crit { color:var(--crit); } .lv-warn { color:var(--warn); }
.delta { font-size:.98rem; font-weight:800; white-space:nowrap; }
.hero .delta { font-size:1.2rem; }
.delta.good { color:var(--up); } .delta.bad { color:var(--down); } .delta.flat { color:var(--muted); }
.lvl-key { display:flex; gap:12px; font-size:.7rem; color:var(--muted); grid-column:1/-1; margin-top:2px; }
.lvl-key i { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; }

/* ---------- charts ---------- */
svg.chart { width:100%; height:auto; display:block; overflow:visible; }
svg text { font-family:inherit; }
.ax { stroke:var(--line); stroke-width:1; }
.tl { fill:var(--muted); font-size:12px; }
.tl.on { fill:var(--text); font-weight:700; }
.ann { fill:var(--text); font-size:12px; font-weight:700; }
.cp { stroke:var(--accent2); stroke-width:1; stroke-dasharray:3 3; }
.b-long { fill:var(--accent); }
.b-rest { fill:color-mix(in srgb,var(--accent) 38%,var(--bg2)); }
.dim { opacity:.45; }
.fc { fill:none; stroke:var(--accent2); stroke-width:1.5; stroke-dasharray:4 3; }
.fc-r { stroke:var(--accent2); stroke-width:1.5; }
.hitcol { fill:transparent; cursor:pointer; }
[data-tip] { cursor:default; }

/* systems: treemap + monthly rows */
.where { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:20px; align-items:stretch; margin-top:10px; }
.tm-head { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:4px 12px; margin-bottom:8px; }
.tm-period { font-size:.95rem; font-weight:700; }
.tm-period span { color:var(--accent2); }
.tm-key { font-size:.72rem; color:var(--muted); display:flex; align-items:center; gap:6px; }
.tm-key i { width:28px; height:8px; border-radius:3px; display:inline-block; }
.sys { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1.6fr) 54px 56px; grid-template-rows:auto repeat(5,1fr); gap:8px 10px; align-items:center; height:100%; }
.sys .nm { font-size:.84rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sys .nm.rest { color:var(--muted); }
.sys svg { width:100%; height:100%; min-height:30px; display:block; align-self:stretch; }
.sys .v { font-size:.9rem; font-weight:700; text-align:right; white-space:nowrap; }
.sys .delta { font-size:.82rem; text-align:right; }
.sys .hd { font-size:.7rem; color:var(--muted); text-transform:uppercase; letter-spacing:.8px; font-weight:700; }
.sb { fill:color-mix(in srgb,var(--accent) 32%,var(--bg2)); } .sb.on { fill:var(--accent); }
.sb.rest { fill:color-mix(in srgb,var(--muted) 30%,var(--bg2)); } .sb.rest.on { fill:var(--muted); }
.tmt { fill:var(--text); font-size:14px; font-weight:700; pointer-events:none; }
.tms { fill:var(--text); font-size:12px; pointer-events:none; opacity:.85; }

/* timing: year grid + 24h dial */
.timing { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:16px; align-items:center; }
.heat { display:grid; grid-template-columns:24px repeat(8,1fr); gap:3px; font-size:.68rem; }
.heat .h { color:var(--muted); text-align:center; }
.heat .d { color:var(--muted); display:flex; align-items:center; }
.heat .c { aspect-ratio:1.5/1; border-radius:4px; }
.heat .c.mark { outline:2px solid var(--text); outline-offset:-2px; }
.dial svg { max-width:260px; margin:0 auto; display:block; width:100%; height:auto; }
.big { fill:var(--accent2); font-size:30px; font-weight:800; }

/* knock-on wave */
.node { fill:var(--bg3); stroke:var(--border); }
.node.src { fill:color-mix(in srgb,var(--accent) 18%,var(--bg2)); stroke:var(--accent); }
.nt { fill:var(--text); font-size:13px; font-weight:600; }
.nt.m { fill:var(--muted); font-size:11px; font-weight:500; }
.nx { fill:var(--accent2); font-size:15px; font-weight:800; }
.edge { fill:none; stroke:var(--accent); opacity:.5; }

/* measures: before / after step */
.acts { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-bottom:16px; }
.act { padding:14px 16px 10px; }
.act .top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.act h3 { font-size:.92rem; font-weight:700; line-height:1.3; }
.st { font-size:.68rem; font-weight:700; padding:3px 8px; border-radius:20px; white-space:nowrap; border:1px solid currentColor; }
.st.ok { color:var(--up); } .st.run { color:var(--accent2); } .st.no { color:var(--muted); }
.act .eff { font-size:.8rem; color:var(--muted); margin-top:4px; min-height:1.2em; }
.act .eff b { color:var(--text); }
.act svg { width:100%; height:auto; display:block; margin-top:6px; }

.sec { font-size:.74rem; font-weight:700; letter-spacing:1.6px; text-transform:uppercase; color:var(--muted); margin:24px 0 10px; }
footer { border-top:1px solid var(--border); margin-top:24px; padding:18px 0 36px; color:var(--muted); font-size:.78rem; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }

.tip { position:fixed; z-index:99; pointer-events:none; opacity:0; transition:opacity .12s; background:var(--bg3); color:var(--text);
  border:1px solid var(--border); border-radius:8px; padding:8px 11px; font-size:.8rem; line-height:1.4; max-width:270px; box-shadow:0 8px 24px rgba(0,0,0,.3); }
/* values are regular weight, like the rest of the site */
.wf-hd .n, .wf-hd .n small, .wf-lg b, .hero .num, .hero .num small, .kpi .num, .kpi .num small, .delta, .sys .v, .tmt, .ann, .tl.on, .big, .nx, .tm-period, .tip b, .headline b, .act .eff b, .panel h2 b { font-weight:400; }
.wf-body { display:flex; align-items:center; gap:22px; }
.wf-body svg { flex:0 0 auto; width:260px; aspect-ratio:1/1; height:auto; }
.wf-col { width:max-content; }
.wf-side { flex:0 0 auto; width:150px; }
.wf-side .wf-lg { grid-template-columns:auto 1fr; gap:16px 10px; margin-top:0; align-items:start; }
.wf-side .wf-lg span { color:var(--muted); font-size:.8rem; line-height:1.35; }
.wf-side .wf-lg b { display:block; margin-top:2px; font-size:1.2rem; line-height:1.2; }
.wf-side .wf-lg .hot b { color:var(--accent2); } .wf-side .wf-lg .cold b { color:var(--text); }
.wf-side .wf-lg i { margin-top:3px; }
.wf-side .wf-lg b { text-align:left; font-size:1.05rem; }
.wf-side .wf-unit { text-align:left; margin-top:16px; padding-top:12px; border-top:1px solid var(--border); display:flex; align-items:center; gap:8px; }
.cell { width:12px; height:12px; border-radius:3px; display:inline-block; background:color-mix(in srgb,var(--muted) 24%,var(--bg2)); border:1px solid var(--muted); box-sizing:border-box; }
.tm-key { flex:1 1 200px; }
.tm-key i { flex:1 1 auto; min-width:80px; }
@media (max-width:560px) { .wf-body { flex-direction:column; } .wf-col { width:100%; } .wf-body svg { width:100%; max-width:300px; } .wf-side { width:100%; } }
.tip.on { opacity:1; } .tip b { color:var(--accent2); }

@media (max-width:900px) {
  .r-hero, .r-2, .where, .ib { grid-template-columns:1fr; }
  .acts { grid-template-columns:1fr; }
  .ib svg { margin:0 auto; }
}
@media (max-width:560px) {
  .wrap { padding:0 14px; }
  .panel, .hero { padding:16px 14px 14px; }
  .mo { flex:0 0 52px; }
  .timing { grid-template-columns:1fr; }
  .sys { grid-template-columns:1fr 54px 56px; grid-template-rows:none; }
  .sys svg { height:44px; }
  .sys .nm { grid-column:1/-1; margin-top:4px; }
  .sys .hd { display:none; }
  .wf { gap:14px 16px; }
  .wf-lg { grid-template-columns:auto 1fr; gap:2px 8px; font-size:.78rem; }
  .wf-lg b { grid-column:2; text-align:left; font-size:.95rem; margin-bottom:6px; }
  /* Charts shrink on a phone; scale their text back up. */
  .tl { font-size:20px; } .ann { font-size:20px; }
  .nt { font-size:16px; } .nt.m { font-size:13px; } .nx { font-size:18px; }
  .tmt { font-size:17px; } .tms { font-size:15px; }
}

/* Industry switch in the top bar: the same report for a bank, a telecom, a retailer, a company. */
.ind { display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; margin:0 12px; }
.ind::-webkit-scrollbar { display:none; }
.ind a { font-size:.8rem; font-weight:600; color:var(--muted); padding:5px 11px; border-radius:8px; border:1px solid transparent; white-space:nowrap; }
.ind a:hover { color:var(--text); border-color:var(--border); }
.ind a.on { color:var(--text); background:var(--bg2); border-color:var(--border); }
@media (max-width:560px) { .ind { margin:0 6px; } .ind a { padding:5px 7px; font-size:.74rem; } }
