:root {
  color-scheme: dark;
  --bg: #090a0f;
  --bg-elevated: #0f1119;
  --surface: #131620;
  --surface-2: #181c27;
  --surface-3: #202535;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f7f7fb;
  --muted: #a6adbd;
  --soft: #747c8d;
  --violet: #8b74ff;
  --violet-strong: #7458ff;
  --mint: #4de1c1;
  --orange: #ff9b63;
  --red: #ff6e79;
  --yellow: #ffd667;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --radius-lg: 24px;
  --radius-md: 17px;
  --radius-sm: 12px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 71% 2%, rgba(116, 88, 255, 0.13), transparent 30rem),
    radial-gradient(circle at 15% 96%, rgba(77, 225, 193, 0.07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(139, 116, 255, 0.58); outline-offset: 3px; }

.app-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: 76px minmax(calc(100vh - 76px), auto);
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 10, 15, 0.86);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px 13px 13px 5px;
  background: linear-gradient(135deg, var(--violet), #5e43eb 72%);
  box-shadow: 0 10px 26px rgba(116, 88, 255, 0.38);
  font-weight: 900;
  letter-spacing: -0.08em;
}
.brand-copy { display: grid; line-height: 1.08; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: -0.03em; }
.brand-copy small { margin-top: 4px; color: var(--muted); font-size: 0.74rem; letter-spacing: 0.02em; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.language-button, .avatar-button, .icon-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.language-button { width: 38px; height: 38px; border-radius: 12px; color: var(--muted); font-size: 0.78rem; font-weight: 800; }
.avatar-button { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(145deg, #ffd2b4, #e6966c); color: #32190e; font-size: 0.78rem; font-weight: 900; }
.agent-status { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 0.78rem; font-weight: 750; }
.status-dot, .live-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 214, 103, 0.12); }
.agent-status.ready .status-dot { background: var(--mint); box-shadow: 0 0 0 4px rgba(77, 225, 193, 0.12); }
.agent-status.fallback .status-dot { background: var(--violet); box-shadow: 0 0 0 4px rgba(139, 116, 255, 0.13); }

.side-nav {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  padding: 24px 14px 18px;
  border-right: 1px solid var(--line);
  background: rgba(11, 12, 18, 0.76);
}
.nav-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
  transition: 160ms ease;
}
.nav-item:hover { color: var(--text); background: rgba(255,255,255,0.035); }
.nav-item.active { border-color: rgba(139, 116, 255, 0.18); background: rgba(139, 116, 255, 0.11); color: #dcd6ff; }
.nav-item > span:first-child { font-size: 1.05rem; }
.nav-item > span:nth-child(2) { font-weight: 720; font-size: 0.89rem; }
.nav-count { min-width: 23px; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); text-align: center; font-size: 0.72rem; }
.nav-footnote { display: flex; align-items: flex-start; gap: 10px; margin-top: auto; padding: 15px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255,255,255,0.025); }
.demo-shield { display: grid; place-items: center; flex: 0 0 auto; width: 27px; height: 27px; border-radius: 50%; background: rgba(77, 225, 193, 0.13); color: var(--mint); font-weight: 900; }
.nav-footnote div { display: grid; }
.nav-footnote strong { font-size: 0.8rem; }
.nav-footnote small { color: var(--soft); font-size: 0.7rem; line-height: 1.35; }

.main-content { min-width: 0; padding: 42px clamp(24px, 4vw, 66px) 80px; }
.view { display: none; max-width: 1340px; margin: 0 auto; animation: view-in 220ms ease both; }
.view.active { display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading h1 { max-width: 760px; margin: 4px 0 8px; font-size: clamp(2rem, 4vw, 3.65rem); line-height: 0.98; letter-spacing: -0.055em; }
.heading-copy { max-width: 670px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.1rem); }
.eyebrow, .section-kicker { margin: 0; color: var(--violet); font-size: 0.75rem; font-weight: 850; letter-spacing: 0.115em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; }
.live-pulse { background: var(--mint); box-shadow: 0 0 0 5px rgba(77, 225, 193, 0.09); }

