/* Panels: Manage (order, shelves, prices, upgrades, staff ...), Settings, New Game, Load, day summary, level up, pause and the small
   pop-ups. Dark graphite surfaces from style.css. Desktop: a centred dialog with a sidebar of tabs. Tablet / small windows: a row of tabs.
   Phone: a full-screen sheet with a sticky header, a swipeable tab row and sticky footer actions. */

/* ================================================================ tabbed panel shell (Manage + Settings) */
.mgr { width: min(1160px, 100%); height: min(820px, calc(var(--vh) - 32px)); }
.card.modal.mgr > .body, .card.settings-card > .body { padding: 0; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.mgr-wrap, .set-wrap { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 224px minmax(0, 1fr); background: var(--surface-1); }
.tabs { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; background: var(--surface-0); border-right: 1px solid var(--line-1); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 0 10px 0 12px; border: 0; border-radius: 10px; background: transparent; font-family: var(--font-ui); font-weight: 500; font-size: var(--fs-14); color: var(--text-2); text-align: left; white-space: nowrap; transition: background-color var(--dur-2), color var(--dur-2); }
.tab .t-ico { flex: none; width: 20px; display: inline-flex; justify-content: center; color: var(--text-3); transition: color var(--dur-2); }
.tab .t-ico .ico-svg { display: block; width: 18px; height: 18px; }
.tab .t-lbl { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tab:hover { background: rgba(255, 255, 255, .04); color: var(--text-1); }
.tab.on { background: rgba(255, 255, 255, .07); color: var(--text-1); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-1); }
.tab.on .t-ico { color: var(--accent-300); }
.tab.on::before { content: ''; position: absolute; left: -10px; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-400); }
.tab .badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .09); color: var(--text-1); font-size: var(--fs-11); font-weight: 650; display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.tab .badge.alert { background: var(--red-500); color: #fff; }
.tab-hint { margin-top: auto; padding: 12px 10px 4px; font-weight: 500; font-size: var(--fs-12); line-height: 1.4; color: var(--text-4); }
.mgr-wrap > .pane, .set-wrap > .pane { flex: 1 1 auto; }
.mgr .pane, .set-wrap .pane { min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 22px 26px 28px; background: var(--surface-1); }
.mgr .pane.tab-order { overflow: hidden; padding: 16px 16px 16px 20px; display: flex; flex-direction: column; }
/* top tabs below 860 px or on short screens */
@media (max-width: 859px), (max-height: 520px) {
  .mgr-wrap, .set-wrap { display: flex; flex-direction: column; }
  .tabs { flex: none; flex-direction: row; gap: 6px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line-1); background: var(--surface-1); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; }
  .tab { flex: none; width: auto; min-height: 36px; padding: 0 14px 0 12px; gap: 8px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-1); font-size: var(--fs-13); scroll-snap-align: start; }
  .tab .t-ico { width: auto; }
  .tab .t-ico .ico-svg { width: 16px; height: 16px; }
  .tab.on { background: var(--n-50); color: var(--text-inv); box-shadow: none; }
  .tab.on .t-ico { color: var(--accent-600); }
  .tab.on::before { display: none; }
  .tab.on .badge { background: var(--text-inv); color: #fff; }
  .tab-hint { flex: none; margin: 0; padding: 0 6px; align-self: center; white-space: nowrap; }
  .mgr .pane, .set-wrap .pane { padding: 16px 16px 22px; }
  .mgr .pane.tab-order { padding: 10px 12px 12px; }
}
html.is-touch .tab { min-height: var(--tap); }
@media (max-height: 520px) { .mgr { height: calc(var(--vh) - 8px); } .tabs { padding: 6px 10px; } .tab { min-height: 34px; } html.is-touch .tab { min-height: var(--tap); } }
html.is-phone .card.modal.mgr, html.vp-xs .card.modal.mgr { height: var(--vh); }

