@import url("./creation.css");
@import url("./shop.css");
@import url("./landing.css");
@import url("./journey.css");
@import url("./inventory.css");

/* FastBot design system ---------------------------------------------------------------- */
@font-face {
  font-family: "IRANYekanXFaNum";
  src: url("../fonts/IRANYekanXFaNum-Regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IRANYekanXFaNum";
  src: url("../fonts/IRANYekanXFaNum-Bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #f7f8fa; --bg-elev: #ffffff; --bg-soft: #eef3f1; --bg-hover: #edf1f5;
  --border: #e1e6eb; --border-strong: #82918d;
  --text: #203b34; --text-2: #53645f; --text-3: #64716c;
  --brand: #1d5c48; --brand-2: #328565; --brand-soft: #e3f2e9; --brand-ink: #214f3b;
  --pastel-mint: #e3f3e9; --pastel-peach: #fff1e1; --pastel-blue: #e9f0ff;
  --pastel-lavender: #f0ebff; --lavender-ink: #6c51a3; --pastel-coral: #ffece7; --coral-ink: #a34736; --sky-ink: #3e5f9f;
  --ok: #39715e; --ok-soft: #dceee5; --ok-ink: #2d634e;
  --warn: #866732; --warn-soft: #efedd7; --warn-ink: #6d542d;
  --bad: #a64c61; --bad-soft: #f3dfe5; --bad-ink: #923c51;
  --info: #4265a3; --info-soft: #e9f0ff; --info-ink: #3d5a93;
  --side: #ffffff; --side-2: #f2f5f4; --side-text: #203b34; --side-muted: #64716c;
  --side-border: #e1e6eb; --side-active: #e3f2e9; --side-marker: #1d5c48;
  --radius: 22px; --radius-sm: 12px;
  --neo-dark: #e1e7e7; --neo-light: #fff;
  --shadow-sm: 0 3px 12px rgba(25,53,44,.045);
  --shadow: 0 8px 32px rgba(25,53,44,.055);
  --shadow-lg: 0 20px 60px rgba(25,53,44,.13);
  --shadow-inset: inset 0 1px 3px rgba(25,53,44,.035);
  --grad: linear-gradient(125deg,#e3f3e9,#f0ebff);
  --glass-bg: rgba(255,255,255,.9); --glass-edge: rgba(255,255,255,.85);
  --font-ui: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --tg-bg: #edf2ef; --tg-bubble: #ffffff; --tg-mine: #e3f2e9; --tg-btn: rgba(47, 94, 67, .86);
  color-scheme: light;

  --accent-lime: #d8ef96;
  --action-bg: #1d5c48;
  --action-text: #fff;
  --action-hover: #164a39;
  --danger-action-bg: #a43c53;
  --danger-action-text: #fff;
}
html[lang="fa"] {
  --font-ui: "IRANYekanXFaNum", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IRANYekanXFaNum", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
[data-theme="dark"] {
  --bg: #12231e; --bg-elev: #1b3029; --bg-soft: #233b32; --bg-hover: #2a453b;
  --border: #3b5842; --border-strong: #87a38b;
  --text: #f1f8ed; --text-2: #cbdec9; --text-3: #b6cbb6;
  --brand: #c9e99d; --brand-2: #d9efba; --brand-soft: #354c2d; --brand-ink: #d6edb2;
  --pastel-mint: #294735; --pastel-peach: #463b2e; --pastel-blue: #293c55;
  --pastel-lavender: #39314f; --lavender-ink: #d6c2ff; --pastel-coral: #49382f; --coral-ink: #ffb9a5; --sky-ink: #b9d1ff;
  --ok: #a4d2b9; --ok-soft: #30453d; --ok-ink: #b4dfc7; --warn: #dfbd8b; --warn-soft: #4b4133; --warn-ink: #edcca2;
  --bad: #e6a7b9; --bad-soft: #4d3542; --bad-ink: #efb5c5; --info: #b7cafa; --info-soft: #293c55; --info-ink: #c6d7ff;
  --side: #14291f; --side-2: #233d2e; --side-text: #f1f8ed; --side-muted: #cbdec9;
  --side-border: #496855; --side-active: #354c2d; --side-marker: #b4d9bd;
  --neo-dark: #0c1c14; --neo-light: #25412d;
  --grad: linear-gradient(125deg,#354c2d,#24463b);
  --glass-bg: rgba(27,52,39,.92); --glass-edge: rgba(199,231,174,.18);
  --tg-bg: #203d2c; --tg-bubble: #2a4935; --tg-mine: #365d42; --tg-btn: rgba(59, 97, 71, .9);
  color-scheme: dark;

  --accent-lime: #c9e99d;
  --action-bg: #c9e99d;
  --action-text: #173222;
  --action-hover: #d9efba;
  --danger-action-bg: #efb8c5;
  --danger-action-text: #421a25;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-ui);
  font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 750; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 15.5px; font-weight: 650; }
h4 { font-size: 13px; font-weight: 650; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.icon { flex-shrink: 0; display: block; }
::selection { background: var(--brand-soft); }

/* layout ------------------------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--side); color: var(--side-text); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; padding: 18px 14px; gap: 6px; overflow-y: auto;

  border-inline-end: 1px solid var(--border);
  box-shadow: 4px 0 20px color-mix(in srgb, var(--neo-dark) 50%, transparent);}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; color: var(--side-text); font-weight: 750; font-size: 17px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center;
  box-shadow: var(--shadow-sm); color: var(--brand-ink); }
.brand small { display: block; font-weight: 500; font-size: 11.5px; color: var(--side-muted); margin-top: -2px; }
.nav-label { font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--side-muted); padding: 14px 10px 6px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--side-text);
  font-weight: 550; cursor: pointer; border: 0; background: none; width: 100%; text-align: start; font: inherit; font-weight: 550; }
.nav-item:hover { background: var(--side-2); text-decoration: none; color: var(--side-text); }
.nav-item.active { background: var(--side-active); color: var(--brand-ink); }
.nav-item .dot { margin-inline-start: auto; }
.nav-store { font-weight: 500; font-size: 13.5px; }
.nav-store .avatar { width: 22px; height: 22px; font-size: 11px; border-radius: 6px;
  color: var(--brand-ink);
  box-shadow: var(--shadow-sm);}
.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--side-2); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 32px 0; }
.page { padding: 22px 32px 48px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { color: var(--text-2); margin-top: 4px; }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--text-3); font-size: 13px; }
.crumbs a { color: var(--text-3); }
.mobile-bar { display: none;
  color: var(--side-text);
  border-bottom: 1px solid var(--border);}

/* primitives --------------------------------------------------------------------------- */
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.muted { color: var(--text-3); }
.soft { color: var(--text-2); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.strong { font-weight: 650; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gap-s { gap: 6px; } .gap-l { gap: 18px; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mt-l { margin-top: 28px; } .mb { margin-bottom: 16px; }
.hr { height: 1px; background: var(--border); margin: 14px 0; border: 0; }

.card { background: var(--bg-elev); border: 1px solid color-mix(in srgb, var(--border) 55%, transparent); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 20px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-head h3 { flex: 1; }
.card-body { padding: 18px 20px; }
.card.hover { transition: transform .15s ease, box-shadow .15s ease, border-color .15s; cursor: pointer; }
.card.hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.section-title { display: flex; align-items: center; gap: 8px; margin: 26px 0 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 42px; padding: 0 16px;
  border-radius: 13px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); font: inherit;
  font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s, box-shadow .12s, transform .05s;
  box-shadow: var(--shadow-sm);}
.btn:hover { background: var(--bg-hover); border-color: var(--border-strong); text-decoration: none; }
.btn:active { transform: translateY(1px);
  box-shadow: var(--shadow-inset);}
.btn:disabled { opacity: .6; cursor: not-allowed;
  box-shadow: none;}
.btn.primary { background: var(--grad); border-color: color-mix(in srgb, var(--brand) 25%, var(--border)); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn.primary:hover { filter: none;
  background: var(--brand-soft);}
.btn.danger { color: var(--bad-ink); border-color: color-mix(in srgb, var(--bad) 35%, var(--border)); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.solid-danger { background: var(--bad); color: #fff; border-color: transparent; }
.btn.ghost { background: transparent; border-color: transparent;
  box-shadow: none;}
.btn.ghost:hover { background: var(--bg-hover); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { height: 44px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn.icon-only { width: 36px; padding: 0; }
.btn.sm.icon-only { width: 30px; }
.btn-group { display: inline-flex; gap: 8px; flex-wrap: wrap; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600;
  background: var(--bg-soft); color: var(--text-2); white-space: nowrap; line-height: 20px; }
.badge.ok { background: var(--ok-soft); color: var(--ok-ink); }
.badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
.badge.bad { background: var(--bad-soft); color: var(--bad-ink); }
.badge.info { background: var(--info-soft); color: var(--info-ink); }
.badge.brand { background: var(--brand-soft); color: var(--brand-ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.dot.ok { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.dot.warn { background: var(--warn); }
.dot.bad { background: var(--bad); }
.dot.live { animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); } 70% { box-shadow: 0 0 0 7px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }

.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 750; color: var(--brand-ink);
  background: var(--grad); flex-shrink: 0; font-size: 16px; }
.avatar.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }

/* forms ----------------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 6px; }
.field .hint { font-size: 12px; color: var(--text-3); }
.field .err { font-size: 12px; color: var(--bad-ink); }
.input, select.input, textarea.input {
  width: 100%; height: 44px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text);
  padding: 0 12px; font: inherit; outline: none; transition: border-color .12s, box-shadow .12s;

  box-shadow: var(--shadow-inset);}
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--brand); box-shadow: var(--shadow-inset), 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.input::placeholder { color: var(--text-3); }
.input.sm { height: 32px; font-size: 13px; padding: 0 9px; border-radius: 8px; }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--border-strong); background: var(--bg-soft);
  color: var(--text-2); font-weight: 600; font-size: 13px; }
.input-group .addon:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; border-inline-end: 0; }
.input-group .addon:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; border-inline-start: 0; }
/* Join controls by the group's direction, even when an English field detects Persian content. */
.input-group .input:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group .input:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }

.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 38px; height: 22px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background .15s; flex-shrink: 0;
  box-shadow: var(--shadow-inset);}
.switch .track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.switch input:checked + .track { background: var(--brand); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }

.toggle-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); }
.toggle-card .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex-shrink: 0; }
.toggle-card.on { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); background: color-mix(in srgb, var(--brand-soft) 45%, var(--bg-elev)); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 99px; border: 1px solid var(--border-strong);
  background: var(--bg-elev); color: var(--text-2); font-size: 13px; font-weight: 550; cursor: pointer; font-family: inherit;
  box-shadow: var(--shadow-sm);}
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink);
  box-shadow: var(--shadow-inset);}
.chip .x { opacity: .6; }

.segmented { display: inline-flex; padding: 3px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 11px; gap: 2px;
  box-shadow: var(--shadow-inset);}
.segmented button { border: 0; background: none; font: inherit; font-weight: 600; font-size: 13px; color: var(--text-2); padding: 6px 12px; border-radius: 8px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.segmented button.on { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.choice { border: 1.5px solid var(--border); border-radius: 12px; padding: 14px; background: var(--bg-elev); cursor: pointer; text-align: start; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-sm);}
.choice:hover { border-color: var(--border-strong); }
.choice.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 60%, var(--bg-elev)); box-shadow: var(--shadow-inset), 0 0 0 1px var(--brand); }
.choice .t { font-weight: 650; display: flex; gap: 8px; align-items: center; }
.choice .d { font-size: 12.5px; color: var(--text-2); }

/* lists, tables ---------------------------------------------------------------------- */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: start; font-size: 12px; font-weight: 650; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em;
  padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.table th:first-child { border-start-start-radius: var(--radius); } .table th:last-child { border-start-end-radius: var(--radius); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--bg-hover); }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; }
.list-item.click { cursor: pointer; } .list-item.click:hover { background: var(--bg-hover); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 20px; color: var(--text-2); }
.empty .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.empty h3 { color: var(--text); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; color: var(--text-2); font-weight: 600; border-bottom: 2px solid transparent;
  margin-bottom: -1px; cursor: pointer; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; font: inherit; font-weight: 600; }
.tab:hover { color: var(--text); text-decoration: none; }
.tab.on { color: var(--brand-ink); border-bottom-color: var(--brand); }
.tab .badge { padding: 0 7px; line-height: 18px; font-size: 11px; }

.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.kpi .k-label { color: var(--text-3); font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .k-value { font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.kpi .k-sub { font-size: 12.5px; color: var(--text-2); }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.bars .bar { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); min-height: 3px; position: relative; opacity: .9; }
.bars .bar:hover { opacity: 1; }
.bars .bar.zero { background: var(--bg-soft); }
.bars-x { display: flex; gap: 6px; margin-top: 6px; }
.bars-x span { flex: 1; text-align: center; font-size: 10.5px; color: var(--text-3); }

.progress { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; }
.progress > div { height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s ease; }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--text-3); } .kv dd { margin: 0; }

.code-block { background: #13271d; color: #dcf1e0; border-radius: 12px; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px;
  overflow: auto; max-height: 520px; white-space: pre; line-height: 1.55; }
.diff-line { font-family: var(--mono); font-size: 12px; padding: 1px 8px; border-radius: 5px; white-space: pre-wrap; word-break: break-all; }
.diff-line.add { background: var(--ok-soft); color: var(--ok-ink); }
.diff-line.del { background: var(--bad-soft); color: var(--bad-ink); }
.diff-line.mod { background: var(--warn-soft); color: var(--warn-ink); }

/* overlays -------------------------------------------------------------------------------- */
.overlay { position: fixed; inset: 0; background: rgba(18, 40, 28, .5); backdrop-filter: blur(3px); z-index: 50; display: flex; animation: fade .15s ease; }
.overlay.center { align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--bg-elev); border-radius: 18px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; animation: pop .18s ease; }
.modal.wide { width: min(820px, 100%); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h2 { flex: 1; font-size: 17px; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--bg-soft); border-radius: 0 0 18px 18px; }
.drawer { margin-inline-start: auto; height: 100%; width: min(560px, 100%); background: var(--bg-elev); box-shadow: var(--shadow-lg); overflow-y: auto; animation: slide .2s ease; display: flex; flex-direction: column; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes slide { from { transform: translateX(40px); opacity: .6; } }

.toasts { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; width: min(380px, calc(100vw - 40px)); }
.toast { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; gap: 10px; align-items: flex-start; animation: pop .18s ease; }
.toast.success { border-inline-start: 4px solid var(--ok); } .toast.error { border-inline-start: 4px solid var(--bad); } .toast.info { border-inline-start: 4px solid var(--brand); }
.toast .grow { white-space: pre-wrap; }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: spin .7s linear infinite; flex-shrink: 0; }
.spinner.lg { width: 28px; height: 28px; border-width: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--bg-soft), var(--bg-hover), var(--bg-soft)); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--info-soft); color: var(--info-ink); align-items: flex-start; }
.callout.warn { background: var(--warn-soft); color: var(--warn-ink); }
.callout.bad { background: var(--bad-soft); color: var(--bad-ink); }
.callout.ok { background: var(--ok-soft); color: var(--ok-ink); }
.callout.brand { background: var(--brand-soft); color: var(--brand-ink); }
.callout .grow > * + * { margin-top: 4px; }

