:root {
  --ink: #17211d;
  --muted: #66716b;
  --line: #dce4df;
  --soft-line: #edf1ee;
  --paper: #fff;
  --canvas: #f5f7f5;
  --green: #66872f;
  --green-dark: #4f6d21;
  --green-soft: #edf4e4;
  --orange: #dc962b;
  --orange-soft: #fff4df;
  --red: #b34137;
  --red-soft: #fff0ee;
  --blue: #225fa6;
  --shadow: 0 14px 40px rgba(25, 42, 34, .08);
  --radius: 18px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: var(--font); background: var(--canvas); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
code { font: 500 .86em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 14px; background: #111; color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.staging-ribbon { min-height: 34px; padding: 7px clamp(18px, 4vw, 54px); display: flex; align-items: center; justify-content: center; gap: 14px; color: #fff; background: #17211d; font-size: 12px; letter-spacing: .02em; }
.staging-ribbon strong { color: #dcefb9; text-transform: uppercase; letter-spacing: .12em; }
.staging-ribbon span { color: #c6cfca; }

.admin-header { min-height: 82px; padding: 14px clamp(18px, 4vw, 54px); display: flex; align-items: center; gap: 28px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); }
.admin-brand, .store-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: max-content; }
.admin-brand > span:last-child, .store-brand > span:last-child { display: grid; gap: 1px; }
.admin-brand b, .store-brand b { font-size: 15px; letter-spacing: -.02em; }
.admin-brand small, .store-brand small { color: var(--muted); font-size: 11px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--green); font-weight: 850; letter-spacing: -.08em; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.admin-nav { display: flex; align-items: center; gap: 5px; }
.admin-nav a { padding: 10px 13px; border-radius: 9px; color: #4e5a54; font-size: 13px; font-weight: 700; text-decoration: none; }
.admin-nav a:hover, .admin-nav a.is-active { color: var(--ink); background: var(--green-soft); }
.snapshot-chip { margin-left: auto; padding: 8px 12px; display: flex; align-items: center; gap: 9px; border: 1px solid #d9e7ca; border-radius: 12px; background: #f8fbf3; }
.snapshot-chip > span:last-child { display: grid; gap: 2px; }
.snapshot-chip b { font-size: 11px; }
.snapshot-chip small { color: var(--muted); font-size: 10px; }
.pulse-dot { width: 8px; height: 8px; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: #73a032; box-shadow: 0 0 0 4px rgba(115,160,50,.13); }
.mobile-nav-button { display: none; }

.admin-main { width: min(1480px, calc(100% - clamp(32px, 8vw, 108px))); min-height: calc(100vh - 180px); margin: 0 auto; padding: 42px 0 64px; }
.admin-footer { padding: 24px clamp(18px, 4vw, 54px); display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 11px; }
.page-heading { margin-bottom: 28px; }
.heading-with-action, .editor-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.page-heading h1 { max-width: 900px; margin: 5px 0 8px; font-size: clamp(30px, 4vw, 48px); line-height: 1.04; letter-spacing: -.045em; }
.page-heading > div > p:last-child { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.eyebrow { margin: 0; color: var(--green-dark); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.back-link { display: inline-block; margin-bottom: 15px; color: var(--green-dark); font-size: 13px; font-weight: 750; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.heading-actions { display: flex; gap: 9px; }

.button { min-height: 42px; padding: 10px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 12px; font-weight: 800; text-decoration: none; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, .status-toggle:focus-visible { outline: 3px solid rgba(34, 95, 166, .25); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 7px 18px rgba(102,135,47,.18); }
.button-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-secondary:hover { border-color: #aebbb4; }
.button-quiet { color: var(--muted); background: transparent; }
.button-danger { color: #fff; background: var(--red); border-color: var(--red); }
.button-danger-quiet { color: var(--red); background: var(--red-soft); border-color: #efcbc7; }
.button-small { min-height: 34px; padding: 7px 11px; }
.button-full { width: 100%; }
.text-link { color: var(--green-dark); font-size: 12px; font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.notice { margin: 0 0 22px; padding: 14px 17px; border: 1px solid; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.notice-success { color: #38591b; background: var(--green-soft); border-color: #d0e2ba; }
.notice-error { color: #7f2f27; background: var(--red-soft); border-color: #f0c9c5; }

.metric-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.metric-card { min-width: 0; padding: 18px; display: grid; gap: 6px; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; box-shadow: 0 3px 14px rgba(24,41,33,.03); transition: border-color .15s, transform .15s, box-shadow .15s; }
.metric-card:hover { transform: translateY(-2px); border-color: #bccbbf; box-shadow: var(--shadow); }
.metric-card.is-selected { background: #f8fbf4; border-color: #9fb67c; box-shadow: inset 0 0 0 1px #9fb67c; }
.metric-card span { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: 11px; font-weight: 750; white-space: nowrap; }
.metric-card strong { font-size: 29px; letter-spacing: -.04em; }
.metric-card small { overflow: hidden; text-overflow: ellipsis; color: #8a948f; font-size: 10px; white-space: nowrap; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 4px 22px rgba(23,33,29,.035); }
.panel-header { padding: 23px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--soft-line); }
.panel-header h2 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.02em; }
.panel-header p { margin: 0; color: var(--muted); font-size: 11px; }
.records-toolbar { flex-wrap: wrap; }
.search-form { display: flex; align-items: center; gap: 7px; }
.search-form input { width: min(320px, 45vw); min-height: 42px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; font-size: 12px; }
.table-scroll { overflow-x: auto; }
.records-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.records-table th { padding: 12px 16px; color: #7a857f; background: #fafbfa; border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .1em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.records-table td { padding: 13px 16px; border-bottom: 1px solid var(--soft-line); vertical-align: middle; }
.records-table tbody tr:last-child td { border-bottom: 0; }
.records-table tbody tr:hover { background: #fbfcfb; }
.category-cell { min-width: 340px; display: flex; align-items: center; gap: 12px; }
.category-cell > span:last-child { min-width: 0; display: grid; gap: 5px; }
.category-thumb { width: 48px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; overflow: hidden; border: 1px solid var(--soft-line); border-radius: 9px; background: #f2f4f2; text-decoration: none; }
.category-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-thumb span { color: #9ba49f; font-weight: 850; }
.category-title { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.category-title:hover { color: var(--green-dark); }
.category-cell small { max-width: 400px; overflow: hidden; color: var(--muted); font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.category-cell small b { color: var(--green-dark); }
.order-pill, .template-count { min-width: 28px; height: 28px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 8px; background: #f1f4f2; font-weight: 800; }
.template-count { color: #3f5d23; background: var(--green-soft); }
.template-count.is-empty { color: #9b463e; background: var(--red-soft); }
.status-toggle { padding: 7px 9px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid; border-radius: 999px; cursor: pointer; font-size: 10px; font-weight: 800; transition: background .15s, opacity .15s; }
.status-toggle.is-on { color: #42631f; background: var(--green-soft); border-color: #cbdeaf; }
.status-toggle.is-off { color: #69736e; background: #f3f5f4; border-color: #dfe5e1; }
.status-toggle[disabled] { cursor: wait; opacity: .55; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.row-actions { min-width: 150px; text-align: right; white-space: nowrap; }
.row-actions > a:first-child { margin-right: 9px; color: var(--green-dark); font-size: 10px; font-weight: 800; text-decoration: none; }
.empty-state { padding: 50px !important; color: var(--muted); text-align: center; }
.pagination { padding: 17px 23px; display: flex; justify-content: flex-end; gap: 5px; border-top: 1px solid var(--soft-line); }
.pagination a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 750; text-decoration: none; }
.pagination a.is-current { color: #fff; background: var(--green); border-color: var(--green); }

.lower-grid { margin-top: 22px; display: grid; grid-template-columns: 1.35fr .65fr; gap: 22px; align-items: stretch; }
.activity-list { margin: 0; padding: 12px 25px 22px; list-style: none; }
.activity-list li { padding: 12px 0; display: flex; align-items: flex-start; gap: 12px; border-bottom: 1px solid var(--soft-line); }
.activity-list li:last-child { border: 0; }
.activity-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green-dark); background: var(--green-soft); border-radius: 9px; font-size: 10px; font-weight: 900; }
.activity-list li > span:last-child { display: grid; gap: 4px; }
.activity-list b { font-size: 11px; font-weight: 700; }
.activity-list small { color: var(--muted); font-size: 9px; }
.reset-panel { padding: 25px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; background: linear-gradient(145deg, #fff 30%, #fbf7ef); }
.reset-panel h2 { margin: 8px 0; font-size: 20px; }
.reset-panel p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 22px; align-items: start; }
.editor-main { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.editor-main > *, .form-section, .input-with-prefix input { min-width: 0; }
.editor-sidebar { display: grid; gap: 14px; position: sticky; top: 112px; }
.form-section { padding: 28px; }
.section-heading { margin-bottom: 25px; display: flex; align-items: flex-start; gap: 13px; }
.section-number { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; color: var(--green-dark); background: var(--green-soft); border-radius: 10px; font-size: 10px; font-weight: 900; }
.section-heading h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -.025em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.form-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 19px; }
.form-grid.two-columns { grid-template-columns: 1fr 1fr; }
.field { min-width: 0; display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field > span:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #47534d; font-size: 11px; font-weight: 800; }
.field > span:first-child b { padding: 3px 6px; color: var(--green-dark); background: var(--green-soft); border-radius: 5px; font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.field input:not([type="checkbox"]):not([type="file"]), .field textarea, .field select { width: 100%; min-height: 45px; padding: 11px 13px; color: var(--ink); background: #fbfcfb; border: 1px solid #d7dfda; border-radius: 10px; font-size: 12px; line-height: 1.5; transition: border-color .15s, box-shadow .15s, background .15s; }
.field textarea { resize: vertical; }
.field input[type="file"] { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; color: var(--muted); font-size: 10px; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #b7c4bd; }
.field input:focus, .field textarea:focus, .field select:focus { background: #fff; border-color: #83a151; box-shadow: 0 0 0 3px rgba(102,135,47,.1); outline: 0; }
.field small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.field code { padding: 8px 10px; overflow-wrap: anywhere; color: var(--muted); background: #f5f7f5; border-radius: 8px; font-size: 9px; }
.field.has-error input, .field.has-error textarea { border-color: #cf766e; box-shadow: 0 0 0 3px rgba(179,65,55,.08); }
.field-error { color: var(--red) !important; font-weight: 750; }
.input-with-prefix { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; background: #f3f5f4; border: 1px solid #d7dfda; border-radius: 10px; overflow: hidden; }
.input-with-prefix span { padding: 0 0 0 12px; color: #7d8882; font-size: 10px; }
.input-with-prefix input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.switch-group { padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: #f7f9f7; border: 1px solid var(--soft-line); border-radius: 12px; }
.switch-field { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.switch-field input { position: absolute; opacity: 0; pointer-events: none; }
.switch-control { width: 38px; height: 22px; padding: 3px; flex: 0 0 auto; border-radius: 999px; background: #cbd3ce; transition: background .15s; }
.switch-control::after { content: ""; width: 16px; height: 16px; display: block; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.16); transition: transform .15s; }
.switch-field input:checked + .switch-control { background: var(--green); }
.switch-field input:checked + .switch-control::after { transform: translateX(16px); }
.switch-field input:focus-visible + .switch-control { outline: 3px solid rgba(34,95,166,.25); outline-offset: 2px; }
.switch-field > span:last-child { display: grid; gap: 3px; }
.switch-field b { font-size: 10px; }
.switch-field small { color: var(--muted); font-size: 9px; }
.read-only-fact { padding: 13px 14px; display: grid; gap: 7px; background: var(--orange-soft); border: 1px solid #f2dfbb; border-radius: 10px; }
.read-only-fact span { color: #7c632f; font-size: 9px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.read-only-fact code { overflow-wrap: anywhere; font-size: 10px; }
.legacy-details, .faq-editor { border: 1px solid var(--line); border-radius: 11px; background: #fcfdfc; }
.legacy-details > summary, .faq-editor > summary { padding: 14px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; list-style: none; }
.legacy-details > summary::-webkit-details-marker, .faq-editor > summary::-webkit-details-marker { display: none; }
.legacy-details > summary span, .faq-editor > summary span { font-size: 11px; font-weight: 800; }
.legacy-details > summary small { color: var(--muted); font-size: 9px; }
.legacy-details[open] > summary, .faq-editor[open] > summary { border-bottom: 1px solid var(--soft-line); }
.legacy-details > .field, .faq-editor > .form-grid { padding: 16px; }
.serp-preview { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.serp-preview small { display: block; color: #3c4043; font-size: 10px; }
.serp-preview b { display: block; margin: 7px 0 5px; color: #1a0dab; font-family: Arial, sans-serif; font-size: 17px; font-weight: 400; }
.serp-preview p { margin: 0; color: #4d5156; font-family: Arial, sans-serif; font-size: 11px; line-height: 1.5; }
.faq-editor-list { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.faq-editor, .faq-editor > summary { min-width: 0; }
.faq-editor > summary { justify-content: flex-start; }
.faq-editor > summary span { width: 52px; color: var(--green-dark); }
.faq-editor > summary b { min-width: 0; overflow: hidden; flex: 1; color: var(--muted); font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.image-field { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: center; }
.image-preview { width: 220px; height: 150px; display: grid; place-items: center; overflow: hidden; color: #9aa39e; background: #f2f4f2; border: 1px dashed #cbd4cf; border-radius: 13px; font-size: 11px; }
.image-preview img { width: 100%; height: 100%; object-fit: contain; }
.save-panel, .facts-panel, .danger-panel { padding: 21px; }
.save-panel { background: linear-gradient(145deg, #fff, #f7fbf1); border-color: #cbdcb7; }
.save-panel h2, .facts-panel h2, .danger-panel h2 { margin: 8px 0; font-size: 17px; letter-spacing: -.02em; }
.save-panel p:not(.eyebrow), .danger-panel p { margin: 0 0 16px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.save-panel .button + .button { margin-top: 8px; }
.save-note { margin-top: 14px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.facts-panel dl { margin: 12px 0 17px; display: grid; }
.facts-panel dl div { padding: 8px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--soft-line); }
.facts-panel dt { color: var(--muted); font-size: 9px; }
.facts-panel dd { margin: 0; font-size: 9px; font-weight: 800; text-align: right; }
.danger-panel { background: #fffafa; border-color: #efd6d3; }
.confirm-dialog { width: min(440px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.confirm-dialog::backdrop { background: rgba(18,28,23,.64); backdrop-filter: blur(3px); }
.confirm-dialog form { padding: 28px; text-align: center; }
.dialog-icon { width: 45px; height: 45px; margin: 0 auto 14px; display: grid; place-items: center; color: var(--red); background: var(--red-soft); border-radius: 50%; font-weight: 900; }
.confirm-dialog h2 { margin: 0 0 8px; font-size: 20px; }
.confirm-dialog p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.dialog-actions { margin-top: 22px; display: flex; justify-content: center; gap: 8px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 340px; padding: 12px 16px; color: #fff; background: #17211d; border-radius: 10px; box-shadow: var(--shadow); font-size: 11px; font-weight: 700; }
.empty-page { min-height: 55vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.empty-page h1 { margin: 8px 0; font-size: 42px; letter-spacing: -.04em; }
.empty-page p:not(.eyebrow) { max-width: 550px; margin: 0 0 22px; color: var(--muted); }

/* Mirrored public controller */
.store-body { background: #fff; }
.preview-banner { min-height: 38px; padding: 8px clamp(18px, 5vw, 70px); display: flex; align-items: center; justify-content: center; gap: 15px; color: #fff; background: #17211d; font-size: 11px; }
.preview-banner b { color: #dcefb9; text-transform: uppercase; letter-spacing: .09em; }
.preview-banner span { color: #cbd3cf; }
.preview-banner a { margin-left: auto; color: #fff; font-weight: 800; }
.store-header { min-height: 80px; padding: 14px clamp(18px, 5vw, 70px); display: flex; align-items: center; justify-content: space-between; gap: 25px; background: #fff; border-bottom: 1px solid var(--line); }
.store-header nav { display: flex; align-items: center; gap: 24px; }
.store-header nav a { color: #47524d; font-size: 12px; font-weight: 750; text-decoration: none; }
.preview-context { padding: 9px clamp(18px, 5vw, 70px); display: flex; align-items: center; gap: 13px; color: #755b24; background: var(--orange-soft); border-bottom: 1px solid #f0ddb6; font-size: 9px; }
.preview-context span:first-child { font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.preview-context code { color: #6f654f; }
.preview-context a { margin-left: auto; font-weight: 800; }
.breadcrumbs { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 22px 0; display: flex; align-items: center; gap: 8px; overflow: hidden; color: #76817b; font-size: 10px; white-space: nowrap; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs b { overflow: hidden; color: #4b5650; text-overflow: ellipsis; }
.category-hero { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 42px 0 70px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: clamp(35px, 6vw, 80px); align-items: center; }
.category-copy h1 { max-width: 720px; margin: 10px 0 20px; font-size: clamp(38px, 5vw, 66px); line-height: 1; letter-spacing: -.055em; }
.legacy-rich-content { max-height: 215px; overflow: hidden; position: relative; color: #53605a; font-size: 15px; line-height: 1.75; transition: max-height .35s ease; }
.legacy-rich-content.is-expanded { max-height: 4000px; }
.legacy-rich-content:not(.is-expanded)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55px; background: linear-gradient(transparent, #fff); pointer-events: none; }
.legacy-rich-content p:first-child { margin-top: 0; }
.legacy-rich-content a { color: var(--green-dark); }
.read-more-button { margin: 12px 0 2px; padding: 0; color: var(--green-dark); background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 850; }
.store-primary-cta { margin-top: 25px; }
.category-hero-image { min-height: 430px; padding: 22px; display: grid; place-items: center; position: relative; background: #f3f5f2; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.category-hero-image img { width: 100%; max-height: 440px; object-fit: contain; border-radius: 15px; }
.category-hero-image > span { position: absolute; right: 13px; bottom: 13px; padding: 6px 8px; color: #657069; background: rgba(255,255,255,.92); border-radius: 7px; font-size: 8px; font-weight: 750; }
.image-placeholder { color: #99a29e; font-size: 12px; }
.store-section { padding: 76px max(18px, calc((100% - 1180px) / 2)); }
.tinted-section { background: #f5f7f3; border-block: 1px solid var(--line); }
.section-title { max-width: 690px; margin: 0 auto 38px; text-align: center; }
.section-title h2 { margin: 8px 0 10px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.045em; }
.section-title > p:last-child:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature-grid.count-1 { grid-template-columns: minmax(280px, 480px); justify-content: center; }
.feature-grid.count-2 { grid-template-columns: repeat(2, minmax(280px, 420px)); justify-content: center; }
.feature-grid.count-3 { grid-template-columns: repeat(3, 1fr); }
.feature-card { min-width: 0; padding: 26px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 22px rgba(25,42,34,.045); }
.feature-card h3 { margin: 0 0 18px; font-size: 18px; letter-spacing: -.025em; }
.feature-card ul { margin: 0 0 23px; padding: 0; flex: 1; list-style: none; }
.feature-card li { padding: 8px 0 8px 19px; position: relative; color: #59655f; border-bottom: 1px solid var(--soft-line); font-size: 11px; line-height: 1.5; }
.feature-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.feature-card .button { width: 100%; }
.feature-card > small { margin-top: 9px; color: #8a938f; font-size: 8px; text-align: center; }
.template-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.template-card { overflow: hidden; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 15px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.template-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.template-card > div { height: 190px; padding: 20px; display: grid; place-items: center; background: #f4f6f3; }
.template-card img { width: 100%; height: 100%; object-fit: contain; }
.template-card > span { padding: 17px; display: grid; gap: 7px; }
.template-card b { font-size: 12px; }
.template-card small { color: var(--muted); font-size: 9px; text-transform: capitalize; }
.template-card em { margin-top: 6px; color: var(--green-dark); font-size: 9px; font-style: normal; font-weight: 850; }
.reviews-section { background: #17211d; }
.reviews-section .section-title h2 { color: #fff; }
.reviews-section .eyebrow { color: #b7d184; }
.reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.reviews-grid blockquote { margin: 0; padding: 23px; color: #e8ecea; background: #222f29; border: 1px solid #35443d; border-radius: 15px; }
.reviews-grid blockquote > span { color: #efad43; font-size: 12px; letter-spacing: .05em; }
.reviews-grid p { margin: 13px 0 18px; color: #d3dad6; font-size: 11px; line-height: 1.7; }
.reviews-grid cite { color: #aebbb4; font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.store-faqs { max-width: 850px; margin: 0 auto; display: grid; gap: 9px; }
.store-faqs details { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.store-faqs summary { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 15px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 800; }
.store-faqs summary::-webkit-details-marker { display: none; }
.store-faqs summary span { color: var(--green); font-size: 18px; transition: transform .15s; }
.store-faqs details[open] summary span { transform: rotate(45deg); }
.store-faqs details > div { padding: 0 20px 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.store-faqs details > div p:last-child { margin-bottom: 0; }
.store-footer { padding: 28px clamp(18px, 5vw, 70px); display: flex; justify-content: space-between; gap: 20px; color: #b8c2bd; background: #101713; font-size: 10px; }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-nav a { padding-inline: 9px; }
  .snapshot-chip { display: none; }
  .editor-layout { grid-template-columns: minmax(0, 1fr) 250px; }
  .feature-grid, .template-grid, .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid.count-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .staging-ribbon { justify-content: flex-start; }
  .staging-ribbon span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-header { flex-wrap: wrap; }
  .mobile-nav-button { margin-left: auto; padding: 8px 11px; display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-weight: 800; }
  .admin-nav { width: 100%; display: none; }
  .admin-nav.is-open { display: flex; }
  .admin-main { width: calc(100% - 32px); padding-top: 30px; }
  .heading-with-action, .editor-heading { align-items: flex-start; flex-direction: column; }
  .heading-actions { width: 100%; flex-wrap: wrap; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .lower-grid { grid-template-columns: 1fr; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-sidebar { position: static; grid-row: 1; grid-template-columns: repeat(2, 1fr); }
  .save-panel { grid-column: 1 / -1; }
  .preview-banner { justify-content: flex-start; }
  .preview-banner span { display: none; }
  .category-hero { grid-template-columns: 1fr; padding-top: 20px; }
  .category-hero-image { min-height: 320px; grid-row: 1; }
  .feature-grid.count-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .staging-ribbon { font-size: 10px; }
  .admin-header { min-height: 70px; padding: 11px 16px; }
  .admin-nav.is-open { align-items: stretch; flex-direction: column; }
  .admin-main { width: calc(100% - 24px); padding: 24px 0 45px; }
  .admin-footer, .store-footer { flex-direction: column; }
  .page-heading h1 { font-size: 34px; }
  .heading-with-action > .button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .metric-card { padding: 13px; }
  .metric-card strong { font-size: 24px; }
  .records-toolbar { align-items: stretch; flex-direction: column; }
  .search-form { align-items: stretch; flex-wrap: wrap; }
  .search-form input { width: 100%; flex: 1 0 100%; }
  .panel-header, .form-section { padding: 20px; }
  .form-grid.two-columns, .switch-group, .editor-sidebar, .image-field { grid-template-columns: 1fr; }
  .image-preview { width: 100%; }
  .editor-sidebar { display: grid; }
  .category-cell { min-width: 290px; }
  .preview-context { align-items: flex-start; flex-direction: column; }
  .preview-context a { margin-left: 0; }
  .store-header nav a:first-child { display: none; }
  .store-brand small { display: none; }
  .breadcrumbs { padding-block: 15px; }
  .category-hero { width: calc(100% - 28px); gap: 28px; padding-bottom: 48px; }
  .category-copy h1 { font-size: 39px; }
  .category-hero-image { min-height: 260px; padding: 15px; border-radius: 18px; }
  .store-section { padding: 52px 14px; }
  .feature-grid, .feature-grid.count-2, .feature-grid.count-3, .template-grid, .reviews-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .dialog-actions { flex-direction: column-reverse; }
}

/* Category hub lives outside the admin table rules. */
.store-hero { padding: 78px max(18px, calc((100% - 1180px) / 2)); text-align: center; background: #f5f7f3; border-bottom: 1px solid var(--line); }
.store-hero h1 { margin: 10px 0 13px; font-size: clamp(39px, 6vw, 70px); letter-spacing: -.055em; }
.store-hero > p:last-of-type { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.65; }
.preview-facts { margin-top: 30px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.preview-facts span { padding: 9px 12px; color: #516047; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; }
.preview-facts b { margin-right: 3px; color: var(--green-dark); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.store-category-card { overflow: hidden; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.store-category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-image { height: 245px; overflow: hidden; position: relative; background: #eef1ed; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.store-category-card:hover img { transform: scale(1.03); }
.card-overlay { padding: 20px; display: flex; align-items: flex-end; position: absolute; inset: 0; color: #fff; background: linear-gradient(transparent 35%, rgba(14,23,18,.84)); opacity: 0; font-size: 11px; line-height: 1.5; transition: opacity .18s; }
.store-category-card:hover .card-overlay, .store-category-card:focus-visible .card-overlay { opacity: 1; }
.store-category-card > span:last-child { padding: 17px 18px; display: grid; gap: 6px; }
.store-category-card b { font-size: 14px; }
.store-category-card small { overflow: hidden; color: var(--muted); font: 9px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .store-hero { padding-block: 54px; } .category-grid { grid-template-columns: 1fr; } .card-image { height: 230px; } }

/* Production Catalogue Studio login */
.catalog-login-body { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 28px; color: #173c2f; background: #f2eee5; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.catalog-login-shell { width: min(960px, 100%); min-height: 590px; display: grid; grid-template-columns: minmax(280px, .82fr) minmax(420px, 1.18fr); overflow: hidden; border-radius: 26px; background: #fff; box-shadow: 0 30px 90px rgba(18, 63, 47, .16); }
.catalog-login-brand { display: flex; flex-direction: column; justify-content: center; padding: clamp(36px, 6vw, 70px); color: #fff; background: #123f2f; }
.catalog-login-mark { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 44px; border-radius: 16px; color: #123f2f; background: #b5d94b; font-size: 20px; font-weight: 950; }
.catalog-login-brand p { margin: 0 0 12px; color: #b5d94b; font-size: 14px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.catalog-login-brand h1 { margin: 0 0 28px; color: #fff; font-size: clamp(46px, 6vw, 70px); line-height: .92; letter-spacing: -.065em; }
.catalog-login-brand > span:last-child { color: #d7e2dc; font-size: 16px; }
.catalog-login-panel { align-self: center; padding: clamp(38px, 7vw, 78px); }
.catalog-login-panel .eyebrow { margin: 0 0 14px; color: #557820; font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.catalog-login-panel h2 { margin: 0 0 16px; color: #173c2f; font-size: clamp(32px, 4vw, 45px); line-height: 1.04; letter-spacing: -.045em; }
.catalog-login-panel > p:not(.eyebrow) { margin: 0 0 28px; color: #5d6d65; font-size: 17px; line-height: 1.6; }
.catalog-login-form { display: grid; gap: 18px; margin-top: 26px; }
.catalog-login-form label { display: grid; gap: 8px; }
.catalog-login-form label span { color: #253d33; font-size: 15px; font-weight: 850; }
.catalog-login-form input { width: 100%; min-height: 54px; padding: 13px 15px; border: 1px solid #cfd9d2; border-radius: 10px; color: #173c2f; background: #fff; font: inherit; font-size: 17px; }
.catalog-login-form input:focus { outline: 3px solid rgba(134, 173, 49, .22); border-color: #567f22; }
.catalog-login-form .button { min-height: 56px; margin-top: 4px; font-size: 17px; }
.catalog-login-panel > small { display: block; margin-top: 24px; color: #7b8881; font-size: 13px; line-height: 1.5; }
@media (max-width: 760px) {
  .catalog-login-body { padding: 16px; }
  .catalog-login-shell { min-height: 0; grid-template-columns: 1fr; border-radius: 20px; }
  .catalog-login-brand { padding: 28px; }
  .catalog-login-mark { width: 48px; height: 48px; margin-bottom: 24px; }
  .catalog-login-brand h1 { margin-bottom: 16px; font-size: 42px; }
  .catalog-login-panel { padding: 32px 26px 38px; }
}

/* 2026-09-04: starting-selection dropdowns in the catalogue editor get the same error highlight as inputs */
.field.has-error select { border-color: #cf766e; box-shadow: 0 0 0 3px rgba(179,65,55,.08); }

/* 2026-09-04: Product builder section — greyed-out options, coverage panel, quantity hint */
.option-check.is-unsupported { opacity: .45; }
.option-check.is-unsupported-ticked { opacity: 1; box-shadow: inset 0 0 0 2px #cf766e; border-radius: 8px; }
.builder-coverage { margin: 16px 0 4px; padding: 12px 16px; border: 1px solid #d9e2cc; border-radius: 10px; background: #f6f9f1; font-size: 15px; line-height: 1.45; }
.builder-coverage.has-problems { border-color: #f0c9c5; background: var(--red-soft); }
.builder-coverage ul { margin: 6px 0 0 18px; padding: 0; }
.builder-coverage ul[hidden], .builder-coverage p[hidden] { display: none; }
.builder-coverage p { margin: 4px 0 0; }
.builder-subnote { margin: -8px 0 12px; color: #5b6650; font-size: 14px; }
[data-quantities-hint].is-error { color: var(--red) !important; font-weight: 700; }

/* 2026-09-04: "What this page sells" — one card per label type, mirroring the live builder */
.builder-types { display: grid; gap: 12px; margin-bottom: 18px; }
.builder-type { border: 1px solid #dfe5d6; border-radius: 12px; background: #fff; }
.builder-type.is-on { border-color: #7a9a3a; box-shadow: 0 0 0 3px rgba(122,154,58,.10); }
.builder-type.has-error { border-color: #cf766e; }
.builder-type-head { display: flex; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; font-size: 17px; margin: 0; }
.builder-type-head input { width: 20px; height: 20px; flex: none; }
.builder-type-head small { display: block; color: #5b6650; font-size: 14px; font-weight: 400; }
.builder-type-body { padding: 0 16px 16px 50px; }
.builder-type-body[hidden] { display: none; }
.builder-type-note { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 650; }
.builder-type-note.is-warning { background: #fff6dc; color: #6b5300; }
.builder-type-note.is-error { background: var(--red-soft); color: var(--red); }
.builder-type-note[hidden] { display: none; }
.builder-shapes { display: grid; gap: 8px; }
.builder-shape { border: 1px solid #e6eadf; border-radius: 10px; padding: 8px 12px; }
.builder-shape.is-on { background: #f6f9f1; }
.builder-shape-head { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 16px; margin: 0; }
.builder-shape-head small { color: #5b6650; font-size: 13px; margin-left: 4px; }
.builder-sizes { display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 8px 0 2px 28px; }
.builder-sizes[hidden] { display: none; }
.builder-sizes .option-check { font-size: 15px; }
.builder-mini-links { flex-basis: 100%; font-size: 13px; color: #5b6650; }
.builder-mini-links a { color: #3f6b18; text-decoration: underline; }
.builder-custom { display: inline-flex; margin: 10px 0 4px; font-size: 16px; }
.builder-materials { margin-top: 12px; font-size: 16px; }
.builder-materials .compact-options { margin-top: 6px; }
.builder-materials .builder-mini-links { flex-basis: auto; margin-left: 8px; }