.surface-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(24, 28, 39, 0.91), rgba(16, 18, 27, 0.94)); box-shadow: var(--shadow); }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.72fr); gap: 28px; align-items: start; }
.workspace-column { display: grid; gap: 19px; min-width: 0; }
.preview-column { position: sticky; top: 104px; display: grid; justify-items: center; padding: 24px 18px 28px; border: 1px solid var(--line); border-radius: 30px; background: rgba(15, 17, 25, 0.74); overflow: hidden; }
.preview-column::before { position: absolute; content: ""; inset: auto -30% -35% -30%; height: 52%; background: radial-gradient(circle, rgba(139, 116, 255, 0.17), transparent 62%); pointer-events: none; }
.preview-header { width: 100%; display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.preview-header h2 { margin: 2px 0 0; font-size: 1.12rem; letter-spacing: -0.02em; }
.preview-sync { display: flex; align-items: center; gap: 6px; color: var(--mint); font-size: 0.76rem; font-weight: 800; }

.card-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.card-topline.compact { align-items: center; }
.card-topline h2, .settings-card h2, .checkout-card h2, .approval-card h2, .tool-list-card h2 { margin: 5px 0 0; font-size: clamp(1.22rem, 2vw, 1.58rem); line-height: 1.15; letter-spacing: -0.035em; }
.command-card { padding: 25px; background: linear-gradient(145deg, rgba(36, 30, 70, 0.92), rgba(17, 20, 30, 0.96) 65%); }
.tool-badge, .mini-status, .state-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid rgba(139, 116, 255, 0.23); border-radius: 999px; background: rgba(139, 116, 255, 0.09); color: #d3ccff; font-size: 0.72rem; font-weight: 800; }
.mini-status { border-color: rgba(77, 225, 193, 0.18); background: rgba(77, 225, 193, 0.08); color: var(--mint); }
.state-pill { min-width: 86px; justify-content: center; padding: 8px 14px; color: var(--muted); border-color: var(--line); background: var(--surface); }
.state-pill.live { border-color: rgba(77, 225, 193, 0.22); background: rgba(77, 225, 193, 0.09); color: var(--mint); }
.prompt-box { position: relative; margin: 20px 0 16px; padding: 17px 52px 17px 18px; border: 1px solid rgba(255,255,255,0.11); border-radius: var(--radius-md); background: rgba(7, 8, 13, 0.42); }
.prompt-box p { margin: 0; color: #e5e2f4; font-size: 0.94rem; line-height: 1.6; }
.icon-button { position: absolute; top: 11px; right: 11px; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); }
.command-actions { display: flex; align-items: center; gap: 15px; }
.command-actions p { max-width: 420px; margin: 0; color: var(--soft); font-size: 0.75rem; line-height: 1.4; }

.primary-button, .secondary-button, .accent-button, .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 16px;
  border-radius: 13px;
  font-weight: 820;
  font-size: 0.86rem;
  cursor: pointer;
  transition: 150ms ease;
}
.primary-button { border: 1px solid transparent; background: var(--violet-strong); color: white; box-shadow: 0 11px 28px rgba(116, 88, 255, 0.25); }
.primary-button:hover:not(:disabled) { transform: translateY(-1px); background: #826aff; }
.secondary-button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); }
.secondary-button:hover:not(:disabled) { border-color: rgba(255,255,255,0.28); color: var(--text); }
.accent-button { border: 1px solid transparent; background: var(--mint); color: #08271f; box-shadow: 0 10px 28px rgba(77, 225, 193, 0.16); }
.danger-button { border: 1px solid rgba(255,110,121,0.26); background: rgba(255,110,121,0.12); color: #ff9ea6; }
button:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.full-width { width: 100%; }

.inbox-card, .launch-card { padding: 23px; }
.capture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.capture-item { position: relative; min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; overflow: hidden; padding: 14px; border: 1px solid rgba(255,255,255,0.12); border-radius: 18px; color: #fff; text-align: left; cursor: pointer; }
.capture-item::before { position: absolute; content: ""; inset: 0; background: linear-gradient(180deg, transparent 25%, rgba(5,6,8,0.83)); }
.capture-item > * { position: relative; z-index: 1; }
.capture-ceramic, .capture-olive, .capture-linen {
  background-image: url("./assets/capture-triptych.png");
  background-size: 300% auto;
  background-repeat: no-repeat;
}
.capture-ceramic { background-position: left center; }
.capture-olive { background-position: center center; }
.capture-linen { background-position: right center; }
.capture-number { position: absolute; top: 12px; left: 12px; color: rgba(255,255,255,0.84); font-size: 0.72rem; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.42); }
.capture-glyph { display: none; }
.capture-label { font-weight: 850; font-size: 0.88rem; }
.capture-meta { color: rgba(255,255,255,0.64); font-size: 0.7rem; }
.capture-item.processed::after { position: absolute; content: "✓"; top: 11px; right: 11px; z-index: 2; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--mint); color: #092b22; font-weight: 900; }

.launch-meter-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.launch-meter-row h2 { margin: 0; font-size: 2.6rem; letter-spacing: -0.06em; }
.readiness-copy { display: grid; justify-items: end; text-align: right; }
.readiness-copy strong { font-size: 0.88rem; }
.readiness-copy span { color: var(--soft); font-size: 0.75rem; }
.progress-track { height: 8px; margin: 16px 0 20px; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--mint)); transition: width 500ms cubic-bezier(.2,.8,.2,1); }
.launch-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.launch-steps li { display: grid; grid-template-columns: 25px 1fr; gap: 8px; align-items: start; padding: 10px 8px; border-radius: 12px; color: var(--soft); }
.launch-steps li > span { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 0.68rem; font-weight: 850; }
.launch-steps li div { display: grid; }
.launch-steps strong { font-size: 0.71rem; line-height: 1.25; }
.launch-steps small { margin-top: 2px; font-size: 0.62rem; line-height: 1.25; }
.launch-steps li.complete { background: rgba(77,225,193,0.05); color: var(--text); }
.launch-steps li.complete > span { border-color: rgba(77,225,193,0.22); background: rgba(77,225,193,0.14); color: var(--mint); }