/* hero / dashboard --------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 28px 30px; color: var(--text); background: var(--grad); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.12); }
.hero::before { content: ""; position: absolute; right: 140px; bottom: -120px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero > * { position: relative; z-index: 1; }
.hero p { color: var(--text-2); max-width: 640px; }
.hero .btn { border-color: rgba(255,255,255,.3); }
.hero .btn.white { background: #fff; color: var(--brand-ink); border-color: #fff; }
.store-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.store-card .meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); }
.env-pill { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); font-size: 12.5px; flex: 1; min-width: 0; }
.env-pill b { font-weight: 650; }
.feature-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.feature-tile { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--bg-elev); border: 1px solid var(--border); }
.feature-tile .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex-shrink: 0; }

/* stepper / wizard --------------------------------------------------------------------- */
.wizard { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.steps { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 2px; padding: 10px; }
.step { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: var(--text-2); font-weight: 600; border: 0; background: none; font: inherit; font-weight: 600; text-align: start; }
.step:hover { background: var(--bg-hover); }
.step .num { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; background: var(--bg-elev); }
.step.on { background: var(--brand-soft); color: var(--brand-ink); }
.step.on .num { border-color: var(--brand); background: var(--brand); color: #fff; }
.step.done .num { border-color: var(--ok); background: var(--ok); color: #fff; }
.step.err .num { border-color: var(--bad); background: var(--bad); color: #fff; }
.wizard-body { display: flex; flex-direction: column; gap: 16px; }
.wizard-nav { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; padding: 14px 18px; background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); z-index: 5; }
.item-card { border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); }
.item-card + .item-card { margin-top: 10px; }
.item-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.item-head:hover { background: var(--bg-hover); border-radius: 12px; }
.item-body { padding: 4px 14px 16px; border-top: 1px solid var(--border); }
.thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); display: grid; place-items: center; color: var(--text-3); flex-shrink: 0; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.sub-list { display: flex; flex-direction: column; gap: 8px; }
.sub-row { display: grid; gap: 8px; align-items: center; }
.template-card { padding: 18px; display: flex; flex-direction: column; gap: 8px; text-align: start; cursor: pointer; border: 1.5px solid var(--border); background: var(--bg-elev); border-radius: 14px; font: inherit; color: inherit; }
.template-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.template-card.on { border-color: var(--brand); background: color-mix(in srgb, var(--brand-soft) 55%, var(--bg-elev)); }
.template-card .emoji { font-size: 28px; }
.schedule { display: grid; grid-template-columns: 70px 1fr 90px; gap: 8px 12px; align-items: center; }

/* job / agent ------------------------------------------------------------------------- */
.agent-workspace { grid-template-columns: minmax(0,1fr) 300px; align-items: start; }
.agent-workspace > * { min-width: 0; }
.agent-context { position: sticky; top: 16px; }
.business-project .page-head h1 { overflow-wrap: anywhere; }
.business-project .page-head .avatar { flex-shrink: 0; }
.project-identity { flex: 1 1 320px; }
.job-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  background: color-mix(in srgb, var(--brand-soft) 55%, var(--bg-elev)); margin-bottom: 18px; }
.job-banner.waiting { border-color: color-mix(in srgb, var(--warn) 55%, var(--border)); background: color-mix(in srgb, var(--warn-soft) 70%, var(--bg-elev)); }
.job-banner.failed { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); background: color-mix(in srgb, var(--bad-soft) 60%, var(--bg-elev)); }
.stages { display: flex; gap: 6px; flex-wrap: wrap; }
.stage { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-3); padding: 3px 9px; border-radius: 99px; background: var(--bg-soft); }
.stage.on { color: var(--brand-ink); background: var(--brand-soft); }
.stage.done { color: var(--ok-ink); background: var(--ok-soft); }
.feed { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 10px; max-width: 860px; }
.msg .who { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--grad); color: var(--brand-ink); }
.msg.owner { margin-inline-start: auto; flex-direction: row-reverse; }
.msg.owner .who { background: var(--bg-soft); color: var(--text-2); }
.bubble { padding: 10px 14px; border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--border); white-space: pre-wrap; word-break: break-word; }
.msg.owner .bubble { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--border); }
.msg.system { color: var(--text-3); font-size: 12.5px; align-items: center; gap: 8px; }
.msg.system .line { flex: 1; height: 1px; background: var(--border); }
.msg.error .bubble { background: var(--bad-soft); color: var(--bad-ink); border-color: transparent; }
.prompt-card { border: 1.5px solid color-mix(in srgb, var(--warn) 55%, var(--border)); background: var(--bg-elev); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.q-list { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.q { padding: 12px 14px; border-radius: 12px; background: var(--bg-soft); }
.q .q-text { font-weight: 600; }
.composer { display: flex; gap: 10px; align-items: flex-end; padding: 12px; border: 1px solid var(--border); background: var(--bg-elev); border-radius: 16px; box-shadow: var(--shadow); }
.composer textarea { border: 0; box-shadow: none !important; min-height: 44px; max-height: 200px; resize: none; padding: 10px 6px; }
.suggestions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* playground (Telegram look) ------------------------------------------------------------ */
.pg { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.phone { border-radius: 34px; background: #14261c; padding: 10px; box-shadow: var(--shadow-lg); position: sticky; top: 18px; }
.phone-screen { border-radius: 26px; overflow: hidden; height: min(760px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--tg-bg);
  background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18) 0, transparent 45%), radial-gradient(circle at 80% 70%, rgba(255,255,255,.12) 0, transparent 40%); }
.tg-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--bg-elev); border-bottom: 1px solid var(--border); }
.tg-head .avatar { width: 36px; height: 36px; border-radius: 50%; font-size: 15px; }
.tg-feed { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; }
.tg-msg { max-width: 86%; display: flex; flex-direction: column; gap: 4px; }
.tg-msg.bot { align-self: flex-start; }
.tg-msg.me { align-self: flex-end; }
.tg-bubble { background: var(--tg-bubble); border-radius: 14px 14px 14px 4px; padding: 7px 10px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word;
  box-shadow: 0 1px 1px rgba(0,0,0,.12); color: var(--text); }
.tg-msg.me .tg-bubble { background: var(--tg-mine); border-radius: 14px 14px 4px 14px; }
.tg-bubble img { display: block; width: calc(100% + 20px); margin: -7px -10px 6px; border-radius: 14px 14px 0 0; max-height: 260px; object-fit: cover; }
.tg-bubble img:only-child { margin-bottom: -7px; border-radius: 14px; }
.tg-bubble a { color: var(--brand); }
.tg-bubble code { background: rgba(0,0,0,.06); padding: 0 4px; border-radius: 4px; }
.tg-bubble .spoiler { background: rgba(0,0,0,.2); border-radius: 3px; }
.tg-kb { display: flex; flex-direction: column; gap: 4px; }
.tg-kb .r { display: flex; gap: 4px; }
.tg-kb button, .tg-kb a { flex: 1; min-width: 0; border: 0; border-radius: 8px; background: var(--tg-btn); color: #fff; font: inherit; font-size: 13px; font-weight: 550;
  padding: 7px 8px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; text-decoration: none; }