.explainer { margin: 0 0 16px; font-weight: 450; font-size: var(--fs-15); color: var(--text-2); line-height: 1.55; max-width: 70ch; }
.pane-head { display: flex; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 18px; padding: 16px 18px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.pane-head .grow { min-width: 220px; }
.pane-head .lbl { margin-bottom: 4px; }
.big-num { font-family: var(--font-ui); font-weight: 700; font-size: 1.75rem; letter-spacing: -.025em; color: var(--text-1); line-height: 1.1; font-variant-numeric: tabular-nums; }
.big-num.good { color: var(--accent-300); } .big-num.bad { color: var(--red-300); } .big-num.warn { color: var(--amber-300); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 12px; }
.role-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 10px; }
.up-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--dur-2), background-color var(--dur-2); }
.up-card:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.up-card.owned { background: linear-gradient(180deg, rgba(20, 173, 110, .08), rgba(20, 173, 110, .03)); box-shadow: inset 0 0 0 1px rgba(60, 205, 141, .22); }
.up-card.locked { background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.up-card.ready { box-shadow: inset 0 0 0 1px var(--line-3); }
.up-card h4 { font-weight: 600; font-size: var(--fs-15); color: var(--text-1); display: flex; gap: 10px; align-items: center; line-height: 1.3; }
.up-card h4 .ico-svg { color: var(--text-3); }
.up-card.ready h4 .ico-svg { color: var(--accent-300); }
.up-card.owned h4 .ico-svg { color: var(--accent-300); }
.up-card.locked h4 { color: var(--text-2); } .up-card.locked h4 .ico-svg { color: var(--text-4); }
.up-card p { margin: 0; font-size: var(--fs-13); color: var(--text-2); line-height: 1.5; }
.up-card.locked p { color: var(--text-3); }
.up-card .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-1); flex-wrap: wrap; }
.up-card .cost { font-family: var(--font-ui); font-weight: 700; font-size: var(--fs-17); letter-spacing: -.015em; color: var(--gold-300); font-variant-numeric: tabular-nums; }
.up-card.owned .cost { color: var(--accent-300); font-size: var(--fs-14); font-weight: 600; letter-spacing: 0; }
.up-card.locked .cost { color: var(--text-3); }
.up-card .big-num { font-size: 1.5rem; color: var(--gold-300); }
.eff { font-size: var(--fs-12); color: var(--accent-300); font-weight: 550; line-height: 1.45; }
.cat-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-1); font-family: var(--font-ui); font-weight: 500; font-size: var(--fs-13); color: var(--text-2); white-space: nowrap; transition: background-color var(--dur-2), color var(--dur-2); touch-action: manipulation; }
.cat-chip .ico-svg { color: var(--text-3); width: 15px; height: 15px; }
.cat-chip:hover { background: rgba(255, 255, 255, .09); color: var(--text-1); }
.cat-chip.on { background: var(--n-50); color: var(--text-inv); font-weight: 600; box-shadow: none; }
.cat-chip.on .ico-svg { color: var(--accent-600); }
.cat-chip .pill { min-height: 18px; padding: 0 6px; }
.cat-chip.on .pill.warn { background: var(--gold-400); color: #2a1a00; box-shadow: none; }
.cat-chip.lock { opacity: .45; cursor: default; }
html.is-touch .cat-chip { min-height: var(--tap); }
@media (max-width: 700px) { .cat-strip.swipe { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior: contain; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 0 16px; } .cat-strip.swipe::-webkit-scrollbar { display: none; } }

/* tables (Prices, Auto-restock): a table on wide panes, stacked rows on narrow ones */
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-14); }
table.tbl th { position: sticky; top: -22px; background: var(--surface-1); color: var(--text-3); font-weight: 600; text-align: left; padding: 10px 8px; font-size: var(--fs-11); letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line-2); z-index: 1; line-height: 1.3; }
table.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line-1); vertical-align: middle; color: var(--text-2); }
@media (max-width: 1100px) { table.tbl th, table.tbl td { padding-left: 5px; padding-right: 5px; } .price-inp { width: 82px; } .pcell { gap: 8px; } }
table.tbl tr:hover td { background: rgba(255, 255, 255, .02); }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl tr.dim td { opacity: .5; }
.pcell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pcell canvas { width: 26px; height: 32px; flex: none; }
.pcell b { display: block; line-height: 1.25; font-weight: 600; color: var(--text-1); font-size: var(--fs-14); }
.pcell small { color: var(--text-3); font-size: var(--fs-12); }
.price-inp { width: 96px; text-align: right; }
@media (max-width: 700px) {
  table.tbl, table.tbl tbody { display: block; }
  table.tbl thead { display: none; }
  table.tbl tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  table.tbl tr:hover td { background: transparent; }
  table.tbl td { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0; border: 0; min-width: 0; }
  table.tbl td.num { text-align: left; }
  table.tbl td.wide { grid-column: 1 / -1; }
  table.tbl td[data-l]::before { content: attr(data-l); font-size: var(--fs-12); color: var(--text-3); font-weight: 500; }
  table.tbl td:empty { display: none; }
  .price-inp { width: 100px; }
}

/* ================================================================ Manage: Order */
.order-layout { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, 28vw, 330px); gap: 16px; }
.order-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.order-tools { flex: none; display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.chip-box { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 4px; }
.cat-strip.h { position: relative; flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; margin: 0; padding: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior: contain; }
.cat-strip.h::-webkit-scrollbar { display: none; }
.order-tools .cat-chip { flex: none; }
.chip-nav { flex: none; width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: var(--text-2); }
.chip-nav:hover:not(:disabled) { background: rgba(255, 255, 255, .12); color: var(--text-1); }
.chip-nav:disabled { opacity: .3; cursor: default; }
html.is-touch .chip-nav { display: none; }
.inp.order-search { flex: 0 0 220px; width: 220px; padding-left: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c9690' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 11px center; background-size: 16px; }
.order-scroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; padding: 2px 6px 12px 2px; touch-action: pan-y; overflow-anchor: none; }   /* manage.js restores the scroll place itself */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 12px; }
.pc-empty { grid-column: 1 / -1; text-align: center; padding: 40px 12px; color: var(--text-3); font-weight: 500; border-radius: var(--r-3); border: 1px dashed var(--line-3); }
.next-unlock { margin: 18px 4px 2px; text-align: center; color: var(--text-3); font-size: var(--fs-13); font-weight: 500; line-height: 1.4; }
.next-unlock .ico-svg { color: var(--text-4); }
.callout { flex: none; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 12px 12px 12px 16px; border-radius: var(--r-3); background: linear-gradient(90deg, rgba(20, 173, 110, .16), rgba(20, 173, 110, .06)); box-shadow: inset 0 0 0 1px var(--accent-line); }
.callout-txt { flex: 1 1 230px; font-weight: 500; font-size: var(--fs-15); line-height: 1.4; color: var(--text-1); }
.callout-txt b { font-weight: 650; color: var(--accent-200); }
.callout .btn { flex: none; }

