@font-face {
  font-family: Geist;
  src: url("./geist-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

/* Paleta Camelox. A identidade da loja usa variáveis próprias. */
:root {
  color-scheme: light;
  --brand: #FF7900;
  --brand-deep: #B94700;
  --brand-soft: #FFF1E5;
  --graphite: #25262B;
  --bg: #F7F8FA;
  --text: #20232A;
  --muted: #5F6672;
  --faint: #5F6672;
  --surface: #FFFFFF;
  --surface-raised: #F1F3F5;
  --border: #DCE0E5;
  --input-border: #818894;
  --accent: var(--brand-deep);
  --focus: var(--brand-deep);
  --feature: var(--brand-soft);
  --feature-border: #F0CCB1;
  --sidebar: var(--graphite);
  --sidebar-text: #F7F8FA;
  --sidebar-muted: #C8CBD1;
  --sidebar-border: #4A4C55;
  --sidebar-raised: #32343B;
  --sidebar-active: #4A3528;
  --sidebar-accent: #FFAF78;
  --mobile-nav-bg: var(--surface);
  --green: #176446;
  --red: #B4233B;
  --amber: #84520D;
  --violet: #6A459A;
  --shadow: 0 10px 28px #20232A14;
  --dialog-shadow: 0 22px 76px #20232A42;
  --store-brand: var(--brand);
  --store-accent: var(--brand-deep);
  --radius: 13px;
  font-family: Geist, "Segoe UI", system-ui, -apple-system, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17181D;
  --text: #F4F5F7;
  --muted: #B6BBC5;
  --faint: #AAB0BB;
  --surface: #22242B;
  --surface-raised: #2A2D35;
  --border: #3A3E48;
  --input-border: #7B8494;
  --accent: #FFAF78;
  --focus: #FFAF78;
  --feature: #30251F;
  --feature-border: #6C4B37;
  --sidebar: #1D1F25;
  --sidebar-raised: #2A2D35;
  --sidebar-border: #3A3E48;
  --mobile-nav-bg: #1D1F25;
  --green: #81DFB6;
  --red: #FF9CAB;
  --amber: #F2C982;
  --violet: #CEAFFF;
  --shadow: 0 12px 36px #08090D65;
  --dialog-shadow: 0 24px 84px #07080BD9;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus, select:focus, textarea:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:disabled { opacity: .55; cursor: wait; }
img { max-width: 100%; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(28px, 3.5vw, 38px); line-height: 1.16; letter-spacing: -.048em; }
h2 { font-size: 20px; line-height: 1.25; letter-spacing: -.028em; }
h3 { font-size: 15px; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.caption, small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.eyebrow { font-size: 11px; font-weight: 740; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.initial { display: grid; place-content: center; justify-items: center; gap: 16px; min-height: 65dvh; color: var(--muted); }
.orbit { width: 30px; height: 30px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.shell { min-height: 100dvh; display: grid; grid-template-columns: 218px minmax(0, 1fr); }
.sidebar { height: 100dvh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 20px 13px 12px; color: var(--sidebar-text); border-right: 1px solid var(--sidebar-border); background: var(--sidebar); overflow-y: auto; }
.brand-lockup { display: flex; align-items: center; gap: 11px; min-width: 0; }
.sidebar .brand-lockup { padding: 2px 6px 14px; }
.brand-lockup span:last-child { min-width: 0; display: grid; }
.brand-lockup strong { line-height: 1.15; font-size: 16px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.brand-lockup small { font-size: 11px; margin-top: 4px; }
.brand-icon { display: grid; flex: 0 0 auto; place-items: center; width: 39px; height: 39px; border: 1px solid var(--border); border-radius: 9px; color: var(--text); background: color-mix(in srgb,var(--store-brand) 14%,var(--surface)); overflow: hidden; }
.brand-icon img, img.brand-icon { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
img.brand-icon { width: 39px; height: 39px; }
.sidebar .eyebrow { margin: 14px 10px 5px; color: var(--sidebar-muted); }
.sidebar-nav { display: grid; gap: 3px; }
.sidebar a:focus-visible, .sidebar button:focus-visible { outline-color: var(--sidebar-accent); }
.sidebar small { color: var(--sidebar-muted); }
.nav-link { min-width: 0; display: flex; align-items: center; min-height: 43px; padding: 8px 10px; gap: 10px; color: var(--muted); font-weight: 560; border: 1px solid transparent; border-radius: 10px; background: transparent; }
.nav-link svg { flex: 0 0 auto; width: 18px; height: 18px; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); background: var(--surface-raised); }
.nav-link[aria-current="page"] { color: var(--accent); background: var(--feature); border-color: var(--feature-border); }
.sidebar .nav-link { color: var(--sidebar-muted); }
.sidebar .nav-link:hover { color: var(--sidebar-text); background: var(--sidebar-raised); }
.sidebar .nav-link[aria-current="page"] { color: var(--sidebar-accent); background: var(--sidebar-active); border-color: #765438; box-shadow: inset 2px 0 var(--brand); }
.sidebar-foot { margin-top: auto; padding-top: 16px; display: grid; gap: 9px; }
.aside-user { display: flex; align-items: center; gap: 9px; border: 1px solid var(--sidebar-border); border-radius: 10px; padding: 8px; width: 100%; }
.aside-user > div { display: grid; min-width: 0; flex: 1; }
.aside-user strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aside-user small { font-size: 11px; }
.aside-user .button.ghost { color: var(--sidebar-muted); }
.aside-user .button.ghost:hover { color: var(--sidebar-text); background: var(--sidebar-raised); }
.avatar { flex: 0 0 auto; min-width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--sidebar-active); color: var(--sidebar-accent); font-size: 11px; font-weight: 750; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; position: sticky; z-index: 2; top: 0; min-height: 66px; padding: 11px clamp(16px, 2.5vw, 37px); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); }
.topbar > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.topbar .breadcrumb { color: var(--muted); white-space: nowrap; }
.topbar .crumb-current { color: var(--text); font-weight: 650; }
.topbar .mobile-brand { display: none; }
.top-actions .button { white-space: nowrap; }
.top-actions .search-trigger { min-width: 190px; justify-content: flex-start; color: var(--muted); }
kbd { margin-left: auto; padding: 1px 5px; color: var(--faint); border: 1px solid var(--border); border-radius: 4px; font-size: 10px; }
.workspace { max-width: 1440px; margin: 0 auto; min-width: 0; padding: 26px clamp(16px, 2.5vw, 37px) 36px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 21px; }
.page-heading p, .section-heading p { margin-top: 5px; color: var(--muted); }
.mobile-nav { display: none; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-raised); color: var(--text); font-size: 14px; line-height: 1.25; font-weight: 650; text-align: center; cursor: pointer; }
.button svg { width: 17px; height: 17px; flex: 0 0 auto; }
.button:hover:not(:disabled) { border-color: var(--input-border); background: var(--surface-raised); }
.button.primary { color: #241A12; background: var(--brand); border-color: var(--brand-deep); }
.button.primary:hover:not(:disabled) { background: #FF963B; border-color: var(--brand-deep); }
.button.secondary, .button.icon-button { background: var(--surface); }
.button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.button.ghost:hover:not(:disabled) { border-color: transparent; }
.button.icon-button { width: 44px; flex: 0 0 auto; padding: 0; }
.button.danger { color: var(--red); }
.button.mini { min-height: 36px; padding: 6px 9px; font-size: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.hero { display: grid; position: relative; isolation: isolate; overflow: hidden; grid-template-columns: minmax(0,1fr) minmax(190px,28%); align-items: center; gap: 16px; padding: clamp(21px,3vw,34px); min-height: 167px; margin-bottom: 19px; border: 1px solid var(--feature-border); border-radius: 17px; background: linear-gradient(110deg, var(--feature), var(--surface) 87%); color: var(--text); }
.hero .eyebrow { color: var(--accent); margin-bottom: 7px; }
.hero h1 { font-size: clamp(29px, 3.3vw, 40px); max-width: 740px; }
.hero p:not(.eyebrow) { color: var(--muted); margin-top: 7px; max-width: 530px; }
.hero .actions { margin-top: 15px; }
.hero .button.secondary { background: var(--surface); border-color: var(--input-border); color: var(--text); }
.hero .hero-date { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); margin-left: auto; font-size: 12px; white-space: nowrap; padding: 6px 9px; align-self: start; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.hero-art { display: none; }

.section { margin-top: 22px; }
.section-heading, .panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.section-heading a { color: var(--accent); font-weight: 650; white-space: nowrap; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.kpi, .panel, .quick-link { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.kpi { display: flex; flex-direction: column; min-height: 115px; min-width: 0; padding: 13px; gap: 7px; }
.kpi-top { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; line-height: 1.2; font-weight: 630; }
.kpi strong { margin-top: 1px; display: block; font-size: clamp(19px, 2.1vw, 27px); line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.045em; overflow-wrap: anywhere; }
.kpi .caption { margin-top: auto; }
.symbol { flex: 0 0 auto; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; color: var(--accent); background: var(--feature); }
.symbol svg { width: 18px; height: 18px; }
.symbol.green { color: var(--green); background: color-mix(in srgb,var(--green) 12%,var(--surface)); }
.symbol.amber { color: var(--amber); background: color-mix(in srgb,var(--amber) 12%,var(--surface)); }
.symbol.violet { color: var(--violet); background: color-mix(in srgb,var(--violet) 12%,var(--surface)); }
.quick-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.quick-link { display: flex; align-items: center; text-align: left; gap: 9px; min-width: 0; min-height: 70px; padding: 10px; cursor: pointer; }
.quick-link:hover { border-color: var(--brand); }
.quick-link > div { flex: 1; min-width: 0; }
.quick-link strong { display: block; font-size: 13px; }
.quick-link > svg { width: 15px; height: 15px; color: var(--faint); flex: 0 0 auto; }
.split { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 15px; }
.panel { padding: 17px; min-width: 0; }
.panel + .panel.stacked { margin-top: 14px; }
.panel-heading .caption { margin-top: 4px; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; border-top: 1px solid var(--border); padding: 11px 0; }
.row .row-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row .row-main strong { display: block; }
.row .row-value { margin-left: auto; text-align: right; }
.rows > .row:first-child { border-top: 0; }
.rows > .row:last-child { padding-bottom: 0; }
.rows > .row:first-child { padding-top: 0; }
.empty { padding: 20px 12px; border: 1px dashed var(--border); border-radius: 11px; color: var(--muted); text-align: center; }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; }
.empty svg { display: block; margin: 0 auto 7px; color: var(--accent); }
.status, .mode-tag { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; padding: 3px 8px; border-radius: 999px; line-height: 1.4; color: var(--muted); background: var(--surface-raised); font-size: 11px; font-weight: 650; }
.mode-tag::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.status.ok { color: var(--green); background: color-mix(in srgb,var(--green) 11%,var(--surface)); }
.status.pending, .mode-tag { color: var(--amber); background: color-mix(in srgb,var(--amber) 10%,var(--surface)); }
.status.bad { color: var(--red); background: color-mix(in srgb,var(--red) 10%,var(--surface)); }
.table-region { overflow-x: auto; scrollbar-color: var(--input-border) transparent; }
table { border-collapse: collapse; text-align: left; width: 100%; font-variant-numeric: tabular-nums; }
th,td { vertical-align: middle; padding: 11px 10px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 680; background: var(--surface-raised); }
td { white-space: nowrap; }
td:first-child { min-width: 135px; white-space: normal; }
td:first-child strong { display: block; }
tbody tr:hover td { background: color-mix(in srgb,var(--surface-raised) 55%,transparent); }
tr:last-child td { border-bottom: 0; }
.filter { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; padding: 0 10px; width: min(100%, 370px); align-items: center; background: var(--surface-raised); border-radius: 9px; border: 1px solid var(--border); }
.filter svg { width: 17px; height: 17px; color: var(--faint); }
.filter input { background: transparent; border: 0; min-width: 0; padding: 8px 0; min-height: 42px; width: 100%; color: var(--text); }
.filter:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.filter input:focus { outline: 0; }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 12px; }
.form-grid > .full, .field.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 650; min-width: 0; }
.field input:not([type="checkbox"]), .field select, .field textarea, .field-control { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid var(--input-border); border-radius: 9px; color: var(--text); background: var(--surface); font-weight: 500; }
.field input[type="color"] { padding: 5px; }
.field textarea { min-height: 86px; resize: vertical; }
.field input::placeholder, .filter input::placeholder { color: var(--faint); opacity: 1; }
.field.checkbox { flex-direction: row; align-items: center; font-weight: 500; min-height: 41px; }
input[type="checkbox"] { accent-color: var(--brand); width: 18px; height: 18px; }
.fieldset { border: 1px solid var(--border); border-radius: 11px; padding: 12px; margin: 0; min-width: 0; }
.fieldset legend { padding-inline: 5px; font-weight: 690; }
.form-error { margin: 0; color: var(--red); font-weight: 560; }
.form-error:empty { display: none; }
.notice { padding: 10px 12px; display: flex; align-items: center; gap: 9px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: 10px; color: var(--muted); }
.error-panel { background: color-mix(in srgb,var(--red) 8%,var(--surface)); border: 1px solid color-mix(in srgb,var(--red) 25%, var(--border)); color: var(--text); border-radius: 12px; padding: 14px; }
.error-panel p { margin: 5px 0 9px; color: var(--muted); }
dialog { width: min(720px, calc(100% - 32px)); margin: auto; max-height: calc(100dvh - 32px); background: var(--surface); color: var(--text); padding: 0; border: 1px solid var(--border); border-radius: 17px; box-shadow: var(--dialog-shadow); }
dialog::backdrop { background: #20232A92; backdrop-filter: blur(3px); }
dialog[open] { display: flex; flex-direction: column; }
.dialog-header { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 17px; border-bottom: 1px solid var(--border); }
.dialog-header p { margin-top: 4px; color: var(--muted); }
.dialog-scroll { overflow: auto; padding: 15px 17px; min-height: 0; scrollbar-color: var(--border) transparent; scroll-padding-bottom: 16px; overscroll-behavior: contain; }
.dialog-scroll > .field + .field, .dialog-scroll > .form-grid + .form-grid, .dialog-scroll > .fieldset + .fieldset { margin-top: 12px; }
.dialog-foot { flex: 0 0 auto; display: flex; justify-content: flex-end; align-items: center; gap: 8px; border-top: 1px solid var(--border); padding: 11px 17px max(11px,env(safe-area-inset-bottom)); }
.dialog-foot .form-error { margin-right: auto; line-height: 1.3; font-size: 12px; }
dialog form.dialog-form { display: flex; flex-direction: column; flex: 1 1 auto; overflow: hidden; min-height: 0; }
.form-stack { display: grid; gap: 12px; }
.scan-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: end; }
.inline-list { display: grid; gap: 8px; }
.inline-list > .row { padding: 6px 0; }
.pays { display: grid; gap: 10px; }
.payment { display: grid; grid-template-columns: 1fr 1fr minmax(0,1fr) auto; gap: 7px; align-items: end; }
.payment .button { min-height: 44px; }
.pos-totals { display: flex; gap: 14px; justify-content: space-between; padding: 12px; background: var(--surface-raised); border-radius: 10px; }
.pos-totals strong { display: block; font-size: 18px; }
.success-view { display: grid; justify-items: center; gap: 9px; padding: 21px 5px; text-align: center; }
.success-mark { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: color-mix(in srgb,var(--green) 18%,var(--surface)); color: var(--green); animation: sale-confirmed .33s ease-out both; }
.success-mark svg { width: 28px; height: 28px; }
@keyframes sale-confirmed { from { transform: scale(.78); opacity: 0; } }
.toast { position: fixed; z-index: 8; bottom: 18px; right: 18px; max-width: min(390px, 90vw); padding: 12px 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface-raised); color: var(--text); box-shadow: var(--shadow); }
.toast:empty { display: none; }

.auth-page { min-height: 100dvh; display: grid; grid-template-columns: minmax(0,1fr) minmax(340px, 510px); }
.auth-side { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; min-height: 100%; padding: clamp(27px, 7vw, 95px); border-right: 1px solid var(--sidebar-border); background: radial-gradient(ellipse at 0% 100%, #443025, transparent 64%), var(--graphite); color: #F7F8FA; }
.auth-side h1 { max-width: 570px; margin-top: 13px; font-size: clamp(36px,6vw,65px); }
.auth-side p { max-width: 480px; color: var(--sidebar-muted); }
.auth-main { padding: clamp(18px, 5vw, 48px); display: grid; align-content: center; gap: 16px; }
.auth-main .store-identity { margin-bottom: 12px; }
.auth-main a { color: var(--accent); }
.setup-page { max-width: 1100px; padding: 24px 16px 42px; margin: 0 auto; }
.setup-page > .platform-brand, .setup-page > .brand-lockup { margin-bottom: 20px; }
.setup-page > .store-identity { width: fit-content; }
.setup-layout { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 14px; }
.preview-box { min-height: 125px; display: grid; align-content: center; padding: 14px; margin-bottom: 12px; border: 1px solid var(--border); border-left: 5px solid var(--store-brand); border-radius: 9px; background: color-mix(in srgb,var(--store-accent) 8%,var(--surface)); }
.receipt-preview { color-scheme: light; background: #FFFFFF; color: #20232A; border: 1px solid #DCE0E5; border-top: 4px solid var(--store-brand); padding: 15px; border-radius: 8px; overflow-wrap: anywhere; }
.receipt-preview small { color: #5F6672; }
.receipt-preview .brand-icon { color: #20232A; background: color-mix(in srgb,var(--store-accent) 10%,#FFFFFF); border-color: #DCE0E5; }
.receipt-preview .row { border-color: #DCE0E5; }
.setup-checklist { display: grid; gap: 8px; margin-top: 12px; }
.setup-checklist a { color: var(--accent); }

.public-head { max-width: 1160px; margin: auto; padding: 16px; display: flex; justify-content: space-between; gap: 12px; }
.public-page { max-width: 1160px; margin: auto; padding: 0 16px 40px; }
.public-page .hero { min-height: 214px; border-color: var(--border); border-inline-start: 4px solid var(--store-brand); background: linear-gradient(110deg,color-mix(in srgb,var(--store-brand) 11%,var(--surface)),var(--surface) 82%); }
.public-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,200px),1fr)); gap: 13px; }
.public-product { display: grid; align-content: start; gap: 5px; }
.public-product .symbol { width: 48px; height: 48px; margin-bottom: 6px; }
.public-product strong { color: var(--text); font-variant-numeric: tabular-nums; font-size: 20px; }
.public-product .button { width: fit-content; margin-top: 6px; }
.public-product .symbol { color: var(--text); background: color-mix(in srgb,var(--store-accent) 13%,var(--surface)); }
.public-footer { margin-top: 25px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); }


.platform-brand { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; }
.platform-wordmark { color: var(--graphite); font-size: 25px; font-weight: 890; letter-spacing: -.033em; line-height: 1; white-space: nowrap; }
.platform-accent { color: var(--brand); }
.auth-side .platform-wordmark, .sidebar .platform-wordmark, :root[data-theme="dark"] .platform-wordmark { background: #F7F8FA; border-radius: .28em; padding: .24em .29em; }
.platform-brand-full { flex-direction: column; align-items: flex-start; gap: 9px; max-width: min(100%,380px); }
.platform-brand-full .platform-wordmark { font-size: clamp(37px,7vw,68px); }
.platform-slogan { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; font-weight: 550; }
.auth-side .platform-slogan { color: var(--sidebar-muted); }
.sidebar-brand-stack { display: grid; gap: 12px; padding: 1px 5px 13px; border-bottom: 1px solid var(--sidebar-border); margin-bottom: 7px; }
.sidebar-brand-stack > a { width: fit-content; max-width: 100%; }
.sidebar-brand-stack .brand-lockup { padding: 0; }
.sidebar-brand-stack .store-identity .brand-icon { border-color: var(--sidebar-border); }
.sidebar-brand-stack .store-identity strong { font-size: 13px; }
.sidebar-brand-stack .store-identity small { font-size: 11px; margin-top: 3px; }
.sidebar-brand-stack .store-identity .brand-icon { width: 31px; height: 31px; }
.store-identity { min-width: 0; }
.store-identity strong { font-weight: 675; }
.store-identity-compact { display: block; max-width: 100%; }
.store-identity-compact .brand-icon { display: none; }
.store-identity-compact strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platform-home { max-width: 100%; }
.preview-box .platform-brand { margin-bottom: 11px; }
.preview-box .platform-wordmark { font-size: 19px; }

@media (max-width: 1050px) {
  .shell { grid-template-columns: 187px minmax(0,1fr); }
  .sidebar { padding-inline: 10px; }
  .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kpi strong { font-size: 21px; }
}
@media (max-width: 790px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .mobile-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); position: fixed; z-index: 3; bottom: 0; left: 0; right: 0; padding: 4px 5px max(4px,env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--mobile-nav-bg); }
  .mobile-nav .nav-link { flex-direction: column; justify-content: center; gap: 3px; min-height: 45px; padding: 3px 1px; font-size: 10px; line-height: 1.1; }
  .mobile-nav .nav-link[aria-current="page"] { font-weight: 750; }
  .topbar { min-height: 57px; padding: 8px 12px; }
  .topbar .desktop-crumbs { display: none; }
  .topbar .mobile-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
  .topbar .platform-brand { gap: 6px; }
  .topbar .platform-wordmark { font-size: 20px; }
  .topbar .store-identity-compact strong { font-size: 11px; line-height: 1.2; color: var(--muted); }
  .topbar .mode-tag { white-space: nowrap; }
  .topbar .top-actions { flex: none; }
  .topbar .brand-icon { width: 34px; height: 34px; }
  .topbar .brand-lockup small { display: none; }
  .top-actions .search-trigger { min-width: 39px; width: 39px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .top-actions .icon-button { width: 39px; min-height: 39px; }
  .workspace { padding: 18px 12px 82px; }
  .toast { bottom: 70px; }
}
@media (max-width: 620px) {
  .hero { grid-template-columns: minmax(0,1fr); min-height: unset; margin-bottom: 16px; padding: 17px 15px; border-radius: 15px; }
  .hero h1 { font-size: clamp(27px, 8vw, 40px); }
  .hero p:not(.eyebrow) { margin-top: 7px; font-size: 13px; }
  .hero .hero-date { display: none; }
  .hero .actions { margin-top: 13px; }
  .public-page .hero { min-height: 140px; }
  .section { margin-top: 17px; }
  .kpi-grid, .quick-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .kpi { min-height: 107px; padding: 10px; gap: 5px; border-radius: 12px; }
  .kpi-top { gap: 6px; font-size: 11px; }
  .symbol { width: 29px; height: 29px; }
  .kpi .caption { font-size: 11px; }
  .quick-link { min-height: 56px; padding: 7px; }
  .quick-link .caption { display: none; }
  .quick-link strong { font-size: 12px; }
  .split, .setup-layout { grid-template-columns: minmax(0,1fr); }
  .panel { padding: 12px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
  .page-heading p { font-size: 13px; }
  .page-heading h1 { font-size: 27px; }
  .auth-page { display: block; }
  .auth-side { padding: 21px 17px; border-right: 0; }
  .auth-side h1 { font-size: 27px; margin-top: 0; }
  .auth-side .platform-brand-full .platform-wordmark { font-size: clamp(34px,9vw,45px); }
  .auth-side .platform-slogan { font-size: 13px; }
  .auth-main { padding: 18px 16px 32px; }
  dialog { margin: auto auto 0; width: 100%; max-width: 100%; max-height: calc(var(--visual-height, 100dvh) - 8px); border-radius: 15px 15px 0 0; }
  .dialog-header, .dialog-scroll, .dialog-foot { padding-inline: 12px; }
  .dialog-header p { font-size: 12px; }
  .field input:not([type="checkbox"]), .field select, .field textarea, .field-control { font-size: 16px; padding-inline: 7px; }
  .payment { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .payment .button { justify-self: end; }
}
@media (max-width: 380px) {
  .form-grid { gap: 9px; }
  .hero .button { padding-inline: 9px; font-size: 12px; }
  .topbar { gap: 8px; }
  .topbar > .top-actions { gap: 5px; }
  .topbar .mode-tag { padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; scroll-behavior: auto !important; }
}

#setup-form [hidden] { display: none; }
#setup-progress { margin: 0; color: var(--muted); font-size: .85rem; }

[hidden] { display: none !important; }
.payment-extra { grid-column: 1 / -1; }
.line-controls { align-self: end; }
.purchase-line + .purchase-line { border-top: 1px solid var(--border); padding-top: 10px; }

.login-scope { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; margin-top: 8px; overflow-wrap: anywhere; }
.login-scope svg { flex: 0 0 auto; width: 15px; height: 15px; }
.team-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 14px; }
.team-members { margin: 0; padding: 0; list-style: none; }
.team-members .row:first-child { border-top: 0; }
.team-members .row:last-child { padding-bottom: 0; }
.team-capacity { background: var(--surface-raised); padding: 9px 11px; border-radius: 9px; }
.team-capacity:empty, #invite-result:empty { display: none; }
.invite-link { display: flex; align-items: center; gap: 8px; }
.invite-link input { flex: 1; }
.invite-link button { flex: 0 0 auto; }
@media (max-width: 620px) {
  .team-grid { grid-template-columns: minmax(0,1fr); }
}

.product-mode-options { display: flex; flex-wrap: wrap; column-gap: 18px; }
.product-mode-options .field { flex: 0 1 auto; cursor: pointer; }
.product-mode-options .field input[type="radio"] { width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; flex: 0 0 auto; accent-color: var(--brand-deep); }
.product-form .field input[readonly], .product-form .field select:disabled { background: var(--surface-raised); }
.inventory-filters { display: grid; grid-template-columns: minmax(0, 3fr) minmax(140px, 1fr); gap: 12px; max-width: 760px; }
#catalog-rows { min-width: 0; }
.inventory-filters .inventory-search { width: 100%; }
.inventory-filters .inventory-search input { background: transparent; border: 0; }
@media (max-width: 520px) {
  .field input:not([type="checkbox"], [type="radio"]), .field select, .field textarea, .field-control { font-size: 16px; }
  .inventory-filters { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .product-model-picker .form-grid { grid-template-columns: minmax(0, 1fr); }
}