.tg-kb button:hover, .tg-kb a:hover { filter: brightness(1.12); text-decoration: none; }
.tg-invoice { background: var(--tg-bubble); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 1px rgba(0,0,0,.12); }
.tg-reply { padding: 6px; display: grid; gap: 5px; background: color-mix(in srgb, var(--bg-elev) 85%, transparent); border-top: 1px solid var(--border); }
.tg-reply .r { display: flex; gap: 5px; }
.tg-reply button { flex: 1; min-width: 0; border: 0; border-radius: 9px; padding: 9px 6px; background: var(--bg-elev); color: var(--text); font: inherit; font-size: 13px;
  font-weight: 550; box-shadow: 0 1px 1px rgba(0,0,0,.15); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-reply button:hover { background: var(--bg-hover); }
.tg-input { display: flex; gap: 6px; align-items: center; padding: 8px; background: var(--bg-elev); border-top: 1px solid var(--border); }
.tg-input input { flex: 1; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); padding: 8px 6px; }
.tg-toast { position: absolute; left: 50%; top: 70px; transform: translateX(-50%); background: rgba(20,20,30,.88); color: #fff; padding: 9px 14px; border-radius: 10px;
  font-size: 13px; max-width: 80%; text-align: center; z-index: 3; animation: pop .15s ease; }
.tg-alert { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.35); z-index: 4; }
.tg-alert > div { background: var(--bg-elev); color: var(--text); border-radius: 14px; padding: 18px; width: 78%; box-shadow: var(--shadow-lg); }
.phone-wrap { position: relative; }

/* Persian direction; shared dimensions, colors and centered controls stay unchanged. */
html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] select { text-align: start; }
html[dir="rtl"] .input-group .input { border-radius: 0; }
html[dir="rtl"] .input-group .input:first-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
html[dir="rtl"] .input-group .input:last-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
html[dir="rtl"] .icon.directional { transform: scaleX(-1); }
html[dir="rtl"] .switch input:checked + .track::after { transform: translateX(-16px); }
html[dir="rtl"] .drawer { animation-name: slide-rtl; }
@keyframes slide-rtl { from { transform: translateX(-40px); opacity: .6; } }
html[dir="rtl"] .tg-bubble { border-radius: 14px 14px 4px 14px; }
html[dir="rtl"] .tg-msg.me .tg-bubble { border-radius: 14px 14px 14px 4px; }