.pcard { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--dur-2), background-color var(--dur-2); }
.pcard:hover { box-shadow: inset 0 0 0 1px var(--line-3); }
.pcard.inCart { background: linear-gradient(180deg, rgba(20, 173, 110, .1), rgba(20, 173, 110, .03) 60%), var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.pc-top { display: flex; align-items: center; gap: 12px; min-width: 0; margin-bottom: 2px; }
.pc-top canvas { flex: none; border-radius: 10px; background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)); }
.pc-name { min-width: 0; }
.pc-name b { display: block; font-weight: 600; font-size: var(--fs-15); line-height: 1.25; color: var(--text-1); overflow-wrap: anywhere; letter-spacing: -.005em; }
.pc-name small { display: block; margin-top: 2px; color: var(--text-3); font-weight: 500; font-size: var(--fs-13); line-height: 1.2; }
.pc-carton { font-size: var(--fs-12); font-weight: 500; color: var(--text-3); }
.pc-pay-row { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; flex-wrap: wrap; }
.pc-lbl { font-size: var(--fs-12); font-weight: 500; color: var(--text-3); }
.pc-pay { font-family: var(--font-ui); font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; line-height: 1.05; color: var(--text-1); font-variant-numeric: tabular-nums; }
.pc-sell { font-size: var(--fs-13); font-weight: 450; color: var(--text-2); }
.pc-sell b { font-weight: 600; color: var(--text-1); font-variant-numeric: tabular-nums; }
.pc-profit { font-weight: 600; font-size: var(--fs-13); line-height: 1.3; color: var(--accent-300); font-variant-numeric: tabular-nums; }
.pc-profit.loss { color: var(--red-300); }
.pc-tags { display: flex; flex-wrap: wrap; gap: 4px; min-height: 22px; }
.tag { display: inline-flex; align-items: center; padding: 0 7px; min-height: 22px; border-radius: 6px; font-weight: 550; font-size: var(--fs-11); white-space: nowrap; background: rgba(255, 255, 255, .06); color: var(--text-2); font-variant-numeric: tabular-nums; }
.tag .ico-svg { width: 12px; height: 12px; }
.tag.hot { background: var(--gold-soft); color: var(--gold-300); }
.tag.low, .tag.zero { background: var(--red-soft); color: var(--red-300); }
.tag.blue { background: var(--blue-soft); color: var(--blue-300); }
.pc-act { margin-top: auto; padding-top: 8px; }
.pc-act .btn.add { width: 100%; min-height: 40px; --bc: var(--surface-4); --bh: var(--accent-600); --bfg: var(--text-1); --bbd: var(--line-3); box-shadow: var(--hl); }
.pc-act .btn.add:hover { --bbd: transparent; color: #fff; }
.stepper { display: none; align-items: center; gap: 6px; }
.pcard.inCart .stepper { display: flex; }
.pcard.inCart .btn.add { display: none; }
.stepper .stp { flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: var(--accent-600); color: #fff; font-family: var(--font-ui); font-weight: 500; font-size: 1.3rem; line-height: 1; touch-action: manipulation; transition: background-color var(--dur-2), transform var(--dur-1); }
.stepper .stp:hover { background: var(--accent-650); }
.stepper .stp:active { transform: scale(.94); }
.stepper .stp.minus { background: var(--surface-4); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line-3); }
.stepper .stp.minus:hover { background: var(--surface-5); }
.stepper .cnt { flex: 1 1 auto; min-width: 22px; text-align: center; font-family: var(--font-ui); font-weight: 700; font-size: var(--fs-20); color: var(--text-1); font-variant-numeric: tabular-nums; }
.stepper .plus5 { flex: none; min-width: 40px; height: 40px; padding: 0 4px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); color: var(--text-2); font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-13); touch-action: manipulation; box-shadow: inset 0 0 0 1px var(--line-1); }
.stepper .plus5:hover { background: rgba(255, 255, 255, .1); color: var(--text-1); }
html.is-touch .stepper .stp, html.is-touch .stepper .plus5 { width: var(--tap); height: var(--tap); }

