@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --bg: #F6EFE6; --paper: #FFFDF9; --ink: #2B1D14; --muted: #7A6A5E; --line: #EADFD2;
  --coffee: #6F4E37; --crema: #D9A55B; --accent: #C8553D; --green: #3E8E41; --blue: #2E86AB; --red: #C0392B;
  --radius: 16px; --shadow: 0 1px 2px #2b1d140d, 0 8px 24px #2b1d1412;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, system-ui, sans-serif; }
h1, h2, h3, .serif { font-family: Fraunces, Georgia, serif; letter-spacing: -.01em; }
h1 { font-size: 30px; margin: 0 0 4px; } h2 { font-size: 22px; margin: 0 0 12px; } h3 { font-size: 17px; margin: 0 0 8px; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.pos { color: var(--green); } .neg { color: var(--red); }

/* ------------ layout */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #F3E9DE; padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.brand .mark { width: 38px; height: 38px; border-radius: 12px; background: var(--crema); display: grid; place-items: center; }
.brand b { font-family: Fraunces, serif; font-size: 21px; } .brand small { display: block; color: #CDB9A6; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.nav button { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #E9DCCD; padding: 9px 12px; border-radius: 10px; text-align: left; font-weight: 500; }
.nav button:hover { background: #ffffff12; } .nav button.on { background: var(--crema); color: var(--ink); }
.nav .ico { width: 20px; text-align: center; } .nav .badge { margin-left: auto; background: var(--accent); color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.side .foot { margin-top: auto; font-size: 12px; color: #BCA894; padding: 8px; }
.side .foot button { background: none; border: 1px solid #ffffff30; color: #E9DCCD; border-radius: 8px; padding: 4px 10px; margin-top: 6px; }
main { padding: 22px 30px 60px; max-width: 1240px; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.chip { background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.chip.week { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; }
.spacer { flex: 1; }

/* ------------ cards */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .g6 { grid-template-columns: repeat(3, 1fr); } .g2, .g3 { grid-template-columns: 1fr; } }
.kpi { padding: 14px 16px; } .kpi .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.kpi .val { font-family: Fraunces, serif; font-size: 26px; font-weight: 700; margin-top: 2px; } .kpi .delta { font-size: 12px; font-weight: 600; }
.lesson { background: linear-gradient(135deg, #3B2A20, #6F4E37); color: #FBEFE2; border: 0; }
.lesson .tag { display: inline-block; background: var(--crema); color: var(--ink); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; padding: 3px 10px; }
.lesson h3 { color: #fff; margin-top: 10px; } .lesson p { margin: 6px 0 0; color: #F1E2D2; }
.lesson .unlock { margin-top: 12px; background: #ffffff18; border-radius: 10px; padding: 8px 12px; font-size: 14px; }

/* ------------ buttons and forms */
.btn { background: var(--ink); color: #fff; border: 0; border-radius: 12px; padding: 11px 18px; font-weight: 600; }
.btn:hover { background: #432F22; } .btn.alt { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.btn.accent { background: var(--accent); } .btn.big { padding: 14px 26px; font-size: 16px; } .btn:disabled { opacity: .45; cursor: default; }
label.f { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 5px; }
.inp { width: 100%; border: 1px solid #DCCDBD; background: #fff; border-radius: 10px; padding: 10px 12px; }
.inp:focus { outline: 2px solid var(--crema); border-color: var(--crema); }
textarea.inp { min-height: 90px; resize: vertical; }
.err { color: var(--red); font-weight: 600; margin-top: 10px; min-height: 1em; }
.ok { color: var(--green); font-weight: 600; }

/* ------------ login */
.login { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 100vh; }
.login .art { background: #FCE8D2; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.login .art .city { position: absolute; inset: 0; }
.login .art .title { position: relative; padding: 40px; background: linear-gradient(0deg, #F6EFE6 30%, #F6EFE600); }
.login .art h1 { font-size: 52px; line-height: 1; }
.login .panel { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login .box { width: 100%; max-width: 380px; }
.tabs { display: flex; gap: 6px; background: #EFE4D7; padding: 4px; border-radius: 12px; margin-bottom: 14px; }
.tabs button { flex: 1; border: 0; background: none; padding: 8px; border-radius: 9px; font-weight: 600; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
@media (max-width: 900px) { .login { grid-template-columns: 1fr; } .login .art { min-height: 300px; } .app { grid-template-columns: 1fr; } .side { position: static; height: auto; } }

/* ------------ city */
.city-wrap { background: #FCE8D2; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; }
.city-svg { display: block; width: 100%; height: auto; }
.plot { cursor: pointer; transition: transform .2s; } .plot:hover { filter: brightness(1.06); }
.plot.mine .sign rect { stroke: var(--ink); stroke-width: 3; }
.smoke circle { fill: #fff; opacity: .7; animation: smoke 4s ease-out infinite; transform-box: fill-box; }
.smoke circle:nth-child(2) { animation-delay: 1.3s; } .smoke circle:nth-child(3) { animation-delay: 2.6s; }
@keyframes smoke { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 30% { opacity: .75; } 100% { opacity: 0; transform: translateY(-22px) scale(1.4); } }
.car.c1 { animation: car1 18s linear infinite; } .car.c2 { animation: car2 23s linear infinite; }
@keyframes car1 { from { transform: translate(-240px, -8px); } to { transform: translate(400px, 312px); } }
@keyframes car2 { from { transform: translate(304px, 360px); } to { transform: translate(-336px, 40px); } }
.clouds { animation: drift 60s linear infinite alternate; } @keyframes drift { to { transform: translateX(80px); } }
.ship { animation: bob 3s ease-in-out infinite alternate; } @keyframes bob { to { transform: translateY(4px); } }
.wifi path { animation: blink 2s infinite; } @keyframes blink { 50% { opacity: .3; } }
.legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ------------ tables */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 2px solid var(--line); }
table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td.n, table.t th.n { text-align: right; font-variant-numeric: tabular-nums; }
table.t tr.sum td { font-weight: 700; border-top: 2px solid var(--ink); }
table.t tr.sub td { color: var(--muted); font-size: 13px; }
.scroll { overflow-x: auto; }

/* ------------ decisions */
.dec-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .dec-grid { grid-template-columns: 1fr; } }
.sec { margin-bottom: 14px; } .sec h3 { display: flex; align-items: center; gap: 8px; }
.sec .who { margin-left: auto; font-family: Inter; font-size: 11px; font-weight: 600; color: var(--muted); background: #F1E7DB; border-radius: 99px; padding: 2px 9px; }
.sec.locked { opacity: .55; position: relative; } .sec.locked .lockmsg { font-size: 13px; color: var(--muted); }
.field { display: grid; grid-template-columns: 200px 1fr 110px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.field:first-of-type { border-top: 0; }
.field .lab { font-weight: 600; font-size: 14px; } .field .lab small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.field .out { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--coffee); }
.seg { display: inline-flex; background: #EFE4D7; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.toggle { width: 46px; height: 26px; background: #D8CABC; border-radius: 99px; position: relative; border: 0; transition: .2s; }
.toggle::after { content: ""; position: absolute; width: 20px; height: 20px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: .2s; }
.toggle.on { background: var(--green); } .toggle.on::after { left: 23px; }
.stepper { display: inline-flex; align-items: center; gap: 8px; } .stepper button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.estimate { position: sticky; top: 16px; } .estimate .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.estimate .row b { font-variant-numeric: tabular-nums; } .estimate .total { border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.savebar { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }

/* ------------ setup */
.wizard { max-width: 760px; margin: 30px auto; }
.steps { display: flex; gap: 8px; margin-bottom: 18px; } .steps span { flex: 1; height: 6px; border-radius: 99px; background: #E5D8C9; } .steps span.on { background: var(--accent); }
.choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.choice { border: 2px solid var(--line); background: #fff; border-radius: 14px; padding: 12px; text-align: center; cursor: pointer; }
.choice.on { border-color: var(--ink); box-shadow: var(--shadow); }
.swatch { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.swatch.on { box-shadow: 0 0 0 3px var(--ink); }
.segcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; } .segcards .choice { text-align: left; padding: 16px; }
.preview-badge { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; color: #fff; }
.certificate { border: 3px double var(--coffee); background: #FFFBF3; padding: 30px; text-align: center; border-radius: 6px; }

/* ------------ newspaper */
.paper { background: #FBF6EC; border: 1px solid #E2D6C2; padding: 28px 34px; box-shadow: var(--shadow); font-family: Georgia, serif; color: #1E1A16; }
.paper .mast { text-align: center; border-bottom: 3px double #1E1A16; padding-bottom: 8px; }
.paper .mast h1 { font-family: Fraunces, serif; font-weight: 900; font-size: 54px; letter-spacing: -.02em; margin: 0; }
.paper .meta { display: flex; justify-content: space-between; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; border-bottom: 1px solid #1E1A16; padding: 5px 0; margin-bottom: 16px; }
.paper .head { font-family: Fraunces, serif; font-size: 38px; font-weight: 900; line-height: 1.05; margin: 6px 0; }
.paper .sub { font-style: italic; font-size: 18px; color: #4a4036; margin-bottom: 16px; }
.paper .cols { columns: 3 220px; column-gap: 26px; column-rule: 1px solid #CFC2AE; }
.paper .art { break-inside: avoid; margin-bottom: 14px; } .paper .art h4 { font-family: Fraunces, serif; font-size: 18px; margin: 0 0 4px; }
.paper .art p { margin: 0; text-align: justify; font-size: 15px; line-height: 1.45; }
.paper table { width: 100%; font-size: 13px; border-collapse: collapse; } .paper td { padding: 3px 0; border-bottom: 1px dotted #b9ab95; }
.paper-list { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ------------ missions */
.mission { border-left: 6px solid var(--accent); } .mission.done { border-left-color: var(--green); }
.grade { font-family: Fraunces, serif; font-size: 28px; font-weight: 700; }

/* ------------ charts */
.chart text { font: 11px Inter, sans-serif; fill: var(--muted); }
.chart .grid line { stroke: #EADFD2; } .chart .bar:hover { opacity: .8; }
.pie-legend div { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 3px 0; } .pie-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.toast { position: fixed; bottom: 22px; right: 22px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); z-index: 99; animation: pop .25s; }
@keyframes pop { from { transform: translateY(10px); opacity: 0; } }
.empty { text-align: center; padding: 40px; color: var(--muted); }
.timeline { display: grid; grid-template-columns: repeat(17, 1fr); gap: 4px; margin: 10px 0 4px; }
.timeline span { height: 8px; border-radius: 4px; background: #E5D8C9; } .timeline span.done { background: var(--coffee); } .timeline span.now { background: var(--accent); }
.timeline span.m { outline: 2px solid var(--crema); outline-offset: 1px; }
.login .art .city svg { height: 100%; }

/* ------------ city v2 */
.cityview { position: relative; width: 100%; height: 100%; }
.city-wrap .cityview { height: min(64vh, 640px); }
.city-wrap .city-svg { width: 100%; height: 100%; cursor: grab; touch-action: none; }
.city-wrap .city-svg:active { cursor: grabbing; }
.login .art .cityview, .login .art .city-svg { height: 100%; }
.zoom { position: absolute; right: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; }
.zoom button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fffdf9ee; font-size: 18px; font-weight: 700; box-shadow: var(--shadow); }
.zoom button:hover { background: #fff; }
.pin { cursor: pointer; } .pin .pin-in { transition: transform .15s; } .pin:hover .pin-in { transform: translateY(-4px); }
.plot:hover { filter: brightness(1.05) saturate(1.1); }
.blinker { animation: blink 1.4s infinite; }
.wave { animation: wave 3s ease-in-out infinite alternate; } @keyframes wave { to { transform: translateX(10px); opacity: .3; } }
.fountain { animation: fountain 1.2s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: bottom; } @keyframes fountain { to { transform: scaleY(1.25); } }
.ship { animation: bob 3s ease-in-out infinite alternate; }
.smoke circle { fill: #F4EEE8; opacity: .6; }
.city-hint { position: absolute; left: 14px; bottom: 12px; background: #fffdf9e6; border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--muted); }

/* ------------ value chain */
.vchain { display: grid; grid-template-columns: 1fr auto 1.1fr auto 1.6fr auto 1fr; gap: 8px; align-items: center; margin-top: 8px; }
.vstep { background: #FBF6EE; border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.vstep small { color: var(--muted); font-size: 12px; line-height: 1.35; } .vic { font-size: 28px; }
.vstep.me { background: var(--ink); color: #fff; border-color: var(--ink); } .vstep.me small { color: #D9C6B2; }
.vstep.chans { text-align: left; gap: 6px; } .varrow { font-size: 22px; color: var(--crema); font-weight: 700; }
.vch { display: flex; gap: 8px; align-items: center; padding: 5px 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.vch span { font-size: 18px; } .vch b { font-size: 13px; display: block; } .vch small { font-size: 11px; }
.vch.used { border-color: var(--green); background: #EEF7EC; } .vch.locked { opacity: .5; }
@media (max-width: 1000px) { .vchain { grid-template-columns: 1fr; } .varrow { transform: rotate(90deg); text-align: center; } }

/* ------------ tutorial and stage thumbnails */
.tuto { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px; background: radial-gradient(circle at 20% 10%, #FCE8D2, #F6EFE6 60%); }
.tuto-card { background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); padding: 30px 34px; max-width: 980px; width: 100%; }
.tuto-card h1 { margin: 4px 0 10px; } .tuto-card p.big { font-size: 17px; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; align-items: end; }
.thumb { text-align: center; } .thumb svg { width: 100%; height: 130px; display: block; } .thumb b { display: block; font-size: 13px; } .thumb small { color: var(--muted); font-size: 11.5px; }
.keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; } .keys span { background: #FBF6EE; border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 13px; }
.rhythm { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 8px; align-items: stretch; margin: 12px 0; }
.rhythm div { background: #FBF6EE; border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.rhythm span { font-size: 28px; } .rhythm small { color: var(--muted); font-size: 12.5px; } .rhythm i { align-self: center; font-style: normal; color: var(--crema); font-size: 22px; font-weight: 700; }
.grade-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin: 12px 0; } .grade-grid div { background: #FBF6EE; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.grade-grid b { font-family: Fraunces, serif; font-size: 26px; display: block; } .grade-grid small { color: var(--muted); }
@media (max-width: 900px) { .thumbs { grid-template-columns: repeat(3, 1fr); } .rhythm, .grade-grid { grid-template-columns: 1fr; } .rhythm i { transform: rotate(90deg); } }

/* ------------ my company stands out */
.has-mine .plot.other { filter: saturate(.35) brightness(1.06); opacity: .9; transition: filter .3s; }
.has-mine .plot.other:hover { filter: none; opacity: 1; }
.has-mine .pin-other { opacity: .8; } .has-mine .pin-other:hover { opacity: 1; }
.halo { animation: halo 1.8s ease-in-out infinite; } @keyframes halo { 50% { opacity: .12; } }
.you { animation: you 1.2s ease-in-out infinite alternate; } @keyframes you { to { transform: translateY(-7px); } }
.zoom button[data-z="me"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.far { filter: url(#farf); opacity: .72; pointer-events: none; }

/* ------------ student journey v2: info tiles, This week, roles, progressive menu */
.info { background: #EAF3F8; border: 1px solid #BFD9E8; border-left: 6px solid var(--blue); border-radius: var(--radius); margin: 0 0 16px; }
.info summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 18px; }
.info summary::-webkit-details-marker { display: none; }
.info .itag { background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; padding: 3px 10px; white-space: nowrap; }
.info summary b { color: #1D4E69; font-size: 16px; }
.info .itog::after { content: "Hide ▴"; font-size: 12px; color: var(--blue); font-weight: 600; }
.info:not([open]) .itog::after { content: "Show ▾"; }
.info .ibody { padding: 0 18px 16px; color: #24485C; }
.igrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.igrid > div { background: #fff; border-radius: 12px; padding: 10px 12px; border: 1px solid #D6E7F1; }
.igrid b { display: block; color: #1D4E69; } .igrid small { color: #4A6B7D; font-size: 13px; line-height: 1.4; display: block; margin-top: 2px; }
.info .rhythm { margin: 0; }
.g4 { grid-template-columns: repeat(4, 1fr); } @media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, 1fr); } }
.newtag { display: inline-block; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 99px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; font-family: Inter, system-ui, sans-serif; }
.results.fresh { border: 2px solid var(--accent); box-shadow: 0 0 0 4px #C8553D1a, var(--shadow); }
.sec.fresh { border-color: var(--accent); box-shadow: 0 0 0 3px #C8553D22, var(--shadow); }
.todo { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.todo li { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.todo li > div { flex: 1; } .todo small { display: block; color: var(--muted); }
.todo .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; flex: none; font-size: 13px; }
.todo li.done .tick { background: var(--green); border-color: var(--green); color: #fff; } .todo li.done b { color: var(--muted); text-decoration: line-through; }
.todo li.open { border-color: #E8B4A8; background: #FFF6F2; } .todo li.open .tick { border-color: var(--accent); }
.todo li.note .tick { border: 0; color: var(--blue); font-size: 16px; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.mine-card { display: flex; gap: 14px; align-items: center; } .mine-card svg { width: 120px; height: auto; display: block; }
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.roles .choice { text-align: left; padding: 10px; } .roles .choice b { display: block; }
.roles .choice small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; margin-top: 2px; } .roles .taken { color: var(--blue) !important; font-weight: 600; }
@media (max-width: 900px) { .roles { grid-template-columns: repeat(2, 1fr); } }
.nav .grp { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #9C8775; margin: 12px 12px 2px; font-weight: 700; }
.nav .grp:first-child { margin-top: 4px; }
.nav .badge.new { background: var(--crema); color: var(--ink); text-transform: uppercase; font-weight: 700; font-size: 10px; }
.nav-more { font-size: 12px; color: #9C8775; padding: 10px 12px; font-style: italic; }
.info .rhythm div, .info .vstep:not(.me):not(.chans) { background: #fff; border-color: #D6E7F1; }

/* City: hover tooltip + profile beside the map */
.city-row { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: stretch; }
.city-card { height: min(64vh, 640px); overflow: auto; margin: 0; }
.cc-thumb { display: flex; align-items: center; gap: 12px; background: #FBF6EF; border-radius: 10px; padding: 8px 10px; }
.cc-thumb svg { width: 92px; height: 74px; flex: none; }
.cityview { position: relative; }
.city-tip { position: absolute; display: none; pointer-events: none; z-index: 5; background: #2B1D14; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 12.5px; line-height: 1.35; box-shadow: 0 4px 14px #0003; white-space: nowrap; }
.city-tip b { display: block; font-weight: 700; } .city-tip span { opacity: .8; font-size: 11.5px; }
.city-tip .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; border: 1.5px solid #fff; opacity: 1; }
.plot.sel, .has-mine .plot.other.sel { filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 2px #2B1D14); opacity: 1; }
.pin.sel { opacity: 1 !important; } .pin.sel .pin-in { transform: translateY(-4px); }
@media (max-width: 1100px) { .city-row { grid-template-columns: 1fr; } .city-card { height: auto; } }
.motto { display: inline-block; background: var(--ink, #2B1D14); color: #fff; font-weight: 700; border-radius: 999px; padding: 6px 14px; margin: 0 0 12px; font-size: 14px; }

/* Weekly surprise: the document and the team's choice */
.incident.fresh { border: 2px solid var(--red, #C8553D); }
.inc-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .inc-grid { grid-template-columns: 1fr; } }
.inc-choices { display: grid; gap: 8px; }
.inc-choices .choice { text-align: left; font: inherit; cursor: pointer; }
.doc { background: #fff; border: 1px solid #E3D8CC; border-radius: 6px; padding: 18px 20px; box-shadow: 0 6px 18px #2B1D1414; font-size: 14.5px; line-height: 1.5; }
.doc p { margin: 0 0 10px; }
.doc-news { background: #FBF7EF; font-family: Georgia, serif; }
.doc-news .masthead { font-family: Georgia, serif; font-weight: 700; font-size: 26px; text-align: center; border-bottom: 3px double #2B1D14; padding-bottom: 6px; margin-bottom: 6px; letter-spacing: .02em; }
.doc-news .kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #8A7A6C; text-align: center; margin-bottom: 8px; }
.doc-news h2 { font-size: 22px; line-height: 1.2; margin: 6px 0 10px; }
.doc-letter { background: #FFFDF8; font-family: Georgia, serif; }
.doc-letter .from { font-weight: 700; } .doc-letter .date { color: #8A7A6C; font-size: 13px; margin: 2px 0 12px; text-align: right; }
.doc-letter .sign { font-style: italic; margin-top: 14px; }
.doc-email table, .doc-memo table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 13px; }
.doc-email td, .doc-memo td { padding: 4px 0; border-bottom: 1px solid #EEE6DC; vertical-align: top; }
.doc-email td:first-child, .doc-memo td:first-child { color: #8A7A6C; width: 70px; }
.doc-memo { background: #FFFBEA; border-color: #EADFA8; }
.doc-memo .memo-h { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: #8A6D1F; margin-bottom: 8px; }
.doc-social .post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.doc-social .avatar { width: 34px; height: 34px; border-radius: 50%; background: #2E86AB; color: #fff; display: grid; place-items: center; font-weight: 800; }
.doc-social .post { font-size: 16px; }
.choice.off { opacity: .45; cursor: not-allowed; }
tr.now td { background: #FFF5E0; }

/* roles given by the game (2026-12-01) */
.myrole { border: 2px solid var(--accent); border-radius: 14px; padding: 12px 16px; background: #FFF6F2; margin: 8px 0; max-width: 420px; }
.myrole span { display: block; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.myrole b { display: block; font-size: 24px; margin: 2px 0; } .myrole small { color: var(--muted); }
/* weekly checklist */
.checklist .prog { float: right; font-size: 13px; font-weight: 700; color: var(--accent); background: #FFF6F2; border-radius: 99px; padding: 3px 10px; }
.checklist .prog.all { color: #fff; background: var(--green); }
.lesson.flash { outline: 3px solid var(--accent); outline-offset: 2px; }
.readybar { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.readybar small { display: block; color: var(--muted); margin-top: 2px; }
.rchips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rchip { font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; color: var(--muted); }
.rchip.on { border-color: var(--green); color: var(--green); font-weight: 700; }
.sec.mine { border-color: var(--accent); }
