:root {
    --ink: #172036;
    --muted: #667085;
    --line: #e7e9f0;
    --surface: #ffffff;
    --soft: #f6f7fb;
    --primary: #5b5bd6;
    --primary-dark: #4545bd;
    --success: #157f57;
    --danger: #c83d4d;
    font-family: Inter, "Noto Sans Thai", "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
}

.catalog-heading-actions, .catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.catalog-filter-form { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto auto; align-items: center; gap: 10px; margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.catalog-filter-form input, .catalog-filter-form select { min-height: 42px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; }
.catalog-filter-form .catalog-featured-filter { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; white-space: nowrap; }
.catalog-filter-form .catalog-featured-filter input[type="checkbox"] { width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; flex: 0 0 17px; accent-color: var(--primary); }
.catalog-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.catalog-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.catalog-table th, .catalog-table td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.catalog-table th { color: var(--muted); font-size: 11px; }
.catalog-table td small { display: block; color: var(--muted); }
.catalog-product-cell { display: flex; align-items: center; gap: 11px; min-width: 220px; }
.catalog-product-cell img, .catalog-product-cell .image-placeholder { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; }
.catalog-actions form { margin: 0; }
.catalog-actions button, .catalog-actions a { border: 0; background: transparent; color: var(--primary); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.catalog-category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.catalog-category-card { display: grid; gap: 11px; padding: 20px; }
.catalog-category-card label { display: grid; gap: 5px; }
.catalog-category-card input, .catalog-category-card select, .catalog-category-card textarea { width: 100%; min-height: 42px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; }
.catalog-image-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.catalog-image-grid article { padding: 10px; border: 1px solid var(--line); border-radius: 11px; }
.catalog-image-grid img { display: block; width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; }
.catalog-image-grid span { display: block; min-height: 24px; padding: 5px 0; color: var(--primary); font-size: 12px; font-weight: 700; }
@media (max-width: 800px) {
    .catalog-filter-form, .catalog-category-grid { grid-template-columns: 1fr; }
    .catalog-image-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.member-html { width: 100%; max-width: 100%; overflow-x: hidden; }
body { margin: 0; background: #fff; color: var(--ink); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.brand span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--primary); color: #fff; font-size: 12px; letter-spacing: -.5px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; cursor: pointer; transition: .2s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button.primary { background: var(--primary); color: #fff; box-shadow: 0 10px 25px rgba(91,91,214,.22); }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button.ghost { border-color: #d9dced; background: rgba(255,255,255,.68); }
.button.light { background: #fff; color: var(--primary-dark); }
.button.small { min-height: 38px; padding: 0 16px; border-radius: 10px; font-size: 14px; }
.button.full { width: 100%; }
.link-button, .danger-link { padding: 0; border: 0; background: none; cursor: pointer; }
.link-button:hover { color: var(--primary); }
.danger-link { color: var(--danger); }
.text-link { color: var(--primary); font-weight: 700; font-size: 14px; }
.eyebrow { margin: 0 0 12px; color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.muted { color: var(--muted); }

.landing-nav { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: auto; padding: 24px 28px; }
.landing-nav nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 14px; }
.landing-nav nav > a:not(.button):hover { color: var(--primary); }
.hero { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 70px; align-items: center; min-height: 690px; max-width: 1280px; margin: auto; padding: 70px 68px 110px; overflow: hidden; }
.hero::before { content: ""; position: absolute; z-index: -1; top: -170px; right: -190px; width: 720px; height: 720px; border-radius: 50%; background: radial-gradient(circle, #ececff 0, #f7f7ff 50%, transparent 72%); }
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(46px, 5.3vw, 72px); line-height: 1.1; letter-spacing: -3.2px; }
.hero-lead { max-width: 590px; margin: 26px 0 32px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 12px; }
.trust-row { display: flex; gap: 22px; margin-top: 27px; color: #7a8296; font-size: 13px; font-weight: 600; }
.hero-preview { transform: rotate(1.5deg); overflow: hidden; border: 8px solid #fff; border-radius: 24px; background: white; box-shadow: 0 38px 80px rgba(36,36,84,.2); }
.preview-toolbar { display: flex; align-items: center; gap: 7px; height: 48px; padding: 0 15px; background: #f4f5f9; }
.preview-toolbar i { width: 9px; height: 9px; border-radius: 50%; background: #d5d8e3; }
.preview-toolbar span { margin-left: 10px; padding: 5px 15px; border-radius: 7px; background: #fff; color: #959bad; font-size: 10px; }
.preview-page { min-height: 390px; padding: 38px; background: linear-gradient(145deg,#f9f9ff,#eef0ff); }
.preview-menu { width: 55%; height: 12px; margin-left: auto; border-radius: 10px; background: #d7d9ec; }
.preview-title { width: 77%; height: 48px; margin-top: 75px; border-radius: 10px; background: #3f4265; }
.preview-subtitle { width: 62%; height: 13px; margin-top: 19px; border-radius: 10px; background: #c0c4dc; }
.preview-button { width: 105px; height: 36px; margin-top: 28px; border-radius: 9px; background: var(--primary); }
.preview-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 70px; }
.preview-cards i { height: 76px; border-radius: 11px; background: #fff; box-shadow: 0 7px 20px rgba(46,46,85,.08); }
.feature-section, .template-section { max-width: 1200px; margin: auto; padding: 110px 28px; }
.feature-section > h2, .template-section h2, .cta-section h2 { max-width: 670px; margin: 0; font-size: clamp(34px,4vw,52px); line-height: 1.18; letter-spacing: -2px; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 60px; }
.feature-grid article { padding: 32px; border: 1px solid var(--line); border-radius: 20px; }
.feature-grid article > span { color: var(--primary); font-size: 13px; font-weight: 800; }
.feature-grid h3 { margin: 40px 0 8px; font-size: 21px; }
.feature-grid p, .template-card p { margin: 0; color: var(--muted); }
.template-section { max-width: none; padding-right: max(28px,calc((100% - 1144px)/2)); padding-left: max(28px,calc((100% - 1144px)/2)); background: var(--soft); }
.template-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 54px; }
.template-card { padding: 14px 14px 24px; border: 1px solid #e5e7ef; border-radius: 20px; background: #fff; }
.template-card h3 { margin: 19px 10px 2px; }
.template-card p { margin: 0 10px; font-size: 14px; }
.template-art, .option-preview { position: relative; display: block; overflow: hidden; height: 210px; border-radius: 13px; background: #eef0ff; }
.template-art::before, .option-preview::before { content: ""; position: absolute; top: 20%; left: 12%; width: 58%; height: 16%; border-radius: 7px; background: #404467; }
.template-art i, .option-preview i { position: absolute; top: 43%; left: 12%; width: 32%; height: 6%; border-radius: 6px; background: #afb4d2; }
.template-art b, .option-preview b { position: absolute; right: 10%; bottom: -9%; width: 42%; height: 68%; border-radius: 50% 50% 0 0; background: #6565db; }
.template-art span, .option-preview em { position: absolute; left: 12%; bottom: 15%; width: 22%; height: 12%; border-radius: 6px; background: #5b5bd6; }
.template-card.shop .template-art, .theme-shop-01 { background: #fff4e8; }
.template-card.shop .template-art b, .theme-shop-01 b { border-radius: 15px; background: #f29d62; }
.template-card.personal .template-art, .theme-personal-01 { background: #ecf7f3; }
.template-card.personal .template-art b, .theme-personal-01 b { background: #4b9b83; }
.cta-section { margin: 0; padding: 100px 28px; text-align: center; background: var(--primary); color: #fff; }
.cta-section .eyebrow { color: #cacaFF; }
.cta-section h2 { margin: auto; }
.cta-section p:not(.eyebrow) { margin: 20px auto 30px; color: #dadaff; }
.landing-footer { display: flex; justify-content: space-between; padding: 30px max(28px,calc((100% - 1144px)/2)); color: var(--muted); font-size: 13px; }
.business-types { padding: 30px 5%; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; text-align: center; }
.business-types-label { margin: 0 0 14px; color: var(--muted); font-size: 14px; font-weight: 800; }
.business-types-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.business-types-list span { padding: 8px 14px; border: 1px solid #e2e5ee; border-radius: 999px; background: #f8f9fc; color: #4b5568; font-size: 14px; font-weight: 700; }
.section-heading { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-heading h2 { margin: 10px 0 14px; font-size: clamp(34px,4vw,50px); line-height: 1.15; letter-spacing: -1.8px; }
.section-heading > p:last-child:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.8; }
.section-action { margin-top: 42px; text-align: center; }
.steps-section, .pricing-section, .faq-section { padding: 105px max(28px,calc((100% - 1144px)/2)); }
.steps-section { background: #f7f8fb; }
.steps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; max-width: 1144px; margin: 0 auto; }
.step-card { padding: 32px; border: 1px solid #e2e5ee; border-radius: 22px; background: #fff; transition: transform .2s ease,box-shadow .2s ease; }
.step-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(32,39,72,.08); }
.step-number { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; margin-bottom: 24px; border-radius: 14px; background: #ededff; color: var(--primary); font-weight: 900; }
.step-card h3 { margin: 0 0 10px; font-size: 21px; }
.step-card p { margin: 0; color: var(--muted); }
.pricing-section { background: radial-gradient(circle at top left,rgba(91,91,214,.11),transparent 29%),#fff; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 24px; max-width: 1144px; margin: 0 auto; padding-top: 14px; }
.pricing-card { position: relative; display: flex; min-width: 0; flex-direction: column; padding: 34px; border: 1px solid #e2e5ee; border-radius: 26px; background: #fff; box-shadow: 0 18px 50px rgba(27,35,65,.06); }
.pricing-card.featured { border: 2px solid var(--primary); transform: translateY(-14px); box-shadow: 0 28px 70px rgba(75,70,190,.17); }
.popular-badge, .coming-badge { position: absolute; top: 18px; right: 18px; padding: 6px 11px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 900; }
.coming-badge { background: #e9eaf0; color: #60687a; }
.pricing-name { margin: 0 0 9px; color: var(--primary); font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.pricing-card h3 { margin: 0 0 10px; padding-right: 30px; font-size: 23px; line-height: 1.35; }
.pricing-description { min-height: 74px; margin: 0; color: var(--muted); }
.pricing-price { display: flex; align-items: baseline; gap: 8px; margin: 27px 0; }
.pricing-price strong { color: #11192c; font-size: 48px; line-height: 1; letter-spacing: -2px; }
.pricing-price span { color: var(--muted); font-size: 14px; }
.pricing-features { display: grid; gap: 12px; margin: 0 0 30px; padding: 0; list-style: none; }
.pricing-features li { color: #374156; font-size: 14px; }
.pricing-features li.muted { color: #98a0b1; }
.pricing-card .button { margin-top: auto; }
.button.dark { background: #151d2d; color: #fff; }
.button.dark:hover { background: #273147; }
.pricing-note { max-width: 780px; margin: 35px auto 0; color: var(--muted); font-size: 13px; text-align: center; }
.comparison-wrap { max-width: 980px; margin: 75px auto 0; padding: 30px; border: 1px solid #e4e6ee; border-radius: 24px; background: rgba(255,255,255,.82); box-shadow: 0 18px 45px rgba(32,39,72,.05); }
.comparison-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.comparison-heading .eyebrow { margin: 0; }
.comparison-heading h3 { margin: 0; font-size: 25px; }
.comparison-scroll { overflow-x: auto; }
.comparison-table { width: 100%; min-width: 650px; border-collapse: collapse; text-align: center; }
.comparison-table th, .comparison-table td { padding: 15px 14px; border-bottom: 1px solid #e9ebf1; }
.comparison-table thead th { background: #f4f4ff; color: #313a50; font-size: 13px; }
.comparison-table thead th:first-child { border-radius: 10px 0 0 10px; }
.comparison-table thead th:last-child { border-radius: 0 10px 10px 0; }
.comparison-table tbody th { color: #3f485d; text-align: left; font-size: 14px; }
.comparison-table td { color: var(--primary); font-weight: 800; font-size: 14px; }
.faq-section { background: #f7f8fb; }
.faq-list { display: grid; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq-list details { overflow: hidden; border: 1px solid #e2e5ee; border-radius: 17px; background: #fff; }
.faq-list summary { position: relative; padding: 21px 56px 21px 24px; color: #182033; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 50%; right: 24px; content: "+"; color: var(--primary); font-size: 24px; transform: translateY(-50%); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 24px 23px; color: var(--muted); }

.auth-body { min-height: 100vh; background: radial-gradient(circle at top left,#efefff,transparent 45%), var(--soft); }
.auth-shell { width: min(480px,calc(100% - 32px)); margin: auto; padding: 45px 0; }
.auth-shell > .brand { display: flex; width: max-content; margin: 0 auto 28px; }
.auth-card { padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 24px 70px rgba(34,41,71,.09); }
.auth-card h1 { margin: 0; font-size: 34px; letter-spacing: -1px; }
.auth-card > .muted { margin: 7px 0 24px; }
.stack-form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #3b4356; font-size: 14px; font-weight: 700; }
input, textarea, select { width: 100%; border: 1px solid #d9dde8; border-radius: 10px; outline: none; background: #fff; color: var(--ink); }
input, select { height: 46px; padding: 0 13px; }
textarea { padding: 11px 13px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,91,214,.1); }
input:disabled { background: #f3f4f7; color: #7c8496; }
label small { color: var(--muted); font-weight: 500; }
.auth-switch { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.auth-switch a { color: var(--primary); font-weight: 800; }
.alert { margin: 0 0 20px; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.alert.error { background: #fff0f1; color: #a92d3b; }
.alert.success { background: #eaf9f2; color: var(--success); }

.member-body { width: 100%; max-width: 100%; min-height: 100vh; overflow-x: hidden; overflow-x: clip; background: var(--soft); }
.member-nav { position: sticky; z-index: 10; top: 0; display: flex; width: 100%; max-width: 100%; min-width: 0; justify-content: space-between; align-items: center; min-height: 72px; padding: 0 clamp(24px,3vw,56px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.member-nav nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.message-nav-link { display: inline-flex; align-items: center; gap: 7px; }
.message-nav-link span { display: grid; min-width: 20px; height: 20px; place-items: center; padding: 0 6px; border-radius: 20px; background: #e54858; color: #fff; font-size: 10px; font-weight: 900; }
.member-name { padding-left: 24px; border-left: 1px solid var(--line); color: var(--muted); }
.member-nav form { margin: 0; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 7px; max-width: 190px; padding: 9px 12px; border-radius: 10px; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary::after { content: "⌄"; color: var(--muted); }
.account-menu[open] summary, .account-menu summary:hover { background: #f2f2ff; color: var(--primary); }
.account-menu > div { position: absolute; top: calc(100% + 10px); right: 0; display: grid; width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 18px 45px rgba(28,35,58,.15); }
.account-menu > div a, .account-menu .link-button { width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: transparent; color: #454c5e; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.account-menu > div a:hover, .account-menu .link-button:hover { background: #f4f4ff; color: var(--primary); }
.account-menu form { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 5px; }
.member-main { width: 100%; max-width: 100%; min-height: calc(100vh - 72px); margin: 0; padding: 48px clamp(24px,3vw,56px) 80px; }
.page-heading, .editor-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.page-heading > div, .editor-heading > div { min-width: 0; }
.page-heading h1, .editor-heading h1, .page-heading p, .editor-heading p { overflow-wrap: anywhere; }
.page-heading h1, .editor-heading h1 { margin: 0; font-size: 38px; letter-spacing: -1.5px; }
.page-heading p:not(.eyebrow), .editor-heading p { margin: 4px 0 0; color: var(--muted); }
.page-heading.compact { align-items: start; }
.back-link { display: inline-block; margin-bottom: 8px; color: var(--primary); font-size: 14px; font-weight: 700; }
.empty-state { padding: 85px 30px; border: 1px dashed #ced2e1; border-radius: 24px; text-align: center; background: #fff; }
.empty-state h2 { margin: 15px 0 4px; }
.empty-state p { margin: 0 0 24px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: auto; border-radius: 20px; background: #eeeeff; color: var(--primary); font-size: 30px; }
.empty-setup-steps { display: flex; max-width: 760px; margin: 28px auto; padding: 0; justify-content: center; gap: 14px; list-style: none; }
.empty-setup-steps li { display: flex; flex: 1; align-items: center; gap: 9px; padding: 13px; border-radius: 12px; background: #f7f7fc; color: #4f586b; text-align: left; font-size: 13px; font-weight: 700; }
.empty-setup-steps span { display: grid; flex: 0 0 28px; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #e8e8ff; color: var(--primary); }
.empty-state-actions { display: flex; justify-content: center; gap: 10px; }
.site-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.site-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: .2s; }
.site-card:hover { transform: translateY(-3px); box-shadow: 0 18px 35px rgba(31,38,69,.08); }
.site-card-preview { position: relative; height: 190px; overflow: hidden; background: linear-gradient(145deg,#f0f0ff,#f8f8ff); }
.site-card-preview::after { content: ""; position: absolute; right: -25px; bottom: -45px; width: 175px; height: 175px; border-radius: 50%; background: var(--site-color); opacity: .85; }
.site-card-preview.theme-shop-01 { background: #fff5e9; }
.site-card-preview.theme-personal-01 { background: #edf8f3; }
.site-card-preview .mini-logo { position: absolute; top: 24px; left: 28px; z-index: 2; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: var(--site-color); color: #fff; font-weight: 800; }
.site-card-preview i, .site-card-preview b { position: absolute; left: 28px; z-index: 2; display: block; border-radius: 6px; background: #343951; }
.site-card-preview i { top: 85px; width: 55%; height: 15px; }
.site-card-preview b { top: 111px; width: 36%; height: 8px; opacity: .35; }
.status-badge { position: absolute; z-index: 3; top: 20px; right: 20px; padding: 4px 10px; border-radius: 30px; background: #e5f7ef; color: #167753; font-size: 11px; font-weight: 800; }
.status-badge.draft { background: #eef0f4; color: #737b8b; }
.status-badge.suspended { background: #fee9ec; color: #b93848; }
.site-card-body { padding: 22px; }
.site-card-body h2 { margin: 0; font-size: 19px; }
.site-card-body > p { margin: 2px 0 10px; color: var(--muted); font-size: 13px; }
.site-card-body > .site-route { display: block; margin: 0 0 15px; overflow: hidden; color: var(--primary); font-family: Consolas, monospace; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.template-label { color: var(--primary); font-size: 12px; font-weight: 800; }
.site-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-card-meta span { display: grid; min-width: 0; gap: 2px; }
.site-card-meta small { color: var(--muted); font-size: 10px; }
.site-card-meta strong { overflow: hidden; color: #3d465a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.site-progress-summary { display: grid; gap: 7px; margin-top: 15px; }
.site-progress-summary > div:first-child { display: flex; justify-content: space-between; color: #424b5f; font-size: 12px; }
.site-progress-summary > div:first-child span { color: var(--primary); font-weight: 900; }
.site-progress-summary > small { color: var(--muted); font-size: 10px; }
.site-progress-track, .setup-progress-track { overflow: hidden; height: 8px; border-radius: 99px; background: #e9eaf1; }
.site-progress-track span, .setup-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--primary),#8585ed); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.card-actions .button { width: 100%; }
.member-pagination { display: flex; justify-content: center; gap: 7px; margin-top: 28px; }
.member-pagination a { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--muted); font-weight: 800; }
.member-pagination a.active { border-color: var(--primary); background: var(--primary); color: #fff; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.create-layout { display: grid; min-width: 0; gap: 22px; }
.create-layout .panel { padding: 28px; }
.create-layout > .button { justify-self: start; }
.panel h2 { margin: 0 0 21px; font-size: 20px; }
.account-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 24px; }
.account-panel { padding: 28px; }
.account-info-list { display: grid; grid-template-columns: 145px minmax(0,1fr); gap: 13px 18px; margin: 0; }
.account-info-list dt { color: var(--muted); font-size: 13px; }
.account-info-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-weight: 700; }
.account-security-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.account-security-grid .account-panel h2 { margin-bottom: 8px; }
.account-security-grid .account-panel p { color: var(--muted); line-height: 1.6; }
.account-security-grid .account-panel .button { margin-top: 8px; }
.account-danger-zone { border-color: #f0caca; background: #fffafa; }
.account-security-icon { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 10px; background: #ededff; color: var(--primary); font-size: 20px; font-weight: 800; }
.account-password-panel { max-width: 680px; }
.auth-help { margin: 15px 0 0; text-align: right; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); min-width: 0; gap: 18px; }
.form-grid > * { min-width: 0; }
.span-2 { grid-column: span 2; }
.domain-input { display: flex; align-items: center; min-width: 0; overflow: hidden; border: 1px solid #d9dde8; border-radius: 10px; background: #f6f7fa; }
.domain-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,91,214,.1); }
.domain-input input { flex: 1 1 0; width: auto; min-width: 0; border: 0; box-shadow: none; }
.domain-input span { padding: 0 14px; color: var(--muted); white-space: nowrap; font-weight: 500; }
.template-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); min-width: 0; gap: 16px; }
.template-option { position: relative; min-width: 0; overflow: hidden; padding: 10px 10px 17px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; }
.template-option:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,91,214,.08); }
.template-option input { position: absolute; top: 18px; right: 18px; z-index: 2; width: 18px; height: 18px; accent-color: var(--primary); }
.option-preview { height: 140px; margin-bottom: 12px; }
.template-option strong, .template-option small { display: block; padding: 0 5px; }
.template-option small { color: var(--muted); font-weight: 500; overflow-wrap: anywhere; }
.template-summary { display: grid; grid-template-columns: 220px minmax(0,1fr); align-items: center; gap: 26px; }
.template-summary h2 { margin: 4px 0; }
.template-summary p { margin: 0; color: var(--muted); }
.template-summary-preview { position: relative; display: block; overflow: hidden; height: 130px; border-radius: 13px; background: #eef0ff; }
.template-summary-preview::before { content: ""; position: absolute; top: 22%; left: 10%; width: 60%; height: 16%; border-radius: 7px; background: #404467; }
.template-summary-preview i { position: absolute; top: 47%; left: 10%; width: 34%; height: 6%; border-radius: 6px; background: #afb4d2; }
.template-summary-preview b { position: absolute; right: 7%; bottom: -16%; width: 43%; height: 76%; border-radius: 50% 50% 0 0; background: #6565db; }
.template-summary-preview em { position: absolute; left: 10%; bottom: 17%; width: 24%; height: 12%; border-radius: 6px; background: #5b5bd6; }
.editor-heading { align-items: center; }
.editor-layout { display: grid; width: 100%; max-width: 100%; min-width: 0; grid-template-columns: 210px minmax(0,1fr); gap: 28px; }
.editor-sidebar { position: sticky; top: 100px; align-self: start; display: grid; min-width: 0; gap: 4px; }
.editor-sidebar a { padding: 10px 14px; border-radius: 9px; color: var(--muted); font-size: 14px; font-weight: 700; }
.editor-sidebar a:hover, .editor-sidebar a.active { background: #ebebff; color: var(--primary); }
.editor-content { display: grid; max-width: 100%; gap: 24px; min-width: 0; }
.editor-content > *, .editor-panel, .editor-panel form { max-width: 100%; min-width: 0; }
.editor-panel { padding: 28px; scroll-margin-top: 95px; }
.onboarding-welcome { display: flex; align-items: center; gap: 22px; margin-bottom: 20px; padding: 22px 26px; border-color: #ccccff; background: linear-gradient(135deg,#f6f6ff,#fff); }
.onboarding-welcome h2 { margin-bottom: 4px; }
.onboarding-welcome p { margin: 0; color: var(--muted); }
.onboarding-kicker { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 900; white-space: nowrap; }
.setup-progress-card { display: grid; gap: 18px; margin-bottom: 30px; padding: 28px; border: 1px solid #d9dbea; border-radius: 20px; background: #fff; box-shadow: 0 15px 35px rgba(31,38,69,.05); }
.setup-progress-card.is-complete { border-color: #bce8d3; background: linear-gradient(135deg,#f4fff9,#fff); }
.setup-progress-copy { display: flex; align-items: center; gap: 18px; }
.setup-progress-copy h2 { margin: 0 0 3px; font-size: 23px; }
.setup-progress-copy p { margin: 0; color: var(--muted); }
.setup-progress-value { color: var(--primary); font-size: 38px; font-weight: 900; letter-spacing: -2px; }
.setup-progress-card.is-complete .setup-progress-value { color: var(--success); }
.setup-progress-card.is-complete .setup-progress-track span { background: var(--success); }
.setup-progress-track { height: 12px; }
.setup-completion-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-start-section { margin-bottom: 30px; }
.dashboard-section-heading > span { color: var(--muted); font-size: 12px; }
.quick-start-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.quick-start-grid li { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.quick-start-grid li > span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: #ececff; color: var(--primary); font-weight: 900; }
.quick-start-grid strong { font-size: 13px; }
.quick-start-grid small { color: var(--muted); line-height: 1.55; }
.setup-checklist-details { overflow: hidden; }
.setup-checklist-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; cursor: pointer; list-style: none; }
.setup-checklist-details > summary::-webkit-details-marker { display: none; }
.setup-checklist-details > summary span { display: grid; gap: 3px; }
.setup-checklist-details > summary small { color: var(--muted); font-weight: 400; }
.setup-checklist-details > summary b { padding: 6px 10px; border-radius: 999px; background: #ececff; color: var(--primary); font-size: 12px; }
.setup-checklist-details[open] > summary { border-bottom: 1px solid var(--line); }
.setup-checklist { display: grid; }
.setup-checklist-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto 150px; align-items: center; gap: 15px; padding: 17px 26px; border-bottom: 1px solid var(--line); }
.setup-checklist-item:last-child { border-bottom: 0; }
.setup-checklist-item h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 3px; font-size: 15px; }
.setup-checklist-item h3 em { padding: 3px 6px; border-radius: 999px; background: #eef0f4; color: var(--muted); font-size: 9px; font-style: normal; }
.setup-checklist-item p { margin: 0; color: var(--muted); font-size: 12px; }
.setup-check-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #f0f1f5; color: #8991a2; font-weight: 900; }
.setup-checklist-item.is-done .setup-check-icon { background: #e3f7ed; color: var(--success); }
.setup-status-badge { padding: 5px 9px; border-radius: 999px; background: #fff0d9; color: #a45b00; font-size: 10px; font-weight: 800; white-space: nowrap; }
.setup-checklist-item.is-done .setup-status-badge { background: #e3f7ed; color: var(--success); }
.site-overview-header { display: grid; grid-template-columns: minmax(280px,1.3fr) minmax(260px,.8fr) auto; align-items: center; gap: 28px; margin-bottom: 22px; padding: 28px; }
.site-overview-title { min-width: 0; }
.site-overview-title > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.site-overview-title h1 { overflow: hidden; margin: 0; font-size: 32px; letter-spacing: -1px; text-overflow: ellipsis; white-space: nowrap; }
.site-overview-title > p { margin: 5px 0; color: var(--muted); }
.status-badge.overview-status { position: static; flex: 0 0 auto; }
.overview-url { display: block; max-width: 100%; overflow: hidden; color: var(--primary); font-family: Consolas,monospace; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.site-overview-meta { display: grid; gap: 10px; margin: 0; }
.site-overview-meta > div { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 10px; }
.site-overview-meta dt { color: var(--muted); font-size: 12px; }
.site-overview-meta dd { min-width: 0; margin: 0; overflow: hidden; color: #3d465a; font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.site-overview-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 250px; }
.site-overview-actions .button { width: 100%; padding-right: 12px; padding-left: 12px; }
.button.disabled { cursor: not-allowed; opacity: .48; pointer-events: none; }
.overview-suspended { margin-bottom: 22px; }
.overview-primary-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); gap: 22px; }
.overview-primary-grid .setup-progress-card { align-content: center; margin: 0; }
.overview-primary-grid .setup-progress-card > .button { justify-self: start; }
.overview-health-summary { padding: 24px; }
.overview-section { margin-top: 34px; }
.overview-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 16px; }
.overview-section-heading .eyebrow { margin-bottom: 4px; }
.overview-section-heading h2 { margin: 0; font-size: 22px; }
.overview-section-heading > span { color: var(--muted); font-size: 12px; }
.overview-empty-copy { margin: 0; color: var(--muted); }
.health-mini-item { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: start; gap: 10px; margin-top: 10px; padding: 10px; border-radius: 11px; background: #f7f8fb; }
.health-mini-item > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: #fff0d9; color: #a45b00; font-weight: 900; }
.health-mini-item.important > span { background: #fee9ec; color: #b93848; }
.health-mini-item div { display: grid; gap: 2px; min-width: 0; }
.health-mini-item small { color: var(--muted); line-height: 1.45; }
.overview-quick-actions { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 13px; }
.overview-action-card { position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: start; gap: 12px; min-width: 0; padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fff; transition: .2s; }
.overview-action-card:hover { transform: translateY(-2px); border-color: #c5c5f4; box-shadow: 0 12px 26px rgba(31,38,69,.07); }
.overview-action-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: #ececff; color: var(--primary); font-size: 18px; font-weight: 900; }
.overview-action-card > div { display: grid; min-width: 0; gap: 4px; }
.overview-action-card strong { font-size: 13px; }
.overview-action-card small { color: var(--muted); line-height: 1.45; }
.overview-action-card em { width: fit-content; margin-top: 3px; padding: 3px 6px; border-radius: 999px; background: #fff0d9; color: #a45b00; font-size: 9px; font-style: normal; font-weight: 800; }
.overview-summary-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 13px; }
.overview-summary-grid a { display: grid; gap: 4px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.overview-summary-grid strong { color: var(--primary); font-size: 28px; }
.overview-summary-grid span { color: var(--muted); font-size: 12px; font-weight: 700; }
.overview-two-column { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 34px; }
.overview-card { min-width: 0; padding: 24px; }
.overview-preview-controls { display: flex; width: fit-content; gap: 4px; margin-bottom: 12px; padding: 4px; border-radius: 10px; background: #f0f1f5; }
.overview-preview-controls button { padding: 7px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; font-weight: 800; }
.overview-preview-controls button.active { background: #fff; color: var(--primary); box-shadow: 0 2px 7px rgba(31,38,69,.08); }
.overview-preview-stage { overflow-x: auto; padding: 12px; border-radius: 13px; background: #e6e8ef; }
.overview-preview-frame { overflow: hidden; height: 430px; margin: auto; border-radius: 9px; background: #fff; box-shadow: 0 12px 30px rgba(31,38,69,.13); transition: width .2s; }
.overview-preview-frame.is-desktop { width: 100%; }
.overview-preview-frame.is-tablet { width: min(760px,100%); }
.overview-preview-frame.is-mobile { width: min(390px,100%); }
.overview-preview-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.overview-preview-placeholder { position: relative; width: 100%; height: 100%; overflow: hidden; }
.overview-preview-placeholder > img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: brightness(.72); }
.overview-preview-placeholder > span, .overview-template-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(145deg,#eef0ff,#f8f8fc); }
.overview-preview-placeholder > .button { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.overview-template-preview { overflow: hidden; height: 260px; margin-bottom: 18px; border-radius: 14px; background: #eef0f5; }
.overview-template-preview > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.overview-template-placeholder { position: relative; overflow: hidden; }
.overview-template-placeholder::before { position: absolute; inset: 11%; border-radius: 10px; background: #fff; box-shadow: 0 12px 25px rgba(31,38,69,.1); content: ""; }
.overview-template-placeholder span, .overview-template-placeholder i, .overview-template-placeholder b, .overview-template-placeholder em { position: absolute; z-index: 1; display: block; border-radius: 5px; }
.overview-template-placeholder span { top: 25%; left: 18%; width: 44%; height: 10%; background: #343951; }
.overview-template-placeholder i { top: 42%; left: 18%; width: 30%; height: 5%; background: #b5b9cb; }
.overview-template-placeholder b { right: 17%; bottom: 12%; width: 34%; height: 48%; background: var(--primary); }
.overview-template-placeholder em { bottom: 20%; left: 18%; width: 23%; height: 9%; background: var(--primary); }
.overview-card > h3 { margin: 0 0 4px; }
.overview-card > p { margin: 0 0 10px; color: var(--muted); }
.overview-note { padding: 10px 12px; border-radius: 9px; background: #f7f8fb; font-size: 12px; }
.overview-message-list { display: grid; }
.overview-message-list > a { display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.overview-message-list > a:last-child { border-bottom: 0; }
.overview-message-list > a > span { display: grid; min-width: 0; gap: 2px; }
.overview-message-list strong, .overview-message-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-message-list small, .overview-message-list time { color: var(--muted); font-size: 11px; }
.overview-health-list { display: grid; gap: 9px; }
.overview-health-list > a { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px; border-radius: 11px; background: #f7f8fb; }
.overview-health-list > a > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #fff0d9; color: #a45b00; font-weight: 900; }
.overview-health-list > a.important > span { background: #fee9ec; color: #b93848; }
.overview-health-list > a > div { display: grid; min-width: 0; gap: 2px; }
.overview-health-list small { color: var(--muted); }
.overview-health-list b { color: var(--primary); font-size: 10px; white-space: nowrap; }
.overview-empty-state { display: grid; justify-items: center; min-height: 190px; align-content: center; gap: 7px; padding: 22px; border: 1px dashed #d2d5df; border-radius: 13px; color: var(--muted); text-align: center; }
.overview-empty-state > span { font-size: 27px; color: var(--primary); }
.overview-empty-state > p { margin: 0; }
.overview-share-url { width: 100%; margin-bottom: 12px; font-family: Consolas,monospace; }
.overview-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.overview-share-actions .button { width: 100%; }
.overview-quick-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.overview-quick-form label { display: grid; min-width: 0; gap: 6px; color: #424b5d; font-size: 12px; font-weight: 700; }
.overview-quick-form input, .overview-quick-form select { width: 100%; min-height: 42px; }
.overview-checklist { margin-top: 34px; scroll-margin-top: 90px; }
.theme-template-grid { display: grid; width: 100%; max-width: 100%; min-width: 0; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.theme-template-card { min-width: 0; overflow: hidden; border: 2px solid var(--line); border-radius: 16px; background: #fff; }
.theme-template-card.is-current { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,91,214,.08); }
.template-visual { position: relative; overflow: hidden; height: 180px; background: #eef0ff; }
.template-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.template-visual span { position: absolute; top: 22px; left: 22px; width: 28px; height: 28px; border-radius: 8px; background: #5b5bd6; }
.template-visual i, .template-visual b, .template-visual em { position: absolute; display: block; border-radius: 6px; }
.template-visual i { top: 72px; left: 22px; width: 52%; height: 17px; background: #343951; }
.template-visual b { top: 102px; left: 22px; width: 38%; height: 8px; background: #aeb4ca; }
.template-visual em { right: 18px; bottom: -25px; width: 43%; height: 135px; border-radius: 45px 8px 0 0; background: #6a6be0; }
.template-visual.preview-modern-01 { background: #151c2c; }
.template-visual.preview-modern-01 span { border-radius: 2px; background: #70d4b2; }
.template-visual.preview-modern-01 i { background: #fff; }
.template-visual.preview-modern-01 b { background: #727b91; }
.template-visual.preview-modern-01 em { border-radius: 2px 35px 0 0; background: #70d4b2; }
.template-visual.preview-minimal-01 { background: #fff; border-bottom: 1px solid #e6e8ee; }
.template-visual.preview-minimal-01 span { border-radius: 50%; background: #252a34; }
.template-visual.preview-minimal-01 i { height: 12px; background: #252a34; }
.template-visual.preview-minimal-01 b { height: 5px; background: #c6c9d0; }
.template-visual.preview-minimal-01 em { bottom: 18px; height: 76px; border-radius: 0; background: #f0f1f3; }
.theme-template-body { display: grid; min-width: 0; gap: 10px; padding: 18px; }
.theme-template-body > div { display: flex; min-width: 0; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.template-category { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.current-template-badge { padding: 3px 8px; border-radius: 20px; background: #e8f7f0; color: #167753; font-size: 10px; font-weight: 800; }
.theme-template-body h3 { margin: 0; font-size: 17px; }
.theme-template-body p { min-height: 63px; margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.theme-template-body form, .theme-template-body button { width: 100%; }
.theme-template-body button:disabled { cursor: default; opacity: .65; }
.preview-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.preview-page-heading h1 { margin: 0; font-size: 36px; }
.preview-page-heading p { margin: 3px 0 0; color: var(--muted); }
.preview-workspace { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #e9ebf1; }
.preview-controls { display: flex; justify-content: center; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); background: #fff; }
.preview-device-button { min-width: 100px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; }
.preview-device-button.active { background: #ebebff; color: var(--primary); }
.preview-frame-wrap { width: 100%; height: 720px; margin: auto; transition: width .25s; }
.preview-frame-wrap.is-tablet { width: 768px; max-width: 100%; }
.preview-frame-wrap.is-mobile { width: 390px; max-width: 100%; }
.preview-frame-wrap iframe { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.section-manager-list { display: grid; gap: 14px; }
.section-group-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.section-group-guide > div { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fbfbfd; }
.section-group-guide strong { color: var(--ink); font-size: 14px; }
.section-group-guide span { color: var(--muted); font-size: 12px; line-height: 1.6; }
.section-manager-card.section-group-basic { border-left: 4px solid var(--primary); }
.section-group-badge { display: inline-flex; margin-left: 6px; padding: 3px 7px; border-radius: 999px; background: #ececff; color: var(--primary); font-size: 10px; font-style: normal; font-weight: 800; vertical-align: middle; }
.section-group-optional .section-group-badge { background: #f0f2f6; color: var(--muted); }
.section-manager-card { display: grid; grid-template-columns: 38px 145px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: #fbfbfd; }
.section-order-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ececff; color: var(--primary); font-weight: 900; }
.layout-mini-preview { position: relative; overflow: hidden; width: 145px; height: 82px; border: 1px solid #e0e3ec; border-radius: 9px; background: #fff; }
.layout-mini-preview i, .layout-mini-preview b, .layout-mini-preview span, .layout-mini-preview em { position: absolute; display: block; border-radius: 3px; background: #c8ccda; }
.layout-mini-preview i { top: 15px; left: 12px; width: 52px; height: 8px; background: #454a65; }
.layout-mini-preview b { top: 29px; left: 12px; width: 38px; height: 5px; }
.layout-mini-preview span { right: 10px; bottom: 10px; width: 56px; height: 55px; background: #7777e1; }
.layout-mini-preview em { bottom: 12px; left: 12px; width: 30px; height: 10px; background: var(--primary); }
.layout-mini-centered i, .layout-mini-centered b, .layout-mini-centered em { left: 50%; transform: translateX(-50%); }
.layout-mini-centered span { display: none; }
.layout-mini-image-background { background: #31364c; }
.layout-mini-image-background i, .layout-mini-image-background b { z-index: 2; background: #fff; }
.layout-mini-image-background span { inset: 0; width: auto; height: auto; border-radius: 0; opacity: .35; }
.layout-mini-grid-3 span, .layout-mini-grid-4 span, .layout-mini-grid span, .layout-mini-cards span { top: 43px; right: auto; bottom: auto; left: 12px; width: 34px; height: 25px; box-shadow: 40px 0 0 #7777e1, 80px 0 0 #7777e1; }
.layout-mini-grid-4 span { width: 25px; box-shadow: 29px 0 0 #7777e1, 58px 0 0 #7777e1, 87px 0 0 #7777e1; }
.layout-mini-list span { top: 40px; right: 12px; bottom: auto; left: 12px; width: auto; height: 9px; box-shadow: 0 14px 0 #7777e1, 0 28px 0 #7777e1; }
.layout-mini-image-right span { right: 10px; }
.layout-mini-image-left span { right: auto; left: 10px; }
.layout-mini-image-left i, .layout-mini-image-left b, .layout-mini-image-left em { right: 10px; left: auto; }
.layout-mini-large-feature span { width: 78px; }
.layout-mini-masonry-style span { height: 45px; box-shadow: -42px 10px 0 #7777e1; }
.layout-mini-slider-style span { width: 66px; box-shadow: -72px 0 0 #7777e1; }
.layout-mini-contact-card span { inset: 12px; width: auto; height: auto; background: #e9eafe; }
.section-manager-summary > div { display: flex; align-items: center; gap: 10px; }
.section-manager-summary h3 { margin: 0; font-size: 17px; }
.section-manager-summary p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.section-manager-summary small { color: #959cad; }
.section-status { padding: 3px 9px; border-radius: 20px; font-size: 10px; font-weight: 800; }
.section-status.enabled { background: #e7f7ef; color: #167753; }
.section-status.disabled { background: #eceef2; color: #727a8a; }
.section-manager-actions { display: flex; align-items: center; gap: 7px; }
.section-manager-actions form { margin: 0; }
.icon-button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; font-size: 17px; font-weight: 900; }
.icon-button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.icon-button:disabled { cursor: default; opacity: .35; }
.compact-toggle { position: relative; width: 44px; height: 25px; cursor: pointer; }
.compact-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.compact-toggle i { position: absolute; inset: 0; border-radius: 30px; background: #cfd3de; transition: .2s; }
.compact-toggle i::after { position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; content: ""; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.compact-toggle input:checked + i { background: var(--primary); }
.compact-toggle input:checked + i::after { transform: translateX(19px); }
.section-settings { grid-column: 2 / -1; border-top: 1px solid var(--line); }
.section-settings summary { padding: 13px 0 0; color: var(--primary); cursor: pointer; font-size: 13px; font-weight: 800; }
.section-settings .form-grid { margin-top: 16px; padding: 18px; border-radius: 12px; background: #fff; }
.settings-checkbox { display: flex; align-items: center; gap: 8px; padding-top: 26px; }
.settings-checkbox input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }
.settings-branding-note { padding: 14px 16px; border: 1px solid #d9dcf8; border-radius: 10px; background: #f4f4ff; color: #38388f; font-size: 13px; line-height: 1.65; }
.panel-heading { display: flex; justify-content: space-between; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; }
.panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }
.color-input { display: flex; align-items: center; gap: 10px; height: 46px; padding: 5px 12px; border: 1px solid #d9dde8; border-radius: 10px; }
.color-input input { width: 36px; height: 32px; padding: 0; border: 0; }
.color-input span { color: var(--muted); font-family: monospace; }
.media-upload-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; padding-top: 4px; }
.upload-field { display: grid; min-width: 0; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: #fafbfc; }
.upload-field > strong { font-size: 14px; }
.upload-field > img, .upload-placeholder { width: 100%; height: 130px; border-radius: 10px; object-fit: cover; }
.upload-placeholder { display: grid; place-items: center; background: #eceef4; color: #8a91a1; font-size: 13px; }
.upload-field.has-local-preview > img:not(.local-image-preview), .upload-field.has-local-preview > .upload-placeholder { display: none; }
.local-image-preview { width: 100%; height: 130px; border-radius: 10px; object-fit: cover; background: #eceef4; }
.item-media .image-placeholder { display: grid; grid-row: span 3; width: 110px; height: 82px; place-items: center; border-radius: 9px; background: #eceef4; color: var(--muted); font-size: 0; }
.item-media .image-placeholder b { display: none; }
.item-media .image-placeholder i { width: 28px; height: 22px; border: 2px solid currentColor; border-radius: 5px; }
.item-media.has-local-preview > img:not(.local-image-preview), .item-media.has-local-preview > .image-placeholder { display: none; }
.upload-field input[type="file"], .item-media input[type="file"] { height: auto; min-height: 42px; padding: 8px; background: #fff; font-size: 12px; }
.upload-field input[type="file"], .item-media input[type="file"], .item-editor > *, .item-media > * { max-width: 100%; min-width: 0; }
.remove-image { display: flex; grid-template-columns: none; align-items: center; gap: 7px; color: var(--danger); font-size: 12px; font-weight: 600; }
.remove-image input { width: 16px; height: 16px; margin: 0; accent-color: var(--danger); }
.upload-help { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.form-actions { padding-top: 6px; }
.toggle-list { display: grid; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row > span { display: grid; }
.toggle-row small { color: var(--muted); }
.toggle-row input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-row i { position: relative; width: 44px; height: 25px; border-radius: 30px; background: #cfd3de; transition: .2s; }
.toggle-row i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.toggle-row input:checked + i { background: var(--primary); }
.toggle-row input:checked + i::after { transform: translateX(19px); }
.item-list { display: grid; gap: 14px; }
.item-editor { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fbfbfd; }
.item-editor textarea, .item-editor > div, .item-editor > button { grid-column: span 2; }
.item-editor > div { display: flex; gap: 18px; align-items: center; }
.item-editor > .item-media { display: grid; grid-template-columns: 110px minmax(0,1fr); align-items: center; }
.item-media img { grid-row: span 2; width: 110px; height: 82px; border-radius: 9px; object-fit: cover; }
.item-media .remove-image { align-self: start; }
.sort-field { max-width: 150px; }
.item-editor.is-new { border-style: dashed; background: #fff; }
.content-empty-state { margin-bottom: 14px; padding: 18px; border: 1px dashed #cfd4e4; border-radius: 13px; background: #fafaff; }
.content-empty-state strong { display: block; margin-bottom: 4px; }
.content-empty-state p { margin: 0; color: var(--muted); font-size: 13px; }
.standard-item-editor > label { min-width: 0; }
.standard-item-editor .settings-checkbox { display: flex; align-items: center; gap: 8px; }
.standard-item-editor .settings-checkbox input { width: auto; }
.review-editor { grid-template-columns: 1.5fr .5fr; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; transform: translateY(18px); max-width: 380px; padding: 13px 18px; border-radius: 11px; background: #152136; color: #fff; box-shadow: 0 15px 35px rgba(0,0,0,.18); opacity: 0; pointer-events: none; transition: .25s; font-size: 14px; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast.error { background: #a92d3b; }
.toast.success { background: #157f57; }
.not-found { display: grid; min-height: 100vh; place-items: center; background: var(--soft); }
.not-found main { padding: 30px; text-align: center; }
.not-found span { color: var(--primary); font-size: 18px; font-weight: 900; }
.not-found h1 { margin: 7px 0; font-size: 42px; }
.not-found p { margin: 0 0 25px; color: var(--muted); }
.dashboard-messages { margin-top: 52px; }
.dashboard-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 16px; }
.dashboard-section-heading h2 { margin: 0; font-size: 26px; }
.dashboard-message-empty { padding: 28px; color: var(--muted); text-align: center; }
.message-total { padding: 8px 13px; border-radius: 20px; background: #ededff; color: var(--primary); font-size: 13px; font-weight: 800; }
.message-filter-panel { margin-bottom: 22px; padding: 20px; }
.message-filters { display: grid; grid-template-columns: 180px 210px minmax(220px,1fr) auto auto; align-items: end; gap: 12px; }
.message-filters label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.message-list { overflow: hidden; }
.message-list-head, .message-row { display: grid; grid-template-columns: 1.1fr 1.3fr 1fr 145px 90px; align-items: center; gap: 16px; padding: 15px 20px; }
.message-list-head { background: #f5f6f9; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.message-row { border-top: 1px solid var(--line); color: #4c5363; font-size: 13px; transition: .15s; }
.message-list-head + .message-row { border-top: 0; }
.message-row:hover { background: #f8f8ff; }
.message-row.is-new { background: #f4f4ff; color: var(--ink); }
.message-row > span { min-width: 0; overflow-wrap: anywhere; }
.message-row > span:first-child { display: grid; }
.message-row strong { color: var(--ink); }
.message-row small { color: var(--muted); }
.message-list.compact .message-row:first-child { border-top: 0; }
.message-status { display: inline-flex; justify-content: center; min-width: 62px; padding: 4px 8px; border-radius: 20px; font-style: normal; font-size: 10px; font-weight: 800; }
.message-status.large { min-width: 85px; padding: 7px 12px; font-size: 12px; }
.status-new { background: #fff0d9; color: #a45b00; }
.status-read { background: #edf0f5; color: #687184; }
.status-replied { background: #e4f7ee; color: #167753; }
.status-archived { background: #eeeaf7; color: #6c5796; }
.message-empty { margin-top: 0; }
.message-detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 24px; }
.message-content-card, .message-contact-card, .message-action-card { padding: 27px; }
.message-content-card h2, .message-contact-card h2, .message-action-card h2 { margin: 0 0 20px; font-size: 18px; }
.message-body { min-height: 220px; padding: 22px; border-radius: 12px; background: #f7f8fa; color: #343b4a; line-height: 1.8; white-space: normal; overflow-wrap: anywhere; }
.message-detail-layout dl { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 10px 16px; margin: 22px 0 0; }
.message-detail-layout dt { color: var(--muted); font-size: 12px; }
.message-detail-layout dd { min-width: 0; margin: 0; overflow-wrap: anywhere; font-weight: 600; }
.message-detail-side { display: grid; align-content: start; gap: 18px; }
.message-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.message-action-card { display: grid; gap: 10px; }
.message-action-card form { margin: 0; }
.seo-status { display: inline-flex; width: fit-content; margin-left: 7px; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 800; }
.seo-status.ready { background: #e4f7ee; color: #167753; }
.seo-status.incomplete { background: #fff0d9; color: #a45b00; }
.seo-warning, .seo-ready { display: grid; gap: 3px; margin-bottom: 20px; padding: 16px 18px; border-radius: 12px; }
.seo-warning { border: 1px solid #f1d7a9; background: #fff8e9; color: #8a5700; }
.seo-ready { border: 1px solid #bfe7d4; background: #effaf5; color: #126444; }
.seo-warning span, .seo-ready span { font-size: 13px; }
.seo-upload-grid { display: grid; grid-template-columns: minmax(0,.7fr) minmax(0,1.3fr); gap: 14px; }
.favicon-preview, .favicon-placeholder { object-fit: contain !important; }
.seo-checkbox { display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 11px !important; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; }
.seo-checkbox > input { flex: 0 0 auto; width: 19px; height: 19px; margin-top: 2px; accent-color: var(--primary); }
.seo-checkbox > span { display: grid; gap: 2px; }
.seo-checkbox small { color: var(--muted); font-weight: 400; }
.social-share-preview { overflow: hidden; max-width: 650px; border: 1px solid #d9dde8; border-radius: 14px; background: #fff; box-shadow: 0 8px 26px rgba(20,30,55,.08); }
.social-share-preview > img, .social-share-placeholder { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; }
.social-share-placeholder { display: grid; place-items: center; background: #edf0f5; color: var(--muted); }
.social-share-preview > div:last-child { padding: 18px 20px 20px; }
.social-share-preview small { color: var(--muted); text-transform: uppercase; }
.social-share-preview h3 { margin: 5px 0; font-size: 20px; }
.social-share-preview p { margin: 0 0 9px; color: #687184; line-height: 1.55; }
.social-share-preview span { color: var(--primary); font-size: 12px; overflow-wrap: anywhere; }

.sr-only { position: absolute !important; overflow: hidden; width: 1px; height: 1px; padding: 0; border: 0; margin: -1px; clip: rect(0,0,0,0); white-space: nowrap; }
.site-edit-heading { align-items: center; margin-bottom: 22px; }
.site-edit-quick-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.site-edit-subnav { position: sticky; z-index: 9; top: 72px; display: flex; width: 100%; overflow-x: auto; gap: 5px; margin-bottom: 24px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 10px 26px rgba(31,38,69,.07); scrollbar-width: thin; }
.site-edit-subnav button { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 800; }
.site-edit-subnav button[aria-selected="true"] { background: var(--primary); color: #fff; }
.site-edit-subnav button:focus-visible, .site-edit-accordion-toggle:focus-visible, .content-drawer-close:focus-visible { outline: 3px solid rgba(91,91,214,.28); outline-offset: 2px; }
.site-master-form, .site-edit-tab-panel { display: block; min-width: 0; }
.site-master-form.has-unsaved-changes { padding-bottom: 90px; }
.site-edit-tab-panel[hidden] { display: none; }
.site-edit-overview-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.site-edit-summary-card { display: grid; min-height: 210px; align-content: start; gap: 9px; padding: 24px; }
.site-edit-summary-card > span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.site-edit-summary-card > strong { font-size: 28px; line-height: 1.25; }
.site-edit-summary-card > p { margin: 2px 0 8px; color: var(--muted); font-size: 13px; }
.site-edit-summary-card .text-link { justify-self: start; margin-top: auto; border: 0; background: none; cursor: pointer; }
.site-edit-accordion { overflow: hidden; margin-bottom: 14px; scroll-margin-top: 140px; }
.site-edit-accordion-toggle { display: flex; width: 100%; min-height: 82px; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; border: 0; background: #fff; color: var(--ink); text-align: left; cursor: pointer; }
.site-edit-accordion-toggle::after { flex: 0 0 auto; color: var(--primary); content: "+"; font-size: 24px; line-height: 1; }
.site-edit-accordion.is-open > .site-edit-accordion-toggle::after { content: "−"; }
.site-edit-accordion-toggle > span { display: grid; min-width: 0; gap: 2px; }
.site-edit-accordion-toggle strong { font-size: 17px; }
.site-edit-accordion-toggle small { color: var(--muted); font-size: 12px; font-weight: 500; }
.site-edit-accordion-toggle > b { flex: 0 0 auto; margin-left: auto; padding: 5px 9px; border-radius: 999px; background: #f0f1f7; color: var(--muted); font-size: 11px; white-space: nowrap; }
.site-edit-accordion.is-open > .site-edit-accordion-toggle { border-bottom: 1px solid var(--line); background: #fbfbff; }
.site-edit-accordion-content { padding: 24px; }
.site-edit-accordion-content[hidden] { display: none; }
.site-panel-save { margin-top: 22px; }
.content-list-toolbar, .content-list-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.content-list-toolbar { margin-bottom: 14px; }
.content-list-footer { margin-top: 16px; }
.content-search { width: min(330px,100%); }
.content-search input { min-height: 40px; }
.content-compact-list { display: grid; gap: 9px; }
.content-compact-row { display: grid; grid-template-columns: 54px minmax(170px,1fr) auto auto auto; align-items: center; gap: 14px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfbfd; }
.content-compact-thumb { display: grid; overflow: hidden; width: 54px; height: 48px; place-items: center; border-radius: 8px; background: #eaeaff; color: var(--primary); font-weight: 900; }
.content-compact-thumb img { width: 100%; height: 100%; object-fit: cover; }
.content-compact-copy { display: grid; min-width: 0; }
.content-compact-copy strong, .content-compact-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content-compact-copy small { color: var(--muted); font-size: 12px; }
.content-status { padding: 4px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.content-status.is-active { background: #e7f7ef; color: #157653; }
.content-status.is-inactive { background: #f1f2f5; color: #747b8c; }
.content-sort { color: var(--muted); font-size: 11px; white-space: nowrap; }
.content-compact-actions { display: flex; align-items: center; gap: 5px; }
.content-compact-actions .icon-button { width: 32px; height: 32px; }
.content-compact-actions .danger-link { padding: 7px; font-size: 12px; }
.content-single-summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #fbfbfd; }
.content-single-summary > div { display: grid; min-width: 0; gap: 4px; }
.content-single-summary small { color: var(--muted); }
.linked-settings-panel { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 32px; }
.linked-settings-panel h2 { margin: 8px 0 4px; }
.linked-settings-panel p { max-width: 720px; margin: 0; color: var(--muted); }
.settings-state { display: inline-flex; padding: 4px 9px; border-radius: 999px; font-size: 10px; font-weight: 900; }
.settings-state.complete { background: #e7f7ef; color: #157653; }
.settings-state.incomplete { background: #fff0dc; color: #9b5c00; }
.site-save-bar { position: fixed; z-index: 40; right: max(18px,env(safe-area-inset-right)); bottom: max(18px,env(safe-area-inset-bottom)); left: max(18px,env(safe-area-inset-left)); display: flex; max-width: 760px; justify-content: space-between; align-items: center; gap: 18px; margin: auto; padding: 12px 14px 12px 18px; border: 1px solid #cfcff7; border-radius: 14px; background: #fff; box-shadow: 0 20px 50px rgba(28,35,58,.22); }
.site-save-bar[hidden] { display: none; }
.site-save-bar > span { font-size: 13px; font-weight: 800; }
.site-save-bar > div { display: flex; gap: 8px; }
.content-drawer { position: fixed; z-index: 60; inset: 0; display: grid; grid-template-columns: 1fr minmax(360px,620px); }
.content-drawer[hidden] { display: none; }
.content-drawer-backdrop { grid-column: 1; grid-row: 1; border: 0; background: rgba(17,24,39,.48); cursor: default; }
.content-drawer-panel { grid-column: 2; grid-row: 1; overflow-y: auto; background: #fff; box-shadow: -20px 0 60px rgba(20,27,47,.22); }
.content-drawer-panel > header { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 19px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); }
.content-drawer-panel h2 { margin: 0; font-size: 21px; }
.content-drawer-close { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 24px; }
.content-drawer-body { padding: 24px; }
.drawer-loading { padding: 60px 20px; color: var(--muted); text-align: center; }
.drawer-form-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 8px; }
.drawer-image-field { display: grid; grid-template-columns: 120px minmax(0,1fr); align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.drawer-image-field > img { width: 120px; height: 90px; border-radius: 9px; object-fit: cover; }
.drawer-image-field .remove-image { grid-column: 2; }
.has-content-drawer { overflow: hidden; }
.content-drawer.product-catalog-drawer { grid-template-columns: 1fr minmax(420px,720px); }
.product-catalog-drawer .product-editor-form { padding-bottom: 8px; }
.product-catalog-drawer .product-image-manager { margin-top: 22px; }
.product-catalog-drawer .catalog-image-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.product-catalog-drawer .catalog-image-grid article { align-self: start; overflow: hidden; }
.product-catalog-drawer .catalog-image-grid img {
    width: 100%;
    height: 150px;
    max-height: 150px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
}
.product-catalog-drawer .product-image-upload { grid-template-columns: repeat(3,minmax(0,1fr)); }
.product-catalog-drawer .product-image-upload > input,
.product-catalog-drawer .product-image-upload > small { grid-column: 1 / -1; }
.product-local-image-preview { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; }

@media (max-width: 900px) {
    .landing-nav nav > a:not(.button), .member-nav nav > a:not(.message-nav-link), .member-name { display: none; }
    .hero { grid-template-columns: 1fr; gap: 55px; padding-top: 55px; }
    .hero-copy { text-align: center; }
    .hero-lead { margin-right: auto; margin-left: auto; }
    .hero-actions, .trust-row { justify-content: center; }
    .feature-grid, .template-grid, .site-grid { grid-template-columns: 1fr 1fr; }
    .feature-grid article:last-child, .template-grid article:last-child { grid-column: span 2; }
    .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.featured { transform: none; }
    .pricing-description { min-height: 0; }
    .editor-layout { grid-template-columns: 1fr; }
    .editor-sidebar { position: static; display: flex; overflow-x: auto; }
    .editor-sidebar a { white-space: nowrap; }
    .theme-template-grid { grid-template-columns: 1fr 1fr; }
    .site-edit-overview-grid { grid-template-columns: 1fr 1fr; }
    .content-compact-row { grid-template-columns: 54px minmax(140px,1fr) auto; }
    .content-status, .content-sort { display: none; }
    .quick-start-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .setup-checklist-item { grid-template-columns: 38px minmax(0,1fr) auto; }
    .setup-checklist-item .button { grid-column: 2 / -1; justify-self: start; }
    .site-overview-header { grid-template-columns: 1fr 1fr; }
    .site-overview-actions { grid-column: 1 / -1; grid-template-columns: repeat(4,1fr); }
    .overview-primary-grid, .overview-two-column { grid-template-columns: 1fr; }
    .overview-quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .overview-summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .section-manager-card { grid-template-columns: 38px 125px minmax(0,1fr); }
    .layout-mini-preview { width: 125px; }
    .section-manager-actions { grid-column: 2 / -1; }
    .section-settings { grid-column: 2 / -1; }
    .message-filters { grid-template-columns: 1fr 1fr; }
    .message-search { grid-column: span 2; }
    .message-list-head { display: none; }
    .message-row { grid-template-columns: 1fr 1fr; }
    .message-detail-layout { grid-template-columns: 1fr; }
    .seo-upload-grid { grid-template-columns: 1fr; }
    .account-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .section-group-guide { grid-template-columns: 1fr; }
    .landing-nav { padding: 18px; }
    .landing-nav .brand { font-size: 0; }
    .hero { min-height: auto; padding: 45px 20px 75px; }
    .hero h1 { font-size: 44px; letter-spacing: -2px; }
    .hero-lead { font-size: 16px; }
    .hero-actions { flex-direction: column; }
    .trust-row { flex-wrap: wrap; gap: 8px 16px; }
    .hero-preview { border-width: 5px; border-radius: 17px; }
    .preview-page { min-height: 290px; padding: 25px; }
    .feature-section, .template-section { padding: 80px 20px; }
    .steps-section, .pricing-section, .faq-section { padding: 78px 20px; }
    .feature-grid, .template-grid, .site-grid { grid-template-columns: 1fr; }
    .feature-grid article:last-child, .template-grid article:last-child { grid-column: auto; }
    .step-card, .pricing-card { padding: 26px 22px; }
    .pricing-price strong { font-size: 42px; }
    .comparison-wrap { margin-top: 55px; padding: 20px 15px; }
    .comparison-heading { display: block; }
    .comparison-heading .eyebrow { margin-bottom: 8px; }
    .comparison-heading h3 { font-size: 22px; }
    .business-types { padding: 25px 18px; }
    .business-types-list span { font-size: 12px; }
    .landing-footer { display: grid; gap: 5px; text-align: center; }
    .auth-card { padding: 27px 22px; }
    .member-nav { padding: 0 16px; }
    .member-nav nav { gap: 10px; }
    .account-menu summary { max-width: 125px; padding-right: 7px; padding-left: 7px; }
    .account-menu > div { position: fixed; top: 66px; right: 12px; width: min(260px,calc(100vw - 24px)); }
    .member-main { padding: 32px 16px 60px; }
    .site-edit-heading { margin-bottom: 18px; }
    .site-edit-quick-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .site-edit-quick-actions .button { width: 100%; }
    .site-edit-subnav { top: 72px; margin-right: -16px; margin-left: -16px; width: calc(100% + 32px); border-right: 0; border-left: 0; border-radius: 0; }
    .site-edit-overview-grid { grid-template-columns: 1fr; }
    .site-edit-summary-card { min-height: 180px; }
    .site-edit-accordion-toggle { min-height: 76px; padding: 15px 16px; gap: 9px; }
    .site-edit-accordion-toggle > b { display: none; }
    .site-edit-accordion-content { padding: 18px 15px; }
    .content-list-toolbar { align-items: stretch; flex-direction: column; }
    .content-list-toolbar .button, .content-search { width: 100%; }
    .content-compact-row { grid-template-columns: 48px minmax(0,1fr); gap: 10px; padding: 12px; }
    .content-compact-thumb { width: 48px; height: 46px; }
    .content-compact-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 34px 34px 1fr auto; }
    .content-single-summary, .linked-settings-panel { align-items: stretch; flex-direction: column; }
    .linked-settings-panel { padding: 24px 19px; }
    .linked-settings-panel .button { width: 100%; }
    .site-save-bar { align-items: stretch; flex-direction: column; gap: 8px; padding: 12px; }
    .site-master-form.has-unsaved-changes { padding-bottom: 135px; }
    .site-save-bar > div { display: grid; grid-template-columns: 1fr 1fr; }
    .content-drawer { grid-template-columns: 1fr; }
    .content-drawer.product-catalog-drawer { grid-template-columns: 1fr; }
    .product-catalog-drawer .catalog-image-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .product-catalog-drawer .catalog-image-grid img { height: 132px; max-height: 132px; }
    .content-drawer-backdrop { display: none; }
    .content-drawer-panel { grid-column: 1; width: 100%; }
    .content-drawer-body { padding: 19px 15px 90px; }
    .drawer-image-field { grid-template-columns: 88px minmax(0,1fr); }
    .drawer-image-field > img { width: 88px; height: 72px; }
    .drawer-form-actions { position: sticky; bottom: 0; margin: 8px -15px -90px; padding: 12px 15px max(12px,env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px rgba(24,32,51,.09); }
    .page-heading, .editor-heading { align-items: stretch; flex-direction: column; }
    .preview-page-heading { align-items: stretch; flex-direction: column; }
    .preview-page-heading .button { width: 100%; }
    .page-heading .button, .editor-heading .button { width: 100%; }
    .page-heading h1, .editor-heading h1 { font-size: 32px; }
    .template-options, .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .create-layout > .button { justify-self: stretch; }
    .template-summary { grid-template-columns: 1fr; }
    .template-summary-preview { height: 170px; }
    .domain-input { display: grid; grid-template-columns: 1fr; }
    .domain-input span { padding: 8px 13px; border-top: 1px solid var(--line); }
    .editor-panel, .create-layout .panel { padding: 21px 17px; }
    .item-editor, .review-editor { grid-template-columns: 1fr; }
    .item-editor textarea, .item-editor > div, .item-editor > button { grid-column: auto; }
    .media-upload-grid { grid-template-columns: 1fr; }
    .theme-template-grid { grid-template-columns: 1fr; }
    .empty-setup-steps { flex-direction: column; }
    .empty-state-actions { display: grid; }
    .onboarding-welcome, .setup-progress-copy { align-items: flex-start; flex-direction: column; }
    .quick-start-grid { grid-template-columns: 1fr; }
    .setup-completion-actions { display: grid; }
    .setup-checklist-details > summary { align-items: flex-start; padding: 18px; }
    .setup-checklist-item { grid-template-columns: 34px minmax(0,1fr); padding: 16px 18px; }
    .setup-status-badge { grid-column: 2; justify-self: start; }
    .setup-checklist-item .button { grid-column: 2; width: 100%; }
    .site-overview-header { grid-template-columns: 1fr; padding: 20px; }
    .site-overview-title > div { align-items: flex-start; flex-direction: column; }
    .site-overview-title h1 { width: 100%; font-size: 27px; }
    .site-overview-actions { grid-column: auto; grid-template-columns: 1fr 1fr; min-width: 0; }
    .site-overview-meta > div { grid-template-columns: 90px minmax(0,1fr); }
    .overview-quick-actions { grid-template-columns: 1fr; }
    .overview-summary-grid { grid-template-columns: 1fr 1fr; }
    .overview-preview-stage { padding: 7px; }
    .overview-preview-frame { height: 360px; }
    .overview-message-list > a { grid-template-columns: 1fr auto; }
    .overview-message-list > a > i { grid-column: 1 / -1; justify-self: start; }
    .overview-health-list > a { grid-template-columns: 28px minmax(0,1fr); }
    .overview-health-list b { grid-column: 2; }
    .overview-share-actions, .overview-quick-form { grid-template-columns: 1fr; }
    .overview-quick-form .span-2 { grid-column: auto; }
    .preview-frame-wrap { height: 620px; }
    .section-manager-card { grid-template-columns: 34px minmax(0,1fr); }
    .layout-mini-preview { grid-column: 2; width: 100%; height: 115px; }
    .section-manager-summary, .section-manager-actions, .section-settings { grid-column: 2; }
    .section-manager-summary > div { align-items: flex-start; flex-direction: column; gap: 5px; }
    .dashboard-section-heading { align-items: flex-start; }
    .message-filters { grid-template-columns: 1fr; }
    .message-search { grid-column: auto; }
    .message-filters .button { width: 100%; }
    .message-row { grid-template-columns: 1fr; gap: 7px; padding: 16px; }
    .message-row > span:last-child { justify-self: start; }
    .message-detail-layout dl { grid-template-columns: 80px minmax(0,1fr); }
    .upload-field > img, .upload-placeholder { height: 180px; }
    .item-editor > .item-media { grid-template-columns: 90px minmax(0,1fr); }
    .item-media img { width: 90px; height: 72px; }
    .toast { right: 14px; bottom: 14px; left: 14px; max-width: none; }
    .account-panel { padding: 21px 17px; }
    .account-security-grid { grid-template-columns: 1fr; }
    .account-info-list { grid-template-columns: 110px minmax(0,1fr); }
}