.cart { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 12px; background: var(--surface-0); border-radius: 20px; padding: 16px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-1); }
.cart-scroll { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.cart-head { flex: none; display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; }
.cart-title { flex: 1 1 auto; white-space: nowrap; font-weight: 650; font-size: var(--fs-16); line-height: 1.1; color: var(--text-1); letter-spacing: -.01em; }
.cart-tools { flex: none; display: flex; gap: 6px; flex-wrap: wrap; }
.cart .lines { flex: 1 1 auto; min-height: 52px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 4px; }
.cart .line { flex: none; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 28px; gap: 10px; align-items: center; font-size: var(--fs-13); background: var(--surface-2); border-radius: 10px; padding: 6px 6px 6px 10px; box-shadow: inset 0 0 0 1px var(--line-1); }
.cart .line canvas { display: block; }
.cart .line .ln { min-width: 0; line-height: 1.2; }
.cart .line .nm { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-weight: 600; color: var(--text-1); }
.cart .line small { display: block; color: var(--text-3); font-weight: 450; font-size: var(--fs-12); }
.cart .line .lq { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cart .line .lq b { color: var(--text-1); }
.cart .line .lp { font-size: var(--fs-12); color: var(--text-3); font-weight: 500; }
.cart .line .rm { width: 28px; min-height: 28px; padding: 0; border-radius: 8px; }
html.is-touch .cart .line { grid-template-columns: 22px minmax(0, 1fr) auto 44px; }
html.is-touch .cart .line .rm { width: 44px; min-height: 44px; }
.cart-empty { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 12px; border-radius: var(--r-2); border: 1px dashed var(--line-3); color: var(--text-3); font-weight: 500; font-size: var(--fs-13); line-height: 1.4; }
.cart .sum { flex: none; display: flex; justify-content: space-between; gap: 8px; font-weight: 500; font-size: var(--fs-13); color: var(--text-2); font-variant-numeric: tabular-nums; }
.cart .sum > span:last-child { color: var(--text-1); font-weight: 600; }
.cart .small { flex: none; line-height: 1.35; font-size: var(--fs-12); }
.cart .c-bulk.good { color: var(--accent-300); } .cart .c-bulk.muted { color: var(--text-3); }
.cart .sum.total { font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-14); color: var(--text-2); align-items: baseline; }
.cart .sum.total > span:last-child { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--text-1); }
.cart .sum.total .bad, .cart .sum.total > span.bad:last-child { color: var(--red-300); }
.cart .express { flex: none; gap: 10px; font-weight: 500; font-size: var(--fs-13); color: var(--text-2); cursor: pointer; }
.cart .express span { min-width: 0; }
.cart .way { flex: none; display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; background: rgba(255, 255, 255, .04); border-radius: 10px; color: var(--text-2); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line-1); }
.cart .way .ico-svg { color: var(--blue-300); }
.cart-bar { flex: none; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.cart-toggle { display: none; }
.go-why { font-size: var(--fs-12); font-weight: 500; line-height: 1.35; text-align: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .04); color: var(--text-3); }
.go-why.warn { background: var(--amber-soft); color: var(--amber-300); }
.go-why.bad { background: var(--red-soft); color: var(--red-300); }
.btn.go { --bc: var(--accent-600); --bh: var(--accent-650); --bfg: #fff; --bbd: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 6px 18px -6px rgba(0, 135, 81, .55); }
.btn.go:disabled { --bc: var(--surface-4); --bfg: var(--text-3); --bbd: var(--line-2); opacity: 1; box-shadow: none; }
.go.btn.lg { min-height: 52px; padding: 0 16px; font-size: var(--fs-16); }

/* Order on narrow panes: the products scroll; the order is a sticky bar (total + Place order) that opens upwards to show the lines */
@media (max-width: 700px) {
  .mgr .pane.tab-order { padding: 8px 12px 0; }
  .order-layout { display: flex; flex-direction: column; gap: 0; }
  .order-main { flex: 1 1 0; padding-bottom: 8px; }
  .inp.order-search { flex: 1 1 100%; width: 100%; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
  .pcard { padding: 12px; gap: 5px; }
  .pc-pay { font-size: 1.1rem; }
  .cart { flex: none; margin: 0 -12px; padding: 10px 12px max(10px, var(--sa-b)); border-radius: 20px 20px 0 0; background: var(--surface-2); box-shadow: 0 -12px 32px rgba(0, 0, 0, .45), inset 0 1px 0 var(--line-2); gap: 8px; max-height: 62%; }
  .cart-scroll { display: none; }
  .cart.open .cart-scroll { display: flex; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
  .cart.open .cart .lines, .cart.open .lines { flex: none; overflow: visible; min-height: 0; }
  .cart-bar { padding-top: 0; border-top: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tot go" "why why"; align-items: center; gap: 6px 10px; }
  .cart-bar .sum.total { grid-area: tot; flex-direction: column; gap: 0; justify-content: center; line-height: 1.15; }
  .cart-bar .sum.total > span:first-child { font-size: var(--fs-12); color: var(--text-3); }
  .cart-bar .sum.total > span:last-child { font-size: 1.3rem; }
  .cart-bar .go-why { grid-area: why; padding: 6px 8px; }
  .cart-bar .go.btn.lg { grid-area: go; width: auto; min-height: 50px; padding: 0 18px; }
  .cart-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 4px; border: 0; background: transparent; font-weight: 600; font-size: var(--fs-14); color: var(--text-1); }
  .cart-toggle > .ico-svg { color: var(--accent-300); }
  .cart-toggle .chev { margin-left: auto; display: inline-flex; color: var(--text-3); transition: transform var(--dur-2); }
  .cart.open .cart-toggle .chev { transform: rotate(180deg); }
  .cart-head .cart-title { display: none; }
}
@media (max-height: 520px) {
  .callout { padding: 8px 12px; }
  .pcard { padding: 10px 12px; gap: 4px; }
  .cart .way { display: none; }
  .go.btn.lg { min-height: 46px; }
}
@media (max-height: 680px) and (min-width: 701px) {
  .cart { padding: 12px; gap: 8px; }
  .cart-scroll { gap: 8px; }
  .cart-bar { padding-top: 8px; gap: 8px; }
}
@media (max-height: 520px) and (min-width: 701px) {
  .cart { padding: 10px; gap: 6px; }
  .cart .lines { min-height: 40px; }
  .cart-head .cart-tools, .cart .sum:not(.total), .cart .express, .cart .c-eta, .cart .c-bulk { display: none; }
  .cart-bar { padding-top: 6px; gap: 6px; }
}

/* ================================================================ Manage: Shelves (build slots) */
.slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.slot-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--dur-2); }
.slot-card.afford { box-shadow: inset 0 0 0 1px var(--accent-line); background: linear-gradient(180deg, rgba(20, 173, 110, .07), transparent 70%), var(--surface-2); }
.slot-card.locked { background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.slot-card.owned { box-shadow: inset 0 0 0 1px rgba(60, 205, 141, .2); }
.slot-top { display: flex; align-items: center; gap: 12px; }
.slot-ico { flex: none; width: 44px; height: 44px; border-radius: var(--r-2); background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(60, 205, 141, .2); display: flex; align-items: center; justify-content: center; color: var(--accent-300); }
.slot-card.locked .slot-ico { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line-1); color: var(--text-3); }
.slot-name { min-width: 0; }
.slot-name b { display: block; font-weight: 600; font-size: var(--fs-15); line-height: 1.3; color: var(--text-1); }
.slot-name small { display: block; color: var(--text-3); font-size: var(--fs-12); line-height: 1.35; }
.slot-sells { font-size: var(--fs-13); color: var(--text-2); line-height: 1.5; }
.slot-sells b { color: var(--text-1); font-weight: 600; }
.slot-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-1); flex-wrap: wrap; }
.slot-cost { font-family: var(--font-ui); font-weight: 700; font-size: var(--fs-17); letter-spacing: -.015em; color: var(--gold-300); font-variant-numeric: tabular-nums; }
.slot-card.locked .slot-cost { color: var(--text-3); }
.build-floor-tip { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 20px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); color: var(--text-2); font-weight: 450; font-size: var(--fs-14); line-height: 1.5; }
.build-floor-tip b { color: var(--accent-300); }
.build-floor-tip .plus { flex: none; width: 40px; height: 40px; border-radius: var(--r-2); background: var(--accent-soft-2); color: var(--accent-300); display: flex; align-items: center; justify-content: center; font-family: var(--font-ui); font-weight: 400; font-size: 1.6rem; box-shadow: inset 0 0 0 1px var(--accent-line), 0 0 24px rgba(60, 205, 141, .25); }
.owned-list { display: flex; flex-wrap: wrap; gap: 6px; }
.owned-list .pill { min-height: 30px; padding: 0 4px 0 10px; background: rgba(255, 255, 255, .05); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line-2); }
.owned-list .pill .ico-svg { color: var(--accent-300); }
.owned-list .pill .btn.xs { min-height: 24px; padding: 0 8px; border-radius: 6px; font-size: var(--fs-12); }

