/* Clumzy Bot member dashboard — "New" (v2) style.
   Loaded AFTER lwauto.css (classic) and only when the Style switch is set to New.
   It overrides classic's design tokens with the v2 navy/orange palette and adds the
   per-category colour system for the Automations sections. Classic is untouched.
   Scoped to body[data-style=v2] so it never affects the Classic look.
   NOTE: still to come (next pass) — per-category level min/max control, and the
   richer Overview (status hero + activity feed). */

/* ---- palette: retint the whole app via classic's own token names ---- */
body[data-style=v2]{
  --bg:#08090f; --bg-glow:#0c1230; --side:#070810; --panel:#0e1430; --panel-2:#161d3e;
  --line:rgba(255,255,255,.08); --line-soft:rgba(255,255,255,.05);
  --fg:#e9edf6; --fg-70:rgba(233,237,246,.72); --mut:#8b93a6; --dim:#5b6172;
  --accent:#ff8a2a; --on-accent:#241002; --suit:#ff7410;
  --fire:linear-gradient(135deg,#ffb52e,#ff7410);
  --accent-90:rgba(255,138,42,.92); --accent-soft:rgba(255,138,42,.14);
  --gold:#ffcf8a; --gold-soft:rgba(255,207,138,.12);
  --tag:#c0281f; --green:#34d399; --green-soft:rgba(52,211,153,.14);
  --red:#ff5a52; --blue:#22d3ee; --blue-soft:rgba(34,211,238,.12);
  --teal:#22d3ee; --orange:#ff8a2a;
  background:#08090f;
  background-image:radial-gradient(680px 540px at 16% 0%,rgba(255,120,30,.11),transparent 70%),
    radial-gradient(1100px 850px at 8% -4%,rgba(48,72,142,.26),transparent 72%),
    linear-gradient(160deg,#0c1230,#090b1e 60%,#07070f);
  background-repeat:no-repeat;background-attachment:fixed;
}

/* ---- per-category colour: keyed off data-cat (combat is default); applies to
   the Automations sections AND the Overview summary cards ---- */
/* --grad = the soft light-to-colour gradient for icon tiles/banners.
   --fill = the SATURATED category colour for interactive fills (toggles, slider fills,
   segmented, buttons) so they read as the same clear category colour as the cards. */
/* --ca is THE category colour the cards use. --fill is derived straight from it
   (--ca, shading slightly darker) so every toggle/slider/segment is exactly the card
   colour — no separate hand-picked shade that could drift lighter/off-hue. */
body[data-style=v2] [data-cat]{--rgb:255,122,42;--grad:linear-gradient(135deg,#ffc266,#ff6a2a);--ca:#ff8a2a;--fill:#ff7410}
body[data-style=v2] [data-cat=resources]{--rgb:52,211,153;--grad:linear-gradient(135deg,#8ff0c0,#2fbf7a);--ca:#2fbf7a;--fill:#23b978}
body[data-style=v2] [data-cat=build]{--rgb:255,171,31;--grad:linear-gradient(135deg,#ffe08a,#ffab1f);--ca:#ffab1f;--fill:#ffa81f}
body[data-style=v2] [data-cat=events]{--rgb:34,184,214;--grad:linear-gradient(135deg,#a5f3fc,#22b8d6);--ca:#22b8d6;--fill:#1fb6d4}
/* NEW: Alliance — saturated pink, from the five-category mockup */
body[data-style=v2] [data-cat=alliance]{--rgb:255,45,138;--grad:linear-gradient(135deg,#ff9ad0,#ff1f7a);--ca:#ff2d8a;--fill:#ff1a75}

/* section header → a colour-tinted banner with a left accent bar + colour icon tile */
body[data-style=v2] .agroup{margin-bottom:22px}
body[data-style=v2] .agroup-head{position:relative;overflow:hidden;gap:12px;margin-bottom:13px;padding:11px 14px;border-radius:14px;
  border:1px solid rgba(var(--rgb),.22);background:linear-gradient(90deg,rgba(var(--rgb),.15),rgba(var(--rgb),.03) 55%,transparent)}
body[data-style=v2] .agroup-head::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--grad)}
body[data-style=v2] .agroup-head .art{width:38px;height:38px;flex:0 0 auto;border-radius:11px;padding:8px;background:var(--grad);
  box-shadow:0 5px 16px rgba(var(--rgb),.42),inset 0 1px 0 rgba(255,255,255,.35)}
body[data-style=v2] .agroup-head h2{font-size:16px;font-weight:700}
body[data-style=v2] .agroup-head .btn.text{color:var(--ca)}

/* cards adopt the category colour ALWAYS (on or off): tint, border, icon tile, badge, toggle.
   A faint category wash + coloured border makes each section read as its colour even with
   everything off; the ON state deepens the same colour. */
body[data-style=v2] .acard{border-radius:14px;border:1px solid rgba(var(--rgb),.26);
  background:linear-gradient(180deg,rgba(var(--rgb),.055),transparent 70%),var(--panel)}
body[data-style=v2] .acard:hover{border-color:rgba(var(--rgb),.6);
  background:linear-gradient(180deg,rgba(var(--rgb),.11),transparent 70%),var(--panel-2)}
body[data-style=v2] .acard.on{border-color:rgba(var(--rgb),.6);
  background:linear-gradient(180deg,rgba(var(--rgb),.18),transparent 75%),var(--panel)}
body[data-style=v2] .acard .art{width:36px;height:36px;box-sizing:border-box;padding:6px;border-radius:10px;
  border:1px solid rgba(var(--rgb),.42);background:radial-gradient(120% 120% at 30% 20%,rgba(var(--rgb),.30),rgba(var(--rgb),.07));
  box-shadow:0 0 12px rgba(var(--rgb),.20),inset 0 1px 0 rgba(255,255,255,.10)}
/* every inner control tracks the category colour */
body[data-style=v2] .acard .abadges .pill.accent{color:#241002;background:var(--grad);border:0}
body[data-style=v2] .acard .abadges .pill.blue{color:var(--ca);background:rgba(var(--rgb),.15);border-color:rgba(var(--rgb),.42)}
body[data-style=v2] .acard .abadges .pill.blue svg{color:var(--ca)}
body[data-style=v2] .acard-sw input:checked+.sl{background:var(--fill);box-shadow:0 0 0 1px rgba(var(--rgb),.5) inset,0 0 12px rgba(var(--rgb),.4)}

/* category filter chips: the active chip carries ITS category's colour */
body[data-style=v2] .cat-chip.on{background:rgba(var(--rgb),.16);border-color:rgba(var(--rgb),.55);color:var(--ca)}
body[data-style=v2] .cat-chip.on .rail-n{color:var(--ca)}

/* overview: category tiles pick up their colour when active */
body[data-style=v2] .cat-tile.act{background:rgba(255,138,42,.16);color:var(--accent)}
body[data-style=v2] .cat-tile[data-cattile=resources].act{background:rgba(52,211,153,.16);color:#5fe0a8}
body[data-style=v2] .cat-tile[data-cattile=build].act{background:rgba(255,171,31,.16);color:#ffca6a}
body[data-style=v2] .cat-tile[data-cattile=events].act{background:rgba(34,184,214,.16);color:#5fd8ee}
body[data-style=v2] .cat-tile[data-cattile=alliance].act{background:rgba(255,45,138,.16);color:#ff6fb0}

/* the golden power numbers read a touch warmer on navy */
body[data-style=v2] .gold,body[data-style=v2] .num{color:var(--gold)}

/* ---- per-category "Target level" control (New style) ---- */
body[data-style=v2] .catctrl{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-4px 0 13px;padding:9px 13px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.02)}
body[data-style=v2] .catctrl .lvl{font-size:12px;font-weight:600;color:var(--mut)}
body[data-style=v2] .catctrl .lvseg{display:inline-flex;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.03);padding:3px}
body[data-style=v2] .catctrl .lvseg button{border:0;background:transparent;color:var(--mut);height:26px;padding:0 13px;border-radius:7px;cursor:pointer;font:inherit;font-size:12px;font-weight:600}
body[data-style=v2] .catctrl .lvseg button.on{background:var(--fill);color:#241002}
/* dual-knob range-slider controller — shared by the category control AND the
   per-automation "Min/Max" level bands inside the settings drawer */
body[data-style=v2] .lvslider{position:relative;flex:1;min-width:150px;height:20px;display:flex;align-items:center;margin:0 4px}
body[data-style=v2] .lvslider .rtrack{position:absolute;left:0;right:0;height:6px;border-radius:99px;background:#20263c}
body[data-style=v2] .lvslider .rtrack i{position:absolute;top:0;bottom:0;border-radius:99px;background:var(--fill)}
body[data-style=v2] .lvslider input[type=range]{position:absolute;left:0;width:100%;height:20px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;pointer-events:none}
body[data-style=v2] .lvslider input[type=range]::-webkit-slider-runnable-track{height:6px;background:transparent;border:0}
body[data-style=v2] .lvslider input[type=range]::-moz-range-track{height:6px;background:transparent;border:0}
body[data-style=v2] .lvslider input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;margin-top:-5px;width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid rgba(var(--rgb),1);box-shadow:0 0 8px rgba(var(--rgb),.6),0 2px 4px rgba(0,0,0,.4);cursor:pointer}
body[data-style=v2] .lvslider input[type=range]::-moz-range-thumb{pointer-events:auto;width:16px;height:16px;border:3px solid rgba(var(--rgb),1);border-radius:50%;background:#fff;box-shadow:0 0 8px rgba(var(--rgb),.6);cursor:pointer}
body[data-style=v2] .rv{font-size:12.5px;font-weight:700;color:var(--ca);min-width:78px;text-align:right;font-variant-numeric:tabular-nums}
body[data-style=v2] .catctrl.anymode .lvslider{opacity:.45}
body[data-style=v2] .catctrl.anymode .rv{color:var(--mut)}

/* ---- richer Overview: status hero + coloured category summary cards ---- */
body[data-style=v2] .ovhero{display:flex;gap:16px;flex-wrap:wrap;align-items:center;border-radius:16px;padding:15px 18px;margin-bottom:16px;border:1px solid var(--line);background:radial-gradient(520px 200px at 10% 0%,rgba(255,120,30,.12),transparent 70%),linear-gradient(180deg,rgba(255,255,255,.03),transparent)}
body[data-style=v2] .ovhero .hstat{display:flex;align-items:center;gap:9px}
body[data-style=v2] .ovhero .hstat b{display:block;font-size:14px;line-height:1.2}
body[data-style=v2] .ovhero .hstat small{color:var(--mut);font-size:11.5px}
body[data-style=v2] .ovhero .hdot{width:11px;height:11px;border-radius:50%;flex:0 0 auto}
body[data-style=v2] .ovhero .sep{width:1px;height:32px;background:var(--line)}
body[data-style=v2] #cattiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
@media (max-width:760px){body[data-style=v2] #cattiles{grid-template-columns:repeat(2,1fr)}}
body[data-style=v2] .csum{text-align:left;border:1px solid rgba(var(--rgb),.30);border-radius:14px;padding:12px 13px;cursor:pointer;color:var(--fg);background:linear-gradient(180deg,rgba(var(--rgb),.11),transparent 75%),var(--panel)}
body[data-style=v2] .csum:hover{border-color:rgba(var(--rgb),.6)}
body[data-style=v2] .csum .ic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--grad);box-shadow:0 4px 12px rgba(var(--rgb),.4),inset 0 1px 0 rgba(255,255,255,.3)}
body[data-style=v2] .csum .ic .art{width:20px;height:20px}
body[data-style=v2] .csum .nm{display:block;font-size:13px;font-weight:600;margin:9px 0 8px}
body[data-style=v2] .csum .bar{display:block;height:6px;border-radius:99px;background:#20263c;overflow:hidden}
body[data-style=v2] .csum .bar i{display:block;height:100%;background:var(--fill);width:0;transition:width .2s}
body[data-style=v2] .csum .ct{display:block;font-size:11.5px;color:var(--ca);font-weight:700;margin-top:7px}

/* ---- settings drawer takes the automation's category colour (New style) ---- */
/* the drawer remaps EVERY accent-ish token to the category colour, so every control
   inside it — toggles, sliders, segmented, chips, links, lit boxes, badges, the
   "saved"/check success marks — reads as one category colour. --gold (power) and
   --tag/--red (destructive) stay semantic. */
body[data-style=v2] .drawer[data-cat]{--accent:var(--ca);--accent-90:var(--ca);--suit:var(--ca);--orange:var(--ca);--blue:var(--ca);--teal:var(--ca);--green:var(--ca);--fire:var(--fill);--on-accent:#241002;--accent-soft:rgba(var(--rgb),.14);--blue-soft:rgba(var(--rgb),.14);--green-soft:rgba(var(--rgb),.14)}
body[data-style=v2] .drawer[data-cat] .sw input:checked+.sl{background:var(--fill);box-shadow:0 0 0 1px rgba(var(--rgb),.5) inset,0 0 12px rgba(var(--rgb),.4)}
body[data-style=v2] .drawer[data-cat] .drawer-title{color:var(--ca)}
body[data-style=v2] .drawer[data-cat] .art.glyph{color:var(--ca);background:rgba(var(--rgb),.16)}

/* toggle knob: white when ON so the category-coloured track reads vibrant (the base
   theme uses a dark knob, which muddied the fill). Off knob stays neutral grey. */
body[data-style=v2] .sw input:checked+.sl::before{background:#fff}

/* ROOT CAUSE of "toggles look tan": classic dims an OFF automation's settings with
   filter:saturate(.25), which desaturates every category-coloured control inside to a
   beige. New style keeps the category colour intact — the "Settings — used once it's on"
   heading already says they are inactive. */
body[data-style=v2] .drawer-sec.off .fields{filter:none}

/* ---- PC layout ---- */
/* centre the content column on wide screens (classic left-aligns it under the max-width) */
body[data-style=v2] .content{margin-left:auto;margin-right:auto}
/* equal-height cards: the grid stretches each .acard-wrap to the row height; make the
   wrap a flex box so the card itself fills it instead of sizing to its own text */
body[data-style=v2] .acard-wrap{display:flex}
body[data-style=v2] .acard{flex:1 1 auto;min-height:100%}

/* ---- settings drawer surface: navy glass, not flat black ----
   classic paints the drawer with --bg (#08090f) and the footer with --side; the setting
   boxes are transparent so they read black too. New style: the same navy as the page
   background, slightly translucent with a backdrop blur so the page shows through. */
body[data-style=v2] .drawer{background:linear-gradient(180deg,rgba(16,22,52,.90),rgba(10,13,34,.90) 60%,rgba(8,10,26,.92));
  -webkit-backdrop-filter:blur(16px) saturate(1.15);backdrop-filter:blur(16px) saturate(1.15);border-left:1px solid rgba(255,255,255,.09)}
body[data-style=v2] .drawer-foot{background:rgba(10,13,34,.80);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}
body[data-style=v2] .drawer-bg.open{background:rgba(5,7,20,.42)}
/* setting boxes = MODE BLOCKS: each toggle/group is its own raised card so the modes read as
   separate things, not one running section (operator 2026-10-13). Stronger border + a lift shadow
   + more gap between blocks; the block tints in the category colour when its toggle is on (.lit). */
body[data-style=v2] .drawer .fbox{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);
  border-radius:14px;margin-bottom:12px;box-shadow:none}
body[data-style=v2] .drawer .fbox.lit{background:rgba(var(--rgb),.07);border-color:rgba(var(--rgb),.34)}
/* mode-block header (mockup): icon tile + title/hint on the left, switch on the right */
body[data-style=v2] .drawer .fhead-l{display:flex;align-items:center;min-width:0;flex:1 1 auto}
body[data-style=v2] .drawer .fico{flex:0 0 auto;width:28px;height:28px;border-radius:8px;display:grid;place-items:center;
  background:rgba(var(--rgb),.14);color:var(--ca)}
body[data-style=v2] .drawer .fico svg{width:16px;height:16px}
body[data-style=v2] .drawer .fico.emoji{font-size:15px;line-height:1}   /* `icon` can also be an emoji (mockup icons) */
body[data-style=v2] .drawer .fhead-l{gap:10px}
/* phone: a notch smaller so the title + switch keep one line */
@media (max-width:560px){
  body[data-style=v2] .drawer .fico{width:24px;height:24px;border-radius:7px}
  body[data-style=v2] .drawer .fico svg{width:14px;height:14px}
  body[data-style=v2] .drawer .fico.emoji{font-size:13px}
  body[data-style=v2] .drawer .fhead-l{gap:8px}
}
body[data-style=v2] .drawer .fhead .fl{font-weight:650}
/* a setting the engine doesn't act on yet (field `na`): dimmed + not clickable + "Not active yet" badge */
body[data-style=v2] .drawer .na .fctl,body[data-style=v2] .drawer .fbox.na>.fhead>.sw{opacity:.45;pointer-events:none}
body[data-style=v2] .drawer .na .fl,body[data-style=v2] .drawer .na .hint{opacity:.7}
body[data-style=v2] .drawer .na-badge{margin-left:8px;font-size:11px;font-weight:600;vertical-align:middle;
  color:var(--mut);background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);opacity:1}
/* preset picker, popup mode (field `popup`): one compact line in the card + the list in a modal */
.pp-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.pp-name{font-size:13px;font-weight:600}
.pp-heroes{display:inline-flex;gap:3px}
.pp-hero{width:24px;height:24px;border-radius:7px;object-fit:cover;background:rgba(255,255,255,.08);
  display:inline-grid;place-items:center;font-size:9px;font-weight:700;color:var(--mut)}
.pp-modal{max-width:440px;padding:16px}
.pp-modal h2{font-size:16px}
.pp-modal>p{margin:2px 0 12px;font-size:12.5px}
.pp-modal .presets{display:grid;gap:6px;max-height:min(60vh,420px);overflow:auto}
/* compact rows: name left, all 5 portraits on ONE line right (they used to wrap 3+2 and double the row height) */
.pp-modal .preset-row{padding:7px 10px;gap:9px;border-radius:10px}
.pp-modal .preset-row .preset-check{width:18px;height:18px}
.pp-modal .preset-name{font-size:14px;min-width:0;flex:1 1 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pp-modal .preset-heroes{flex-wrap:nowrap;gap:3px;margin-left:0;flex:none}
.pp-modal .preset-hero{width:28px;height:28px;border-radius:7px}
.pp-modal .preset-hero.ph{font-size:9px}
.pp-modal .preset-row.on{border-color:var(--accent);background:rgba(255,138,42,.10)}
.pp-modal .preset-row.on .preset-check{background:var(--accent);border-color:var(--accent);color:#241002}
@media (max-width:560px){
  .pp-modal .preset-hero{width:24px;height:24px;border-radius:6px}
  .pp-modal .preset-name{font-size:13px}
}
/* chips in the settings drawer, sized like the mockup: 36px tall, bold, rounder; number chips 40px square-ish */
body[data-style=v2] .drawer .chips{gap:8px}
body[data-style=v2] .drawer .chip{height:auto;min-height:36px;padding:8px 15px;font-size:13px;font-weight:600;line-height:18px;
  border-radius:10px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.12);color:var(--fg)}
body[data-style=v2] .drawer .chip.sq{min-width:40px;padding:8px 0;text-align:center}
body[data-style=v2] .drawer .chip:hover{border-color:rgba(var(--rgb),.5);background:rgba(255,255,255,.06)}
body[data-style=v2] .drawer .chip.on{background:rgba(var(--rgb),.14);border-color:var(--ca);color:var(--ca)}
/* the stepper's live cost line sits full-width under its row (label left, stepper right stays on one line) */
body[data-style=v2] .drawer .frow>.fcost{flex-basis:100%;margin:2px 0 0}
body[data-style=v2] .drawer .fcost b{color:var(--ca);font-weight:650}
/* inside a block the nested rows are divided by a SOFTER line than the block's own border, so the
   block reads as one unit while its sub-settings stay legible */
body[data-style=v2] .drawer .fbox .fnest{border-top-color:rgba(255,255,255,.07)}
body[data-style=v2] .drawer .fbox.lit .fnest{border-top-color:rgba(var(--rgb),.22)}

/* ---- mockup icon set (flat line glyphs, category-gradient stroke) ---- */
body[data-style=v2] .art.glyph.mg{background:transparent;color:inherit}
body[data-style=v2] .art.glyph.mg svg{width:62%;height:62%}
/* card + what's-on + drawer tiles already carry the category tint; the SOLID gradient
   section-header tile needs a dark stroke or the gradient glyph would vanish on it */
body[data-style=v2] .agroup-head .art.glyph.mg svg,body[data-style=v2] .csum .ic .art.glyph.mg svg{stroke:#1a0b12;width:56%;height:56%}
body[data-style=v2] .agroup-head .art.glyph.mg{padding:0}
/* glyph sizing in absolute px (the % sizing was eaten by the sprite tile's padding → ~15px) */
body[data-style=v2] .acard .art.glyph.mg{padding:0;width:44px;height:44px}
body[data-style=v2] .acard .art.glyph.mg svg{width:26px;height:26px}
body[data-style=v2] .agroup-head .art.glyph.mg svg,body[data-style=v2] .csum .ic .art.glyph.mg svg{width:24px;height:24px}
body[data-style=v2] .art.lg.glyph.mg svg{width:40px;height:40px}
body[data-style=v2] .won-row .art.xs.glyph.mg svg{width:18px;height:18px}
/* header tile: keep the solid category-gradient tile behind the dark glyph — the generic
   .art.glyph.mg{background:transparent} rule out-specifies .agroup-head .art and had blanked it */
body[data-style=v2] .agroup-head .art.glyph.mg{background:var(--grad);box-shadow:0 5px 16px rgba(var(--rgb),.42),inset 0 1px 0 rgba(255,255,255,.35)}

/* sprite tiles match the glyph tiles (44px) so mixed rows stay aligned */
body[data-style=v2] .acard img.art{width:44px;height:44px;padding:5px}

/* ---- connect page: centre the wizard column (card was max-width:560 with no auto margins) ---- */
body[data-style=v2] .card.connect{margin-left:auto;margin-right:auto}
body[data-style=v2] .content:has(.card.connect)>.crumbs,
body[data-style=v2] .content:has(.card.connect)>.page-head{max-width:560px;margin-left:auto;margin-right:auto}

/* ================= connect wizard (glass + progress ring), scoped to .cw ================= */
body[data-style=v2] .card.connect.cw{max-width:560px;padding:24px;border-radius:20px;border:1px solid rgba(255,255,255,.13);
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.02)),rgba(14,20,48,.52);
  -webkit-backdrop-filter:blur(20px) saturate(1.25);backdrop-filter:blur(20px) saturate(1.25);
  box-shadow:0 24px 60px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.10)}
.cw [hidden]{display:none!important}
.cw-steps{display:flex;gap:8px;list-style:none;padding:0;margin:0 0 18px}
.cw-steps li{flex:1;position:relative;padding-top:12px;font-size:12.5px;color:var(--mut);font-weight:600}
.cw-steps li::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;border-radius:99px;background:rgba(255,255,255,.08)}
.cw-steps li::after{content:"";position:absolute;left:0;top:0;height:4px;border-radius:99px;width:0;background:#ff7410;box-shadow:0 0 10px rgba(255,116,16,.6);transition:width .5s ease}
.cw-steps li.on{color:var(--fg)}.cw-steps li.on::after{width:50%}.cw-steps li.done{color:#ffb070}.cw-steps li.done::after{width:100%}
.cw-stage{display:flex;flex-direction:column;align-items:center;text-align:center}
.cw-ring{position:relative;width:120px;height:120px;margin:2px 0}
.cw-arc{--p:0;width:120px;height:120px;border-radius:50%;background:conic-gradient(#ff7410 calc(var(--p)*1%),rgba(255,255,255,.08) 0);
  -webkit-mask:radial-gradient(farthest-side,transparent 81%,#000 83%);mask:radial-gradient(farthest-side,transparent 81%,#000 83%);filter:drop-shadow(0 0 10px rgba(255,116,16,.45))}
.cw-spin{position:absolute;inset:-7px;border-radius:50%;border:2px solid transparent;border-top-color:rgba(255,138,42,.55);animation:cwspin 1.4s linear infinite}
.cw-ring.idle .cw-spin{animation-play-state:paused;opacity:.3}
.cw-ring.done .cw-spin{border-top-color:rgba(52,211,153,.6);animation-duration:4s}
.cw-ring.done .cw-arc{background:conic-gradient(#34d399 100%,transparent 0);filter:drop-shadow(0 0 12px rgba(52,211,153,.5))}
.cw-ring.err .cw-spin{border-top-color:rgba(255,90,82,.6);animation-play-state:paused}
.cw-ring.err .cw-arc{background:conic-gradient(#ff5a52 calc(var(--p)*1%),rgba(255,255,255,.08) 0);filter:drop-shadow(0 0 10px rgba(255,90,82,.45))}
.cw-pct{position:absolute;inset:0;display:grid;place-items:center;line-height:1}
.cw-pct b{font-size:27px;font-variant-numeric:tabular-nums;letter-spacing:-1px}.cw-pct small{display:block;font-size:9.5px;color:var(--mut);letter-spacing:.14em;margin-top:5px}
@keyframes cwspin{to{transform:rotate(360deg)}}
@keyframes cwin{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes cwdots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}
@keyframes cwshake{25%{transform:translateX(-6px)}50%{transform:translateX(6px)}75%{transform:translateX(-3px)}}
@keyframes cwshimmer{to{background-position:-200% 0}}
.cw-status{margin:10px 0 0;min-height:40px}
.cw-msg{font-size:16px;font-weight:600;animation:cwin .35s ease}
.cw-dots{display:inline-block;width:1.15em;text-align:left}   /* fixed slot so animating dots never shove the word */
.cw-dots::after{content:"";animation:cwdots 1.4s steps(4) infinite}
.cw-bars{display:flex;gap:9px;justify-content:center;margin:16px auto 2px;max-width:300px;padding:0 4px}
.cw-bars i{flex:1;height:5px;border-radius:3px;background:rgba(255,255,255,.10);transition:background .45s ease,box-shadow .45s ease}
.cw-bars i.done{background:#ff7410}
.cw-bars i.on{background:linear-gradient(90deg,#ffa347,#ff6a00);box-shadow:0 0 9px rgba(255,138,42,.55);animation:cwbarpulse 1.3s ease-in-out infinite}
@keyframes cwbarpulse{0%,100%{opacity:1}50%{opacity:.5}}
.gradbar{height:8px;border-radius:6px;background:rgba(255,255,255,.09);overflow:hidden;margin-top:12px}
.gradbar[hidden]{display:none}
.gradbar i{display:block;height:100%;width:0;border-radius:6px;background:linear-gradient(90deg,#ffa347,#ff7410);box-shadow:0 0 10px rgba(255,138,42,.4);transition:width 1.4s cubic-bezier(.4,0,.2,1)}
.cw-sub{color:var(--mut);font-size:13px;margin-top:2px}
.cw-panel{width:100%;text-align:left;margin-top:18px;animation:cwin .35s ease}
.cw-fl{display:block;font-size:17px;font-weight:700;margin-bottom:3px}
.cw-hint{color:var(--mut);font-size:14px;margin:0 0 12px}
.cw .cw-txt{width:100%;height:50px;border-radius:12px;font-size:16px;padding:0 15px;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.14)}
.cw .cw-txt:focus{border-color:rgba(255,138,42,.75);box-shadow:0 0 0 3px rgba(255,138,42,.16)}
.cw .cw-code{letter-spacing:14px;text-align:center;font-size:24px;font-variant-numeric:tabular-nums}
.cw .cw-txt.bad{border-color:#ff5a52;box-shadow:0 0 0 3px rgba(255,90,82,.16);animation:cwshake .35s}
.cw-ferr{display:flex;gap:7px;align-items:flex-start;color:#ff8a82;font-size:13.5px;margin-top:8px;animation:cwin .25s ease}
.cw-ferr:empty{display:none}
.cw-ferr::before{content:"!";flex:none;width:17px;height:17px;border-radius:50%;background:#ff5a52;color:#fff;font-weight:900;font-size:11px;display:grid;place-items:center;margin-top:1px}
.cw-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}
.cw .btn{height:44px;font-size:15px}.cw .btn.sm{height:36px;font-size:13.5px}
.cw .btn.cw-red{background:linear-gradient(180deg,#f0503c,#c0281f);color:#fff;box-shadow:none}
.cw-grow{flex:1;min-width:0}
.cw-alert{width:100%;display:flex;gap:12px;text-align:left;margin-top:16px;padding:14px 15px;border-radius:14px;border:1px solid rgba(255,90,82,.45);background:linear-gradient(180deg,rgba(255,90,82,.14),rgba(255,90,82,.05));animation:cwin .3s ease}
.cw-aic{flex:none;width:30px;height:30px;border-radius:50%;background:rgba(255,90,82,.2);border:1px solid rgba(255,90,82,.5);color:#ff8a82;display:grid;place-items:center;font-weight:900}
.cw-alert b{display:block;font-size:15.5px;color:#ffd2ce}.cw-alert p{margin:2px 0 0;color:#e7c3c0;font-size:13.5px}
.cw-alert .cw-row{margin-top:10px}
.cw-log{list-style:none;margin:16px 0 0;padding:12px 0 0;border-top:1px solid var(--line);text-align:left;width:100%}
.cw-log:empty{display:none}
.cw-log li{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--mut);padding:3px 0;animation:cwin .35s ease}
.cw-log .ic{width:18px;height:18px;border-radius:50%;flex:none;display:grid;place-items:center;font-size:11px;font-weight:800}
.cw-log li.ok{color:var(--fg)}.cw-log li.ok .ic{background:rgba(52,211,153,.16);color:#34d399}
.cw-log li.no .ic{background:rgba(255,90,82,.16);color:#ff5a52}
.cw-log li.run .ic{border:2px solid rgba(255,138,42,.3);border-top-color:#ff8a2a;animation:cwspin .8s linear infinite}
.cw-chars{display:grid;gap:10px}
.cw-ch{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:12px;border:1px solid var(--line);background:rgba(255,255,255,.03);cursor:pointer;animation:cwin .4s ease both;transition:border-color .2s,background .2s}
.cw-ch.sel{border-color:rgba(255,138,42,.6);background:rgba(255,138,42,.09)}
.cw-ch .av{width:36px;height:36px;border-radius:50%;flex:none}
.cw-ch img.av{object-fit:cover;background:#0b151a;border-radius:50%;overflow:hidden}
.cw-ch b{display:block;font-size:14.5px}.cw-ch small{color:var(--mut);font-size:12px}
.cw-ch .box{width:21px;height:21px;border-radius:6px;border:2px solid #4a5277;flex:none;display:grid;place-items:center;font-size:12px;color:#241002;font-weight:900}
.cw-ch.sel .box{background:#ff7410;border-color:#ff7410}
.cw-ch.skel{cursor:default}
.cw-ch.skel .av,.cw-ch.skel .bar{background:linear-gradient(90deg,rgba(255,255,255,.05) 0,rgba(255,255,255,.12) 50%,rgba(255,255,255,.05) 100%);background-size:200% 100%;animation:cwshimmer 1.2s linear infinite}
.cw-ch.skel .bar{height:10px;border-radius:6px;width:55%}.cw-ch.skel .bar.short{width:35%;margin-top:6px}
.cw-done{text-align:center}.cw-done b{font-size:18px}.cw-done .cw-row{justify-content:center}

/* Disconnected / reconnecting banner on the account page (health-driven) */
.disc-banner{display:flex;align-items:center;gap:12px}
.disc-banner .dot{width:11px;height:11px;flex:0 0 auto}
.disc-banner.bad{border-color:var(--red,#e5484d);background:rgba(229,72,77,.08)}
.disc-banner.warn{border-color:var(--gold,#f0b429);background:rgba(240,180,41,.07)}
.disc-banner .grow{display:flex;flex-direction:column;gap:2px;min-width:0}
.disc-banner b{font-size:15px}
.disc-banner .btn{flex:none}

/* Disconnected (broken) character: the whole page reads as inactive — desaturated avatar,
   dimmed header + overview/automation cards — while the red banner and the "Automation
   session" card (which holds Reconnect) stay fully lit so recovery is obvious. */
.stack.brk .head-card .head{filter:grayscale(1);opacity:.55}
.stack.brk .head-card .top h1,
.stack.brk .head-card .stats > :not(.discon),
.stack.brk .head-card .email{opacity:.5}
.stack.brk [data-pane=overview] .card,
.stack.brk [data-pane=automations],
.stack.brk [data-pane=schedule]{filter:grayscale(.85);opacity:.55}
.stack.brk .disc-banner,
.stack.brk #fleetcard{filter:none;opacity:1}

/* Log in / Sign up (public pages, no sidebar) */
.auth-body{min-height:100vh;background:var(--bg,#0a0f1e)}
.auth-wrap{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:24px 16px;gap:18px}
.auth-logo svg{width:52px;height:52px}
.auth-card{width:100%;max-width:400px;padding:26px 24px}
.auth-card h1{font-size:26px;margin:0 0 4px}
.auth-form{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.auth-field{display:flex;flex-direction:column;gap:5px;font-size:13px;color:var(--mut)}
.auth-field .txt{width:100%;height:42px;font-size:15px}
.auth-btn{width:100%;height:44px;justify-content:center;margin-top:4px;font-size:15px}
.auth-alt{margin:16px 0 0;font-size:13px;text-align:center}
.auth-alt a{color:var(--gold,#f0b429);font-weight:600}
.auth-err{margin-top:12px;padding:10px 12px;border-radius:10px;border:1px solid var(--red,#e5484d);
  background:rgba(229,72,77,.1);color:#ffb4b6;font-size:13.5px}

/* Trial banner on every member page */
.plan-banner{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px;padding:10px 14px;
  border-color:var(--gold,#f0b429);background:rgba(240,180,41,.07)}
.plan-banner .btn{margin-left:auto}
.plan-banner.ended{border-color:var(--red,#e5484d);background:rgba(229,72,77,.08)}

/* Sidebar footer: member name + Log out */
.foot .who{display:flex;flex-direction:column;line-height:1.25}
.foot .logout{font-size:11.5px;color:var(--mut);text-decoration:none}
.foot .logout:hover{color:var(--gold,#f0b429)}
.auth-forgot{align-self:flex-end;font-size:12.5px;color:var(--gold,#f0b429);margin-top:-4px}

/* brand robot logo (static/brand) */
.logo-img{width:34px;height:34px;border-radius:9px;flex:0 0 auto;display:block}
.auth-logo .logo-img{width:56px;height:56px;border-radius:14px}
.auth-logo{gap:10px;font-size:24px}

/* Login mascot: the robot stands left of the form on wide screens, reaching behind the card.
   Phones keep the form first (mascot hidden). Float stops for reduced-motion users. */
.auth-scene{width:100%;display:flex;justify-content:center}
.auth-col{display:flex;flex-direction:column;align-items:center;gap:18px;width:100%;max-width:400px;position:relative;z-index:1}
.auth-robot{display:none}
@media (min-width:900px){
  .auth-scene{display:flex;align-items:flex-end;justify-content:center}   /* feet on the card's bottom line */
  .auth-robot{display:block;height:min(378px,47vh);width:auto;margin-right:20px;margin-bottom:0;
    position:relative;z-index:0;filter:drop-shadow(0 26px 40px rgba(255,122,26,.22));
    animation:robot-float 6s ease-in-out infinite}
}
@keyframes robot-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@media (prefers-reduced-motion:reduce){.auth-robot{animation:none}}

/* Disconnected character: the dead-robot face sits next to "Disconnected" in the character page's
   status strip (40px, with Reconnect). On account cards the X-eyes robot replaces the avatar (44px) and a
   red DISCONNECTED label sits above the name. Full colour: it is the alert. */
.acct .head.dead-avatar{width:44px;height:44px;margin:-2px;border-radius:0;background:none;object-fit:contain}
.acct .disc-pill{display:inline-block;margin-bottom:3px;padding:1px 8px;border-radius:999px;font-size:10.5px;font-weight:700;
  letter-spacing:.3px;text-transform:uppercase;color:#ff8a8d;background:rgba(229,72,77,.16);border:1px solid rgba(229,72,77,.45)}
body[data-style=v2] .ovhero .hdead{width:40px;height:40px;flex:0 0 auto;margin:-6px 2px -6px -4px;object-fit:contain}
body[data-style=v2] .ovhero .hre{margin-left:12px}

/* Admin tags on automation cards (catalog_admin.py) */
.pill.tag-soon{color:#c9d1e6;background:rgba(150,160,190,.16);border:1px solid rgba(150,160,190,.35)}
.pill.tag-maint{color:#ffc56b;background:rgba(240,180,41,.14);border:1px solid rgba(240,180,41,.4)}
.pill.tag-new{color:#6ff0a6;background:rgba(62,207,142,.14);border:1px solid rgba(62,207,142,.4)}
.acard.locked{opacity:.62}
.acard.locked .art{filter:grayscale(.8)}
.acard-wrap .sw input:disabled+.sl{opacity:.35;cursor:not-allowed}
.power-row.locked{border-style:dashed}

/* Admin > Automations page */
.adm-legend{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:12.5px;color:var(--mut);margin-bottom:14px}
.apill{display:inline-block;padding:1px 8px;border-radius:999px;font-size:11px;margin-right:4px}
.apill.live{color:#6ff0a6;background:rgba(62,207,142,.14)} .apill.soon{color:#c9d1e6;background:rgba(150,160,190,.16)}
.apill.maint{color:#ffc56b;background:rgba(240,180,41,.14)} .apill.new{color:#6ff0a6;background:rgba(62,207,142,.14)}
.adm-cat{margin-bottom:14px}
.adm-cat h2{margin-bottom:8px}
.adm-cat h2 .mut{font-size:12.5px;font-weight:400;margin-left:6px}
.adm-row{display:grid;grid-template-columns:minmax(180px,1fr) auto auto auto;align-items:center;gap:14px;
  padding:9px 0;border-top:1px solid var(--line)}
.adm-row.hidden-row .adm-name b{opacity:.45;text-decoration:line-through}
.adm-row.saving{opacity:.6}
.adm-row.err{box-shadow:inset 3px 0 0 var(--red,#e5484d)}
.adm-name{display:flex;flex-direction:column;gap:2px;min-width:0}
.adm-name .eng-yes{font-size:11px;color:#6ff0a6} .adm-name .eng-no{font-size:11px;color:var(--mut)}
.adm-seg{display:inline-flex;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.adm-seg button{background:none;border:0;color:var(--mut);padding:6px 11px;font-size:12.5px;cursor:pointer}
.adm-seg button+button{border-left:1px solid var(--line)}
.adm-seg button.on[data-st=live]{background:rgba(62,207,142,.18);color:#6ff0a6}
.adm-seg button.on[data-st=coming_soon]{background:rgba(150,160,190,.2);color:#dfe5f5}
.adm-seg button.on[data-st=maintenance]{background:rgba(240,180,41,.18);color:#ffc56b}
.adm-chk,.adm-vis{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--mut);cursor:pointer;white-space:nowrap}
@media (max-width:760px){.adm-row{grid-template-columns:1fr 1fr}.adm-seg{grid-column:1/-1}}

/* Admin > Automations: drag and drop layout (SortableJS) */
.adm-bar{margin:0 0 10px;font-size:12.5px}
.adm-cat-head{display:flex;align-items:center;gap:10px;margin-bottom:6px}
.adm-cat-head h2{margin:0}
.adm-cat-head .cnt{font-size:12.5px}
.adm-cat .cat-dot{width:10px;height:10px;border-radius:50%;background:var(--ca,#ff8a2a);box-shadow:0 0 8px rgba(var(--rgb,255,122,42),.6)}
.adm-cat{border-left:3px solid var(--ca,#ff8a2a)}
.drag{cursor:grab;color:var(--mut);font-size:18px;line-height:1;user-select:none;touch-action:none;padding:4px 2px}
.drag:active{cursor:grabbing}
.adm-row{grid-template-columns:auto minmax(170px,1fr) auto auto auto}
.adm-list{min-height:12px}
.adm-drop-hint{margin:6px 0 2px;font-size:12px;text-align:center;border:1px dashed var(--line);border-radius:8px;padding:10px}
.drag-ghost{opacity:.35;background:rgba(var(--rgb,255,122,42),.12)}
@media (max-width:760px){.adm-row{grid-template-columns:auto 1fr 1fr}.adm-seg{grid-column:2/-1}}

/* Admin > Automations: engine view */
.adm-sum{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:12px}
.adm-stat{background:var(--panel,#0e1a2c);border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.adm-stat b{display:block;font-size:24px;line-height:1.1} .adm-stat span{font-size:12px;color:var(--mut)}
.adm-stat.ok b{color:#6ff0a6} .adm-stat.no b{color:#c9d1e6} .adm-stat.warn b{color:#ff8a8d}
.adm-filters{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.adm-filters button{background:none;border:1px solid var(--line);color:var(--mut);border-radius:999px;padding:5px 12px;font-size:12.5px;cursor:pointer}
.adm-filters button.on{border-color:var(--gold,#f0b429);color:var(--gold,#f0b429);background:rgba(240,180,41,.08)}
.adm-legend .sep{flex-basis:100%;height:0}
.eng{display:inline-block;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap}
.eng.ready{color:#6ff0a6;background:rgba(62,207,142,.15);border:1px solid rgba(62,207,142,.4)}
.eng.separate{color:#8ec5ff;background:rgba(90,169,255,.14);border:1px solid rgba(90,169,255,.4)}
.eng.none{color:#aab2c8;background:rgba(150,160,190,.1);border:1px solid rgba(150,160,190,.3)}
.adm-meta{display:flex;align-items:center;gap:8px;font-size:11.5px;flex-wrap:wrap}
.adm-warn{font-size:11.5px} .adm-warn.bad{color:#ff8a8d} .adm-warn.ok{color:#6ff0a6}
.adm-cats.filtering .drag{opacity:.25;cursor:default}

/* Admin tabs + Members page */
.adm-tabs{display:flex;gap:4px;margin-bottom:14px;border-bottom:1px solid var(--line)}
.adm-tabs a{padding:8px 14px;color:var(--mut);text-decoration:none;font-size:14px;border-bottom:2px solid transparent;margin-bottom:-1px}
.adm-tabs a.on{color:var(--gold,#f0b429);border-bottom-color:var(--gold,#f0b429);font-weight:600}
.mem-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.mem-bar .search{flex:1;min-width:220px} .mem-bar .search .txt{width:100%}
.mem-bar .adm-filters{margin:0}
.mem-list{padding:4px 14px}
.mrow{display:grid;grid-template-columns:minmax(220px,2.2fr) 1.2fr 1fr 1.6fr .9fr auto;gap:12px;align-items:center;padding:11px 0;border-top:1px solid var(--line)}
.mrow.mhead{border-top:0;font-size:11.5px;color:var(--mut);text-transform:uppercase;letter-spacing:.4px;padding:8px 0}
.mrow.susp{opacity:.6}
.mwho{display:flex;gap:10px;align-items:center;min-width:0}
.mwho>span:last-child{display:flex;flex-direction:column;min-width:0}
.mwho small{color:var(--mut);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mav{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:700;color:#0b151a;background:linear-gradient(135deg,#f0b429,#ff7a1a);flex:none}
.mflag{display:inline-block;margin-left:6px;padding:0 7px;border-radius:999px;font-size:10.5px;background:rgba(150,160,190,.14);color:#c9d1e6;vertical-align:1px}
.mflag.admin{background:rgba(240,180,41,.16);color:var(--gold,#f0b429)} .mflag.bad{background:rgba(229,72,77,.16);color:#ff8a8d}
.mflag.warn{background:rgba(240,180,41,.12);color:#ffc56b}
.mplan{display:flex;flex-direction:column;gap:2px} .mplan small{color:var(--mut);font-size:11.5px}
.mp{display:inline-block;width:max-content;padding:1px 9px;border-radius:999px;font-size:12px;font-weight:600}
.mp.trial{background:rgba(90,169,255,.14);color:#8ec5ff} .mp.paid{background:rgba(62,207,142,.15);color:#6ff0a6}
.mp.ended{background:rgba(229,72,77,.14);color:#ff8a8d} .mp.admin{background:rgba(240,180,41,.16);color:var(--gold,#f0b429)}
.mchars{display:flex;flex-direction:column} .mchars small{color:var(--mut);font-size:11.5px}
.d{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--dim,#5b6172);margin:0 4px 1px 0}
.d.on{background:var(--green,#3ecf8e)} .d.bad{background:var(--red,#e5484d)} .d.warn{background:var(--gold,#f0b429)}
.mjoin{font-size:12.5px;color:var(--mut)}
.mempty,.mnote{padding:12px 0;font-size:12.5px}
.mem-modal{position:fixed;inset:0;background:rgba(3,6,18,.66);display:flex;align-items:flex-start;justify-content:center;padding:6vh 16px;z-index:80;overflow:auto}
.mem-modal[hidden]{display:none}
.mem-panel{width:100%;max-width:560px}
.mem-panel .phead{display:flex;justify-content:space-between;gap:10px}
.mem-panel h2{margin:0} .mem-panel h3{margin:18px 0 8px;font-size:14px} .mem-panel h3 .mut{font-weight:400;font-size:12px}
.pmsg{min-height:18px;margin:8px 0;font-size:12.5px;color:#6ff0a6} .pmsg.bad{color:#ff8a8d}
.pgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.pgrid label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--mut)}
.pgrid .txt{width:100%}
.prow{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.prow .txt{flex:1;min-width:180px}
.pchars{list-style:none;margin:0;padding:0}
.pchars li{display:flex;align-items:center;gap:8px;padding:5px 0;font-size:13px}
.pchars a{color:var(--fg,#e6e9f2)} .pchars .mut{font-size:12px}
.warnbtn{border-color:rgba(240,180,41,.5);color:#ffc56b} .dangerbtn{border-color:rgba(229,72,77,.6);color:#ff8a8d}
.btn.sm.dangerbtn:not(.ghost){background:rgba(229,72,77,.9);color:#fff}
.pconfirm{margin-top:10px;padding:12px;border:1px solid rgba(229,72,77,.45);border-radius:10px;background:rgba(229,72,77,.06);display:flex;flex-direction:column;gap:8px;font-size:13px}
@media (max-width:860px){.mrow{grid-template-columns:1fr 1fr}.mrow.mhead{display:none}.pgrid{grid-template-columns:1fr}}
.mname{display:flex;align-items:center;flex-wrap:wrap;gap:2px 0}
.mname .mflag{flex:none}

/* robots inside in-app placeholder pages and the trial-ended banner */
.ph-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:28px 18px}
.ph-robot{height:200px;width:auto;filter:drop-shadow(0 16px 26px rgba(255,122,26,.18))}
.plan-banner .banner-robot{height:44px;width:auto;margin:-8px 0}

.empty-robot{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:28px 18px}
.prep-robot{display:block;height:110px;width:auto;margin:10px auto 4px;filter:drop-shadow(0 12px 20px rgba(255,122,26,.18))}
.prep-robot[hidden]{display:none}

/* Admin > Automations: settings audit */
.chk{display:inline-block;padding:1px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap;border:1px solid transparent;background:none;font-family:inherit}
.chk.ok{color:#6ff0a6;background:rgba(62,207,142,.12);border-color:rgba(62,207,142,.35)}
.chk.part{color:#ffc56b;background:rgba(240,180,41,.12);border-color:rgba(240,180,41,.45);cursor:pointer}
.chk-detail{margin-top:6px;padding:8px 10px;border-radius:8px;background:rgba(240,180,41,.06);border:1px solid rgba(240,180,41,.25);font-size:12px;color:var(--fg,#dfe4f0)}
.chk-detail ul{margin:3px 0 6px 16px;padding:0} .chk-detail li{margin:1px 0;color:var(--mut)}
.adm-warn.amber{color:#ffc56b}
.adm-stat.amb b{color:#ffc56b}

/* Dashboard tiles: disconnected characters read the same as on Accounts */
.dtile .disc-pill{display:inline-block;margin-bottom:5px;padding:1px 8px;border-radius:999px;font-size:10.5px;font-weight:700;
  letter-spacing:.3px;text-transform:uppercase;color:#ff8a8d;background:rgba(229,72,77,.16);border:1px solid rgba(229,72,77,.45)}
.dtile .tile-dead{width:24px;height:24px;object-fit:contain;margin:-4px 0}
.dtile.broken b,.dtile.broken .pill,.dtile.broken .gold{opacity:.55}
.bad-txt{color:#ff8a8d}

/* Connect wizard: animated robot while the device is being prepared */
/* small, beside the "Preparing device / Bringing the device up" lines */
.cw-status{display:flex;align-items:center;justify-content:center;gap:10px}
.cw-stxt{text-align:center}
.cw-bot{width:58px;flex:0 0 58px;margin:-6px 0}
.cw-bot[hidden]{display:none}
.cw-bot:not([hidden])+.cw-stxt{text-align:left}

/* Disconnected: red unplugged icon instead of the power bolt; the number stays, dimmed */
.discon{display:inline-flex;align-items:center;gap:4px}
.discon svg{width:15px;height:15px;color:#ff6b6e;flex:none;filter:drop-shadow(0 0 4px rgba(229,72,77,.45))}
.discon .pw{color:var(--mut);opacity:.75}
.acct.broken .right .top{opacity:1}
.dtile.broken .discon{opacity:1}

/* Connect waiting room: ring shows the place in line, slow pulse */
.cw-ring.wait .cw-arc{opacity:.25}
.cw-ring.wait #num{font-size:28px}
.cw-ring.wait{animation:cwwait 2.4s ease-in-out infinite}
@keyframes cwwait{0%,100%{filter:none}50%{filter:drop-shadow(0 0 10px rgba(240,180,41,.35))}}
@media (prefers-reduced-motion:reduce){.cw-ring.wait{animation:none}}

/* ---- Log out is always reachable (2026-10-09: testers could not find it) ----
   Desktop rail: avatar + a log-out icon under it (the name/"Log out" text is hidden in the rail).
   Phone drawer: the name with "Log out" under it. Phone top bar: a log-out icon on the right. */
.side .foot .logout-ic{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;color:var(--mut);text-decoration:none}
.side .foot .logout-ic svg{width:18px;height:18px}
.side .foot .logout-ic:hover{color:var(--gold,#f0b429);background:rgba(255,255,255,.06)}
.side .foot{flex-direction:column;gap:8px}
.topbar .top-logout{margin-left:auto;color:var(--mut)}
.topbar .top-logout svg{width:20px;height:20px}
@media (max-width:860px){
  .side .foot{flex-direction:row;justify-content:flex-start;padding:14px 16px}
  .side .foot .who{display:flex}
  .side .foot .logout{font-size:13px}
  .side .foot .logout-ic{display:none}
}
/* change-email page + the banner's links */
.change-email{max-width:440px;margin:24px auto}
.plan-banner .mut a{color:var(--gold,#f0b429);font-weight:600}

/* ---- run activity (static/activity.js, 2026-10-09): header summary, Always-on, Recent activity,
   Schedule, admin Activity. Status colours: Completed green, Skipped grey, Failed red. ---- */
.sum24{margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}
.sum24-head{display:flex;align-items:center;gap:6px;font-size:14px}
.sum24-head .btn{margin-left:auto}
.sum24-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;margin-top:10px}
.sum24-chips[hidden]{display:none}
.chip24{padding:7px 11px;border-radius:10px;background:rgba(255,255,255,.04);border:1px solid var(--line);font-size:13.5px;color:var(--fg-70);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chip24 b{color:var(--fg)}
.act-card h2{font-size:17px;margin:0}
.act-head{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}
.act-head .mut{font-size:13px}
.act-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}
.act-filters select{height:36px;border-radius:10px;background:var(--side);border:1px solid var(--line);color:var(--fg);padding:0 10px;font:inherit;font-size:14px}
.act-toggle{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--fg-70)}
.run-list,.always-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.run-row{padding:11px 13px;border-radius:12px;background:rgba(255,255,255,.025);border:1px solid var(--line)}
.run-row.failed{border-color:rgba(255,90,82,.45);background:rgba(255,90,82,.06)}
.run-top{display:flex;align-items:center;gap:8px}
.run-name{font-size:15px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.run-ago{margin-left:auto;font-size:12.5px;white-space:nowrap}
.run-why{margin-top:4px;font-size:13.5px;color:var(--fg-70)}
.run-why.bad{color:#ff7a72}
.run-who{margin-top:2px}
.run-who a{color:var(--gold,#f0b429)}
.run-pill{display:inline-flex;align-items:center;gap:4px;padding:2px 9px;border-radius:99px;font-size:12px;font-weight:600;white-space:nowrap;
  border:1px solid var(--line);color:var(--fg-70)}
.run-pill.ok{color:#34d399;border-color:rgba(52,211,153,.4);background:rgba(52,211,153,.08)}
.run-pill.skip{color:var(--fg-70);border-color:rgba(255,255,255,.18)}
.run-pill.bad{color:#ff7a72;border-color:rgba(255,90,82,.45);background:rgba(255,90,82,.08)}
.always-row{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:12px;background:rgba(255,255,255,.025);border:1px solid var(--line)}
.always-row.off{opacity:.6}
.always-row .sm,.mut.sm{font-size:12.5px}
.always-n{display:flex;flex-direction:column;align-items:flex-end;line-height:1.1}
.always-n b{font-size:20px}
.empty-runs{padding:12px 0}
.sched-247{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;margin:14px 0;border-radius:12px;border:1px solid var(--line);cursor:pointer}
.sched-247>span:first-child{display:flex;flex-direction:column}
.sched-tz{margin-bottom:8px}
.sched-day{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid var(--line-soft,rgba(255,255,255,.05))}
.sched-day label{width:74px;display:flex;align-items:center;gap:6px}
.sched-day select{height:34px;border-radius:9px;background:var(--side);border:1px solid var(--line);color:var(--fg);padding:0 8px;font:inherit}
#scopy{margin-top:10px}
.sched-foot{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:16px}
.act-tabs{display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:rgba(255,255,255,.04);border:1px solid var(--line);margin-bottom:14px}
.act-tabs button{border:0;background:none;color:var(--fg-70);font:inherit;font-weight:600;padding:7px 14px;border-radius:9px;cursor:pointer}
.act-tabs button.on{background:var(--fill,#ff7410);color:#241002}
.adm-runs,.adm-timing{width:100%;border-collapse:collapse;font-size:14px}
.adm-runs th,.adm-runs td,.adm-timing th,.adm-timing td{padding:9px 8px;border-bottom:1px solid var(--line);text-align:left}
.adm-runs th,.adm-timing th{color:var(--mut);font-weight:600;font-size:12.5px}
.adm-runs tr[data-k]{cursor:pointer}
.adm-runs tr[data-k]:hover,.adm-runs tr.on{background:rgba(255,255,255,.04)}
.adm-timing select,.adm-timing .txt{height:34px;border-radius:9px;background:var(--side);border:1px solid var(--line);color:var(--fg);padding:0 8px;font:inherit;font-size:13.5px}
.adm-timing .txt{width:130px;margin-left:6px}
.ok-txt{color:#34d399}
.bad-txt{color:#ff7a72}
@media (max-width:760px){
  .adm-timing thead{display:none}
  .adm-timing tr{display:grid;grid-template-columns:1fr auto;gap:4px 8px;padding:8px 0;border-bottom:1px solid var(--line)}
  .adm-timing td{border:0;padding:2px 0}
  .sched-day{flex-wrap:wrap}
  .sum24-chips{grid-template-columns:1fr 1fr}
}
.head-card .sum24{padding:12px 16px 4px;margin-top:0}
.always-more{margin-top:10px}
/* ---- Game state + Ongoing activity (activity.js drawState) ---- */
.st-win{margin-left:auto;display:inline-flex;gap:2px;padding:3px;border-radius:9px;border:1px solid var(--line)}
.st-win button{border:0;background:none;color:var(--mut);font:inherit;font-size:12px;font-weight:700;padding:4px 9px;border-radius:7px;cursor:pointer}
.st-win button.on{background:rgba(255,255,255,.08);color:var(--fg)}
.st-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
.st-cell{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.025);border:1px solid var(--line)}
.st-cell b{font-size:18px}
.st-delta{font-size:12.5px;font-weight:700}
.st-delta.up{color:#34d399}
.st-delta.down{color:#ff7a72}
.st-ongoing{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.st-ongoing .act-head{flex-wrap:wrap}
.st-badges{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.run-pill.warn-pill{color:#f5c542;border-color:rgba(245,197,66,.45);background:rgba(245,197,66,.08)}
.st-timer{display:flex;align-items:center;gap:8px;padding:10px 13px;border-radius:12px;background:rgba(255,255,255,.025);border:1px solid var(--line)}
.st-ic{width:20px;text-align:center;color:var(--mut)}
.st-left{margin-left:auto;color:#5ec8ff;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.st-seen{font-size:11.5px;color:var(--mut);font-style:italic}
/* ---- Admin → Activity → Setup (automation classes) ---- */
.b{display:inline-flex;align-items:center;padding:2px 9px;border-radius:99px;font-size:11.5px;font-weight:700;border:1px solid var(--line);color:var(--fg-70);white-space:nowrap}
.b.inst{color:#9ff3ff;border-color:rgba(34,211,238,.4);background:rgba(34,211,238,.08)}
.b.cond{color:#ffd28a;border-color:rgba(245,197,66,.45);background:rgba(245,197,66,.08)}
.b.fix{color:#c4b5fd;border-color:rgba(167,139,250,.45);background:rgba(167,139,250,.08)}
.b.game{color:#86efac;border-color:rgba(52,211,153,.45);background:rgba(52,211,153,.08)}
.b.out{color:#fdba74;border-color:rgba(255,138,42,.45);background:rgba(255,138,42,.08)}
.b.home{color:#fda4af;border-color:rgba(255,90,82,.5);background:rgba(255,90,82,.08)}
.b.conf{color:#fde68a;border-style:dashed}
.legend{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-bottom:10px}
.adm-setup{width:100%;border-collapse:collapse;font-size:13.5px}
.adm-setup th,.adm-setup td{padding:9px 7px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}
.adm-setup th{color:var(--mut);font-weight:600;font-size:12px}
.adm-setup td.cat{font-size:11px;font-weight:800;letter-spacing:.06em;color:var(--mut);padding-top:16px}
.adm-setup select,.adm-setup .txt{height:32px;border-radius:9px;background:var(--side);border:1px solid var(--line);color:var(--fg);padding:0 8px;font:inherit;font-size:13px}
.adm-setup .txt{width:110px;margin-top:4px;display:block}
@media (max-width:900px){
  .adm-setup thead{display:none}
  .adm-setup tr{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;padding:10px 0;border-bottom:1px solid var(--line)}
  .adm-setup td{border:0;padding:2px 0}
  .adm-setup td.cat{grid-column:1/-1}
}
/* ---- Overview v2 (operator: match lastwarauto's polish) ---- */
.sti{width:18px;height:18px;flex:none}
.sti.gold{color:#f5b335;width:30px;height:30px}
.st-top{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:14px}
.st-top .st-win{margin-left:0}
.st-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:99px;font-size:12.5px;font-weight:700}
.st-chip.asof{color:#f5c542;border:1px solid rgba(245,197,66,.45);background:rgba(245,197,66,.06)}
.st-chip.asof.bad{color:#ff7a72;border-color:rgba(255,90,82,.5)}
.st-chip.daily{color:#f5c542;margin-left:auto}
.st-chip .sti{width:15px;height:15px}
.hero-box{border-radius:16px;padding:18px;background:linear-gradient(135deg,rgba(255,138,42,.10),rgba(255,255,255,.02) 60%);border:1px solid rgba(255,138,42,.18)}
.hero-power{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hero-power b{font-size:clamp(26px,5vw,38px);font-weight:800;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.hero-power .st-delta{font-size:17px}
.hero-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px;margin-top:14px}
.hero-tile{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid var(--line)}
.hero-tile .sti{color:var(--mut);width:22px;height:22px}
.hero-tile div{display:flex;flex-direction:column;line-height:1.2}
.hero-tile span{font-size:12.5px}
.hero-tile b{font-size:19px}
.hero-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.hero-pill{display:inline-flex;align-items:center;gap:6px;padding:5px 12px;border-radius:99px;border:1px solid var(--line);font-weight:700;font-size:13.5px}
.hero-pill .sti{width:15px;height:15px;color:#f5c542}
.res-bars{display:grid;gap:9px;margin:16px 2px 0}
.res-row{display:grid;grid-template-columns:24px 70px 1fr auto 76px;align-items:center;gap:10px;font-size:14px}
.res-ic{font-size:17px;text-align:center}
.res-name{color:var(--mut);font-size:13px}
.res-track{height:12px;border-radius:99px;background:rgba(255,255,255,.06);overflow:hidden}
.res-track i{display:block;height:100%;border-radius:99px}
.res-row b{text-align:right;font-variant-numeric:tabular-nums}
.res-row .st-delta{font-size:13px;text-align:left}
.st-ongoing{margin-top:18px;padding-top:16px}
.ongo-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:10px}
.ongo-title{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-70)}
.ongo-idle{font-size:13.5px;color:var(--fg-70)}
.ongo-list .st-timer{gap:12px;padding:12px 14px}
.ongo-list .st-timer .sti{color:var(--mut)}
.st-left.green{color:#34d399}
.shield-row .sti{color:#34d399}
.caps-title{font-size:13px!important;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--fg-70)}
.always-row{gap:14px;padding:12px 14px}
.al-ic{width:44px;height:44px;flex:none;border-radius:12px;background:rgba(255,255,255,.05);display:grid;place-items:center;font-size:22px}
.al-main{min-width:0}
.al-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.al-top b{font-size:15.5px}
.al-last{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.always-n{text-align:right;flex:none}
.always-n b{font-size:22px;display:block}
.always-n .mut{font-size:12.5px}
.al-none{font-size:18px}
.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#34d399;margin-right:5px}
@media (max-width:640px){
  .res-row{grid-template-columns:22px 1fr auto 64px}
  .res-name{display:none}
  .st-chip.daily{margin-left:0}
}
.ongo-lbl{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ongo-list .st-left{margin-left:0}
/* ---- Clumzy's chat + race of the day (Overview, approved mockup B) ---- */
.cz-em{font-style:normal;background:linear-gradient(135deg,#ffb52e,#ff7410);-webkit-background-clip:text;background-clip:text;color:transparent}
.cz-chat{display:grid;gap:8px}
.cz-msg{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;align-items:end}
.cz-av{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#1d6cf0,#3aa0ff);display:grid;place-items:center;overflow:hidden;position:relative}
.cz-av::before{content:"";width:22px;height:11px;border-radius:6px;background:#0b0f22;box-shadow:inset 0 0 0 2px #fff}
.cz-av::after{content:"";position:absolute;width:12px;height:2px;border-radius:2px;background:#ffb52e;top:16px;animation:czscan 2.4s ease-in-out infinite}
@keyframes czscan{0%,100%{transform:translateX(-3px)}50%{transform:translateX(3px)}}
.cz-av.ghost{visibility:hidden}
.cz-bub{background:#fff;color:#141a33;border-radius:16px 16px 16px 4px;padding:9px 12px;font-weight:600;font-size:14px;line-height:1.45;min-width:0}
.cz-bub b{color:#ff6a00}
.cz-bub.warn{background:#fff1ef;color:#9e2219}
.cz-bub.warn b{color:#c8261b}
.cz-t{display:block;font-size:11px;color:#8a90a3;font-weight:700;margin-top:3px}
.cz-stk{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}
.cz-st{font-size:12.5px;font-weight:800;padding:4px 9px;border-radius:99px;background:#f2f4fa;color:#141a33}
.cz-reply{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin-top:10px}
.cz-q{font-family:inherit;font-size:12.5px;font-weight:800;text-decoration:none;padding:7px 12px;border-radius:99px;border:1px solid rgba(255,138,42,.5);background:rgba(255,138,42,.1);color:#ffc488;cursor:pointer}
.cz-q:hover{background:rgba(255,138,42,.2)}
.cz-ln{display:grid;grid-template-columns:20px 74px minmax(0,1fr) 46px;gap:6px;align-items:center;height:26px;font-size:13px;font-weight:800}
.cz-p{text-align:center;font-size:13px}
.cz-n{color:var(--c);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cz-tot{text-align:right;font-variant-numeric:tabular-nums}
.cz-tk{position:relative;height:3px;border-radius:3px;background:rgba(255,255,255,.08)}
.cz-tk i{position:absolute;left:0;top:0;bottom:0;border-radius:3px;background:var(--c);animation:czgrow 1.4s cubic-bezier(.2,.8,.2,1)}
.cz-car{position:absolute;top:50%;transform:translate(-50%,-55%) scaleX(-1);font-size:15px;line-height:1;animation:czdrive 1.4s cubic-bezier(.2,.8,.2,1)}
@keyframes czgrow{from{width:0}}
@keyframes czdrive{from{left:3%}}
.cz-ln.zero{opacity:.55}
.cz-joke{font-size:12px;color:#ffb37a;font-style:italic;margin:2px 0 0 26px}
.cz-chart{display:flex;align-items:flex-end;gap:2px;height:52px;border-bottom:1px solid var(--line)}
.cz-col{flex:1;display:flex;flex-direction:column-reverse;position:relative;height:100%}
.cz-col.fut{border-bottom:1px dashed rgba(255,255,255,.12)}
.cz-col b{display:block}
.cz-bad{position:absolute;left:50%;top:-2px;width:7px;height:7px;margin-left:-3.5px;border-radius:50%;background:#ff5a52;box-shadow:0 0 0 2px #0e1430}
.cz-hx{display:flex;justify-content:space-between;font-size:10px;color:var(--mut);margin-top:3px}
@media (prefers-reduced-motion:reduce){.cz-tk i,.cz-car,.cz-av::after{animation:none}}
.cz-ln{grid-template-columns:20px 74px minmax(0,1fr) auto;min-height:26px;height:auto}
.cz-tot{white-space:nowrap;padding-left:4px}
.stat-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin-top:14px}
.stat-tile{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid var(--line)}
.stat-tile .sti{width:22px;height:22px;color:#f5c542}
.stat-tile div{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}
.stat-tile b{font-size:19px}
.stat-tile .mut{width:100%;font-size:12px}
.run-cat{font-size:15px;margin-right:6px;width:30px;height:30px;flex:none;border-radius:9px;background:rgba(255,255,255,.05);display:inline-grid;place-items:center}
.run-cat .row-glyph{width:18px;height:18px}
.al-ic .row-glyph{width:24px;height:24px}
@media (max-width:640px){.stat-tiles{grid-template-columns:1fr 1fr}}

/* Phone fit (2026-10-11, operator iPhone screenshot): grid rows default to min-width:auto, so a long one-line
   label ("Gathering · Squad 1 · Iron Lv 8") widened the whole list past its card. Pin rows to the card width,
   let labels ellipsize, keep the right-hand value intact, and tighten type a little on narrow screens. */
.run-list,.always-list{grid-template-columns:minmax(0,1fr)}
.run-list>li,.always-list>li{min-width:0;max-width:100%}
.al-main{flex:1 1 auto;min-width:0}
.al-main .sm{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.st-timer .st-left,.always-row>:last-child{flex-shrink:0}
html,body{overflow-x:clip}
@media (max-width:430px){
  .ongo-list .st-timer{gap:10px;padding:11px 12px}
  .ongo-lbl{font-size:14.5px}
  .st-left{font-size:14.5px}
  .always-row{gap:10px;padding:11px 12px}
  .al-top b{font-size:14.5px}
}

/* Recent activity: compact rows + paging (operator 2026-10-11: "too many records, text a bit smaller"). */
.recent-runs{gap:6px}
.recent-runs .run-row{padding:8px 11px;border-radius:10px}
.recent-runs .run-name{font-size:13.5px}
.recent-runs .run-ago{font-size:11.5px}
.recent-runs .run-why{margin-top:2px;font-size:12.5px}
.recent-runs .run-pill{font-size:11px;padding:1px 7px}
.runs-more{display:block;width:100%;margin-top:10px;padding:9px;border:1px dashed var(--line);border-radius:10px;
  background:transparent;color:var(--fg-70);font-size:13px;cursor:pointer}
.runs-more:hover{color:var(--fg);border-color:rgba(255,255,255,.3)}

/* Setup screen while a character is connected/graduated (operator 2026-10-11): "don't open the game for 2-3 min". */
#setupov{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:16px;
  background:rgba(6,9,20,.82);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px)}
html.sov-lock,html.sov-lock body{overflow:hidden}
.sov-card{width:100%;max-width:420px;text-align:center;background:var(--card,#141a2e);border:1px solid var(--line);
  border-radius:20px;padding:28px 22px 22px;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.sov-card h2{margin:14px 0 10px;font-size:21px;text-wrap:balance}
.sov-spin{width:46px;height:46px;margin:0 auto;border-radius:50%;border:4px solid rgba(255,255,255,.12);
  border-top-color:var(--gold,#f0b429);animation:spin 1s linear infinite}
.sov-warn{margin:0 0 16px;padding:12px 14px;border-radius:12px;background:rgba(240,180,41,.1);border:1px solid rgba(240,180,41,.35);
  color:var(--fg);font-size:15px;line-height:1.45}
.sov-warn b{display:block;color:var(--gold,#f0b429);font-size:16px;margin-bottom:4px}
.sov-warn span{color:var(--fg-70);font-size:13.5px}
.sov-bar{height:8px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden}
.sov-bar i{display:block;height:100%;width:4%;border-radius:99px;background:linear-gradient(90deg,#f0b429,#34d399);transition:width .8s ease}
.sov-step{margin:12px 0 2px;font-weight:600;font-size:14.5px}
.sov-eta{margin:0 0 16px;color:var(--fg-70);font-size:13px}
.sov-mini{display:none}
#setupov.min{inset:auto 12px 12px 12px;padding:0;background:none;backdrop-filter:none;-webkit-backdrop-filter:none}
#setupov.min .sov-card{display:none}
#setupov.min .sov-mini{display:block;width:100%;max-width:420px;margin:0 auto;padding:12px 16px;border-radius:14px;cursor:pointer;
  border:1px solid rgba(240,180,41,.5);background:#2a2412;color:var(--gold,#f0b429);font:inherit;font-weight:700;font-size:14px;
  box-shadow:0 8px 30px rgba(0,0,0,.45)}
@media (prefers-reduced-motion:reduce){.sov-spin{animation:none}.sov-bar i{transition:none}}
/* setup screen: Clumzy entertains while she sets up (robobot.js) */
.sov-card{padding-top:20px}
.sov-bot{display:flex;justify-content:center;min-height:150px;margin:2px 0 0}
.sov-hint{margin:0 0 4px;font-size:11.5px;color:var(--fg-70);opacity:.75}
.sov-say{position:relative;margin:0 auto 6px;max-width:320px;min-height:44px;padding:10px 14px;border-radius:16px;
  background:#fff;color:#141a2e;font-size:14px;font-weight:600;line-height:1.35;text-wrap:balance}
.sov-say:after{content:"";position:absolute;left:50%;bottom:-7px;margin-left:-8px;border:8px solid transparent;border-bottom:0;border-top-color:#fff}
.sov-say.pop{animation:sovpop .35s ease-out}
@keyframes sovpop{from{opacity:0;transform:translateY(6px) scale(.97)}to{opacity:1;transform:none}}
.sov-card h2{margin-top:6px}
@media (max-height:700px){.sov-bot{min-height:120px}.sov-warn span{display:none}}
@media (prefers-reduced-motion:reduce){.sov-say.pop{animation:none}}
/* Clumzy chat: long error text (ids, uuids) wraps inside the bubble instead of running off the card */
.cz-bub{overflow-wrap:anywhere;word-break:break-word;min-width:0}

/* Heal Wounded "general setting" note + the gear that opens another card's settings (2026-10-13) */
.fnote{font-size:13px;line-height:1.4;color:var(--mut,#8aa);background:rgba(120,140,160,.10);
  border:1px solid rgba(120,140,160,.18);border-radius:10px;padding:8px 11px;margin:2px 0 8px}
.fhead .fgear{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;
  margin:0 6px 0 auto;border:1px solid rgba(120,140,160,.25);border-radius:9px;background:transparent;
  color:var(--mut,#8aa);cursor:pointer;flex:none}
.fhead .fgear:hover{color:inherit;border-color:rgba(120,140,160,.5);background:rgba(120,140,160,.10)}

/* Code Boss squad-preset picker (2026-10-13) — the member's saved lineups, name + hero portraits */
.presets{display:flex;flex-direction:column;gap:8px;width:100%}
.preset-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;cursor:pointer;
  background:rgba(120,140,160,.07);border:1px solid rgba(120,140,160,.18);border-radius:12px;padding:10px 12px;color:inherit}
.preset-row:hover{border-color:rgba(120,140,160,.4);background:rgba(120,140,160,.12)}
.preset-row.on{border-color:var(--accent,#3ecf8e);background:rgba(62,207,142,.12)}
.preset-row .preset-check{flex:none;width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;border:1.5px solid rgba(120,140,160,.5);color:transparent}
.preset-row.on .preset-check{background:var(--accent,#3ecf8e);border-color:var(--accent,#3ecf8e);color:#06281c}
.preset-name{font-weight:600;min-width:84px;flex:none}
.preset-heroes{display:flex;gap:4px;flex-wrap:wrap;margin-left:auto}
.preset-hero{width:34px;height:34px;border-radius:8px;object-fit:cover;background:rgba(120,140,160,.15);
  border:1px solid rgba(120,140,160,.25)}
.preset-hero.ph{display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;
  color:var(--mut,#8aa);text-transform:uppercase}

/* ---- Overview: Dig treasure card (2026-10-13) -- each site = 3 steps: found -> sent squad -> claimed ---- */
.dig-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.dig-site{padding:11px 13px;border-radius:12px;background:rgba(255,255,255,.025);border:1px solid var(--line)}
.dig-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dig-step{display:flex;gap:8px;align-items:flex-start;min-width:0;position:relative}
.dig-step .dig-dot{flex:none;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;
  border:1.5px solid var(--line);color:var(--mut);background:rgba(255,255,255,.03)}
.dig-step .dig-txt{display:flex;flex-direction:column;min-width:0;gap:1px}
.dig-step .dig-txt b{font-size:13px;font-weight:600;overflow-wrap:anywhere}
.dig-step .dig-txt .sm{font-size:12px;overflow-wrap:anywhere}
.dig-step.done .dig-dot{color:var(--green);border-color:rgba(52,211,153,.5);background:var(--green-soft)}
.dig-step.live .dig-dot{border-color:rgba(255,138,42,.6);background:var(--accent-soft)}
.dig-step.live .dig-txt .sm{color:var(--accent)}
.dig-step.bad .dig-dot{color:#ff7a72;border-color:rgba(255,90,82,.5);background:rgba(255,90,82,.08)}
.dig-step.skip,.dig-step.wait{opacity:.75}
@media (max-width:520px){
  .dig-steps{grid-template-columns:1fr;gap:6px}
  .dig-step:not(:last-child)::after{content:"";position:absolute;left:10.5px;top:24px;bottom:-6px;width:1.5px;background:var(--line)}
}
.dig-step .live-dot{margin:0;background:var(--accent)}
/* squad-conflict warnings: one line per squad, grouped tight (2026-10-13) */
.fwarn{display:grid;gap:3px;margin-top:6px}
.fwarn .warn-line{margin-top:0;align-items:flex-start;line-height:1.35}
.fwarn .warn-line svg{flex:none;margin-top:1px}
.fwarn .warn-line b{font-weight:700}
/* popups opened from inside a card's settings panel (preset picker, confirms) must sit ABOVE the panel
   (.drawer-bg is z-index 80; .modal-bg was 70 -> on a phone the popup opened hidden behind the full-screen panel) */
.modal-bg{z-index:95}

/* Secret Command Post -> Hidden Treasure panel (2026-10-13) */
.tr-panel{display:grid;gap:10px;width:100%}
.tr-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.tr-lbl{font-weight:600}
.tr-sum{font-size:13px;color:var(--mut,#9aa3b8)}
.tr-sum.ok{color:#5ee0a0}
.tr-pieces{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.tr-pc{display:grid;justify-items:center;gap:2px;padding:7px 0 6px;border-radius:10px;border:1px dashed rgba(255,255,255,.14);
  color:var(--mut,#9aa3b8);font-size:12px;font-variant-numeric:tabular-nums}
.tr-pc b{font-size:13px;font-weight:600}
.tr-pc.have{border:1px solid rgba(94,224,160,.45);background:rgba(94,224,160,.08);color:#d8f7e6}
.tr-pc.have span{color:#5ee0a0;font-weight:600}
.tr-track{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));position:relative;padding-top:2px}
.tr-track::before{content:"";position:absolute;left:5%;right:5%;top:12px;height:2px;background:rgba(255,255,255,.12)}
.tr-track.n5{grid-template-columns:repeat(5,minmax(0,1fr))}
/* Bounty Hunter compact panel (operator 2026-10-14: the old Event box was too big) */
.bh{display:grid;gap:10px;width:100%;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.bh-top{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;min-width:0}
.bh-n{font-size:22px;font-weight:700;line-height:1;color:#ffd27a;font-variant-numeric:tabular-nums}
.bh-u{font-size:13px;color:var(--mut,#9aa3b8)}
.bh-ok{font-size:13px;font-weight:600;color:#5ee0a0}.bh-ok.no{color:#ff8a8d}
.bh-side{margin-left:auto;font-size:12px;color:var(--mut,#9aa3b8);font-variant-numeric:tabular-nums}
.bh-ms{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px}
.bh-lbl,.bh-score{font-size:12px;color:var(--mut,#9aa3b8);white-space:nowrap;font-variant-numeric:tabular-nums}
.bh-track .tr-ms i{width:16px;height:16px;font-size:9.5px}
.bh-track::before{top:10px}
.bh-track .tr-ms{font-size:10px;gap:2px}
@media (max-width:420px){.bh-ms{grid-template-columns:1fr auto}.bh-ms .bh-track{grid-column:1/-1;grid-row:2}}
.tr-track.n5::before{left:10%;right:10%}
.tr-ms{display:grid;justify-items:center;gap:4px;position:relative;font-size:10.5px;color:var(--mut,#9aa3b8);font-variant-numeric:tabular-nums}
.tr-ms i{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:11px;font-weight:700;
  background:var(--card,#141a2e);border:2px solid rgba(255,255,255,.22)}
.tr-ms.got i{background:#2fbf7a;border-color:#2fbf7a;color:#06140d}
.tr-ms.got span{color:#d8f7e6}
.tr-when{text-align:right}
.ch-keys{display:flex;align-items:baseline;gap:8px}
.ch-keys b{font-size:22px;font-weight:700;font-variant-numeric:tabular-nums;color:#ffd27a}
.ch-bar{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}
.ch-bar i{height:8px;border-radius:4px;background:rgba(255,255,255,.1)}
.ch-bar i.on{background:linear-gradient(90deg,#ffc266,#ff8a2a)}

/* language selector pill: static/lang-sw.css (shared with the website) */
/* where it sits */
.topbar .lang-sw{margin-inline-start:auto}
.side .foot .lang-sw{width:100%;margin-bottom:10px}
.side .foot .lang-sw select{width:100%;max-width:none}
.au-top .lang-sw{margin-inline-start:auto;margin-inline-end:8px}
/* desktop icon rail (72px): the selector is a round globe button; the list still shows each language name */
@media (min-width:861px){
  .side .foot .lang-sw{width:auto;margin-bottom:6px}
  .side .foot .lang-sw select{width:40px;height:40px;padding:0;color:transparent;text-indent:-999px;
    background-position:center,-99px -99px;background-size:20px 20px,0 0}
  .side .foot .lang-sw select option{color:#e8edf8;text-indent:0}
  .side .foot .lang-sw select{display:none}                 /* the native list was squeezed to 40 px (10-15) */
  .side .foot .lang-menu{display:block}
}
/* Account tabs (Overview · Automations · Schedule): the active tab wears the Clumzy Bot fire gradient, like the
   "All" filter and the I'm-playing button (operator 2026-10-13: it read as unselected) */
body[data-style=v2] .tabs button.on{background:var(--fire);color:var(--on-accent);font-weight:700;
  box-shadow:0 4px 14px rgba(255,122,42,.35)}
body[data-style=v2] .tabs button.on svg{color:var(--on-accent)}
body[data-style=v2] .tabs button:not(.on):hover{color:var(--fg);background:rgba(255,255,255,.05)}
/* Squads window: live state per squad + the automations that send it */
.sqm{display:grid;gap:10px;margin-top:4px}
.sqm-row{display:grid;gap:8px;padding:12px 14px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:rgba(255,255,255,.03)}
.sqm-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sqm-head b{font-size:15px}
.sqm-home{color:#5ee0a0;border-color:rgba(94,224,160,.45);background:rgba(94,224,160,.1)}
.sqm-out{color:#ffc266;border-color:rgba(255,194,102,.45);background:rgba(255,194,102,.1)}
.sqm-use{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.sqm-chip{cursor:default;font-size:13px;padding:4px 10px}
.sqm-note{font-size:12px;font-weight:600;color:#ffab1f}
.sqm-use.shared .sqm-chip{border-color:rgba(255,171,31,.5)}
/* truck plunder: the auto-read squad power is a small note under the editable box */
.tp-note{font-size:12.5px;font-weight:400;opacity:.85;text-align:end;display:block}
/* Dashboard character tiles: name + K/HQ/VIP pills wrap instead of running into the power number, and the tile never
   gets wider than the screen (2026-10-13: AL3noOoDQ's V16 overlapped the power in Arabic) */
.dtile{gap:12px;min-width:0;max-width:100%}
.dtile>.grow{min-width:0}
.dtile>.grow>.row{flex-wrap:wrap;row-gap:6px}
.dtile>.grow>.row b{overflow-wrap:anywhere}
.dtile>.num,.dtile>.gold{flex:none;white-space:nowrap}
/* Clumzy chat avatar = the real Clumzy Bot face (logo-128), not the CSS-drawn visor (operator 2026-10-13) */
.cz-av{background:#0e1636 url("/static/brand/logo-128.png") center/cover no-repeat;box-shadow:0 0 0 2px rgba(58,160,255,.35),0 4px 12px rgba(0,0,0,.35);
  width:36px;height:36px}
.cz-av::before,.cz-av::after{content:none;display:none}
/* Squads window v2 (operator 2026-10-13: "really bad"): one calm row per squad, light tags with each card's own
   glyph, a quiet "Shared · N", status pill opposite the title, normal Done button */
.sqm{gap:8px}
.sqm-row{padding:12px 14px;gap:10px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08)}
.sqm-row.shared{border-color:rgba(255,171,31,.28)}
.sqm-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sqm-title{display:flex;align-items:baseline;gap:8px;min-width:0}
.sqm-title b{font-size:15px;font-weight:700}
.sqm-shared{font-size:12px;font-weight:600;color:#ffb52e;white-space:nowrap}
.sqm-pill{font-size:12px;font-weight:600;padding:3px 10px;border-radius:999px;white-space:nowrap;
  color:var(--mut);background:rgba(255,255,255,.06)}
.sqm-pill.home{color:#5ee0a0;background:rgba(94,224,160,.12)}
.sqm-pill.out{color:#ffc266;background:rgba(255,194,102,.12)}
.sqm-tags{display:flex;flex-wrap:wrap;gap:6px}
.sqm-tag{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px 0 6px;border-radius:999px;
  font-size:13px;line-height:1;color:var(--fg);background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);white-space:nowrap}
.sqm-row.shared .sqm-tag{border-color:rgba(255,171,31,.35)}
.sqm-ic{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;background:rgba(255,255,255,.06)}
.sqm-ic .row-glyph{width:14px;height:14px}
.sqm-none{font-size:13px;color:var(--mut)}
html[dir=rtl] .sqm-tag{padding:0 6px 0 10px}
/* modal action buttons: a normal pill, never a fat square (short labels like "تم" made it square) */
.modal .row-actions .btn,.modal-actions .btn,.modal button.btn{min-width:96px;height:42px;padding:0 20px;border-radius:12px}

/* ===== game-style chips (2026-10-13): rarity badge boxes + loot slots =====
   Colours come from tokens so the coming LIGHT theme only redefines them (html[data-theme=light] below);
   --rc = the rarity colour of each box (gold/pink/blue/green/grey/red), the game's own and theme-independent. */
:root{--gc-box:rgba(255,255,255,.035);--gc-line:rgba(255,255,255,.12);--gc-text:#dfe5f3;--gc-dim:.55;--gc-check-ink:#071a22}
html[data-theme=light]{--gc-box:rgba(15,23,42,.035);--gc-line:rgba(15,23,42,.14);--gc-text:#1f2937;--gc-dim:.6;--gc-check-ink:#ffffff}

.chips.chips-rarity{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
body .chips.chips-rarity .chip.chip{height:40px;min-width:0;padding:0 2px;border-radius:10px;border:0;background:var(--gc-box);
  box-shadow:inset 0 0 0 1px var(--gc-line);display:flex;align-items:center;justify-content:center;gap:2px;position:relative}
body .chips.chips-rarity .chip.chip.quick{font-size:13px;font-weight:600;color:var(--gc-text)}
body .chips.chips-rarity .chip.chip.rarity{opacity:var(--gc-dim)}
body .chips.chips-rarity .chip.chip.rarity.on{opacity:1;background:radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--rc) 22%,transparent),transparent 70%),var(--gc-box);
  box-shadow:inset 0 0 0 1.5px var(--rc),0 0 8px color-mix(in srgb,var(--rc) 30%,transparent)}
body .chips.chips-rarity .chip.chip.quick.on{box-shadow:inset 0 0 0 1.5px var(--accent,#5fc7e6);color:var(--accent,#5fc7e6)}
.rar-badge{height:16px;width:auto;max-width:100%;display:block}
.chip.rarity:not(.on) .rar-badge{filter:grayscale(.35)}
.chip.rarity.on .rar-badge{filter:drop-shadow(0 2px 5px color-mix(in srgb,var(--rc) 60%,transparent))}
.rar-ico{display:grid;place-items:center;color:var(--rc)}
.rar-ico svg{width:20px;height:20px}
.rar-shiny{font-family:Anton,sans-serif;font-weight:400;font-size:14px;letter-spacing:.5px;color:var(--rc)}
.rar-txt{font-size:12px;color:var(--rc)}
.rar-star{position:absolute;top:2px;inset-inline-end:4px;font-size:9px;color:var(--rc);line-height:1}

.chips.chips-loot{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body .chips.chips-loot .chip.chip{position:relative;min-height:76px;height:auto;min-width:0;padding:8px 4px;border:0;border-radius:12px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;white-space:normal;
  background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--rc,#9aa3b8) 10%,transparent),transparent 70%),var(--gc-box);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--rc,#9aa3b8) 30%,var(--gc-line))}
body .chips.chips-loot .chip.chip.quick{font-size:14px;font-weight:600;color:var(--gc-text);--rc:var(--accent,#5fc7e6)}
body .chips.chips-loot .chip.chip.quick.on{box-shadow:inset 0 0 0 2px var(--accent,#5fc7e6);color:var(--accent,#5fc7e6)}
body .chips.chips-loot .chip.chip.loot.on{background:radial-gradient(circle at 50% 35%,color-mix(in srgb,var(--rc) 24%,transparent),transparent 70%),var(--gc-box);
  box-shadow:inset 0 0 0 2px var(--rc),0 0 10px color-mix(in srgb,var(--rc) 30%,transparent)}
.loot-ico{display:grid;place-items:center;color:color-mix(in srgb,var(--rc) 55%,var(--gc-text))}
.chip.loot.on .loot-ico{color:var(--rc)}
.loot-ico svg{width:26px;height:26px}
.loot-name{font-size:11px;line-height:1.15;color:var(--gc-text);text-align:center;font-weight:500}
.loot-check{display:none}
.chip.loot.on .loot-check{display:grid;place-items:center;position:absolute;top:-1px;inset-inline-end:-1px;width:18px;height:18px;
  border-start-end-radius:12px;border-end-start-radius:8px;background:var(--rc)}
.chip.loot.on .loot-check::after{content:"";width:8px;height:4px;border-left:2.4px solid var(--gc-check-ink);border-bottom:2.4px solid var(--gc-check-ink);
  transform:translateY(-1px) rotate(-45deg)}
@media (max-width:380px){.chips.chips-rarity{gap:4px}.chips.chips-loot{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ===== squad tokens (every squad picker) + truck power box (2026-10-13, mockup board 4) ===== */
:root{--sq-home:#3fd28c;--sq-out:#ffb547;--pb-well:rgba(0,0,0,.28);--pb-btn:rgba(255,255,255,.07);--pb-big:#ffffff}
html[data-theme=light]{--sq-home:#13945b;--sq-out:#c27400;--pb-well:rgba(15,23,42,.05);--pb-btn:rgba(15,23,42,.07);--pb-big:#0f172a}
body .chips.chips-squad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;width:100%}
body .chips.chips-squad .chip.chip.quick{grid-column:1/-1;justify-self:start;min-height:34px}
body .chips.chips-squad .chip.chip.squad{height:auto;min-height:58px;min-width:0;padding:8px 4px;border:0;border-radius:14px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;background:var(--gc-box);
  box-shadow:inset 0 0 0 1px var(--gc-line);color:var(--gc-text)}
body .chips.chips-squad .chip.chip.squad.on{background:color-mix(in srgb,var(--ca,var(--accent,#5fc7e6)) 12%,var(--gc-box));
  box-shadow:inset 0 0 0 2px var(--ca,var(--accent,#5fc7e6)),0 0 12px color-mix(in srgb,var(--ca,var(--accent,#5fc7e6)) 30%,transparent)}
.chip.squad .sq-num{font-family:Anton,sans-serif;font-weight:400;font-size:22px;line-height:1;color:color-mix(in srgb,var(--gc-text) 55%,transparent)}
.chip.squad.on .sq-num{color:var(--ca,var(--accent,#5fc7e6))}
.chip.squad .sq-pw{font-weight:700;font-size:13px;color:var(--gc-text);font-variant-numeric:tabular-nums}
.chip.squad .sq-st{font-weight:700;font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:color-mix(in srgb,var(--gc-text) 50%,transparent);
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chip.squad .sq-st.home{color:var(--sq-home)}
.chip.squad .sq-st.out{color:var(--sq-out)}
html[dir=rtl] .chip.squad .sq-st{text-transform:none;letter-spacing:0}

.pbox{display:flex;align-items:center;gap:10px;width:100%;padding:12px;border-radius:14px;background:var(--pb-well);box-shadow:inset 0 0 0 1px var(--gc-line);box-sizing:border-box}
.pbox-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.pbox-big{font-family:Anton,sans-serif;font-size:30px;line-height:1;color:var(--pb-big);font-variant-numeric:tabular-nums}
.pbox-unit{font-size:18px;color:var(--ca,var(--accent,#5fc7e6))}
.pbox-note{font-size:12px;color:color-mix(in srgb,var(--gc-text) 60%,transparent)}
.pbox-auto{align-self:flex-start;font-size:12px}
.pbox-btn{flex:none;width:44px;height:44px;border:0;border-radius:12px;font-size:22px;font-weight:700;cursor:pointer;color:var(--gc-text);background:var(--pb-btn)}
.pbox-btn.plus{color:#071a22;background:var(--ca,var(--accent,#5fc7e6))}
.pbox-btn:focus-visible{outline:2px solid var(--ca,var(--accent,#5fc7e6));outline-offset:2px}
html[dir=rtl] .pbox-big{direction:ltr;text-align:right}
/* squad tokens: ONE fixed size everywhere (operator 2026-10-13: "the top size is good, same size everywhere") */
body .chips.chips-squad{grid-template-columns:repeat(4,62px);justify-content:start}
body .chips.chips-squad .chip.chip.squad{width:62px;min-height:58px}
@media (max-width:360px){body .chips.chips-squad{grid-template-columns:repeat(4,56px);gap:6px}body .chips.chips-squad .chip.chip.squad{width:56px}}

/* ---- game boss art (season-aware, 2026-10-14): the portrait fills its tile, ringed in the card's category colour;
   an OFF card shows it softened, ON lights it up. Same in light mode (ring + glow are category tokens). ---- */
img.art.boss,img.fico.boss{object-fit:cover;box-sizing:border-box;padding:0;background:var(--panel-2)}
body[data-style=v2] .acard img.art.boss{width:52px;height:52px;padding:0;border-radius:14px;border:0;
  box-shadow:0 0 0 1px rgba(var(--rgb),.35);filter:saturate(.6)}
body[data-style=v2] .acard.on img.art.boss{filter:none;box-shadow:0 0 0 2px var(--ca,var(--accent)),0 0 14px rgba(var(--rgb),.4)}
body[data-style=v2] .acard.locked img.art.boss{filter:grayscale(.8)}
body[data-style=v2] .drawer-head img.art.lg.boss{width:64px;height:64px;border-radius:16px;
  box-shadow:0 0 0 2px var(--ca,var(--accent)),0 0 16px rgba(var(--rgb),.4)}
body[data-style=v2] .drawer img.fico.boss{width:40px;height:40px;border-radius:11px;
  box-shadow:0 0 0 1px rgba(var(--rgb),.45);filter:saturate(.6)}
body[data-style=v2] .drawer .fbox:has(> .fhead input:checked) img.fico.boss{filter:none;box-shadow:0 0 0 2px var(--ca,var(--accent)),0 0 10px rgba(var(--rgb),.35)}
body[data-style=v2] .drawer .fbox.soon img.fico.boss{filter:grayscale(.7);opacity:.7}
@media (max-width:520px){ body[data-style=v2] .drawer img.fico.boss{width:34px;height:34px;border-radius:9px} }
/* game UI art (trucks, train, ambulance, chests…): shown whole on a soft category tile, not cropped (2026-10-14) */
img.art.boss.fit,img.fico.boss.fit{object-fit:contain;padding:5px;background:rgba(var(--rgb,255,138,42),.12)}
body[data-style=v2] .acard img.art.boss.fit{padding:5px;background:rgba(var(--rgb),.14)}
body[data-style=v2] .drawer-head img.art.lg.boss.fit{padding:7px;background:rgba(var(--rgb),.14)}
/* Clumzy icon set (2026-10-14): icons drawn in the solid category colour; `f` parts = soft duotone fill */
body[data-style=v2] .art.glyph.mg{color:var(--ca,var(--accent))}
.art.glyph svg [f],.row-glyph [f]{fill:currentColor;fill-opacity:.16;stroke:none}
.row-glyph{color:var(--ca,var(--accent))}
body[data-style=v2] .agroup-head .art.glyph.mg svg [f],body[data-style=v2] .csum .ic .art.glyph.mg svg [f]{fill:#1a0b12;fill-opacity:.16}
/* card settings header: the card's game picture, large, faded in from the right (2026-10-14) */
body[data-style=v2] .drawer-head{position:relative;overflow:hidden;isolation:isolate}
body[data-style=v2] .drawer-head>*:not(.dh-art){position:relative;z-index:1}
.drawer-head .dh-art{position:absolute;z-index:0;right:-18px;top:50%;transform:translateY(-50%);width:190px;height:190px;object-fit:cover;
  opacity:.38;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 60%);mask-image:linear-gradient(90deg,transparent 0%,#000 60%)}
.drawer-head .dh-art.fit{object-fit:contain;right:-6px;width:170px;height:150px;opacity:.45}
html[dir=rtl] .drawer-head .dh-art{right:auto;left:-18px;transform:translateY(-50%) scaleX(-1)}
html[dir=rtl] .drawer-head .dh-art.fit{left:-6px}
@media (max-width:560px){.drawer-head .dh-art{width:150px;height:150px;opacity:.32}.drawer-head .dh-art.fit{width:140px;height:120px;opacity:.4}}
/* TRIAL: game picture inside the card, faded from the side + dimmed (collect_resources, gather_resources) */
body[data-style=v2] .acard:has(> .card-bgart){position:relative;overflow:hidden}
body[data-style=v2] .acard > .card-bgart{position:absolute;z-index:0;right:46px;top:50%;transform:translateY(-50%);height:118%;width:auto;max-width:46%;
  object-fit:contain;opacity:.22;filter:saturate(.8);pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 65%);mask-image:linear-gradient(90deg,transparent 0%,#000 65%)}
body[data-style=v2] .acard:has(> .card-bgart) > :not(.card-bgart){position:relative;z-index:1}
body[data-style=v2] .acard.on > .card-bgart{opacity:.3}
html[dir=rtl] body[data-style=v2] .acard > .card-bgart{right:auto;left:46px;transform:translateY(-50%) scaleX(-1)}
/* header art: less fade (operator 2026-10-14 "so faded, reduce the fade") — short soft edge only, stronger picture */
.drawer-head .dh-art{opacity:.62;-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.15) 0%,#000 32%);mask-image:linear-gradient(90deg,rgba(0,0,0,.15) 0%,#000 32%)}
.drawer-head .dh-art.fit{opacity:.72}
@media (max-width:560px){.drawer-head .dh-art{opacity:.55}.drawer-head .dh-art.fit{opacity:.65}}
/* trial v2 (operator): same size on both cards, less dim, less fade */
body[data-style=v2] .acard > .card-bgart{width:124px;max-width:40%;height:calc(100% + 8px);object-fit:cover;object-position:center;
  opacity:.5;filter:none;-webkit-mask-image:linear-gradient(90deg,rgba(0,0,0,.15) 0%,#000 38%);mask-image:linear-gradient(90deg,rgba(0,0,0,.15) 0%,#000 38%)}
body[data-style=v2] .acard.on > .card-bgart{opacity:.62}
/* trial v3 (operator): smaller pictures, still the same size on both cards */
body[data-style=v2] .acard > .card-bgart{width:86px;height:74%;max-width:32%;right:52px}
html[dir=rtl] body[data-style=v2] .acard > .card-bgart{right:auto;left:52px}
/* trial v4 (operator): smaller again + 10% dimmer */
body[data-style=v2] .acard > .card-bgart{width:68px;height:60%;opacity:.4}
body[data-style=v2] .acard.on > .card-bgart{opacity:.52}
/* trial v5 (operator): +12% size */
body[data-style=v2] .acard > .card-bgart{width:76px;height:67%}
/* trial v6 (operator): +10% and sit under (behind) the toggle at the card's right edge */
body[data-style=v2] .acard > .card-bgart{width:84px;height:74%;right:8px}
html[dir=rtl] body[data-style=v2] .acard > .card-bgart{right:auto;left:8px}
body[data-style=v2] .acard-wrap .acard-sw{z-index:2}
/* trial v7 (operator): move left of the toggle, ~15% of the picture tucked under it (toggle = 12px+44px from the edge) */
body[data-style=v2] .acard > .card-bgart{right:43px}
html[dir=rtl] body[data-style=v2] .acard > .card-bgart{right:auto;left:43px}
/* Secret Command Post header picture is a big chest: show it smaller (operator 2026-10-14) */
.drawer-head .dh-art.fit[src*="card_secret_command_post"]{width:112px;height:92px;right:8px}
html[dir=rtl] .drawer-head .dh-art.fit[src*="card_secret_command_post"]{right:auto;left:8px}
@media (max-width:560px){.drawer-head .dh-art.fit[src*="card_secret_command_post"]{width:96px;height:80px}}
/* Overview Golden Zombie card (2026-10-14) */
#gzcard .act-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
#gzcard .gz-ic{width:26px;height:26px;border-radius:8px;object-fit:cover;vertical-align:-.3em;margin-right:4px}
.gz-pill{font-size:12px;font-weight:700;padding:3px 10px;border-radius:999px;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.gz-pill.live{color:#ff8a2a;background:rgba(255,138,42,.14);border:1px solid rgba(255,138,42,.45)}
.gz-pill.done{color:#3fd28c;background:rgba(63,210,140,.12);border:1px solid rgba(63,210,140,.45)}
.gz-pill.off{color:var(--mut);background:rgba(255,255,255,.05);border:1px solid var(--line)}
.gz-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:6px}
.gz-tile{display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:12px;background:rgba(255,255,255,.035);border:1px solid var(--line);min-width:0}
.gz-tile.big{grid-column:1/-1}
.gz-k{font-size:12.5px;color:var(--mut);font-weight:600}
.gz-v{font-size:26px;font-weight:800;line-height:1.1;color:var(--fg)}
.gz-v small{font-size:15px;color:var(--mut);font-weight:700}
.gz-bar{display:block;height:8px;border-radius:99px;background:rgba(255,255,255,.08);overflow:hidden;margin-top:4px}
.gz-bar i{display:block;height:100%;border-radius:99px;background:#ff8a2a;transition:width .6s ease}
.gz-last{margin:10px 0 0}
.gz-bar.full i{background:#34d399}
.gz-more{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:10px}
.gz-more-l{font-size:12.5px;font-weight:700}
.gz-more-btns{display:flex;gap:8px}
.gz-add{min-width:64px;padding:8px 12px;border-radius:10px;border:1px solid rgba(255,138,42,.55);background:rgba(255,138,42,.12);
  color:inherit;font-weight:800;font-variant-numeric:tabular-nums;cursor:pointer}
.gz-add:hover{background:rgba(255,138,42,.22)}
.gz-add:focus-visible,.gz-more-link:focus-visible,.gz-undo-b:focus-visible{outline:2px solid #ff8a2a;outline-offset:2px}
.gz-more-link{padding:0;border:0;background:none;color:#ff8a2a;font-weight:700;font-size:13px;cursor:pointer}
.gz-stam,.gz-extra{width:100%}
.gz-undo{width:100%;font-size:12.5px}
.gz-undo-b{padding:0;border:0;background:none;color:#ff8a2a;font-weight:800;cursor:pointer;text-decoration:underline}
.gz-err{width:100%;color:#f87171;font-size:12.5px}
@media (max-width:480px){.gz-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---- PREFERRED squad strip (operator 2026-10-14, v3: compact one-line bar; v2 pills were too big and wrapped) ----
   [PREFERRED SQUAD + one-line explanation], then a small segmented bar [Off][1][2][4]. */
body .chips.chips-squad .prefbox{grid-column:1/-1;display:flex;flex-direction:column;align-items:flex-start;gap:8px;
  margin-top:2px;padding:10px 12px;border-radius:12px;background:var(--gc-box);box-shadow:inset 0 0 0 1px var(--gc-line);min-width:0}
body .chips.chips-squad .pref-head{display:flex;flex-direction:column;gap:2px;min-width:0}
body .chips.chips-squad .pref-t{font-size:10.5px;font-weight:800;letter-spacing:.7px;text-transform:uppercase;white-space:nowrap;
  color:color-mix(in srgb,var(--gc-text) 75%,transparent)}
body .chips.chips-squad .pref-s{font-size:11px;line-height:1.3;color:color-mix(in srgb,var(--gc-text) 55%,transparent)}
html[dir=rtl] body .chips.chips-squad .pref-t{text-transform:none;letter-spacing:0}
body .chips.chips-squad .pref-pills{flex:none;display:flex;gap:2px;padding:2px;border-radius:9px;
  background:color-mix(in srgb,var(--gc-text) 7%,transparent)}
body .chips.chips-squad .prefpill{height:28px;min-width:30px;padding:0 8px;border:0;border-radius:7px;font-size:12px;font-weight:700;
  line-height:1;cursor:pointer;color:color-mix(in srgb,var(--gc-text) 70%,transparent);background:transparent}
body .chips.chips-squad .prefpill.num{font-family:Anton,sans-serif;font-weight:400;font-size:15px;padding:0}
body .chips.chips-squad .prefpill.on{color:var(--gc-check-ink);background:var(--ca,var(--accent,#5fc7e6))}
body .chips.chips-squad .prefpill:focus-visible{outline:2px solid var(--ca,var(--accent,#5fc7e6));outline-offset:1px}
body .chips.chips-squad .chip.chip.squad{position:relative}
body .chips.chips-squad .pref-badge{position:absolute;top:4px;right:4px;padding:2px 4px;border-radius:5px;font-size:8.5px;font-weight:800;
  line-height:1;letter-spacing:.2px;color:var(--gc-check-ink);background:var(--ca,var(--accent,#5fc7e6))}
html[dir=rtl] body .chips.chips-squad .pref-badge{right:auto;left:4px}
:root{--pref-ring:#101831}
html[data-theme=light]{--pref-ring:#ffffff}

/* ---- JOIN SLOT as the game's Rally Intel card (operator 2026-10-14): leader seat + 4 "+" seats + boss picture ---- */
.rslots{display:flex;flex-direction:column;gap:6px;width:100%;min-width:0}
.rs-card{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-radius:14px;
  background:var(--gc-box);box-shadow:inset 0 0 0 1px var(--gc-line);min-width:0}
.rs-seats{display:flex;gap:6px;min-width:0}
.rs-seat{position:relative;width:40px;height:50px;flex:none;padding:6px 0 4px;border:0;border-radius:10px;cursor:pointer;
  display:flex;flex-direction:column;align-items:center;justify-content:space-between;
  background:color-mix(in srgb,var(--gc-text) 8%,transparent);box-shadow:inset 0 0 0 1px var(--gc-line);color:var(--gc-text)}
.rs-seat.lead{cursor:default;color:#f5b82e;background:color-mix(in srgb,#f5b82e 12%,transparent);
  box-shadow:inset 0 0 0 1px color-mix(in srgb,#f5b82e 45%,transparent)}
.rs-seat.lead svg{width:22px;height:22px}
.rs-cap{font-size:10px;font-weight:700;line-height:1;color:color-mix(in srgb,var(--gc-text) 60%,transparent)}
.rs-seat.lead .rs-cap{color:#f5b82e;font-size:8.5px;letter-spacing:-.1px}
.rs-plus{position:relative;width:20px;height:20px;margin-top:2px}
.rs-plus::before,.rs-plus::after{content:"";position:absolute;left:50%;top:50%;border-radius:2px;transform:translate(-50%,-50%);
  background:color-mix(in srgb,var(--gc-text) 30%,transparent)}
.rs-plus::before{width:20px;height:7px}
.rs-plus::after{width:7px;height:20px}
.rs-seat.on{background:color-mix(in srgb,var(--rs-go) 14%,transparent);box-shadow:inset 0 0 0 2px var(--rs-go)}
.rs-seat.on .rs-plus::before,.rs-seat.on .rs-plus::after{background:var(--rs-go)}
.rs-seat.on .rs-cap{color:var(--rs-go)}
.rs-seat:focus-visible{outline:2px solid var(--rs-go);outline-offset:2px}
.rs-boss{flex:none;width:56px;height:56px;border-radius:12px;overflow:hidden;
  box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--ca,var(--accent,#5fc7e6)) 60%,transparent)}
.rs-boss img{width:100%;height:100%;object-fit:cover;display:block}
.rs-note{font-size:12px;color:color-mix(in srgb,var(--gc-text) 60%,transparent)}
@media (max-width:400px){.rs-seats{gap:5px}.rs-seat{width:37px}.rs-boss{width:50px;height:50px}.rs-card{padding:9px}}
:root{--rs-go:#7ed321}
html[data-theme=light]{--rs-go:#3f9e0f}

/* "What's on" rows (Overview): the card icon in its CATEGORY colour on a soft category tile, like the cards
   (operator 2026-10-14: "why these are not following the category colors") */
body[data-style=v2] .won-row .art.xs.glyph.mg{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:10px;
  color:var(--ca);background:rgba(var(--rgb),.14);box-shadow:inset 0 0 0 1px rgba(var(--rgb),.28)}
html[data-theme=light] body[data-style=v2] .won-row .art.xs.glyph.mg{background:rgba(var(--rgb),.09);box-shadow:inset 0 0 0 1px rgba(var(--rgb),.22)}

/* ===== OVERVIEW REDESIGN (approved mockup 2026-10-14): Clumzy status · event · Today tiles · digs · grouped activity ===== */
/* Clumzy header status */
.cz-status{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;font-weight:800;color:var(--mut)}
.cz-status i{width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px color-mix(in srgb,currentColor 18%,transparent)}
.cz-status.ok{color:#2fbf7a}.cz-status.warn{color:#f0b429}.cz-status.bad{color:#ff6b6b}
.cz-status .cz-ago{font-weight:600;color:var(--mut)}
/* Clumzy chips in their category colour */
body[data-style=v2] .cz-st[data-cat]{color:var(--ca);background:rgba(var(--rgb),.14);box-shadow:none}
/* Today tiles */
.td-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.td-wide{grid-column:1/-1;min-height:0}
.td-wide-head{display:flex;align-items:center;gap:10px}
.td-parts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;width:100%}
.td-part{display:flex;flex-direction:column;gap:4px;min-width:0}
.td-part.zero{opacity:.45}
@media (max-width:480px){.td-parts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:760px){.td-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.td-tile{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:104px;padding:14px;border:0;border-radius:18px;
  text-align:left;cursor:pointer;font:inherit;color:var(--fg);background:var(--panel-2);box-shadow:inset 0 0 0 1px rgba(var(--rgb),.30)}
.td-tile:hover{box-shadow:inset 0 0 0 2px rgba(var(--rgb),.55)}
.td-tile:focus-visible{outline:2px solid var(--ca);outline-offset:2px}
.td-ic{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;color:var(--ca);background:rgba(var(--rgb),.15)}
.td-ic .row-glyph{width:19px;height:19px}
.td-n{font-family:Anton,sans-serif;font-weight:400;font-size:26px;line-height:1;font-variant-numeric:tabular-nums}
.td-l{font-size:12.5px;font-weight:600;color:var(--mut);line-height:1.3}
/* digs: compact rows */
.dig-rows{list-style:none;margin:0;padding:0}
.dig-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line);font-size:13.5px;min-width:0}
.dig-row:first-child{border-top:0}
.dig-row b{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dig-dot2{width:9px;height:9px;border-radius:50%;flex:none;background:#22b8d6}
.dig-row.done .dig-dot2{background:#2fbf7a}.dig-row.skip .dig-dot2{background:#ffab1f}.dig-row.bad .dig-dot2{background:#ff6b6b}
.dig-st{font-size:12.5px;color:var(--mut);white-space:nowrap}
.dig-tm{font-size:12px;font-variant-numeric:tabular-nums}
.dig-more{margin:6px 0 0}
/* recent activity, grouped */
.ag-toggle{display:flex;align-items:center;gap:10px;width:100%;padding:0;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.ag-tt{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.ag-tt h2{margin:0}
.ag-sum{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-toggle>svg{flex:none;color:var(--mut);transition:transform .2s}
.ag-toggle.open>svg{transform:rotate(180deg)}
.ag-seg{display:flex;gap:4px;padding:3px;margin-top:12px;border-radius:12px;background:var(--panel-2)}
.ag-seg button{flex:1;min-height:36px;border:0;border-radius:9px;background:transparent;color:var(--mut);font-family:inherit;font-size:13px;font-weight:700;line-height:1.1;cursor:pointer}
.ag-seg button.on{background:var(--accent,#ff8a2a);color:#1a0b02}
.ag-note{margin:8px 0 0}
.ag-list{list-style:none;margin:6px 0 0;padding:0}
.ag-row{border-top:1px solid var(--line)}
.ag-row:first-child{border-top:0}
.ag-head{display:flex;align-items:center;gap:10px;width:100%;padding:10px 0;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.ag-ic{width:34px;height:34px;flex:none;border-radius:10px;display:grid;place-items:center;color:var(--ca);background:rgba(var(--rgb),.15)}
.ag-ic .row-glyph{width:18px;height:18px}
.ag-main{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.ag-name{display:flex;align-items:baseline;gap:6px;min-width:0}
.ag-name b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-n{flex:none;font-size:11px;font-weight:800;padding:2px 7px;border-radius:99px;color:var(--ca);background:rgba(var(--rgb),.12)}
.ag-last{font-size:12.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ag-last.warn{color:#f0b429}.ag-last.bad{color:#ff6b6b}
.ag-t{flex:none;font-size:12px;color:var(--mut);font-variant-numeric:tabular-nums}
.ag-items{list-style:none;margin:0 0 10px 44px;padding:0 0 0 12px;border-left:2px solid rgba(var(--rgb),.35)}
.ag-items li{display:flex;gap:10px;padding:5px 0;font-size:13px}
.ag-full{margin-top:10px;width:100%}
#fulllog{margin-top:12px}
/* one Configure link instead of the category tiles + What's on */
.ov-config{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:52px;padding:14px 16px;margin-bottom:14px;
  border:0;border-radius:16px;cursor:pointer;font-family:inherit;font-size:14.5px;font-weight:800;line-height:1.2;color:#ffb070;background:rgba(255,138,42,.10)}
.ov-config b{font-weight:800}
html[dir=rtl] .ag-items{margin:0 44px 10px 0;padding:0 12px 0 0;border-left:0;border-right:2px solid rgba(var(--rgb),.35)}
html[dir=rtl] .ag-toggle,html[dir=rtl] .ag-head,html[dir=rtl] .td-tile{text-align:right}

/* ===== admin Activity -> Tries (2026-10-14) ===== */
.tr-big{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:6px 0 8px}
@media (max-width:620px){.tr-big{grid-template-columns:repeat(2,minmax(0,1fr))}}
.tr-big>div{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:12px;background:var(--panel-2)}
.tr-big b{font-family:Anton,sans-serif;font-weight:400;font-size:22px;font-variant-numeric:tabular-nums}
.tr-big span{font-size:12px;color:var(--mut)}
.tr-big .ok b{color:#2fbf7a}.tr-big .idle b{color:#8b93a6}.tr-big .skip b{color:#f0b429}.tr-big .bad b{color:#ff6b6b}
.tr-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px;align-items:start}
.tr-card{display:flex;flex-direction:column;gap:8px;min-width:0}
.tr-head{display:flex;align-items:center;gap:10px;width:100%;padding:0;border:0;background:none;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.tr-name{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.tr-name b{font-size:15px}
.tr-waste-n{display:flex;flex-direction:column;align-items:flex-end}
.tr-waste-n b{font-family:Anton,sans-serif;font-weight:400;font-size:24px;line-height:1;color:#f0b429}
.tr-bar{display:flex;height:8px;border-radius:4px;overflow:hidden;background:var(--panel-2)}
.tr-bar i{display:block;height:100%}
.tr-bar .ok{background:#2fbf7a}.tr-bar .idle{background:#5b6172}.tr-bar .skip{background:#f0b429}.tr-bar .bad{background:#ff6b6b}
.tr-pairs{display:flex;flex-wrap:wrap;gap:6px}
.tr-pair{font-size:12.5px;padding:4px 9px;border-radius:99px;background:var(--panel-2)}
.tr-legend{margin:0}
.tr-body h4{margin:8px 0 4px;font-size:12px;letter-spacing:.6px;text-transform:uppercase;color:var(--mut)}
.tr-waste,.tr-chars{list-style:none;margin:0;padding:0}
.tr-waste li,.tr-chars li{display:flex;justify-content:space-between;gap:10px;padding:5px 0;border-top:1px solid var(--line);font-size:13px}
.tr-waste li:first-child,.tr-chars li:first-child{border-top:0}
.tr-waste li span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.tr-waste li.skipped b{color:#f0b429}.tr-waste li.failed b{color:#ff6b6b}.tr-waste li.idle b{color:var(--mut)}

/* "I'm playing" stays fully usable while the character is disconnected (operator 2026-10-14): a player who opened the
   game must be able to tell the bot, so it doesn't reconnect and kick them out */
.stack.brk [data-pane="overview automations"] .play-card{filter:none;opacity:1}

/* Design audit #5 (2026-10-14): squad-conflict warnings ALWAYS amber -- they took the category colour, so on Gather
   (green) a warning read as "fine" */
body .fwarn .warn-line,body .fwarn .warn-line b{color:var(--warn-ink)}
:root{--warn-ink:#f5a524}
html[data-theme=light]{--warn-ink:#a15c00}
.frow.wide:has(.bh) .flbl{display:none}
.frow.wide:has(.bh) .fctl{margin-top:0}

.gz-pill.off{background:rgba(255,255,255,.08);color:var(--mut,#9aa3b8);border-color:rgba(255,255,255,.14)}

/* Golden Zombie card: today + Hunt more (2026-10-15) */
.gzi{display:flex;flex-direction:column;gap:8px}
.gzi-top{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.gzi-more{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}

/* Golden Zombie card header switch (2026-10-15) */
.gz-switch{display:inline-flex;align-items:center;gap:8px;padding:5px 6px 5px 12px;border-radius:99px;border:1px solid var(--line);
  background:rgba(255,255,255,.05);color:inherit;font-weight:800;font-size:13px;cursor:pointer;flex:none}
.gz-switch .gz-sw-k{width:34px;height:20px;border-radius:99px;background:rgba(255,255,255,.18);position:relative;transition:background .2s}
.gz-switch .gz-sw-k::after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform .2s}
.gz-switch.on{border-color:rgba(52,211,153,.5)}
.gz-switch.on .gz-sw-k{background:#34d399}
.gz-switch.on .gz-sw-k::after{transform:translateX(14px)}
.gz-switch:focus-visible{outline:2px solid #ff8a2a;outline-offset:2px}
.gz-switch:disabled{opacity:.6}
.gz-sub{margin:-4px 0 10px;display:flex;align-items:center;gap:6px}
.gzi{padding:12px;border-radius:12px;border:1px solid rgba(255,138,42,.35);background:rgba(255,138,42,.06)}
.gzi-l{font-size:13px}

/* Golden Zombie = COMBAT style (operator 2026-10-15): orange switch, combat-gradient top-up buttons */
.gz-switch.on{border-color:rgba(var(--rgb,255,122,42),.55)}
.gz-switch.on .gz-sw-k{background:var(--grad,linear-gradient(135deg,#ffc266,#ff6a2a))}
.gz-add{background:transparent;border:1.5px solid rgba(var(--rgb,255,122,42),.6);color:inherit}
.gz-add:hover{background:rgba(var(--rgb,255,122,42),.14)}
.gz-add.on{background:var(--grad,linear-gradient(135deg,#ffc266,#ff6a2a));border-color:transparent;color:#1b0d02;box-shadow:0 2px 10px rgba(var(--rgb,255,122,42),.25)}
.gz-add.on:hover{filter:brightness(1.07);background:var(--grad,linear-gradient(135deg,#ffc266,#ff6a2a))}
.gz-add:disabled{opacity:.6;cursor:progress}
.gz-add:active{transform:translateY(1px)}
.gzi{border-color:rgba(var(--rgb,255,122,42),.35);background:rgba(var(--rgb,255,122,42),.06)}
.td-row-l{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--mut);margin-top:4px}
/* online since + connection log (2026-10-16) */
.connbox{margin-top:10px}
.connbox[hidden]{display:none}
.conn-since{margin:0;font-size:13.5px;font-weight:600;color:var(--fg,#e8eef2)}
.conn-log{margin-top:6px;font-size:12.5px}
.conn-log summary{cursor:pointer;color:var(--muted,#8fa0ab)}
.conn-log ol{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:5px}
.conn-log li{display:grid;grid-template-columns:auto auto 1fr;gap:8px;align-items:baseline;min-width:0}
.conn-log li b{font-variant-numeric:tabular-nums;font-weight:600}
.conn-log li i{font-style:normal;color:var(--muted,#8fa0ab);min-width:0;overflow-wrap:anywhere}
.conn-log li.ev-connected span{color:#3fcf8e}
.conn-log li.ev-disconnected span{color:#ff8a5c}
.conn-log li.ev-paused span{color:#f0b429}
/* Golden Zombie "Hunting" badge (2026-10-16): shown while a kill landed in the last 2 min */
.gz-hunting{display:inline-flex;align-items:center;gap:5px;margin-left:8px;padding:1px 8px;border-radius:999px;
  font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#f0b429;background:rgba(240,180,41,.16)}
.gz-hunting i{width:6px;height:6px;border-radius:50%;background:#f0b429;animation:gzpulse 1.4s ease-in-out infinite}
.st-left.gold{color:#f0b429;font-weight:700}
.gz-count.bump{animation:gzbump .35s ease-out}
@keyframes gzbump{0%{transform:scale(1.12);color:#f0b429}100%{transform:scale(1)}}
@keyframes gzpulse{0%,100%{opacity:1}50%{opacity:.3}}
@media (prefers-reduced-motion:reduce){.gz-hunting i{animation:none}}

/* "+1" popping off the zombie's head on each new kill, Mario coin-box style (operator 2026-10-16): a gold coin with
   +1 jumps up, overshoots, settles and fades. Lives on a page-level layer (position:fixed) so card refreshes can't
   remove it. */
#gzcard .gz-icwrap{position:relative;display:inline-block}
.gz-plus{position:fixed;z-index:9999;display:inline-flex;align-items:center;gap:4px;pointer-events:none;
  transform:translate(-50%,0);font:900 19px/1 system-ui,-apple-system,sans-serif;color:#ffd23f;
  text-shadow:0 2px 0 #7a4b00,0 0 6px rgba(0,0,0,.55);-webkit-text-stroke:1px #6b3f00;
  animation:gzcoin 1.35s cubic-bezier(.2,.9,.3,1.2) forwards}
.gz-plus::before{content:"";width:16px;height:16px;border-radius:50%;flex:none;
  background:radial-gradient(circle at 35% 30%,#fff6b0 0 18%,#ffd23f 19% 60%,#e2a300 61% 100%);
  box-shadow:0 0 0 1.5px #7a4b00,0 0 10px rgba(255,210,63,.75)}
@keyframes gzcoin{0%{opacity:0;transform:translate(-50%,8px) scale(.6)}
  18%{opacity:1;transform:translate(-50%,-34px) scale(1.18)}
  32%{transform:translate(-50%,-26px) scale(1)}
  70%{opacity:1;transform:translate(-50%,-30px) scale(1)}
  100%{opacity:0;transform:translate(-50%,-46px) scale(.95)}}
/* Reduce Motion on (iPhone setting): no jump, but the coin still FADES in and out in place -- it used to vanish */
@keyframes gzcoinfade{0%{opacity:0}20%{opacity:1}75%{opacity:1}100%{opacity:0}}
@media (prefers-reduced-motion:reduce){.gz-plus{animation:gzcoinfade 1.35s ease-in-out forwards;
  transform:translate(-50%,-28px)}}

/* Squads card: each order gets its own colour and a GENTLE breathing glow -- slow fade in / fade out (operator
   2026-10-16: "very gentle, not like a nightclub"). Idle stays as it is. hunt = gold, rally = red, return = blue,
   gather = green. Plain rgba (no color-mix) so older iPhone Safari draws it too. */
.ongo-list li.sq-hunt{--sq:240,180,41}
.ongo-list li.sq-rally{--sq:255,90,78}
.ongo-list li.sq-return{--sq:74,168,255}
.ongo-list li.sq-gather{--sq:52,211,153}
.ongo-list li.sq-hunt,.ongo-list li.sq-rally,.ongo-list li.sq-return,.ongo-list li.sq-gather{position:relative;
  border-color:rgba(var(--sq),.45);background:rgba(var(--sq),.07)}
.ongo-list li.sq-hunt::after,.ongo-list li.sq-rally::after,.ongo-list li.sq-return::after,.ongo-list li.sq-gather::after{
  content:"";position:absolute;inset:-1px;border-radius:inherit;pointer-events:none;
  border:1px solid rgba(var(--sq),.85);background:rgba(var(--sq),.10);
  box-shadow:0 0 16px 2px rgba(var(--sq),.35),inset 0 0 12px rgba(var(--sq),.12);
  opacity:0;animation:sqbreath 4.2s ease-in-out infinite}
.ongo-list li.sq-hunt .st-left,.ongo-list li.sq-rally .st-left,.ongo-list li.sq-return .st-left,
.ongo-list li.sq-gather .st-left{color:rgb(var(--sq));font-weight:700}
.ongo-list li.sq-hunt svg,.ongo-list li.sq-rally svg,.ongo-list li.sq-return svg,.ongo-list li.sq-gather svg{color:rgb(var(--sq))}
@keyframes sqbreath{0%,100%{opacity:0}50%{opacity:1}}
/* Reduce Motion: the breathing glow is a fade (no movement), so it keeps running */

/* Reduce Motion (iPhone setting) switches every animation off site-wide (lwauto.css). These three are FADES only --
   no movement -- so they stay on: the +1 coin, the squad glow, the Hunting dot (operator 2026-10-16). */
@media (prefers-reduced-motion:reduce){
  .gz-plus{animation:gzcoinfade 1.35s ease-in-out forwards!important}
  .ongo-list li.sq-hunt::after,.ongo-list li.sq-rally::after,.ongo-list li.sq-return::after,
  .ongo-list li.sq-gather::after{animation:sqbreath 4.2s ease-in-out infinite!important}
  .gz-hunting i{animation:gzpulse 1.4s ease-in-out infinite!important}
}

/* Pause card: the time picker keeps its words on a phone; while paused it extends the pause (2026-10-16) */
.play-card{flex-wrap:wrap}
.play-card [data-pause]{flex:1 1 132px;white-space:nowrap;justify-content:center}
.play-card [data-pause].confirm{background:#e5484d;border-color:#e5484d;color:#fff;box-shadow:0 0 0 3px rgba(229,72,77,.25)}
/* Reconnect now + its plain reasons (2026-11-20): shown only when the character is disconnected and not paused */
.play-card .rc-row{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;min-width:0}
.play-card .rc-row[hidden]{display:none}
.play-card .rc-msg{flex:1 1 200px;min-width:0;font-size:13.5px;line-height:1.4;color:var(--mut)}
.play-card .rc-msg.email,.play-card .rc-msg.banned,.play-card .rc-msg.failed{color:var(--red,#e5484d)}
.play-card .rc-msg.waiting,.play-card .rc-msg.reconnecting{color:var(--gold,#f5b544)}
.play-card .rc-link{font-size:13.5px;font-weight:600;white-space:nowrap}
.play-card .rc-btn{flex:1 1 100%;justify-content:center;white-space:nowrap;background:transparent;border:1.5px solid currentColor;color:var(--accent,#ff8a2b)}
.play-card .rc-btn.confirm{background:#e5484d;border-color:#e5484d;color:#fff;box-shadow:0 0 0 3px rgba(229,72,77,.25)}

/* Pause length chips (replace the native drop-down, 2026-10-16) */
.pause-chips{display:flex;gap:6px;flex:1 1 220px;min-width:0}
.pause-chips button{flex:1 1 0;min-width:0;height:44px;border-radius:12px;border:1px solid var(--line);
  background:rgba(255,255,255,.03);color:var(--fg);font:inherit;font-weight:700;font-size:15px;cursor:pointer;
  font-variant-numeric:tabular-nums;transition:background .15s,border-color .15s,color .15s}
.pause-chips button.on:not(.add){border-color:#f59e0b;background:rgba(245,158,11,.16);color:#ffb340}
.pause-chips button.add{border-color:rgba(52,211,153,.45);color:#34d399}
.pause-chips button.add:active{background:rgba(52,211,153,.18)}
.pause-chips button:disabled{opacity:.5}

/* Trucks TODAY strip (2026-10-16) */
.trk-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.trk-t{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;border-radius:12px;
  border:1px solid var(--line);background:rgba(255,255,255,.03);min-width:0}
.trk-t b{font-size:18px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.trk-t span{font-size:11.5px;color:var(--mut,#8fa0ab);text-align:center;line-height:1.2}
.trk-t.warn b{color:#ffb340}
@media (max-width:380px){.trk-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* COMPACT setting rows in the card drawer (operator 2026-10-16: "each box is so big, the text, the option and the
   description each on its own line -- make it tidy"): label + short hint on the left, the control on the right of
   the SAME row; compact controls. Wide pickers (squad / loot chips, info panels) keep their own line. */
body[data-style=v2] .drawer .frow:not(.wide){display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;
  gap:2px 12px;margin-bottom:8px}
body[data-style=v2] .drawer .frow:not(.wide) .flbl{max-width:none;min-width:0}
body[data-style=v2] .drawer .frow:not(.wide) .fctl{justify-content:flex-end;flex:none}
body[data-style=v2] .drawer .flbl .fl{line-height:1.25}
body[data-style=v2] .drawer .flbl .hint{font-size:11.5px;line-height:1.3;margin-top:2px}
body[data-style=v2] .drawer .frow:not(.wide) .stepper{height:36px}
body[data-style=v2] .drawer .frow:not(.wide) .stepper button{width:34px;height:34px}
body[data-style=v2] .drawer .frow:not(.wide) .stepper input{width:46px;height:34px}
body[data-style=v2] .drawer .frow:not(.wide) .seg button{min-height:34px;height:34px;padding:0 12px}
body[data-style=v2] .drawer .frow:not(.wide):has(.chips-squad,.chips-loot,.chips:not(.chips-rarity)){grid-template-columns:1fr}
body[data-style=v2] .drawer .frow:not(.wide):has(.chips-squad,.chips-loot,.chips:not(.chips-rarity)) .fctl{justify-content:flex-start}
body[data-style=v2] .drawer .frow:not(.wide):has(.chips-squad,.chips-loot,.chips:not(.chips-rarity)) .chips{justify-content:flex-start}

/* Overview Trucks card (2026-10-16): header with the Trucks game art, then the TODAY tiles */
.trk-card{position:relative;overflow:hidden}
.trk-card .trk-hd{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;min-height:64px}
.trk-card .trk-hd-t{display:flex;flex-direction:column;gap:4px;min-width:0}
.trk-card .trk-hd-t h2{margin:0}
.trk-card .trk-art{width:150px;max-width:42%;height:auto;margin:-14px -10px -10px 0;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.45));pointer-events:none}
.trk-card .trk-t b span{font:inherit;color:inherit}
.trk-card .trk-t b{font-size:clamp(14px,4.4vw,18px)}

/* Trucks card header: a small icon beside the title, like Golden Zombie's (operator 2026-10-16: "50%, icon size") */
#truckcard .trk-ic{height:30px;width:auto;max-width:58px;object-fit:contain;vertical-align:-.45em;margin-right:6px;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.4))}
#truckcard .act-head{margin-bottom:12px}

/* Trucks inside the TODAY card (operator 2026-10-16) */
.td-trucks{grid-column:1/-1;display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:16px;
  border:1px solid rgba(34,184,214,.35);background:rgba(34,184,214,.06);text-align:left}
.td-trucks .trk-hd2{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.td-trucks .td-wide-head{display:flex;align-items:center;gap:8px}
.td-trucks .trk-ic{height:30px;width:auto;max-width:58px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.4))}
.td-trucks .trk-t b{font-size:clamp(14px,4.4vw,18px)}
.td-trucks .trk-t b span{font:inherit;color:inherit}

/* support tickets (2026-10-16, support_web.py): unread count on the Support / Admin nav item + the Admin "Support" tab */
.nav .new.cnt{min-width:16px;height:16px;padding:0 4px;border-radius:99px;font-size:10px;line-height:16px;text-align:center;
  background:var(--accent);color:var(--on-accent)}
.adm-tabs .new.cnt{display:inline-block;margin-inline-start:6px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;font-size:11px;
  line-height:18px;text-align:center;background:var(--accent);color:var(--on-accent);font-weight:700}


/* Billing (2026-10-16): automation outside the member's pack -> "Upgrade" pill (billing.feature_allowed) */
.pill.tag-up{color:#ffcf8a;background:rgba(255,138,42,.14);border:1px solid rgba(255,138,42,.45)}
.pill.tag-up svg{width:11px;height:11px}
/* admin tabs: 4 tabs (Support added 2026-10-16) don't fit a 390 px phone -> scroll sideways, never wrap */
.adm-tabs{overflow-x:auto;scrollbar-width:none;white-space:nowrap}
.adm-tabs::-webkit-scrollbar{display:none}
.adm-tabs a{flex:none}
/* Admin tabs: 6 tabs no longer fit a phone -> the row scrolls sideways instead of clipping (2026-10-16) */
.adm-tabs{overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.adm-tabs::-webkit-scrollbar{display:none}
.adm-tabs a{white-space:nowrap;flex:none}

/* iPhone (operator 10-16): the top bar was 435px on a 390px screen (log-out icon cut off) and the admin tabs ran off
   the screen with no hint (Billing hidden). Tighter top bar; admin tabs wrap onto a second row. */
@media (max-width:480px){
  .topbar{gap:6px;padding-inline:10px}
  .topbar .icon-btn{width:36px;height:36px;min-width:36px;flex:none}
  .topbar .logo{font-size:17px;min-width:0;flex:0 1 auto}
  .topbar .logo img,.topbar .logo svg{width:34px;height:34px}
  .adm-tabs{flex-wrap:wrap;overflow:visible;white-space:normal;row-gap:2px}
  .adm-tabs a{padding:8px 10px;font-size:13.5px}
}

/* Golden Zombie "Hunt more": taps add up; the running extra with Undo / Clear (operator 2026-10-16) */
.gz-extra-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%}
.gz-extra-n{font-size:13.5px;color:var(--gold,#f0b429)}
.gz-x{padding:6px 12px;border-radius:9px;border:1px solid var(--line,#2a3546);background:transparent;color:inherit;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.gz-x:hover{background:rgba(255,255,255,.06)}
.gz-x:focus-visible{outline:2px solid #ff8a2a;outline-offset:2px}
.gz-more-btns{flex-wrap:wrap}
.gz-more-btns{width:100%;flex-wrap:nowrap}
.gz-more-btns .gz-add{flex:1 1 0;min-width:0;padding-inline:6px}
/* the running extra = the gold "chosen" look the old single choice had (operator 2026-10-16) */
.gz-extra-n{padding:7px 12px;border-radius:10px;background:var(--grad,linear-gradient(135deg,#ffc266,#ff6a2a));color:#1b0d02;
  box-shadow:0 2px 10px rgba(255,122,42,.25)}

/* ops freeze: maintenance banner on every member page (operator 2026-10-16) */
.freeze-banner{display:flex;align-items:center;gap:14px;margin:0 0 16px;padding:14px 16px;border-radius:14px;
  border:1px solid rgba(240,180,41,.55);background:rgba(240,180,41,.12)}
.freeze-banner img{width:56px;height:56px;flex:none;object-fit:contain}
.freeze-banner b{display:block;font-size:15px;margin-bottom:3px;color:var(--gold,#f0b429)}
.freeze-banner span{font-size:13px;line-height:1.45;color:inherit;opacity:.9}
html[data-theme=light] .freeze-banner b{color:#b07800}
/* To-do List (game event clock) on the Dashboard character tiles -- operator 2026-11-17 */
.dtile .clk-tile{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.dtile .clk-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 9px;border-radius:999px;font-size:11.5px;
  color:var(--fg-70);background:var(--panel-2);border:1px solid var(--line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dtile .clk-chip b{color:var(--gold);font-weight:700;font-variant-numeric:tabular-nums}
.dtile .clk-chip.live{border-color:var(--green-soft);background:var(--green-soft)}
.dtile .clk-chip.live b{color:var(--green)}
#clockcard .clk-live .st-left{color:var(--green)}
/* To-do List card on the Overview, laid out like the game's screen (operator 2026-11-17) */
#clockcard .clk-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
#clockcard .clk-head h2{margin:0;font-size:18px}
#clockcard .clk-big{margin:10px 0 2px;text-align:center;font-size:44px;line-height:1.1;font-weight:800;letter-spacing:1px;
  font-variant-numeric:tabular-nums;color:var(--fg);text-shadow:0 0 18px var(--blue-soft)}
#clockcard .clk-mode{display:flex;justify-content:flex-end;margin-bottom:6px}
#clockcard .clk-sw{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--panel-2);color:var(--fg-70);
  border-radius:8px;padding:4px 10px;font:inherit;font-size:12.5px;font-weight:600;cursor:pointer}
#clockcard .clk-sw svg{width:15px;height:15px}
#clockcard .clk-day{margin:12px 0 6px;font-size:13px;font-weight:700;color:var(--fg)}
#clockcard .clk-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
#clockcard .clk-row{display:flex;align-items:center;gap:12px;padding:8px 12px 8px 8px;border-radius:12px;background:var(--panel-2);border:1px solid var(--line)}
#clockcard .clk-row.live{border-color:var(--green-soft)}
#clockcard .clk-ic{width:48px;height:48px;flex:0 0 48px;border-radius:9px;object-fit:contain;background:var(--line-soft)}
#clockcard .clk-ic.none{display:grid;place-items:center;color:var(--mut)}
#clockcard .clk-ic.none svg{width:22px;height:22px}
#clockcard .clk-txt{display:flex;flex-direction:column;min-width:0;flex:1}
#clockcard .clk-txt b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#clockcard .clk-time{font-size:20px;font-weight:800;color:var(--blue);font-variant-numeric:tabular-nums}
#clockcard .clk-row.live .clk-time{font-size:13px;font-weight:600;color:var(--green)}
#clockcard .clk-left{font-size:13px;font-weight:700;color:var(--gold);font-variant-numeric:tabular-nums;white-space:nowrap}
#clockcard .clk-row.live .clk-left{color:var(--green)}
#clockcard .clk-empty{margin:10px 0 0}
.dtile .clk-chip img{width:16px;height:16px;object-fit:contain;border-radius:3px}
/* TODAY card on phone widths (operator 2026-11-17, iPhone): small tiles pack side by side (dense flow, no lone tile
   next to a gap), the wide "parts" tiles (Claimed today / Collected) are compact, and the truck tiles' timers fit. */
.td-grid{grid-auto-flow:row dense}
.td-tile.td-wide{gap:4px}
.td-tile.td-wide .td-parts{gap:8px 10px}
.td-tile.td-wide .td-part{gap:1px}
.td-tile.td-wide .td-part .td-n{font-size:22px}
.td-tile.td-wide .td-part .td-l{font-size:12px;line-height:1.2}
.td-tile.td-wide .td-row-l{margin-top:6px}
@media (max-width:480px){.td-tile.td-wide .td-parts{grid-template-columns:repeat(3,minmax(0,1fr))}}
.td-trucks .trk-t{padding:10px 4px;overflow:hidden}
.td-trucks .trk-t b{font-size:clamp(12px,3.7vw,18px);max-width:100%}
/* Claimed today / Collected (phone): each value on ONE line -- number then its label -- two columns, tight rows */
@media (max-width:480px){
  .td-tile.td-wide .td-parts{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px}
  .td-tile.td-wide .td-part{flex-direction:row;align-items:baseline;gap:6px}
  .td-tile.td-wide .td-part .td-n{font-size:20px;flex:none}
  .td-tile.td-wide .td-part .td-l{min-width:0}
}
/* Claimed today / Collected as a clean list (operator 2026-11-17): label left, value right, no emoji, zeros named once */
.td-tile.td-wide .td-parts.td-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;width:100%}
.td-kv-i{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:6px 0;border-bottom:1px solid var(--line-soft);min-width:0}
.td-kv-l{font-size:13px;line-height:1.3;color:var(--fg-70);min-width:0}
.td-kv-n{font-size:15px;font-weight:700;color:var(--fg);font-variant-numeric:tabular-nums;flex:none}
.td-kv-zero{display:block;width:100%;margin-top:6px;font-size:12px;line-height:1.4;color:var(--mut)}
@media (max-width:360px){.td-tile.td-wide .td-parts.td-kv{grid-template-columns:1fr}}
/* (operator 2026-11-17 "too tight or not organized") ONE item per row, roomy: name left, number right */
.td-tile.td-wide .td-parts.td-kv{grid-template-columns:1fr;gap:0}
.td-kv-i{padding:11px 2px}
.td-kv-i:last-child{border-bottom:0}
.td-kv-l{font-size:14.5px}
.td-kv-n{font-size:16.5px}
.td-tile.td-wide .td-row-l{margin-top:12px}
.td-kv-zero{margin-top:10px;padding-top:10px;border-top:1px solid var(--line-soft)}
/* row icon (operator 2026-11-17: "add icons now as it has more space") -- fixed slot so names line up */
.td-kv-ic{flex:0 0 26px;width:26px;height:26px;display:grid;place-items:center;font-size:17px;line-height:1;border-radius:8px;background:var(--line-soft)}
.td-kv-i{justify-content:flex-start;gap:12px;align-items:center}
.td-kv-l{flex:1}

/* Dashboard character tiles — FIXED SIZE, compact (operator 2026-11-18): every tile the same height; one line each for
   name+power, badges, status, events; live (bot on + connected) tiles lighter, disconnected / bot-off ones darker. */
.dgrid{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px}
.dgrid .dtile{display:flex;flex-direction:column;gap:6px;height:146px;padding:12px 14px;box-sizing:border-box;
  overflow:hidden;align-content:start;text-decoration:none;color:inherit;transition:background .15s,border-color .15s}
.dgrid .dtile>*{min-width:0;flex:none}
.dgrid .t-head{display:flex;align-items:center;gap:7px;min-width:0}
.dgrid .t-name{flex:1;min-width:0;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dgrid .tpw{flex:none;white-space:nowrap;font-weight:700;font-size:13.5px}
.dgrid .t-badges{display:flex;gap:5px;flex-wrap:nowrap;overflow:hidden}
.dgrid .t-badges .pill{flex:none;font-size:11px;padding:1px 7px}
.dgrid .t-status{font-size:12.5px;color:var(--mut);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dgrid .clk-tile{display:flex;flex-wrap:nowrap;gap:5px;margin-top:auto;overflow:hidden;min-height:22px}
.dgrid .clk-chip{flex:none;font-size:11px;padding:2px 8px}
.dgrid .clk-chip img{width:14px;height:14px}
.dgrid .tile-dead{width:22px;height:22px;margin:0}
.dgrid .dtile.t-dead .t-name,.dgrid .dtile.t-off .t-name{opacity:.75}
.dgrid .dtile.t-dead .t-badges,.dgrid .dtile.t-dead .clk-tile,.dgrid .dtile.t-off .t-badges{opacity:.6}
@media (max-width:640px){.dgrid{grid-template-columns:1fr}}
/* live = lighter, clearly different */
.dgrid .dtile.t-live{background:linear-gradient(160deg,rgba(255,255,255,.11),rgba(255,255,255,.04));border-color:rgba(70,200,140,.45)}
.dgrid .dtile.t-wait{border-color:rgba(240,180,41,.45)}
.dgrid .dtile.t-dead,.dgrid .dtile.t-off{background:rgba(0,0,0,.18);box-shadow:none}
html[data-theme=light] .dgrid .dtile.t-live{background:linear-gradient(160deg,#fff,rgba(255,255,255,.85));border-color:rgba(30,170,110,.45)}
html[data-theme=light] .dgrid .dtile.t-dead,html[data-theme=light] .dgrid .dtile.t-off{background:rgba(120,140,170,.10)}

/* Today list: two columns + full-width long names (operator 2026-11-19, mockup approved; light/dark, EN/AR, phone) */
.td-tile.td-wide .td-parts.td-kv.td-kv2{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;position:relative}
.td-tile.td-wide .td-parts.td-kv.td-kv2::before{content:"";position:absolute;left:50%;top:6px;bottom:6px;width:1px;transform:translateX(-.5px);
  background:linear-gradient(to bottom,transparent,var(--line) 22%,var(--line) 78%,transparent);pointer-events:none}
.td-kv2 .td-kv-i:last-child,.td-kv2 .td-kv-i:nth-last-child(2):nth-child(odd){border-bottom:0}
.td-tile.td-wide .td-parts.td-kv.td-kv-wide{grid-template-columns:1fr;border-top:1px solid var(--line-soft)}
.td-kv-wide .td-kv-i:last-child{border-bottom:0}
@media (max-width:520px){
  .td-tile.td-wide .td-parts.td-kv.td-kv2{column-gap:16px}
  .td-kv2 .td-kv-i{padding:9px 0}
  .td-kv2 .td-kv-l{font-size:13px}
  .td-kv2 .td-kv-n{font-size:14.5px}
}
[dir=rtl] .td-kv-l{font-size:13px;line-height:1.45}
@media (max-width:520px){[dir=rtl] .td-kv-l{font-size:11.5px}}
[dir=rtl] .td-kv-zero{font-size:11.5px}
@media (max-width:520px){.td-kv-wide .td-kv-l{font-size:13px}.td-kv-wide .td-kv-n{font-size:14.5px}}

/* Game avatar on the dashboard tiles (operator 2026-11-19): round 38 px, letter underneath as fallback, status dot as a
   badge on the bottom corner (the inline-end corner in RTL). */
.dgrid .t-head{gap:10px}
.dgrid .t-av{position:relative;flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center}
.dgrid .t-av-i{width:100%;height:100%;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:16px;
  background:linear-gradient(135deg,rgba(255,255,255,.16),rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.16);color:var(--fg,#fff)}
.dgrid .t-av img{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover;border:1px solid rgba(255,255,255,.18)}
.dgrid .t-av .dot{position:absolute;right:-1px;bottom:-1px;margin:0;width:11px;height:11px;box-shadow:0 0 0 2px var(--card,#0e1a1f);z-index:1}
[dir=rtl] .dgrid .t-av .dot{right:auto;left:-1px}
.dgrid .t-av-dead .tile-dead{width:34px;height:34px;margin:0}
.dgrid .dtile.t-dead .t-av img,.dgrid .dtile.t-off .t-av img{filter:grayscale(.6);opacity:.75}
html[data-theme=light] .dgrid .t-av-i{background:linear-gradient(135deg,#3B8CFF,#0068F8);color:#fff;border-color:transparent}
html[data-theme=light] .dgrid .t-av img{border-color:rgba(20,40,80,.12)}
html[data-theme=light] .dgrid .t-av .dot{box-shadow:0 0 0 2px #fff}

/* ---- Today card boxes (operator 2026-11-19, mockups approved): From alliance chat / Daily task milestones / Arms Race.
   Same rows as "Claimed today" (two columns + faded divider; a long pair full width); game icons from /static/gameicons. */
.bx-box{margin-top:12px;border:1px solid var(--line-soft);border-radius:18px;padding:12px 14px;display:flex;flex-direction:column;gap:8px;min-width:0}
.bx-h{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:700;color:var(--fg-70);min-width:0}
.bx-hi{font-size:15px}.bx-hic{width:22px;height:22px;object-fit:contain}
.bx-sub{margin-inline-start:auto;display:flex;align-items:center;gap:4px;font-size:12px;font-weight:600;color:var(--mut);font-variant-numeric:tabular-nums}
.bx-tm{width:15px;height:15px;object-fit:contain}
.bx-box .td-parts.td-kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;width:100%;position:relative}
.bx-box .td-parts.td-kv.td-kv-wide{grid-template-columns:1fr}
.bx-box .td-parts.td-kv.td-kv2::before{content:"";position:absolute;left:50%;top:6px;bottom:6px;width:1px;transform:translateX(-.5px);
  background:linear-gradient(to bottom,transparent,var(--line) 22%,var(--line) 78%,transparent);pointer-events:none}
.bx-box .td-kv-i{align-items:center}
.bx-box .td-kv2 .td-kv-i{border-bottom:0}
.bx-gi{width:22px;height:22px;object-fit:contain;display:block}
.bx-box .td-kv-ic{flex:0 0 24px;display:grid;place-items:center}
.bx-box .td-kv-l{flex:1}
.bx-acc{color:var(--accent)}
/* daily task milestones: the game's star badge + yellow bar + 5 chests above their points */
.bx-ms{display:flex;align-items:flex-end;gap:10px;min-width:0}
.bx-badge{flex:0 0 54px;height:58px;position:relative;display:grid;place-items:center}
.bx-star{width:52px;height:52px;object-fit:contain}
.bx-badge b{position:absolute;bottom:-2px;font-size:14px;font-weight:800;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.6);font-variant-numeric:tabular-nums}
.bx-track{flex:1;min-width:0;position:relative;height:84px;margin-inline-end:22px}
.bx-bar{position:absolute;left:0;right:0;bottom:14px;height:10px;border-radius:6px;background:var(--line-soft);overflow:hidden}
.bx-bar i{position:absolute;inset-block:0;inset-inline-start:0;border-radius:6px;background:linear-gradient(90deg,#f2b51c,#ffd65a)}
.bx-stop{position:absolute;bottom:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:4px}
[dir=rtl] .bx-stop{transform:translateX(50%)}
.bx-chest{width:38px;height:38px;object-fit:contain}
.bx-stop.locked .bx-chest{opacity:.5;filter:grayscale(.4)}
.bx-stop.ready .bx-chest{filter:drop-shadow(0 0 6px #f2b51c)}
.bx-pt{font-size:11px;font-weight:800;padding:1px 6px;border-radius:8px;background:#f2b51c;color:#3a2600;font-variant-numeric:tabular-nums}
/* arms race */
.bx-ar-top{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.bx-theme{font-size:18px;font-weight:800;color:var(--fg)}
.bx-seg{font-size:12px;color:var(--mut)}
.bx-score{display:flex;align-items:center;gap:8px}
.bx-score b{font-size:22px;font-weight:800;color:var(--fg);font-variant-numeric:tabular-nums}
.bx-score span{font-size:12.5px;color:var(--mut)}
.bx-coin{width:26px;height:26px;object-fit:contain}
.bx-tiers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.bx-tier{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 4px;border:1px solid var(--line-soft);border-radius:14px;min-width:0}
.bx-tier.done{border-color:#2f9e6a}
.bx-tier{position:relative}
.bx-tier.ready{border-color:#f2b51c}
.bx-tier.ready .bx-tch{filter:drop-shadow(0 0 7px #f2b51c)}
.bx-tier.locked .bx-tch{opacity:.5;filter:grayscale(.4)}
.bx-ready{position:absolute;top:6px;inset-inline-end:6px;font-size:10px;font-weight:800;padding:1px 6px;border-radius:8px;background:#f2b51c;color:#3a2600}
.bx-tch{width:48px;height:48px;object-fit:contain}
.bx-dia{display:flex;align-items:center;gap:4px;font-size:13px;font-weight:800;color:var(--fg);font-variant-numeric:tabular-nums}
.bx-dgi{width:14px;height:auto}
.bx-arline{position:relative;height:54px}
.bx-artrack{position:absolute;left:0;right:0;top:11px;height:10px;border-radius:6px;background:var(--line-soft);overflow:hidden}
.bx-artrack i{position:absolute;inset-block:0;inset-inline-start:0;background:linear-gradient(90deg,#f2b51c,#ffd65a);border-radius:6px}
.bx-mark{position:absolute;top:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:2px}
[dir=rtl] .bx-mark{transform:translateX(50%)}
.bx-mc{width:30px;height:30px;object-fit:contain}
.bx-mark.hit .bx-mc{filter:drop-shadow(0 0 5px #f2b51c)}
.bx-mark b{font-size:12.5px;font-weight:800;color:var(--fg);font-variant-numeric:tabular-nums}
.bx-foot{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12.5px;color:var(--mut)}
.bx-foot b{color:var(--fg)}
.bx-asof{font-size:11.5px}
.bx-sch{margin-inline-start:auto;border:1px solid var(--line);background:transparent;color:var(--fg);border-radius:12px;padding:7px 12px;font:inherit;font-weight:700;cursor:pointer}
.bx-sch:hover{border-color:var(--accent);color:var(--accent)}
.bx-scrim{position:fixed;inset:0;background:rgba(5,8,18,.55);display:grid;place-items:center;padding:16px;z-index:200}
.bx-sheet{width:min(420px,100%);border-radius:22px;background:var(--bg,#0b1020);color:var(--fg);border:1px solid var(--line);box-shadow:0 20px 50px rgba(0,0,0,.4);padding:16px;display:flex;flex-direction:column;gap:8px}
.bx-sh-h{display:flex;align-items:center;gap:8px;font-weight:800;font-size:16px}
.bx-x{margin-inline-start:auto;border:0;background:none;color:var(--mut);font-size:22px;cursor:pointer}
.bx-slot{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;border:1px solid var(--line-soft)}
.bx-slot.now{background:var(--accent-soft);border-color:var(--accent)}
.bx-st-t{font-weight:700;font-variant-numeric:tabular-nums;flex:0 0 48px}
.bx-st-n{flex:1;min-width:0;font-weight:600}
.bx-st-s{font-size:11.5px;color:var(--mut)}.bx-slot.now .bx-st-s{color:var(--accent);font-weight:700}
.bx-sh-f{font-size:11.5px;color:var(--mut);padding-top:4px}
@media (max-width:520px){.bx-chest{width:30px;height:30px}.bx-badge{flex-basis:46px}.bx-star{width:44px;height:44px}
  .bx-tch{width:40px;height:40px}.bx-theme{font-size:16px}.bx-score b{font-size:19px}.bx-box .td-parts.td-kv{column-gap:16px}}

/* DAILY TASK MILESTONES -- game look (operator 2026-11-19), sprites from the game: task_star (medal), task_chest(_open),
   task_marker (cfm_meirirenwu_tubiao_lingxing_da rhombus), task_bar_track/_fill (cfm_renwu_meiri_jindutiao_1/_2, 9-slice),
   the light under each chest is CODED (a beam + base pool, see .bx-dmglow) -- not in the shipped game sprites.
   SPACING (operator 11-19, 2nd pass): medal centre 7.5 %, width 13.1 %; markers on equal steps 21 / 38.75 / 56.5 / 74.25 / 92 %
   and the bar ENDS at the last marker (92 %), like the game; chest 10.4 % wide, sitting just above the bar;
   bar 3.6 % high; the light a flat ellipse ~12 % wide under each chest. All sizes in cqw so phone and desktop keep the same
   proportions. */
.bx-dm{gap:6px;padding:10px 12px 8px;container-type:inline-size}   /* theme background (operator 11-19: no blue panel) */
.bx-dmh{display:flex;align-items:center;gap:8px;min-width:0}
.bx-pill{display:inline-flex;align-items:center;gap:6px;padding:3px 12px 3px 4px;border-radius:8px;background:rgba(30,60,100,.55);
  color:#fff;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.bx-pill-ic{width:24px;height:24px;object-fit:contain}
.bx-dmt{order:-1;margin-inline-end:auto;font-size:14px;font-weight:700;color:inherit;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* box title on the left, theme text */
.bx-dmrow{position:relative;min-width:0;height:max(100px,20.4cqw)}
.bx-dmmedal{position:absolute;inset-inline-start:calc(7.5% - max(24px,6.55cqw));bottom:0;width:max(48px,13.1cqw);
  height:max(48px,13.1cqw);z-index:3;display:grid;place-items:center}
.bx-dmstar{width:100%;height:100%;object-fit:contain}
.bx-dmmedal b{position:absolute;bottom:-.15em;font-size:max(15px,3.7cqw)}
.bx-dmtrack{position:absolute;inset:0}
.bx-dmbar{position:absolute;inset-inline:7.5% 8%;bottom:max(16px,3.2cqw);height:max(14px,3.6cqw);box-sizing:border-box;
  border-style:solid;border-width:10px 7px;border-image:url(/static/gameicons/task_bar_track.png?v=20261119d) 12 7 fill stretch;filter:drop-shadow(0 1.5px 0 #3a4b66) drop-shadow(0 -1.5px 0 #3a4b66) drop-shadow(1px 0 0 #3a4b66) drop-shadow(-1px 0 0 #3a4b66)}
.bx-dmbar i{position:absolute;top:-8px;bottom:-8px;inset-inline-start:-5px;max-width:calc(100% + 10px);box-sizing:border-box;
  border-style:solid;border-width:8px 6px;border-image:url(/static/gameicons/task_bar_fill.png?v=20261119d) 12 7 fill stretch}
.bx-dms{position:absolute;inset-block:0;width:0;z-index:2}
/* the LIGHT each chest stands on (operator 11-19, coded -- the game's own light is not in the shipped sprites). In the
   game there is NO geometry: just a soft, flat, horizontally stretched glow at the chest's base -- a blurred ellipse a bit
   wider than the chest's bottom, brightest along the bottom edge where the chest stands, fading softly upward and out at
   the ends; coloured (white, mint, cyan, pink, warm white); the background around it unchanged. Plain blurred radial
   gradients only -- no clip-path / mask / blend modes (iPhone Safari drew dark wedges with them). */
.bx-dmglow{position:absolute;left:0;bottom:max(43px,9.1cqw);width:max(62px,16cqw);height:max(13px,3.2cqw);
  transform:translateX(-50%);pointer-events:none;border-radius:50%;filter:blur(max(2px,.5cqw));--gc:232,246,255;
  background:radial-gradient(ellipse 50% 50% at 50% 62%,rgba(var(--gc),1) 0,rgba(var(--gc),.82) 34%,rgba(var(--gc),.36) 64%,rgba(var(--gc),0) 100%)}
.bx-dmglow::after{content:"";position:absolute;left:14%;right:14%;bottom:22%;height:26%;border-radius:50%;
  background:radial-gradient(ellipse 50% 50% at 50% 50%,rgba(255,255,255,.75) 0,rgba(var(--gc),.5) 55%,rgba(var(--gc),0) 100%)}
.bx-dmglow.g0,.bx-dmfan.g0{--gc:232,246,255}.bx-dmglow.g1,.bx-dmfan.g1{--gc:140,250,214}.bx-dmglow.g2,.bx-dmfan.g2{--gc:120,236,255}
.bx-dmglow.g3,.bx-dmfan.g3{--gc:244,176,255}.bx-dmglow.g4,.bx-dmfan.g4{--gc:255,246,200}
html[data-theme=light] .bx-dmglow.g0,html[data-theme=light] .bx-dmfan.g0{--gc:150,210,245}html[data-theme=light] .bx-dmglow.g1,html[data-theme=light] .bx-dmfan.g1{--gc:80,226,186}
html[data-theme=light] .bx-dmglow.g2,html[data-theme=light] .bx-dmfan.g2{--gc:70,210,240}html[data-theme=light] .bx-dmglow.g3,html[data-theme=light] .bx-dmfan.g3{--gc:214,150,245}
html[data-theme=light] .bx-dmglow.g4,html[data-theme=light] .bx-dmfan.g4{--gc:240,214,120}
/* THE light (operator 11-19: "use only the one in the background, the fan"; the base glow .bx-dmglow is no longer drawn):
   the FAN ("I was hoping we have the triangle effect"): a soft light opening UPWARD behind the chest from
   the glow's bottom centre (narrow bottom -> about the chest's width at the top), same colour, low opacity. The shape is a
   clip-path on the inner <i>, the BLUR sits on the wrapper so the clipped edges go soft, and a mask fades it out toward the
   top. No blend modes (iPhone Safari drew dark wedges with them). */
.bx-dmfan{position:absolute;left:0;bottom:max(45px,10.7cqw);width:max(73px,17.7cqw);height:max(31px,7.3cqw);
  transform:translateX(-50%);pointer-events:none;filter:blur(max(2px,.55cqw));--gc:232,246,255;
  /* 2026-11-19 (operator iPhone: a thin purple line along the top of the lights, gone when zoomed): Safari draws the
     blurred layer's top edge as a hard line -> mask AFTER the blur (outer element) so the top fades to nothing */
  -webkit-mask-image:linear-gradient(to top,#000 0,#000 55%,transparent 92%);mask-image:linear-gradient(to top,#000 0,#000 55%,transparent 92%);
  isolation:isolate}
.bx-dmfan i{position:absolute;inset:0;clip-path:polygon(0 0,100% 0,73% 100%,27% 100%);
  background:linear-gradient(to top,rgba(255,255,255,.8) 0,rgba(var(--gc),.85) 14%,rgba(var(--gc),.5) 40%,rgba(var(--gc),.14) 75%,rgba(var(--gc),0) 100%);
  -webkit-mask-image:linear-gradient(to top,#000 0,#000 40%,transparent 100%);mask-image:linear-gradient(to top,#000 0,#000 40%,transparent 100%)}
[dir=rtl] .bx-dmfan{left:auto;right:0;transform:translateX(50%)}
.bx-dms.locked .bx-dmfan{opacity:.6}
.bx-dmchest{position:absolute;left:0;bottom:max(47px,11.2cqw);width:max(38px,10.4cqw);height:max(38px,10.4cqw);
  object-fit:contain;object-position:center bottom;transform:translateX(-50%)}
.bx-dms.locked .bx-dmchest{filter:grayscale(.5) brightness(.85)}.bx-dms.locked .bx-dmglow{opacity:.6}
.bx-dms.ready .bx-dmchest{filter:drop-shadow(0 0 7px #ffd34d)}
.bx-dmk{position:absolute;left:0;bottom:max(9px,2cqw);width:max(28px,6.2cqw);height:max(28px,6.2cqw);transform:translateX(-50%);
  display:grid;place-items:center}
[dir=rtl] .bx-dmglow,[dir=rtl] .bx-dmchest,[dir=rtl] .bx-dmk{left:auto;right:0;transform:translateX(50%)}
.bx-dmmark{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.bx-dmk b{position:relative;font-size:max(10.5px,2.6cqw)}
.bx-out{color:#fff;font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:.2px;
  text-shadow:-1.5px -1.5px 0 #3b2a10,1.5px -1.5px 0 #3b2a10,-1.5px 1.5px 0 #3b2a10,1.5px 1.5px 0 #3b2a10,0 1.5px 0 #3b2a10,0 -1.5px 0 #3b2a10,1.5px 0 0 #3b2a10,-1.5px 0 0 #3b2a10}
.bx-dmasof{display:flex;justify-content:flex-end;margin-top:-2px}
@media (max-width:520px){.bx-pill{font-size:12px}.bx-dmt{font-size:13px}}
/* GAME ICONS on the automation cards (2026-11-20, docs/automation_icons.md; switch lwauto_store/ui_icons.json).
   Same visual size as the approved mockup: the game picture sits inside the card's tinted tile. */
img.art.gicon{object-fit:contain;box-sizing:border-box}
body[data-style=v2] .acard img.art.gicon{width:44px;height:44px;padding:3px;border-radius:12px}
body[data-style=v2] .drawer-head img.art.lg.gicon{width:64px;height:64px;padding:5px;border-radius:16px}
body[data-style=v2] .csum .ic img.art.gicon{padding:0}
/* CARD ICON BOX 25% larger + ONE size for every category (operator 2026-11-20): game icons, old glyph tiles and the
   Combat boss portraits all sit in the same 55 px rounded box (was 44 px tiles / 52 px portraits). */
body[data-style=v2] .acard .art.glyph.mg,body[data-style=v2] .acard img.art.gicon,body[data-style=v2] .acard img.art.boss{
  width:55px;height:55px;border-radius:14px;flex:0 0 55px}
body[data-style=v2] .acard img.art.gicon{padding:4px}
body[data-style=v2] .acard .art.glyph.mg svg{width:32px;height:32px}
body[data-style=v2] .acard img.art.boss{padding:3px;object-fit:cover}
/* GAME ICONS in option chips (Claim Rewards "Collect", 2026-11-20): an even grid of same-size tiles, icon + label,
   "All" on its own full-width first row. Only when the dashboard gives the icons (switch ui_icons.json "game"). */
body .chips.chips-gicons{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));grid-auto-rows:1fr;gap:8px;width:100%;flex:1 1 100%;box-sizing:border-box}
body .chips.chips-gicons .chip.chip{display:flex;align-items:center;justify-content:flex-start;gap:9px;min-height:46px;margin:0;
  padding:8px 12px;text-align:left;width:100%;box-sizing:border-box;line-height:1.2}
body .chips.chips-gicons .chip.chip.quick{grid-column:1/-1;justify-content:center}
body .chips.chips-gicons .chip .cgi{width:24px;height:24px;flex:0 0 24px;object-fit:contain}
body .chips.chips-gicons .chip .cgl{min-width:0;overflow-wrap:break-word;hyphens:manual}
/* full-width icon grid on every browser (no :has) + exactly 2 equal columns on phones (375-430 px) */
body[data-style=v2] .drawer .frow.frow-gi,body .frow.frow-gi{display:grid;grid-template-columns:minmax(0,1fr)}
body[data-style=v2] .drawer .frow.frow-gi .fctl,body .frow.frow-gi .fctl{display:block;width:100%;flex:1 1 auto;justify-content:flex-start}
@media (max-width:560px){body .chips.chips-gicons{grid-template-columns:repeat(2,minmax(0,1fr))}}
body[data-style=v2] .drawer .frow.frow-gi>*,body .frow.frow-gi>*{grid-column:1/-1}
body[data-style=v2] .drawer .frow.frow-gi .chips.chips-gicons{margin-left:0}
/* CARD ICON ON TOP OF EVERY SETTINGS PAGE (operator 2026-11-20): the card's own icon next to the title, in the same
   55 px box as the grid cards, lit (category ring + glow) when the card is on; shown on phones too. */
body[data-style=v2] .drawer-head .art.lg{display:inline-flex;align-items:center;justify-content:center;width:55px;height:55px;
  flex:0 0 55px;box-sizing:border-box;border-radius:14px;border:1px solid rgba(var(--rgb),.42);
  background:radial-gradient(120% 120% at 30% 20%,rgba(var(--rgb),.30),rgba(var(--rgb),.07))}
body[data-style=v2] .drawer-head img.art.lg.gicon{width:55px;height:55px;padding:4px;border-radius:14px;object-fit:contain}
body[data-style=v2] .drawer-head img.art.lg.boss{width:55px;height:55px;padding:3px;border-radius:14px;object-fit:cover}
body[data-style=v2] .drawer-head .art.lg.glyph svg{width:32px;height:32px}
body[data-style=v2] .drawer-head.on .art.lg{box-shadow:0 0 0 2px var(--ca,var(--accent)),0 0 14px rgba(var(--rgb),.45);border-color:transparent}
@media (max-width:560px){body[data-style=v2] .drawer-head .art.lg{display:inline-flex;width:48px;height:48px;flex-basis:48px}
  body[data-style=v2] .drawer-head img.art.lg.gicon,body[data-style=v2] .drawer-head img.art.lg.boss{width:48px;height:48px}}
body[data-style=v2] .drawer-head:not(.on) .art.lg,body[data-style=v2] .drawer-head:not(.on) img.art.lg.boss{box-shadow:none;border:1px solid rgba(var(--rgb),.42)}
/* Daily Tasks page head: the same 55 px card-icon box, lit when the card is on */
.dt-hic>.art{--rgb:255,45,138;display:inline-flex;align-items:center;justify-content:center;width:55px;height:55px;box-sizing:border-box;
  border-radius:14px;border:1px solid rgba(var(--rgb),.42);background:radial-gradient(120% 120% at 30% 20%,rgba(var(--rgb),.30),rgba(var(--rgb),.07))}
.dt-hic>img.art.gicon{padding:4px;object-fit:contain}
.dt-hic.on>.art{box-shadow:0 0 0 2px rgb(var(--rgb)),0 0 14px rgba(var(--rgb),.45);border-color:transparent}
body .dt-head .dt-hic>img.art{width:55px;height:55px;max-width:none}
body .dt-head .dt-hic{flex:0 0 55px;width:55px;height:55px}
/* Overview dig-site icon = the Auto Digging game icon (sized like the other game icons in the box titles) */
img.dig-gi{width:1.35em;height:1.35em;object-fit:contain;vertical-align:-.3em}
.act-head h2 img.dig-gi{width:1.4em;height:1.4em;margin-right:2px}

/* DESKTOP (>= 900px, operator 2026-11-23): the two boxes were far too big on a wide card (cqw sizes scale with the card).
   Side by side in a 2-column grid, each ~600-660 px wide -> chests/medal/markers shrink with the container; Arms Race
   chests, bars and fonts tighter. Phone/tablet (< 900px) unchanged. */
@media (min-width:900px){
  .bx-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start;margin-top:12px}
  .bx-pair>.bx-box{margin-top:0}
  .bx-pair>.bx-box:only-child{grid-column:1;max-width:640px}
  .bx-dm{padding:8px 12px 6px;gap:4px}
  .bx-dmh .bx-pill{font-size:12px;padding:2px 10px 2px 4px}
  .bx-dmt{font-size:13px}
  .bx-arms{padding:8px 12px;gap:6px}
  .bx-arms .bx-h{font-size:12.5px}
  .bx-theme{font-size:16px}
  .bx-score b{font-size:18px}.bx-coin{width:22px;height:22px}
  .bx-tiers{gap:6px}
  .bx-tier{flex-direction:row;justify-content:center;gap:8px;padding:4px 4px;border-radius:12px}
  .bx-tch{width:34px;height:34px}
  .bx-dia{font-size:12.5px}
  .bx-arline{height:44px}
  .bx-artrack{height:6px;top:9px}
  .bx-mc{width:24px;height:24px}
  .bx-mark b{font-size:11.5px}
  .bx-foot{font-size:12px;gap:8px}
  .bx-sch{padding:4px 10px;font-size:12px;border-radius:10px}
}
