:root {
  --ink: #18201f;
  --muted: #66716e;
  --paper: #f4f6f2;
  --white: #ffffff;
  --line: #d9dfd8;
  --accent: #c9ff48;
  --coral: #ef654f;
  --blue: #3478d4;
  --green: #2b7957;
  --shadow: 0 16px 42px rgba(24, 32, 31, .13);
}

* { box-sizing: border-box; letter-spacing: 0; }
html { color-scheme: light; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: fixed; width: 0; height: 0; overflow: hidden; }
.hidden { display: none !important; }
.platform-app { min-height: 100vh; background: #edf0eb; }

.auth-screen { position: relative; min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr); isolation: isolate; overflow: hidden; background: #171a19 url('/media/platform-store-builder-hero-v2.png') 50% center / cover no-repeat; }
.auth-screen::before { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(12, 16, 15, .5); pointer-events: none; }
.auth-visual { position: relative; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; background: transparent; }
.auth-visual > img { display: none; }
.auth-visual-shade { display: none; }
.auth-visual::after { content: none; }
.auth-visual-copy { width: min(570px, calc(100% - 72px)); margin: 0 auto; padding: 0 0 64px; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.34); }
.auth-visual-copy > span { display: block; margin-bottom: 11px; color: var(--accent); font-size: 10px; font-weight: 820; letter-spacing: 0; text-transform: uppercase; }
.auth-visual-copy h1 { max-width: 560px; margin: 0 0 14px; font-size: 50px; font-weight: 760; line-height: 1.08; letter-spacing: 0; text-wrap: balance; }
.auth-visual-copy p { max-width: 520px; margin: 0; color: rgba(255,255,255,.82); font-size: 14px; line-height: 1.55; text-wrap: balance; }
.auth-form-side {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px clamp(34px, 7vw, 104px);
  color: #f5f6f2;
  background: transparent;
}
.auth-form-side .brand strong { color: #f8f8f4; }
.auth-form-side .brand small { color: #9fa8a3; }
.auth-brand { position: absolute; top: 30px; left: 50%; width: min(440px, calc(100% - clamp(34px, 7vw, 104px) - clamp(34px, 7vw, 104px))); transform: translateX(-50%); }
.auth-panel { width: min(470px, 100%); margin: 30px auto 0; padding: 26px 28px 28px; border: 1px solid rgba(255,255,255,.13); border-radius: 10px; background: rgba(18, 22, 21, .68); box-shadow: 0 22px 58px rgba(0,0,0,.24); backdrop-filter: blur(14px); }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin-bottom: 30px; padding: 4px; border: 1px solid #414743; border-radius: 7px; background: #111413; }
.auth-tabs button { min-height: 38px; border: 0; border-radius: 5px; color: #98a19c; background: transparent; font-size: 11px; font-weight: 780; cursor: pointer; }
.auth-tabs button:hover { color: #f5f6f2; background: #252a28; }
.auth-tabs button.active { color: #f7f7f3; background: #373d3a; box-shadow: 0 1px 8px rgba(0,0,0,.24); }
.auth-heading-stack, .auth-form-stack { display: grid; }
.auth-heading-stack > *, .auth-form-stack > * { grid-area: 1 / 1; }
.auth-heading-stack > .hidden { display: block !important; visibility: hidden; pointer-events: none; }
.auth-form-stack > .hidden { display: grid !important; visibility: hidden; pointer-events: none; }
.auth-heading { margin-bottom: 25px; }
.auth-heading > span { color: var(--accent); font-size: 9px; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.auth-heading h2 { max-width: 370px; margin: 8px 0 9px; font-size: 27px; font-weight: 760; line-height: 1.12; letter-spacing: -.018em; text-wrap: balance; }
.auth-heading p { max-width: 380px; margin: 0; color: #b6bdb9; font-size: 12px; line-height: 1.55; }
.platform-auth-form { display: grid; align-content: start; gap: 10px; }
.platform-auth-form .auth-submit { margin-top: 0; }
[data-platform-register] { transform: translateY(-8px); }
.auth-form-side .field > span:first-child { color: #e8eae6; }
.auth-form-side .field small { color: #929c96; }
.auth-form-side .field input {
  border-color: #424945;
  color: #f7f8f4;
  background: #242826;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.auth-form-side .field input::placeholder { color: #77817b; }
.auth-form-side .field input:hover { border-color: #59615c; }
.auth-form-side .field input:focus { border-color: #c4d66f; box-shadow: 0 0 0 3px rgba(201,255,72,.1); }
.auth-form-side .field input:-webkit-autofill,
.auth-form-side .field input:-webkit-autofill:hover,
.auth-form-side .field input:-webkit-autofill:focus { -webkit-text-fill-color: #f7f8f4; box-shadow: 0 0 0 1000px #242826 inset; caret-color: #f7f8f4; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-form-side .auth-submit { border-color: #c9ff48; box-shadow: 0 10px 28px rgba(201,255,72,.1); }
.auth-form-side .auth-submit:hover { border-color: #d5ff70; }
.auth-error { margin-top: 14px; padding: 10px 12px; border: 1px solid #8f5048; border-radius: 6px; color: #ffd5cf; background: #3b2522; font-size: 11px; line-height: 1.45; }
.auth-footnote { width: min(440px, 100%); margin: 18px auto 0; color: #b0b8b3; font-size: 10px; text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.7); }

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 22px;
  border-bottom: 1px solid #343b37;
  color: #f4f6f2;
  background: rgba(23, 26, 25, .98);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 16px; line-height: 1; }
.brand small { color: var(--muted); font-size: 10px; font-weight: 650; }
.app-header .brand strong { color: #f8f9f5; }
.app-header .brand small { color: #aab3ad; }
.header-status { display: flex; align-items: center; gap: 8px; }
.preview-toggle { display: none; }
.platform-user { max-width: 150px; overflow: hidden; margin-left: 5px; color: #c4cbc7; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.logout-button { width: 38px; min-height: 38px; }
.save-state { margin-right: 4px; padding: 6px 9px; border-radius: 5px; color: #b7c0ba; background: #252b28; font-size: 10px; font-weight: 720; }
.save-state.saving { color: #d7e7ff; }
.save-state.saved { color: var(--accent); }
.save-state.error { color: #ffd3ce; }
.app-header .button.ghost, .app-header .icon-button { border-color: #414945; color: #e8ece8; background: #252a28; }
.app-header .button.ghost:hover, .app-header .icon-button:hover { border-color: #66716b; background: #303633; }
.app-header .button.dark { border-color: var(--accent); color: var(--ink); background: var(--accent); }
.app-header .button.dark:hover { background: #d5ff70; }

.button, .icon-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-weight: 780;
  font-size: 13px;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.button { padding: 0 16px; }
.button:hover, .icon-button:hover { border-color: #9aa49f; background: #f0f3ef; }
.button:active, .icon-button:active { transform: translateY(1px); }
.button:disabled { opacity: .48; cursor: not-allowed; }
.button.compact { min-height: 38px; padding: 0 12px; font-size: 12px; }
.button.primary { border-color: var(--ink); color: var(--ink); background: var(--accent); }
.button.primary:hover { background: #d5ff70; }
.button.dark { border-color: var(--ink); color: #fff; background: var(--ink); }
.button.dark:hover { background: #2b3634; }
.button.secondary { border-color: #a7c635; background: #f4ffd5; }
.button.ghost { background: transparent; }
.icon-button { width: 40px; min-height: 40px; padding: 0; }

.workspace { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 260px minmax(500px, 720px) minmax(390px, 1fr); }
.steps-sidebar { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; padding: 22px 14px 16px; border-right: 1px solid #343b37; color: #edf1ed; background: #1b201e; overflow-y: auto; }
.project-label { display: grid; gap: 7px; padding: 0 10px 18px; }
.project-label span { color: #9da7a1; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.project-label select { width: 100%; height: 40px; padding: 0 30px 0 10px; border: 1px solid #48514c; border-radius: 6px; color: #f4f6f2; background: #282e2b; font-size: 11px; font-weight: 700; }
.builder-progress { display: grid; gap: 10px; margin: 0 10px 18px; padding: 16px 0 18px; border-block: 1px solid #343b37; }
.builder-progress > div { display: grid; gap: 4px; }
.builder-progress > div span { color: var(--accent); font-size: 9px; font-weight: 820; text-transform: uppercase; }
.builder-progress strong { color: #f6f8f4; font-size: 13px; }
.builder-progress-track { height: 4px; overflow: hidden; border-radius: 2px; background: #343b37; }
.builder-progress-track i { width: 33.333%; height: 100%; display: block; border-radius: inherit; background: var(--accent); transition: width 180ms ease; }
.steps-nav { display: grid; gap: 5px; }
.step-link { width: 100%; min-height: 64px; display: grid; grid-template-columns: 30px 1fr 18px; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: 7px; color: #dfe5e0; background: transparent; text-align: left; cursor: pointer; }
.step-link:hover { border-color: #39413d; background: #242a27; }
.step-link.active { border-color: #56615b; background: #2b312e; box-shadow: 0 5px 16px rgba(0,0,0,.14); }
.step-link > span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #56615b; border-radius: 50%; color: #aeb8b2; font-size: 11px; font-weight: 820; }
.step-link.active > span { border-color: var(--accent); color: var(--ink); background: var(--accent); }
.step-link.done > span { border-color: #69833d; color: var(--accent); background: #344129; }
.step-link i { min-width: 0; display: grid; gap: 3px; font-style: normal; }
.step-link i strong { font-size: 12px; }
.step-link i small { color: #929d97; font-size: 10px; }
.step-link > svg { width: 16px; color: #7f8a84; }
.step-link.active > svg { color: var(--accent); }
.new-project { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: auto; border: 1px dashed #59635e; border-radius: 6px; color: #d9e0db; background: transparent; font-size: 11px; font-weight: 760; cursor: pointer; }
.new-project:hover { border-color: var(--accent); color: var(--accent); background: #242a27; }

.editor { min-width: 0; padding: 38px 42px 110px; background: #f8f9f5; }
.mobile-steps-toggle { display: none; }
.step-panel { display: none; }
.step-panel.active { display: block; animation: panel-in 170ms ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.panel-heading { margin-bottom: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.panel-heading > span { color: #526d18; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.panel-heading h1 { margin: 6px 0 8px; font-size: 28px; line-height: 1.12; }
.panel-heading p { max-width: 560px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-section + .form-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.form-section-heading h2 { margin: 0 0 5px; font-size: 16px; line-height: 1.2; }
.form-section-heading p { max-width: 520px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.form-section-heading > span { padding-top: 2px; color: #b44c40; font-size: 9px; font-weight: 850; text-transform: uppercase; white-space: nowrap; }
.form-section-heading > span.optional { color: var(--muted); }
.field { min-width: 0; display: grid; align-content: start; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field > span:first-child { font-size: 12px; font-weight: 760; }
.field small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.field input, .field textarea, .field select, .slug-input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd3cd;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.field input, .field select { height: 44px; padding: 0 12px; }
.field textarea { padding: 11px 12px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus, .slug-input:focus-within { border-color: #71883e; box-shadow: 0 0 0 3px rgba(201,255,72,.22); }
.field input.invalid, .field textarea.invalid, .slug-input.invalid { border-color: #bd5147; box-shadow: 0 0 0 3px rgba(239, 101, 79, .12); }
.slug-input { height: 44px; display: flex; align-items: center; overflow: hidden; }
.slug-input b { height: 100%; display: flex; align-items: center; padding: 0 11px; color: var(--muted); background: #f5f7f4; font-size: 11px; font-weight: 650; white-space: nowrap; }
.slug-input input { height: 42px; border: 0; border-radius: 0; box-shadow: none !important; }

.product-form { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.product-form .button { margin-top: 18px; }
.product-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 12px; }
.product-list-heading strong { font-size: 14px; }
.product-list-heading span { min-width: 27px; height: 24px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--ink); font-size: 10px; font-weight: 800; }
.product-list { display: grid; gap: 8px; }
.product-row { min-height: 74px; display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 40px; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.product-row img, .product-placeholder { width: 58px; height: 58px; display: grid; place-items: center; object-fit: contain; border-radius: 5px; background: #eef1ed; color: #7d8884; font-size: 10px; }
.product-row > div:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.product-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.product-row small { color: var(--muted); font-size: 10px; }
.product-row > b { font-size: 13px; white-space: nowrap; }
.product-row .icon-button { border-color: transparent; color: #9a4940; }
.product-row .icon-button:hover { border-color: #efc5c0; background: #fff0ee; }
.empty-list { padding: 34px 18px; border: 1px dashed #bdc6bf; border-radius: 7px; color: var(--muted); text-align: center; font-size: 12px; }

.catalog-handoff { min-height: 72px; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 13px; margin: 18px 0; padding: 14px 16px; border-block: 1px solid #d8dfd9; background: #f2f5f1; }
.catalog-handoff > svg { width: 24px; height: 24px; margin: auto; color: #42514b; }
.catalog-handoff > div { display: grid; gap: 4px; }
.catalog-handoff strong { font-size: 12px; }
.catalog-handoff span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.catalog-handoff .button { white-space: nowrap; }

.theme-fields { display: grid; gap: 10px; }
.theme-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.theme-preset { min-width: 0; display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 3px 12px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.theme-preset:hover { border-color: #98a39c; }
.theme-preset:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(24,32,31,.09); }
.theme-preset input { position: absolute; opacity: 0; pointer-events: none; }
.theme-preset > strong { align-self: end; font-size: 11px; }
.theme-preset > small { align-self: start; color: var(--muted); font-size: 9px; line-height: 1.35; }
.theme-preview { grid-row: 1 / span 2; width: 88px; height: 62px; display: grid; grid-template-columns: repeat(3, 1fr); align-content: end; gap: 3px; padding: 6px; overflow: hidden; border-radius: 5px; background: #eef1ed; }
.theme-preview i { grid-column: 1 / -1; align-self: start; height: 21px; border-radius: 3px; background: #cbd3cd; }
.theme-preview b { height: 22px; border-radius: 2px; background: #fff; }
.theme-preview.catalog { grid-template-columns: repeat(4, 1fr); }
.theme-preview.catalog i { height: 15px; }
.theme-preview.catalog b { height: 27px; }
.theme-preview.showcase { grid-template-columns: repeat(2, 1fr); }
.theme-preview.showcase i { height: 27px; }
.theme-preview.showcase b { height: 16px; }
.theme-preview.minimal { gap: 5px; background: #fff; }
.theme-preview.minimal i { height: 18px; background: #e8ece8; }
.theme-preview.minimal b { height: 19px; border: 1px solid #e4e8e4; }
.banner-uploader { display: grid; gap: 10px; }
.banner-drop { min-height: 118px; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px; border: 1px dashed #9eaaa2; border-radius: 7px; background: #f6f8f5; cursor: pointer; }
.banner-drop:hover { border-color: #68766e; background: #f2f5f1; }
.banner-drop input { position: absolute; opacity: 0; pointer-events: none; }
.banner-thumb { width: 150px; height: 92px; display: grid; place-items: center; overflow: hidden; border-radius: 6px; color: #738079; background: #e5eae5; }
.banner-thumb svg { width: 28px; height: 28px; }
.banner-thumb img { width: 100%; height: 100%; object-fit: cover; }
.banner-drop-copy { min-width: 0; display: grid; gap: 5px; }
.banner-drop-copy strong { font-size: 12px; }
.banner-drop-copy small, .banner-upload-footer > span { color: var(--muted); font-size: 9px; line-height: 1.45; }
.banner-upload-footer { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.banner-uploader.uploading { opacity: .72; pointer-events: none; }
.color-field { min-height: 70px; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.color-field:hover { border-color: #abb5ae; }
.color-field input { width: 44px; height: 44px; padding: 3px; border: 1px solid #c8d0ca; border-radius: 6px; background: #fff; cursor: pointer; }
.color-field > span { display: grid; gap: 4px; }
.color-field strong { font-size: 12px; }
.color-field small { color: var(--muted); font-size: 10px; }
.color-field output { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-transform: uppercase; }
.palette-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.palette-presets button { min-width: 0; display: grid; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; cursor: pointer; }
.palette-presets button:hover { border-color: #8e9a93; }
.palette-presets i { height: 30px; display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border-radius: 4px; background: linear-gradient(90deg, var(--a) 0 33.33%, var(--b) 33.33% 66.66%, var(--c) 66.66%); }
.palette-presets span { overflow: hidden; font-size: 10px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }

.option-group { display: grid; gap: 8px; margin: 0 0 28px; padding: 0; border: 0; }
.option-group legend { margin-bottom: 10px; font-size: 14px; font-weight: 820; }
.option-row { min-height: 64px; display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.option-row:hover { border-color: #aab5ad; }
.option-row input { position: absolute; opacity: 0; pointer-events: none; }
.option-row > i { width: 34px; height: 22px; position: relative; border-radius: 12px; background: #cbd2cd; transition: background 150ms ease; }
.option-row > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform 150ms ease; }
.option-row input:checked + i { background: var(--green); }
.option-row input:checked + i::after { transform: translateX(12px); }
.option-row > span { display: grid; gap: 4px; }
.option-row strong { font-size: 12px; }
.option-row small { color: var(--muted); font-size: 10px; line-height: 1.35; }

.launch-checklist { display: grid; gap: 8px; }
.check-row { min-height: 52px; display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 11px; padding: 9px 11px; border-bottom: 1px solid var(--line); }
.check-row > i { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); }
.check-row > i.pending { background: #d5dad6; color: #74807b; }
.check-row svg { width: 15px; height: 15px; }
.check-row span { display: grid; gap: 3px; }
.check-row strong { font-size: 12px; }
.check-row small { color: var(--muted); font-size: 10px; }
.check-row > b { color: var(--green); font-size: 10px; text-transform: uppercase; }
.check-row > b.pending { color: #9a5147; }
.publish-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 20px; border-radius: 7px; color: #fff; background: var(--ink); }
.publish-band > div { display: grid; gap: 5px; }
.publish-band strong { font-size: 14px; }
.publish-band span { color: #bdc7c2; font-size: 11px; line-height: 1.4; }
.published-link { min-height: 50px; display: grid; grid-template-columns: auto minmax(0, 1fr) 40px; align-items: center; gap: 12px; margin-top: 10px; padding: 5px 5px 5px 12px; border: 1px solid #acd0bb; border-radius: 7px; background: #f0faf4; }
.published-link > span { color: var(--green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.published-link a { overflow: hidden; color: #265e45; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 11px; }
th, td { height: 44px; padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--muted); background: #f4f6f3; font-size: 9px; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
td select { height: 30px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 10px; }

.editor-actions { position: fixed; z-index: 15; left: 260px; bottom: 0; width: min(720px, calc(100vw - 650px)); min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 12px 42px; border-top: 1px solid var(--line); background: rgba(248,249,245,.97); backdrop-filter: blur(10px); }
.editor-actions .button:first-child { justify-self: start; }
.editor-actions .button:last-child { justify-self: end; }
.editor-actions > span { color: var(--muted); font-size: 10px; font-weight: 700; }

.preview-pane { position: sticky; top: 68px; height: calc(100vh - 68px); min-width: 0; display: flex; flex-direction: column; border-left: 1px solid #343b37; color: #eef2ee; background: #202522; }
.preview-toolbar { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 16px; border-bottom: 1px solid #363e39; }
.preview-toolbar > div:first-child { display: grid; gap: 3px; }
.preview-toolbar span { color: #9fa9a3; font-size: 9px; font-weight: 780; text-transform: uppercase; }
.preview-toolbar strong { font-size: 11px; }
.device-switcher { display: flex; padding: 3px; border: 1px solid #414945; border-radius: 6px; background: #171b19; }
.device-switcher button { width: 31px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 4px; color: #8f9993; background: transparent; cursor: pointer; }
.device-switcher button.active { color: var(--ink); background: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.22); }
.device-switcher svg { width: 15px; height: 15px; }
.preview-stage { min-height: 0; flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 18px; overflow: auto; background: #171b19; }
.store-preview { width: 100%; min-height: 650px; overflow: hidden; border: 1px solid #515a55; border-radius: 7px; background: var(--preview-paper, #f7f8f3); box-shadow: 0 20px 46px rgba(0,0,0,.28); transition: width 180ms ease; }
.store-preview.tablet { width: min(680px, 100%); }
.store-preview.mobile { width: min(360px, 100%); }
.pv-header { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; color: var(--preview-on-header, #fff); background: var(--preview-header, #18201f); }
.pv-brand { overflow: hidden; font-size: 15px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.pv-nav { display: flex; align-items: center; gap: 13px; font-size: 8px; font-weight: 720; }
.pv-cart { min-width: 62px; height: 27px; display: grid; place-items: center; padding: 0 8px; border-radius: 4px; color: var(--preview-on-accent, #18201f); background: var(--preview-accent); font-size: 8px; font-weight: 820; }
.pv-hero { position: relative; min-height: 230px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(130px, .9fr); align-items: center; gap: 14px; padding: 28px 22px; isolation: isolate; overflow: hidden; border-bottom: 1px solid rgba(0,0,0,.1); background: var(--preview-paper); }
.pv-hero-copy { min-width: 0; }
.pv-eyebrow { display: block; margin-bottom: 7px; color: var(--preview-detail, #a13f34); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.pv-hero h2 { margin: 0 0 8px; color: var(--preview-ink); font-size: clamp(18px, 2.2vw, 28px); line-height: 1.05; overflow-wrap: anywhere; }
.pv-hero p { margin: 0 0 14px; color: color-mix(in srgb, var(--preview-ink) 72%, transparent); font-size: 9px; line-height: 1.45; }
.pv-button { width: fit-content; min-height: 29px; display: flex; align-items: center; padding: 0 10px; border: 1px solid var(--preview-accent); border-radius: 4px; color: var(--preview-on-accent, #18201f); background: var(--preview-accent); font-size: 8px; font-weight: 820; }
.pv-hero.no-banner { grid-template-columns: minmax(0, 1fr); }
.pv-hero.no-banner .pv-hero-copy { max-width: 78%; }
.pv-hero.has-banner { display: flex; color: #fff; background: #28302d; }
.pv-hero.has-banner::after { content: ""; position: absolute; z-index: -1; inset: 0; background: rgba(10, 15, 13, .56); }
.pv-hero.has-banner .pv-hero-copy { position: relative; z-index: 1; width: min(68%, 360px); }
.pv-hero.has-banner h2 { color: #fff; }
.pv-hero.has-banner p { color: rgba(255,255,255,.82); }
.pv-hero.has-banner .pv-eyebrow { color: var(--preview-accent); }
.pv-hero-media { min-width: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-radius: 6px; background: color-mix(in srgb, var(--preview-paper) 82%, #d7ddd7); }
.pv-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.pv-hero.has-banner .pv-hero-media { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; border-radius: 0; }
.pv-products { padding: 20px 18px 30px; }
.pv-section-title { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pv-section-title h3 { margin: 0; color: var(--preview-ink); font-size: 13px; }
.pv-section-title span { color: #6b7470; font-size: 7px; }
.pv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pv-product { min-width: 0; overflow: hidden; border: 1px solid rgba(0,0,0,.12); border-radius: 5px; background: #fff; }
.pv-product-media { aspect-ratio: 1 / 1; display: grid; place-items: center; background: #f1f3f0; }
.pv-product-media img { width: 100%; height: 100%; object-fit: contain; }
.pv-product-media span { color: #8a928e; font-size: 7px; }
.pv-product-info { display: grid; gap: 4px; padding: 7px; }
.pv-product-info small { overflow: hidden; color: #d65343; font-size: 6px; font-weight: 800; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.pv-product-info strong { min-height: 20px; overflow: hidden; color: var(--preview-surface-ink, #18201f); font-size: 8px; line-height: 1.25; }
.pv-product-info b { color: var(--preview-surface-ink, #18201f); font-size: 9px; }
.store-preview[data-theme="catalog"] .pv-hero { min-height: 170px; grid-template-columns: minmax(0, 1.4fr) minmax(100px, .6fr); padding-block: 18px; }
.store-preview[data-theme="catalog"] .pv-hero.no-banner { grid-template-columns: minmax(0, 1fr); }
.store-preview[data-theme="catalog"] .pv-hero-media { aspect-ratio: 16 / 9; }
.store-preview[data-theme="catalog"] .pv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.store-preview[data-theme="catalog"] .pv-product-info { padding: 5px; }
.store-preview[data-theme="showcase"] .pv-hero { min-height: 285px; grid-template-columns: minmax(0, .85fr) minmax(180px, 1.15fr); }
.store-preview[data-theme="showcase"] .pv-hero.no-banner { grid-template-columns: minmax(0, 1fr); }
.store-preview[data-theme="showcase"] .pv-hero-media { aspect-ratio: 4 / 5; }
.store-preview[data-theme="showcase"] .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.store-preview[data-theme="minimal"] .pv-header { color: var(--preview-ink); background: var(--preview-paper); border-bottom: 1px solid rgba(0,0,0,.1); }
.store-preview[data-theme="minimal"] .pv-cart { color: var(--preview-on-brand); background: var(--preview-brand); }
.store-preview[data-theme="minimal"] .pv-hero-media { aspect-ratio: 3 / 2; }
.store-preview[data-theme="minimal"] .pv-product { border-color: transparent; background: transparent; }
.store-preview[data-theme="minimal"] .pv-product-info { padding-inline: 0; }
.store-preview[data-theme="minimal"] .pv-product-info strong, .store-preview[data-theme="minimal"] .pv-product-info b { color: var(--preview-ink); }
.store-preview.mobile .pv-header { padding: 0 11px; }
.store-preview.mobile .pv-nav { display: none; }
.store-preview.mobile .pv-hero { min-height: 310px; grid-template-columns: 1fr; padding: 20px 16px; }
.store-preview.mobile .pv-hero h2 { font-size: 24px; }
.store-preview.mobile .pv-hero-media { max-height: 140px; order: -1; }
.store-preview.mobile .pv-hero.has-banner { min-height: 310px; align-items: flex-end; }
.store-preview.mobile .pv-hero.has-banner .pv-hero-copy { width: 100%; max-width: none; }
.store-preview.mobile .pv-hero.has-banner .pv-hero-media { max-height: none; }
.store-preview.mobile .pv-hero.no-banner .pv-hero-copy { max-width: none; }
.store-preview.mobile .pv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.store-preview.mobile .pv-product:nth-child(n+5) { display: none; }

.toast { position: fixed; z-index: 70; right: 20px; bottom: 20px; max-width: 340px; padding: 12px 15px; border-radius: 6px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 12px; line-height: 1.4; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { background: #8f372f; }
.modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(16, 22, 21, .55); }
.confirm-dialog { width: min(420px, 100%); padding: 24px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
.confirm-dialog h2 { margin: 0 0 10px; font-size: 20px; }
.confirm-dialog p { margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.confirm-dialog > div { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 1280px) {
  .workspace { grid-template-columns: 228px minmax(500px, 1fr); }
  .preview-pane { position: fixed; z-index: 40; inset: 68px 0 0 auto; width: min(520px, 48vw); transform: translateX(100%); transition: transform 180ms ease; box-shadow: -12px 0 32px rgba(24,32,31,.16); }
  .preview-pane.open { transform: translateX(0); }
  .editor-actions { left: 228px; width: calc(100vw - 228px); }
  .editor { padding-inline: clamp(28px, 5vw, 64px); }
  .header-status::before { content: ""; }
  .preview-toggle { display: inline-flex; }
}

@media (max-width: 820px) {
  .auth-screen { grid-template-columns: 1fr; background-position: 38% center; }
  .auth-screen::before { background: rgba(12, 16, 15, .55); }
  .auth-visual { min-height: 260px; align-items: end; }
  .auth-visual-copy { width: min(520px, calc(100% - 36px)); padding-bottom: 26px; }
  .auth-visual-copy h1 { max-width: 500px; font-size: 34px; line-height: 1.1; }
  .auth-visual-copy p { max-width: 480px; font-size: 13px; line-height: 1.5; }
  .auth-form-side { min-height: auto; padding: 28px 18px 40px; }
  .auth-brand { position: static; width: auto; margin-bottom: 24px; transform: none; }
  .auth-panel { margin-top: 0; padding: 22px; }
  .app-header { height: 62px; padding: 0 14px; }
  .brand small, .save-state, .platform-user, .header-status .button.ghost span { display: none; }
  .workspace { min-height: calc(100vh - 62px); display: block; }
  .steps-sidebar { position: fixed; z-index: 50; top: 62px; left: 0; bottom: 0; width: min(310px, 88vw); height: auto; transform: translateX(-100%); transition: transform 180ms ease; box-shadow: 14px 0 32px rgba(24,32,31,.18); }
  .steps-sidebar.open { transform: translateX(0); }
  .editor { min-height: calc(100vh - 62px); padding: 18px 18px 94px; }
  .mobile-steps-toggle { min-height: 44px; display: flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 0 12px; border: 1px solid #3d4541; border-radius: 6px; color: #f2f5f1; background: #202522; font-size: 11px; font-weight: 760; }
  .panel-heading { margin-bottom: 22px; }
  .panel-heading h1 { font-size: 24px; }
  .editor-actions { left: 0; width: 100%; min-height: 68px; padding: 10px 18px; }
  .preview-pane { top: 62px; width: 100%; }
  .preview-pane.open::before { content: ""; position: absolute; top: 13px; left: 50%; width: 42px; height: 4px; border-radius: 2px; background: #a6afa9; transform: translateX(-50%); }
  .preview-toolbar { padding-top: 21px; }
  .palette-presets { grid-template-columns: repeat(2, 1fr); }
  .theme-presets { grid-template-columns: 1fr; }
  .banner-drop { grid-template-columns: 120px minmax(0, 1fr); }
  .banner-thumb { width: 120px; height: 80px; }
  .banner-drop > .button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 560px) {
  .auth-visual { min-height: 220px; }
  .auth-visual-copy > span { margin-bottom: 8px; font-size: 9px; }
  .auth-visual-copy h1 { margin-bottom: 10px; font-size: 28px; }
  .header-status .button.dark span { display: none; }
  .header-status .button.compact { width: 38px; padding: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .catalog-handoff { grid-template-columns: 34px minmax(0, 1fr); }
  .catalog-handoff .button { grid-column: 1 / -1; width: 100%; }
  .product-row { grid-template-columns: 50px minmax(0, 1fr) 38px; }
  .product-row img, .product-placeholder { width: 50px; height: 50px; }
  .product-row > b { grid-column: 2; grid-row: 2; }
  .product-row .icon-button { grid-column: 3; grid-row: 1 / span 2; }
  .color-field { grid-template-columns: 40px 1fr; }
  .color-field input { width: 40px; height: 40px; }
  .color-field output { grid-column: 2; }
  .banner-drop { grid-template-columns: 1fr; }
  .banner-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
  .banner-upload-footer { align-items: stretch; flex-direction: column; }
  .banner-upload-footer .button { width: 100%; }
  .publish-band { align-items: stretch; flex-direction: column; }
  .published-link { grid-template-columns: 1fr 40px; }
  .published-link > span { grid-column: 1 / -1; }
  .editor-actions { grid-template-columns: auto 1fr auto; padding-inline: 12px; }
  .editor-actions .button { width: 44px; padding: 0; font-size: 0; }
  .editor-actions > span { justify-self: center; }
  .toast { left: 12px; right: 12px; bottom: 82px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