/* staff, security, goals rows */
.staff-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px 14px; align-items: center; padding: 14px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.staff-row canvas { width: 44px; height: 64px; border-radius: 10px; background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .1), rgba(255, 255, 255, .02)); }
.staff-row.flag { background: linear-gradient(180deg, rgba(229, 72, 77, .1), transparent), var(--surface-2); box-shadow: inset 0 0 0 1px var(--red-line); }
.staff-row.train { box-shadow: inset 0 0 0 1px var(--blue-line); }
.staff-row h4 { font-weight: 600; font-size: var(--fs-15); color: var(--text-1); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.staff-row .small { color: var(--text-2); margin-top: 2px; }
.staff-row .acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; padding-top: 10px; border-top: 1px solid var(--line-1); }
.staff-row .acts select { width: auto; }
.staff-row .mood { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.staff-row .mood .bar { width: 90px; height: 4px; }
.cam-mount { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); flex-wrap: wrap; }
.cam-mount > .ico-svg { color: var(--text-3); }
.cam-mount b { font-weight: 600; font-size: var(--fs-14); color: var(--text-1); text-transform: capitalize; }
.cam-mount.used { box-shadow: inset 0 0 0 1px rgba(60, 205, 141, .25); }
.cam-mount.used > .ico-svg { color: var(--accent-300); }
.cam-mount input[type=range] { width: 120px; flex: 1 1 100px; }
.ach { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-2); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.ach b { font-weight: 600; font-size: var(--fs-14); color: var(--text-1); }
.ach.done { box-shadow: inset 0 0 0 1px var(--gold-line); background: linear-gradient(90deg, rgba(245, 189, 80, .08), transparent 60%), var(--surface-2); }
.ach .ic { width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-1); display: flex; align-items: center; justify-content: center; flex: none; color: var(--text-2); }
.ach.done .ic { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); color: var(--gold-300); }
.ach .ic.lvl { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold-line); color: var(--gold-300); font-family: var(--font-display); font-stretch: 110%; font-weight: 800; font-size: var(--fs-17); font-variant-numeric: tabular-nums; }
.ach .bar { height: 4px; margin: 6px 0 4px; }
.ach .small { color: var(--text-2); line-height: 1.5; }
.chart-box { background: var(--surface-0); border-radius: var(--r-3); padding: 16px; box-shadow: inset 0 0 0 1px var(--line-1); }
.hist { display: flex; align-items: flex-end; gap: 4px; height: 64px; padding-bottom: 1px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.hist i { flex: 1; min-width: 6px; background: linear-gradient(180deg, var(--accent-400), var(--accent-600)); border-radius: 4px 4px 1px 1px; opacity: .85; transition: opacity var(--dur-2); }
.hist i:hover { opacity: 1; }
.hist i.neg { background: linear-gradient(180deg, var(--red-400), var(--red-600)); }
.hist i.today { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); opacity: 1; }
.rating-bars { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.rating-bar { display: grid; grid-template-columns: 160px minmax(80px, 1fr) minmax(0, 240px); gap: 4px 14px; align-items: center; font-size: var(--fs-13); color: var(--text-1); }
.rating-bar > div:first-child { font-weight: 600; }
.rating-bar .bar { height: 6px; }
@media (max-width: 700px) { .rating-bar { grid-template-columns: 1fr; } }
.sum-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 8px; }
.stat { background: var(--surface-2); border-radius: var(--r-2); padding: 12px 12px 10px; box-shadow: inset 0 0 0 1px var(--line-1); }
.stat b { display: block; font-family: var(--font-ui); font-weight: 700; font-size: var(--fs-17); letter-spacing: -.015em; color: var(--text-1); line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--fs-12); color: var(--text-3); font-weight: 500; }
/* clear rhythm between the sections of a tab (overrides the older inline margins) */
.mgr .pane > .section-title:not(:first-child) { margin-top: 28px !important; }
/* empty states inside lists */
.role-list > .muted:only-child, .item-grid > .muted:only-child { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 18px; border-radius: var(--r-3); border: 1px dashed var(--line-3); color: var(--text-3); font-size: var(--fs-14); text-align: center; line-height: 1.5; }

