:root {
  --ink: #1e3028;
  --muted: #718078;
  --line: #e7ece8;
  --paper: #ffffff;
  --canvas: #f5f7f4;
  --green: #185b40;
  --green-dark: #103d2c;
  --green-soft: #eaf5ed;
  --green-pale: #f4faf5;
  --lime: #d9ef76;
  --gold: #f3cb63;
  --coral: #ef7458;
  --shadow: 0 12px 34px rgba(32, 52, 40, .07);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(55, 143, 96, .26); outline-offset: 2px; }
.auth-gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 80% 15%,#e4f0dc,transparent 35%),var(--canvas); }
.auth-card { width: min(100%,460px); display: grid; gap: 14px; padding: 34px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 18px 50px rgba(35,66,43,.08); }
.auth-card .brand-mark { width: 42px; height: 42px; border-radius: 14px; background: #174b32; color: var(--lime); font: 800 23px "Manrope",sans-serif; }
.auth-card .eyebrow { margin: 2px 0 -8px; }
.auth-card h1 { margin: 0; color: #173b29; font: 800 27px "Manrope",sans-serif; letter-spacing: -.8px; }
.auth-card>p:not(.eyebrow) { margin: 0; color: #718176; font-size: 13px; line-height: 1.65; }
.auth-fields { display: grid; gap: 12px; }
.auth-fields input { height: 42px; min-width: 0; padding: 0 12px; border: 1px solid #dfe8df; border-radius: 9px; background: white; color: #263e30; }
.auth-footnote { padding-top: 10px; border-top: 1px solid #edf1ed; font-size: 10px!important; }
.signout-button { padding: 6px 10px; border: 1px solid #e3e9e4; border-radius: 8px; background: white; color: #66766a; font-size: 9px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { height: 100vh; position: sticky; top: 0; display: flex; flex-direction: column; padding: 23px 14px 14px; background: #123d2d; color: #eff7ed; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 9px 21px; text-decoration: none; color: inherit; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #153f2f; background: #d9ef76; }
.brand-mark svg { width: 24px; height: 24px; }
.brand strong { display: block; font: 800 19px/1 "Manrope", sans-serif; letter-spacing: -.8px; }
.brand small { display: block; margin-top: 4px; font-size: 9px; letter-spacing: .8px; text-transform: uppercase; color: #a9c6b3; }
.workspace-switcher { display: flex; align-items: center; gap: 9px; padding: 10px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.05); }
.switcher-avatar, .user-avatar, .top-avatar { display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font: 700 13px "Manrope", sans-serif; }
.switcher-avatar { width: 31px; height: 31px; color: #123d2d; background: #d9ef76; }
.switcher-text { min-width: 0; flex: 1; }
.switcher-text small { display: block; font-size: 8px; letter-spacing: .9px; color: #a9c6b3; }
.switcher-text strong { display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.chevron { color: #9db9a7; font-size: 17px; }
.nav-label { margin: 28px 9px 9px; font-size: 8px; font-weight: 700; letter-spacing: 1.2px; color: #7fa18b; }
.secondary-label { margin-top: 26px; }
.main-nav { display: grid; gap: 4px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 0; border-radius: 9px; background: transparent; color: #b8cfc0; text-align: left; font-size: 11px; font-weight: 500; transition: .18s ease; }
.nav-item:hover { background: rgba(255,255,255,.07); color: white; }
.nav-item.active { position: relative; background: #d9ef76; color: #173b2c; font-weight: 700; }
.nav-icon { width: 18px; height: 18px; display: grid; place-items: center; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-count { margin-left: auto; min-width: 20px; padding: 2px 6px; border-radius: 30px; background: rgba(255,255,255,.1); color: #d6e8db; text-align: center; font-size: 9px; }
.nav-item.active .nav-count { background: rgba(20,60,43,.1); color: #17442f; }
.nav-active-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: #1b5940; }
.sidebar-spacer { flex: 1; }
.help-card { position: relative; padding: 13px 12px 12px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; background: rgba(255,255,255,.055); }
.help-spark { position: absolute; right: 12px; top: 10px; color: #d9ef76; font-size: 15px; }
.help-card strong { font-size: 11px; }
.help-card p { margin: 6px 0 9px; color: #a9c6b3; font-size: 9px; line-height: 1.45; }
.help-card button { padding: 0; border: 0; background: none; color: #d9ef76; font-size: 9px; font-weight: 700; }
.help-card button span { margin-left: 5px; }
.sidebar-user { display: flex; align-items: center; gap: 8px; margin-top: 13px; padding: 12px 5px 2px; border-top: 1px solid rgba(255,255,255,.1); }
.user-avatar { width: 30px; height: 30px; background: #d8e5d8; color: #174530; }
.sidebar-user div:nth-child(2) { flex: 1; min-width: 0; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { font-size: 9px; font-weight: 600; }
.sidebar-user small { margin-top: 3px; color: #8eac98; font-size: 8px; }
.more-button { border: 0; background: transparent; color: #6d8075; letter-spacing: 1px; }
.sidebar .more-button { color: #94b09e; }
.main-area { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 58px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 33px; border-bottom: 1px solid #e8ece8; background: rgba(255,255,255,.86); }
.breadcrumbs { display: flex; align-items: center; gap: 10px; color: #87948c; font-size: 10px; }
.breadcrumbs strong { color: #25392f; font-weight: 700; }
.crumb-sep { color: #c0cac2; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.save-status { display: inline-flex; align-items: center; gap: 6px; color: #728177; font-size: 9px; }
.save-status i { width: 6px; height: 6px; border-radius: 50%; background: #56a86e; box-shadow: 0 0 0 3px #e8f4ea; }
.icon-button { width: 25px; height: 25px; border: 1px solid #e3e9e4; border-radius: 50%; background: white; color: #7a8a80; font-size: 11px; }
.top-avatar { width: 27px; height: 27px; background: #dff0e2; color: #246241; font-size: 10px; }
.view { min-height: 0; flex: 1; }
.campaign-view { display: grid; grid-template-columns: minmax(570px, 1fr) 378px; align-items: start; gap: 30px; max-width: 1530px; width: 100%; margin: 0 auto; padding: 29px 33px 20px; }
.editor-column { min-width: 0; }
.page-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 17px; }
.eyebrow { display: flex; align-items: center; gap: 6px; color: #73917f; font-size: 8px; font-weight: 700; letter-spacing: 1.1px; }
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: #8dbb5d; }
h1, h2, h3, p { margin-top: 0; }
.page-intro h1 { margin: 8px 0 4px; font: 800 23px/1.2 "Manrope", sans-serif; letter-spacing: -.8px; color: #1e352a; }
.page-intro p { margin: 0; color: #7c8b81; font-size: 10px; }
.auto-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1px solid #e4eee5; border-radius: 30px; background: #fafff8; color: #64806b; white-space: nowrap; font-size: 8px; font-weight: 600; }
.auto-pill span { color: #79a84c; font-size: 11px; }
.campaign-progress { display: flex; align-items: center; gap: 9px; padding: 10px 14px; margin-bottom: 13px; border: 1px solid #e8ede8; border-radius: 10px; background: #fff; }
.progress-step { display: inline-flex; align-items: center; gap: 6px; color: #96a199; font-size: 9px; }
.progress-step span { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #dce5dd; border-radius: 50%; color: #849389; font-size: 8px; }
.progress-step strong { font-weight: 600; }
.progress-step.active { color: #2e6545; }
.progress-step.active span { border-color: #2d714b; background: #eaf5e9; color: #286441; }
.progress-line { height: 1px; flex: 1; max-width: 62px; background: #e5ebe5; }
.form-card { border: 1px solid #e8ede8; border-radius: 13px; background: var(--paper); box-shadow: 0 2px 6px rgba(36,55,43,.018); }
.campaign-card, .offers-card, .output-card { padding: 16px 17px; margin-bottom: 12px; }
.section-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.section-number { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 8px; background: #f0f6ef; color: #52805d; font: 700 9px "Manrope", sans-serif; }
.section-heading h2 { margin: 0 0 3px; color: #2c3c32; font: 700 12px "Manrope", sans-serif; letter-spacing: -.15px; }
.section-heading p { margin: 0; color: #89958c; font-size: 8.5px; }
.complete-check { display: grid; place-items: center; margin-left: auto; width: 18px; height: 18px; border-radius: 50%; background: #eaf5e9; color: #4e9460; font-size: 10px; }
.field-row { display: flex; gap: 11px; }
.field-label { display: grid; gap: 6px; color: #596a5f; font-size: 9px; font-weight: 600; }
.field-label input, .field-label select { width: 100%; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid #dfe7e0; border-radius: 7px; background: #fff; color: #314239; font-size: 9px; font-weight: 500; }
.field-label input::placeholder { color: #a6b0a9; }
.campaign-name-field { flex: 1.35; }
.validity-field { flex: .65; }
.input-with-icon { display: flex; align-items: center; height: 34px; padding: 0 8px; border: 1px solid #dfe7e0; border-radius: 7px; }
.input-with-icon svg { width: 14px; height: 14px; flex: 0 0 auto; color: #7b9381; }
.input-with-icon input { height: 30px; border: 0; padding-left: 6px; }
.theme-heading { display: flex; align-items: baseline; gap: 7px; margin: 14px 0 7px; }
.theme-heading strong { color: #526458; font-size: 9px; }
.theme-heading span { color: #a0aaa2; font-size: 8px; }
.theme-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.theme-choice { position: relative; display: flex; align-items: center; gap: 7px; min-width: 0; padding: 8px 8px; border: 1px solid #e8ece8; border-radius: 8px; background: white; text-align: left; transition: .16s ease; }
.theme-choice:hover { border-color: #aecbb3; }
.theme-choice.selected { border-color: #83b48e; background: #f6fbf5; box-shadow: 0 0 0 1px rgba(83,150,99,.08); }
.theme-swatch { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 7px; color: white; font-size: 14px; }
.theme-swatch.birthday { background: linear-gradient(135deg,#e8b248,#c88739); }
.theme-swatch.weekly { background: linear-gradient(135deg,#8db64c,#247449); }
.theme-swatch.weekend { background: linear-gradient(135deg,#ef9865,#bd4e42); }
.theme-choice strong, .theme-choice small { display: block; }
.theme-choice strong { color: #435448; font-size: 8px; font-weight: 700; white-space: nowrap; }
.theme-choice small { margin-top: 3px; color: #9aa59c; font-size: 7px; white-space: nowrap; }
.choice-check { position: absolute; right: 5px; top: 5px; display: none; width: 12px; height: 12px; border-radius: 50%; background: #548c5d; color: white; font-size: 7px; font-style: normal; text-align: center; line-height: 12px; }
.theme-choice.selected .choice-check { display: block; }
.sector-line { display: flex; align-items: flex-end; gap: 12px; margin-top: 11px; }
.sector-line .field-label { width: 175px; flex: 0 0 auto; }
.sector-line select { appearance: none; padding-right: 25px; background-image: linear-gradient(45deg, transparent 50%, #75877a 50%), linear-gradient(135deg, #75877a 50%, transparent 50%); background-position: calc(100% - 13px) 14px, calc(100% - 9px) 14px; background-size: 4px 4px,4px 4px; background-repeat: no-repeat; }
.helper-note { display: flex; align-items: center; gap: 5px; min-height: 34px; color: #9ba79e; font-size: 8px; }
.info-icon { display: grid; place-items: center; width: 12px; height: 12px; border: 1px solid #c3d0c5; border-radius: 50%; color: #829789; font-size: 8px; }
.offers-card .section-heading { margin-bottom: 10px; }
.offer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 1px solid #edf0ed; border-radius: 8px 8px 0 0; background: #fbfcfb; }
.selected-summary { display: flex; align-items: center; gap: 4px; color: #7e8d81; font-size: 8px; }
.selected-summary strong { color: #315a3d; font-size: 9px; }
.summary-divider { width: 1px; height: 12px; margin: 0 4px; background: #dce4dc; }
.text-button, .link-button { padding: 0; border: 0; background: none; color: #376b48; font-size: 8px; font-weight: 700; }
.text-button span { margin-right: 3px; color: #6f9d56; font-size: 13px; vertical-align: -1px; }
.layout-controls { display: grid; grid-template-columns: minmax(140px,1fr) auto auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid #edf0ed; border-top: 0; background: #f8fbf8; }
.layout-controls > div strong, .layout-controls > div small { display: block; }
.layout-controls > div strong { color: #47604d; font-size: 8px; }
.layout-controls > div small { margin-top: 3px; color: #8b998e; font-size: 7px; }
.layout-controls label { display: grid; gap: 4px; color: #718077; font-size: 7px; font-weight: 600; }
.layout-controls select { height: 27px; min-width: 88px; padding: 0 7px; border: 1px solid #e1e9e1; border-radius: 6px; background: #fff; color: #3d6047; font-size: 8px; }
.product-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid #edf0ed; border-top: 0; }
.search-box { display: flex; align-items: center; gap: 6px; width: 170px; height: 27px; padding: 0 7px; border: 1px solid #e7ece7; border-radius: 6px; background: #fff; }
.search-box svg { width: 13px; height: 13px; color: #9aa69d; flex: 0 0 auto; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: #35463b; font-size: 8px; background: transparent; }
.search-box input::placeholder { color: #a8b0aa; }
.filter-pills { display: inline-flex; align-items: center; gap: 3px; padding: 2px; border-radius: 7px; background: #f0f3f0; }
.filter-pill { padding: 5px 8px; border: 0; border-radius: 5px; background: transparent; color: #89958d; font-size: 7px; }
.filter-pill.active { background: white; color: #3c6546; font-weight: 700; box-shadow: 0 1px 2px rgba(20,42,27,.08); }
.product-list-header, .product-row { display: grid; grid-template-columns: minmax(180px,1fr) 128px 68px; align-items: center; gap: 8px; }
.product-list-header { padding: 8px 11px 6px 10px; color: #a0aaa3; font-size: 7px; font-weight: 700; letter-spacing: .6px; }
.product-list-header span:nth-child(2), .product-list-header span:nth-child(3) { text-align: center; }
.product-list { max-height: 290px; overflow: auto; border-top: 1px solid #eef1ee; border-bottom: 1px solid #eef1ee; scrollbar-color: #cdd9ce transparent; scrollbar-width: thin; }
.product-row { min-height: 42px; padding: 4px 10px; border-bottom: 1px solid #f0f3f0; transition: background .12s; }
.product-row:last-child { border-bottom: 0; }
.product-row:hover { background: #fbfdfb; }
.product-row.unselected { opacity: .52; }
.product-cell { display: flex; align-items: center; gap: 7px; min-width: 0; }
.product-check { width: 13px; height: 13px; margin: 0; accent-color: #28734b; }
.product-thumb { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 auto; overflow: hidden; border-radius: 7px; background: #f3f7ef; font-size: 17px; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-ident { min-width: 0; }
.product-ident strong { display: block; overflow: hidden; color: #435148; font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.product-ident small { display: block; margin-top: 2px; color: #a0aaa2; font-size: 7px; }
.price-cell { display: flex; justify-content: center; }
.price-input-wrap { display: flex; align-items: center; width: 93px; height: 26px; padding: 0 6px; border: 1px solid #e5ebe5; border-radius: 6px; background: white; color: #8a988e; font-size: 7px; }
.price-input-wrap:focus-within { border-color: #81b38a; }
.price-input-wrap input { width: 100%; min-width: 0; padding: 0 0 0 3px; border: 0; outline: 0; background: transparent; color: #324b39; font-size: 8px; font-weight: 700; text-align: right; }
.feature-cell { display: flex; justify-content: center; }
.feature-button { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #edf0ed; border-radius: 7px; background: #fff; color: #b1bcb2; font-size: 14px; line-height: 1; }
.feature-button.featured { border-color: #e7d99f; background: #fff9e6; color: #d1a52a; }
.list-footer { display: flex; justify-content: space-between; padding: 8px 2px 0; color: #9ba69e; font-size: 8px; }
.link-button { color: #8b988f; font-size: 7px; font-weight: 500; }
.output-card { padding-bottom: 13px; }
.output-card .section-heading { margin-bottom: 10px; }
.format-card { display: flex; align-items: center; gap: 9px; min-height: 45px; padding: 7px 9px; border: 1px solid #b9d7bd; border-radius: 8px; background: #f7fbf6; }
.format-icon { display: grid; place-items: center; width: 25px; height: 30px; border: 1.5px solid #70a67b; border-radius: 5px; background: #e8f4e7; }
.format-icon span { width: 4px; height: 4px; border-radius: 50%; background: #70a67b; }
.format-card > span:nth-child(2) { flex: 1; }
.format-card strong, .format-card small { display: block; }
.format-card strong { color: #345d3f; font-size: 9px; }
.format-card small { margin-top: 3px; color: #92a195; font-size: 7px; }
.format-badge { padding: 4px 6px; border-radius: 4px; background: #e5f2e4; color: #5e8c63; font-size: 6px; font-weight: 700; letter-spacing: .4px; }
.radio-selected { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #4d915d; color: white; font-size: 9px; }
.format-note { display: flex; align-items: center; gap: 6px; margin-top: 9px; color: #849288; font-size: 8px; }
.format-note span { color: #7ca854; }
.format-note strong { color: #487153; }
.bottom-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 3px 1px 14px; }
.autosave-message { display: inline-flex; align-items: center; gap: 5px; color: #87968b; font-size: 8px; }
.autosave-message span { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #e6f2e6; color: #4c9762; font-size: 8px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 0 14px; border: 1px solid #1d6243; border-radius: 7px; background: #1c6242; color: white; font-size: 9px; font-weight: 700; box-shadow: 0 2px 4px rgba(21,76,49,.1); transition: .16s ease; }
.primary-button:hover { border-color: #134b32; background: #154d35; transform: translateY(-1px); }
.primary-button span { font-size: 13px; font-weight: 500; }
.preview-column { position: sticky; top: 76px; min-width: 0; padding: 14px; border: 1px solid #e8ede8; border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.preview-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.preview-top .eyebrow { font-size: 7px; }
.preview-top h2 { margin: 4px 0 0; color: #2e3e33; font: 700 13px "Manrope", sans-serif; }
.preview-more { font-size: 14px; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.format-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 5px; background: #eff6ee; color: #628168; font-size: 7px; font-weight: 700; letter-spacing: .3px; }
.phone-dot { width: 5px; height: 8px; border: 1px solid #7a9e7f; border-radius: 2px; }
.page-switcher { display: flex; align-items: center; gap: 5px; color: #52685a; }
.page-switcher button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 1px solid #e7ece7; border-radius: 6px; background: #fff; color: #69806f; font-size: 15px; line-height: 1; }
.page-switcher button:hover { background: #f1f7ef; }
.page-switcher span { min-width: 28px; text-align: center; font-size: 8px; font-weight: 700; }
.page-switcher small { color: #a0aaa2; font-size: 7px; font-weight: 500; }
.story-stage { display: flex; justify-content: center; padding: 4px 0 6px; border-radius: 8px; background: #f4f6f3; }
.story-art { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 290px; aspect-ratio: 9/16; overflow: hidden; border: 4px solid white; border-radius: 10px; background: #f2f5df; box-shadow: 0 5px 18px rgba(27,53,35,.16); }
.story-art.theme-anniversary { --theme-main: #1d713e; --theme-dark: #154a34; --theme-accent: #f1d844; --theme-paper: #f5f1dd; --theme-price: #185b39; --theme-price-text: #fff45c; }
.story-art.theme-weekly { --theme-main: #289247; --theme-dark: #155f39; --theme-accent: #eff05d; --theme-paper: #f8f8e7; --theme-price: #236a3e; --theme-price-text: #eff05d; }
.story-art.theme-weekend { --theme-main: #ce593d; --theme-dark: #642c27; --theme-accent: #ffd26d; --theme-paper: #fff3e4; --theme-price: #ae3e31; --theme-price-text: #fff7de; }
.story-header { position: relative; min-height: 29%; padding: 10px 12px 11px; color: white; background: radial-gradient(ellipse at 88% 0%, rgba(243,209,100,.58), transparent 38%), linear-gradient(145deg,var(--theme-dark),var(--theme-main) 62%,#296438); }
.story-header:after { position: absolute; right: -18px; bottom: -16px; width: 90px; height: 90px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; content: ""; box-shadow: 0 0 0 8px rgba(255,255,255,.035),0 0 0 17px rgba(255,255,255,.025); }
.story-header-top { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; }
.store-logo { display: grid; place-items: center; width: 30px; height: 30px; overflow: hidden; flex: 0 0 auto; border: 1.5px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(255,255,255,.92); color: var(--theme-dark); font: 800 13px "Manrope",sans-serif; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.store-logo img { width: 100%; height: 100%; object-fit: contain; }
.store-wordmark { min-width: 0; flex: 1; }
.store-wordmark strong, .store-wordmark small { display: block; max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-wordmark strong { font: 700 7px "Manrope",sans-serif; }
.store-wordmark small { margin-top: 2px; color: rgba(255,255,255,.72); font-size: 5px; letter-spacing: .65px; }
.story-date { padding: 5px 7px; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; background: rgba(255,255,255,.13); text-align: center; }
.story-date small, .story-date strong { display: block; white-space: nowrap; }
.story-date small { color: rgba(255,255,255,.8); font-size: 4.4px; font-weight: 700; letter-spacing: .5px; }
.story-date strong { margin-top: 2px; color: var(--theme-accent); font: 800 8px "Manrope",sans-serif; }
.story-campaign-kicker { position: relative; z-index: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 16px; color: var(--theme-accent); font-size: 6px; font-weight: 800; letter-spacing: 1px; }
.story-header h3 { position: relative; z-index: 1; margin: 3px 0 0; color: white; font: 800 19px/.98 "Manrope",sans-serif; letter-spacing: -.6px; text-shadow: 0 2px 1px rgba(0,0,0,.17); }
.story-header h3 em { color: var(--theme-accent); font-style: normal; font-size: 13px; letter-spacing: .1px; }
.story-ribbon { position: relative; z-index: 1; width: max-content; max-width: 100%; margin-top: 7px; padding: 4px 6px; border-radius: 4px; background: rgba(14,44,32,.46); color: rgba(255,255,255,.87); font-size: 4.6px; font-weight: 700; letter-spacing: .3px; }
.story-ribbon span { margin-right: 3px; color: var(--theme-accent); }
.story-offers { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; gap: 6px; overflow: hidden; padding: 10px 8px 8px; background: linear-gradient(180deg,var(--theme-paper),#f5f2dd 73%,#d5e49a); }
.offer-hero-grid { display: grid; flex: 0 0 35%; grid-template-columns: repeat(var(--grid-columns,3),minmax(0,1fr)); gap: 5px; }
.offer-hero-grid.only { flex: 1; }
.offer-standard-grid { display: grid; flex: 1; grid-template-columns: repeat(var(--grid-columns,5),minmax(0,1fr)); grid-auto-rows: 1fr; gap: 5px; }
.story-product { position: relative; display: grid; grid-template-rows: minmax(0,1fr) auto; min-width: 0; min-height: 0; align-items: stretch; overflow: visible; padding: 0; border: 0; border-radius: 0; background: transparent; text-align: center; box-shadow: none; container-type: inline-size; }
.story-product.featured { min-height: 0; border: 0; background: transparent; }
.story-product .product-visual { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; margin: 0; overflow: visible; border-radius: 0; background: transparent; font-size: clamp(14px,4vw,27px); }
.story-product.featured .product-visual { width: 100%; height: 100%; }
.product-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.story-product .product-info { display: flex; width: 100%; min-width: 0; min-height: 2.55em; flex-direction: column; align-items: center; justify-content: flex-start; font-size: clamp(5px,10cqw,18px); }
.story-product .product-title { display: -webkit-box; width: 100%; max-height: 2.1em; overflow: hidden; color: #1e5b2e; font-size: inherit; font-weight: 800; line-height: 1.05; text-overflow: ellipsis; text-transform: uppercase; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.story-product .product-unit { color: #647462; font-size: clamp(4px,6.4cqw,11px); font-weight: 700; line-height: 1; }
.story-product .product-price { position: absolute; left: auto; top: auto; right: 1%; bottom: 2%; z-index: 2; max-width: 94%; margin: 0; padding: .24em .42em; border: 1.5px solid #f0d866; border-radius: 20px; background: var(--theme-price); color: var(--theme-price-text); font: 800 clamp(5px,15cqw,30px)/1 "Manrope",sans-serif; text-align: center; white-space: nowrap; box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.story-empty { display: grid; flex: 1; place-items: center; color: #8e9b86; font-size: 7px; text-align: center; }
.story-footer { display: flex; flex-direction: column; justify-content: center; min-height: 29px; gap: 2px; padding: 4px 8px; background: var(--theme-dark); color: rgba(255,255,255,.8); font-size: 4px; font-weight: 600; letter-spacing: .1px; }
.story-footer-details { display: flex; justify-content: space-between; gap: 4px; min-width: 0; }
.story-footer-details span { max-width: 57%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-footer strong { max-width: 43%; overflow: hidden; color: white; font-size: 4px; text-overflow: ellipsis; white-space: nowrap; }
.story-slide-mark { position: absolute; right: 7px; bottom: 24px; z-index: 2; color: rgba(255,255,255,.65); font: 700 5px "Manrope",sans-serif; }
.story-art.custom-template { background-position: center; background-repeat: no-repeat; background-size: contain; }
.custom-template .story-header, .custom-template .story-footer, .custom-template .story-slide-mark { display: none; }
.custom-template .story-offers { position: absolute; inset: 0; display: block; padding: 0; overflow: hidden; background: transparent; }
.custom-template .offer-hero-grid { position: absolute; top: var(--featured-y,27%); left: var(--featured-x,37%); width: var(--featured-w,61%); height: var(--featured-h,22%); display: grid; flex: none; grid-template-columns: repeat(var(--grid-columns,3),minmax(0,1fr)); grid-template-rows: minmax(0,1fr); gap: 1.1%; overflow: visible; }
.custom-template .offer-standard-grid { position: absolute; top: var(--offer-start,50%); left: var(--offer-x,1.8%); width: var(--offer-w,96.4%); height: var(--offer-h,48%); display: grid; flex: none; grid-template-columns: repeat(var(--grid-columns,5),minmax(0,1fr)); grid-template-rows: repeat(var(--grid-rows,2),minmax(0,1fr)); gap: 1% 1.1%; overflow: visible; }
.custom-template .offer-hero-grid .product-title { color: #1b5c2a; text-shadow: 0 1px 2px rgba(255,255,255,.7); }
.custom-template .offer-standard-grid .product-title { color: white; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.custom-template .offer-standard-grid .product-unit { color: rgba(255,255,255,.94); text-shadow: 0 1px 2px rgba(0,0,0,.65); }
.template-brand-overlay { position: absolute; z-index: 3; display: none; align-items: center; justify-content: center; overflow: visible; }
.template-brand-overlay.visible { display: flex; }
.template-logo-overlay img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.18)); }
.template-validity-overlay { flex-direction: column; gap: 2%; padding: 3%; border: 1px solid #23813a; border-radius: 40% / 28%; background: #ffdc13; color: #185b2d; text-align: center; box-shadow: 0 2px 5px rgba(25,62,34,.28); }
.template-validity-overlay small { display: block; max-width: 100%; overflow: hidden; font-size: clamp(4px,1.05vw,10px); font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.template-validity-overlay strong { display: block; max-width: 100%; overflow: hidden; font-size: clamp(6px,1.8vw,18px); font-weight: 900; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.template-validity-overlay .validity-stock-note { font-size: clamp(3px,.75vw,7px); letter-spacing: 0; line-height: 1.05; }
.preview-caption { display: flex; align-items: flex-start; gap: 6px; margin: 8px 1px 10px; color: #839087; font-size: 7px; line-height: 1.4; }
.preview-tip-icon { color: #8cae5d; }
.download-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; border: 1px solid #dbe8dc; border-radius: 7px; background: #f5faf4; color: #376748; font-size: 8px; font-weight: 700; transition: .16s; }
.download-button:hover { background: #e9f4e9; }
.download-button svg { width: 14px; height: 14px; }
.download-button span { margin-left: 3px; padding: 2px 4px; border-radius: 3px; background: #e4efe3; color: #77917b; font-size: 6px; }
.preview-hint { margin-top: 7px; color: #a2aba4; font-size: 6px; text-align: center; }
.app-footer { display: flex; justify-content: space-between; padding: 13px 34px 16px; color: #a1aaa3; font-size: 7px; }
.footer-dot { margin: 0 4px; color: #c1cbc2; }

.library-view, .templates-view, .store-view, .saved-view { max-width: 1240px; width: 100%; margin: 0 auto; padding: 31px 36px 20px; }
.library-intro { align-items: center; margin-bottom: 21px; }
.library-intro .primary-button { min-width: 130px; }
.library-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 15px; }
.library-stats > div { padding: 15px 17px; border: 1px solid #e8ede8; border-radius: 11px; background: #fff; }
.library-stats span { display: block; color: #849187; font-size: 9px; }
.library-stats strong { display: block; margin-top: 7px; color: #2d5f3e; font: 800 20px "Manrope",sans-serif; }
.library-stats small { color: #98a49b; font: 500 9px "DM Sans",sans-serif; }
.library-card { padding: 15px; }
.library-toolbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid #edf1ed; }
.library-toolbar .search-box { width: 240px; height: 32px; }
.library-toolbar .search-box input { font-size: 9px; }
.library-toolbar select { height: 30px; padding: 0 8px; border: 1px solid #e4ebe4; border-radius: 6px; background: white; color: #596c5d; font-size: 8px; }
.upload-products-button { min-height: 30px; padding: 0 10px; font-size: 8px; cursor: pointer; }
.batch-status { margin: 10px 0 0; color: #849187; font-size: 8px; }
.batch-status strong { color: #4e7057; }
.catalog-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding-top: 13px; }
.catalog-card { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px; border: 1px solid #edf1ed; border-radius: 9px; background: #fff; }
.catalog-image { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 auto; overflow: hidden; border-radius: 8px; background: #f2f7ee; font-size: 22px; }
.catalog-image img { width: 100%; height: 100%; object-fit: contain; }
.catalog-info { min-width: 0; flex: 1; }
.catalog-info strong { display: block; overflow: hidden; color: #3a4b3f; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.catalog-info small { display: block; margin-top: 4px; color: #96a198; font-size: 7px; }
.prototype-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; padding: 12px 13px; border: 1px solid #e5eee3; border-radius: 9px; background: #f9fcf8; color: #809084; font-size: 8px; line-height: 1.5; }
.prototype-note > span:first-child { color: #75a153; }
.prototype-note strong { color: #55715b; }
.template-instructions { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 14px 16px; border: 1px solid #e5eee3; border-radius: 10px; background: #f9fcf8; color: #74857a; font-size: 9px; line-height: 1.5; }
.template-instructions strong { flex: 0 0 auto; color: #3e6749; }
.template-placement { display: grid; gap: 12px; width: 100%; margin: 0 0 15px; padding: 15px; border: 1px solid #e8ede8; border-radius: 11px; background: white; }
.template-editor-heading { display: flex; flex-direction: column; gap: 3px; }
.template-editor-heading strong { color: #2f5f3d; font-size: 11px; }
.template-editor-heading small, .template-editor-help { color: #859389; font-size: 8px; line-height: 1.45; }
.template-editor-layout { display: grid; grid-template-columns: minmax(280px,1fr) 245px; align-items: start; gap: 16px; }
.template-editor-canvas { position: relative; width: 100%; max-width: 560px; overflow: hidden; aspect-ratio: 4/5; border: 1px solid #dce5dc; border-radius: 8px; background-color: #f4f7f3; background-position: center; background-repeat: no-repeat; background-size: contain; touch-action: none; }
.template-zone { position: absolute; display: flex; align-items: flex-start; justify-content: flex-start; min-width: 6%; min-height: 5%; padding: 4px; border: 2px dashed rgba(31,119,69,.95); border-radius: 6px; background: rgba(75,181,102,.14); cursor: move; touch-action: none; user-select: none; }
.template-zone.zone-featured { border-color: #dc9830; background: rgba(255,210,77,.18); }
.template-zone.zone-grid { border-color: #3c9b55; background: rgba(75,181,102,.16); }
.template-zone.zone-logo { border-color: #3981b4; background: rgba(83,163,220,.18); }
.template-zone.zone-validity { border-color: #885bbb; background: rgba(164,120,215,.17); }
.template-zone.disabled { opacity: .45; }
.template-zone-label { max-width: 100%; overflow: hidden; padding: 3px 5px; border-radius: 4px; background: rgba(24,54,37,.86); color: white; font-size: 7px; font-weight: 800; letter-spacing: .2px; text-overflow: ellipsis; white-space: nowrap; }
.zone-featured .template-zone-label { background: rgba(150,89,5,.92); }
.zone-logo .template-zone-label { background: rgba(31,92,134,.92); }
.zone-validity .template-zone-label { background: rgba(95,58,143,.92); }
.template-zone-resize { position: absolute; right: -6px; bottom: -6px; width: 15px; height: 15px; border: 2px solid white; border-radius: 50%; background: #276b42; box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: nwse-resize; }
.template-editor-controls { display: grid; gap: 10px; }
.template-editor-controls .field-label { display: grid; gap: 5px; color: #53665a; font-size: 9px; }
.template-editor-controls select { height: 31px; padding: 0 8px; border: 1px solid #e0e8e0; border-radius: 6px; background: white; color: #405348; font-size: 9px; }
.template-toggle { display: flex; align-items: flex-start; gap: 7px; padding: 8px; border: 1px solid #edf1ed; border-radius: 7px; cursor: pointer; }
.template-toggle input { margin: 1px 0 0; accent-color: #348052; }
.template-toggle span, .template-toggle strong, .template-toggle small { display: block; }
.template-toggle strong { color: #53665a; font-size: 8px; }
.template-toggle small { margin-top: 2px; color: #929d94; font-size: 7px; }
.template-grid-start { display: flex !important; flex-direction: row; justify-content: space-between; align-items: center; margin-top: 3px; }
.template-grid-start strong { color: #32704a; }
.template-editor-controls input[type="range"] { width: 100%; accent-color: #398356; }
.template-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.template-card { overflow: hidden; border: 1px solid #e5ebe5; border-radius: 11px; background: white; box-shadow: 0 2px 6px rgba(36,55,43,.025); }
.template-card.active { border-color: #69a47a; box-shadow: 0 0 0 2px rgba(72,145,91,.11); }
.template-thumb { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 9/16; background-color: #edf3e9; background-position: center; background-repeat: no-repeat; background-size: cover; }
.template-thumb:not(.automatic-template) { background-color: #f5f7f3; background-size: contain; }
.automatic-template { gap: 5px; color: #fff; background-image: radial-gradient(ellipse at 80% 8%,rgba(222,239,139,.5),transparent 30%),linear-gradient(155deg,#17462f 0 31%,#f6f3dc 31% 100%); }
.automatic-template span { color: #eef08a; font-size: 22px; }
.automatic-template strong { font: 800 14px "Manrope",sans-serif; text-align: center; text-shadow: 0 1px 4px rgba(0,0,0,.2); }
.automatic-template small { color: rgba(255,255,255,.8); font-size: 8px; }
.template-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px; }
.template-card-footer > span { min-width: 0; }
.template-card-footer strong, .template-card-footer small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.template-card-footer strong { color: #405847; font-size: 8px; }
.template-card-footer small { margin-top: 4px; color: #97a39a; font-size: 7px; }
.template-card-footer small.template-specs { color: #52785b; font-size: 6px; font-weight: 800; }
.template-card-footer .secondary-button { min-height: 27px; padding: 0 9px; font-size: 7px; }
.template-card-actions { display: flex; align-items: center; gap: 5px; }
.template-delete { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #e6ece6; border-radius: 6px; background: white; color: #859188; font-size: 16px; }
.store-card { max-width: 800px; padding: 20px; }
.store-card .section-heading { margin-bottom: 21px; }
.store-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.store-form-grid .span-2 { grid-column: span 2; }
.store-form-grid .field-label { gap: 7px; }
.store-form-grid .field-label input { height: 39px; font-size: 10px; }
.upload-zone { display: flex; align-items: center; gap: 10px; min-height: 61px; padding: 9px 11px; border: 1px dashed #bdcfc0; border-radius: 8px; background: #fbfdfb; cursor: pointer; }
.upload-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; background: #eaf5e9; color: #4b8c5b; font-size: 18px; }
.upload-zone span:nth-child(2) { flex: 1; }
.upload-zone strong, .upload-zone small { display: block; }
.upload-zone strong { color: #486450; font-size: 8px; }
.upload-zone small { margin-top: 4px; color: #9aa69c; font-size: 7px; }
.upload-action { padding: 6px 8px; border: 1px solid #e0eae0; border-radius: 5px; color: #66816c; font-size: 7px; }
.store-save-row { display: flex; align-items: center; justify-content: space-between; margin-top: 21px; padding-top: 15px; border-top: 1px solid #edf1ed; }
.saved-placeholder { display: grid; justify-items: center; max-width: 500px; margin: 30px auto; padding: 40px 25px; text-align: center; }
.saved-art { display: grid; place-items: center; width: 51px; height: 51px; margin-bottom: 12px; border-radius: 15px; background: #f0f7eb; color: #74a151; font-size: 24px; }
.saved-placeholder h2 { margin: 0 0 7px; color: #35483b; font: 700 15px "Manrope",sans-serif; }
.saved-placeholder p { margin: 0 0 16px; color: #87948a; font-size: 9px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

.product-dialog { width: min(460px,calc(100% - 28px)); padding: 21px; border: 1px solid #e3ebe3; border-radius: 15px; background: #fff; color: var(--ink); box-shadow: 0 22px 80px rgba(14,40,26,.24); }
.product-dialog::backdrop { background: rgba(14,33,23,.42); backdrop-filter: blur(3px); }
.product-dialog form { display: grid; gap: 13px; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1px; }
.dialog-head .eyebrow { font-size: 7px; }
.dialog-head h2 { margin: 5px 0 4px; color: #2d4434; font: 800 18px "Manrope",sans-serif; }
.dialog-head p { margin: 0; color: #87948a; font-size: 9px; }
.dialog-close { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #e7ece7; border-radius: 7px; background: white; color: #718176; font-size: 19px; line-height: 1; }
.dialog-fields { display: grid; grid-template-columns: 1fr .7fr 1fr; gap: 8px; }
.dialog-fields .field-label input, .dialog-fields .field-label select { height: 34px; }
.product-upload { min-height: 56px; }
.image-note { display: flex; align-items: center; gap: 5px; margin-top: -6px; color: #89968c; font-size: 7px; }
.image-note span { color: #84a95b; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid #edf1ed; }
.secondary-button { border-color: #e1e8e1; background: white; color: #66766a; box-shadow: none; }
.secondary-button:hover { background: #f7faf7; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 22px; transform: translate(-50%,15px); padding: 10px 14px; border-radius: 8px; background: #173f2d; color: white; opacity: 0; pointer-events: none; box-shadow: 0 8px 25px rgba(13,45,28,.2); font-size: 9px; transition: .2s; }
.toast.show { transform: translate(-50%,0); opacity: 1; }
.hidden { display: none !important; }

@media (max-width: 1180px) {
  .campaign-view { grid-template-columns: minmax(480px,1fr) 330px; gap: 17px; padding-right: 20px; padding-left: 20px; }
  .preview-column { padding: 11px; }
  .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .template-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 940px) {
  .app-shell { grid-template-columns: 64px minmax(0,1fr); }
  .sidebar { padding: 17px 8px 11px; align-items: center; }
  .brand { padding: 0 0 21px; }
  .brand > span:nth-child(2), .workspace-switcher, .nav-label, .nav-item > span:not(.nav-icon):not(.nav-active-dot):not(.nav-count), .help-card, .sidebar-user div:nth-child(2), .sidebar-user .more-button { display: none; }
  .nav-item { justify-content: center; width: 45px; height: 42px; padding: 0; }
  .nav-icon svg { width: 19px; height: 19px; }
  .nav-active-dot { position: absolute; right: 3px; top: 6px; }
  .sidebar-user { justify-content: center; width: 100%; padding-top: 12px; }
  .campaign-view { grid-template-columns: minmax(0,1fr) 310px; gap: 14px; padding: 23px 15px 16px; }
  .topbar { padding: 0 18px; }
  .page-intro h1 { font-size: 20px; }
  .template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .app-shell { display: block; padding-bottom: 56px; }
  .sidebar { position: fixed; z-index: 10; inset: auto 0 0; width: 100%; height: 56px; flex-direction: row; justify-content: space-around; padding: 5px 8px; border-top: 1px solid rgba(255,255,255,.12); }
  .brand, .sidebar-spacer, .sidebar-user, .workspace-switcher, .help-card { display: none; }
  .main-nav { display: flex; flex: 1; justify-content: space-around; gap: 2px; }
  .nav-item { width: 52px; height: 44px; }
  .nav-icon svg { width: 19px; height: 19px; }
  .sidebar .secondary-label { display: none; }
  .topbar { height: 52px; padding: 0 14px; }
  .breadcrumbs { font-size: 9px; }
  .save-status, .top-actions .icon-button { display: none; }
  .campaign-view { display: flex; flex-direction: column; gap: 18px; padding: 20px 12px 10px; }
  .editor-column { width: 100%; }
  .preview-column { position: static; width: 100%; max-width: 420px; align-self: center; }
  .story-art { max-width: 300px; }
  .page-intro { align-items: flex-start; }
  .auto-pill { margin-top: 13px; font-size: 0; gap: 0; width: 27px; height: 27px; justify-content: center; padding: 0; }
  .auto-pill span { font-size: 13px; }
  .page-intro h1 { font-size: 19px; }
  .page-intro p { max-width: 280px; font-size: 9px; line-height: 1.45; }
  .campaign-progress { gap: 6px; padding: 9px 10px; }
  .progress-step { gap: 4px; font-size: 8px; }
  .progress-line { max-width: 36px; }
  .campaign-card, .offers-card, .output-card { padding: 13px 11px; }
  .campaign-fields { flex-direction: column; }
  .field-row { gap: 8px; }
  .theme-choices { gap: 4px; }
  .theme-choice { gap: 5px; padding: 7px 5px; }
  .theme-swatch { width: 23px; height: 23px; font-size: 12px; }
  .theme-choice strong { font-size: 7px; }
  .theme-choice small { font-size: 6px; }
  .sector-line { align-items: flex-start; flex-direction: column; gap: 5px; }
  .sector-line .field-label { width: 100%; }
  .helper-note { min-height: unset; }
  .product-list-header, .product-row { grid-template-columns: minmax(125px,1fr) 94px 40px; gap: 4px; }
  .product-list-header { font-size: 6px; padding-right: 5px; padding-left: 5px; }
  .product-row { padding: 4px 5px; }
  .product-cell { gap: 4px; }
  .product-check { width: 12px; height: 12px; }
  .product-thumb { width: 24px; height: 24px; font-size: 14px; }
  .product-ident strong { font-size: 7px; }
  .price-input-wrap { width: 76px; }
  .filter-pills { gap: 1px; }
  .filter-pill { padding: 5px 5px; font-size: 6px; }
  .search-box { width: 128px; }
  .selected-summary { font-size: 7px; }
  .text-button { font-size: 7px; }
  .bottom-actions { align-items: flex-start; }
  .autosave-message { max-width: 130px; line-height: 1.4; }
  .app-footer { padding: 10px 12px 12px; font-size: 6px; }
  .library-view, .templates-view, .store-view, .saved-view { padding: 23px 13px 14px; }
  .library-stats { gap: 5px; }
  .library-stats > div { padding: 11px 9px; }
  .library-stats span { font-size: 7px; }
  .library-stats strong { font-size: 16px; }
  .library-stats small { font-size: 7px; }
  .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  .catalog-card { padding: 7px; gap: 5px; }
  .catalog-image { width: 31px; height: 31px; font-size: 18px; }
  .catalog-info strong { font-size: 7px; }
  .catalog-info small { font-size: 6px; }
  .library-toolbar .search-box { width: 170px; }
  .library-toolbar { flex-wrap: wrap; gap: 7px; }
  .library-toolbar .search-box { flex: 1 1 100%; width: 100%; }
  .layout-controls { grid-template-columns: 1fr 1fr; }
  .layout-controls > div { grid-column: span 2; }
  .layout-controls label { font-size: 7px; }
  .layout-controls select { width: 100%; }
  .template-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .template-instructions { flex-direction: column; gap: 5px; }
  .template-editor-layout { grid-template-columns: minmax(0,1fr); }
  .template-editor-canvas { max-width: 100%; }
  .template-editor-controls { grid-template-columns: minmax(0,1fr); }
  .store-form-grid { grid-template-columns: 1fr; gap: 12px; }
  .store-form-grid .span-2 { grid-column: auto; }
  .store-card { padding: 15px 12px; }
  .dialog-fields { grid-template-columns: 1fr 1fr; }
  .dialog-fields .field-label:last-child { grid-column: span 2; }
}

.empty-products { padding: 24px 14px; color: #87948a; font-size: 9px; text-align: center; }

.campaign-pages { padding:16px; background:#f4f8f1; border:1px solid #d5e4d4; border-radius:14px; margin:14px 0; }
.campaign-pages p,.campaign-pages small { display:block; font-size:12px; margin:8px 0; color:#526552; }
.campaign-pages label,.template-filters label,.slot-picker label { display:grid; gap:7px; font-size:13px; font-weight:700; }
.campaign-pages select,.template-filters select,.slot-picker input,.slot-picker select { width:100%; padding:10px; border:1px solid #d4dfd4; border-radius:8px; background:white; color:#244f38; }
.campaign-page-tabs { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.campaign-page-tabs .active,.slot-choice.active { border:2px solid #20583e; background:#e1eedc; }
.campaign-pages > button { margin:8px 5px 0 0; }
.template-filters { display:flex; gap:12px; margin:15px 0; flex-wrap:wrap; }
.template-filters label { flex:1; min-width:150px; }
.story-product[data-slot-key] { cursor:pointer; }
.story-product[data-slot-key]:focus-visible { outline:3px solid #f3cf51; outline-offset:-3px; }
.story-product.empty-slot { display:grid; place-items:center; border:1px dashed #567b52; border-radius:8px; background:rgba(255,255,255,.75); color:#194d30; font:700 clamp(7px,9cqw,14px)/1.3 sans-serif; }
.slot-picker { width:min(680px,95vw); max-height:90vh; padding:24px; border:0; border-radius:18px; color:#204431; }
.slot-picker::backdrop { background:rgba(10,30,20,.6); }
.slot-heading,.slot-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:16px; }
.slot-heading h2 { font-size:20px; }
.slot-heading button { border:0; background:transparent; font-size:30px; cursor:pointer; }
.slot-choices { max-height:38vh; overflow:auto; display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:16px; }
.slot-choice { display:flex; align-items:center; gap:10px; padding:10px; border:1px solid #dce6da; border-radius:10px; background:#fff; text-align:left; cursor:pointer; }
.slot-choice img { width:62px; height:62px; object-fit:contain; }
.slot-choice small { display:block; color:#687965; margin-top:4px; }
.slot-actions { margin:18px 0 0; }
#slotSelection { display:block; margin-bottom:12px; }
@media(max-width:550px) { .slot-choices { grid-template-columns:1fr; } }
.sector-checkboxes { display:flex; flex-wrap:wrap; gap:10px; padding:10px 0; }
.sector-checkboxes label { display:flex; align-items:center; gap:5px; }
.sector-checkboxes input { width:auto; }
.layout-cell-guides { position:absolute; inset:0; display:grid; pointer-events:none; }
.layout-cell-guides span { border:1px dashed rgba(25,82,42,.6); display:grid; place-items:center; font-size:12px; color:#184e29; background:rgba(255,255,255,.12); }
.grid-capacity { display:block; padding:12px; border-radius:8px; background:#e5f0df; color:#205438; font-size:14px; }

.template-zone.zone-address {border-color:#bd6541;background:#e9aa7826}.template-zone.zone-whatsapp {border-color:#218b7f;background:#54c9b826}

.template-contact-overlay {padding:0;z-index:5;pointer-events:none;overflow:hidden}.template-contact-overlay svg{display:block;width:100%;height:100%}

/* Product photo, large price and caption form one proportional composition. */
.story-product:not(.empty-slot){display:block;}
.story-product .product-price{display:flex;align-items:center;justify-content:center;gap:0;padding:0;border-radius:999px;background:#1d633e;color:#fff36b;font-family:Arial,sans-serif;font-weight:900;line-height:1;box-shadow:0 1px 3px #0003;}
.story-product .price-integer{font-size:1em;letter-spacing:-.05em;}
.story-product .price-cents{font-size:.49em;align-self:flex-start;margin-top:.14em;letter-spacing:-.04em;}
.story-product .product-info{left:0;padding:0;letter-spacing:-.025em;}
.story-product .product-title{font-weight:800;line-height:1.05;}

.brand-adjust-actions{margin-top:10px;padding-top:10px;border-top:1px solid #d5e4d4}.brand-adjust-actions button{margin:4px}.template-brand-overlay.brand-adjustable{z-index:20;outline:2px dashed #2987b4;cursor:move;touch-action:none;user-select:none}.brand-adjustable img{pointer-events:none}.brand-resize{position:absolute;right:-7px;bottom:-7px;width:16px;height:16px;background:#287f56;border:2px solid white;border-radius:50%;cursor:nwse-resize}.template-brand-overlay:focus-visible{outline:3px solid #2987b4}

.grid-move-overlay{position:absolute;z-index:30;border:2px dashed #247fa0;background:#247fa012;cursor:move;touch-action:none;user-select:none;box-sizing:border-box}.grid-move-overlay>span{position:absolute;left:2px;top:2px;padding:3px 6px;border-radius:4px;background:#19596d;color:white;font:700 10px/1.2 sans-serif;pointer-events:none}.grid-move-overlay:focus-visible{outline:3px solid #ffd04e}

.grid-resize-handle{position:absolute;right:0;bottom:0;width:20px;height:20px;border:2px solid white;border-radius:50%;background:#19596d;cursor:nwse-resize;box-shadow:0 1px 4px #0005;touch-action:none}

.price-style-settings{margin:16px 0;padding:16px;border:1px solid #d7e4d6;border-radius:12px;background:#f7faf5}.price-style-settings h3{margin:0 0 6px;font-size:16px}.price-style-settings p{font-size:12px;line-height:1.5;color:#647462}.price-preset-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.price-preset{display:flex;align-items:center;flex-direction:column;gap:7px;padding:10px 5px;border:1px solid #dae2d8;border-radius:9px;background:white;font-size:11px;color:#294d34;cursor:pointer}.price-preset.active{outline:2px solid #267946}.price-preset>span{display:block;width:75px;height:38px;font:900 30px/34px Arial,sans-serif}.price-preset sup{font-size:14px;vertical-align:super}.price-color-controls{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}.price-color-controls label{display:grid;gap:6px;font-size:12px}.price-color-controls input[type=color]{width:60px;height:34px;padding:2px;border:1px solid #cbdaca;border-radius:6px;cursor:pointer}.price-color-controls select{max-width:180px;padding:7px;border:1px solid #cbdaca;border-radius:6px;background:white;font:inherit}

.template-validity-overlay{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;gap:0}.validity-artwork{position:absolute;inset:0;pointer-events:none}.validity-artwork svg{display:block;width:100%;height:100%;overflow:visible}.price-preset>span.validity-sample{font:700 9px/1.25 Arial,sans-serif;height:44px;width:90px;padding:6px 2px}.validity-sample b{font-size:14px}

.story-art.custom-template,.template-editor-canvas{background-color:#fff;background-origin:border-box;}

/* Guided campaign setup and uploaded style gallery. */
.campaign-progress {flex-wrap:wrap;gap:14px}.campaign-progress a{text-decoration:none;color:inherit}
.template-step-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 22px}
.campaign-template-choices{display:flex;gap:12px;overflow-x:auto;padding:12px 22px 20px}
.campaign-template-option{flex:0 0 145px;border:2px solid #dce7dc;border-radius:12px;padding:10px;background:#fff;color:#234c35;text-align:left}
.campaign-template-option.active{border-color:#226a40;background:#eff8ed}.campaign-template-option img{width:100%;height:150px;object-fit:contain;display:block;margin-bottom:8px}
.campaign-template-option strong,.campaign-template-option small{display:block}.campaign-template-option small{font-size:10px;margin-top:5px}
.form-card.price-style-settings{margin:0;padding:24px}.price-style-settings summary{cursor:pointer;margin-top:16px;font-weight:700}
.uploaded-preset img{width:110px;height:65px;object-fit:contain}.price-style-settings h3,#templateStep,#productsStep{scroll-margin-top:90px}

.output-format-controls{display:grid;gap:12px;margin:18px 22px;padding:16px;background:#f2f8ef;border:1px solid #d3e4d0;border-radius:12px}.output-format-controls select{padding:10px;border:1px solid #cbdcca;border-radius:8px;background:white;color:#214c32}.output-format-controls p{font-size:12px;line-height:1.5;color:#58735c;margin:0}.output-format-controls [hidden]{display:none!important}

/* Keep campaign controls in the editor and the complete art in the preview. */
.editor-column > .campaign-pages{margin:0;border-radius:14px;padding:20px}
.preview-column .story-art{max-width:100%;height:auto;flex-shrink:0}
.preview-column .preview-caption{margin:8px 0;font-size:10px}
.preview-column .preview-hint{display:none}
@media (min-width: 761px){.preview-column{align-self:start;position:sticky;top:76px}}
@media (max-width: 760px){.preview-column{order:-1;position:static}.preview-column .story-art{max-width:100%}}

/* Compact product spacing; photos use their visible bounds. */
.custom-template .offer-hero-grid{gap:.45%}
.product-photo-crop img{object-fit:fill;object-position:top left}