/* responsive ---------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg { grid-template-columns: 1fr; }
  .phone { position: static; max-width: 440px; margin: 0 auto; }
  .agent-workspace { grid-template-columns: minmax(0,1fr); }
  .agent-context { position: static; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; inset-inline-start: 0; width: 270px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  html[dir="rtl"] .sidebar { transform: translateX(100%); }
  html[dir="rtl"] .sidebar.open { transform: none; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--side); color: var(--side-text); position: sticky; top: 0; z-index: 40; }
  .page { padding: 18px 16px 40px; }
  .topbar { padding: 14px 16px 0; }
  .wizard { grid-template-columns: 1fr; }
  .steps { position: static; flex-direction: row; overflow-x: auto; }
  .step span.label-text { display: none; }
  .g2, .g3, .form-grid { grid-template-columns: 1fr; }
}

/* Business workspace: Persian-first, task-oriented navigation and agent-assisted intake. */
body { line-height: 1.8; }
h1,h2,h3,h4 { line-height: 1.6; letter-spacing: 0; }
h4,.nav-label { text-transform: none; letter-spacing: 0; }
.shell { grid-template-columns: 236px minmax(0,1fr); }
.page { padding: 32px 36px 56px; margin-inline: auto; max-width: 1440px; }
.sidebar { padding: 24px 14px; }
.brand-mark { box-shadow: var(--shadow-sm); background: var(--grad); }
.brand small { font-size: 10px; margin-top: 2px; }
.nav-item { padding: 10px 12px; }
.nav-item.active { background: var(--side-active); box-shadow: inset -3px 0 var(--side-marker); }
.btn.primary { box-shadow: var(--shadow-sm); }
.btn:focus-visible,a:focus-visible,button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.tabs { flex-wrap: wrap; gap: 4px; border: 1px solid var(--border); padding: 6px; background: var(--bg-elev); border-radius: 14px; margin-bottom: 24px; }
.tab { border: 0; border-radius: 9px; margin: 0; padding: 8px 11px; font-size: 12px; }
.tab.on { background: var(--brand-soft); color: var(--brand-ink); box-shadow: none; }
.eyebrow { color: var(--brand-ink); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.business-welcome { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 36px; border: 1px solid var(--border); background: var(--bg-elev); border-radius: 24px; }
.business-welcome h1 { font-size: clamp(26px,2.4vw,36px); }
.business-welcome p { max-width: 560px; color: var(--text-2); margin-top: 14px; }
.welcome-preview { padding: 24px; background: var(--bg-soft); border-radius: 18px; border: 1px solid var(--border); }
.welcome-note { background: var(--bg-elev); padding: 16px; margin: 20px 0; border-radius: 15px 15px 5px 15px; max-width: 95%; }
.welcome-note.owner { background: var(--brand-soft); margin-inline-start: 30px; border-radius: 15px 15px 15px 5px; }
.assistant-mark { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); flex-shrink: 0; }
.business-template { color: var(--text); }
.business-template:hover { text-decoration: none; }
.template-emoji { font-size: 32px; display: inline-block; margin-bottom: 12px; }
.template-link { display: flex; gap: 8px; align-items: center; color: var(--brand-ink); margin-top: 22px; font-size: 13px; }
.business-store { padding: 24px; display: flex; flex-direction: column; gap: 22px; }
.store-health { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; border-block: 1px solid var(--border); padding-block: 18px; }
.store-health b { display: block; font-size: 13px; margin-top: 5px; }
.store-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.attention-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px; background: var(--warn-soft); border-radius: 14px; }
.business-split,.capability-workspace { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(260px,1fr); gap: 24px; align-items: start; }
.next-action { display: flex; gap: 18px; align-items: center; padding: 24px; border: 1px solid color-mix(in srgb,var(--brand) 30%,var(--border)); background: var(--bg-elev); border-radius: 18px; }
.quick-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.quick-actions > a { display: flex; gap: 12px; align-items: center; padding: 16px; background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); border-radius: 14px; }
.quick-actions > a:hover { text-decoration: none; border-color: var(--brand); }
.quick-actions > a > .icon:first-child { color: var(--brand-ink); }
.quick-actions > a > div { flex: 1; min-width: 0; }
.quick-actions b { font-size: 12px; }.quick-actions p { font-size: 10.5px; }
.creation-page { max-width: 1250px; }
.creation-heading { max-width: 750px; margin: 12px 0 32px; }
.creation-heading h1 { font-size: 32px; margin-bottom: 12px; }
.creation-heading p { color: var(--text-2); }
.creation-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.creation-method { padding: 32px; border-radius: 22px; background: var(--bg-elev); border: 1px solid var(--border); color: var(--text); display: flex; flex-direction: column; align-items: start; gap: 16px; transition: border-color .15s,box-shadow .15s; }
.creation-method:hover { text-decoration: none; border-color: var(--brand); box-shadow: var(--shadow); }
.creation-method p { color: var(--text-2); flex: 1; }
.method-icon { width: 62px; height: 62px; display: grid; place-items: center; color: var(--brand-ink); background: var(--brand-soft); border-radius: 18px; }
.method-cta { display: flex; align-items: center; gap: 10px; color: var(--brand-ink); font-weight: 700; padding-top: 12px; }
.creation-assurance { display: flex; gap: 16px; align-items: center; margin-top: 28px; padding: 22px; background: var(--bg-soft); border-radius: 16px; }
.creation-assurance > .icon { color: var(--brand-ink); }
.creation-assurance p { color: var(--text-2); font-size: 12px; margin-top: 6px; }
.prompt-intake { max-width: 900px; display: flex; flex-direction: column; gap: 24px; }
.prompt-examples { padding: 18px; background: var(--bg-soft); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; font-size: 12px; }
.prompt-examples button { border: 0; color: var(--text-2); background: var(--bg-elev); padding: 12px; border-radius: 10px; text-align: start; font: inherit; cursor: pointer; }
.prompt-examples button:hover { color: var(--brand-ink); }
.form-workspace { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 24px; align-items: start; }
.form-progress { position: sticky; top: 24px; background: var(--bg-elev); border: 1px solid var(--border); padding: 18px; border-radius: 16px; }
.form-step { display: flex; align-items: center; width: 100%; text-align: start; gap: 12px; border: 0; padding: 12px 8px; background: transparent; font: inherit; font-size: 12px; color: var(--text-2); border-radius: 10px; cursor: pointer; }
.form-step span { display: grid; place-items: center; height: 28px; width: 28px; flex-shrink: 0; border-radius: 9px; border: 1px solid var(--border); }
.form-step.active { color: var(--brand-ink); background: var(--brand-soft); font-weight: 700; }.form-step.active span { background: var(--brand); color: var(--bg-elev); border-color: var(--brand); }
.form-step.complete span { color: var(--ok-ink); background: var(--ok-soft); }
.form-intake { min-width: 0; }.form-intake h2 { margin-bottom: 10px; }.form-intake .field { margin-bottom: 0; }
.form-item { border: 1px solid var(--border); background: var(--bg-soft); padding: 20px; border-radius: 14px; min-width: 0; }.form-item .form-item { background: var(--bg-elev); }
.item-count { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-elev); color: var(--brand-ink); font-weight: 700; }
.form-navigation { display: flex; gap: 12px; align-items: center; border-top: 1px solid var(--border); padding-top: 20px; }
.template-options { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.template-option { display: flex; gap: 8px; align-items: center; padding: 10px 12px; font: inherit; font-size: 12px; border: 1px solid var(--border); color: var(--text); background: var(--bg-elev); border-radius: 10px; cursor: pointer; }
.template-option.selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.submission-review { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); background: var(--bg-soft); border-radius: 14px; padding: 20px; gap: 20px; }.submission-review span { display: block; color: var(--text-3); font-size: 12px; }.submission-review b { display: block; margin-top: 6px; }
.capability-card,.request-progress { border: 1px solid var(--border); border-radius: 14px; padding: 18px; }.capability-card .chip { cursor: default; }
.record-row { display: flex; width: 100%; gap: 16px; align-items: center; padding: 20px; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid var(--border); font: inherit; text-align: start; cursor: pointer; }.record-row:last-child { border-bottom: 0; }.record-row:hover { background: var(--bg-soft); }.record-row .muted { overflow-wrap: anywhere; }
.record-number { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); border-radius: 12px; font-weight: 700; }
.record-details { display: flex; flex-direction: column; gap: 16px; }.record-details > div { background: var(--bg-soft); padding: 12px 16px; border-radius: 10px; overflow-wrap: anywhere; }
.readiness-standard { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 20px; background: var(--bg-soft); border-radius: 14px; }.readiness-standard > div { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.test-result { border: 0; border-bottom: 1px solid var(--border); width: 100%; display: flex; align-items: center; gap: 12px; padding: 17px 20px; font: inherit; text-align: start; color: var(--text); background: transparent; cursor: pointer; }.test-result:hover { background: var(--bg-soft); }.test-pass { color: var(--ok-ink); }.test-fail { color: var(--bad-ink); }
.version-number { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
@media (max-width:1200px) { .quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }.business-split,.capability-workspace { grid-template-columns: minmax(0,1fr); }.business-welcome { gap: 24px; padding: 28px; }.form-workspace { grid-template-columns: 180px minmax(0,1fr); }.form-progress { padding: 12px; } }
@media (max-width:900px) { .shell { grid-template-columns: minmax(0,1fr); }.page { padding: 22px 20px 40px; }.business-welcome { grid-template-columns: 1fr; }.form-workspace { grid-template-columns: minmax(0,1fr); }.form-progress { position: static; display: flex; flex-wrap: wrap; gap: 6px; }.form-progress > p,.form-progress > .small { display: none; }.form-step { width: auto; flex: 1 0 auto; padding: 8px; }.form-intake .form-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.creation-method { padding: 24px; } }
@media (max-width:600px) {
  .page { padding: 18px 14px 36px; }.page-head { gap: 14px; }.business-welcome { padding: 22px; gap: 24px; }.welcome-preview { padding: 16px; }.business-store { padding: 18px; }.business-split { gap: 16px; }
  .creation-options,.quick-actions,.submission-review,.form-intake .form-grid,.readiness-standard { grid-template-columns: minmax(0,1fr); }.creation-heading h1 { font-size: 26px; }.creation-method { gap: 12px; padding: 22px; }.creation-assurance { align-items: start; padding: 18px; }.form-progress { padding: 10px; }.form-step { flex: 1 1 45%; }.form-intake.card.pad { padding: 18px; }.form-item { padding: 14px; }.form-navigation { flex-wrap: wrap; }.form-navigation .btn { white-space: normal; height: auto; min-height: 38px; padding-block: 8px; }
  .next-action { flex-wrap: wrap; padding: 18px; gap: 12px; }.next-action > .btn { margin-inline-start: 56px; }.store-health { gap: 8px; }.store-health b { font-size: 11px; }.store-actions .btn { flex-grow: 1; }.tabs { flex-wrap: nowrap; border-radius: 12px; }.tab { flex-shrink: 0; }.test-result,.record-row { padding: 14px; flex-wrap: wrap; }.record-row .grow { flex-basis: calc(100% - 60px); }.composer textarea { min-height: 70px; }.readiness-standard { padding: 15px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* One navigation surface and a focused, resumable business form. */
.shell { grid-template-columns: 264px minmax(0,1fr); }
.workspace-sidebar { padding: 20px 14px 14px; gap: 18px; scrollbar-width: thin; scrollbar-color: var(--side-2) var(--side); }
.sidebar-brand { display: flex; align-items: center; gap: 8px; }
.sidebar-brand .brand { flex: 1; padding: 0 8px 8px; font-size: 19px; }
.sidebar-brand .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
.sidebar-close { display: none; border: 0; padding: 8px; background: var(--side-2); color: var(--side-text); border-radius: 8px; cursor: pointer; }
.sidebar-global { display: grid; gap: 4px; }
.workspace-picker { padding: 14px 10px; border-block: 1px solid var(--side-2); }
.workspace-picker label { display: block; font-size: 11px; color: var(--side-muted); margin-bottom: 7px; }
.workspace-picker select { width: 100%; min-width: 0; padding: 9px 8px; border: 1px solid var(--side-border); border-radius: 9px; color: var(--side-text); background: var(--side-2); font: inherit; font-size: 12px; text-overflow: ellipsis;
  box-shadow: var(--shadow-inset);}
.workspace-picker p { color: var(--side-muted); margin-top: 10px; }
.workspace-current { display: flex; gap: 10px; align-items: center; font-size: 12px; margin-top: 12px; }
.workspace-current .avatar { width: 30px; height: 30px; background: var(--grad); color: var(--brand-ink); }
.project-navigation { display: grid; gap: 18px; }
.nav-group h2 { font-size: 10.5px; font-weight: 400; color: var(--side-muted); padding-inline: 12px; margin-bottom: 5px; }
.workspace-sidebar .nav-item { font-size: 12px; padding: 9px 12px; }
.workspace-sidebar .nav-item.active { background: var(--side-active); box-shadow: none; position: relative; }
.workspace-sidebar .nav-item.active::before { content: ''; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px; width: 3px; background: var(--side-marker); border-radius: 3px; }
.nav-notice { font-size: 9px; padding: 1px 6px; background: var(--side-border); border-radius: 5px; }
.workspace-sidebar .sidebar-footer { padding-top: 14px; border-top: 1px solid var(--side-2); }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(19,36,23,.5); border: 0; cursor: pointer; }
.mobile-bar .btn { color: var(--side-text); }.mobile-bar .btn:hover { background: var(--side-2); }
.form-page-heading p { color: var(--text-2); margin-top: 8px; }
.wizard-workspace { display: grid; gap: 18px; min-width: 0; }
.wizard-status { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.wizard-status > div { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.wizard-stage { color: var(--text-2); font-size: 12px; font-weight: 700; }
.draft-status { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 10.5px; }
.draft-status .icon { color: var(--ok-ink); }
.wizard-steps { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; }
.wizard-step { display: flex; flex-direction: column; align-items: start; gap: 12px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text-2); border-radius: 13px; padding: 14px 12px; text-align: start; font: inherit; cursor: pointer; min-width: 0; }
.wizard-step:hover { border-color: var(--border-strong); }
.wizard-step.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.wizard-step-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--bg-soft); }
.wizard-step.active .wizard-step-icon { background: var(--brand-ink); color: #fff; }
.wizard-step b { display: block; font-size: 11.5px; }
.wizard-step small { display: block; font-size: 9px; color: var(--text-3); margin-top: 4px; }
.wizard-step:disabled { opacity: .6; cursor: wait; }
.draft-restored { display: flex; align-items: center; gap: 8px; }
.redesigned-form { overflow: visible; }
.form-fields { border: 0; padding: 28px; margin: 0; min-width: 0; }
.form-fields > .form-grid { gap: 22px; }
.form-section { min-width: 0; }
.section-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.section-heading p { font-size: 12px; color: var(--text-2); margin-top: 3px; }
.section-icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); border-radius: 12px; flex-shrink: 0; }
.editor-list,.category-list { display: grid; gap: 16px; min-width: 0; }
.editor-item { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 20px; min-width: 0; }
.editor-item-head { display: flex; gap: 10px; align-items: center; margin: -20px -20px 20px; padding: 12px 20px; background: var(--bg-soft); border-bottom: 1px solid var(--border); border-radius: 14px 14px 0 0; }
.editor-item-head b { font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.item-count { background: var(--bg-elev); font-size: 12px; flex-shrink: 0; }
.editor-empty { padding: 28px; border: 1px dashed var(--border-strong); border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-3); text-align: center; font-size: 12px; }
.add-item { justify-self: start; }
.editor-details { background: var(--bg-soft); border-radius: 10px; padding: 14px; min-width: 0; }
.editor-details summary,.photo-url summary { font-size: 12px; cursor: pointer; color: var(--text-2); }
.category-editor { border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; gap: 16px; align-items: start; background: var(--bg-soft); }
.category-editor .form-grid { flex: 1; min-width: 0; }
.category-manager > .btn { margin-top: 14px; }
.product-editor { display: grid; grid-template-columns: 210px minmax(0,1fr); gap: 24px; align-items: start; }
.product-list { display: grid; gap: 18px; }
.product-navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); }
.product-navigation > select { flex-basis: 100%; }
.product-navigation b { font-size: 14px; }
.product-actions { display: flex; gap: 20px; align-items: center; }
.product-actions p { max-width: 540px; }
.logo-picker { display: flex; gap: 18px; align-items: center; padding: 18px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 8px; }
.logo-preview { width: 92px; height: 92px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex-shrink: 0; background: var(--bg-elev); color: var(--text-3); border: 1px solid var(--border); }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-picker .grow { min-width: 0; }.logo-picker b { font-size: 13px; }.logo-picker p { overflow-wrap: anywhere; }
.product-list .editor-details { margin-top: 22px; }
.product-photos { min-width: 0; display: grid; gap: 12px; }
.photo-drop { border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--bg-soft); padding: 12px; display: flex; flex-direction: column; gap: 12px; align-items: stretch; transition: background .15s; }
.photo-drop.dragging { background: var(--brand-soft); border-color: var(--brand); }
.photo-cover { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
.photo-placeholder { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--text-3); font-size: 11px; }
.photo-placeholder b { color: var(--text-2); font-size: 13px; }
.file-input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; clip-path: inset(50%); overflow: hidden; }
.photo-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.photo-tile { position: relative; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--bg-soft); min-width: 0; }
.photo-tile.main-photo { border-color: var(--brand); }
.photo-tile > img { width: 100%; aspect-ratio: 1.2; object-fit: cover; display: block; }
.photo-remove { position: absolute; top: 5px; inset-inline-end: 5px; background: rgba(15,25,40,.85); color: #fff; border: 0; border-radius: 6px; padding: 4px; cursor: pointer; }
.photo-primary { display: block; width: 100%; border: 0; background: var(--bg-elev); color: var(--text-2); padding: 6px 2px; font: inherit; font-size: 9px; cursor: pointer; }
.main-photo .photo-primary { background: var(--brand-soft); color: var(--brand-ink); }
.photo-url { min-width: 0; }.photo-url summary { font-size: 10px; }.photo-url .input { margin-top: 8px; font-size: 11px; }
.template-picker { background: var(--bg-soft); border-radius: 12px; padding: 16px; display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.template-picker > div { flex: 1; }.template-picker b { font-size: 12px; }.template-picker select { width: auto; max-width: 50%; min-width: 0; }
.form-issues { background: var(--bad-soft); padding: 18px; border-radius: 12px; color: var(--bad-ink); font-size: 12px; }
.form-issues button { display: flex; gap: 8px; align-items: center; border: 0; background: transparent; color: inherit; font: inherit; text-align: start; cursor: pointer; padding: 6px 0; }
.redesigned-form .form-navigation { margin: 0; padding: 18px 28px; background: var(--bg-elev); border-radius: 0 0 16px 16px; position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -6px 16px -14px rgba(24,48,87,.3); }
.form-connection { padding: 14px 28px; display: flex; align-items: center; gap: 10px; font-size: 11px; border-top: 1px solid var(--border); background: var(--warn-soft); border-radius: 0 0 16px 16px; }
.submission-review { padding: 0; gap: 0; border: 1px solid var(--border); overflow: hidden; background: var(--bg-elev); }
.submission-review > button { background: transparent; border: 0; border-bottom: 1px solid var(--border); padding: 18px; font: inherit; text-align: start; color: var(--text); cursor: pointer; min-width: 0; }
.submission-review > button:hover { background: var(--bg-soft); }.submission-review b { font-size: 13px; overflow-wrap: anywhere; }.submission-review .review-edit { display: flex; align-items: center; gap: 6px; color: var(--brand-ink); font-size: 10px; margin-top: 10px; }
.catalog-actions { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }.catalog-actions h2 { font-size: 18px; }.catalog-actions p { color: var(--text-2); font-size: 12px; margin-top: 5px; }
.catalog-actions > div { flex: 1; }
@media (max-width:1200px) {
  .wizard-step small { display: none; }.wizard-step { padding: 12px 9px; }.product-editor { grid-template-columns: 180px minmax(0,1fr); gap: 18px; }
}
@media (max-width:900px) {
  .shell { grid-template-columns: minmax(0,1fr); }.workspace-sidebar { width: 280px; max-width: 88vw; height: 100dvh; }.sidebar-close { display: flex; }.wizard-steps { grid-template-columns: repeat(3,minmax(0,1fr)); }.wizard-step { flex-direction: row; align-items: center; }.wizard-step b { font-size: 11px; }.wizard-step-icon { width: 28px; height: 28px; }.form-fields { padding: 22px; }
}
@media (max-width:600px) {
  .product-navigation { padding: 12px; gap: 12px; }.product-navigation > .grow { flex-basis: 100%; }.product-navigation > .row { width: 100%; }.product-navigation .btn { flex: 1; }
  .product-actions { flex-direction: column; align-items: stretch; gap: 12px; }.product-actions .btn { width: 100%; }.product-actions p { font-size: 11px; }
  .logo-picker { gap: 12px; align-items: start; padding: 12px; }.logo-preview { width: 60px; height: 60px; }.logo-picker .row { flex-wrap: wrap; }.logo-picker .btn { font-size: 10px; }
  .form-page-heading { align-items: start; }.form-page-heading h1 { font-size: 22px; }.wizard-status { align-items: start; }.wizard-status > div { gap: 5px; flex-direction: column; align-items: start; }.draft-status { font-size: 9px; }.wizard-workspace { gap: 14px; }.wizard-steps { gap: 6px; }.wizard-step { padding: 10px 8px; gap: 7px; }.wizard-step b { font-size: 10px; }.wizard-step-icon { display: none; }.form-fields { padding: 18px 14px; }.section-heading { flex-wrap: wrap; gap: 10px; }.section-heading .grow { flex-basis: calc(100% - 54px); }.section-heading > .badge { margin-inline-start: 50px; }.editor-item { padding: 14px; }.editor-item-head { margin: -14px -14px 16px; padding: 10px 14px; }.category-editor { flex-direction: column; padding: 14px; gap: 8px; }.category-editor .form-grid { width: 100%; }.product-editor { grid-template-columns: minmax(0,1fr); }.product-photos { max-width: 100%; }.photo-drop { flex-direction: row; align-items: center; }.photo-cover { width: 110px; flex-shrink: 0; }.photo-placeholder { min-height: 110px; flex: 1; gap: 6px; }.photo-placeholder .icon { width: 24px; height: 24px; }.photo-placeholder span { font-size: 9px; }.photo-drop .btn { font-size: 11px; padding-inline: 10px; }.photo-gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }.template-picker { flex-direction: column; align-items: stretch; gap: 12px; }.template-picker select { width: 100%; max-width: 100%; }.redesigned-form .form-navigation { padding: 14px; gap: 10px; flex-wrap: nowrap; }.form-navigation > .grow { display: none; }.form-navigation > .btn { flex: 1; font-size: 11px; }.form-connection { padding: 14px; flex-wrap: wrap; }.form-connection .grow { flex-basis: calc(100% - 30px); }.form-connection > a { margin-inline-start: 26px; }.submission-review { grid-template-columns: minmax(0,1fr); }.catalog-actions { flex-direction: column; align-items: stretch; }.catalog-actions .btn { white-space: normal; }
}

/* Store owner workspace: one next action, a readable journey and everyday tasks. */
.shop-dashboard,.store-home { max-width:1260px; }
.shop-welcome { padding:clamp(24px,5vw,60px); border:1px solid var(--border); border-radius:24px; background:var(--bg-elev); }
.shop-welcome h1 { font-size:clamp(28px,4vw,46px); line-height:1.65; margin:14px 0; }
.shop-welcome>p { max-width:650px; color:var(--text-2); line-height:1.9; }
.shop-welcome .creation-options { margin-top:32px; }
.shop-welcome-note { display:flex; align-items:center; gap:10px; margin-top:24px; color:var(--text-2); }
.shop-card { padding:24px; display:flex; flex-direction:column; gap:20px; }
.shop-card h2 a { color:var(--text); }
.shop-card-metrics { display:flex; flex-wrap:wrap; gap:24px; padding:16px 0; border-block:1px solid var(--border); color:var(--text-2); font-size:13px; }
.shop-card-metrics b { color:var(--text); margin-inline-end:6px; }
.shop-card-next { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:auto; }
.shop-card-next>span { min-width:0; line-height:1.8; }
.shop-card-next .btn { flex-shrink:0; }
.store-search { display:flex; align-items:center; gap:8px; max-width:300px; }
.shop-next-action { padding:24px; background:var(--brand-soft); border:1px solid var(--border); border-radius:18px; display:flex; gap:18px; align-items:center; }
.shop-next-action h2 { margin:6px 0; }
.shop-next-action p { color:var(--text-2); max-width:680px; line-height:1.8; overflow-wrap:anywhere; }
.store-home-grid { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:24px; }
.owner-tasks { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.owner-tasks>a { display:flex; align-items:center; gap:12px; color:var(--text); background:var(--bg-elev); padding:18px 14px; border:1px solid var(--border); border-radius:14px; text-decoration:none; }
.owner-tasks>a:hover { border-color:var(--brand); box-shadow:var(--shadow-sm); }
.owner-tasks>a>span:nth-child(2) { flex:1; min-width:0; }
.owner-tasks small { display:block; color:var(--text-2); margin-top:5px; font-size:11px; }
.task-icon { display:inline-grid; place-items:center; background:var(--bg-soft); color:var(--brand); width:40px; height:40px; border-radius:12px; flex-shrink:0; }
.setup-empty { padding:36px; display:flex; align-items:center; flex-direction:column; gap:16px; text-align:center; }
.setup-empty p { max-width:440px; color:var(--text-2); line-height:1.9; }
.store-journey { padding:22px; border:1px solid var(--border); border-radius:16px; background:var(--bg-elev); }
.journey-track { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; margin-top:22px; }
.journey-step { display:flex; flex-direction:column; align-items:flex-start; gap:9px; color:var(--text-2); font-size:12px; }
.journey-number { display:grid; place-items:center; width:30px; height:30px; border:1px solid var(--border-strong); border-radius:50%; font-weight:700; background:var(--bg-soft); }
.journey-step.done .journey-number { color:var(--ok-ink); background:var(--ok-soft); border-color:var(--ok); }
.journey-step.running .journey-number,.journey-step.waiting .journey-number { color:var(--brand-ink); background:var(--brand-soft); border-color:var(--brand); }
.journey-step.failed .journey-number { color:var(--bad-ink); background:var(--bad-soft); border-color:var(--bad); }
.journey-step small { color:var(--warn-ink); }
.launch-checks { display:grid; gap:12px; }
.launch-check { display:flex; gap:10px; align-items:center; color:var(--text-2); font-size:13px; }
.launch-check>span:first-child { display:grid; place-items:center; width:24px; height:24px; background:var(--bg-soft); border-radius:50%; }
.launch-check.complete>span:first-child { background:var(--ok-soft); color:var(--ok-ink); }
.shop-card .launch-checks { grid-template-columns:1fr 1fr; gap:10px; }
.plan-sections { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.plan-sections details { border:1px solid var(--border); border-radius:10px; }
.plan-sections summary { padding:13px; cursor:pointer; display:flex; gap:9px; align-items:center; font-size:13px; }
.plan-sections summary>.icon:last-child { margin-inline-start:auto; }
.plan-sections details p { padding:0 13px 13px; line-height:1.9; }
.owner-check-list { padding-inline-start:20px; font-size:12px; line-height:1.9; color:var(--text-2); margin-bottom:0; }
.owner-check-list li+li { margin-top:9px; }
.metric-link { color:var(--text); text-decoration:none!important; }
.workspace-status { display:flex; gap:8px; align-items:center; margin-top:12px; font-size:12px; color:var(--side-muted); }
.nav-advanced { margin-top:16px; border-top:1px solid rgba(255,255,255,.09); padding-top:14px; }
.nav-advanced summary { cursor:pointer; display:flex; justify-content:space-between; color:var(--side-muted); padding:8px 10px; font-size:12px; }
.agent-context .journey-track { grid-template-columns:1fr; }
.agent-context .journey-step { display:grid; grid-template-columns:30px 1fr; align-items:center; }
.agent-context .journey-step small { grid-column:2; }
.agent-context .plan-sections { grid-template-columns:1fr; }
@media(max-width:1150px) {
  .owner-tasks { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .store-home-grid { grid-template-columns:minmax(0,1fr); }
  .store-home-grid>aside { display:grid; grid-template-columns:1fr 1fr; align-items:start; }
  .journey-track { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
}
@media(max-width:600px) {
  .shop-card { padding:18px; }
  .shop-card-next,.shop-next-action { flex-wrap:wrap; }
  .shop-card-next .btn,.shop-next-action>.btn { width:100%; }
  .shop-next-action>.grow { flex-basis:calc(100% - 65px); }
  .shop-card .launch-checks,.plan-sections,.store-home-grid>aside { grid-template-columns:1fr; }
  .owner-tasks>a { padding:13px 10px; gap:9px; }
  .owner-tasks>a>.icon:last-child { display:none; }
  .owner-tasks small { line-height:1.7; }
  .journey-track { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .store-journey { padding:18px; }
}
.home-order { display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:16px 20px; color:var(--text); text-decoration:none!important; }
.home-order+.home-order { border-top:1px solid var(--border); }
.home-order:hover { background:var(--bg-hover); }
.home-order small { display:block; color:var(--text-2); margin-top:5px; }

/* Hosted owner experience */
.field-label {
  display:flex;
  align-items:center;
  gap:7px;
  position:relative;
}

.field-label label {
  margin:0;
}

.field-help {
  position:static;
  display:inline-flex;
}

.info-trigger {
  display:grid;
  place-items:center;
  border:0;
  background:transparent;
  color:var(--text-3);
  padding:3px;
  cursor:pointer;
  border-radius:50%;
}

.info-trigger:hover,.info-trigger[aria-expanded=true] {
  color:var(--brand);
  background:var(--brand-soft);
}

.info-popover {
  position:absolute;
  z-index:30;
  inset-inline-start:0;
  top:calc(100% + 8px);
  width:min(280px,100%);
  padding:13px 15px;
  border:1px solid var(--border);
  background:var(--bg-elev);
  border-radius:12px;
  box-shadow:var(--shadow-lg);
  color:var(--text-2);
  font-size:12px;
  line-height:1.9;
  white-space:normal;
}

.product-catalog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}

.product-index {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  max-height:330px;
  overflow:auto;
  padding:2px;
  margin-bottom:20px;
}

.product-index-row {
  width:100%;
  display:flex;
  gap:10px;
  align-items:center;
  text-align:start;
  padding:12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--bg-elev);
  color:var(--text);
  cursor:pointer;
}

.product-index-row.selected {
  background:var(--brand-soft);
  border-color:var(--brand);
}

.product-index-row small {
  display:block;
  color:var(--text-2);
  font-size:11px;
  margin-top:4px;
}

.product-index-image {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex-shrink:0;
  border-radius:9px;
  background:var(--bg-soft);
  overflow:hidden;
}

.product-index-image img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.product-index-row b {
  overflow-wrap:anywhere;
}

.connection-layout {
  display:grid;
  grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);
  gap:24px;
}

.connection-success {
  display:flex;
  gap:12px;
  align-items:center;
  background:var(--ok-soft);
  padding:16px;
  border-radius:12px;
  color:var(--ok-ink);
}

.telegram-tutorial {
  list-style:none;
  counter-reset:tutorial;
  padding:0;
  display:grid;
  gap:24px;
}

.telegram-tutorial li {
  counter-increment:tutorial;
  padding-inline-start:40px;
  position:relative;
}

.telegram-tutorial li:before {
  content:counter(tutorial);
  position:absolute;
  inset-inline-start:0;
  top:0;
  background:var(--brand-soft);
  color:var(--brand);
  width:28px;
  height:28px;
  border-radius:9px;
  display:grid;
  place-items:center;
  font-weight:bold;
}

.telegram-tutorial b {
  font-size:13px;
}

.telegram-tutorial p {
  color:var(--text-2);
  font-size:12px;
  line-height:1.9;
  margin-top:5px;
}

.claim-command {
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:12px;
  background:var(--bg-soft);
  border-radius:10px;
}

.claim-command code {
  overflow-wrap:anywhere;
}

.identity-loading {
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:20px;
  color:var(--brand);
}

/* Business form layout and shared compact breakpoints. */
.business-form-design { margin-top:32px; padding:24px; background:var(--bg-elev); border:1px solid var(--border); border-radius:20px; }
.business-form-section { margin-top:28px; }
.business-form-section h3 { margin-bottom:16px; }
.business-fields { margin-top:24px; }
@media(max-width:1200px) { .connection-layout { grid-template-columns:minmax(0,1fr); } }
@media(max-width:800px) { .product-index { grid-template-columns:minmax(0,1fr); } }
@media(max-width:540px) {
  .product-catalog-heading { align-items:flex-start; }
  .product-catalog-heading .btn { font-size:11px; white-space:nowrap; }
  .claim-command { flex-wrap:wrap; }
  .connection-layout { gap:16px; }
}

/* Premium discovery is a separate, visible creation path. */
.premium-badge { display:inline-flex; align-items:center; border:1px solid var(--warn); border-radius:999px; padding:4px 12px; background:var(--warn-soft); color:var(--warn-ink); font-size:12px; font-weight:700; letter-spacing:.04em; }
.premium-coming-soon { gap:7px; letter-spacing:0; white-space:normal; }
.premium-coming-soon > span { padding-inline-start:7px; border-inline-start:1px solid color-mix(in srgb,var(--warn-ink) 30%,transparent); font-size:.92em; font-weight:600; }
.premium-method { background:var(--grad); border-color:var(--border-strong); }
.premium-method .method-icon { color:var(--warn-ink); background:var(--warn-soft); }
.custom-mode-intro { display:flex; flex-direction:column; align-items:start; gap:16px; }
.custom-mode-intro h2 { font-size:25px; line-height:1.6; }
.custom-mode-intro p { color:var(--text-2); line-height:1.9; }
.custom-development-steps { display:flex; flex-wrap:wrap; list-style-position:inside; gap:10px; padding:0; margin:0; counter-reset:discovery; }
.custom-development-steps li { background:var(--bg); border:1px solid var(--border); border-radius:12px; padding:10px 14px; font-size:12px; }
.custom-intake .callout { width:100%; }
@media(min-width:1150px) { .creation-options { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; } .creation-method { padding:26px; } }
@media(max-width:640px) { .custom-intake.card.pad { padding:20px; } .custom-mode-intro h2 { font-size:21px; } .custom-development-steps { gap:8px; } }
[data-theme="dark"] .premium-method { background:var(--bg-elev); }

/* Ready questionnaires: named records and accessible multiple selections. */
.business-records { display: grid; gap: 16px; min-width: 0; }
.business-record-summary { list-style: none; counter-reset: business-record; margin: 0; padding: 0; display: grid; gap: 8px; }
.business-record-summary li { counter-increment: business-record; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 4px 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-soft); overflow-wrap: anywhere; }
.business-record-summary li::before { content: counter(business-record); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--bg-elev); color: var(--brand-ink); font-weight: 700; grid-row: 1 / 3; }
.business-record-summary li span { grid-column: 2; font-size: 12px; color: var(--text-2); }
.multiple-options { display: flex; flex-wrap: wrap; gap: 8px; }
.multiple-option { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elev); cursor: pointer; font-weight: 400; font-size: 12px; }
.multiple-option.selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.multiple-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); flex-shrink: 0; }
.multiple-option:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
/* My Bots: a pastel workbench with recessed filters and raised bot cards. */
.mybots-page { max-width: 1320px; }
.mybots-hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr;
  min-height: 286px; padding: 36px 40px; margin-bottom: 28px; border-radius: 28px;
  background: var(--grad); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.mybots-eyebrow { display: flex; align-items: center; gap: 9px; color: var(--brand-ink); font-size: 12px; font-weight: 700; }