/* ================================================================ Settings */
.settings-card { width: min(920px, 100%); height: min(700px, calc(var(--vh) - 32px)); }
.settings-card .pane { display: flex; flex-direction: column; gap: 4px; }
.set-group { display: flex; flex-direction: column; margin-bottom: 24px; max-width: 640px; }
.set-group > h4 { font-weight: 650; font-size: var(--fs-11); letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); margin: 0 0 8px 4px; }
.set-group > .set-row, .set-group > label.set-row { padding-left: 16px; padding-right: 16px; background: var(--surface-2); box-shadow: inset 1px 0 0 var(--line-1), inset -1px 0 0 var(--line-1); }
.set-group > .set-row:first-child, .set-group > h4 + .set-row { border-top-left-radius: var(--r-3); border-top-right-radius: var(--r-3); box-shadow: inset 0 1px 0 var(--line-1), inset 1px 0 0 var(--line-1), inset -1px 0 0 var(--line-1); }
.set-group > .set-row:last-child { border-bottom-left-radius: var(--r-3); border-bottom-right-radius: var(--r-3); box-shadow: inset 0 -1px 0 var(--line-1), inset 1px 0 0 var(--line-1), inset -1px 0 0 var(--line-1); }
.set-group > .set-row:first-child:last-child, .set-group > h4 + .set-row:last-child { box-shadow: inset 0 0 0 1px var(--line-1); }
.set-row { display: flex; align-items: center; gap: 10px 20px; justify-content: space-between; min-height: 58px; padding: 10px 0; border-bottom: 1px solid var(--line-1); flex-wrap: wrap; }
.set-row:last-child { border-bottom: 0; }
.set-row > label, .set-row > .set-lbl { flex: 1 1 200px; min-width: 0; font-weight: 500; font-size: var(--fs-14); color: var(--text-1); line-height: 1.35; }
.set-row .set-hint { display: block; font-weight: 450; font-size: var(--fs-12); color: var(--text-3); margin-top: 3px; line-height: 1.45; }
.set-row .ctl { flex: 0 1 260px; min-width: 0; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.set-row .ctl input[type=range] { flex: 1 1 auto; }
.set-row .val { min-width: 48px; text-align: right; font-weight: 600; font-size: var(--fs-13); color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .set-row .ctl { flex: 1 1 100%; justify-content: flex-start; } .set-row .ctl:has(.switch) { flex: 0 0 auto; } }
.set-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.keybind { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 8px; align-items: center; padding: 8px 16px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.keybind .kb-lbl { font-weight: 500; font-size: var(--fs-14); color: var(--text-1); padding: 6px 0; }
.keybtn { min-width: 92px; min-height: 34px; padding: 0 12px; border-radius: var(--r-1); border: 1px solid rgba(255, 255, 255, .14); border-bottom-color: rgba(0, 0, 0, .55); background: linear-gradient(180deg, #2a322e, #1e2522); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 0 rgba(0, 0, 0, .4); font-family: var(--font-ui); font-weight: 600; font-size: var(--fs-13); color: var(--text-1); transition: border-color var(--dur-2), background-color var(--dur-2); }
.keybtn:hover { border-color: rgba(255, 255, 255, .26); }
.keybtn.wait { background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-300); animation: breathe .9s infinite; }
.help-grid { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 0 18px; align-items: center; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); padding: 4px 16px; }
.help-grid > * { padding: 10px 0; border-bottom: 1px solid var(--line-1); font-size: var(--fs-14); color: var(--text-2); line-height: 1.45; }
.help-grid > :nth-last-child(-n+2) { border-bottom: 0; }
.help-grid > :nth-child(odd) { display: flex; gap: 4px; flex-wrap: wrap; font-weight: 600; color: var(--text-1); }
.help-grid .kbd { font-size: .8rem; }
.help-tabs { margin-bottom: 16px; }
.help-tips { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.help-tips .banner { align-items: flex-start; }

/* ================================================================ New Game, Load */
.ng-card { width: min(1040px, 100%); }
.ng-body { display: flex; flex-direction: column; gap: 28px; }
.ng-sec { display: flex; flex-direction: column; gap: 12px; }
.ng-sec > h3 { font-weight: 650; font-size: var(--fs-11); letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); }
.ng-sec > :not(h3) { width: 100%; min-width: 0; }
.name-hero { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, rgba(20, 173, 110, .14), rgba(20, 173, 110, 0) 60%), var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.name-hero > label { font-family: var(--font-display); font-stretch: 112%; font-weight: 750; font-size: var(--fs-20); letter-spacing: -.01em; color: var(--text-1); }
.name-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.name-row .grow { min-width: min(240px, 100%); }
.name-row .btn { min-height: 52px; }
.name-inp { font-size: var(--fs-17); font-weight: 600; min-height: 52px; padding: 8px 16px; letter-spacing: -.01em; }
html.is-touch .name-inp { font-size: 1.1rem; }
.name-inp.bad { border-color: var(--red-400); box-shadow: 0 0 0 3px rgba(229, 72, 77, .22); animation: nameShake .35s; }
.name-err { color: var(--red-300); font-weight: 550; font-size: var(--fs-13); }
@keyframes nameShake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.acct-hint { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border-radius: var(--r-3); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); font-weight: 450; font-size: var(--fs-14); line-height: 1.45; flex-wrap: wrap; }
.acct-hint > .ico-svg { color: var(--accent-300); }
.acct-hint .grow { min-width: 200px; }
@media (max-width: 560px) { .acct-hint > .ico-svg { display: none; } .acct-hint .btn { flex: 1 1 auto; } }
.ng-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 18px; align-items: end; }
@media (max-width: 640px) { .ng-two { grid-template-columns: 1fr; } }
.toggle-row { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: var(--fs-14); color: var(--text-1); min-height: 56px; padding: 0 16px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); cursor: pointer; }

