/* Pocket Isle · styles/13_nice_to_haves.css — job priority, stuck badge, house countdowns, adjacency,
   trade board, goods-flow graph, blueprints and the away-upkeep card. Loads last; uses the theme tokens. */

/* stuck-buildings badge in the HUD status row */
.chip.stuck{background:#ffd9d4;box-shadow:inset 0 0 0 2px var(--brick)}
.chip.stuck .sub{margin-left:2px}

/* job priority row on the building panel */
.wrow.prow .seg{flex:1}
.wrow.prow .seg button{padding:4px 6px;font-size:12px}

/* countdown pill over a home that is missing a need */
.htag{position:absolute;left:0;top:0;pointer-events:none;white-space:nowrap;background:#fff3cf;color:var(--ink);border:2px solid var(--ink);border-radius:10px;padding:2px 7px;font:800 11.5px var(--body);box-shadow:0 2px 0 rgba(38,42,69,.45)}
.htag.urgent{background:#ffd9d4;border-color:var(--brick);animation:htagp 1.1s ease-in-out infinite}
@keyframes htagp{50%{box-shadow:0 2px 0 rgba(38,42,69,.45),0 0 0 4px rgba(242,89,75,.35)}}
@media (prefers-reduced-motion:reduce){.htag.urgent{animation:none}}

/* neighbour bonus note (panel) and hint (placing bar) */
.adj{font-size:12.5px;background:var(--panel-2);border-radius:10px;padding:5px 9px;border-left:4px solid #b9bfd0}
.adj.on{border-left-color:var(--leaf);background:#e2f6e5}
.pfp.adj.on,.pfp.ring.in{color:#2c8a3e;opacity:1;font-weight:800}
.pfp.ring.out{color:#b5651d;opacity:1;font-weight:800}

/* trade board */
.order.trade.done{opacity:.6}
.order.trade .cost span:last-child{font-weight:900}
.tag.road{align-self:center;background:var(--leaf)}

/* build-bar copy / paste buttons */
.bpbtns{display:flex;gap:4px;margin-left:auto;flex-shrink:0}
.bpbtns .pbtn{padding:3px 8px;font-size:12px}
#bdesc{min-width:0;overflow:hidden;text-overflow:ellipsis}

/* goods flow */
.flowhead{display:flex;flex-direction:column;gap:2px;border-radius:12px;padding:8px 11px;border:2px solid var(--ink);font-size:12.5px}
.flowhead b{font-family:var(--display);font-size:16px;font-weight:400}
.flowhead.bad{background:#ffe1dc;border-color:var(--brick)}
.flowhead.warn{background:#fff3cf;border-color:#e0a020}
.flowhead.ok{background:#e2f6e5;border-color:var(--leaf)}
.flowwrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -4px;padding:2px 4px 6px}
svg.flow{display:block;max-width:none;font-family:var(--body)}
svg.flow .fh{font:400 12px var(--display);fill:#5a5f7e;letter-spacing:.02em}
svg.flow .fe{fill:none;stroke:#9aa3b5;stroke-width:2}
svg.flow .fe.bad{stroke:var(--brick);stroke-width:3}
svg.flow .fe.off{stroke:#c9cedb;stroke-dasharray:4 4}
svg.flow .fl{font-size:9.5px;font-weight:800;fill:#5a5f7e;text-anchor:middle;paint-order:stroke;stroke:var(--panel);stroke-width:3px;stroke-linejoin:round}
svg.flow .fl.bad{fill:#c23c2d}
svg.flow .fn>rect:first-of-type{fill:var(--panel);stroke:var(--ink);stroke-width:2}
svg.flow .fn.bad>rect:first-of-type{fill:#ffe1dc;stroke:var(--brick);stroke-width:3}
svg.flow .fn.full>rect:first-of-type{fill:#fff3cf;stroke:#e0a020;stroke-width:2.5}
svg.flow .fn.low>rect:first-of-type{fill:#fff7e6;stroke:#e0a020;stroke-dasharray:5 3}
svg.flow .fn1{font-size:12.5px;font-weight:900;fill:var(--ink)}
svg.flow .fn2{font-size:10.5px;font-weight:700;fill:#5a5f7e}
svg.flow .fn3{font-size:10.5px;font-weight:900;fill:#5a5f7e;text-anchor:end}
svg.flow .fn3.pos{fill:#2c8a3e}svg.flow .fn3.neg{fill:#c23c2d}
svg.flow .fbar{fill:var(--sea)}
svg.flow .fn.full .fbar{fill:#e0a020}
.flowkey{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:11.5px;color:#5a5f7e}
.flowkey span{display:inline-flex;align-items:center;gap:5px}
.flowkey .k{display:inline-block;width:14px;height:10px;border-radius:3px;border:2px solid var(--ink);background:var(--panel)}
.flowkey .k.bad{background:#ffe1dc;border-color:var(--brick)}
.flowkey .k.full{background:#fff3cf;border-color:#e0a020}
.flowkey .k.low{background:#fff7e6;border:2px dashed #e0a020}
.flowkey .k.off{border:2px dashed #c9cedb}

/* away upkeep: losses read in red */
.offres.used span{background:#fff0ec}
.offres.used b{color:#c23c2d;font-size:17px}
.offev .cost span.no{color:#c23c2d}

/* achievements (Town → Achievements) */
.ach{display:flex;align-items:center;gap:10px;background:var(--panel-2);border-radius:12px;padding:7px 10px;margin-bottom:5px}
.ach .atro{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--panel);color:#9aa0b4}
.ach.done .atro{color:var(--ink);box-shadow:inset 0 0 0 2px var(--ac)}
.ach .at{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ach .at b{font-family:var(--display);font-weight:400;font-size:14.5px}
.ach .at small{font-size:11.5px;color:#5a5f7e}
.ach:not(.done) .at b{color:#5a5f7e}
.ach .abar{display:block;height:6px;border-radius:4px;background:rgba(38,42,69,.12);overflow:hidden;margin-top:2px}
.ach .abar i{display:block;height:100%;background:var(--sea);border-radius:4px}
.ach .anum{font-weight:800}
.tag.ach-wood{background:#9b6338}.tag.ach-silver{background:#8e97a8}.tag.ach-gold{background:#d69a10}
.chip.nosave{background:#ffd9d4;box-shadow:inset 0 0 0 2px var(--brick)}
/* sheet tab rows (Town has 7 tabs now): fill the width when they fit, scroll sideways when they don't */
#sheetBody>.seg:first-child{overflow-x:auto;scrollbar-width:none}
#sheetBody>.seg:first-child::-webkit-scrollbar{display:none}
#sheetBody>.seg:first-child button{flex:1 0 auto;white-space:nowrap;padding-left:10px;padding-right:10px}
/* meal rations (systems/rations.js): the pantry share shows as a second, golden segment on each food's storage bar */
.irow .bar:has(i.rat){display:flex}
.irow .bar i.rat{background:#f2c94c;flex:none}
.irow .amt small.rat{font-size:11px;color:#a5761a;font-weight:700}