.mybots-eyebrow > span { width: 7px; height: 7px; background: var(--brand); border-radius: 50%; }
.mybots-hero h1 { font-size: 34px; letter-spacing: -.6px; margin: 15px 0; }
.mybots-hero h1 > span { display: block; font-size: 22px; font-weight: 400; color: var(--text-2); margin-top: 5px; }
.mybots-hero p { max-width: 455px; color: var(--text-2); line-height: 1.95; margin-bottom: 24px; }
.mybots-hero-art { position: relative; display: grid; place-items: center; min-height: 220px; }
.mybots-hero-art .orbit { position: absolute; border: 1px solid var(--border-strong); border-radius: 50%; width: 205px; height: 205px; opacity: .45; }
.mybots-hero-art .orbit-two { width: 290px; height: 290px; }
.mybots-art-core { width: 108px; height: 108px; display: grid; place-items: center; background: var(--bg); color: var(--brand); border-radius: 32px; transform: rotate(-8deg); box-shadow: var(--shadow); border: 1px solid var(--border); }
.mybots-art-core svg { transform: rotate(8deg); }
.mybots-art-chip { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 15px; padding: 12px 17px; font-size: 12px; color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.art-chip-one { top: 24px; right: 10px; transform: rotate(5deg); }
.art-chip-two { bottom: 20px; left: 10px; transform: rotate(-5deg); background: var(--pastel-mint); color: var(--ok-ink); }
.mybots-art-dot { position: absolute; top: 5px; left: 90px; width: 15px; height: 15px; border-radius: 5px; background: var(--pastel-peach); transform: rotate(25deg); }
.mybots-overview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-bottom: 32px; }
.mybots-stat { display: flex; align-items: center; gap: 17px; padding: 23px; background: var(--bg); border: 1px solid color-mix(in srgb,var(--border) 55%,transparent); border-radius: 22px; box-shadow: var(--shadow-sm); }
.mybots-stat > span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: var(--pastel-blue); color: var(--info-ink); box-shadow: var(--shadow-inset); }
.mybots-stat.ok > span { background: var(--ok-soft); color: var(--ok-ink); }
.mybots-stat.warn > span { background: var(--warn-soft); color: var(--warn-ink); }
.mybots-stat b { font-size: 27px; line-height: 1.2; }
.mybots-stat p { font-size: 12px; color: var(--text-2); margin-top: 5px; }
.mybots-library-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.mybots-library-head h2 { font-size: 20px; }
.mybots-library-head h2 > span { font-size: 12px; background: var(--brand-soft); border-radius: 8px; padding: 3px 8px; margin-inline-start: 7px; color: var(--brand-ink); }
.mybots-search { display: flex; align-items: center; gap: 10px; padding: 11px 15px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 14px; width: 310px; color: var(--text-2); box-shadow: var(--shadow-inset); }
.mybots-search:focus-within { outline: 3px solid color-mix(in srgb,var(--brand) 35%,transparent); outline-offset: 2px; border-color: var(--brand); }
.mybots-search input { border: 0; outline: none; background: none; min-width: 0; width: 100%; color: var(--text); font: inherit; font-size: 13px; }
.mybots-search input::placeholder { color: var(--text-3); }
.mybots-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.mybots-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: var(--bg); border-radius: 16px; box-shadow: var(--shadow-inset); }
.mybots-filters button { border: 1px solid transparent; background: transparent; padding: 8px 13px; min-height: 40px; border-radius: 11px; color: var(--text-2); font: inherit; font-size: 12px; cursor: pointer; }
.mybots-filters button:hover { color: var(--brand-ink); background: var(--brand-soft); }
.mybots-filters button.selected { background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; border-color: color-mix(in srgb,var(--brand) 30%,var(--border)); box-shadow: var(--shadow-sm); }
.mybots-sort { padding: 10px; border: 1px solid var(--border-strong); border-radius: 11px; min-height: 42px; background: var(--bg); color: var(--text-2); font: inherit; font-size: 12px; box-shadow: var(--shadow-inset); }
.mybots-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.mybot-card { min-width: 0; padding: 23px; border: 1px solid color-mix(in srgb,var(--border) 55%,transparent); border-radius: 24px; background: var(--bg); box-shadow: var(--shadow); transition: box-shadow .2s,border-color .2s; }
.mybot-card:hover { border-color: var(--border-strong); }
.mybot-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.mybot-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--brand-soft); color: var(--brand-ink); font-size: 18px; font-weight: 700; box-shadow: var(--shadow-sm); }
.mybot-card:nth-child(3n+2) .mybot-avatar { background: var(--pastel-mint); color: var(--ok-ink); }
.mybot-card:nth-child(3n+3) .mybot-avatar { background: var(--pastel-peach); color: var(--warn-ink); }
.mybot-title { display: block; font-size: 19px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; color: var(--text); }
.mybot-type { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 12px; margin-top: 6px; }
.mybot-type .premium-badge { font-size: 10px; padding: 1px 5px; }
.mybot-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--text-2); margin-top: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--border); }
.mybot-stats b { font-size: 15px; color: var(--text); margin-inline-end: 3px; }
.mybot-progress { padding: 17px 0; }
.mybot-progress .row { justify-content: space-between; color: var(--text-2); font-size: 12px; }
.mybot-progress-track { height: 8px; border-radius: 8px; background: var(--bg-soft); margin-top: 10px; overflow: hidden; box-shadow: var(--shadow-inset); }
.mybot-progress-track span { display: block; height: 100%; background: var(--brand-2); border-radius: 8px; }
.mybot-card.live .mybot-progress-track span { background: var(--ok); }
.mybot-next { display: flex; gap: 10px; flex-wrap: wrap; }
.mybot-next p { flex: 0 0 100%; font-size: 12px; color: var(--text-2); line-height: 1.9; min-height: 42px; margin-bottom: 4px; }
.mybot-next .btn { flex: 1; justify-content: space-between; font-size: 12px; }
.mybot-chat { display: grid; place-items: center; width: 44px; min-height: 42px; border: 1px solid var(--border); border-radius: 13px; color: var(--brand); box-shadow: var(--shadow-sm); }
.mybot-chat:hover { background: var(--brand-soft); }
.mybot-add { border: 1px dashed var(--border-strong); border-radius: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 310px; background: var(--bg); color: var(--brand-ink); gap: 14px; padding: 25px; text-align: center; box-shadow: var(--shadow-inset); }
.mybot-add:hover { text-decoration: none; border-color: var(--brand); }
.mybot-add > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--brand-soft); box-shadow: var(--shadow-sm); }
.mybot-add p { font-size: 12px; color: var(--text-2); }
.mybots-empty { border: 1px solid var(--border); padding: 35px; border-radius: 24px; background: var(--bg); box-shadow: var(--shadow); }
.mybots-empty h2 { margin: 10px 0; }
.mybots-empty > p { color: var(--text-2); margin-bottom: 24px; }
.mybots-choices { display: grid; gap: 16px; }
.mybots-choice { display: flex; align-items: center; gap: 18px; padding: 21px; border: 1px solid var(--border); border-radius: 18px; color: var(--text); box-shadow: var(--shadow-sm); }
.mybots-choice:hover { background: var(--brand-soft); text-decoration: none; }
.mybots-choice > div { flex: 1; }
.mybots-choice p { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.mybots-choice .premium-badge { margin-inline-start: 9px; font-size: 10px; }
.mybots-choice-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 13px; background: var(--pastel-mint); color: var(--ok-ink); box-shadow: var(--shadow-inset); flex-shrink: 0; }
.mybots-no-results { text-align: center; padding: 60px; border: 1px dashed var(--border-strong); border-radius: 20px; color: var(--text-2); box-shadow: var(--shadow-inset); }
.mybots-no-results > svg { margin-inline: auto; }
.mybots-no-results h3 { margin: 15px 0; }
.structured-steps { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.structured-steps button { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); background: var(--bg); color: var(--text-2); padding: 12px 18px; border-radius: 13px; cursor: pointer; font: inherit; font-size: 12px; box-shadow: var(--shadow-sm); }
.structured-steps button.selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); box-shadow: var(--shadow-inset); }
.structured-steps button span { background: var(--bg-soft); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.structured-review { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin: 24px 0; }
.structured-review dt { color: var(--text-2); }
.structured-review dd { margin: 0; font-weight: 600; }
.wizard-footer { display: flex; align-items: center; gap: 15px; border-top: 1px solid var(--border); padding-top: 24px; }
.structured-wizard .business-form-section { margin-top: 20px; }
.structured-wizard .editor-add { border-color: var(--border-strong); background: var(--brand-soft); }
.mybots-filters button:focus-visible,.mybot-title:focus-visible,.mybots-choice:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
@media(max-width:1100px) {
  .mybots-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mybots-hero { padding: 30px; }
  .mybots-hero h1 { font-size: 29px; }
}
@media(max-width:700px) {
  .mybots-hero { grid-template-columns: 1fr; padding: 27px; }
  .mybots-hero-art { display: none; }
  .mybots-hero h1 { font-size: 27px; }
  .mybots-hero h1 > span { font-size: 19px; }
  .mybots-overview { gap: 12px; }
  .mybots-stat { padding: 16px 8px; gap: 9px; flex-direction: column; text-align: center; }
  .mybots-stat > span { width: 34px; height: 34px; border-radius: 10px; }
  .mybots-stat b { font-size: 24px; }
  .mybots-stat p { font-size: 11px; }
  .mybots-library-head { flex-wrap: wrap; }
  .mybots-search { width: 100%; }
  .mybots-toolbar { flex-wrap: wrap; }
  .mybots-filters { gap: 3px; width: 100%; }
  .mybots-filters button { padding: 8px 10px; font-size: 12px; }
  .mybots-grid { grid-template-columns: 1fr; }
  .mybots-empty { padding: 24px 18px; }
  .mybots-choice { padding: 17px 12px; gap: 12px; }
  .mybots-choice p { line-height: 1.8; }
  .wizard-footer { flex-wrap: wrap; }
  .wizard-footer .grow { display: none; }
  .structured-steps { gap: 6px; }
  .structured-steps button { padding: 9px; font-size: 11px; }
  .mybot-add { min-height: 190px; }
}
.custom-admin-frame{display:block;width:100%;min-height:680px;border:1px solid var(--border);border-radius:20px;background:var(--bg)}

/* Guided business setup: one focused workspace, progressive details and a live review. */
.form-studio,.agent-recovery{--surface:var(--bg-elev);--line:var(--border);--muted:var(--text-2);--ok-bg:var(--ok-soft);--warn-bg:var(--warn-soft)}
.form-studio{max-width:1360px;margin-inline:auto;padding-bottom:48px}
.studio-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px;padding:12px 0}
.studio-header h1{font-size:clamp(25px,3vw,34px);letter-spacing:-.6px;margin:8px 0 10px;line-height:1.65}
.studio-header p{color:var(--muted);line-height:1.9;margin:0}
.studio-save{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:12px;border:1px solid var(--line);background:var(--surface);border-radius:30px;padding:10px 14px;color:var(--muted)}
.studio-save.saved{color:var(--ok-ink);background:var(--ok-bg)}
.studio-restored{display:flex;align-items:center;gap:8px;color:var(--brand);font-size:13px;margin:0 0 20px}
.studio-layout{display:grid;grid-template-columns:254px minmax(0,1fr);gap:24px;align-items:start}
.studio-sidebar{position:sticky;top:22px;min-width:0}
.studio-progress{padding:18px 18px 22px;background:var(--surface);border:1px solid var(--line);border-radius:18px;margin-bottom:14px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:12px}
.studio-progress b{color:var(--brand)}
.studio-progress [role=progressbar]{width:100%;height:5px;background:var(--line);border-radius:8px;overflow:hidden}
.studio-progress [role=progressbar] span{height:100%;display:block;background:var(--brand);border-radius:8px;transition:width .25s ease}
.studio-sidebar nav{display:flex;flex-direction:column;gap:5px}
.studio-step{font:inherit;font-size:13px;text-align:start;border:1px solid transparent;border-radius:13px;background:transparent;display:flex;align-items:center;gap:10px;width:100%;padding:12px;color:var(--muted);cursor:pointer;min-height:48px}
.studio-step>span:nth-child(2){flex:1}.studio-step>svg{opacity:.65}
.studio-step:hover{background:var(--surface);color:var(--text)}
.studio-step.current{background:var(--surface);border-color:var(--brand);box-shadow:0 3px 16px color-mix(in srgb,var(--brand) 8%,transparent);color:var(--brand);font-weight:700}
.studio-step-number{width:28px;height:28px;display:grid;place-items:center;flex-shrink:0;border-radius:9px;background:var(--surface);border:1px solid var(--line);font-size:12px}
.current .studio-step-number{background:var(--brand-soft);color:var(--brand-ink);border-color:var(--brand)}
.completed .studio-step-number{background:var(--ok-bg);color:var(--ok-ink);border-color:transparent}
.studio-step:focus-visible,.business-type-card:focus-visible,.record-more summary:focus-visible,.compact-record summary:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.studio-sidebar-note{padding:22px 14px;margin-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--muted);line-height:1.9}
.studio-sidebar-note>svg{display:block;margin-bottom:10px;color:var(--brand)}.studio-sidebar-note b{color:var(--text)}
.studio-main{min-width:0;border:1px solid var(--line);border-radius:24px;background:var(--surface);box-shadow:0 12px 45px rgba(20,45,30,.04);overflow:clip}
.studio-pane-head{padding:32px 36px 26px;border-bottom:1px solid var(--line);background:linear-gradient(125deg,color-mix(in srgb,var(--brand) 5%,var(--surface)),var(--surface) 75%)}
.studio-pane-head h2{font-size:24px;margin:6px 0 8px;line-height:1.7;outline:none}.studio-pane-head p{color:var(--muted);font-size:13px;line-height:1.9;margin:0;max-width:660px}
.studio-pane-body{padding:28px 36px 36px}.studio-section{padding:4px 0 26px;margin-bottom:24px;border-bottom:1px solid var(--line)}
.studio-section h3,.form-studio .business-form-section h3{font-size:16px;margin:0 0 18px}.studio-section:last-child{border-bottom:0;margin-bottom:0}
.form-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.form-section-heading h3{margin:0!important}
.business-type-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:32px}
.business-type-card{font:inherit;min-height:148px;text-align:start;padding:18px;border:1px solid var(--line);background:var(--surface);border-radius:16px;display:flex;flex-direction:column;gap:8px;cursor:pointer;transition:border-color .15s,box-shadow .15s;color:var(--text)}
.business-type-card b{font-size:14px}.business-type-card small{font-size:11px;color:var(--muted);line-height:1.9}
.business-type-card:hover{border-color:var(--brand)}.business-type-card.selected{border-color:var(--brand);background:color-mix(in srgb,var(--brand) 5%,var(--surface));box-shadow:0 0 0 1px var(--brand)}
.type-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:color-mix(in srgb,var(--brand) 10%,var(--surface));color:var(--brand)}
.type-selected{font-size:10px;color:var(--brand);font-weight:700;margin-top:auto}
.form-studio .business-form-section{padding:8px 0 28px;border-bottom:1px solid var(--line);margin:0 0 26px}.form-studio .business-form-section:last-child{border:0;margin:0;padding-bottom:0}
.form-studio .form-grid{gap:20px 18px}.form-studio .field-label{font-size:13px}.form-studio .input{min-height:46px;border-radius:11px}.form-studio .hint{font-size:11px;line-height:1.9}
.form-studio .multiple-options{gap:8px}.form-studio .multiple-option{min-height:42px;padding:9px 13px;border-radius:10px;cursor:pointer;font-size:12px;line-height:1.8}
.form-studio .editor-empty{padding:22px;border:1px dashed var(--line);border-radius:14px;background:transparent;font-size:12px}
.compact-record .editor-item{padding:0;border-radius:14px;overflow:hidden;margin-bottom:12px}.compact-record .editor-item-head{padding:14px 16px;margin:0;cursor:pointer;min-height:54px;list-style:none}.compact-record summary::-webkit-details-marker{display:none}
.compact-record .editor-item-head .small{display:inline-flex;gap:8px;align-items:center}.compact-record .record-content{padding:20px 18px;border-top:1px solid var(--line)}
.record-more{margin-top:20px;border:1px solid var(--line);border-radius:12px;padding:0 16px}.record-more>summary{font-size:12px;font-weight:600;cursor:pointer;padding:14px 0;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none}.record-more>summary:after{content:'+';font-size:17px;color:var(--brand)}.record-more[open]>summary:after{content:'−'}.record-more>summary span{font-size:10px;font-weight:400;color:var(--muted);margin-inline-start:auto}.record-more .form-grid{padding:12px 0 20px}
.record-actions{display:flex;justify-content:flex-end;margin-top:18px}.form-studio .business-record-summary{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0 0 14px}.form-studio .business-record-summary li{font-size:11px;border:1px solid var(--line);padding:7px 11px;border-radius:9px;display:flex;gap:10px}
.studio-footer{position:sticky;bottom:0;display:flex;align-items:center;gap:14px;padding:20px 28px;border-top:1px solid var(--line);background:var(--surface);z-index:4}.studio-footer>span{flex:1;text-align:center;font-size:11px;color:var(--muted)}.studio-footer .btn{min-height:44px}
.studio-review-hero{display:flex;align-items:center;gap:16px;padding:22px;background:color-mix(in srgb,var(--brand) 5%,var(--surface));border-radius:16px;margin-bottom:22px}.studio-review-hero h3{margin:0 0 5px}.studio-review-hero p{color:var(--muted);font-size:12px;margin:0}.studio-review-hero .type-icon{width:54px;height:54px}
.studio-review-card{border:1px solid var(--line);border-radius:15px;padding:18px 20px;margin-bottom:14px}.studio-review-card h3{font-size:14px;display:flex;gap:8px;align-items:center}.studio-review-card dl{display:grid;grid-template-columns:minmax(110px,1fr) minmax(0,1.5fr);gap:10px;margin:0;font-size:12px;line-height:1.9}.studio-review-card dt{color:var(--muted)}.studio-review-card dd{margin:0;overflow-wrap:anywhere}
.studio-note{display:flex;gap:12px;align-items:flex-start;padding:18px;border-radius:13px;background:color-mix(in srgb,var(--brand) 5%,var(--surface));margin-top:24px;font-size:12px;line-height:2}.studio-note>svg{flex-shrink:0;color:var(--brand);margin-top:4px}.studio-note p{margin:0}
.studio-issues{margin-top:24px;border:1px solid var(--warn);background:var(--warn-bg);border-radius:13px;padding:18px;font-size:12px;line-height:2}.studio-issues ul{padding-inline-start:20px;margin:8px 0 0}.studio-provider-note{font-size:12px;line-height:1.9;color:var(--muted);padding:14px;border:1px solid var(--line);border-radius:12px;margin-top:22px}
.agent-recovery{border:1px solid color-mix(in srgb,var(--brand) 25%,var(--line));background:color-mix(in srgb,var(--brand) 5%,var(--surface));border-radius:14px;padding:16px 18px;display:flex;gap:12px;align-items:flex-start;font-size:12px;line-height:1.9}.agent-recovery>svg{color:var(--brand);flex-shrink:0;margin-top:3px}.agent-recovery p{margin:4px 0 0;color:var(--muted)}
@media(max-width:1050px){.studio-layout{grid-template-columns:215px minmax(0,1fr);gap:16px}.studio-pane-head{padding:26px}.studio-pane-body{padding:24px}.business-type-picker{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.studio-header{align-items:flex-start;flex-direction:column;gap:12px}.studio-header h1{font-size:24px}.studio-layout{grid-template-columns:minmax(0,1fr);gap:14px}.studio-sidebar{position:static}.studio-sidebar nav{flex-direction:row;overflow-x:auto;padding:3px 3px 10px;scrollbar-width:thin}.studio-step{min-width:max-content;width:auto;white-space:nowrap;font-size:11px;padding:9px;min-height:44px}.studio-step>svg,.studio-sidebar-note{display:none}.studio-progress{padding:12px 16px;gap:8px;margin-bottom:8px;border-radius:12px}.studio-main{border-radius:18px}.studio-pane-head{padding:22px 18px}.studio-pane-head h2{font-size:21px}.studio-pane-body{padding:22px 16px}.business-type-picker{gap:9px}.business-type-card{padding:14px;min-height:140px}.studio-footer{padding:14px 12px;gap:8px}.studio-footer>span{display:none}.studio-footer>.btn:first-child{margin-inline-end:auto}.studio-review-card{padding:16px}.studio-review-card dl{grid-template-columns:minmax(0,1fr)}.studio-review-card dd{margin-bottom:6px}.record-more{padding:0 12px}.record-more>summary{flex-wrap:wrap}.form-studio .form-grid{grid-template-columns:minmax(0,1fr)}.compact-record .record-content{padding:16px 12px}}
@media(prefers-reduced-motion:reduce){.studio-progress [role=progressbar] span,.business-type-card{transition:none}}
.importance-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.form-section-heading .badge{margin-inline-start:8px}
.optional-records{border:1px solid var(--border);border-radius:13px;padding:0 16px;min-width:0}.optional-records>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;cursor:pointer;list-style:none;font-size:13px;font-weight:600}.optional-records>summary small{font-size:10px;font-weight:400;color:var(--text-2)}.optional-records>summary:after{content:'+';color:var(--brand);font-size:18px}.optional-records[open]>summary:after{content:'−'}.optional-records[open]>summary{border-bottom:1px solid var(--border);margin-bottom:20px}.optional-records>.field{padding-bottom:20px}
.form-studio .switch input:focus-visible+.track{outline:3px solid var(--brand);outline-offset:4px}
.form-studio input,.form-studio select,.form-studio summary{scroll-margin-block:80px 120px}
.review-records>summary{cursor:pointer;color:var(--brand);padding:4px 0;line-height:2}.review-record{padding:12px 0;border-bottom:1px solid var(--line)}.review-record:last-child{border-bottom:0}.review-record>b{display:block;margin-bottom:10px}.studio-review-card .review-record dl{font-size:11px;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr)}