.diff-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.diff { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 14px; border: 0; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; text-align: left; font-family: var(--font-ui); color: var(--text-1); transition: box-shadow var(--dur-2), background-color var(--dur-2); }
.diff:hover { box-shadow: inset 0 0 0 1px var(--line-4); }
.diff.on { background: linear-gradient(180deg, rgba(20, 173, 110, .12), rgba(20, 173, 110, .04)), var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--accent-400); }
.diff::after { content: ''; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-4); transition: background-color var(--dur-2), box-shadow var(--dur-2); }
.diff.on::after { background: var(--accent-400) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052b1b' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: none; }
.diff b { font-weight: 650; font-size: var(--fs-15); color: var(--text-1); padding-right: 24px; }
.diff p { margin: 0; font-size: var(--fs-13); color: var(--text-3); line-height: 1.45; }
.diff .start { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--gold-300); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .diff-row { grid-template-columns: 1fr; } }

.slots { display: flex; flex-direction: column; gap: 8px; }
.slot { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--dur-2); }
.slot:hover:not(.empty) { box-shadow: inset 0 0 0 1px var(--line-3); }
.slot.empty { background: transparent; box-shadow: none; border: 1px dashed var(--line-3); color: var(--text-3); }
.slot.bad { background: linear-gradient(90deg, rgba(229, 72, 77, .1), transparent 70%), var(--surface-2); box-shadow: inset 0 0 0 1px var(--red-line); }
.slot .num { width: 48px; height: 48px; border-radius: var(--r-2); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-1); font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: var(--fs-20); display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.slot:not(.empty):not(.bad) .num { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(60, 205, 141, .25); color: var(--accent-300); }
.slot.empty .num { background: transparent; color: var(--text-4); }
.slot.bad .num { background: var(--red-soft); color: var(--red-300); box-shadow: inset 0 0 0 1px var(--red-line); }
.slot h4 { font-weight: 600; font-size: var(--fs-15); color: var(--text-1); }
.slot.empty h4 { color: var(--text-2); font-weight: 550; }
.slot .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.slot .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.slot .tiny { color: var(--text-3); }
@media (max-width: 560px) { .slot { grid-template-columns: 44px minmax(0, 1fr); } .slot .num { width: 44px; height: 44px; } .slot .acts { grid-column: 1 / -1; justify-content: stretch; } .slot .acts .btn { flex: 1 1 0; } }
.load-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.where { display: inline-flex; align-items: center; gap: 6px; }

