:root {
  --ink: #17201d;
  --muted: #66736e;
  --line: #dfe5e2;
  --line-strong: #cfd8d4;
  --canvas: #f5f7f6;
  --surface: #ffffff;
  --surface-soft: #f0f4f2;
  --green: #245f50;
  --green-strong: #19493d;
  --green-soft: #e5f2ed;
  --sage: #8caf9f;
  --amber: #9a5b0b;
  --amber-soft: #fff1d6;
  --blue: #2f64a3;
  --blue-soft: #eaf2fc;
  --shadow: 0 1px 2px rgba(14, 27, 22, 0.06), 0 10px 28px rgba(14, 27, 22, 0.04);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(47, 111, 94, .23); outline-offset: 2px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 248px; display: flex; flex-direction: column; padding: 18px 14px 16px; background: #14241f; color: #dce7e3; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 18px; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #dff5ec, #98c3b4); color: #193e34; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45); }
.brand-mark span { font: 800 22px/1 Georgia, serif; }
.brand strong { display: block; font-size: 17px; letter-spacing: -.02em; color: white; }
.brand small { display: block; margin-top: 3px; color: #97aba4; font-size: 11px; }
.mobile-close { display: none; margin-left: auto; color: white; border: 0; background: transparent; }
.workspace-chip { display: flex; align-items: center; gap: 8px; margin: 0 4px 16px; padding: 10px 11px; border: 1px solid rgba(255,255,255,.09); border-radius: 9px; background: rgba(255,255,255,.055); font-size: 12px; color: #c8d7d1; }
.workspace-chip span { flex: 1; }
.main-nav { display: grid; gap: 3px; }
.main-nav button, .sidebar-bottom > button { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 11px; border: 0; border-radius: 8px; background: transparent; color: #aebfb9; cursor: pointer; text-align: left; transition: .18s ease; }
.main-nav button:hover, .sidebar-bottom > button:hover { background: rgba(255,255,255,.06); color: white; }
.main-nav button.active, .sidebar-bottom > button.active { background: #2c5145; color: white; box-shadow: inset 3px 0 #9dd1bf; }
.nav-count { margin-left: auto; padding: 1px 7px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 11px; }
.sidebar-bottom { margin-top: auto; display: grid; gap: 11px; }
.plan-tile { padding: 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 10px; background: rgba(255,255,255,.05); }
.plan-tile div:first-child { display: flex; align-items: center; gap: 8px; color: #f3faf7; font-size: 12px; }
.plan-tile p { margin: 7px 0 9px; color: #9db0a9; font-size: 11px; }
.meter { height: 4px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.1); }
.meter span { display: block; height: 100%; border-radius: inherit; background: #9bc9b9; }

.app-main { min-height: 100vh; margin-left: 248px; }
.topbar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 30px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(14px); }
.top-search { width: min(480px, 48vw); display: flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--canvas); color: var(--muted); }
.top-search input, .inline-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #dbe9e4; color: var(--green-strong); font-size: 11px; font-weight: 750; }
.menu-button { display: none !important; }

.content { max-width: 1460px; margin: 0 auto; padding: 31px clamp(22px, 3.2vw, 48px) 64px; }
.app-route-card { min-height: 280px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 42px; text-align: center; }
.app-route-card h1 { margin: 20px 0 8px; font-size: clamp(24px, 2.2vw, 31px); letter-spacing: -.035em; }
.app-route-card p { max-width: 520px; margin: 0 0 22px; color: var(--muted); line-height: 1.55; }
.app-route-spinner { width: 36px; height: 36px; border: 3px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; animation: app-route-spin .8s linear infinite; }
@keyframes app-route-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .app-route-spinner { animation-duration: 1.8s; } }
.page-heading { min-height: 59px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 0 0 6px; font-size: clamp(25px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -.035em; }
.page-heading p, .card-heading p, .editor-header p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.stack { display: grid; gap: 18px; }
.button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: white; color: var(--ink); font-size: 13px; font-weight: 650; cursor: pointer; box-shadow: 0 1px 1px rgba(0,0,0,.025); }
.button:hover { border-color: #aebbb6; background: #fafcfb; }
.button-primary { border-color: var(--green); background: var(--green); color: white; }
.button-primary:hover { border-color: var(--green-strong); background: var(--green-strong); }
.button-danger { border-color: #b42318; background: #b42318; color: white; }
.button-danger:hover { border-color: #912018; background: #912018; }
.button-quiet { border-color: transparent; background: transparent; box-shadow: none; color: var(--green); }
.button-dashed { width: 100%; border-style: dashed; color: var(--green); box-shadow: none; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.icon-button { width: 35px; height: 35px; display: inline-grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: var(--surface-soft); color: var(--ink); }
.badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 8px; border-radius: 999px; background: #edf1ef; color: #52605b; font-size: 11px; font-weight: 700; line-height: 1.35; }
.badge-success { background: var(--green-soft); color: #24614f; }
.badge-warning { background: var(--amber-soft); color: var(--amber); }
.badge-info { background: var(--blue-soft); color: var(--blue); }

.page-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 18px; }
.welcome-card { grid-column: 1 / -1; min-height: 240px; display: grid; grid-template-columns: 1.35fr .65fr; align-items: center; overflow: hidden; padding: 35px 40px; border-radius: 16px; background: linear-gradient(125deg, #163f35 0%, #276554 63%, #4c8b77 100%); color: white; box-shadow: 0 14px 35px rgba(17, 68, 54, .16); }
.welcome-card .badge { background: rgba(255,255,255,.14); color: #e9fff7; }
.welcome-card h2 { max-width: 650px; margin: 15px 0 10px; font-size: clamp(26px, 3.1vw, 41px); line-height: 1.06; letter-spacing: -.045em; }
.welcome-card p { max-width: 650px; margin: 0 0 23px; color: #d1e5de; line-height: 1.6; }
.welcome-card .button-secondary { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.08); color: white; }
.welcome-card .button-primary { border-color: #f2faf7; background: #f2faf7; color: #1d5445; }
.welcome-art { position: relative; min-height: 170px; }
.art-card { position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 14px; background: rgba(255,255,255,.13); box-shadow: 0 18px 35px rgba(0,0,0,.14); backdrop-filter: blur(5px); }
.art-back { top: 4px; right: 1%; width: 154px; height: 126px; transform: rotate(7deg); }
.art-back span { display: block; width: 55%; height: 8px; margin: 25px; border-radius: 8px; background: rgba(255,255,255,.32); }
.art-front { bottom: 0; right: 19%; width: 180px; height: 139px; padding: 29px 23px; transform: rotate(-4deg); background: rgba(248,255,252,.9); }
.art-line { height: 8px; margin-bottom: 13px; border-radius: 8px; background: #93b9ab; }
.art-line.wide { width: 88%; background: #387260; }
.art-line.short { width: 58%; }
.art-pill { position: absolute; right: 18px; bottom: 16px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #2e6d5a; color: white; }
.metric-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric { min-height: 116px; display: flex; align-items: flex-start; gap: 13px; padding: 19px; }
.metric-icon { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); }
.metric-icon.green { background: var(--green-soft); color: var(--green); }
.metric div:last-child { min-width: 0; display: grid; }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { margin: 4px 0 3px; font-size: 24px; letter-spacing: -.04em; }
.metric small { color: #87918d; font-size: 11px; }
.setup-card, .activity-card { padding: 23px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.card-heading.padded { padding: 22px 23px; }
.card-heading h2, .editor-header h2 { margin: 0 0 5px; font-size: 17px; letter-spacing: -.015em; }
.progress-label { color: var(--green); font-size: 12px; font-weight: 700; white-space: nowrap; }
.setup-list { margin: 18px -8px -8px; }
.setup-item { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 11px; padding: 13px 8px; border: 0; border-top: 1px solid #edf0ef; background: transparent; cursor: pointer; text-align: left; }
.setup-item:hover { background: #f8faf9; }
.check-circle { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: white; }
.check-circle.done { border-color: var(--green); background: var(--green); }
.setup-item strong, .setup-item small { display: block; }
.setup-item strong { margin-bottom: 4px; font-size: 13px; }
.setup-item small { color: var(--muted); font-size: 11px; line-height: 1.4; }
.setup-action { display: flex; align-items: center; gap: 2px; color: var(--green); font-size: 11px; font-weight: 700; }
.timeline { margin-top: 14px; }
.activity { display: grid; grid-template-columns: 34px 1fr auto; align-items: start; gap: 10px; padding: 13px 0; border-top: 1px solid #edf0ef; }
.activity:first-child { border-top: 0; }
.activity-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--surface-soft); color: var(--green); }
.activity strong, .activity span { display: block; }
.activity strong { font-size: 12px; }
.activity span, .activity time { margin-top: 4px; color: var(--muted); font-size: 10px; }

.table-card { overflow: hidden; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 17px; border-bottom: 1px solid var(--line); }
.inline-search { min-width: 250px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.inline-search.compact { min-width: 0; margin: 0 15px 13px; }
.toolbar select, .field-label select { min-height: 36px; padding: 7px 31px 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 12px; }
.toolbar-spacer { flex: 1; }
.data-table-wrap { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px 16px; background: #f7f9f8; color: var(--muted); font-size: 10px; letter-spacing: .04em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 14px 16px; border-top: 1px solid #edf0ef; vertical-align: middle; white-space: nowrap; }
.data-table tbody tr:hover { background: #fbfcfc; }
.entry-title { display: flex; align-items: center; gap: 10px; min-width: 280px; white-space: normal; }
.entry-title strong, .entry-title small { display: block; }
.entry-title strong { margin-bottom: 3px; font-size: 12px; }
.entry-title small { color: var(--muted); font-size: 10px; }
.entry-icon { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 8px; background: var(--green-soft); color: var(--green); }
.reference-count { display: flex; align-items: center; gap: 5px; color: var(--green); }
.muted { color: var(--muted); }
.priority { display: inline-grid; min-width: 28px; height: 25px; place-items: center; border-radius: 6px; background: #eff3f1; font-weight: 700; }
.empty-state { padding: 60px 20px; text-align: center; }
.empty-icon { width: 48px; height: 48px; display: grid; margin: 0 auto 15px; place-items: center; border-radius: 13px; background: var(--surface-soft); color: var(--green); }
.empty-state h3 { margin: 0 0 7px; }
.empty-state p { max-width: 430px; margin: 0 auto 18px; color: var(--muted); font-size: 13px; }

.collection-workspace { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 15px; align-items: start; }
.collection-list-panel { overflow: hidden; }
.panel-title { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px 11px; font-size: 13px; }
.collection-list { display: grid; padding: 0 8px 10px; }
.collection-list > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 9px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; text-align: left; }
.collection-list > button:hover { background: #f5f8f6; }
.collection-list > button.selected { background: var(--green-soft); }
.collection-list strong, .collection-list small { display: block; }
.collection-list strong { margin-bottom: 4px; font-size: 12px; }
.collection-list small { color: var(--muted); font-size: 10px; }
.collection-list .badge { flex: 0 0 auto; max-width: 70px; text-align: center; }
.collection-editor { overflow: hidden; }
.editor-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.eyebrow { display: block; margin-bottom: 5px; color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.notice { padding: 13px 16px; border: 1px solid transparent; border-radius: 10px; }
.notice > div { display: flex; align-items: center; gap: 8px; }
.notice strong { font-size: 12px; }
.notice p { margin: 4px 0 0 25px; font-size: 11px; line-height: 1.45; }
.notice.warning { margin: 14px 18px 0; border-color: #f0d59e; background: #fff8e8; color: #7a4a0b; }
.notice.info { border-color: #cbdcf0; background: #f1f6fc; color: #294f7e; }
.editor-body { display: grid; grid-template-columns: minmax(320px, .9fr) minmax(330px, 1.1fr); min-height: 540px; }
.entry-stack { padding: 21px; border-right: 1px solid var(--line); background: #fbfcfb; }
.section-label { display: flex; justify-content: space-between; margin-bottom: 10px; }
.section-label span { font-size: 12px; font-weight: 700; }
.section-label small { color: var(--muted); font-size: 10px; }
.sortable-entry { display: grid; grid-template-columns: 18px 25px 1fr 35px; align-items: center; gap: 8px; margin-bottom: 8px; padding: 12px 9px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.sortable-entry > svg { color: #a2aca8; }
.sortable-entry .position { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 6px; background: #f0f3f2; color: var(--muted); font-size: 10px; }
.sortable-entry strong, .sortable-entry small { display: block; }
.sortable-entry strong { margin-bottom: 4px; font-size: 11px; }
.sortable-entry small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.preview-panel { padding: 20px; background: #eef2f0; }
.preview-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; color: var(--muted); font-size: 11px; font-weight: 700; }
.preview-toolbar > div { display: flex; gap: 3px; }
.preview-toolbar button { width: 30px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.preview-toolbar button.active { background: white; color: var(--green); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.store-preview { width: 100%; max-width: 530px; min-height: 450px; margin: 0 auto; padding: 34px; border: 1px solid #d9e1dd; border-radius: 8px; background: white; box-shadow: 0 15px 30px rgba(38, 58, 50, .06); transition: width .25s ease; }
.store-preview.mobile { width: 330px; }
.preview-kicker { color: var(--green); font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.store-preview h3, .styled-preview h2 { margin: 7px 0; font: 500 25px/1.2 Georgia, serif; }
.preview-description { margin: 0 0 17px; color: var(--muted); font-size: 11px; }
.faq-search { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 7px; color: #7b8581; font-size: 10px; }
.store-preview details, .styled-preview details { border-top: 1px solid var(--line); }
.store-preview summary, .styled-preview summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 2px; list-style: none; cursor: pointer; font-size: 11px; font-weight: 700; }
.store-preview summary::-webkit-details-marker, .styled-preview summary::-webkit-details-marker { display: none; }
.store-preview details p, .styled-preview details p { margin: -2px 25px 14px 2px; color: var(--muted); font-size: 10px; line-height: 1.6; }

.conflict-card { display: flex; align-items: center; gap: 14px; padding: 19px; }
.conflict-visual { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.conflict-card div:nth-child(2) { flex: 1; }
.conflict-card h3 { margin: 0 0 5px; font-size: 14px; }
.conflict-card p { margin: 0; color: var(--muted); font-size: 11px; }
.two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.upload-card, .export-card { padding: 27px; }
.feature-icon { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 17px; border-radius: 11px; background: var(--green-soft); color: var(--green); }
.feature-icon.blue { background: var(--blue-soft); color: var(--blue); }
.upload-card h2, .export-card h2 { margin: 0 0 8px; font-size: 18px; }
.upload-card > p, .export-card > p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.dropzone { width: 100%; min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1.5px dashed #9cb4aa; border-radius: 12px; background: #f7faf8; color: var(--green); cursor: pointer; }
.dropzone:hover { background: #eff6f3; }
.dropzone strong { font-size: 13px; }
.dropzone span { color: var(--muted); font-size: 10px; }
.safe-row, .schema-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.safe-row svg, .schema-note svg { flex: 0 0 auto; color: var(--green); }
.import-choice { display: grid; gap: 9px; margin: 14px 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.import-choice legend { padding: 0 5px; color: var(--ink); font-size: 12px; font-weight: 700; }
.import-choice label { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 12px; }
.export-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line); }
.export-option strong, .export-option span { display: block; }
.export-option strong { margin-bottom: 4px; font-size: 12px; }
.export-option span { color: var(--muted); font-size: 10px; }

.appearance-layout { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(440px, 1.28fr); gap: 18px; }
.settings-panel { padding: 23px; }
.settings-panel .card-heading { margin-bottom: 20px; }
.field-label { display: grid; gap: 7px; margin-bottom: 17px; color: #38433f; font-size: 11px; font-weight: 700; }
.field-label input:not([type="range"]):not([type="color"]), .field-label textarea, .field-label select { width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid var(--line-strong); border-radius: 8px; outline: 0; color: var(--ink); font-size: 12px; font-weight: 400; resize: vertical; }
.field-label input:focus, .field-label textarea:focus, .field-label select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(36,95,80,.1); }
.field-label small { color: var(--muted); font-size: 9px; font-weight: 400; }
.color-input { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; }
.color-input input { width: 25px; height: 25px; padding: 0; border: 0; background: transparent; }
.color-input code { color: var(--muted); font-size: 11px; }
.range-value { float: right; margin-left: auto; color: var(--green); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-top: 1px solid var(--line); }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { margin-bottom: 4px; font-size: 12px; }
.switch-row small { color: var(--muted); font-size: 9px; }
.switch-row input { width: 34px; height: 18px; accent-color: var(--green); }
.appearance-preview { padding: 20px; background: #eef2f0; }
.styled-preview { min-height: 475px; padding: 52px clamp(25px, 5vw, 65px); border-radius: 9px; background: white; box-shadow: 0 15px 30px rgba(38,58,50,.06); }
.styled-preview .preview-kicker { color: var(--demo-accent); }
.styled-preview .faq-search, .styled-preview details { border-color: color-mix(in srgb, var(--demo-accent) 20%, #dfe5e2); }
.styled-preview .faq-search { border-radius: var(--demo-radius); }
.styled-preview details summary { color: color-mix(in srgb, var(--demo-accent) 76%, #17201d); }
.styled-preview[data-border="none"] details { border: 0; }
.styled-preview[data-border="soft"] details { border: 1px solid color-mix(in srgb, var(--demo-accent) 20%, #dfe5e2); border-radius: var(--demo-radius); padding-inline: 12px; margin-bottom: 8px; }
.styled-preview[data-border="divider"] details { border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.styled-preview[data-border="divider"] details:last-child { border-bottom: 1px solid var(--line); }

.billing-wrap { max-width: 1180px; margin: 0 auto; }
.billing-switch { width: fit-content; display: flex; margin: 0 auto 24px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.billing-switch button { display: flex; align-items: center; gap: 6px; padding: 8px 13px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.billing-switch button.active { background: var(--green); color: white; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 25px; }
.price-card.featured { border: 1.5px solid var(--green); box-shadow: 0 12px 35px rgba(36,95,80,.12); }
.popular { position: absolute; top: -11px; left: 50%; padding: 4px 10px; transform: translateX(-50%); border-radius: 999px; background: var(--green); color: white; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.price-head h2 { margin: 0 0 5px; font-size: 19px; }
.price-head > p { margin: 0; color: var(--muted); font-size: 11px; }
.price { min-height: 69px; display: flex; align-items: baseline; gap: 7px; margin: 18px 0 4px; }
.price strong { font-size: 32px; letter-spacing: -.05em; }
.price span { color: var(--muted); font-size: 10px; line-height: 1.35; }
.price-card ul { flex: 1; margin: 22px 0; padding: 0; list-style: none; }
.price-card li { display: flex; align-items: center; gap: 8px; margin: 11px 0; color: #42504b; font-size: 11px; }
.price-card li svg { color: var(--green); }
.price-card > .button { width: 100%; }
.billing-footnote { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px; background: #f8faf9; }
.billing-footnote svg { flex: 0 0 auto; color: var(--green); }
.billing-footnote strong { font-size: 12px; }
.billing-footnote p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }

.help-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.onboarding-card { padding: 24px; }
.steps { margin: 21px 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.steps li > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 800; }
.steps strong { font-size: 12px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.help-links { padding: 13px; }
.help-links h2 { margin: 8px 7px 10px; font-size: 15px; }
.help-links button { width: 100%; display: grid; grid-template-columns: 30px 1fr 18px; align-items: center; gap: 8px; padding: 13px 8px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--green); cursor: pointer; text-align: left; }
.help-links button:hover { background: #f8faf9; }
.help-links strong, .help-links small { display: block; color: var(--ink); }
.help-links strong { margin-bottom: 4px; font-size: 11px; }
.help-links small { color: var(--muted); font-size: 9px; }
.support-card { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 19px; }
.support-card .feature-icon { flex: 0 0 auto; margin: 0; }
.support-card > div:nth-child(2) { flex: 1; }
.support-card h3 { margin: 0 0 4px; font-size: 14px; }
.support-card p { margin: 0; color: var(--muted); font-size: 10px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(9, 19, 16, .53); backdrop-filter: blur(3px); }
.modal { width: min(620px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 15px; background: white; box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font-size: 19px; }
.modal-body { padding: 22px 24px 3px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 24px; border-top: 1px solid var(--line); background: #fafbfb; }
.toast { position: fixed; right: 25px; bottom: 24px; z-index: 120; display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-radius: 9px; background: #173f35; color: white; box-shadow: 0 12px 35px rgba(0,0,0,.22); font-size: 12px; font-weight: 650; }
.mobile-scrim { display: none; }

@media (max-width: 1100px) {
  .metric-row { grid-template-columns: repeat(2, 1fr); }
  .collection-workspace { grid-template-columns: 225px minmax(0, 1fr); }
  .editor-body { grid-template-columns: 1fr; }
  .entry-stack { border-right: 0; border-bottom: 1px solid var(--line); }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card { min-height: 0; }
  .price-card ul { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 840px) {
  .sidebar { visibility: hidden; transform: translateX(-102%); transition: transform .22s ease; }
  .sidebar.sidebar-open { visibility: visible; transform: translateX(0); }
  .mobile-close { display: block; }
  .mobile-scrim { position: fixed; inset: 0; z-index: 25; display: block; border: 0; background: rgba(0,0,0,.38); }
  .app-main { margin-left: 0; }
  .menu-button { display: inline-grid !important; }
  .topbar { padding: 0 17px; }
  .content { padding: 24px 17px 45px; }
  .top-search { width: 48vw; }
  .overview-grid, .two-column, .appearance-layout, .help-grid { grid-template-columns: 1fr; }
  .welcome-card { grid-template-columns: 1fr; padding: 29px; }
  .welcome-art { display: none; }
  .setup-card, .activity-card, .support-card { grid-column: auto; }
  .collection-workspace { grid-template-columns: 1fr; }
  .collection-list { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .collection-list > button { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .top-search { flex: 1; width: auto; }
  .top-actions .badge, .top-actions .icon-button { display: none; }
  .page-heading { align-items: flex-end; }
  .page-heading p { display: none; }
  .metric-row { grid-template-columns: 1fr; }
  .welcome-card h2 { font-size: 27px; }
  .collection-list { grid-template-columns: 1fr; }
  .editor-header { align-items: flex-start; flex-direction: column; }
  .store-preview, .store-preview.mobile { width: 100%; padding: 25px 20px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .inline-search { min-width: 0; }
  .toolbar-spacer { display: none; }
  .price-card ul { grid-template-columns: 1fr; }
  .billing-switch { width: 100%; }
  .billing-switch button { flex: 1; justify-content: center; }
  .support-card, .conflict-card { align-items: flex-start; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
.faqmilo-answer-preview { line-height: 1.6; overflow-wrap: anywhere; }
.faqmilo-answer-preview > :first-child { margin-top: 0; }
.faqmilo-answer-preview > :last-child { margin-bottom: 0; }
.faqmilo-answer-preview a { color: var(--accent, #2f6f5e); text-decoration: underline; }
.field-error { color: #b42318; font-size: .875rem; }