.form-studio .optional-records>.business-field-target{padding-bottom:20px}.linked-source{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:9px}.linked-source .btn{white-space:normal;text-align:start;min-height:36px}.linked-stale{display:flex;align-items:center;flex-wrap:wrap;gap:8px;border:1px solid var(--bad);padding:8px 12px;border-radius:10px;font-size:11px;color:var(--bad);width:100%}.form-correction,.studio-corrections{border:1px solid color-mix(in srgb,var(--brand) 35%,var(--border));background:var(--bg-elev);border-radius:12px;padding:12px 16px;line-height:1.9;font-size:12px}.studio-corrections{margin-bottom:18px}.studio-corrections p,.record-errors p{margin:5px 0}.studio-return{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--brand-soft);padding:12px 16px;border-radius:12px;margin-bottom:20px;font-size:12px;line-height:1.9}.business-field-target:focus-visible{outline:2px solid var(--brand);outline-offset:8px;border-radius:10px}.studio-return .btn{flex-shrink:0}.record-errors{margin-bottom:16px}.form-studio [data-business-field]{scroll-margin-block:100px 140px}@media(max-width:760px){.studio-return{flex-direction:column;align-items:flex-start}.linked-source{align-items:flex-start;flex-direction:column}.optional-records>summary{flex-wrap:wrap}.optional-records>summary>span{min-width:0;overflow-wrap:anywhere}.optional-records>summary small{margin-inline-end:auto}}