/* ================================================================ day summary, level up, pause */
.sum-card { width: min(920px, 100%); }
.sum-hero { display: flex; align-items: center; gap: 18px 32px; flex-wrap: wrap; padding: 20px 22px; border-radius: 20px; background: radial-gradient(120% 160% at 0% 0%, rgba(20, 173, 110, .18), rgba(20, 173, 110, 0) 55%), var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); margin-bottom: 20px; }
.sum-hero.neg { background: radial-gradient(120% 160% at 0% 0%, rgba(229, 72, 77, .18), rgba(229, 72, 77, 0) 55%), var(--surface-2); }
.sum-hero .net { font-family: var(--font-ui); font-weight: 750; font-size: var(--fs-2xl); letter-spacing: -.03em; line-height: 1; color: var(--accent-300); font-variant-numeric: tabular-nums; }
.sum-hero.neg .net { color: var(--red-300); }
.sum-hero .net-l { margin-top: 6px; font-weight: 600; color: var(--text-3); font-size: var(--fs-11); letter-spacing: .09em; text-transform: uppercase; }
.sum-hero .grow { min-width: 200px; }
.sum-hero .bar { height: 4px; }
.sum-hero .stars { font-size: 16px; }
.sum-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 760px) { .sum-grid { grid-template-columns: 1fr; } }
.ledger { display: flex; flex-direction: column; font-size: var(--fs-14); padding: 8px 16px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.ledger .ln { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: var(--text-1); border-bottom: 1px solid var(--line-1); }
.ledger .ln:last-child { border-bottom: 0; }
.ledger .ln > span:last-child { font-variant-numeric: tabular-nums; font-weight: 550; }
.ledger .ln.sub { padding-left: 14px; font-size: var(--fs-13); color: var(--text-3); }
.ledger .ln.tot { border-top: 1px solid var(--line-3); margin-top: 2px; padding-top: 10px; padding-bottom: 10px; font-weight: 650; font-size: var(--fs-17); letter-spacing: -.01em; }
.ledger .ln.tot > span:last-child { font-weight: 750; }
.ledger .neg { color: var(--red-300); } .ledger .pos { color: var(--accent-300); }
.flavour { position: relative; padding: 16px 18px 16px 44px; border-radius: var(--r-3); background: var(--gold-soft); box-shadow: inset 0 0 0 1px rgba(245, 189, 80, .2); font-size: var(--fs-15); font-weight: 500; font-style: italic; color: var(--text-1); line-height: 1.5; }
.flavour::before { content: '\201C'; position: absolute; left: 14px; top: 6px; font-family: var(--font-display); font-style: normal; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--gold-400); }
.sum-body .section-title { font-size: var(--fs-11); letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); font-weight: 650; }
.sum-body .row.small { color: var(--text-2); }
.sum-body .row.small .ico-svg { color: var(--accent-300); }
.tomorrow { padding: 16px 18px; border-radius: var(--r-3); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-1); }
.tomorrow b { font-weight: 650; font-size: var(--fs-15); color: var(--text-1); }
.tomorrow b .ico-svg { color: var(--gold-300); }
.tomorrow ul { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); font-size: var(--fs-14); line-height: 1.7; }
.tomorrow li::marker { color: var(--text-4); }
.sum-card .foot .grow { flex: 1 1 auto; }
@media (max-width: 560px) { .sum-card .foot .btn.lg { flex: 1 1 100%; order: -1; } .sum-card .foot .grow { display: none; } .sum-card .foot .btn.ghost { flex: 1 1 0; } }
.levelup-card { text-align: center; width: min(440px, 100%); }
.levelup-card > .body { background: radial-gradient(80% 70% at 50% 18%, rgba(245, 189, 80, .14), transparent 70%); }
.levelup-card .lv { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 5.5rem; line-height: 1; margin: 6px 0 14px; letter-spacing: -.02em; color: var(--gold-300); background: linear-gradient(180deg, #fff1cc, var(--gold-400) 55%, var(--gold-600)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 6px 24px rgba(245, 189, 80, .25)); font-variant-numeric: tabular-nums; }
.levelup-card .lv-cap { font-weight: 650; font-size: var(--fs-11); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.unlock-list { text-align: left; display: flex; flex-direction: column; gap: 6px; margin: 14px 0; }
.unlock-list div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-weight: 500; font-size: var(--fs-14); color: var(--text-1); box-shadow: inset 0 0 0 1px var(--line-1); }
.unlock-list .ico-svg { color: var(--accent-300); }
.levelup-card .banner { font-weight: 600; font-variant-numeric: tabular-nums; }
.pause-list { display: flex; flex-direction: column; gap: 6px; }
.pause-list .btn { justify-content: flex-start; min-height: 48px; gap: 12px; padding: 0 16px; }
.pause-list .btn.ghost .ico-svg { color: var(--text-3); }
.pause-list .btn.quiet { margin-top: 6px; color: var(--text-3); }
.pause-list .btn.quiet:hover { color: var(--red-300); }
.pause-acc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 14px; margin-bottom: 12px; border-radius: var(--r-2); background: var(--surface-0); box-shadow: inset 0 0 0 1px var(--line-1); font-size: var(--fs-12); color: var(--text-3); font-weight: 500; }
.pause-acc .acc-chip { flex: none; }
.gen-tank .bar { height: 8px; }
.fuel-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.fuel-sizes .btn { flex-direction: column; gap: 2px; min-height: 56px; }
.fuel-head { display: flex; align-items: center; gap: 12px; }
.fuel-head > .ico-svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: var(--r-2); background: var(--gold-soft); color: var(--gold-300); box-shadow: inset 0 0 0 1px var(--gold-line); }
/* mid-size windows (small laptops, tablets on their side): slimmer side tabs and cart so two product columns fit */
@media (min-width: 860px) and (max-width: 1100px) {
  .mgr-wrap, .set-wrap { grid-template-columns: 184px minmax(0, 1fr); }
  .tab { padding: 0 8px 0 10px; gap: 10px; font-size: var(--fs-13); }
  .order-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 12px; }
  .pgrid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
}
