/* EcomSteward brand: Deep navy #052D50, Electric blue #0099FA, Royal blue #0058EC, White.
   Navy for trust, blue for energy, white for space. Font: Plus Jakarta Sans. */
:root {
  --navy: #052D50;
  --navy-deep: #001C34;
  --electric: #0099FA;
  --royal: #0058EC;
  --grad-navy: linear-gradient(160deg, #052D50 0%, #001C34 100%);
  --grad-blue: linear-gradient(90deg, #0099FA 0%, #0058EC 100%);

  --paper: #F4F7FB;
  --surface: #FFFFFF;
  --surface-2: #F6F9FD;
  --line: #DCE5EF;
  --text: #052D50;
  --muted: #5A6F86;
  --brand: #0058EC;
  --brand-2: #0099FA;
  --brand-soft: #E6F1FE;
  --brand-ink: #FFFFFF;
  --ok: #0B8A5F;
  --ok-soft: #E3F5EE;
  --amber: #A86A12;
  --amber-soft: #FBF0DC;
  --red: #C23B2A;
  --red-soft: #FBE6E3;
  --danger-ink: #FFFFFF;
  --side: #052D50;
  --side-bg: var(--grad-navy);
  --side-text: #CFDDEC;
  --side-muted: #86A0BC;
  --side-active: rgba(0,153,250,.16);
  --focus: #0099FA;
  --radius-lg: 14px;
  --radius: 9px;
  --display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
/* Dark theme: follows the device unless the person picked Day or Night with the toggle */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #001426;
    --surface: #04213B;
    --surface-2: #072945;
    --line: #12395C;
    --text: #E6EFF8;
    --muted: #8FA8C2;
    --brand: #0099FA;
    --brand-2: #0099FA;
    --brand-soft: #0A3355;
    --brand-ink: #001C34;
    --ok: #3CC79A;
    --ok-soft: #0C3A2E;
    --amber: #E3A646;
    --amber-soft: #3A2B12;
    --red: #F08A79;
    --red-soft: #3D1F1A;
    --danger-ink: #2A0D08;
    --side-bg: linear-gradient(160deg, #04213B 0%, #000E1C 100%);
    --side-active: rgba(0,153,250,.18);
    --focus: #33ADFB;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #001426;
  --surface: #04213B;
  --surface-2: #072945;
  --line: #12395C;
  --text: #E6EFF8;
  --muted: #8FA8C2;
  --brand: #0099FA;
  --brand-2: #0099FA;
  --brand-soft: #0A3355;
  --brand-ink: #001C34;
  --ok: #3CC79A;
  --ok-soft: #0C3A2E;
  --amber: #E3A646;
  --amber-soft: #3A2B12;
  --red: #F08A79;
  --red-soft: #3D1F1A;
  --danger-ink: #2A0D08;
  --side-bg: linear-gradient(160deg, #04213B 0%, #000E1C 100%);
  --side-active: rgba(0,153,250,.18);
  --focus: #33ADFB;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body, #app { height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.2; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.1rem; }
p { margin: 0; }
a { color: var(--brand); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.boot { display: grid; place-items: center; min-height: 100vh; color: var(--muted); }

/* ---------- Forms & buttons ---------- */
label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 11px; width: 100%; min-width: 0;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: -1px; border-color: transparent; }
input:disabled, textarea:disabled, select:disabled { opacity: .65; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }

.btn {
  font: 600 .9rem var(--body); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { background: var(--red); border-color: var(--red); color: var(--danger-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--surface-2); }
.btn.sm { padding: 6px 11px; font-size: .82rem; }
.btn:disabled { opacity: .55; cursor: wait; }
.icon-btn { background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; border-radius: 8px; display: inline-grid; place-items: center; }
.icon-btn svg, .nav-link svg { width: 19px; height: 19px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.badge.bad { background: var(--red-soft); color: var(--red); border-color: transparent; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; display: grid; gap: 18px; }
.auth-card .switch { text-align: center; color: var(--muted); font-size: .9rem; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand .logo { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-blue); color: #fff; display: grid; place-items: center; font: 700 .95rem var(--display); flex: none; overflow: hidden; }
/* Brand rule: light logo panel over dark areas */
.brand .logo.img { background: #F2F7FD; padding: 5px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.brand .logo.img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.side .brand .logo { width: 64px; height: 64px; }
.brand b { font-family: var(--display); font-size: 1.05rem; display: block; line-height: 1.1; }
.brand small { color: var(--muted); font-size: .78rem; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; height: 100%; }
.side { background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; padding: 20px 14px; gap: 22px; overflow-y: auto; }
.side .brand b { color: #fff; }
.side .brand small { color: var(--side-muted); }
.nav-group { display: grid; gap: 2px; }
.nav-group > span { font-size: .75rem; color: var(--side-muted); padding: 0 10px 6px; font-weight: 600; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 8px; color: var(--side-text); text-decoration: none; font-weight: 500; font-size: .92rem; }
.nav-link:hover { background: var(--side-active); color: #fff; }
.nav-link.active { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 var(--electric); }
.nav-link .count { margin-left: auto; background: var(--amber); color: #1a1205; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--side-active); }
.me b { color: #fff; font-size: .9rem; display: block; line-height: 1.2; }
.me small { color: var(--side-muted); font-size: .78rem; text-transform: capitalize; }
.me > div:not(.avatar) { min-width: 0; flex: 1; }
.me b, .me small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--side-active); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }

.main { min-width: 0; height: 100%; overflow-y: auto; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 16px 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
.top .date { margin-left: auto; color: var(--muted); font-size: .88rem; }
.top .menu { display: none; }
.view { padding: 26px 28px 60px; max-width: 1180px; display: grid; gap: 22px; }
.scrim { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 30; transform: translateX(-100%); transition: transform .22s ease; padding-top: calc(20px + env(safe-area-inset-top, 0px)); }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(5,10,15,.45); z-index: 20; }
  .top { padding: 12px 16px; }
  .top .menu { display: inline-grid; }
  .view { padding: 18px 16px 50px; }
  h1 { font-size: 1.55rem; }
}

/* ---------- Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; display: grid; gap: 16px; min-width: 0; align-content: start; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.panel-head p { margin-top: 3px; }
.form-panel { max-width: 720px; }
.note { background: var(--surface-2); border-left: 3px solid var(--brand); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: .92rem; }
.note.warn { border-left-color: var(--amber); }
.note.bad { border-left-color: var(--red); }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.loading { color: var(--muted); padding: 20px 0; }

/* ---------- Today: the shift clock ---------- */
.today { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; }
@media (max-width: 860px) { .today { grid-template-columns: 1fr; } }
.shift {
  background: var(--grad-navy); color: #fff; border-radius: var(--radius-lg); padding: 24px 26px; display: grid; gap: 18px;
  position: relative; overflow: hidden;
}
.shift .state { color: var(--side-muted); font-weight: 600; font-size: .88rem; display: flex; align-items: center; gap: 8px; }
.shift .state .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--side-muted); }
.shift.on .state .dot { background: #0099FA; box-shadow: 0 0 0 4px rgba(0,153,250,.25); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(0,153,250,.06); } }
.shift .timer { font: 700 clamp(2.8rem, 8vw, 4.4rem)/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.shift .timer.idle { color: var(--side-muted); }
.shift .sub { color: var(--side-text); font-size: .92rem; }
.shift-bar { position: relative; height: 12px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.shift-bar i { position: absolute; inset: 0 auto 0 0; background: var(--grad-blue); border-radius: 6px; }
.shift-bar i.over { background: linear-gradient(90deg, #0099FA, #E3A646); }
.shift-ticks { display: flex; justify-content: space-between; color: var(--side-muted); font-size: .72rem; font-variant-numeric: tabular-nums; margin-top: -10px; }
.shift .btn.primary { background: #0099FA; border-color: #0099FA; color: #001C34; }
.shift .btn { justify-self: start; padding: 11px 22px; font-size: .95rem; }

.side-stats { display: grid; gap: 18px; align-content: start; }
.stat { display: grid; gap: 4px; }
.stat .k { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat .v { font: 700 1.6rem/1.1 var(--display); font-variant-numeric: tabular-nums; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.kpi { background: var(--surface); padding: 16px 18px; display: grid; gap: 4px; }
.kpi .k { color: var(--muted); font-size: .84rem; font-weight: 600; }
.kpi .v { font: 700 1.55rem/1.15 var(--display); font-variant-numeric: tabular-nums; }
.kpi .s { color: var(--muted); font-size: .8rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: .8rem; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
td .clip { max-width: 360px; white-space: pre-wrap; }
td select, td input { padding: 6px 8px; font-size: .86rem; min-width: 120px; }
tr.new td { background: var(--amber-soft); }

/* ---------- Tabs & filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filters label { font-size: .8rem; }
.filters input, .filters select { width: auto; }
.tabs { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; }
.tabs button { font: 600 .86rem var(--body); border: 0; background: none; color: var(--muted); padding: 7px 14px; border-radius: 7px; cursor: pointer; }
.tabs button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

/* ---------- Review cards ---------- */
.review-list { display: grid; gap: 14px; }
.review { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 18px; display: grid; gap: 12px; }
.review .who { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.review .who b { font-size: 1rem; }
.review .body { white-space: pre-wrap; font-size: .93rem; }
.review .blockers { font-size: .9rem; }
.review textarea { min-height: 60px; }

/* ---------- Charts ---------- */
.chart-scroll { overflow-x: auto; }
.chart-scroll svg { display: block; width: 100%; height: auto; }
.chart-bar { fill: var(--brand-2); }
.chart-bar:hover { fill: var(--focus); }
.chart-grid { stroke: var(--line); }
.chart-label { fill: var(--muted); font-size: 10px; font-family: var(--body); }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.hbar .track { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.hbar .track i { display: block; height: 100%; background: var(--grad-blue); }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 500; font-size: .9rem; z-index: 50; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

.pending-screen { max-width: 460px; }

/* ---------- Brand touches ---------- */
/* The short blue dash from the brand kit, used once per screen above the page title */
.top h2 { position: relative; }
.top h2::before { content: ""; position: absolute; left: 0; top: -7px; width: 26px; height: 3px; border-radius: 2px; background: var(--brand-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); }

/* Login: brand panel + sign-in card */
.auth-split { min-height: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); }
.auth-brand { background: #FFFFFF; color: #052D50; padding: 56px 64px; display: flex; flex-direction: column; justify-content: center; gap: 36px; border-right: 1px solid var(--line); position: relative; overflow: hidden; }
.auth-brand::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(0,153,250,.14), rgba(0,153,250,0) 70%); }
.auth-brand .full-logo { width: min(100%, 600px); height: auto; display: block; }
.auth-brand .full-logo-fallback { font: 700 2.4rem/1 var(--display); letter-spacing: .02em; }
.auth-brand .dash { width: 32px; height: 4px; border-radius: 2px; background: #0099FA; }
.auth-brand h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; color: #052D50; max-width: 12ch; }
.auth-brand p { color: #5A6F86; max-width: 42ch; }
.auth-brand .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #0099FA; margin-left: 6px; vertical-align: baseline; }
.auth-side { display: grid; place-items: center; padding: 32px 20px; background: var(--paper); }
.auth-side .auth-card { box-shadow: 0 18px 50px -24px rgba(5,45,80,.35); }
.auth-card .mobile-brand { display: none; }
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-card .mobile-brand { display: flex; }
}

/* ---------- Day / Night toggle ---------- */
.theme-toggle {
  position: relative; width: 58px; height: 30px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); cursor: pointer; padding: 0; flex: none; color: var(--muted);
}
.theme-toggle .knob {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand-2); color: #fff; display: grid; place-items: center;
  transition: transform .35s cubic-bezier(.4,1.4,.5,1), background-color .35s;
}
.theme-toggle .knob svg { width: 14px; height: 14px; }
.theme-toggle.dark .knob { transform: translateX(28px); background: #052D50; box-shadow: 0 0 0 1px #12395C; }
.theme-toggle .hint { position: absolute; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; opacity: .55; }
.theme-toggle .hint.sun { left: 8px; } .theme-toggle .hint.moon { right: 8px; }
.auth-theme { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; z-index: 5; }
/* fallback smooth recolor when View Transitions are not supported */
html.theme-anim, html.theme-anim * { transition: background-color .4s ease, color .4s ease, border-color .4s ease, fill .4s ease !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Store sign: Closed / Open (from the website's opening sign) ---------- */
.store-sign { perspective: 400px; justify-self: start; }
.store-sign .face {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 8px;
  font: 700 .82rem var(--display); letter-spacing: .02em; transform-origin: 50% 0;
  background: rgba(255,255,255,.08); color: #CFDDEC; border: 1px solid rgba(255,255,255,.14);
}
.store-sign .face::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #86A0BC; }
.store-sign.open .face { background: #0099FA; color: #001C34; border-color: #0099FA; }
.store-sign.open .face::before { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.store-sign.flip .face { animation: sign-flip .9s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes sign-flip {
  0% { transform: rotateX(0); } 45% { transform: rotateX(90deg); }
  46% { transform: rotateX(-90deg); } 100% { transform: rotateX(0); }
}
.shift-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Boot screen uses the same sign */
.boot { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 100%; }
.boot .store-sign .face { background: var(--navy); color: #fff; border-color: var(--navy); font-size: .95rem; padding: 9px 18px 9px 15px; }
.boot .store-sign .face { animation: sign-swing 1.6s ease-in-out infinite; }
@keyframes sign-swing { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
.boot p { color: var(--muted); font-size: .9rem; }

/* ---------- Motion ---------- */
.view.enter { animation: view-in .35s ease-out both; }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chart-bar { transform-box: fill-box; transform-origin: 50% 100%; animation: bar-up .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bar-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.hbar .track i { transform-origin: 0 50%; animation: bar-right .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bar-right { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.shift-bar i { transition: width .8s cubic-bezier(.2,.8,.2,1); }
.btn { transition: transform .12s ease, filter .15s ease, border-color .15s ease, background-color .15s ease; }
.btn:active:not(:disabled) { transform: scale(.97); }
.auth-brand > * { animation: view-in .6s cubic-bezier(.2,.8,.2,1) both; }
.auth-brand > :nth-child(2) { animation-delay: .08s; } .auth-brand > :nth-child(3) { animation-delay: .16s; } .auth-brand > :nth-child(4) { animation-delay: .24s; }
.auth-side .auth-card { animation: view-in .5s .1s ease-out both; }
.review { transition: opacity .25s ease, transform .25s ease; }
.review.leaving { opacity: 0; transform: translateX(16px); }
.shift { align-content: space-between; }
.boot .store-sign { justify-self: center; }

/* ---------- Storefront loading screen (same idea as ecomsteward.com) ---------- */
.boot-screen {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 26px;
  background: radial-gradient(ellipse 70% 55% at 50% 58%, #0A45D6 0%, #0634A3 30%, #052D50 68%, #001C34 100%);
  color: #fff; transition: opacity .45s ease, visibility .45s;
}
.boot-screen.done { opacity: 0; visibility: hidden; }
.shop { --w: min(360px, 82vw); width: var(--w); display: grid; justify-items: center; }
.shop-sign { position: relative; display: grid; justify-items: center; margin-bottom: 14px; padding-top: 30px; }
.shop-sign .wire { position: absolute; top: 0; width: 2px; height: 32px; background: rgba(255,255,255,.55); }
.shop-sign .wire:first-child { left: 22%; } .shop-sign .wire:nth-child(2) { right: 22%; }
.board { background: #F2F7FD; border-radius: 10px; padding: 8px 18px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); transform-origin: 50% -30px; animation: board-swing 2.2s ease-in-out .2s both; }
.board img { height: 44px; width: auto; display: block; }
.board b { font: 700 1.2rem var(--display); color: #052D50; display: block; padding: 8px 6px; }
@keyframes board-swing { 0% { transform: rotate(-3deg); } 30% { transform: rotate(2deg); } 60% { transform: rotate(-1deg); } 100% { transform: rotate(0); } }

.awning { width: 100%; height: 46px; display: flex; position: relative; z-index: 2; filter: drop-shadow(0 6px 6px rgba(0,0,0,.25)); }
.awning i { flex: 1; background: #1E78F5; border-radius: 0 0 50% 50% / 0 0 40% 40%; }
.awning i:nth-child(even) { background: #F2F7FD; }
.awning i:first-child { border-top-left-radius: 6px; } .awning i:last-child { border-top-right-radius: 6px; }

.front { width: 92%; height: calc(var(--w) * .46); display: grid; grid-template-columns: 2.1fr 1fr; gap: 10px; padding: 12px 12px 0; background: #071B47; border: 2px solid #12348A; border-top: 0; }
.window, .door { position: relative; overflow: hidden; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #0B2563, #061640); border: 2px solid #1A47B8; border-bottom: 0; }
.window { display: grid; align-content: space-evenly; padding: 6px 10px; margin-bottom: 14px; border-bottom: 2px solid #1A47B8; border-radius: 4px; }
.shelf { display: flex; align-items: flex-end; gap: 6%; height: calc(var(--w) * .1); padding: 0 4px; border-bottom: 3px solid #9FC4FF; }
.shelf i { display: block; width: 14%; border-radius: 2px; }
.shelf .b1 { height: 70%; background: #0099FA; } .shelf .b2 { height: 50%; background: #E9F2FF; } .shelf .b3 { height: 85%; background: #2D6BFF; }
.shelf .b4 { height: 60%; background: #BFD7FF; } .shelf .b5 { height: 75%; background: #0058EC; }
.door-sign { position: absolute; top: 18%; left: 50%; translate: -50% 0; background: #0099FA; color: #001C34; font: 800 .7rem var(--display); letter-spacing: .08em; padding: 4px 9px; border-radius: 3px; transform-origin: 50% -14px; }
.door-sign::before { content: ""; position: absolute; left: 50%; top: -14px; width: 30px; height: 14px; translate: -50% 0; border: 1.5px solid rgba(255,255,255,.6); border-bottom: 0; clip-path: polygon(0 100%, 50% 0, 100% 100%); }
.door .handle { position: absolute; left: 12%; top: 55%; width: 4px; height: 22px; border-radius: 2px; background: #E9F2FF; }
.shutter { position: absolute; inset: 0; z-index: 2; background: repeating-linear-gradient(180deg, #E4EBF5 0 7px, #B9C6D8 7px 9px); animation: shutter-up 1s cubic-bezier(.7,0,.25,1) .55s both; }
@keyframes shutter-up { to { transform: translateY(-101%); } }
.door-sign { animation: sign-sway 1.4s ease-in-out 1.45s both; }
@keyframes sign-sway { 0% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 55% { transform: rotate(9deg); } 80% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }
.ground { width: 100%; height: 6px; border-radius: 3px; background: #1E78F5; box-shadow: 0 0 40px 8px rgba(30,120,245,.45); }

.boot-text { position: relative; height: 1.4em; width: 100%; text-align: center; font: 700 .95rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: #9FD3FF; margin: 0; }
.boot-text span { position: absolute; inset: 0; transition: opacity .3s; }
.boot-text .t1 { animation: fade-out .3s 1.5s both; }
.boot-text .t2 { animation: fade-in .3s 1.6s both; }
@keyframes fade-out { to { opacity: 0; } } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.boot-bar { width: 170px; height: 4px; border-radius: 2px; background: rgba(159,211,255,.2); overflow: hidden; }
.boot-bar i { display: block; height: 100%; background: #0099FA; border-radius: 2px; transform-origin: 0 50%; animation: bar-right 1.6s cubic-bezier(.4,0,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  .shutter { display: none; }
  .boot-text .t1 { opacity: 0; } .boot-text .t2 { opacity: 1; }
}