/* Shared surface hierarchy, interaction states and accessibility. */
.workspace-sidebar .nav-item { border-radius: 13px; }
.workspace-sidebar .nav-item.active { color: var(--brand-ink); box-shadow: var(--shadow-inset); }
.workspace-sidebar .nav-item.active::before { inset-inline-start: 3px; top: 14px; bottom: 14px; }
.sidebar-global,.sidebar-footer { gap: 8px; }
.nav-advanced { border-color: var(--border); }
.nav-notice { background: var(--pastel-peach); color: var(--warn-ink); }
.mobile-bar { color: var(--side-text); }
.mobile-bar .brand { color: var(--side-text); }
.avatar { color: var(--brand-ink); }
.btn.solid-danger { background: var(--bad-soft); color: var(--bad-ink); border-color: var(--bad); }
.btn.primary:active:not(:disabled),.btn:active:not(:disabled) { box-shadow: var(--shadow-inset); }
.btn.ghost:active:not(:disabled) { box-shadow: none; }
.btn:disabled,.chip:disabled,button:disabled { transform: none; }
.input:disabled { opacity: .7; cursor: not-allowed; box-shadow: none; }
.input[aria-invalid="true"],.bot-setup .input[aria-invalid="true"],.form-studio .input[aria-invalid="true"] {
  border-color: var(--bad); background: color-mix(in srgb,var(--bad-soft) 35%,var(--bg));
  box-shadow: var(--shadow-inset),0 0 0 1px var(--bad);
}
.input[aria-invalid="true"]:focus { outline: 2px solid var(--bad); outline-offset: 3px; }
.field .err { font-weight: 600; }
input,select,textarea { accent-color: var(--brand); }
select:focus-visible,textarea:focus-visible,input:focus-visible,summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.input:focus-visible { outline: none; }
input[type="checkbox"]:focus-visible,input[type="radio"]:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.tabs { box-shadow: var(--shadow-inset); border-radius: 16px; gap: 8px; }
.tab { min-height: 42px; border-radius: 11px; }
.tab.on { box-shadow: var(--shadow-sm); }
.progress { box-shadow: var(--shadow-inset); }
.progress > div { background: var(--brand-2); }
.step.on .num { background: var(--brand-soft); color: var(--brand-ink); }
.step.done .num { background: var(--ok-soft); color: var(--ok-ink); }
.step.err .num { background: var(--bad-soft); color: var(--bad-ink); }
.wizard-step.active .wizard-step-icon { background: var(--brand-soft); color: var(--brand-ink); }
.toggle-card,.template-card,.feature-tile,.creation-method,.business-welcome,.shop-welcome,.shop-next-action,.store-journey { box-shadow: var(--shadow-sm); }
.owner-tasks > a,.quick-actions > a { box-shadow: var(--shadow-sm); border-radius: 17px; }
.task-icon,.assistant-mark,.method-icon { box-shadow: var(--shadow-inset); }
.form-progress,.form-section,.studio-main { box-shadow: var(--shadow); }
.studio-pane-head { background: var(--grad); }
.studio-progress,.studio-save { box-shadow: var(--shadow-sm); }
.studio-step.current { background: var(--brand-soft); box-shadow: var(--shadow-inset); }
.current .studio-step-number { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand); }
.business-type-card { box-shadow: var(--shadow-sm); }
.business-type-card.selected { background: var(--brand-soft); box-shadow: var(--shadow-inset),0 0 0 1px var(--brand); }
.form-studio .input { box-shadow: var(--shadow-inset); border-color: var(--border-strong); }
.multiple-option { border-color: var(--border-strong); }
.studio-footer { padding-bottom: max(20px,env(safe-area-inset-bottom)); }
.studio-review-card { background: var(--bg); }
.modal,.drawer { border: 1px solid var(--border); }
.callout { border: 1px solid color-mix(in srgb,currentColor 30%,transparent); }
.premium-badge { color: var(--warn-ink); background: var(--warn-soft); border-color: var(--warn); }
.premium-method { background: var(--grad); border-color: var(--border-strong); }
.premium-method .method-icon { color: var(--warn-ink); background: var(--warn-soft); }
.idea-review-summary > header { justify-content: space-between; border-radius: 12px; }
.idea-review-identity { flex: 1; min-width: 0; }
.idea-review-excerpt > b { display: block; font-size: 12px; color: var(--brand-ink); margin-bottom: 9px; }
.idea-review-excerpt > p { margin: 0; }
@media(max-width:540px) {
  .idea-review-summary > header { padding:13px; gap:13px; }
}
@media(max-width:380px) {
  .mybot-top { align-items:flex-start; }
  .mybot-top .badge { white-space:normal; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .card.hover:hover,.creation-path:hover { transform: none; }
}
@media(forced-colors:active) {
  .input,.btn,.card,.mybot-card,.setup-form,.shop-form,.setup-type,.shop-steps button { border: 1px solid CanvasText; box-shadow: none; }
  .nav-item.active,.setup-step.current,.shop-steps button.current,.chip.on,.mybots-filters button.selected { outline: 2px solid Highlight; outline-offset: -2px; }
}

/* Liquid Glass is an enhancement; opaque pastel surfaces remain the fallback. */
.mybots-hero,.creation-start-hero { border-color:var(--border); box-shadow:var(--shadow),inset 0 1px 0 var(--glass-edge); }
@supports ((backdrop-filter:blur(12px)) or (-webkit-backdrop-filter:blur(12px))) {
  .sidebar,.mobile-bar {
    background:var(--glass-bg); backdrop-filter:blur(16px) saturate(115%); -webkit-backdrop-filter:blur(16px) saturate(115%);
    border-color:var(--glass-edge); box-shadow:inset 0 1px 0 var(--glass-edge),4px 0 20px color-mix(in srgb,var(--neo-dark) 45%,transparent);
  }
  .mybots-hero,.creation-start-hero {
    background:linear-gradient(125deg,color-mix(in srgb,var(--brand-soft) 76%,transparent),color-mix(in srgb,var(--pastel-mint) 72%,transparent)),var(--glass-bg);
    backdrop-filter:blur(18px) saturate(115%); -webkit-backdrop-filter:blur(18px) saturate(115%);
    box-shadow:var(--shadow),inset 0 1px 0 var(--glass-edge); border-color:var(--glass-edge);
  }
  .business-type-card.selected {
    background:color-mix(in srgb,var(--brand-soft) 84%,var(--glass-bg)); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px);
    box-shadow:var(--shadow-inset),inset 0 1px 0 var(--glass-edge),0 0 0 1px var(--brand);
  }
}
/* Long identifiers and lists must stay inside their responsive workspaces. */
.kv { grid-template-columns:minmax(90px,140px) minmax(0,1fr); }
.kv dt,.kv dd { min-width:0; overflow-wrap:anywhere; }
.card,.card-body,.store-home-grid > *,.shop-card,.shop-next-action,.record-details > div { min-width:0; }
.table th,.table td { overflow-wrap:anywhere; }
.table .nowrap { white-space:nowrap; }
@media(max-width:600px) {
  .kv { grid-template-columns:minmax(80px,.7fr) minmax(0,1fr); gap:8px 12px; }
  .store-home-grid > aside { grid-template-columns:minmax(0,1fr); }
  .table th,.table td { padding:11px 12px; }
}
@media(prefers-reduced-transparency:reduce) {
  .sidebar,.mobile-bar { background:var(--side); backdrop-filter:none; -webkit-backdrop-filter:none; }
  .mybots-hero,.creation-start-hero { background:var(--grad); backdrop-filter:none; -webkit-backdrop-filter:none; }
  .business-type-card.selected { background:var(--brand-soft); backdrop-filter:none; -webkit-backdrop-filter:none; }
}
