/* the town's map (GDD «Карта города»): plates of the quarters, streets, marks on a shelf, the goals list */
.city__map{ padding:0 !important; position:relative; display:block; border-radius:18px; overflow:hidden; background:radial-gradient(ellipse at 50% 45%, rgba(255,250,238,.55) 0%, rgba(255,250,238,0) 70%); }
.city__svg{ position:absolute; inset:0; width:100%; height:100%; max-height:none; overflow:hidden; }

/* quarters, streets, houses */
.cq__b{ opacity:.78; stroke:#6b604f; stroke-width:1.6; stroke-linejoin:round; stroke-dasharray:none; cursor:pointer; transition:filter .15s, opacity .15s; }
.cq__b:hover{ opacity:.92; filter:brightness(1.05); }
.cq__b.sel{ opacity:.95; filter:brightness(1.07) saturate(1.15); }
.cq__b.cur{ opacity:.9; stroke:#6b604f; stroke-width:1.6; filter:none; }
.cst-b{ fill:none; stroke:#7d705c; stroke-width:12; stroke-linecap:round; stroke-linejoin:round; opacity:.28; pointer-events:none; }
.cst{ fill:none; stroke:#f5eedd; stroke-width:7; stroke-linecap:round; stroke-linejoin:round; opacity:.95; pointer-events:none; }
.chouse{ pointer-events:none; } .chouse rect{ fill:#7d705c; opacity:.42; stroke:none; }
.cw-t.gate{ fill:#3b352c; }
.cwin{ fill:#ffcf5a; filter:drop-shadow(0 0 3px #ffb700); pointer-events:none; }

/* the way to the picked quarter */
.croute-b{ fill:none; stroke:#fffaf0; stroke-width:9; stroke-linecap:round; stroke-linejoin:round; opacity:.9; pointer-events:none; }
.croute{ fill:none; stroke:#2a2622; stroke-width:3.4; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:0.1 8; pointer-events:none; animation:croute 1.2s linear infinite; }
@keyframes croute{ to{ stroke-dashoffset:-16.2; } }

/* plates */
.cq{ cursor:pointer; }
.cq__i{ pointer-events:none; filter:drop-shadow(0 1px 0 rgba(255,250,238,.9)); }
.cq__pl{ fill:rgba(252,248,239,.96); stroke:#3b352c; stroke-width:1.2; filter:drop-shadow(0 1px 2px rgba(40,34,26,.18)); transition:fill .15s; }
.cq:hover .cq__pl{ fill:#fff; }
.cq.cur .cq__pl{ stroke:#b8902f; stroke-width:2.2; }
.cq.sel .cq__pl{ fill:#2a2622; stroke:#2a2622; }
.cq__n{ font-family:"Jost",sans-serif; font-weight:600; font-size:16px; fill:#26262a; text-anchor:middle; stroke:none; pointer-events:none; }
.cq.sel .cq__n{ fill:#fff; } .cq.cur .cq__n{ fill:#26262a; } .cq.cur.sel .cq__n{ fill:#fff; }
.cq__tv{ font-family:"Jost",sans-serif; font-style:italic; font-weight:500; font-size:12px; fill:#7a2b1e; text-anchor:middle; stroke:none; pointer-events:none; }
.cq.sel .cq__tv{ fill:#e8c98a; }
.cq__hrs rect{ fill:#b8902f; stroke:#fff; stroke-width:1.5; } .cq__hrs text{ font-family:"Jost",sans-serif; font-size:12px; font-weight:600; fill:#fff; text-anchor:middle; }
.cq__gd{ pointer-events:auto; } .cq__gd.master .cq__bn{ filter:drop-shadow(0 2px 3px rgba(20,18,16,.35)); }

/* marks on the shelf: the shape says the kind, the colour the state */
.cmk{ cursor:pointer; transition:filter .12s; } .cmk:hover{ filter:brightness(1.1) drop-shadow(0 1px 3px rgba(0,0,0,.25)); }
.cmk__i{ pointer-events:none; } .cmk__i.w{ filter:brightness(0) invert(1); }
.cmk.goal .cmk__b{ fill:#c9962e; stroke:#fff; stroke-width:2; filter:drop-shadow(0 1px 3px rgba(80,55,10,.45)); }
.cmk.goal{ animation:cmkGlow 2.4s ease-in-out infinite; }
@keyframes cmkGlow{ 50%{ filter:drop-shadow(0 0 5px rgba(232,180,60,.9)); } }
.cmk.later .cmk__b{ fill:#fbf6ea; stroke:#b8902f; stroke-width:1.6; stroke-dasharray:3 2.2; }
.cmk.later .cmk__i{ opacity:.78; }
.cmk__clk{ fill:#fff; stroke:#b8902f; stroke-width:1.4; } .cmk__hand{ fill:none; stroke:#8a6514; stroke-width:1.2; stroke-linecap:round; }
.cmk.event .cmk__b{ fill:#b0413e; stroke:#fff; stroke-width:2; filter:drop-shadow(0 1px 2px rgba(80,20,15,.4)); }
.cmk__x{ font-family:"Jost",sans-serif; font-size:17px; font-weight:800; fill:#fff; text-anchor:middle; pointer-events:none; }
.cmk.place .cmk__b{ fill:#3b352c; stroke:#fff; stroke-width:1.5; }
.cmk.person .cmk__b{ fill:#fff; stroke:#3b352c; stroke-width:1.5; }
.cmk.folk .cmk__b, .cmk.more .cmk__b{ fill:rgba(255,255,255,.95); stroke:#8a7c66; stroke-width:1.2; }
.cmk__n{ font-family:"Jost",sans-serif; font-size:12.5px; font-weight:600; fill:#3b352c; text-anchor:middle; pointer-events:none; }
.cmk.hl{ animation:cmkHl .5s ease-in-out 4 alternate; } @keyframes cmkHl{ to{ filter:drop-shadow(0 0 8px rgba(232,180,60,1)) brightness(1.25); } }
.cmk__need{ fill:#c9962e; stroke:#fff; stroke-width:1.5; }

/* the party */
#cityParty{ pointer-events:none; } .cpt-b{ fill:#f6d27a; stroke:#8a6514; stroke-width:2; filter:drop-shadow(0 1px 3px rgba(60,40,5,.45)); }

/* the goals list: at the top of the town's panel, always in sight */
.cgoals{ margin:2px 0 12px; padding:8px 8px 6px; border:1px solid #e3cf98; border-radius:12px; background:#fffaf0; }
.cg__h{ display:flex; align-items:center; gap:5px; margin:0 0 2px; padding:2px 4px; color:#8a6514; }
.cg__more{ display:block; margin:2px 0 0 36px; padding:2px 4px; border:0; background:none; cursor:pointer; font:inherit; font-size:12px; color:#8a6514; text-decoration:underline dotted; }
.cg__i{ display:flex; align-items:center; gap:9px; width:100%; border:0; background:none; text-align:left; padding:4px 4px; border-radius:9px; cursor:pointer; color:var(--ink); font:inherit; }
.cg__i:hover{ background:#f7eed8; } .cg__i.on{ background:#f1e4c2; }
.cg__d{ width:19px; height:19px; margin:4px; flex:none; transform:rotate(45deg); background:#c9962e; border-radius:3px; display:flex; align-items:center; justify-content:center; box-shadow:0 1px 2px rgba(80,55,10,.35); }
.cg__d .ic{ transform:rotate(-45deg); width:12px; height:12px; color:#fff; }
.cg__i.later .cg__d{ background:#fffaf0; border:1.5px dashed #b8902f; box-shadow:none; } .cg__i.later .cg__d .ic{ color:#8a6514; }
.cg__t{ display:flex; flex-direction:column; min-width:0; } .cg__t b{ font-size:13px; font-weight:600; line-height:1.25; }
.cg__t small{ display:flex; align-items:center; gap:3px; font-size:11.5px; color:var(--ink-soft); line-height:1.3; } .cg__t small .ic{ width:11px; height:11px; flex:none; }
.cg__i.later .cg__t b{ color:var(--ink-soft); font-weight:500; }

/* the legend: the kinds of marks on the map now */
.cmap__leg{ position:absolute; right:12px; top:12px; z-index:2; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px 12px; max-width:calc(50% - 230px); padding:5px 11px; border-radius:12px; background:rgba(255,255,255,.86); border:1px solid var(--hair); font-size:11.5px; color:var(--ink-soft); }
.cmap__leg:empty{ display:none; }
.cl__i{ display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.cl__m{ display:inline-block; width:11px; height:11px; flex:none; }
.cl__m.goal{ background:#c9962e; transform:rotate(45deg) scale(.85); border-radius:2px; }
.cl__m.later{ border:1.5px dashed #b8902f; transform:rotate(45deg) scale(.85); border-radius:2px; }
.cl__m.event{ background:#b0413e; border-radius:50%; }
.cl__m.person{ background:#fff; border:1.5px solid #3b352c; border-radius:50%; }
.cl__m.folk{ width:17px; height:9px; background:#fff; border:1.2px solid #8a7c66; border-radius:5px; }
.cl__m.place{ background:#3b352c; border-radius:3px; }

@media (max-width: 820px){
  .city__map{ min-height:52vh; }
  .cmap__leg{ display:none; }
}

/* the town's panel: the quarter's head, the street's events, tabs «Дела / Люди / Места» of rows, «Позже» folded, the way out pinned below */
.city__panel{ padding-bottom:0; align-self:stretch; }
.cpn{ display:flex; flex-direction:column; min-height:100%; }
.cpn__head{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:4px 0 6px; } .cpn__head h2{ margin:0; }
.cpn__where{ flex:none; font-size:12px; color:var(--ink-soft); display:inline-flex; align-items:center; gap:4px; } .cpn__where.here{ color:#8a6514; font-weight:600; } .cpn__where .ic{ width:13px; height:13px; }
.cpn__note{ font-size:12.5px; color:var(--ink-soft); margin:6px 2px; display:flex; gap:6px; align-items:flex-start; } .cpn__note .ic{ width:14px; height:14px; flex:none; margin-top:2px; }
.cpn__sub{ display:flex; align-items:center; gap:6px; margin:12px 2px 4px; font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft); } .cpn__sub small{ text-transform:none; letter-spacing:0; margin-left:auto; } .cpn__sub .ic{ width:13px; height:13px; }
.cpn__more{ margin:10px 0; width:100%; display:flex; align-items:center; justify-content:center; gap:6px; padding:8px; border:1px dashed var(--hair-2); border-radius:10px; background:none; cursor:pointer; color:var(--ink-soft); font:inherit; font-size:13px; } .cpn__more:hover{ color:var(--ink); border-color:var(--ink); }
.cpn__body{ padding:6px 0 10px; } .cpn__body.peek{ opacity:.6; }
.cpn__foot{ position:sticky; bottom:0; margin-top:auto; padding:10px 0 14px; background:linear-gradient(to bottom, rgba(255,255,255,0), #fff 30%); z-index:1; } .cpn__foot .opt{ margin:0; }

/* tabs */
.ctabs{ position:sticky; top:-1px; z-index:1; display:flex; gap:4px; margin:10px -2px 0; padding:6px 2px; background:#fff; border-bottom:1px solid var(--hair); }
.ctab{ position:relative; flex:1; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:7px 8px; border:1px solid transparent; border-radius:10px; background:none; cursor:pointer; font:inherit; font-size:13.5px; color:var(--ink-soft); }
.ctab b{ font-size:11.5px; font-weight:600; min-width:18px; padding:0 5px; border-radius:9px; background:var(--bg-soft, #f3efe6); color:var(--ink); }
.ctab:hover{ color:var(--ink); } .ctab.on{ background:var(--ink); color:#fff; } .ctab.on b{ background:rgba(255,255,255,.2); color:#fff; }
.ctab__need{ position:absolute; top:-3px; right:4px; width:15px; height:15px; border-radius:50%; background:#c9962e; color:#fff; font-style:normal; font-size:10px; font-weight:700; line-height:15px; text-align:center; }

/* rows */
.crw{ display:flex; align-items:center; gap:10px; width:100%; padding:8px 8px; margin:0; border:0; border-bottom:1px solid var(--hair); background:none; text-align:left; cursor:pointer; color:var(--ink); font:inherit; }
.crw:hover:not([disabled]){ background:#faf6ec; } .crw[disabled]{ cursor:default; } .crw.off{ opacity:.5; }
.crw__i{ width:30px; height:30px; flex:none; display:flex; align-items:center; justify-content:center; border-radius:9px; background:#f4efe3; } .crw__i .ic{ width:18px; height:18px; }
.crw.loc .crw__i{ background:#f6e9c6; } .crw.gold{ background:#fffaf0; } .crw.gold .crw__i{ background:#c9962e; color:#fff; }
.crw__t{ flex:1; min-width:0; display:flex; flex-direction:column; } .crw__t b{ font-size:13.5px; font-weight:500; line-height:1.25; } .crw__t small{ font-size:11.5px; color:var(--ink-soft); }
.crw__m{ flex:none; display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--ink-soft); } .crw__m b{ display:inline-flex; align-items:center; gap:2px; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; } .crw__m .ic{ width:13px; height:13px; }
.crw__m .crw__bad{ color:#b0413e; width:15px; height:15px; }
.crw__loc{ width:7px; height:7px; border-radius:50%; background:#c9962e; display:inline-block; }
.crw__later{ margin-top:6px; } .crw__later summary{ list-style:none; cursor:pointer; display:flex; align-items:center; gap:6px; padding:8px 8px; font-size:12.5px; color:var(--ink-soft); border-radius:8px; }
.crw__later summary::-webkit-details-marker{ display:none; } .crw__later summary::after{ content:"▸"; margin-left:auto; } .crw__later[open] summary::after{ content:"▾"; }
.crw__later summary:hover{ background:#faf6ec; color:var(--ink); } .crw__later summary .ic{ width:13px; height:13px; }
.crw__later .crw{ opacity:.55; padding-top:5px; padding-bottom:5px; } .crw__later .crw__i{ width:24px; height:24px; } .crw__later .crw__i .ic{ width:14px; height:14px; }

/* the street's events */
.cevs{ display:flex; flex-direction:column; gap:6px; margin:8px 0 2px; }
.cev{ display:flex; align-items:center; gap:10px; padding:9px 12px; border:1.5px solid #b0413e; border-radius:12px; background:#fdf3f1; cursor:pointer; text-align:left; font:inherit; color:var(--ink); }
.cev .ic{ width:20px; height:20px; color:#b0413e; } .cev b{ flex:1; font-size:13.5px; font-weight:600; } .cev small{ font-size:11.5px; color:#b0413e; font-weight:600; }
.cev:hover:not([disabled]){ background:#fbe7e3; } .cev.off{ border-color:#e3b9b3; opacity:.8; }

/* a quarter one is not in: the summary */
.csum{ display:flex; flex-wrap:wrap; gap:6px; margin:10px 0 4px; } .csum__i{ display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:20px; background:#f4efe3; font-size:13px; } .csum__i .ic{ width:14px; height:14px; } .csum__i b{ font-weight:600; }
.csum__g{ display:flex; align-items:center; gap:6px; margin:6px 0 0; font-size:13px; font-weight:600; } .csum__g small{ font-weight:400; color:var(--ink-soft); } .csum__g .cg__d{ width:15px; height:15px; margin:3px; } .csum__g .cg__d .ic{ width:10px; height:10px; }
.csum__g.later{ color:var(--ink-soft); } .csum__g.later .cg__d{ background:#fffaf0; border:1.5px dashed #b8902f; box-shadow:none; } .csum__g.later .cg__d .ic{ color:#8a6514; }
.cpn__foot .opt{ width:100%; justify-content:center; }
.csum__g > span:last-child{ min-width:0; } .csum__g b{ font-weight:600; }
/* feedback: an unlawful deed reads as one at a glance */
.crw.crime{ box-shadow:inset 3px 0 0 #b0413e; } .crw.crime .crw__i{ background:#f6dedb; } .crw.crime .crw__t small{ color:#b0413e; }

/* «Живой план города»: the houses by whose they are, the town's woes, the people as dots (ui/citymap houseLayer/woes, ui/citydots) */
.chouse .chg{ pointer-events:auto; cursor:default; }
.chouse .ch{ stroke:none; }
.chouse .ch.home{ fill:#5f533f; opacity:.68; }
.chouse .ch.home.kn, .chouse .ch.shop.kn, .chouse .ch.stall.kn{ opacity:.85; stroke-width:2.2; fill-opacity:.55; }
.chouse .ch__low{ opacity:.95; }
.chouse .ch.shed{ fill:#7d705c; opacity:.17; }
.chouse .ch.empty{ fill:#c9c1b2; opacity:.9; stroke:#8d8270; stroke-width:.8; }
.chouse .ch__x{ stroke:#6d6252; stroke-width:1.1; fill:none; }
.chouse .ch.shop{ opacity:.95; stroke:#5d5242; stroke-width:.8; }
.chouse .ch.stall{ opacity:.95; stroke:#5d5242; stroke-width:.7; }
.chouse .ch__aw{ stroke:#fff8e6; stroke-width:1.6; stroke-dasharray:1.6 1.2; }
.chouse .ch.shut{ opacity:.45; }
.chouse .ch.guild{ opacity:.92; stroke:#2b241b; stroke-width:1; }
.chouse .ch.guild.big{ stroke-width:2.2; }
.chouse .ch.hall{ fill:#5a5044; opacity:.92; }
.chouse .ch.burnt{ fill:#231f1b !important; opacity:.92 !important; stroke:#9a4a22 !important; stroke-width:1 !important; }
.ch__ic{ pointer-events:none; opacity:.9; } .ch__ic.shut{ opacity:.35; } .ch__ic.w{ filter:invert(1) brightness(1.4); opacity:.95; }
.cw-smoke circle{ fill:#4f4a44; opacity:.5; animation:cSmoke 4s ease-in-out infinite alternate; }
@keyframes cSmoke{ from{ transform:translateY(0); opacity:.55; } to{ transform:translateY(-5px); opacity:.3; } }
.cblight{ fill:#6a2a8c; opacity:.38; stroke:#4e1470; stroke-width:1; stroke-dasharray:2 3; }
.ctent{ fill:#d9c39a; stroke:#6d5c40; stroke-width:1; }
.chungry circle{ fill:#1d1a16; opacity:.7; }
.cdots{ }
.cdot{ cursor:pointer; }
.cdot__hit{ fill:transparent; }
.cdot__b{ stroke:#fbf6ea; stroke-width:.9; }
.cdot:not(.kn):not(.qs) .cdot__b{ opacity:.78; stroke:none; }
.cdot.kn .cdot__b{ stroke:#2a2620; stroke-width:1; }
.cdot.qs .cdot__b{ stroke:#3b2a05; stroke-width:1.4; }
.cdot.qs{ animation:cDotQs 1.2s ease-out 1; }
@keyframes cDotQs{ 0%{ transform-box:fill-box; } 40%{ filter:drop-shadow(0 0 6px #e9b52a); } 100%{ filter:none; } }
.cdot__npc{ fill:none; stroke:#2a2620; stroke-width:.9; opacity:.7; }
.cdot__need{ fill:none; stroke:#c9962e; stroke-width:1; stroke-dasharray:2 1.6; }
.cdot.zz{ opacity:.5; }
.cdot__lamp{ fill:#ffd66b; opacity:.22; pointer-events:none; }
.cdot:hover .cdot__b{ stroke:#c9962e; stroke-width:2; }
.cln{ fill:none; stroke:#f5eedd; stroke-width:3.5; stroke-linecap:round; opacity:.85; pointer-events:none; }   /* «Карта города»: side lanes between the blocks */
/* «Кража из дома»: a house is clicked (scouted by day, robbed at night); a mansion darker, a robbed one rimmed red, a scouted one dashed, a quarter on alarm — a lit window */
.chouse .chg[data-hq]{ cursor:pointer; } .chouse .chg[data-hq]:hover .ch{ opacity:1; }
.chouse .chg[data-sq]{ cursor:pointer; } .chouse .chg[data-sq]:hover .ch{ opacity:1; filter:brightness(1.08); }   /* feedback 44: a shop, a guild house, a hall open on a click */
.chouse .ch.home.manor{ fill:#4a4031; opacity:.8; }
.chouse .ch.home.robbed{ stroke:#a8432f; stroke-width:1.2; }
.chouse .ch.home.scouted{ stroke:#2a2520; stroke-width:.9; stroke-dasharray:2 1.4; }
.chouse .ch__lit{ fill:#f2c45a; opacity:.95; }

/* «Карта города: план 2»: the camera (wheel, drag, buttons), plates of a steady size, the houses close up, the changes since the last visit, the plan's signs */
.city__svg{ touch-action:none; cursor:grab; } .city__svg.pan{ cursor:grabbing; } .city__svg.pan *{ pointer-events:none; }
.cq__b, .cq-here, .cq-here-halo, .cq-pick, .croute, .croute-b, .cq__pl, .cw-out, .cw-quay{ vector-effect:non-scaling-stroke; }
.cmap__cam{ position:absolute; right:12px; bottom:12px; z-index:2; display:flex; flex-direction:column; gap:4px; }
.cmap__cam button{ width:32px; height:32px; display:flex; align-items:center; justify-content:center; border-radius:9px; border:1px solid var(--hair); background:rgba(255,255,255,.92); color:var(--ink); font:600 18px/1 "Jost",sans-serif; cursor:pointer; box-shadow:0 1px 3px rgba(40,34,26,.12); }
.cmap__cam button:hover{ background:#fff; } .cmap__cam .ic{ width:16px; height:16px; }
.chouse .chg.fresh .ch{ animation:chFresh .7s ease-in-out 6 alternate; stroke:#c9962e; stroke-width:1.6; vector-effect:non-scaling-stroke; }
@keyframes chFresh{ to{ stroke:#f2c45a; stroke-width:3.2; opacity:1; } }
.cl__q{ width:20px; height:20px; padding:0; border-radius:50%; border:1px solid var(--hair-2, #cfc6b4); background:#fff; color:var(--ink-soft); font:600 12px/1 "Jost",sans-serif; cursor:pointer; }
.cl__q.on{ background:var(--ink); color:#fff; border-color:var(--ink); }
.cl__plan{ flex-basis:100%; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:4px 12px; padding-top:5px; margin-top:2px; border-top:1px solid var(--hair); }
.cl__h{ display:inline-block; width:14px; height:9px; flex:none; border-radius:1.5px; background:#5f533f; }
.cl__h.home{ background:#5f533f; opacity:.75; } .cl__h.home.good{ box-shadow:0 0 0 2px rgb(70,138,58); } .cl__h.home.bad{ box-shadow:0 0 0 2px rgb(178,62,44); }
.cl__h.empty{ background:#c9c1b2 linear-gradient(to top right, transparent 45%, #6d6252 47%, #6d6252 53%, transparent 55%); }
.cl__h.dot{ width:8px; height:8px; border-radius:50%; background:#1d1a16; } .cl__h.dot.kn{ background:linear-gradient(90deg, rgb(178,62,44), rgb(70,138,58)); width:14px; border-radius:4px; }
.cl__h.dot.qs{ background:#e9b52a; } .cl__h.dot.grd{ width:8px; height:8px; border-radius:1px; transform:rotate(45deg) scale(.85); }
.cfresh circle{ fill:none; stroke:#e9b52a; stroke-width:2.4; vector-effect:non-scaling-stroke; opacity:0; animation:cFresh 1s ease-in-out 4; }
@keyframes cFresh{ 30%{ opacity:1; } 100%{ opacity:0; stroke-width:5; } }

/* «Сцена квартала» (2026-10-15) — the quarter panel as a scene: picture and hour, «Сейчас», people as portraits, places as tiles, a person inside */
.city__panel{ width:420px; height:calc(100vh - 32px); max-height:none; display:flex; flex-direction:column; }
.cpn--scene{ flex:1; min-height:0; }
.cpn--scene .cpn__body{ flex:1; min-height:0; overflow:auto; padding:4px 2px 10px; margin:0 -2px; }
.cpn__scene{ display:flex; align-items:center; gap:14px; padding:4px 0 12px; border-bottom:1px solid var(--hair); margin-bottom:10px; }
.cpn__art{ width:84px; height:84px; object-fit:contain; flex:none; border-radius:16px; background:var(--bg-soft); padding:6px; box-sizing:border-box; border:1px solid var(--hair); }
.cpn__sh{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.cpn__sh .kicker{ margin:0; }
.cpn__sh h2{ margin:0; font-size:24px; font-weight:400; letter-spacing:-.01em; line-height:1.1; }
.cpn__when{ display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--ink-soft); } .cpn__when b{ color:var(--ink); font-variant-numeric:tabular-nums; font-weight:600; }
.cpn--scene .cpn__where{ align-self:flex-start; }
.csec{ margin:4px 0 14px; }
.csec__h{ display:flex; align-items:center; gap:7px; margin:0 0 8px; font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); }
.csec__h .ic{ width:14px; height:14px; } .csec__n{ margin-left:auto; font-size:11px; color:var(--ink-soft); letter-spacing:0; }
/* people: portraits */
.cppl{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:8px 6px; }
.cpt{ position:relative; display:flex; flex-direction:column; align-items:center; gap:4px; padding:6px 2px 6px; border:1px solid transparent; border-radius:14px; background:none; cursor:pointer; color:var(--ink); font:inherit; min-width:0; transition:background var(--t-2) var(--ease), border-color var(--t-2) var(--ease); }
.cpt:hover:not([disabled]){ background:var(--bg-soft); border-color:var(--hair); } .cpt[disabled]{ cursor:default; opacity:.55; }
.cpt__f{ position:relative; width:58px; height:58px; border-radius:50%; background:var(--bg-soft); border:1px solid var(--hair-2); display:flex; align-items:center; justify-content:center; overflow:visible; }
.cpt__f > .ic, .cpt__f > img{ width:46px; height:46px; }
.cpt.own .cpt__f{ border-color:var(--echo); box-shadow:0 0 0 2px rgba(176,138,46,.14); }
.cpt.need .cpt__f, .cpt.story .cpt__f{ border-color:var(--echo); }
.cpt__n, .cpt__dy{ position:absolute; display:flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; font-style:normal; font-size:12px; font-weight:700; }
.cpt__n{ top:-3px; right:-3px; background:var(--echo); color:#fff; } .cpt__n .ic{ width:12px; height:12px; color:#fff; }
.cpt__dy{ bottom:-3px; right:-3px; background:var(--bg); border:1px solid var(--hair-2); } .cpt__dy .ic{ width:12px; height:12px; }
.cpt > b{ font-size:12px; font-weight:500; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cpt__d{ display:flex; gap:3px; min-height:14px; } .cpt__d .ic{ width:13px; height:13px; color:var(--ink-soft); }
.cpt > small{ font-size:11px; color:var(--ink-soft); }
.cpt--meet .cpt__f{ border-style:dashed; }
/* deals and places: tiles */
.ctiles{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:6px; }
.ctiles > .crw__later{ grid-column:1 / -1; } .ctiles > .crw__later > summary{ font-size:11.5px; color:var(--ink-soft); cursor:pointer; padding:4px 2px; } .ctiles > .crw__later .ctiles{ margin-top:6px; }
.crw.ctl{ flex-direction:column; align-items:flex-start; justify-content:flex-start; gap:4px; padding:9px 9px 8px; border:1px solid var(--hair); border-radius:12px; background:var(--bg); min-height:92px; }
.crw.ctl:hover:not([disabled]){ border-color:var(--hair-2); background:var(--bg-soft); }
.crw.ctl .crw__i{ width:30px; height:30px; }
.ctl__n{ font-size:12.5px; font-weight:500; line-height:1.2; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ctl__s{ font-size:10.5px; color:var(--danger); line-height:1.2; }
.crw.ctl .crw__m{ margin-top:auto; flex-wrap:wrap; } .crw.ctl.crime{ border-color:rgba(178,59,50,.35); } .crw.ctl.gold{ border-color:var(--echo); }
/* the person inside the panel */
.cpv{ display:flex; flex-direction:column; gap:10px; }
.cpv__back{ align-self:flex-start; display:inline-flex; align-items:center; gap:6px; background:none; border:0; padding:2px 0; color:var(--ink-soft); cursor:pointer; font:inherit; font-size:12px; } .cpv__back .ic{ transform:scaleX(-1); width:14px; height:14px; }
.cpv__hd{ display:flex; align-items:center; gap:14px; }
.cpv__f{ width:96px; height:96px; flex:none; border-radius:50%; background:var(--bg-soft); border:1px solid var(--hair-2); display:flex; align-items:center; justify-content:center; } .cpv__f > .ic, .cpv__f > img{ width:78px; height:78px; }
.cpv__id{ min-width:0; display:flex; flex-direction:column; gap:3px; } .cpv__id h3{ margin:0; font-size:22px; font-weight:400; } .cpv__id small{ font-size:12px; color:var(--ink-soft); }
.cpv__tr{ display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:2px; }
.cpv__line{ margin:0; font-size:13px; line-height:1.45; color:var(--ink-soft); font-style:italic; }
.cpv__acts{ display:flex; gap:8px; } .cpv__acts .opt{ flex:1; justify-content:center; }
/* «Мне нужен…» as tiles too */
.cneed__g{ grid-template-columns:repeat(3, minmax(0, 1fr)); } .cneed__b{ flex-direction:column; align-items:center; text-align:center; min-height:64px; justify-content:center; } .cneed__b .ic{ width:22px; height:22px; }
@media (max-width: 820px){ .city__panel{ width:auto; height:auto; max-height:52vh; } .cppl{ grid-template-columns:repeat(4, minmax(0, 1fr)); } .cpn__art{ width:60px; height:60px; } }

/* «Сцена квартала», второй проход (2026-10-15): portraits with their line, event cards with faces and the ring of hours, compact priced tiles, the person's scale, traits and life, the town's mood */
.cpn__mood{ display:flex; flex-wrap:wrap; gap:4px; min-height:22px; }
.cpt.own .cpt__f{ border-color:var(--hair-2); box-shadow:none; }
.cpt.hi .cpt__f{ border-color:var(--echo); box-shadow:0 0 0 2px rgba(176,138,46,.16); }
.cpt__r{ font-size:10.5px; color:var(--ink-soft); line-height:1.15; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-top:-2px; }
.cpt__d{ gap:4px; margin-top:1px; } .cpt__d .ic{ width:16px; height:16px; color:var(--ink); opacity:.8; }
/* «Сейчас» */
.cevcs{ display:flex; flex-direction:column; gap:6px; }
.cevc{ display:flex; align-items:center; gap:10px; width:100%; padding:9px 10px; border:1px solid rgba(178,59,50,.35); border-radius:14px; background:rgba(178,59,50,.05); cursor:pointer; color:var(--ink); font:inherit; text-align:left; }
.cevc:hover:not([disabled]){ background:rgba(178,59,50,.09); } .cevc.off{ opacity:.6; }
.cevc__i{ width:34px; height:34px; flex:none; display:flex; align-items:center; justify-content:center; border-radius:10px; background:var(--danger); color:#fff; } .cevc__i .ic{ width:20px; height:20px; color:#fff; }
.cevc__t{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; } .cevc__t b{ font-size:13.5px; font-weight:600; } .cevc__t small{ font-size:11.5px; color:var(--ink-soft); }
.cevc__p{ display:flex; } .cevc__f{ width:30px; height:30px; border-radius:50%; background:var(--bg); border:1px solid var(--hair-2); display:flex; align-items:center; justify-content:center; margin-left:-8px; } .cevc__f .ic, .cevc__f img{ width:24px; height:24px; }
.cevc__r svg{ width:28px; height:28px; transform:rotate(-90deg); display:block; } .cevc__r circle{ fill:none; stroke:var(--hair-2); stroke-width:4; } .cevc__r circle.on{ stroke:var(--danger); stroke-linecap:round; }
/* tiles: compact, priced */
.ctiles{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
.crw.ctl{ flex-direction:row; align-items:center; gap:8px; min-height:52px; padding:7px 8px; flex-wrap:wrap; }
.crw.ctl .crw__i{ width:32px; height:32px; } .crw.ctl .crw__i .ic{ width:20px; height:20px; }
.crw.ctl .ctl__n{ flex:1; min-width:0; font-size:12.5px; }
.crw.ctl .ctl__s{ order:4; flex-basis:100%; padding-left:40px; margin-top:-4px; }
.crw.ctl .crw__m{ margin-top:0; margin-left:auto; flex-wrap:nowrap; gap:4px; } .crw.ctl .crw__m .chp{ padding:1px 5px; }
/* the person */
.cpv__f{ width:112px; height:112px; } .cpv__f > .ic, .cpv__f > img{ width:92px; height:92px; }
.ctrust{ display:inline-flex; align-items:center; gap:6px; } .ctrust small{ font-size:11px; color:var(--ink-soft); }
.ctrust__b{ position:relative; width:96px; height:6px; border-radius:3px; background:linear-gradient(90deg, rgba(178,59,50,.35), var(--hair) 45%, rgba(110,150,70,.45)); }
.ctrust__t{ position:absolute; top:-2px; width:1px; height:10px; background:var(--hair-2); }
.ctrust__m{ position:absolute; top:-4px; width:6px; height:14px; margin-left:-3px; border-radius:3px; background:var(--ink); } .ctrust__m.bad{ background:var(--danger); }
.cpv__trs{ display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; } .cpv__trs .chp.unk{ opacity:.55; }
.cpv__deals{ grid-template-columns:1fr; }
.cpv__ev{ display:flex; align-items:center; gap:8px; margin:0 0 6px; font-size:12.5px; color:var(--ink); } .cpv__ev .ic{ width:16px; height:16px; flex:none; color:var(--ink-soft); } .cpv__ev span{ flex:1; } .cpv__ev small{ font-size:11px; color:var(--muted); white-space:nowrap; }
.cpv__acts{ margin-top:auto; padding-top:6px; }
/* «Мне нужен…»: known faces, the missing ones */
.cneed__b{ position:relative; } .cneed__b small{ font-size:10.5px; color:var(--ink-soft); }
.cneed__b.kn{ border-color:var(--echo); } .cneed__b.no{ opacity:.5; }
.cneed__f{ width:28px; height:28px; border-radius:50%; background:var(--bg-soft); border:1px solid var(--hair-2); display:flex; align-items:center; justify-content:center; } .cneed__f .ic, .cneed__f img{ width:22px; height:22px; }
/* «Люди»: traders first — group heads, the sign of the main deal, what he does under the name (feedback 2026-10-19) */
.cppl__h{ grid-column:1/-1; display:flex; align-items:center; gap:6px; margin:2px 2px -2px; padding-bottom:3px; border-bottom:1px solid var(--hair); font-size:11.5px; color:var(--ink-soft); }
.cppl__h .ic{ width:14px; height:14px; } .cppl__h small{ margin-left:auto; }
.cpt__sg{ position:absolute; top:-5px; right:-7px; width:26px; height:26px; border-radius:50%; background:var(--echo); border:2px solid var(--bg); display:flex; align-items:center; justify-content:center; }
.cpt__sg .ic{ width:15px; height:15px; color:#fff; }
.cpt.own .cpt__do{ color:var(--ink); font-weight:500; white-space:normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; text-align:center; }
.cpt.shut .cpt__f > .ic{ opacity:.45; } .cpt.shut .cpt__sg{ background:var(--muted); } .cpt.shut .cpt__do{ color:var(--ink-soft); font-weight:400; }
.tc__ln{ display:flex; align-items:center; gap:6px; margin:4px 0 0; font-size:12px; } .tc__ln .ic{ width:14px; height:14px; flex:none; } .tc__ln.off{ opacity:.6; } .tc__ln small{ margin-left:auto; padding-left:8px; color:var(--muted); }
