:root {
  --bg: #0e1712;
  --bg2: #142219;
  --panel: #1a2c21;
  --panel2: #21372a;
  --line: #2d4a38;
  --text: #e6efe8;
  --muted: #93aa9a;
  --accent: #f28c28;
  --accent2: #ffb35c;
  --good: #4fd17a;
  --ok: #b8d94a;
  --mid: #f2c94c;
  --bad: #eb5757;
  --info: #56b4f2;
  --radius: 8px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-size: 14px; }
button { font: inherit; color: inherit; }
a { color: var(--accent2); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.mid { color: var(--mid); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 12px; }

/* ---------- Layout ---------- */
#app { display: grid; grid-template-columns: 210px 1fr; grid-template-rows: 64px 1fr; height: 100vh; }
#topbar {
  grid-column: 1 / 3; display: flex; align-items: center; gap: 16px; padding: 0 16px;
  background: linear-gradient(90deg, #0b3d22, #12301f 40%, #1a2c21); border-bottom: 2px solid var(--accent);
}
.crest {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: radial-gradient(circle at 30% 30%, #ffb35c, #c85f00); box-shadow: 0 0 0 3px #0b3d22, 0 0 0 5px var(--accent);
}
.brand { line-height: 1.15; }
.brand b { font-size: 16px; letter-spacing: .5px; }
.brand { min-width: 0; flex: 1 1 auto; }
.brand span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topinfo { display: flex; gap: 18px; align-items: center; margin-left: auto; }
.topinfo .chip { background: rgba(0, 0, 0, .25); padding: 6px 10px; border-radius: 6px; font-size: 13px; white-space: nowrap; }
.btn-continue {
  background: linear-gradient(180deg, var(--accent2), var(--accent)); color: #1b1004; border: 0; border-radius: 6px;
  padding: 10px 18px; font-weight: 700; cursor: pointer; min-width: 170px; box-shadow: 0 2px 0 #9b5208;
}
.btn-continue:hover { filter: brightness(1.08); }
.btn-continue { white-space: nowrap; }
@media (max-width: 1500px) { .topinfo .chip.hide-md { display: none; } }
.brand b { white-space: nowrap; }
.topinfo { min-width: 0; }
.btn-continue:disabled { filter: grayscale(.8); cursor: default; }
.btn-menu { background: transparent; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; cursor: pointer; }

#sidebar { background: var(--bg2); border-right: 1px solid var(--line); padding: 10px 0; overflow-y: auto; }
#sidebar button {
  display: flex; width: 100%; align-items: center; gap: 10px; background: none; border: 0; padding: 10px 18px;
  text-align: left; cursor: pointer; color: var(--muted); border-left: 3px solid transparent;
}
#sidebar button:hover { background: var(--panel); color: var(--text); }
#sidebar button.active { background: var(--panel); color: var(--text); border-left-color: var(--accent); font-weight: 600; }
#sidebar .ico { width: 20px; text-align: center; }
#sidebar .badge { margin-left: auto; background: var(--accent); color: #1b1004; border-radius: 10px; padding: 0 7px; font-size: 11px; font-weight: 700; }
#sidebar .sep { height: 1px; background: var(--line); margin: 8px 14px; }

#main { overflow-y: auto; padding: 18px 22px 60px; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 16px; margin: 0 0 10px; color: var(--accent2); text-transform: uppercase; letter-spacing: .6px; }
h3 { font-size: 14px; margin: 0 0 8px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin: 0; color: var(--muted); }

/* ---------- Panels ---------- */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
.span3 { grid-column: span 3; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; min-width: 0; }
.panel.tight { padding: 0; overflow: hidden; }
.panel.tight > h2 { padding: 12px 14px 0; }
.kpi { display: flex; flex-direction: column; gap: 2px; }
.kpi .v { font-size: 24px; font-weight: 700; }
.kpi .l { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }

.bar { height: 8px; background: rgba(255, 255, 255, .08); border-radius: 4px; overflow: hidden; position: relative; }
.bar > i { display: block; height: 100%; background: var(--good); border-radius: 4px; transition: width .4s; }
.bar.big { height: 14px; }
.bar .mark { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #fff; opacity: .8; }

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 7px 8px; border-bottom: 1px solid rgba(255, 255, 255, .05); text-align: left; vertical-align: middle; }
th { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; font-weight: 600; background: var(--panel2); position: sticky; top: 0; }
th.sortable { cursor: pointer; }
th.sortable:hover { color: var(--text); }
tbody tr:hover { background: rgba(255, 255, 255, .03); }
tr.click { cursor: pointer; }
tr.me td { background: rgba(242, 140, 40, .14); font-weight: 600; }
.table-wrap { overflow-x: auto; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Buttons & inputs ---------- */
.btn { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; cursor: pointer; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: #1b1004; border-color: var(--accent); font-weight: 600; }
.btn.danger { border-color: var(--bad); color: #ffb3b3; }
.btn.sm { padding: 3px 8px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: default; border-color: var(--line); }
select, input[type=text], input[type=number] {
  background: var(--bg2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; font: inherit;
}
select:focus, input:focus { outline: 1px solid var(--accent); }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  flex: 1; min-width: 120px; text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; cursor: pointer;
}
.seg button b { display: block; margin-bottom: 3px; }
.seg button span { font-size: 12px; color: var(--muted); }
.seg button.on { border-color: var(--accent); background: rgba(242, 140, 40, .12); }

/* ---------- Badges ---------- */
.tag { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; background: var(--panel2); border: 1px solid var(--line); white-space: nowrap; }
.tag.pemanen { background: #3a2a0f; border-color: #7a5317; color: #ffc46b; }
.tag.pengutip { background: #10304a; border-color: #1f5a85; color: #8fd0ff; }
.tag.perawatan { background: #18381f; border-color: #2d6b39; color: #8de39f; }
.tag.siap { color: var(--good); }
.tag.cedera { background: #4a1414; border-color: #8a2a2a; color: #ffb1b1; }
.tag.cuti, .tag.mangkir { background: #3d3410; border-color: #7a6a1f; color: #ffe17a; }
.tag.lelah { color: var(--mid); }
.att { display: inline-block; min-width: 24px; text-align: center; font-weight: 700; border-radius: 4px; padding: 1px 4px; }
.a1 { color: #ff7a7a; } .a2 { color: #ffb35c; } .a3 { color: #e8e36a; } .a4 { color: #9ee86a; } .a5 { color: #3fe08a; }
.stars { color: var(--accent2); letter-spacing: 1px; white-space: nowrap; }
.stars .pot { color: rgba(255, 179, 92, .35); }
.form-dots { display: inline-flex; gap: 3px; }
.form-dots i { width: 22px; font-style: normal; font-size: 11px; text-align: center; border-radius: 3px; padding: 1px 0; color: #0e1712; font-weight: 700; }
.mood { white-space: nowrap; }

/* ---------- Inbox ---------- */
.inbox { display: grid; grid-template-columns: 340px 1fr; gap: 14px; min-height: 60vh; }
.mail-list { max-height: 75vh; overflow-y: auto; }
.mail-item { padding: 10px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mail-item:hover { background: var(--panel2); }
.mail-item.sel { background: var(--panel2); border-left: 3px solid var(--accent); }
.mail-item.unread .subj { font-weight: 700; }
.mail-item.unread .subj::before { content: '● '; color: var(--accent); }
.mail-item .from { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.mail-body { white-space: pre-wrap; line-height: 1.55; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.outcome { margin-top: 14px; padding: 10px; border-radius: 6px; background: rgba(79, 209, 122, .1); border: 1px solid rgba(79, 209, 122, .35); }

/* ---------- Blocks ---------- */
.blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.block {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: relative; overflow: hidden;
}
.block::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--rip, var(--good)); }
.block .bid { font-size: 20px; font-weight: 800; }
.block .meta { font-size: 12px; color: var(--muted); }
.block dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 10px 0 0; font-size: 12px; }
.block dt { color: var(--muted); }
.block dd { margin: 0; text-align: right; }
.rip-label { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--rip); color: #0e1712; }

/* ---------- Assign ---------- */
.assign { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.assign-block { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.assign-block:last-child { border-bottom: 0; }
.assign-block .who { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.assign-block .who .tag { cursor: pointer; }
.warnbox { background: rgba(235, 87, 87, .12); border: 1px solid rgba(235, 87, 87, .4); border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.infobox { background: rgba(86, 180, 242, .1); border: 1px solid rgba(86, 180, 242, .35); border-radius: 6px; padding: 8px 10px; font-size: 13px; }

/* ---------- Live day ---------- */
.live { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; }
.clock { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.feed { height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.feed .e { display: grid; grid-template-columns: 50px 1fr; gap: 8px; padding: 6px 8px; border-radius: 6px; background: var(--bg2); }
.feed .e.new { animation: pop .3s ease; }
.feed .e .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.feed .e.cedera { background: rgba(235, 87, 87, .18); }
.feed .e.bagus { background: rgba(79, 209, 122, .14); }
.feed .e.warn { background: rgba(242, 201, 76, .13); }
.feed .e.shout { background: rgba(242, 140, 40, .2); font-weight: 600; }
.feed .e.blok { background: rgba(86, 180, 242, .14); }
.feed .e.flavour { color: var(--muted); font-style: italic; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.shouts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.shouts .btn { text-align: left; }
.shouts .btn small { display: block; color: var(--muted); font-size: 11px; }

/* ---------- Result ---------- */
.score { display: flex; align-items: center; justify-content: center; gap: 28px; padding: 18px; background: linear-gradient(90deg, #0b3d22, #1a2c21, #0b3d22); border-radius: var(--radius); border: 1px solid var(--line); }
.score .big { font-size: 40px; font-weight: 800; white-space: nowrap; }
.score .vs { color: var(--muted); font-size: 13px; text-transform: uppercase; }

/* ---------- Chart ---------- */
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 10px; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* ---------- Modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; width: min(860px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal.narrow { width: min(480px, 100%); }
.modal-head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, #0b3d22, var(--panel)); }
.modal-head .x { margin-left: auto; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); }
.modal-body { padding: 16px 18px; }
.avatar { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: var(--panel2); border: 2px solid var(--accent); }
.attr-row { display: grid; grid-template-columns: 1fr 34px 90px; gap: 8px; align-items: center; padding: 3px 0; }
#toast-root { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 60; }
.toast { background: var(--panel2); border: 1px solid var(--accent); padding: 10px 14px; border-radius: 8px; box-shadow: var(--shadow); max-width: 360px; animation: pop .25s; }

/* ---------- New game ---------- */
.newgame { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse at top, #134a2b, var(--bg) 70%); }
.newgame .card { width: min(900px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); }
.newgame h1 { font-size: 34px; }
.newgame .tagline { color: var(--muted); margin: 4px 0 20px; }
.estates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0 20px; }
.estate { background: var(--bg2); border: 2px solid var(--line); border-radius: 10px; padding: 14px; cursor: pointer; text-align: left; }
.estate.on { border-color: var(--accent); background: rgba(242, 140, 40, .1); }
.estate b { font-size: 15px; }
.estate p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.diff { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; float: right; }
.diff.easy { background: #1f5a33; } .diff.medium { background: #6b5a12; } .diff.hard { background: #6b1f1f; }

/* ---------- Language switch & glossary ---------- */
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.lang-switch button { background: transparent; border: 0; padding: 6px 9px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--muted); }
.lang-switch button.on { background: var(--accent); color: #1b1004; }
.lang-switch button:focus-visible, .btn:focus-visible, .btn-continue:focus-visible, #sidebar button:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.glossary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 14px; margin: 0; }
.glossary dt { font-weight: 700; color: var(--accent2); }
.glossary dd { margin: 0; }
.seg.filters button { min-width: 80px; padding: 6px 10px; flex: 0 1 auto; }
@media (prefers-reduced-motion: reduce) { .feed .e.new, .toast { animation: none; } .bar > i, .tut-spot, .map-worker.live circle { transition: none; } }

/* ---------- Estate map ---------- */
.estate-map svg { width: 100%; height: auto; display: block; border-radius: 8px; border: 1px solid var(--line); }
.estate-map + .feed, .estate-map { margin-bottom: 10px; }
.map-block { cursor: pointer; outline: none; }
.map-block:hover .blk, .map-block:focus-visible .blk { stroke: #ffb35c; stroke-width: 2.5; }
.map-id { fill: #fff; font-weight: 800; font-size: 13px; }
.map-days { fill: #e6efe8; font-size: 11px; }
.map-mill { fill: #e6efe8; font-size: 12px; font-weight: 700; }
.map-icon { font-size: 13px; }
.map-big { font-size: 26px; }
.map-damage text { fill: #ffd27a; font-size: 11px; font-weight: 700; }
.map-worker.live circle { transition: cx .9s ease, cy .9s ease; }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.map-legend i.dot { border-radius: 50%; }
.block.hl, .assign-block.hl { box-shadow: inset 0 0 0 2px var(--accent); }
.live .feed { height: 34vh; }

/* ---------- Career ---------- */
.tag.cap { background: #4a3a0f; border-color: #a07a1f; color: #ffd27a; }
.cabinet { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.trophy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 8px; border-radius: 10px; background: linear-gradient(180deg, rgba(242, 140, 40, .14), transparent); border: 1px solid var(--line); }
.trophy .ico { font-size: 34px; }

/* ---------- Faces, dynamics, requests, advice ---------- */
.face { display: block; border-radius: 50%; background: #2a4a36; }
.face-wrap { display: inline-flex; flex-shrink: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--line); }
.face-wrap.sad { box-shadow: 0 0 0 2px var(--bad); }
.face-avatar { padding: 0; overflow: hidden; }
.face-avatar .face { width: 100%; height: 100%; }
.who-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.circles { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.circle .faces { display: flex; flex-wrap: wrap; gap: 6px; }
.requests { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.req { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.req p { margin: 0 0 4px; }
.lvl { display: inline-flex; gap: 3px; }
.lvl i { width: 10px; height: 10px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.lvl i.on { background: var(--accent); }
.adv { padding: 7px 10px; border-radius: 6px; margin-bottom: 6px; font-size: 13px; background: var(--bg2); border-left: 3px solid var(--info); }
.adv.sev3 { border-left-color: var(--bad); }
.adv.sev2 { border-left-color: var(--mid); }

/* ---------- Relationships ---------- */
.relbar { position: relative; height: 6px; background: rgba(255, 255, 255, .07); border-radius: 3px; min-width: 60px; flex: 1; }
.relbar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.relbar::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--muted); }
.rel-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.rel-row a { white-space: nowrap; }
.pledge { padding: 6px 0; border-bottom: 1px solid var(--line); }
.pledge:last-child { border-bottom: 0; }

/* ---------- Tutorial ---------- */
.tut-spot { position: fixed; z-index: 70; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55), 0 0 0 3px var(--accent); pointer-events: none; transition: all .25s ease; }
.tut-bubble { position: fixed; z-index: 71; background: var(--panel2); border: 1px solid var(--accent); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); }
.tut-bubble h3 { margin: 2px 0 6px; font-size: 16px; color: var(--accent2); }
.tut-bubble p { margin: 0 0 10px; line-height: 1.5; }
.tut-step { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.tut-hint { color: var(--accent2); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .assign, .live, .inbox { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
  #topbar, #main, #sidebar { min-width: 0; }
  .topinfo .btn-continue { flex: 1 1 100%; padding: 10px 12px; white-space: nowrap; }
  .topinfo .chip { flex: 1 1 auto; }
  #topbar { grid-column: 1; flex-wrap: wrap; padding: 8px 12px; gap: 8px; height: auto; }
  .topinfo { margin-left: 0; width: 100%; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
  #sidebar { grid-row: 3; display: flex; overflow-x: auto; padding: 0; border-right: 0; border-top: 1px solid var(--line); }
  #sidebar button { flex-direction: column; gap: 2px; padding: 8px 10px; font-size: 11px; border-left: 0; border-top: 3px solid transparent; width: auto; min-width: 70px; }
  #sidebar button.active { border-top-color: var(--accent); }
  #sidebar .sep { display: none; }
  #sidebar .badge { margin: 0; }
  #main { padding: 14px 16px 40px; }
  .g2, .g3, .g4, .estates { grid-template-columns: 1fr; }
  .glossary { grid-template-columns: 1fr; gap: 2px; }
  .glossary dd { margin-bottom: 8px; }
  .span2, .span3 { grid-column: auto; }
  .hide-sm { display: none; }
}

/* ---------- Illustrations & type ---------- */
h1, h2, .brand b, .clock, .kpi .v, .score .big, .btn-continue, .newgame h1 { font-family: var(--display); }
h1 { letter-spacing: .3px; }
h2 { letter-spacing: 1px; }
.kpi .v, .score .big, .clock { font-variant-numeric: tabular-nums; }
.art { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center bottom; user-select: none; }
.crest.has-art { background: none; box-shadow: none; border-radius: 0; flex: none; }
.crest.has-art .crest-art { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45)); }
.crest.has-art.big { width: 72px; height: 72px; }
.hero { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.hero > .art { position: absolute; inset: 0; }
.home-hero > .art { object-position: center 60% !important; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 18, 13, .88) 0%, rgba(10, 18, 13, .6) 38%, rgba(10, 18, 13, .05) 75%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; }
.hero h1, .hero p, .hero .tagline { text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.home-hero { margin-bottom: 16px; }
.home-hero .hero-in { min-height: 190px; padding: 18px 20px; margin: 0; }
.home-hero .hero-in p { color: #d6e2d9; }
.ng-hero { margin: -26px -26px 18px; border-radius: 14px 14px 0 0; border: 0; border-bottom: 2px solid var(--accent); }
.ng-hero .hero-in { min-height: 250px; padding: 22px 26px; align-items: flex-end; }
.ng-hero .hero-in > .row { align-self: flex-end; }
.ng-hero h1 { font-size: 46px; line-height: 1; }
.ng-hero .tagline { color: #e9dcc2; margin: 6px 0 0; max-width: 460px; }
.ng-hero .lang-switch { align-self: flex-start; }
.mail-art { height: 150px; margin: 10px 0 4px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.score.has-art { position: relative; overflow: hidden; }
.score.has-art > .art { position: absolute; inset: 0; opacity: .7; z-index: 0; }
.score.has-art::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 40, 24, .9), rgba(14, 23, 18, .7), rgba(11, 40, 24, .9)); z-index: 1; }
.score.has-art > :not(.art) { position: relative; z-index: 2; }
@media (max-width: 760px) {
  .ng-hero .hero-in { min-height: 200px; padding: 16px; }
  .ng-hero h1 { font-size: 34px; }
  .home-hero .hero-in { min-height: 120px; padding: 14px; }
  .mail-art { height: 110px; }
  .score { gap: 12px; padding: 14px 10px; }
  .score .big { font-size: 28px; }
}

/* ---------- Live harvest stage ---------- */
.live { grid-template-areas: "main side" "map side"; }
.live-main { grid-area: main; }
.live-side { grid-area: side; }
.live-map { grid-area: map; }
.stage { position: relative; aspect-ratio: 3.1; margin: -6px -6px 12px; border-radius: 10px; overflow: hidden; background: #1b2a20; border: 1px solid var(--line); }
.stage-bg, .stage-fg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage-bg .art { object-position: center center !important; }
.stage > .art { height: 100%; }
.stage.raining::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(105deg, transparent 0 14px, rgba(200, 220, 255, .22) 14px 15px); background-size: 200% 200%; animation: rainfall .5s linear infinite; }
@keyframes rainfall { from { background-position: 0 0; } to { background-position: -30px 60px; } }
.stage-fg .hv { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 1.3s ease-in-out infinite alternate; }
.stage-fg .kt { transform-box: fill-box; transform-origin: 50% 100%; animation: stoop 1.6s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-2.5deg); } to { transform: rotate(3deg); } }
@keyframes stoop { from { transform: translateX(-4px) scaleY(1); } to { transform: translateX(6px) scaleY(.94); } }
.stage-fg .fall { animation: fall 1.1s cubic-bezier(.5, 0, 1, .6) both; }
@keyframes fall { from { transform: translateY(0); opacity: 1; } 85% { opacity: 1; } to { transform: translateY(185px); opacity: .9; } }
.stage-fg .truck-in { animation: truckin 1.2s ease-out both; }
@keyframes truckin { from { transform: translateX(160px); } to { transform: none; } }
.stage-fg .tag { animation: pop .3s ease; }
.stage-fg .tg-n { fill: #fff; font: 700 21px var(--display); }
.stage-fg .tg-k { fill: #ffd38a; font: 600 17px "Source Sans 3", sans-serif; }
.stage-tabs { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.stage-tabs button, .stage-tabs span { background: rgba(10, 18, 13, .78); border: 1px solid rgba(255, 255, 255, .18); color: #fff; border-radius: 14px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.stage-tabs button.on { background: var(--accent); color: #1b1004; border-color: var(--accent); font-weight: 700; }
.stage { margin-bottom: 0; border-radius: 10px 10px 0 0; }
.stage-cap { display: flex; gap: 8px; align-items: flex-start; margin: 0 -6px 12px; min-height: 38px; background: var(--bg2); border: 1px solid var(--line); border-top: 0; border-left: 3px solid var(--accent); border-radius: 0 0 8px 8px; padding: 8px 12px; font-size: 14px; line-height: 1.4; }
.stage-cap .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.stage-cap.cedera { border-left-color: var(--bad); }
.stage-cap.bagus { border-left-color: var(--good); }
.stage-cap.new { animation: pop .35s ease; }
.feed .e { grid-template-columns: 44px 22px 1fr; }
.feed .ei { text-align: center; }
.shouts .btn { position: relative; padding-left: 36px; }
.shouts .sh-ico { position: absolute; left: 10px; top: 8px; font-size: 16px; }
.top-crew .tc { display: grid; grid-template-columns: 18px 36px 1fr auto; gap: 8px; align-items: center; padding: 5px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.top-crew .tc:last-child { border-bottom: 0; }
.top-crew .rank { color: var(--accent2); font: 700 16px var(--display); }
.top-crew .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-crew .nm small { display: block; color: var(--muted); }
@media (max-width: 1100px) { .live { grid-template-areas: "main" "side" "map"; } }
@media (prefers-reduced-motion: reduce) { .stage-fg .hv, .stage-fg .kt, .stage-fg .fall, .stage-fg .truck-in, .stage.raining::after { animation: none; } }
@media (max-width: 760px) {
  .stage { aspect-ratio: 2.2; }
  .stage-cap { font-size: 13px; }
  .live .feed { height: auto; max-height: 50vh; }
}

/* ---------- 3D estate ---------- */
.view-switch { display: inline-flex; gap: 0; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.view-switch button { background: var(--bg2); border: 0; padding: 5px 14px; cursor: pointer; font-weight: 600; }
.view-switch button.on { background: var(--accent); color: #1b1004; }
.stage.world { aspect-ratio: 16 / 9; background: #a9d3e8; }
.world-slot, .w3, .w3-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.w3-canvas { touch-action: pan-y; cursor: grab; }
.w3-canvas:active { cursor: grabbing; }
.w3-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.w3-tag { position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border-radius: 16px; background: rgba(10, 18, 13, .85); border: 1px solid var(--accent2); font-size: 12px; white-space: nowrap; will-change: transform; }
.w3-tag b { display: block; font: 700 13px var(--display); }
.w3-tag small { display: block; color: #ffd38a; }
.w3-tag .face-wrap { width: 28px; height: 28px; }
.w3-tag.hurt { border-color: var(--bad); background: rgba(90, 29, 22, .9); }
.w3-ctrl { position: absolute; right: 8px; bottom: 8px; display: flex; gap: 4px; }
.w3-ctrl button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 18, 13, .78); color: #fff; font-size: 16px; cursor: pointer; }
.w3-hint { position: absolute; left: 8px; bottom: 10px; font-size: 11px; color: #fff; background: rgba(10, 18, 13, .6); padding: 2px 8px; border-radius: 10px; pointer-events: none; }
.stage.world .stage-tabs { left: 8px; justify-content: flex-start; right: auto; max-width: calc(100% - 16px); }
@media (max-width: 760px) { .stage.world { aspect-ratio: 4 / 3.4; } .w3-hint { display: none; } }

/* ---------- Visual squad, inbox, result, muster ---------- */
.nav-more { display: none !important; }
.squad-cards { display: none; }
.wcard { display: flex; gap: 10px; align-items: center; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; min-width: 0; }
.wcard .face-wrap { width: 52px; height: 52px; flex: none; }
.wc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.wc-main > b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wc-row .bar { flex: 1; min-width: 60px; }
.mail-item { display: flex; gap: 10px; align-items: center; }
.mail-item .mtext { flex: 1; min-width: 0; }
.mthumb { flex: none; width: 58px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--bg2); display: grid; place-items: center; border: 1px solid var(--line); }
.mthumb .art { width: 100%; height: 100%; }
.mthumb .face { width: 38px; height: 38px; }
.mthumb .mico { font-size: 20px; }
.potm { position: relative; margin-top: 14px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--accent); cursor: pointer; min-height: 110px; }
.potm > .art { position: absolute; inset: 0; }
.potm::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 13, .92) 0%, rgba(10, 18, 13, .7) 50%, rgba(10, 18, 13, .2)); }
.potm-in { position: relative; z-index: 1; display: flex; gap: 16px; align-items: center; padding: 14px 18px; }
.potm-in .face-wrap { width: 76px; height: 76px; flex: none; border-radius: 50%; box-shadow: 0 0 0 3px var(--accent2); }
.potm-in h2 { margin: 2px 0; color: #fff; font-size: 24px; text-transform: none; letter-spacing: .3px; }
.potm-in .vs { color: var(--accent2); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }
.potm-rating { margin-left: auto; min-width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; font: 700 30px var(--display); color: #0e1712; }
.lineup { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; }
.lineup > .art { position: absolute; inset: 0; }
.lineup::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 18, 13, .25), rgba(10, 18, 13, .82) 55%); pointer-events: none; }
.lineup-in { position: relative; z-index: 1; padding: 16px; }
.bubble { display: inline-flex; gap: 10px; align-items: center; max-width: 640px; background: #f4ead5; color: #2b1d12; border-radius: 14px; padding: 8px 14px 8px 8px; font-weight: 600; box-shadow: var(--shadow); margin-bottom: 70px; position: relative; }
.bubble::after { content: ''; position: absolute; left: 22px; bottom: -9px; border: 9px solid transparent; border-top-color: #f4ead5; border-bottom: 0; }
.bubble .mandor { width: 36px; height: 36px; border-radius: 50%; background: #f2c94c; display: grid; place-items: center; font-size: 20px; flex: none; }
.lu-groups { display: flex; gap: 10px; flex-wrap: wrap; }
.lu-group { background: rgba(10, 18, 13, .72); border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px; padding: 6px 8px 8px; }
.lu-head { font: 700 15px var(--display); color: var(--accent2); display: flex; gap: 6px; align-items: baseline; margin-bottom: 4px; }
.lu-head small { color: var(--muted); font: 12px "Source Sans 3", sans-serif; }
.lu-faces { display: flex; gap: 4px; flex-wrap: wrap; }
.lu-w { display: flex; flex-direction: column; align-items: center; width: 50px; background: none; border: 0; cursor: pointer; padding: 0; }
.lu-w .face-wrap { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px #ffb35c; }
.lu-w.kutip .face-wrap { box-shadow: 0 0 0 2px #8fd0ff; }
.lu-w.rawat .face-wrap { box-shadow: 0 0 0 2px #8de39f; }
.lu-w .nm { font-size: 11px; max-width: 50px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e6efe8; }
.nav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.nav-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13px; }
.nav-grid button span { font-size: 24px; }
.nav-grid button.on { border-color: var(--accent); background: rgba(242, 140, 40, .12); }
@media (max-width: 760px) {
  #sidebar .nav-extra { display: none; }
  #sidebar .nav-more { display: flex !important; }
  #sidebar { overflow-x: visible; justify-content: space-around; }
  #sidebar button { min-width: 0; flex: 1 1 0; padding: 8px 2px; }
  .squad-table { display: none; }
  .squad-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .potm-in { gap: 12px; padding: 12px; }
  .potm-in .face-wrap { width: 60px; height: 60px; }
  .potm-in h2 { font-size: 19px; }
  .potm-rating { min-width: 50px; height: 50px; font-size: 24px; }
  .bubble { margin-bottom: 40px; font-size: 13px; }
}
.show-sm { display: none; }
@media (max-width: 760px) { .show-sm { display: inline; } }

/* ---------- Live views, the mandor in the field ---------- */
.view-switch { flex-wrap: wrap; }
.view-switch button { display: inline-flex; gap: 4px; align-items: center; }
.me-pill { display: inline-block; margin-left: 12px; vertical-align: middle; font: 600 13px "Source Sans 3", sans-serif; letter-spacing: 0; background: rgba(242, 201, 76, .16); color: #f2c94c; border: 1px solid rgba(242, 201, 76, .4); border-radius: 12px; padding: 2px 10px; }
.tag.me { background: rgba(242, 201, 76, .2); color: #f2c94c; }
.lb-row { padding: 6px 8px; margin: 0 -8px 6px; border-radius: 8px; }
.lb-row.here { background: rgba(242, 201, 76, .08); box-shadow: inset 3px 0 0 #f2c94c; }
.lb-row .row { gap: 8px; flex-wrap: nowrap; }
.lb-row .row > span:first-of-type { margin-left: auto; }
.commentary { min-height: 300px; display: flex; flex-direction: column; gap: 6px; padding: 14px; margin: 0 -6px 12px; background: linear-gradient(180deg, #0d1a12, #13241a); border: 1px solid var(--line); border-radius: 10px; }
.commentary .cl { display: grid; grid-template-columns: 48px 26px 1fr; gap: 8px; align-items: baseline; color: var(--muted); font-size: 14px; }
.commentary .cl.now { color: #fff; font: 600 22px/1.3 var(--display); letter-spacing: .2px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.commentary .cl.now .t { font-size: 15px; color: var(--accent2); }
.commentary .cl.new { animation: pop .35s ease; }
.commentary .cl.cedera.now { color: #ffb4b4; }
.commentary .cl.spot.now { color: #ffe08a; }
.map-live .estate-map { margin: 0 -6px; }
.map-me circle { filter: drop-shadow(0 0 4px rgba(242, 201, 76, .8)); }
.map-alert { animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .55; } to { opacity: 1; } }
.follow-pick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; margin: 0 -6px; }
.follow-pick button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 5px 4px; cursor: pointer; font-size: 11px; }
.follow-pick button.on { border-color: var(--accent); background: rgba(242, 140, 40, .14); }
.follow-pick .face-wrap { width: 30px; height: 30px; }
.me-face { display: grid !important; place-items: center; background: #f2c94c; font-size: 16px; }
.w3-tag.me { border-color: #f2c94c; }
.w3-tag .me-face { width: 28px; height: 28px; border-radius: 50%; }
.spot-card { display: flex; gap: 12px; align-items: flex-start; margin: 0 -6px 12px; padding: 12px; border-radius: 10px; background: linear-gradient(90deg, rgba(242, 201, 76, .16), rgba(242, 201, 76, .04)); border: 1px solid rgba(242, 201, 76, .55); animation: pop .3s ease; }
.spot-card .face-wrap { width: 52px; height: 52px; flex: none; box-shadow: 0 0 0 2px #f2c94c; }
.spot-card .vs { color: #f2c94c; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.spot-card b { display: block; font: 700 18px var(--display); margin: 2px 0; }
.sc-actions { margin-top: 8px; gap: 6px; }
@media (max-width: 760px) {
  .view-switch button { padding: 5px 8px; font-size: 12px; }
  .commentary { min-height: 240px; }
  .commentary .cl.now { font-size: 18px; }
  .me-pill { display: block; margin: 4px 0 0; width: max-content; }
}

/* ---------- League podium, faces in lists ---------- */
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin-bottom: 14px; }
.pd { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 150px; text-align: center; }
.pd .face-wrap { box-shadow: 0 0 0 3px #c0c7cf; border-radius: 50%; }
.pd.r1 .face-wrap { box-shadow: 0 0 0 3px #f2c94c; }
.pd.r3 .face-wrap { box-shadow: 0 0 0 3px #c58a4a; }
.pd b { font: 700 15px var(--display); line-height: 1.1; margin-top: 4px; }
.pd small { color: var(--muted); }
.pd-score { font: 700 22px var(--display); color: var(--accent2); }
.pd-step { width: 100%; display: flex; justify-content: center; gap: 6px; align-items: center; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #2a4433, #1a2c21); border: 1px solid var(--line); border-bottom: 0; font: 700 18px var(--display); }
.pd.r1 .pd-step { height: 74px; } .pd.r2 .pd-step { height: 52px; } .pd.r3 .pd-step { height: 38px; }
.pd.me b { color: var(--accent2); }
.score-bar { height: 4px; background: rgba(255, 255, 255, .08); border-radius: 2px; margin-top: 4px; max-width: 220px; }
.score-bar i { display: block; height: 100%; border-radius: 2px; background: var(--accent); }
.rating-pill { min-width: 46px; text-align: center; border-radius: 8px; padding: 2px 6px; color: #0e1712; }
.fchip { display: inline-flex; align-items: center; gap: 4px; padding-left: 2px; }
.fchip .face-wrap { width: 20px; height: 20px; }
@media (max-width: 760px) { .pd { width: 31%; } .pd b { font-size: 13px; } .pd-score { font-size: 18px; } }

/* ---------- Crew board: everyone in the field ---------- */
.crew-board { display: flex; flex-direction: column; gap: 8px; margin: 10px -6px 0; }
.cb-group h3 { margin: 0 0 4px; font: 700 13px var(--display); letter-spacing: .6px; text-transform: uppercase; color: var(--accent2); }
.cb-group h3 small { color: var(--muted); font-weight: 400; }
.cb-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.cb-chip { display: flex; gap: 6px; align-items: center; min-width: 150px; max-width: 210px; text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 4px 8px 4px 4px; cursor: pointer; }
.cb-chip.on { border-color: var(--accent); background: rgba(242, 140, 40, .14); }
.cb-chip .face-wrap { width: 30px; height: 30px; flex: none; display: grid; place-items: center; font-size: 16px; }
.cb-chip .nm { min-width: 0; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-chip .nm small { display: block; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-chip .tag { font-size: 10px; padding: 0 4px; }
.tag.bhl { background: rgba(242, 201, 76, .2); color: #f2c94c; }
.route { display: flex; gap: 8px; flex-wrap: wrap; }
.route-slot { display: flex; flex-direction: column; gap: 4px; min-width: 130px; }
.route-slot span { font: 700 14px var(--display); color: var(--accent2); }
.fc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fc-day { display: flex; flex-direction: column; align-items: center; gap: 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; text-align: center; }
.fc-day small { color: var(--muted); font-size: 11px; }
.fc-ico { font-size: 22px; }
.fc-day b { font-size: 12px; }

/* ---------- Drag-and-drop line-up ---------- */
.fchip[draggable="true"] { cursor: grab; user-select: none; }
.fchip.dragging { opacity: .5; }
.fchip.picked { outline: 2px solid var(--accent); outline-offset: 1px; }
.drop.over { box-shadow: inset 0 0 0 2px var(--accent); background: rgba(242, 140, 40, .08); }
.assign-block.armed { cursor: copy; box-shadow: inset 0 0 0 1px rgba(242, 140, 40, .5); }
.bench .who { display: flex; flex-wrap: wrap; gap: 4px; }
.pick-bar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 8px; border-radius: 8px; background: rgba(242, 140, 40, .1); border: 1px solid var(--accent); }
.pick-bar span { flex: 1 1 200px; font-size: 13px; }

/* ---------- Division (asisten) ---------- */
.afd-card .face-wrap { width: 56px; height: 56px; flex: none; }
.afd-h { margin: 10px 0 4px; font: 700 12px var(--display); letter-spacing: .6px; text-transform: uppercase; color: var(--accent2); }
.stepper { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.stepper b { min-width: 14px; text-align: center; }
.btn.succ { display: flex; gap: 10px; align-items: center; }
.btn.succ small { display: block; color: var(--muted); font-weight: 400; }
.btn.succ .face-wrap { width: 40px; height: 40px; flex: none; }
.btn.primary.succ small { color: #3a2408; }

/* harvest rotation calendar */
.rot-week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rot-day { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.rot-day.over, .rot-none.over { outline: 2px dashed var(--accent); }
.rot-day.armed, .rot-none.armed { cursor: pointer; box-shadow: inset 0 0 0 1px var(--accent); }
.rot-head { display: flex; flex-direction: column; }
.rot-chips { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rot-none .rot-chips { flex-direction: row; flex-wrap: wrap; }
.rot-chip { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 8px; border-left: 4px solid var(--muted); background: rgba(255,255,255,.04); cursor: grab; user-select: none; }
.rot-chip b { font-size: 15px; }
.rot-chip small { opacity: .8; }
.rot-chip.good { border-left-color: var(--good); }
.rot-chip.mid { border-left-color: var(--mid); }
.rot-chip.bad { border-left-color: var(--bad); }
.rot-chip.picked { outline: 2px solid var(--accent); }
.rot-load { display: flex; flex-direction: column; gap: 3px; }
@media (max-width: 760px) {
  .rot-week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rot-day { min-height: 0; }
}
@media (max-width: 420px) {
  .rot-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* scenarios */
.scen-goals { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 3px; }
.scen-card { border-left: 4px solid var(--accent); }
.scen-stars { font-size: 34px; letter-spacing: 4px; text-align: center; }
.spark { width: 100%; height: 40px; margin-top: 6px; }
.spark polyline { fill: none; stroke: var(--accent2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark line.warn { stroke: var(--bad); stroke-dasharray: 4 3; stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .7; }
.camp-item { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) { .g4.kpi2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
