:root {
  color-scheme: light;
  --bg: #f3f7f6;
  --surface: #ffffff;
  --surface-soft: #f8fbfa;
  --surface-muted: #eef4f2;
  --ink: #13201e;
  --ink-soft: #51615e;
  --ink-faint: #7d8d89;
  --line: #dce7e4;
  --line-strong: #c8d8d4;
  --primary: #0f766e;
  --primary-dark: #075e58;
  --primary-soft: #dff6f2;
  --secondary: #f59e0b;
  --danger: #c2414b;
  --danger-soft: #fff0f1;
  --success: #178052;
  --success-soft: #e9f8f0;
  --warning: #a16207;
  --warning-soft: #fff8df;
  --shadow-sm: 0 1px 2px rgba(25, 55, 49, .05), 0 3px 14px rgba(25, 55, 49, .045);
  --shadow-md: 0 12px 38px rgba(22, 56, 49, .10), 0 2px 8px rgba(22, 56, 49, .05);
  --shadow-lg: 0 28px 70px rgba(16, 44, 38, .16), 0 6px 18px rgba(16, 44, 38, .08);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --sidebar: 252px;
  --topbar: 74px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% -10%, rgba(15, 118, 110, .09), transparent 30rem),
    var(--bg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
::selection { color: #fff; background: var(--primary); }

button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .23);
  outline-offset: 2px;
}

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: var(--ink-soft);
}
.boot-screen strong { color: var(--ink); font-size: 1.45rem; }
.boot-screen p { margin: 0; }
.boot-loader { width: 120px; height: 5px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: var(--line); }
.boot-loader i { display: block; width: 45%; height: 100%; border-radius: inherit; background: var(--primary); animation: loading 1.1s ease-in-out infinite alternate; }
@keyframes loading { from { transform: translateX(-5%); } to { transform: translateX(130%); } }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  color: #e8fffb;
  background:
    radial-gradient(circle at 25% 0%, rgba(255,255,255,.13), transparent 17rem),
    linear-gradient(165deg, #0a5d57 0%, #084843 56%, #073b37 100%);
  border-right: 1px solid rgba(255,255,255,.06);
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 20px; }
.sidebar-brand strong { display: block; font-size: 1.03rem; letter-spacing: -.02em; }
.sidebar-brand span { display: block; margin-top: 2px; color: rgba(232,255,251,.65); font-size: .72rem; }
.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
}
.brand-mark span { position: absolute; display: block; border-radius: 999px; background: var(--primary); }
.brand-mark span:first-child { width: 22px; height: 7px; left: 8px; top: 15px; }
.brand-mark span:last-child { width: 7px; height: 22px; left: 15px; top: 8px; }
.brand-mark::after { content: ""; position: absolute; width: 8px; height: 8px; right: 4px; top: 4px; border-radius: 50%; background: var(--secondary); }
.brand-mark--large { width: 62px; height: 62px; border-radius: 18px; background: var(--primary); }
.brand-mark--large span { background: #fff; }
.brand-mark--large span:first-child { width: 36px; height: 10px; left: 13px; top: 26px; }
.brand-mark--large span:last-child { width: 10px; height: 36px; left: 26px; top: 13px; }

.sidebar-nav { display: grid; gap: 5px; margin-top: 8px; }
.nav-button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: rgba(232,255,251,.76);
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.nav-button:hover { color: #fff; background: rgba(255,255,255,.08); transform: translateX(2px); }
.nav-button.is-active { color: #fff; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.nav-button .icon { opacity: .9; }
.nav-button.is-active .icon { opacity: 1; }
.sidebar-divider { height: 1px; margin: 18px 9px; background: rgba(255,255,255,.11); }
.sidebar-tip {
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 15px;
  color: rgba(232,255,251,.74);
  background: rgba(255,255,255,.06);
}
.sidebar-tip strong { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; color: #fff; font-size: .82rem; }
.sidebar-tip p { margin: 0; font-size: .72rem; line-height: 1.45; }
.sidebar-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 8px 0; color: rgba(232,255,251,.48); font-size: .67rem; }

.main-shell { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(204, 220, 216, .86);
  background: rgba(248, 251, 250, .9);
  backdrop-filter: blur(18px);
}
.topbar-left { display: flex; min-width: 0; align-items: center; gap: 13px; }
.topbar-title { min-width: 0; }
.topbar-title h1 { overflow: hidden; margin: 0; color: var(--ink); font-size: 1.14rem; letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title p { overflow: hidden; margin: 2px 0 0; color: var(--ink-faint); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.topbar .mobile-menu-button { display: none; }
.connection-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--surface);
  font-size: .7rem;
  font-weight: 700;
}
.connection-badge i { width: 7px; height: 7px; border-radius: 50%; background: #c38b21; box-shadow: 0 0 0 3px rgba(195,139,33,.12); }
.connection-badge.is-online i { background: #24a76b; box-shadow: 0 0 0 3px rgba(36,167,107,.12); }

.content { width: 100%; max-width: 1620px; margin: 0 auto; padding: 26px 30px 46px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.page-heading h2 { margin: 0 0 6px; font-size: clamp(1.55rem, 2.3vw, 2.15rem); line-height: 1.1; letter-spacing: -.045em; }
.page-heading p { max-width: 720px; margin: 0; color: var(--ink-soft); line-height: 1.55; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--primary); font-size: .69rem; font-weight: 900; letter-spacing: .105em; text-transform: uppercase; }
.muted { color: var(--ink-soft); }
.helper { margin: 6px 0 0; color: var(--ink-faint); font-size: .74rem; line-height: 1.5; }
.small { font-size: .76rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-weight: 800;
  font-size: .81rem;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button--primary { color: #fff; background: var(--primary); box-shadow: 0 8px 18px rgba(15,118,110,.18); }
.button--primary:hover { background: var(--primary-dark); box-shadow: 0 10px 22px rgba(15,118,110,.24); }
.button--secondary { color: var(--primary-dark); border-color: #b9ddd7; background: var(--primary-soft); }
.button--secondary:hover { border-color: #92cfc5; background: #d4f0eb; }
.button--ghost { color: var(--ink-soft); border-color: var(--line); background: var(--surface); }
.button--ghost:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-soft); }
.button--danger { color: #fff; background: var(--danger); }
.button--danger-soft { color: var(--danger); border-color: #f0c7cb; background: var(--danger-soft); }
.button--wide { width: 100%; }
.button--compact { min-height: 35px; padding: 7px 10px; border-radius: 9px; font-size: .73rem; }
.button--large { min-height: 50px; padding: 12px 20px; border-radius: 13px; font-size: .9rem; }
.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: var(--surface);
  cursor: pointer;
  transition: .16s ease;
}
.icon-button:hover { color: var(--ink); border-color: var(--line-strong); background: var(--surface-soft); transform: translateY(-1px); }
.icon-button--plain { border-color: transparent; background: transparent; }
.icon { flex: 0 0 auto; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 20px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 19px 20px 0; }
.card-header h3 { margin: 0; font-size: .98rem; letter-spacing: -.02em; }
.card-header p { margin: 4px 0 0; color: var(--ink-soft); font-size: .76rem; line-height: 1.45; }

.dashboard-hero {
  position: relative;
  min-height: 310px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: center;
  gap: 30px;
  overflow: hidden;
  padding: 42px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 0%, rgba(255,255,255,.18), transparent 24rem),
    linear-gradient(135deg, #0f766e 0%, #075e58 56%, #06453f 100%);
  box-shadow: var(--shadow-md);
}
.dashboard-hero::before { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; bottom: -110px; border: 35px solid rgba(255,255,255,.08); border-radius: 50%; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { color: #9ff5e6; }
.hero-copy h2 { max-width: 720px; margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1; letter-spacing: -.06em; }
.hero-copy p { max-width: 650px; margin: 18px 0 0; color: rgba(255,255,255,.74); line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-actions .button--primary { color: var(--primary-dark); background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.hero-actions .button--ghost { color: #fff; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); }
.hero-preview { position: relative; z-index: 2; height: 245px; display: grid; place-items: center; }
.mini-poster {
  position: absolute;
  width: 155px;
  aspect-ratio: .707;
  padding: 16px;
  overflow: hidden;
  border-radius: 9px;
  color: #17221f;
  background: #fff;
  box-shadow: 0 24px 48px rgba(0,0,0,.22);
  transform-origin: bottom center;
}
.mini-poster:nth-child(1) { z-index: 1; transform: translateX(-105px) rotate(-10deg) scale(.9); opacity: .8; }
.mini-poster:nth-child(2) { z-index: 3; transform: translateY(-5px); }
.mini-poster:nth-child(3) { z-index: 2; transform: translateX(105px) rotate(10deg) scale(.9); opacity: .85; }
.mini-poster .bar { height: 13%; margin: -16px -16px 12px; background: var(--secondary); }
.mini-poster .pill { width: 52%; height: 7px; border-radius: 99px; background: var(--primary); }
.mini-poster .mock-product { width: 44%; height: 49%; margin: 15px auto 4px; border-radius: 16px 16px 8px 8px; background: linear-gradient(155deg, #f8fafc, #bde7e1); border: 1px solid #cbd5e1; }
.mini-poster .mock-price { color: #c92335; font-size: 1.6rem; font-weight: 950; text-align: center; letter-spacing: -.07em; }
.mini-poster .mock-line { height: 5px; margin: 6px auto; border-radius: 99px; background: #dbe5e2; }
.mini-poster .mock-line.short { width: 65%; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 18px; }
.stat-icon { width: 44px; height: 44px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; color: var(--primary); background: var(--primary-soft); }
.stat-card strong { display: block; font-size: 1.28rem; letter-spacing: -.04em; }
.stat-card span { color: var(--ink-faint); font-size: .72rem; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); gap: 18px; margin-top: 18px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.section-title h3 { margin: 0; font-size: 1rem; letter-spacing: -.025em; }
.section-title a, .text-button { padding: 0; border: 0; color: var(--primary); background: transparent; font-size: .75rem; font-weight: 800; cursor: pointer; text-decoration: none; }
.recent-list { display: grid; gap: 10px; }
.recent-item { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 10px; border: 1px solid transparent; border-radius: 13px; transition: .16s ease; }
.recent-item:hover { border-color: var(--line); background: var(--surface-soft); }
.recent-thumb { width: 70px; height: 52px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: var(--surface-muted); }
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-item strong { display: block; overflow: hidden; font-size: .81rem; text-overflow: ellipsis; white-space: nowrap; }
.recent-item span { display: block; margin-top: 4px; color: var(--ink-faint); font-size: .68rem; }
.empty-state { min-height: 170px; display: grid; place-content: center; justify-items: center; padding: 28px; color: var(--ink-soft); text-align: center; }
.empty-state .empty-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 11px; border-radius: 16px; color: var(--primary); background: var(--primary-soft); }
.empty-state strong { color: var(--ink); font-size: .9rem; }
.empty-state p { max-width: 360px; margin: 6px 0 15px; font-size: .75rem; line-height: 1.5; }
.quick-products { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.quick-product { display: grid; grid-template-columns: 55px minmax(0,1fr); align-items: center; gap: 10px; min-height: 84px; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); cursor: pointer; transition: .16s ease; }
.quick-product:hover { border-color: #9bcfc6; background: var(--primary-soft); transform: translateY(-1px); }
.quick-product img { width: 52px; height: 62px; object-fit: contain; }
.quick-product strong { display: block; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.quick-product span { display: block; margin-top: 4px; color: var(--ink-faint); font-size: .65rem; }

.wizard-shell { display: grid; gap: 18px; }
.steps-card { padding: 14px 18px; }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); align-items: center; }
.step-button { position: relative; min-width: 0; display: flex; align-items: center; gap: 9px; padding: 6px; border: 0; background: transparent; cursor: pointer; text-align: left; }
.step-button:not(:last-child)::after { content: ""; position: absolute; z-index: 0; height: 2px; left: calc(50% + 22px); right: calc(-50% + 22px); top: 23px; background: var(--line); }
.step-button.is-complete:not(:last-child)::after { background: #8ed2c7; }
.step-number { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 2px solid var(--line); border-radius: 50%; color: var(--ink-faint); background: var(--surface); font-size: .72rem; font-weight: 900; transition: .18s ease; }
.step-copy { position: relative; z-index: 1; min-width: 0; padding-right: 8px; background: var(--surface); }
.step-copy strong { display: block; overflow: hidden; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.step-copy span { display: block; margin-top: 2px; color: var(--ink-faint); font-size: .62rem; }
.step-button.is-active .step-number { color: #fff; border-color: var(--primary); background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.step-button.is-complete .step-number { color: var(--primary); border-color: #a7d9d1; background: var(--primary-soft); }

.wizard-grid { display: grid; grid-template-columns: minmax(510px, .96fr) minmax(450px, 1.04fr); align-items: start; gap: 18px; }
.wizard-form { min-width: 0; }
.wizard-panel { overflow: hidden; }
.wizard-panel-header { padding: 22px 23px 18px; border-bottom: 1px solid var(--line); }
.wizard-panel-header h2 { margin: 0; font-size: 1.16rem; letter-spacing: -.03em; }
.wizard-panel-header p { margin: 6px 0 0; color: var(--ink-soft); font-size: .77rem; line-height: 1.5; }
.wizard-panel-body { padding: 22px 23px; }
.wizard-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 23px; border-top: 1px solid var(--line); background: var(--surface-soft); }
.wizard-actions-group { display: flex; align-items: center; gap: 9px; }
.preview-panel { position: sticky; top: calc(var(--topbar) + 18px); overflow: hidden; }
.preview-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.preview-header strong { font-size: .8rem; }
.preview-meta { display: flex; align-items: center; gap: 7px; color: var(--ink-faint); font-size: .67rem; }
.preview-stage {
  min-height: 600px;
  display: grid;
  place-items: center;
  padding: 30px;
  overflow: hidden;
  background:
    linear-gradient(45deg, #e7eeec 25%, transparent 25%) 0 0 / 20px 20px,
    linear-gradient(-45deg, #e7eeec 25%, transparent 25%) 0 10px / 20px 20px,
    linear-gradient(45deg, transparent 75%, #e7eeec 75%) 10px -10px / 20px 20px,
    linear-gradient(-45deg, transparent 75%, #e7eeec 75%) -10px 0 / 20px 20px,
    #edf3f1;
}
.poster-frame { max-width: 100%; max-height: 700px; display: grid; place-items: center; filter: drop-shadow(0 24px 32px rgba(23,51,45,.16)); }
#poster-preview { max-width: 100%; max-height: 700px; display: block; background: #fff; border-radius: 3px; }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 11px 16px; color: var(--ink-faint); background: var(--surface); font-size: .68rem; }
.palette-preview { display: flex; align-items: center; gap: 4px; }
.palette-preview i { width: 12px; height: 12px; border: 1px solid rgba(0,0,0,.12); border-radius: 50%; }

.form-section + .form-section { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.form-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 14px; }
.form-section-heading h3 { margin: 0; font-size: .91rem; letter-spacing: -.02em; }
.form-section-heading p { margin: 4px 0 0; color: var(--ink-faint); font-size: .7rem; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-full { grid-column: 1 / -1; }
.field { min-width: 0; display: grid; gap: 7px; }
.field > span, .field-label { color: var(--ink-soft); font-size: .7rem; font-weight: 800; }
.field small { color: var(--ink-faint); font-size: .65rem; line-height: 1.4; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.field textarea { min-height: 84px; resize: vertical; line-height: 1.45; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a8c8c1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,118,110,.1); outline: 0; }
.field input[readonly] { color: var(--primary-dark); border-color: #c5e3de; background: var(--primary-soft); font-weight: 900; }
.input-with-icon { position: relative; }
.input-with-icon .icon { position: absolute; left: 12px; top: 50%; color: var(--ink-faint); transform: translateY(-50%); pointer-events: none; }
.input-with-icon input { padding-left: 40px; }
.input-suffix { position: relative; }
.input-suffix input { padding-right: 43px; }
.input-suffix span { position: absolute; right: 12px; top: 50%; color: var(--ink-faint); font-size: .75rem; font-weight: 800; transform: translateY(-50%); pointer-events: none; }
.inline-form { display: flex; align-items: flex-end; gap: 10px; }
.grow { flex: 1 1 auto; }

.search-toolbar { display: flex; align-items: flex-end; gap: 9px; }
.search-toolbar .field { flex: 1 1 auto; }
.product-results { display: grid; gap: 8px; max-height: 310px; margin-top: 12px; overflow: auto; scrollbar-width: thin; }
.product-result { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: .16s ease; }
.product-result:hover { border-color: #9bcfc6; background: var(--primary-soft); }
.product-result.is-selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(15,118,110,.08); }
.product-result img { width: 54px; height: 58px; object-fit: contain; }
.product-result strong { display: block; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.product-result .product-name { display: block; margin-top: 3px; overflow: hidden; color: var(--ink-soft); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.product-result .product-code { display: block; margin-top: 4px; color: var(--ink-faint); font-size: .61rem; }
.product-result .price { color: var(--primary-dark); font-size: .77rem; font-weight: 900; white-space: nowrap; }
.product-selected { display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 16px; padding: 15px; border: 1px solid #b8ded8; border-radius: 14px; background: linear-gradient(135deg, #f0fcfa, #fff); }
.product-selected-media { display: grid; place-items: center; min-height: 125px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.product-selected-media img { width: 92px; height: 118px; object-fit: contain; }
.product-selected-copy { min-width: 0; }
.product-selected-copy .status-line { display: flex; align-items: center; gap: 6px; color: var(--success); font-size: .68rem; font-weight: 900; }
.product-selected-copy h4 { margin: 8px 0 3px; font-size: .93rem; }
.product-selected-copy p { margin: 0; color: var(--ink-soft); font-size: .74rem; line-height: 1.4; }
.product-selected-copy code { display: block; margin-top: 8px; color: var(--ink-faint); font: 600 .64rem var(--font); }
.image-dropzone { position: relative; min-height: 128px; display: grid; place-items: center; padding: 15px; overflow: hidden; border: 1.5px dashed #b7cbc7; border-radius: 13px; color: var(--ink-soft); background: var(--surface-soft); text-align: center; transition: .16s ease; }
.image-dropzone:hover { border-color: var(--primary); background: var(--primary-soft); }
.image-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.image-dropzone .drop-icon { width: 42px; height: 42px; display: grid; place-items: center; margin: 0 auto 8px; border-radius: 13px; color: var(--primary); background: #fff; box-shadow: var(--shadow-sm); }
.image-dropzone strong { display: block; color: var(--ink); font-size: .76rem; }
.image-dropzone span { display: block; margin-top: 4px; color: var(--ink-faint); font-size: .66rem; }

.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.offer-card { display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; gap: 11px; min-height: 78px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; text-align: left; transition: .16s ease; }
.offer-card:hover { border-color: #a6d3cb; transform: translateY(-1px); }
.offer-card.is-selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(15,118,110,.07); }
.offer-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--surface-muted); }
.offer-card.is-selected .offer-icon { color: #fff; background: var(--primary); }
.offer-card strong { display: block; font-size: .75rem; }
.offer-card span { display: block; margin-top: 3px; color: var(--ink-faint); font-size: .65rem; line-height: 1.35; }
.price-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 17px; border: 1px solid #b8ded8; border-radius: 14px; background: linear-gradient(135deg, var(--primary-soft), #fff); }
.price-summary span { display: block; color: var(--ink-soft); font-size: .69rem; font-weight: 800; }
.price-summary strong { display: block; margin-top: 3px; color: var(--primary-dark); font-size: 1.65rem; letter-spacing: -.05em; }
.price-summary .discount-chip { padding: 7px 10px; border-radius: 999px; color: #fff; background: var(--primary); font-size: .7rem; font-weight: 900; }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 52px; padding: 10px 0; }
.switch-copy strong { display: block; font-size: .76rem; }
.switch-copy span { display: block; margin-top: 3px; color: var(--ink-faint); font-size: .66rem; line-height: 1.35; }
.switch { position: relative; width: 43px; height: 25px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cbd8d5; cursor: pointer; transition: .18s ease; }
.switch span::after { content: ""; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: .18s ease; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid rgba(15,118,110,.2); outline-offset: 2px; }

.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-muted); }
.segmented button { min-height: 34px; padding: 7px 12px; border: 0; border-radius: 8px; color: var(--ink-soft); background: transparent; font-size: .7rem; font-weight: 800; cursor: pointer; }
.segmented button.is-active { color: var(--ink); background: #fff; box-shadow: var(--shadow-sm); }
.template-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.template-card { position: relative; display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 12px; min-height: 124px; padding: 11px; border: 1px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; text-align: left; transition: .17s ease; }
.template-card:hover { border-color: #a5cec7; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.template-card.is-selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(15,118,110,.08); }
.template-card.is-selected::after { content: "✓"; position: absolute; width: 22px; height: 22px; display: grid; place-items: center; right: 8px; top: 8px; border-radius: 50%; color: #fff; background: var(--primary); font-size: .7rem; font-weight: 900; }
.template-thumb { position: relative; min-height: 100px; overflow: hidden; border: 1px solid rgba(0,0,0,.07); border-radius: 9px; background: var(--thumb-bg, #fff); }
.template-thumb::before { content: ""; position: absolute; width: 34%; height: 72%; left: 9%; bottom: 8%; border-radius: 9px 9px 5px 5px; background: linear-gradient(160deg, #fff, var(--thumb-soft)); box-shadow: 0 5px 11px rgba(0,0,0,.08); }
.template-thumb::after { content: "9,90€"; position: absolute; right: 7%; bottom: 17%; color: var(--thumb-main); font-size: .72rem; font-weight: 950; letter-spacing: -.05em; }
.template-thumb .mock-band { position: absolute; height: 18%; inset: 0 0 auto; background: var(--thumb-main); }
.template-thumb .mock-badge { position: absolute; width: 38%; height: 9%; right: 8%; top: 30%; border-radius: 999px; background: var(--thumb-accent); }
.template-copy { align-self: center; min-width: 0; }
.template-copy strong { display: block; font-size: .78rem; }
.template-copy p { margin: 4px 0 8px; color: var(--ink-faint); font-size: .65rem; line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-flex; min-height: 20px; align-items: center; padding: 3px 6px; border-radius: 999px; color: var(--ink-soft); background: var(--surface-muted); font-size: .57rem; font-weight: 800; }
.color-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.color-field { display: grid; gap: 6px; }
.color-field span { color: var(--ink-soft); font-size: .66rem; font-weight: 800; }
.color-input { min-height: 40px; display: flex; align-items: center; gap: 7px; padding: 6px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; }
.color-input input[type="color"] { width: 28px; height: 28px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: transparent; cursor: pointer; }
.color-input code { overflow: hidden; color: var(--ink-soft); font: 700 .61rem var(--font); text-overflow: ellipsis; }
.range-row { display: grid; grid-template-columns: 1fr 52px; align-items: center; gap: 10px; }
.range-row input[type="range"] { width: 100%; accent-color: var(--primary); }
.range-value { min-height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--ink-soft); background: var(--surface-soft); font-size: .65rem; font-weight: 800; }

.export-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.export-mode { min-height: 112px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; text-align: center; transition: .16s ease; }
.export-mode:hover { border-color: #a6d3cb; transform: translateY(-1px); }
.export-mode.is-selected { color: var(--primary-dark); border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(15,118,110,.07); }
.export-mode .mode-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--surface-muted); }
.export-mode.is-selected .mode-icon { color: #fff; background: var(--primary); }
.export-mode strong { font-size: .74rem; }
.export-mode span { color: var(--ink-faint); font-size: .62rem; line-height: 1.35; }
.export-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.summary-cell { padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.summary-cell span { display: block; color: var(--ink-faint); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.summary-cell strong { display: block; margin-top: 5px; font-size: .78rem; }
.export-actions-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.export-action { min-height: 68px; display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; text-align: left; transition: .16s ease; }
.export-action:hover { border-color: #9ecdc5; background: var(--primary-soft); transform: translateY(-1px); }
.export-action .action-icon { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; color: var(--primary); background: var(--surface-muted); }
.export-action strong { display: block; font-size: .73rem; }
.export-action span { display: block; margin-top: 3px; color: var(--ink-faint); font-size: .62rem; }
.esl-notice { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 11px; padding: 13px; border: 1px solid #eed79a; border-radius: 13px; color: #654a0b; background: var(--warning-soft); }
.esl-palette { display: grid; grid-template-columns: repeat(2, 14px); gap: 2px; align-content: start; }
.esl-palette i { width: 14px; height: 14px; border: 1px solid rgba(0,0,0,.14); }
.esl-notice strong { display: block; font-size: .73rem; }
.esl-notice p { margin: 3px 0 0; font-size: .64rem; line-height: 1.45; }

.library-toolbar, .catalog-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.library-toolbar .search-box, .catalog-toolbar .search-box { width: min(430px, 100%); }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.poster-card { overflow: hidden; }
.poster-card-thumb { position: relative; height: 225px; display: grid; place-items: center; overflow: hidden; background: #eaf0ee; }
.poster-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.poster-card-thumb .no-thumb { color: var(--ink-faint); }
.poster-card-actions { position: absolute; right: 9px; top: 9px; display: flex; gap: 6px; opacity: 0; transform: translateY(-5px); transition: .16s ease; }
.poster-card:hover .poster-card-actions { opacity: 1; transform: none; }
.poster-card-actions .icon-button { width: 34px; height: 34px; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.poster-card-body { padding: 14px; }
.poster-card-body strong { display: block; overflow: hidden; font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.poster-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; color: var(--ink-faint); font-size: .63rem; }
.poster-card-footer { display: flex; gap: 7px; margin-top: 12px; }
.poster-card-footer .button { flex: 1 1 auto; }

.catalog-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(330px,.65fr); align-items: start; gap: 18px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.catalog-card { position: relative; display: grid; grid-template-rows: 148px auto; overflow: hidden; }
.catalog-card-media { display: grid; place-items: center; padding: 12px; background: var(--surface-soft); }
.catalog-card-media img { width: 110px; height: 130px; object-fit: contain; }
.catalog-card-body { min-width: 0; padding: 12px; }
.catalog-card-body .brand { display: block; color: var(--primary); font-size: .62rem; font-weight: 900; letter-spacing: .07em; }
.catalog-card-body strong { display: block; overflow: hidden; margin-top: 4px; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.catalog-card-body p { height: 2.6em; margin: 4px 0 0; overflow: hidden; color: var(--ink-faint); font-size: .64rem; line-height: 1.3; }
.catalog-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.catalog-card-bottom b { font-size: .75rem; }
.catalog-form { position: sticky; top: calc(var(--topbar) + 18px); }
.file-row { display: flex; flex-wrap: wrap; gap: 8px; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.settings-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.55fr); align-items: start; gap: 18px; }
.settings-preview { position: sticky; top: calc(var(--topbar) + 18px); overflow: hidden; }
.store-preview-cover { height: 150px; padding: 22px; color: #fff; background: linear-gradient(135deg, var(--preview-primary, #0f766e), color-mix(in srgb, var(--preview-primary, #0f766e) 70%, #000)); }
.store-preview-cover .pharmacy-cross { width: 48px; height: 48px; position: relative; border-radius: 14px; background: #fff; }
.store-preview-cover .pharmacy-cross::before, .store-preview-cover .pharmacy-cross::after { content: ""; position: absolute; border-radius: 999px; background: var(--preview-primary, #0f766e); }
.store-preview-cover .pharmacy-cross::before { width: 28px; height: 8px; left: 10px; top: 20px; }
.store-preview-cover .pharmacy-cross::after { width: 8px; height: 28px; left: 20px; top: 10px; }
.store-preview-body { padding: 20px; }
.store-preview-body h3 { margin: 0; font-size: 1.08rem; }
.store-preview-body p { margin: 5px 0 0; color: var(--ink-soft); font-size: .73rem; line-height: 1.45; }
.store-preview-contact { display: grid; gap: 7px; margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.store-preview-contact span { display: flex; align-items: center; gap: 8px; color: var(--ink-soft); font-size: .7rem; }
.logo-preview { min-height: 105px; display: grid; place-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.logo-preview img { max-height: 78px; object-fit: contain; }

.modal {
  width: min(620px, calc(100vw - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(7, 26, 23, .58); backdrop-filter: blur(5px); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 20px 21px 16px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.03em; }
.modal-header .eyebrow { margin-bottom: 4px; }
.scanner-modal { width: min(680px, calc(100vw - 30px)); }
.scanner-stage { position: relative; aspect-ratio: 16/9; margin: 19px 20px 0; overflow: hidden; border-radius: 14px; background: #13201e; }
.scanner-stage video { width: 100%; height: 100%; display: block; object-fit: cover; }
.scanner-placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; padding: 30px; color: rgba(255,255,255,.72); background: linear-gradient(135deg, #1b302c, #0e211e); text-align: center; }
.scanner-placeholder strong { color: #fff; font-size: .9rem; }
.scanner-placeholder span { max-width: 390px; margin-top: 6px; font-size: .72rem; line-height: 1.5; }
.scanner-frame { position: absolute; z-index: 2; width: 68%; height: 36%; left: 16%; top: 32%; border: 2px solid rgba(255,255,255,.9); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0,0,0,.2); pointer-events: none; }
.scanner-frame span { position: absolute; left: 5%; right: 5%; top: 50%; height: 2px; background: #ff334e; box-shadow: 0 0 12px #ff334e; animation: scanline 1.7s ease-in-out infinite alternate; }
@keyframes scanline { from { transform: translateY(-46px); } to { transform: translateY(46px); } }
.scanner-modal > .helper { margin: 12px 20px; }
.scanner-modal > .inline-form { padding: 0 20px 21px; }
.confirm-modal { width: min(460px, calc(100vw - 30px)); }
.confirm-modal > p { margin: 0; padding: 20px 21px; color: var(--ink-soft); font-size: .8rem; line-height: 1.55; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 20px 20px; }

.toast-root { position: fixed; z-index: 100; right: 20px; bottom: 20px; width: min(390px, calc(100vw - 40px)); display: grid; gap: 9px; pointer-events: none; }
.toast { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.96); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); animation: toast-in .22s ease both; pointer-events: auto; }
.toast.is-leaving { animation: toast-out .2s ease both; }
.toast-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: var(--primary-soft); }
.toast--error .toast-icon { color: var(--danger); background: var(--danger-soft); }
.toast--warning .toast-icon { color: var(--warning); background: var(--warning-soft); }
.toast strong { display: block; font-size: .75rem; }
.toast span { display: block; margin-top: 2px; color: var(--ink-soft); font-size: .66rem; line-height: 1.4; }
.toast button { border: 0; color: var(--ink-faint); background: transparent; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(12px) scale(.98); } }

.loading-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-soft); background: rgba(248,251,250,.88); backdrop-filter: blur(4px); }
.spinner { width: 28px; height: 28px; border: 3px solid #cee2de; border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1260px) {
  :root { --sidebar: 224px; }
  .content { padding-inline: 22px; }
  .wizard-grid { grid-template-columns: minmax(450px, .95fr) minmax(390px, 1.05fr); }
  .preview-stage { min-height: 520px; padding: 22px; }
  #poster-preview { max-height: 620px; }
  .library-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 1040px) {
  :root { --sidebar: 78px; }
  .sidebar { padding-inline: 11px; }
  .sidebar-brand { justify-content: center; padding-inline: 0; }
  .sidebar-brand > div:last-child, .nav-button span, .sidebar-tip, .sidebar-footer span:first-child { display: none; }
  .nav-button { justify-content: center; padding-inline: 0; }
  .sidebar-footer { justify-content: center; }
  .dashboard-hero { grid-template-columns: 1fr .72fr; padding: 34px; }
  .wizard-grid { grid-template-columns: 1fr; }
  .preview-panel { position: relative; top: auto; }
  .preview-stage { min-height: 540px; }
  .catalog-layout, .settings-layout { grid-template-columns: 1fr; }
  .catalog-form, .settings-preview { position: relative; top: auto; }
}

@media (max-width: 760px) {
  :root { --topbar: 65px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; width: min(300px, 86vw); padding: 20px 16px; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 35; background: rgba(5,22,19,.5); backdrop-filter: blur(3px); }
  .sidebar-brand { justify-content: flex-start; }
  .sidebar-brand > div:last-child, .nav-button span, .sidebar-tip, .sidebar-footer span:first-child { display: block; }
  .nav-button { justify-content: flex-start; padding-inline: 12px; }
  .sidebar-footer { justify-content: space-between; }
  .topbar { padding: 0 15px; }
  .topbar .mobile-menu-button { display: inline-grid; }
  .connection-badge span { display: none; }
  .content { padding: 18px 14px 36px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-hero { min-height: 0; grid-template-columns: 1fr; padding: 27px 23px; }
  .hero-preview { display: none; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .steps-card { padding: 10px; overflow-x: auto; }
  .steps { min-width: 600px; }
  .step-copy span { display: none; }
  .wizard-panel-header, .wizard-panel-body { padding-inline: 16px; }
  .wizard-actions { position: sticky; bottom: 0; z-index: 9; padding: 12px 14px; }
  .wizard-actions .button span.hide-mobile { display: none; }
  .preview-stage { min-height: 430px; padding: 15px; }
  #poster-preview { max-height: 520px; }
  .form-grid, .form-grid--3 { grid-template-columns: 1fr; }
  .form-grid .span-2, .form-grid .span-full { grid-column: auto; }
  .offer-grid, .template-grid { grid-template-columns: 1fr; }
  .color-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .export-mode-grid { grid-template-columns: 1fr; }
  .export-mode { min-height: 76px; grid-template-columns: 40px minmax(0,1fr); place-content: initial; justify-items: start; text-align: left; }
  .export-summary { grid-template-columns: 1fr; }
  .export-actions-grid { grid-template-columns: 1fr; }
  .library-toolbar, .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .library-toolbar .search-box, .catalog-toolbar .search-box { width: 100%; }
  .library-grid, .catalog-grid { grid-template-columns: 1fr; }
  .poster-card-thumb { height: 245px; }
  .product-selected { grid-template-columns: 82px minmax(0,1fr); }
  .product-selected-media { min-height: 105px; }
  .product-selected-media img { width: 72px; height: 96px; }
  .search-toolbar { align-items: stretch; flex-direction: column; }
  .search-toolbar .button { width: 100%; }
  .product-result { grid-template-columns: 52px minmax(0,1fr); }
  .product-result .price { grid-column: 2; }
  .inline-form { align-items: stretch; flex-direction: column; }
  .inline-form .button { width: 100%; }
  .topbar-actions .button--ghost { display: none; }
}

@media (max-width: 430px) {
  .stats-grid { grid-template-columns: 1fr; }
  .quick-products { grid-template-columns: 1fr; }
  .wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .wizard-actions-group { width: 100%; }
  .wizard-actions-group .button { flex: 1 1 0; }
  .template-card { grid-template-columns: 78px minmax(0,1fr); }
  .poster-card-actions { opacity: 1; transform: none; }
}

@media print {
  .sidebar, .topbar, .wizard-form, .steps-card, .preview-header, .preview-footer { display: none !important; }
  .app-shell, .main-shell, .content, .wizard-grid, .preview-panel, .preview-stage { display: block; width: auto; max-width: none; margin: 0; padding: 0; border: 0; box-shadow: none; background: #fff; }
  #poster-preview { width: 100%; max-width: none; max-height: none; }
}

.product-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.poster-logo-editor {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.poster-logo-editor .logo-preview {
  min-height: 88px;
}
@media (max-width: 520px) {
  .poster-logo-editor { grid-template-columns: 1fr; }
}