.phone-frame { position: relative; width: min(100%, 352px); padding: 9px; border: 1px solid rgba(255,255,255,0.24); border-radius: 39px; background: #05060a; box-shadow: 0 36px 75px rgba(0,0,0,0.48); }
.phone-frame::before { position: absolute; z-index: 2; content: ""; width: 82px; height: 21px; top: 8px; left: calc(50% - 41px); border-radius: 0 0 13px 13px; background: #05060a; }
.phone-status { position: absolute; z-index: 3; top: 11px; left: 25px; right: 23px; display: flex; justify-content: space-between; color: #191815; font-size: 0.62rem; font-weight: 850; }
.store-phone { min-height: 633px; overflow: hidden; border-radius: 31px; background: #fbf5eb; color: #191815; transition: background 250ms ease, color 250ms ease; }
.store-phone.theme-ink { background: #f1eee8; color: #111217; }
.store-phone.theme-mint { background: #edf8f2; color: #173026; }
.store-phone-header { display: grid; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 9px; padding: 35px 15px 13px; }
.store-monogram { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f0b378; color: #44220e; font-family: Georgia, serif; font-size: 0.72rem; font-weight: 900; }
.store-phone-header div:nth-child(2) { display: grid; }
.store-phone-header strong { font-family: Georgia, serif; font-size: 0.93rem; letter-spacing: -0.02em; }
.store-phone-header small { color: #807870; font-size: 0.56rem; }
.store-phone-header button { border: 0; background: transparent; color: inherit; font-size: 1.1rem; }
.phone-hero { margin: 0 11px; padding: 25px 19px; border-radius: 21px; background: linear-gradient(135deg, #c97849, #8d4030); color: #fff8ec; }
.theme-ink .phone-hero { background: linear-gradient(135deg, #292c32, #111216); }
.theme-mint .phone-hero { background: linear-gradient(135deg, #4d8a71, #285845); }
.phone-hero span { font-size: 0.53rem; font-weight: 850; letter-spacing: 0.14em; }
.phone-hero h3 { margin: 7px 0 15px; font-family: Georgia, serif; font-size: 1.55rem; line-height: 0.98; letter-spacing: -0.04em; }
.phone-hero button { min-height: 29px; padding: 0 11px; border: 0; border-radius: 999px; background: #fff8ec; color: #5d2b1c; font-size: 0.57rem; font-weight: 850; }
.phone-products { padding: 17px 12px 68px; }
.phone-section-title { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 10px; }
.phone-section-title strong { font-family: Georgia, serif; font-size: 0.92rem; }
.phone-section-title span { color: #8b837b; font-size: 0.55rem; }
.phone-empty { display: grid; place-items: center; min-height: 190px; padding: 25px; border: 1px dashed rgba(25,24,21,0.18); border-radius: 18px; text-align: center; }
.phone-empty > span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(201,120,73,0.11); color: #b45f37; font-size: 1.1rem; }
.phone-empty strong { margin-top: 8px; font-family: Georgia, serif; font-size: 0.85rem; }
.phone-empty small { color: #8b837b; font-size: 0.61rem; }
.phone-product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.phone-product-card { overflow: hidden; border-radius: 14px; background: rgba(255,255,255,0.72); box-shadow: 0 5px 16px rgba(42,24,11,0.07); }
.phone-product-card .product-art { position: relative; display: grid; place-items: center; aspect-ratio: 1.13; color: rgba(255,255,255,0.95); font-size: 1.45rem; }
.phone-product-card .product-art::after { content: none; }
.product-art.ceramic, .product-art.olive, .product-art.linen {
  background-image: url("./assets/capture-triptych.png");
  background-size: 300% auto;
  background-repeat: no-repeat;
  font-size: 0;
}
.product-art.ceramic { background-position: left center; }
.product-art.olive { background-position: center center; }
.product-art.linen { background-position: right center; }
.phone-product-copy { display: grid; padding: 8px; }
.phone-product-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: Georgia, serif; font-size: 0.67rem; }
.phone-product-copy span { margin-top: 2px; color: #7f756b; font-size: 0.58rem; }
.phone-tabbar { position: absolute; z-index: 2; left: 9px; right: 9px; bottom: 9px; display: grid; grid-template-columns: repeat(4,1fr); padding: 9px 5px 8px; border-radius: 0 0 30px 30px; border-top: 1px solid rgba(25,24,21,0.08); background: rgba(255,250,243,0.92); backdrop-filter: blur(10px); color: #8a8178; }
.phone-tabbar span { display: grid; justify-items: center; font-size: 0.9rem; }
.phone-tabbar span.active { color: #9c4d2f; }
.phone-tabbar small { font-size: 0.5rem; }

.metric-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; margin-bottom: 19px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--line); }
.metric-strip > div { display: grid; padding: 18px 20px; background: var(--surface); }
.metric-strip small { color: var(--soft); font-size: 0.75rem; }
.metric-strip strong { margin-top: 4px; font-size: 1.45rem; letter-spacing: -0.04em; }
.catalog-table { overflow: hidden; }
.catalog-empty { display: grid; place-items: center; min-height: 360px; padding: 40px; text-align: center; }
.catalog-empty .empty-icon { display: grid; place-items: center; width: 66px; height: 66px; border-radius: 22px; background: rgba(139,116,255,0.12); color: var(--violet); font-size: 1.6rem; }
.catalog-empty h2 { margin: 16px 0 4px; font-size: 1.35rem; }
.catalog-empty p { max-width: 420px; margin: 0; color: var(--muted); }
.catalog-rows { display: grid; }
.catalog-row { display: grid; grid-template-columns: minmax(220px,1.5fr) minmax(120px,.7fr) 100px 90px 110px; align-items: center; gap: 15px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.catalog-row:last-child { border-bottom: 0; }
.catalog-row.header { min-height: 48px; padding-block: 10px; background: rgba(255,255,255,0.024); color: var(--soft); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.catalog-product { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 12px; min-width: 0; }
.catalog-thumb { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; font-size: 1.3rem; }
.catalog-product div { display: grid; min-width: 0; }
.catalog-product strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.catalog-product small { overflow: hidden; color: var(--soft); font-size: 0.72rem; text-overflow: ellipsis; white-space: nowrap; }
.stock-chip { width: fit-content; padding: 4px 8px; border-radius: 999px; background: rgba(77,225,193,.1); color: var(--mint); font-size: .72rem; font-weight: 800; }
.stock-chip.low { background: rgba(255,214,103,.1); color: var(--yellow); }
.row-status { color: var(--muted); font-size: .78rem; font-weight: 760; }
.row-status.published { color: var(--mint); }

.store-settings-grid, .pos-grid, .activity-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,0.82fr); gap: 20px; }
.settings-card, .approval-card, .checkout-card, .timeline-card, .tool-list-card { padding: 25px; }
.theme-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 20px 0; }
.theme-options button { display: grid; gap: 6px; padding: 11px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elevated); text-align: left; cursor: pointer; }
.theme-options button[aria-checked="true"] { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(139,116,255,.1); }
.theme-swatch { height: 82px; border-radius: 11px; }
.theme-swatch.sunrise { background: linear-gradient(145deg,#f3d7bc,#bd6f45); }
.theme-swatch.ink { background: linear-gradient(145deg,#b7b7b3,#202229); }
.theme-swatch.mint { background: linear-gradient(145deg,#b9e5ce,#3d775f); }
.theme-options strong { font-size: .82rem; }
.theme-options small { color: var(--soft); font-size: .66rem; }
.approval-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 18px; background: rgba(77,225,193,.12); color: var(--mint); font-size: 1.35rem; font-weight: 900; }
.approval-card > p:not(.section-kicker) { color: var(--muted); }
.approval-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin: 20px 0; }
.approval-summary span { display: grid; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.approval-summary small { color: var(--soft); font-size: .66rem; }
.approval-summary strong { margin-top: 4px; font-size: .72rem; }

.check-row { display: grid; grid-template-columns: 22px 1fr; gap: 11px; align-items: center; margin: 13px 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--violet); }
.check-row span { display: grid; }
.check-row strong { font-size: .86rem; }
.check-row small { color: var(--soft); font-size: .7rem; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0; color: var(--muted); font-size: .83rem; font-weight: 760; }
.field-label input { width: 76px; min-height: 39px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-elevated); color: var(--text); }
.checkout-products { display: grid; gap: 8px; margin: 20px 0; }
.checkout-item { display: grid; grid-template-columns: 42px 1fr auto auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 13px; }
.checkout-item .catalog-thumb { width: 42px; height: 42px; border-radius: 11px; }
.checkout-item-copy { display: grid; }
.checkout-item-copy strong { font-size: .8rem; }
.checkout-item-copy small { color: var(--soft); font-size: .68rem; }
.quantity-control { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.quantity-control button { width: 28px; height: 28px; border: 0; background: var(--surface-3); cursor: pointer; }
.quantity-control span { min-width: 25px; text-align: center; font-size: .74rem; }
.checkout-price { min-width: 58px; text-align: right; font-size: .78rem; font-weight: 800; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.checkout-total span { color: var(--muted); }
.checkout-total strong { font-size: 1.7rem; letter-spacing: -.04em; }
.receipt { margin-top: 14px; padding: 15px; border: 1px solid rgba(77,225,193,.2); border-radius: 13px; background: rgba(77,225,193,.06); color: #b7f4e7; font-size: .78rem; }

.timeline { display: grid; }
.timeline-empty { min-height: 280px; display: grid; place-items: center; color: var(--muted); text-align: center; }
.timeline-item { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; padding: 0 0 22px; }
.timeline-item:not(:last-child)::before { position: absolute; content: ""; top: 38px; bottom: 4px; left: 18px; width: 1px; background: var(--line); }
.timeline-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: rgba(139,116,255,.11); color: var(--violet); font-weight: 900; }
.timeline-copy { display: grid; align-content: start; }
.timeline-copy strong { font-size: .88rem; }
.timeline-copy small { color: var(--muted); font-size: .73rem; }
.timeline-item time { color: var(--soft); font-size: .68rem; }
.tool-list { display: grid; gap: 8px; margin-top: 18px; }
.tool-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.tool-item > span:first-child { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; background: rgba(139,116,255,.1); color: var(--violet); font-size: .72rem; }
.tool-item div { display: grid; min-width: 0; }
.tool-item strong { overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.tool-item small { color: var(--soft); font-size: .64rem; }
.tool-kind { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }

.bottom-nav { display: none; }
.toast-region { position: fixed; z-index: 100; right: 22px; bottom: 22px; display: grid; gap: 8px; width: min(360px, calc(100vw - 32px)); }
.toast { display: grid; grid-template-columns: 31px 1fr; gap: 10px; align-items: center; padding: 13px; border: 1px solid var(--line-strong); border-radius: 15px; background: rgba(27,30,42,.96); box-shadow: var(--shadow); animation: toast-in 220ms ease both; }
.toast > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(77,225,193,.12); color: var(--mint); }
.toast div { display: grid; }
.toast strong { font-size: .82rem; }
.toast small { color: var(--muted); font-size: .7rem; }
@keyframes toast-in { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }

.app-dialog { width: min(560px, calc(100vw - 30px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 25px; background: var(--surface); color: var(--text); box-shadow: 0 40px 100px rgba(0,0,0,.66); }
.app-dialog::backdrop { background: rgba(3,4,7,.78); backdrop-filter: blur(6px); }
.app-dialog form { position: relative; padding: 30px; }
.app-dialog h2 { margin: 7px 0 8px; font-size: 1.65rem; letter-spacing: -.04em; }
.app-dialog p:not(.section-kicker) { color: var(--muted); }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; }
.dialog-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 17px; background: rgba(139,116,255,.13); color: var(--violet); font-size: 1.3rem; }
.dialog-icon.warning { background: rgba(255,155,99,.12); color: var(--orange); }
.review-list { display: grid; gap: 7px; margin: 20px 0; }
.review-item { display: flex; justify-content: space-between; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; font-size: .8rem; }
.review-item span { color: var(--muted); }
.confirmation-label { display: grid; gap: 7px; color: var(--muted); font-size: .75rem; font-weight: 750; }
.confirmation-label input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-elevated); color: var(--text); text-transform: uppercase; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

@media (max-width: 1120px) {
  .workspace-grid { grid-template-columns: minmax(0,1fr) 330px; }
  .launch-steps { grid-template-columns: repeat(3,1fr); }
  .launch-steps li:nth-child(n+4) { grid-column: span 1; }
  .catalog-row { grid-template-columns: minmax(220px,1.4fr) 110px 90px 100px; }
  .catalog-row > :nth-child(2) { display: none; }
}

@media (max-width: 880px) {
  .app-shell { display: block; padding-bottom: 72px; }
  .topbar { height: 66px; padding: 0 16px; }
  .brand-mark { width: 35px; height: 35px; }
  .brand-copy small { display: none; }
  .agent-status { padding: 0 10px; }
  .agent-status span:last-child { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-nav { display: none; }
  .main-content { padding: 28px 16px 48px; }
  .page-heading { align-items: flex-start; }
  .page-heading h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  .workspace-grid { grid-template-columns: 1fr; }
  .preview-column { position: relative; top: auto; order: -1; }
  .phone-frame { width: min(100%, 346px); }
  .store-settings-grid, .pos-grid, .activity-layout { grid-template-columns: 1fr; }
  .bottom-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5,1fr); min-height: 68px; padding: 7px max(7px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom)) max(7px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(11,12,18,.94); backdrop-filter: blur(18px); }
  .bottom-nav button { display: grid; place-items: center; gap: 1px; border: 0; border-radius: 11px; background: transparent; color: var(--soft); cursor: pointer; }
  .bottom-nav button.active { background: rgba(139,116,255,.11); color: #d7d1ff; }
  .bottom-nav button span { font-size: 1.05rem; }
  .bottom-nav button small { font-size: .62rem; }
}

@media (max-width: 600px) {
  .topbar-actions { gap: 7px; }
  .agent-status { min-width: 0; }
  .agent-status span:last-child { max-width: 76px; }
  .language-button { display: none; }
  .main-content { padding-top: 22px; }
  .page-heading { display: grid; gap: 15px; margin-bottom: 20px; }
  .page-heading .undo-button, .page-heading > .primary-button { width: 100%; }
  .workspace-grid { gap: 17px; }
  .preview-column { padding: 18px 12px 20px; border-radius: 24px; }
  .preview-header { padding: 0 4px; }
  .command-card, .inbox-card, .launch-card, .settings-card, .approval-card, .checkout-card, .timeline-card, .tool-list-card { padding: 18px; }
  .card-topline { display: grid; }
  .tool-badge { width: fit-content; }
  .command-actions { display: grid; }
  .command-actions .primary-button { width: 100%; }
  .capture-grid { grid-template-columns: 1fr; }
  .capture-item { min-height: 135px; }
  .capture-number { top: 12px; }
  .launch-meter-row { display: grid; gap: 5px; }
  .readiness-copy { justify-items: start; text-align: left; }
  .launch-steps { grid-template-columns: 1fr; }
  .launch-steps li { grid-template-columns: 30px 1fr; }
  .launch-steps strong { font-size: .78rem; }
  .launch-steps small { font-size: .68rem; }
  .metric-strip { grid-template-columns: repeat(2,1fr); }
  .catalog-row.header { display: none; }
  .catalog-row { grid-template-columns: 1fr auto; padding: 14px; }
  .catalog-row > :nth-child(2), .catalog-row > :nth-child(3) { display: none; }
  .catalog-row > :nth-child(4) { grid-column: 2; grid-row: 1; }
  .catalog-row > :nth-child(5) { grid-column: 2; grid-row: 2; }
  .theme-options { grid-template-columns: 1fr; }
  .theme-options button { grid-template-columns: 65px 1fr; align-items: center; }
  .theme-options button small { grid-column: 2; }
  .theme-swatch { grid-row: span 2; height: 55px; }
  .approval-summary { grid-template-columns: 1fr; }
  .checkout-item { grid-template-columns: 42px 1fr auto; }
  .checkout-price { grid-column: 2; }
  .quantity-control { grid-column: 3; grid-row: 1 / span 2; }
  .dialog-actions { display: grid; }
  .dialog-actions button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
