/* Squedrill Dividends: the one style file. Every colour, size and font is a token here, so the look can be changed
   in one place (STRUCTURE.md 2.9). The look follows the mock-up (site/mockup). */
:root{
  --panel:#fffdf7;--panel2:#f4eddc;--ink:#233044;--mute:#66758a;--line:#e3dac6;
  --blue:#2f8de4;--blue-d:#1a63b0;--green:#43b05a;--gold:#c08a3e;--red:#e0524a;--navy:#1c3a5e;
  --glass:rgba(24,48,80,.82);--shadow:0 6px 18px rgba(10,30,60,.28);
  --font:"Trebuchet MS","Segoe UI",system-ui,sans-serif;
  --radius:16px;--gap:10px;--text:15px;--small:12px;
}
:root[data-theme=dark]{--panel:#1a2528;--panel2:#253134;--ink:#eef3fa;--mute:#a3b1b3;--line:#344245;--glass:rgba(10,18,32,.86)}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--panel:#1a2528;--panel2:#253134;--ink:#eef3fa;--mute:#a3b1b3;--line:#344245;--glass:rgba(10,18,32,.86)}}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;overflow:hidden;background:#cfe3ea;color:var(--ink);font-family:var(--font);font-weight:600;font-size:var(--text)}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;padding:0}
button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.ic{width:1.25em;height:1.25em;vertical-align:-.3em;flex:none}

/* the 3D world fills the screen */
#world{position:fixed;inset:0;touch-action:none}
#world canvas{display:block;width:100%;height:100%;cursor:grab}
#world canvas:active{cursor:grabbing}

/* top bar */
#top{position:fixed;left:0;right:0;top:0;padding:max(8px,env(safe-area-inset-top)) 10px 0;display:flex;gap:8px;align-items:center;z-index:20;pointer-events:none}
#top>*{pointer-events:auto}
.lvl{position:relative;width:38px;height:38px;border-radius:50%;background:var(--glass);display:grid;place-items:center;box-shadow:var(--shadow);flex:none}
/* the same dark as the other buttons (user, 2026-10-05); the gold ring (progress to the next level) drawn over it */
.lvl::before{content:'';position:absolute;inset:2px;border-radius:50%;background:conic-gradient(var(--gold) calc(var(--p,0)*1%),rgba(255,255,255,.14) 0);
  -webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px));mask:radial-gradient(farthest-side,transparent calc(100% - 3px),#000 calc(100% - 2.5px))}
.lvl div{width:30px;height:30px;border-radius:50%;color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:14px;line-height:1}
.lvl small{display:block;font-size:5.5px;opacity:.8;letter-spacing:.04em}
.pill{display:flex;align-items:center;gap:6px;background:var(--glass);color:#fff;border-radius:22px;padding:6px 14px 6px 8px;box-shadow:var(--shadow);font-size:16px;min-height:38px}
.pill small{font-size:10px;opacity:.75;display:block;line-height:1}
.pill b{display:block;line-height:1.1;font-variant-numeric:tabular-nums}
.pill .ic{width:26px;height:26px}
#tools{display:flex;gap:6px;margin-left:auto}
.rb{width:38px;height:38px;border-radius:50%;background:var(--glass);color:#fff;display:grid;place-items:center;box-shadow:var(--shadow);font-size:15px}
.rb.on{background:#2f6b34;box-shadow:0 0 0 2px #7fca5f,var(--shadow)}   /* a tool that's switched on (Eco health) */
.note-nature p{display:flex;gap:6px;align-items:flex-start}

/* a status line under the top bar */
#status{position:fixed;left:50%;transform:translateX(-50%);top:calc(max(8px,env(safe-area-inset-top)) + 58px);z-index:19;background:var(--navy);color:#fff;border-radius:12px;padding:6px 12px;font-size:var(--small);max-width:calc(100vw - 32px);text-align:center}
#status[hidden]{display:none}
/* ?timings (features/timings/): how long loading and presses take, over its target in red */
#timings{position:fixed;left:max(8px,env(safe-area-inset-left));top:calc(max(8px,env(safe-area-inset-top)) + 58px);z-index:60;background:rgba(15,30,50,.85);color:#fff;border-radius:10px;padding:6px 10px;font-size:12px;line-height:1.45;max-width:min(320px,calc(100vw - 32px));pointer-events:none}
#timings .over{color:#ff9b8f}
#timings small{opacity:.7}

/* cards: one at a time, from the bottom on a phone, at the side on a wide screen */
#cards{position:fixed;left:0;right:0;bottom:0;z-index:30;display:flex;justify-content:center;padding:0 10px max(10px,env(safe-area-inset-bottom));pointer-events:none}
.card{pointer-events:auto;width:min(420px,100%);background:var(--panel);color:var(--ink);border-radius:var(--radius) var(--radius) 12px 12px;box-shadow:var(--shadow);padding:12px 14px;display:flex;flex-direction:column;gap:var(--gap)}
@media (min-width:800px){#cards{justify-content:flex-end;bottom:auto;top:76px;padding-right:12px}.card{border-radius:var(--radius)}
  #cards:has(.card.menu:not(.waiting)),#cards:has(.card.picker){justify-content:center;align-items:center;top:0;bottom:0;padding:0}}   /* the menu and the world picker (user, 2026-10-15): in the middle */
.card header{display:flex;align-items:center;gap:8px}
.card h2{margin:0;font-size:19px;flex:1}
.card h2.slide{overflow:hidden;white-space:nowrap;min-width:0}            /* one line; a long title slides (kit.js setCardTitle) */
.card h2.slide span{display:inline-block}
.card p{margin:0;color:var(--mute);font-weight:500;line-height:1.35}
.card .x{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--panel2)}
.stats{display:flex;gap:8px;flex-wrap:wrap}
.stat{display:flex;align-items:center;gap:6px;background:var(--panel2);border-radius:12px;padding:6px 10px}
.stat small{display:block;font-size:10px;color:var(--mute);line-height:1}
.stat b{display:block;font-variant-numeric:tabular-nums}
.buttons{display:flex;gap:8px;flex-wrap:wrap}
.buttons.stack{flex-direction:column}.buttons.stack .btn{width:100%;justify-content:center}   /* the menu's buttons */
.btn{min-height:44px;padding:0 16px;border-radius:12px;background:var(--panel2);display:inline-flex;align-items:center;gap:6px}
.btn.main{background:linear-gradient(#58b0ff,var(--blue) 55%,var(--blue-d));color:#fff;box-shadow:0 3px 0 #124a85}
details summary{cursor:pointer;color:var(--mute);font-size:var(--small)}

/* short messages */
.toast{position:fixed;left:50%;bottom:110px;transform:translateX(-50%);z-index:50;background:var(--glass);color:#fff;border-radius:12px;padding:8px 14px;max-width:calc(100vw - 32px);transition:opacity .4s}
.toast.gone{opacity:0}

/* forms on cards (sign-in and the like) */
.form{display:flex;flex-direction:column;gap:8px}
.field{display:flex;flex-direction:column;gap:4px;font-size:var(--small);color:var(--mute)}
.field input,.field select{font:inherit;font-size:16px;color:var(--ink);background:var(--panel2);border:2px solid var(--line);border-radius:10px;padding:8px 10px;min-height:44px;width:100%}
.field input:focus,.field select:focus{outline:none;border-color:var(--blue)}
.field input[type=color]{padding:4px;height:48px;cursor:pointer}
.field .row{display:flex;gap:8px}
.field .row>*{flex:1;min-width:0}
.card .note{color:var(--blue-d);font-weight:600}
.card .note.err{color:var(--red)}
.btn:disabled{opacity:.55}
/* who you are, in the top bar */
/* your stickman's portrait, in a dark round button like the tools (signed out: grey, with "Sign in" under it) */
.who{position:relative;width:38px;height:38px;border-radius:50%;background:var(--glass);box-shadow:var(--shadow);cursor:pointer;flex:none;padding:0;overflow:visible}
.who .face{width:100%;height:100%;border-radius:50%;display:block}
.who small{position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);white-space:nowrap;font-size:9px;font-weight:700;line-height:1;color:#fff;background:#2c2f36;border-radius:6px;padding:2px 5px;box-shadow:var(--shadow)}
.rb .ic{width:30px;height:30px}   /* the compass, leaf and scroll fill their button as your portrait does (user, 2026-10-05) */
.compass .ic.clock{width:36px;height:36px}
.compass .ring,.compass .dial{transition:transform .15s}
/* Preferences (features/prefs/): a switch a row */
.prefs{display:flex;flex-direction:column;gap:8px}
/* What's new (features/whatsnew/): each note, its date above it */
.whatsnew{display:flex;flex-direction:column;gap:10px}.whatsnew .wn{background:var(--panel2);border-radius:12px;padding:10px 12px}
.whatsnew small{color:var(--mute);font-size:var(--small)}.whatsnew p{margin:6px 0 0}
.pref{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--panel2);border-radius:12px;padding:10px 12px}
.pref span{display:flex;flex-direction:column;gap:2px}.pref small{color:var(--mute);font-size:var(--small)}
.pref input{width:22px;height:22px;flex:none;accent-color:#2f6b34}
.dot{width:18px;height:18px;border-radius:50%;border:2px solid #fff;flex:none}
/* the model gallery (?gallery): a name under each model */
.gallery-labels{position:fixed;inset:0;pointer-events:none;z-index:5}
.gallery-labels span{position:absolute;left:0;top:0;background:var(--glass);color:#fff;border-radius:8px;padding:3px 8px;font-size:var(--small);white-space:nowrap}
/* parts of a building's card (shares...), and lists on cards */
.parts{display:flex;flex-direction:column;gap:8px;border-top:2px solid var(--line);padding-top:8px}
.part{display:flex;flex-direction:column;gap:6px}
.part h3{margin:0;font-size:16px;display:flex;align-items:center;gap:6px}
/* a breeder's grass (features/business/): green over the worn dirt colour */
.grassbar{height:12px;border-radius:6px;background:#8a6c48;overflow:hidden}
.grassbar span{display:block;height:100%;background:#5fae48;border-radius:6px}
.card p.small{font-size:var(--small)}
.list{display:flex;flex-direction:column;gap:6px;max-height:46vh;overflow:auto}
.list .row{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--panel2);border-radius:12px;padding:8px 10px;text-align:left;min-height:48px}
.list .row b,.list .row span{display:block}
.list .row span{color:var(--mute);font-size:var(--small);font-weight:500}
.list .row .btn{min-height:40px;padding:0 12px;flex:none}
.list .link{flex:1;text-align:left}
/* the bottom buttons and the guide line above them */
#bottom{position:fixed;left:50%;transform:translateX(-50%);bottom:max(10px,env(safe-area-inset-bottom));z-index:25;display:flex;gap:10px}
#bottom[hidden]{display:none}
.bb{min-width:76px;min-height:58px;border-radius:16px;background:var(--glass);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:var(--shadow);font-size:var(--small)}
.bb .ic{width:32px;height:32px}
.bb .ic.big{width:40px;height:40px;margin:-4px 0}             /* (the 3D pictures: the hut, the pile of goods, the scroll; issues #296, #299) */
.bb .ic.big.inset{padding:4px}                                  /* (the scroll a little smaller, to match: user, 2026-10-20) */
#guide{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(max(10px,env(safe-area-inset-bottom)) + 66px);z-index:24;background:var(--panel);color:var(--ink);border-radius:12px;padding:6px 12px;font-size:var(--small);box-shadow:var(--shadow);max-width:calc(100vw - 32px);text-align:center}
#cards:not(:empty)~#guide,body:has(#cards .card) #guide,body:has(#cards .card) #bottom{display:none}
.list .row.locked{opacity:.6}
/* small forms inside a card part (a host's prices and Auto-sell) */
.row-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.row-form span{flex:1 1 0;min-width:0;color:var(--mute);font-weight:500}
.row-form{flex-wrap:nowrap}
/* where a building's goods go (Auto or My order): the choice, then a small Change button */
.where{display:flex;align-items:center;gap:8px;margin:-2px 0 6px}
.where span{flex:1 1 0;min-width:0;color:var(--mute);font-size:14px}
.where .btn{min-height:36px;padding:0 12px}
.row-form .num{width:76px;font:inherit;font-size:16px;padding:6px 8px;border-radius:10px;border:2px solid var(--line);background:var(--panel2);color:var(--ink);min-height:40px}
.row-form .num.wide{width:96px}   /* a haul quote's rates: 0.0005 */
.row-form .num.name{flex:1 1 auto;width:auto;min-width:0}   /* a building's name, its host's to change */
.row-form .tick{display:flex;align-items:center;gap:4px;color:var(--mute)}
.row-form .btn{min-height:40px}
/* a warehouse's prices: one row a good (good, buys at, sells at, save) */
.price-row{display:grid;grid-template-columns:1fr 72px 72px auto;align-items:center;gap:6px}
.price-row span{color:var(--mute);font-weight:500;min-width:0;overflow-wrap:anywhere}
.price-row.head span{font-size:13px}
.price-row .num{width:100%;font:inherit;font-size:16px;padding:6px 4px;text-align:center;-moz-appearance:textfield;appearance:textfield;border-radius:10px;border:2px solid var(--line);background:var(--panel2);color:var(--ink);min-height:40px;box-sizing:border-box}
.price-row .btn{min-height:40px;padding:0 10px}
.price-row .num::-webkit-inner-spin-button,.price-row .num::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.price-row.head span{text-align:center}.price-row.head span:first-child{text-align:left}
/* on a phone the top bar keeps every button on screen: your account shows as its colour dot (or a person, signed out) */
@media (max-width:480px){#top{gap:6px}.pill{padding:6px 10px 6px 6px}#tools{gap:5px}}
.where select.pick{flex:1 1 0;min-width:0;font:inherit;font-size:16px;padding:6px 8px;border-radius:10px;border:2px solid var(--line);background:var(--panel2);color:var(--ink);min-height:40px}
/* the establishment card (DESIGN.md, 2026-10-04): three numbers for investors, then tabs */
.stats.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.stats.three .stat{flex-direction:column;align-items:stretch;gap:2px;padding:7px 8px}
.stats.three .stat small{display:flex;align-items:center;gap:4px;line-height:1.15}
.stats.three .stat small .ic{width:1.1em;height:1.1em}
.stats.three .stat b{font-size:16px}
.stats.three .stat em{font-style:normal;font-size:10px;color:var(--mute);font-weight:500;line-height:1.15}
.est{display:flex;flex-direction:column;gap:var(--gap)}
.card:has(.est){max-height:calc(100vh - 96px);overflow:auto}
.tabs{display:flex;gap:4px;background:var(--panel2);border-radius:12px;padding:4px}
.tabs button{flex:1;min-height:40px;border-radius:9px;color:var(--mute);font-size:14px}
.tabs button[aria-selected=true]{background:var(--panel);color:var(--ink);box-shadow:0 1px 3px rgba(10,30,60,.18)}
.pane{display:flex;flex-direction:column;gap:10px}
.pane[hidden]{display:none}
.chip{align-self:flex-start;display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 12px;font-size:14px;background:var(--panel2)}
.chip i{width:9px;height:9px;border-radius:50%;background:var(--mute)}
.chip.ok{background:color-mix(in srgb,var(--green) 18%,var(--panel))}.chip.ok i{background:var(--green)}
.chip.bad{background:color-mix(in srgb,var(--red) 18%,var(--panel))}.chip.bad i{background:var(--red)}
.rows{display:flex;flex-direction:column;gap:6px}
.rows .row{display:flex;align-items:center;gap:8px;background:var(--panel2);border-radius:12px;padding:8px 10px;min-height:44px}
.rows .row span{flex:1;min-width:0;font-weight:500;color:var(--mute)}
.rows .row b{font-variant-numeric:tabular-nums}
.bars{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;align-items:end;height:84px;padding:0 2px;border-bottom:2px solid var(--line)}
.bars div{background:var(--green);border-radius:5px 5px 0 0}
.bars div.neg{background:var(--red)}
.bars div:last-child{outline:2px solid var(--ink);outline-offset:-2px}
.days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;font-size:10px;color:var(--mute);text-align:center;font-variant-numeric:tabular-nums;white-space:nowrap}
.holder{display:flex;align-items:center;gap:8px;padding:8px 10px;background:var(--panel2);border-radius:12px;min-height:44px}
.holder .rank{width:18px;color:var(--mute);font-size:13px;text-align:center;font-variant-numeric:tabular-nums}
.holder .dot{width:14px;height:14px;border-radius:50%;flex:none;border:2px solid var(--panel)}
.holder .name{flex:1;min-width:0;display:flex;flex-direction:column}
.holder .name small{font-size:11px;color:var(--mute);font-weight:500}
.holder b{font-variant-numeric:tabular-nums;text-align:right}
.holder b small{display:block;font-size:11px;color:var(--mute);font-weight:500}
.holder.you{outline:2px dashed var(--blue);outline-offset:-2px}
button.holder{width:100%;text-align:left}                  /* a shareholder's row opens their card */
/* a player's name that opens their card, and that card's top (user, 2026-10-05) */
.owner-name.link{text-decoration:underline dotted;text-underline-offset:3px;font-weight:700}
.player-top{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:700}
.player-face{width:56px;height:56px;border-radius:50%;background:var(--glass);flex:none}
.group{display:flex;flex-direction:column;gap:8px;border:2px solid var(--line);border-radius:12px;padding:10px}
.group h3{margin:0;font-size:15px}
.group .where{margin:0}
.group .price-row{grid-template-columns:1fr 72px 72px}
.row-form select.pick{flex:0 1 auto;max-width:55%;font:inherit;font-size:16px;padding:6px 8px;border-radius:10px;border:2px solid var(--line);background:var(--panel2);color:var(--ink);min-height:40px}
.switch{display:inline-flex;align-items:center;gap:8px;color:var(--ink)}
.switch input{width:44px;height:26px;appearance:none;border-radius:999px;background:var(--line);position:relative;cursor:pointer;margin:0;transition:background .15s}
.switch input::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--panel);transition:left .15s}
.switch input:checked{background:var(--green)}
.switch input:checked::after{left:21px}
.btn.main:disabled{opacity:.5}
@media (prefers-reduced-motion:reduce){.switch input,.switch input::after{transition:none}}
.group .where span{font-weight:500}
/* the Build list (DESIGN.md, 2026-10-04): a picture, what it does and the cost of each building, grouped by level */
.card:has(.buildlist){max-height:calc(100vh - 96px);overflow:auto}
.buildlist{display:flex;flex-direction:column;gap:6px}
.list .row.bld{justify-content:flex-start;gap:10px;align-items:center;flex:none}   /* (never squashed: the list scrolls instead) */
.row.bld .bpic{width:64px;height:64px;flex:none;border-radius:10px;background:var(--panel)}
/* roads in the Build list (features/roads/): a bit of track across grass; cobble with its stones */
.row.bld .bpic.road{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22%238fca45%22/%3E%3Cpath%20d%3D%22M0%2044%20L44%200%20L64%200%20L64%2020%20L20%2064%20L0%2064%20Z%22%20fill%3D%22%23a8895b%22/%3E%3C/svg%3E") center/cover}
.row.bld .bpic.road.cobble{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22%238fca45%22/%3E%3Cpath%20d%3D%22M0%2044%20L44%200%20L64%200%20L64%2020%20L20%2064%20L0%2064%20Z%22%20fill%3D%22%238f8270%22/%3E%3Ccircle%20cx%3D%222.3%22%20cy%3D%2253.2%22%20r%3D%222.4%22%20fill%3D%22%23b3ada2%22/%3E%3Ccircle%20cx%3D%226.5%22%20cy%3D%2257.5%22%20r%3D%222.4%22%20fill%3D%22%239c968c%22/%3E%3Ccircle%20cx%3D%2210.8%22%20cy%3D%2261.7%22%20r%3D%222.4%22%20fill%3D%22%23aaa49a%22/%3E%3Ccircle%20cx%3D%226.5%22%20cy%3D%2249.0%22%20r%3D%222.4%22%20fill%3D%22%238a857c%22/%3E%3Ccircle%20cx%3D%2210.8%22%20cy%3D%2253.2%22%20r%3D%222.4%22%20fill%3D%22%23b3ada2%22/%3E%3Ccircle%20cx%3D%2215.0%22%20cy%3D%2257.5%22%20r%3D%222.4%22%20fill%3D%22%239c968c%22/%3E%3Ccircle%20cx%3D%2210.8%22%20cy%3D%2244.7%22%20r%3D%222.4%22%20fill%3D%22%23aaa49a%22/%3E%3Ccircle%20cx%3D%2215.0%22%20cy%3D%2249.0%22%20r%3D%222.4%22%20fill%3D%22%238a857c%22/%3E%3Ccircle%20cx%3D%2219.3%22%20cy%3D%2253.2%22%20r%3D%222.4%22%20fill%3D%22%23b3ada2%22/%3E%3Ccircle%20cx%3D%2215.0%22%20cy%3D%2240.5%22%20r%3D%222.4%22%20fill%3D%22%239c968c%22/%3E%3Ccircle%20cx%3D%2219.3%22%20cy%3D%2244.7%22%20r%3D%222.4%22%20fill%3D%22%23aaa49a%22/%3E%3Ccircle%20cx%3D%2223.5%22%20cy%3D%2249.0%22%20r%3D%222.4%22%20fill%3D%22%238a857c%22/%3E%3Ccircle%20cx%3D%2219.3%22%20cy%3D%2236.2%22%20r%3D%222.4%22%20fill%3D%22%23b3ada2%22/%3E%3Ccircle%20cx%3D%2223.5%22%20cy%3D%2240.5%22%20r%3D%222.4%22%20fill%3D%22%239c968c%22/%3E%3Ccircle%20cx%3D%2227.8%22%20cy%3D%2244.7%22%20r%3D%222.4%22%20fill%3D%22%23aaa49a%22/%3E%3Ccircle%20cx%3D%2223.5%22%20cy%3D%2232.0%22%20r%3D%222.4%22%20fill%3D%22%238a857c%22/%3E%3Ccircle%20cx%3D%2227.8%22%20cy%3D%2236.2%22%20r%3D%222.4%22%20fill%3D%22%23b3ada2%22/%3E%3Ccircle%20cx%3D%2232.0%22%20cy%3D%2240.5%22%20r%3D%222.4%22%20fill%3D%22%239c968c%22/%3E%3Ccircle%20cx%3D%2227.8%22%20cy%3D%2227.8%22%20r%3D%222.4%22%20fill%3D%22%23aaa49a%22/%3E%3Ccircle%20cx%3D%2232.0%22%20cy%3D%2232.0%22%20r%3D%222.4%22%20fill%3D%22%238a857c%22/%3E%3Ccircle%20cx%3D%2236.2%22%20cy%3D%2236.2%22%20r%3D%222.4%22%20fill%3D%22%23b3ada2%22/%3E%3Ccircle%20cx%3D%2232.0%22%20cy%3D%2223.5%22%20r%3D%222.4%22%20fill%3D%22%239c968c%22/%3E%3Ccircle%20cx%3D%2236.2%22%20cy%3D%2227.8%22%20r%3D%222.4%22%20fill%3D%22%23aaa49a%22/%3E%3Ccircle%20cx%3D%2240.5%22%20cy%3D%2232.0%22%20r%3D%222.4%22%20fill%3D%22%238a857c%22/%3E%3Ccircle%20cx%3D%2236.2%22%20cy%3D%2219.3%22%20r%3D%222.4%22%20fill%3D%22%23b3ada2%22/%3E%3Ccircle%20cx%3D%2240.5%22%20cy%3D%2223.5%22%20r%3D%222.4%22%20fill%3D%22%239c968c%22/%3E%3Ccircle%20cx%3D%2244.7%22%20cy%3D%2227.8%22%20r%3D%222.4%22%20fill%3D%22%23aaa49a%22/%3E%3Ccircle%20cx%3D%2240.5%22%20cy%3D%2215.0%22%20r%3D%222.4%22%20fill%3D%22%238a857c%22/%3E%3Ccircle%20cx%3D%2244.7%22%20cy%3D%2219.3%22%20r%3D%222.4%22%20fill%3D%22%23b3ada2%22/%3E%3Ccircle%20cx%3D%2249.0%22%20cy%3D%2223.5%22%20r%3D%222.4%22%20fill%3D%22%239c968c%22/%3E%3Ccircle%20cx%3D%2244.7%22%20cy%3D%2210.8%22%20r%3D%222.4%22%20fill%3D%22%23aaa49a%22/%3E%3Ccircle%20cx%3D%2249.0%22%20cy%3D%2215.0%22%20r%3D%222.4%22%20fill%3D%22%238a857c%22/%3E%3Ccircle%20cx%3D%2253.2%22%20cy%3D%2219.3%22%20r%3D%222.4%22%20fill%3D%22%23b3ada2%22/%3E%3Ccircle%20cx%3D%2249.0%22%20cy%3D%226.5%22%20r%3D%222.4%22%20fill%3D%22%239c968c%22/%3E%3Ccircle%20cx%3D%2253.2%22%20cy%3D%2210.8%22%20r%3D%222.4%22%20fill%3D%22%23aaa49a%22/%3E%3Ccircle%20cx%3D%2257.5%22%20cy%3D%2215.0%22%20r%3D%222.4%22%20fill%3D%22%238a857c%22/%3E%3Ccircle%20cx%3D%2253.2%22%20cy%3D%222.3%22%20r%3D%222.4%22%20fill%3D%22%23b3ada2%22/%3E%3Ccircle%20cx%3D%2257.5%22%20cy%3D%226.5%22%20r%3D%222.4%22%20fill%3D%22%239c968c%22/%3E%3Ccircle%20cx%3D%2261.7%22%20cy%3D%2210.8%22%20r%3D%222.4%22%20fill%3D%22%23aaa49a%22/%3E%3Ccircle%20cx%3D%2261.7%22%20cy%3D%222.3%22%20r%3D%222.4%22%20fill%3D%22%238a857c%22/%3E%3C/svg%3E") center/cover}
.row.bld .bpic.road.lamp{background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2064%2064%22%3E%3Crect%20width%3D%2264%22%20height%3D%2264%22%20fill%3D%22%2326305a%22%2F%3E%3Cpath%20d%3D%22M0%2044%20L44%200%20L64%200%20L64%2020%20L20%2064%20L0%2064%20Z%22%20fill%3D%22%237d776c%22%2F%3E%3Cpath%20d%3D%22M8%2040%20L40%208%20M24%2056%20L56%2024%22%20stroke%3D%22%235f5a52%22%20stroke-width%3D%222%22%2F%3E%3Ccircle%20cx%3D%2236%22%20cy%3D%2216%22%20r%3D%2213%22%20fill%3D%22%23ffd77a%22%20opacity%3D%22.35%22%2F%3E%3Crect%20x%3D%2234.5%22%20y%3D%2218%22%20width%3D%223%22%20height%3D%2234%22%20fill%3D%22%232c2a28%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%2250%22%20width%3D%2210%22%20height%3D%224%22%20fill%3D%22%238a8478%22%2F%3E%3Crect%20x%3D%2231%22%20y%3D%2211%22%20width%3D%2210%22%20height%3D%229%22%20fill%3D%22%23ffd77a%22%20stroke%3D%22%232c2a28%22%20stroke-width%3D%221.5%22%2F%3E%3Cpath%20d%3D%22M29%2011%20L36%206%20L43%2011%20Z%22%20fill%3D%22%232c2a28%22%2F%3E%3C%2Fsvg%3E") center/cover}
.row.bld .btext{display:flex;flex-direction:column;gap:2px;min-width:0}
.row.bld .needs{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.row.bld .need{display:inline-flex;align-items:center;gap:3px;background:var(--panel);border-radius:999px;padding:2px 8px 2px 4px}
.row.bld .need svg{width:20px;height:20px}
.row.bld .btime{display:inline-flex;align-items:center;gap:4px;color:var(--mute);font-size:var(--small);margin-top:2px}.row.bld .btime svg{width:16px;height:16px}
.row.bld .need b{font-size:13px}
.buildlist h3.blvl{flex:none;margin:6px 0 0;font-size:13px;color:var(--mute);letter-spacing:.04em;text-transform:uppercase;display:flex;align-items:center;gap:8px}
.buildlist h3.blvl::after{content:"";flex:1;height:2px;background:var(--line)}
.buildlist .list{display:flex;flex-direction:column;gap:6px}
.brow{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:var(--panel2);border-radius:12px;padding:6px 10px 6px 6px;min-height:76px}
button.brow:hover{outline:2px solid var(--line)}
.brow img,.brow .noimg{width:64px;height:64px;flex:none;border-radius:10px;background:var(--panel)}
.brow .noimg{display:grid;place-items:center;color:var(--mute)}
.brow .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.brow b{font-size:15px}
.brow .does{font-size:12px;color:var(--mute);font-weight:500;line-height:1.3}
.brow .cost{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12px;font-variant-numeric:tabular-nums}
.brow .cost .coins{font-weight:700;display:inline-flex;align-items:center;gap:3px}
.brow .cost .mat{display:inline-flex;align-items:center;gap:3px;color:var(--mute);font-weight:600}
.brow .cost .ic{width:14px;height:14px}
.brow.locked{opacity:.55}
.brow .badge{align-self:flex-start;font-size:11px;border-radius:8px;padding:3px 7px;background:var(--panel);color:var(--mute);display:inline-flex;align-items:center;gap:4px}
.brow .badge .ic{width:16px;height:16px;padding:2px;border-radius:4px;background:var(--mute)}
.brow .go{color:var(--blue);width:22px;height:22px}

/* the world picker (features/worlds): the page at /dividends, before any world loads */
.pill.brand{padding:8px 16px;font-size:16px}
.card.picker,.card:has(.newworld),.card:has(.closeworld){max-height:calc(100vh - 96px);overflow:auto}
.worlds{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.worlds li{display:flex;align-items:center;gap:8px}
.world{flex:1;display:flex;flex-direction:column;gap:2px;background:var(--panel2);border-radius:12px;padding:10px 12px;color:inherit;text-decoration:none;min-height:44px}
a.world:hover{outline:2px solid var(--blue)}
.world.off{opacity:.75}
.world .name{display:flex;align-items:center;gap:8px;font-size:17px}
.world em{font-style:normal;font-size:10px;background:var(--gold);color:#fff;border-radius:8px;padding:2px 7px}
.world small{color:var(--mute);font-size:var(--small);font-weight:500}
.world small.state{color:var(--blue-d);font-weight:600}
.world small.state.err{color:var(--red)}

/* a player's name with a dot in their colour (kit.js who()) */
.owner-name,.list .row .owner-name{display:inline;white-space:nowrap;color:var(--ink);font-weight:700}
.owner-name .dot,.list .row .owner-name .dot{display:inline-block;width:12px;height:12px;margin:0 4px 0 1px;vertical-align:-1px;border:2px solid var(--line)}
/* a card waiting behind one that stays until acknowledged (kit.js showCard hold) */
#cards .card.waiting{display:none}
/* a forest's logs left and growth (user, 2026-10-05): two tiles, each with a bar */
.stats.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.stat.meter{flex-direction:column;align-items:stretch;gap:3px;padding:7px 10px}
.stat.meter small{display:flex;align-items:center;gap:4px;line-height:1.15}
.stat.meter small .ic{width:1.1em;height:1.1em}
.stat.meter b{font-size:16px}
.stat.meter .bar{display:block;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.stat.meter .bar i{display:block;height:100%;background:var(--green);border-radius:3px}
.forest-detail{display:flex;flex-direction:column;gap:8px}
/* the Trade card (user, 2026-10-05): a sideways row of goods, then the chosen good's prices, graph and stores */
.trade{display:flex;flex-direction:column;gap:10px;min-width:0}
.chips{display:flex;gap:6px;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 2px 6px;margin:0 -2px;scrollbar-width:thin}
.chip{flex:none;display:flex;align-items:center;gap:6px;min-height:40px;padding:4px 12px 4px 6px;border-radius:20px;background:var(--panel2);color:var(--mute);font-size:14px;font-weight:700;scroll-snap-align:center;white-space:nowrap}
.chip .ic{width:28px;height:28px}
.chip[aria-selected=true]{background:var(--panel);color:var(--ink);box-shadow:0 0 0 2px var(--gold),0 1px 3px rgba(10,30,60,.18)}
.trade-good{display:flex;flex-direction:column;gap:10px}
.prices{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.price{background:var(--panel2);border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.price small{display:flex;align-items:center;gap:5px;color:var(--mute);font-size:12px;font-weight:700}
.price small i,.legend i{display:inline-block;width:10px;height:10px;border-radius:50%}
.price b{display:flex;align-items:center;gap:5px;font-size:24px;font-variant-numeric:tabular-nums}
.price b .ic{width:22px;height:22px}
.price em{font-style:normal;font-size:12px;color:var(--mute);font-weight:600}
.price em.up{color:var(--green)}.price em.down{color:var(--red)}
.graph{display:flex;flex-direction:column;gap:6px}
.ranges button{min-height:34px}
.chart{width:100%;height:auto;display:block}
.chart .grid{stroke:var(--line);stroke-width:1}
.chart .axis{fill:var(--mute);font-size:10px;font-weight:600}
.legend{display:flex;gap:14px;font-size:12px;color:var(--mute);font-weight:700}
.legend span{display:flex;align-items:center;gap:5px}
/* the Shares card (user, 2026-10-05): three numbers in a row; a seller's line; the sell box's two fields side by side */
.prices.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.prices.three .price b{font-size:20px}
.prices.three .price b .ic{width:18px;height:18px}
.who-sells{display:flex;flex-direction:column;min-width:0}
.trade .form .row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.row.offer{flex-direction:column;align-items:stretch}         /* an offer: who and how many, then its buttons */
.row.offer .buttons{flex-wrap:nowrap}.row.offer .buttons .btn{flex:1;justify-content:center;min-height:40px;padding:0 8px}
.card:has(.trade){max-height:calc(100vh - 96px);overflow:auto}   /* the Trade and Shares cards scroll when tall */
/* the rebuild's buildings (features/business/, features/jobs/): a long building card scrolls; the line that says what to tap */
.card.bcard{max-height:calc(100vh - 96px);overflow:hidden auto}   /* (never sideways: user, 2026-10-20: "shouldn't have to scroll on a card") */
.card.bcard .part h3{margin:12px 0 6px;font-size:15px}
.card.bcard .part h4{margin:10px 0 4px;font-size:14px}
.card.bcard .row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:4px 0}
.card.bcard .row > span:first-child{flex:1 1 160px}
.card.bcard .row input{width:64px}
.toast.pick{top:64px;bottom:auto;transition:none}
.toast.pick[hidden]{display:none}
.card.bcard .rows .row span span{flex:none}
/* the building card (features/business/card.js; issue #212): a needs-attention line, tabs, bars, small facts, and
   settings shown as lines whose value sits in a soft box: tap it to change it (user, 2026-10-15: "soft", no pencil) */
.card.bcard header .bc-pic{width:38px;height:38px;border-radius:12px;background:var(--panel2);display:grid;place-items:center;flex:none}
.card.bcard header .bc-pic .ic{width:26px;height:26px}
.card.bcard header .bc-pic .pic3{width:32px;height:32px}       /* (a transport base: a crate with an arrow, drawn in 3D) */
.pl .pb .pbi{width:26px;height:26px}
.card.bcard .bc-kind{font-size:var(--small)}
.bc-body{display:flex;flex-direction:column;gap:10px}
.bc-alert{display:flex;align-items:center;gap:10px;border-radius:12px;padding:8px 8px 8px 12px;border-left:4px solid var(--red);background:color-mix(in srgb,var(--red) 14%,var(--panel))}
.bc-alert.amber{border-left-color:var(--gold);background:color-mix(in srgb,var(--gold) 18%,var(--panel))}
.bc-alert>span{flex:1;min-width:0;font-size:14px;line-height:1.3}
.bc-alert small{display:block;color:var(--mute);font-weight:500;font-size:var(--small)}
.btn.small{min-height:38px;padding:0 12px;font-size:14px;flex:none}
.bc-tab{display:flex;flex-direction:column;gap:10px}
.bc-over,.bc-run,.bc-shares{display:flex;flex-direction:column;gap:10px}
.bc-meters{display:flex;flex-direction:column;gap:10px}
.bc-meter{display:grid;grid-template-columns:auto 1fr auto;gap:4px 8px;align-items:center}
.bc-meter>.ic{width:22px;height:22px;grid-row:span 2}
.bc-meter .lab,.bc-meter .val{font-size:13px}
.bc-meter .val{text-align:right;font-variant-numeric:tabular-nums}
.bc-meter.marks{padding-bottom:12px}
.bc-bar{grid-column:2 / 4;height:10px;border-radius:6px;background:var(--line);position:relative}
.bc-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:6px;background:var(--green)}
.bc-bar i.low{background:var(--red)}
.bc-bar i.coming{background:repeating-linear-gradient(135deg,var(--green) 0 4px,transparent 4px 8px);opacity:.75}
.bc-bar u{position:absolute;top:-3px;bottom:-3px;width:2px;background:var(--ink);opacity:.5;text-decoration:none}
.bc-bar em{position:absolute;top:13px;transform:translateX(-50%);font-style:normal;font-size:10px;color:var(--mute);font-weight:500;white-space:nowrap}
.bc-bar em.r{transform:translateX(-100%)}
.bc-bar em.l{transform:none}
.bc-people{display:inline-flex;gap:2px}
.bc-people .wface{width:24px;height:24px}
/* a worker's face (card.js workerFace; issue #294), like your stickman's portrait; a place left or a hired one faded */
.wface{width:26px;height:26px;border-radius:50%;flex:none;display:block;background:var(--panel2)}
.wface.off{opacity:.35;filter:grayscale(1)}
.bc-strip .bc-badge.face{position:relative;overflow:visible;padding:0}
.bc-strip .bc-badge.face .wface{width:100%;height:100%;background:none}
.bc-strip .bc-badge.crate .wface{padding:2px}           /* (10% bigger, twice: user, 2026-10-20) */
/* the scroll its first size and not cut round (a face is), so its corners sit in front of the ring (user, 2026-10-20) */
.bc-strip .bc-badge.scroll .wface{padding:5px;border-radius:0}
.bc-strip .bc-badge.face i{position:absolute;right:-8px;bottom:-6px;font-style:normal;font-size:10px;line-height:1;padding:2px 4px;border-radius:8px;
  background:var(--pc,var(--slate));color:#fff}
.bc-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.bc-fact{background:var(--panel2);border-radius:12px;padding:7px 10px;min-width:0}
.bc-fact small{display:block;font-size:11px;color:var(--mute);font-weight:500}
.bc-fact b{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.bc-acts .btn{flex:1 1 auto}
.bc-group{display:flex;flex-direction:column}
.bc-group h3{margin:6px 0 2px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.bc-set{display:flex;align-items:center;gap:8px;padding:9px 2px;border-bottom:1px solid var(--line);width:100%;text-align:left;min-height:52px}
.bc-group>.bc-set:last-child{border-bottom:0}
.bc-set .k{flex:1;min-width:0}
.bc-set .k small{display:block;color:var(--mute);font-weight:500;font-size:var(--small);line-height:1.3}
.bc-set .v{font-variant-numeric:tabular-nums;text-align:right;max-width:58%;min-height:38px;padding:4px 12px;border-radius:12px;background:var(--panel2);display:inline-flex;align-items:center}
.bc-set:active .v,.bc-set[aria-expanded=true] .v{background:var(--line)}
.bc-set .v.none{color:var(--red)}
.bc-set .v.danger{background:var(--red);color:#fff;font-weight:700}
.bc-set .v.go{background:linear-gradient(color-mix(in srgb,var(--gm) 72%,#fff),var(--gm) 60%);color:#fff;font-weight:700;box-shadow:0 3px 0 color-mix(in srgb,var(--gm) 60%,#000)}
/* a list always on show (card.js setting shown: the pill boxes; issue #294): its line, not tappable, the boxes under it */
.bc-set.act .btn{flex:none;min-height:38px;padding:0 14px}   /* (a line with its button on the right: issue #519) */
.bc-set.shown{border-bottom:0;min-height:0;padding-bottom:4px}
.bc-set.shown .v{background:none;padding:0;min-height:0;color:var(--mute);font-size:var(--small)}
.bc-edit.shown{margin-bottom:10px}
.bc-switch{position:relative;width:46px;height:28px;border-radius:14px;background:var(--line);flex:none}
.bc-switch::after{content:'';position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:var(--panel);transition:left .15s}
.bc-switch[aria-checked=true]{background:var(--green)}
.bc-switch[aria-checked=true]::after{left:21px}
.bc-edit{display:flex;flex-direction:column;gap:8px;padding:10px;margin:2px 0 6px;border-radius:12px;background:var(--panel2)}
.bc-edit .row{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}
.card.bcard .bc-edit .row input{flex:1;min-width:0;width:auto;font:inherit;font-size:16px;color:var(--ink);min-height:44px;border-radius:10px;border:2px solid var(--line);background:var(--panel);padding:0 10px}
.bc-edit .rows .row{background:var(--panel)}
.bc-holder{display:grid;grid-template-columns:1fr auto;gap:6px 8px;align-items:center;padding:6px 0}
.bc-holder .bc-bar{grid-column:1 / 3;height:6px}
@media (prefers-reduced-motion:reduce){.bc-switch::after{transition:none}}
/* a slider for a number with a limit (card.js slider; user, 2026-10-20): its value in a soft box, the track below; two
   handles on one track for a camp's food (two range inputs over each other: only their thumbs take a touch) */
.bc-slide{flex-direction:column;align-items:stretch;gap:2px}
.bc-slide .top{display:flex;align-items:center;gap:8px}
.bc-slide .track{position:relative;height:36px;margin:0 4px}
.bc-slide .rail,.bc-slide .fill{position:absolute;top:15px;height:6px;border-radius:3px}
.bc-slide .rail{left:0;right:0;background:var(--line)}
.bc-slide .fill{background:var(--green)}
.bc-slide .dots u{position:absolute;top:16px;width:4px;height:4px;margin-left:-2px;border-radius:50%;background:var(--mute);opacity:.45;text-decoration:none}
.bc-slide input[type=range]{position:absolute;left:-11px;right:-11px;width:calc(100% + 22px);top:0;height:36px;margin:0;background:none;-webkit-appearance:none;appearance:none;pointer-events:none}
.bc-slide input[type=range]::-webkit-slider-runnable-track{height:36px;background:none}
.bc-slide input[type=range]::-moz-range-track{height:36px;background:none}
.bc-slide input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:26px;height:26px;margin-top:5px;border-radius:50%;background:var(--panel);border:3px solid var(--green);box-shadow:0 1px 4px rgba(0,0,0,.3);cursor:grab}
.bc-slide input[type=range]::-moz-range-thumb{pointer-events:auto;width:20px;height:20px;border-radius:50%;background:var(--panel);border:3px solid var(--green);box-shadow:0 1px 4px rgba(0,0,0,.3);cursor:grab}
.bc-slide input[type=range]:focus-visible::-webkit-slider-thumb{outline:3px solid var(--blue);outline-offset:2px}
.bc-slide.dragging .v{background:var(--line)}
.bc-slide .names{display:flex;justify-content:space-between;color:var(--mute);font-size:11px;font-weight:500}
.bc-slide.two input[type=range]:first-of-type::-webkit-slider-thumb{border-color:var(--gold)}
.bc-slide.two input[type=range]:first-of-type::-moz-range-thumb{border-color:var(--gold)}
.bc-slide.two .names small:first-child::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--gold);margin-right:4px}
.bc-slide.two .names small:last-child::before{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);margin-right:4px}
/* the Available and Approved boxes of small cards (card.js boxes; user, 2026-10-20) */
.bc-boxes{display:flex;flex-direction:column;gap:8px}
.bc-boxes .box{border-radius:12px;padding:8px;background:var(--panel);display:flex;flex-direction:column;gap:6px;border:2px solid var(--line)}
.bc-boxes .box.avail{border:2px dashed var(--line)}
.bc-boxes h4{margin:0;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.bc-boxes h4 small{text-transform:none;letter-spacing:0;font-weight:500}
/* a sheet over a building's card (index.js openSheet): the offers to buy from, a transport base's queue */
.card.sheet{position:fixed;z-index:45;left:50%;transform:translateX(-50%);bottom:max(10px,env(safe-area-inset-bottom));width:min(420px,calc(100vw - 20px));max-height:min(78vh,640px);overflow:auto}
@media (min-width:800px){.card.sheet{left:auto;right:12px;transform:none;top:76px;bottom:auto}}
.card.sheet.base{z-index:46}
.offers,.jobs{display:flex;flex-direction:column;gap:6px}
.offer{display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"f t p" "f t b";gap:2px 8px;align-items:center;border-radius:12px;padding:8px;background:var(--panel2)}
.offer:first-child{box-shadow:0 0 0 2px var(--green)}
.offer canvas.flag{grid-area:f;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.offer .ot{grid-area:t;min-width:0;display:flex;flex-direction:column;gap:1px}
.offer .ot small,.offer .op small{color:var(--mute);font-size:var(--small);font-weight:500;line-height:1.25}
.offer .ot .link{text-align:left;color:var(--blue-d);font-size:var(--small);font-weight:700;padding:2px 0;display:inline-flex;align-items:center;gap:4px}
.offer .ot .ic{width:14px;height:14px}
.offer .op{grid-area:p;text-align:right;display:flex;flex-direction:column}
.offer .op b{font-size:17px;font-variant-numeric:tabular-nums}
.offer .ob{grid-area:b;display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}
.offer .ob .btn{min-height:38px;padding:0 14px;font-size:14px}
.offer .ob .btn:not(.main){background:var(--panel);box-shadow:inset 0 0 0 2px var(--line)}
.offer.walk{opacity:.92}
.job{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:center;border-radius:12px;padding:8px;background:var(--panel2)}
.job .rank{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--line);font-size:12px;grid-row:span 2}
.job .jt{display:flex;flex-direction:column;min-width:0}
.job .jt small,.job .jw{color:var(--mute);font-size:var(--small);font-weight:500}
.job .jw{grid-column:2}
.job .btn{grid-column:2;justify-self:start;min-height:36px;padding:0 12px;font-size:14px}
.job.yours{box-shadow:0 0 0 2px var(--blue)}
.job.yours .rank{background:var(--blue);color:#fff}
/* Your look (features/look/): the stickman and flag side by side, colour swatches */
.look-preview{display:flex;gap:16px;align-items:center;justify-content:center}
.look-man{width:120px;height:120px}
.look-flag canvas.flag,.flag{border-radius:4px;box-shadow:var(--shadow)}
.look-flag{display:flex;justify-content:center;margin:4px 0 10px}
.swatches{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}
.swatch{width:26px;height:26px;border-radius:50%;border:2px solid var(--line);position:relative}
.swatch[aria-checked=true]{outline:3px solid var(--ink,#222);outline-offset:2px}
.swatch.locked{border-style:dashed}
.swatch.locked::after{content:'🔒';position:absolute;right:-5px;bottom:-5px;width:16px;height:16px;border-radius:50%;background:var(--panel);display:grid;place-items:center;font-size:9px;box-shadow:var(--shadow)}
.look-colour{margin-bottom:6px}

/* guilds (features/guilds/): a guild's flag in its list and card; buttons in its rows stand out from the row */
.guilds .list .row{justify-content:flex-start}
.gflag canvas{display:block;border-radius:4px;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.gtext{display:flex;flex-direction:column;min-width:0}
.gcard .rows .row .btn:not(.main){background:var(--panel);min-height:40px;padding:0 14px;flex:none}
/* a site, step by step (features/business: user, 2026-10-15): a checklist down its card; done steps ticked and folded to
   one line, the one it's at open */
.steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.step{border-radius:12px;padding:6px 10px;background:var(--panel2);display:flex;flex-direction:column;gap:6px}
.step .shead{display:flex;align-items:center;gap:8px;min-height:28px}
.step .shead i{flex:none;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:13px;background:var(--line);color:var(--mute)}
.step .shead span{flex:1 1 0;min-width:0;color:var(--mute);font-weight:500;font-size:var(--small)}
.step p.small{margin:0}
.step.done .shead i{background:var(--green);color:#fff}
.step.now{background:var(--panel);box-shadow:0 0 0 2px var(--gold)}
.step.now .shead i{background:var(--gold);color:#fff}
.step.todo{opacity:.6}
.step .parts{border-top:none;padding-top:0}
.bar{height:12px;border-radius:999px;background:var(--line);overflow:hidden}
.bar i{display:block;height:100%;width:0;background:var(--green);border-radius:999px;transition:width 1s linear}
/* every player's business is a guild (user, 2026-10-19; features/guilds, ui/topbar.js) */
.pill.guild{border:0;cursor:pointer;font:inherit}
.pill.guild[hidden]{display:none}
.pill .pflag canvas{display:block;width:26px;height:18px;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.6)}
.bc-owner{display:inline;padding:0;background:none;color:var(--blue-d);font-weight:700;font-size:inherit;text-align:left}
.card.bcard .bc-kind .bc-owner b{display:inline}
.bc-from{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.bc-from .ic{width:18px;height:18px}
.g-money .row{display:flex;gap:8px;align-items:center;margin-top:8px}
.g-money .row input{flex:1;min-width:0;min-height:44px}
.g-money .price b{display:flex;align-items:center;gap:4px;font-size:20px}
.g-money .price .ic{width:22px;height:22px}
.bc-pic.gflag canvas{display:block;border-radius:4px}
.g-buildings .row{justify-content:flex-start;gap:10px;width:100%}
.g-buildings .row .gtext{flex:1;min-width:0}
.g-buildings .dot{flex:none;width:12px;height:12px;border-radius:50%;background:var(--green)}
.g-buildings .dot.amber{background:var(--gold)}
.g-buildings .dot.red{background:var(--red)}
.chips.stack{flex-direction:column;overflow:visible}
.chip.choice{flex-direction:column;align-items:flex-start;white-space:normal;text-align:left;padding:10px 12px;border-radius:12px;gap:2px;width:100%}
.chip.choice small{font-weight:500;color:var(--mute)}
/* News (features/news; issue #276) */
.bb,.pill.coins{position:relative}
.pill.coins{border:0;cursor:pointer;font:inherit}
.news-dot{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#f08a24;color:#fff;font-size:12px;font-weight:700;font-style:normal;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #fff}
.news{display:flex;flex-direction:column;gap:6px}
.news-line{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;background:var(--panel2);border-radius:12px;padding:8px 10px;font-size:14px;line-height:1.3}
.news-line .ic{width:24px;height:24px;flex:none}
.news-line small{display:block;color:var(--mute);font-weight:500;font-size:var(--small);margin-top:2px}
.news-line.new{box-shadow:inset 3px 0 0 #f08a24}
.news-line.red,.news-line.amber{background:color-mix(in srgb,#f08a24 14%,var(--panel))}   /* (user, 2026-10-19: "change the notifications to orange too") */
.bb .gflag{position:relative;display:block}
.bb .gflag > .ic{width:32px;height:32px}
.bb .gflag .pole{position:absolute;left:5px;top:3px;width:2.5px;height:27px;border-radius:1px;background:#8a5a2b}
.bb .gflag canvas{position:absolute;left:7px;top:4px;border-radius:1px;box-shadow:0 0 0 1px rgba(255,255,255,.5)}

/* ---------- the cards' look, Style E (user, 2026-10-20; issue #292; mock-up https://claude.ai/artifact/9gw1f4iLF6kuc26EYWKu15):
   the cream card; slate (the main screen's buttons) for its header, the open tab and plain buttons; the colours of the
   guild it belongs to (kit.js cardTheme) for its edge, the band under its header, the tab's underline, its bars and its
   main button; your stickman's buttons in shaggle brown. A card of no guild is slate throughout ---------- */
:root{--slate:#26384f;--slate-d:#142133;--brown:#8b6b47;--brown-d:#5a4228;--brown-t:#f3e9da;
  --g1:var(--slate);--g2:#8fa3bb;--gm:var(--slate)}
/* in dark mode the main screen's buttons are darker (--glass): the cards' body is their colour on the map (#1a2528,
   the tokens at the top; user, 2026-10-20: "match it with the colour the main buttons go on dark mode") and slate a
   shade darker (issue #294) */
:root[data-theme=dark]{--slate:#10181b;--slate-d:#080d0f}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--slate:#10181b;--slate-d:#080d0f}}
.card{border:3px solid var(--gm);padding-top:0}
.card>header{margin:0 -14px;padding:12px 14px 10px;background:var(--slate);color:#fff;
  border-bottom:6px solid var(--g1);border-image:linear-gradient(90deg,var(--g1) 0 70%,var(--g2) 70%) 1}
.card>header h2{color:#fff}
.card .x,.card.bcard header .bc-pic{background:rgba(255,255,255,.14);color:#fff}
.btn{background:var(--slate);color:#fff}
.btn.main{background:linear-gradient(color-mix(in srgb,var(--gm) 72%,#fff),var(--gm) 60%);color:#fff;box-shadow:0 3px 0 color-mix(in srgb,var(--gm) 60%,#000)}
.btn.me{background:var(--brown);color:#fff;box-shadow:0 3px 0 var(--brown-d)}
.offer .ob .btn:not(.main):not(.me),.gcard .rows .row .btn:not(.main):not(.me){background:var(--slate);color:#fff;box-shadow:none}
.tabs button[aria-selected=true]{background:var(--slate);color:#fff;box-shadow:inset 0 -3px 0 var(--g2)}
.bc-bar i{background:var(--gm)}
.bc-bar i.coming{background:repeating-linear-gradient(135deg,var(--gm) 0 4px,transparent 4px 8px)}
.bc-slide .fill{background:var(--gm)}
.bc-slide input[type=range]::-webkit-slider-thumb{border-color:var(--gm)}
.bc-slide input[type=range]::-moz-range-thumb{border-color:var(--gm)}
.bc-switch[aria-checked=true],.switch input:checked{background:var(--gm)}
/* a pill (card.js pill; GLOSSARY "Pill"): a set height, the full width; washed in its guild's colour (--pc) with an edge
   in it; a flag, a bold title, two grey lines cut with "…", round buttons. Dragged by its flag on a phone */
.pls{display:flex;flex-direction:column;gap:6px}
.pl{display:flex;align-items:center;gap:8px;width:100%;height:68px;padding:8px 10px;border-radius:12px;text-align:left;cursor:pointer;
  background:color-mix(in srgb,var(--pc,var(--mute)) 12%,var(--panel));box-shadow:inset 0 0 0 2px var(--pc,var(--line));touch-action:pan-y;flex:none}
/* the Buy sheet's offers: a card a seller, a row for each way to get it (user, 2026-10-27, issue #439, layout "FG 1") */
.offers{display:flex;flex-direction:column;gap:6px}
.ocard{display:flex;flex-direction:column;gap:4px;padding:8px;border-radius:12px;background:color-mix(in srgb,var(--pc,var(--mute)) 12%,var(--panel));box-shadow:inset 0 0 0 2px var(--pc,var(--line))}
.ohd{display:flex;align-items:center;gap:8px;padding:0 2px 2px}
.ohd .pf canvas{display:block;border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.ohd>span:last-child{display:flex;flex-direction:column;min-width:0}
.ohd b{font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ohd small{color:var(--mute);font-size:var(--small);font-weight:500}
.orow{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;align-items:center;column-gap:6px;padding:5px 6px 5px 8px;border-radius:8px;font-size:13px;background:var(--panel)}
.orow .owho{grid-column:1;grid-row:1}
/* (a row in two lines: who carries it, then each, total and time with their icons; Buy down the right: user, 2026-10-27) */
.onums{grid-column:1;grid-row:2;display:flex;flex-wrap:wrap;gap:2px 8px;color:var(--mute);font-variant-numeric:tabular-nums;white-space:nowrap}
.onums>span{display:inline-flex;align-items:center;gap:2px}
.onums .ic{width:14px;height:14px}
.onums b{color:var(--ink)}
.orow .obtns{grid-column:2;grid-row:1 / 3;display:flex;align-items:center;gap:6px}
.orow .btn{min-height:28px;padding:0 10px;font-size:13px}
.orow .pb.ok{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:15px;font-weight:700;background:var(--slate);color:#fff}
.owho{display:flex;align-items:center;gap:5px;min-width:0;white-space:nowrap}
.owho img{width:18px;height:18px;flex:none}
.owho>span{overflow:hidden;text-overflow:ellipsis}
.owho .otot{margin-left:auto;padding-left:8px;flex:none;font-variant-numeric:tabular-nums}
/* a delivery company's guild's mini flag before its name (issue #513) */
.mf{display:inline-block;vertical-align:-1px;margin-right:4px;line-height:0}
.mf canvas{border-radius:1px;box-shadow:0 0 0 1px rgba(0,0,0,.18)}
.owho .mf{margin-right:0}
/* a tab for each good it buys, its icon over its name (issue #513) */
.tabs.goods{margin:6px 0 8px;overflow-x:auto}
.tabs.goods button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:64px;padding:4px 6px;font-size:13px;white-space:nowrap}
.tabs.goods .ic{width:22px;height:22px}
.pl.off{opacity:.55;filter:grayscale(.6)}   /* (can't be approved: one way only, issue #519) */
.pl .pf{flex:none;display:grid;touch-action:none}
.pl .pf canvas{border-radius:2px;box-shadow:0 1px 3px rgba(0,0,0,.3)}
.pl .pt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.pl .pt b,.pl .pt small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pl .pt b{font-size:15px}
.pl .pt small{color:var(--mute);font-size:var(--small);font-weight:500;line-height:1.25}
.pl .rank{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:var(--slate);color:#fff;font-size:12px}
.pl .pbs{flex:none;display:flex;gap:6px;align-items:center}
.pl .pb{width:36px;height:36px;border-radius:50%;background:var(--panel);display:grid;place-items:center;font-size:14px;color:var(--ink)}
.pl .pb .ic{width:20px;height:20px}
.pl .pb.main{background:var(--gm);color:#fff;font-size:20px;font-weight:700}
.pl .pb.me{background:var(--brown);color:#fff;box-shadow:0 2px 0 var(--brown-d)}
.pl .pbs .btn{min-height:36px;padding:0 12px;font-size:14px}
.pl{transition:transform .16s ease-out}
.pl.held{box-shadow:inset 0 0 0 2px var(--pc,var(--line)),0 10px 24px rgba(10,30,60,.35);position:relative;z-index:2;cursor:grabbing;transition:none}
/* ▲ ▼ round the flag of a pill that's dragged into order, and its name that opens it (issue #297) */
.pl .pf.grip{justify-items:center;gap:1px}
.pl .pf.grip i{font-style:normal;font-size:8px;line-height:1;color:var(--mute)}
.pl .pname{cursor:pointer;text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--ink) 30%,transparent);text-underline-offset:3px}
.pl-full{display:flex;flex-direction:column;gap:6px}
.pl-full p{color:var(--ink)!important}
@media (pointer:fine){.bc-boxes .box:not(.avail) .pl{cursor:grab}}
/* a building card's strips (features/business: user, 2026-10-20): its workers, outlined in their camp's guild's colour;
   your stickman, in shaggle brown; and "How it works" */
.bc-strip{display:flex;align-items:center;gap:10px;border-radius:12px;padding:10px;background:var(--panel);box-shadow:inset 0 0 0 2px var(--pc,var(--line))}
.bc-strip .pt{flex:1;min-width:0;display:flex;flex-direction:column}
.bc-strip .pt small{color:var(--mute);font-size:var(--small);font-weight:500;line-height:1.3}
.bc-strip .bc-badge{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-size:11px;background:var(--panel);box-shadow:inset 0 0 0 3px var(--pc,var(--line))}
.bc-strip.me{background:color-mix(in srgb,var(--brown) 14%,var(--panel));box-shadow:inset 0 0 0 2px var(--brown)}
.bc-strip.me .bc-badge{background:var(--brown);color:#fff;box-shadow:inset 0 0 0 3px #d8c29a}
/* a section's top (card.js sectionsBody; issue #294): "‹ Back" to Overview, and its title */
.bc-back{display:flex;align-items:center;gap:10px}
.bc-strip .bc-badge .ic{width:24px;height:24px}
.bc-back h3{margin:0;font-size:17px;color:var(--ink)}
.bc-how summary{font-size:13px;font-weight:700;color:var(--ink);text-decoration:underline;text-underline-offset:3px;list-style:none}
.bc-how summary::-webkit-details-marker{display:none}
.bc-how p{margin-top:6px}
/* an element made outside Preact, drawn inside a card (a flag's canvas: ui/kit.js Raw), laid out as if it were there itself */
.raw{display:contents}
/* a button whose press is on its way to the server (ui/kit.js button; docs/CONNECTION.md 2.4): dimmed, a small turning ring, not pressable twice */
.working{opacity:.75;pointer-events:none;position:relative}
.working::after{content:"";display:inline-block;width:.8em;height:.8em;margin-left:.45em;vertical-align:-.1em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}
.pb.working::after{position:absolute;inset:0;margin:auto;width:.9em;height:.9em}
.pb.working > *{visibility:hidden}
@keyframes spin{to{transform:rotate(360deg)}}
/* a setting's value on its way to the server (features/business/card.js) */
.bc-set .v.saving{opacity:.7;font-style:italic}
