:root {
  color-scheme: light;
  --ink: #121833; --paper: #f8f9fc; --muted: #535d76; --rule: #dce1ed;
  --blue: #2449ed; --blue-dark: #1937bb; --tint-blue: #eef1ff;
  --serif: Georgia, "Times New Roman", serif; --sans: Arial, Helvetica, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.07; letter-spacing: -.04em; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.studio-header { background: #fff; border-bottom: 1px solid var(--rule); }
.header-inner { max-width: 1440px; min-height: 74px; margin: auto; padding: 0 42px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; justify-self: start; gap: 4px; text-decoration: none; font: 760 1.56rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.brand-studio { font-weight: 520; }
.brand-mark { position: relative; width: 26px; height: 26px; margin-right: 6px; border-radius: 7px; background: var(--blue); }
.brand-mark::after { content: ""; position: absolute; inset: 6px 6px 6px 7px; background: #fff; clip-path: polygon(0 0,25% 0,25% 40%,70% 0,100% 0,50% 48%,100% 100%,70% 100%,25% 57%,25% 100%,0 100%); }
.studio-header nav { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.nav-link { font-size: .9rem; font-weight: 650; text-decoration: none; color: #313a55; padding: 8px 11px; border-radius: 7px; }
.nav-link.selected, .nav-link:hover { color: var(--blue-dark); background: var(--tint-blue); }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 7px; white-space: nowrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 15px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; font-weight: 700; font-size: .9rem; line-height: 1.2; text-align: center; }
.header-action.button { border-radius: 999px; }
.button.primary { background: var(--blue); color: white; }
.button.primary:hover { background: var(--blue-dark); }
.button.outline { border-color: #c6cee4; background: white; color: var(--ink); }
.button.outline:hover { border-color: var(--blue); color: var(--blue-dark); }
.button.light { background: white; color: var(--ink); }
.button.small { min-height: 37px; padding: 7px 11px; font-size: .85rem; }
.text-link, .text-button { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; font-weight: 700; }
.text-button { border: 0; background: none; padding: 0; }
.inline-actions { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.muted, .separator { color: var(--muted); }
.separator { margin-inline: 3px; }

.workspace { max-width: 1370px; margin: auto; padding: 0 45px 55px; }
.workspace-section { margin-top: 29px; }
.section-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 14px; }
.section-heading h2, .surface h2 { font-size: clamp(1.8rem, 3vw, 2.65rem); }
.section-heading span { color: var(--muted); font-size: .9rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.website-card, .template-card, .new-card, .surface { background: #fff; border: 1px solid var(--rule); border-radius: 11px; overflow: hidden; min-width: 0; }
.template-art { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; text-decoration: none; }
.mini-site { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2.2; min-height: 121px; background: var(--tint); color: white; }
.mini-site img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-layout { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; width: 100%; height: 100%; padding: 13px; background: linear-gradient(90deg,#17160bd8,#16160b09 93%); }
.mini-layout span { position: absolute; top: 10px; max-width: 89%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .74rem; font-weight: 700; }
.mini-layout strong { font: 700 clamp(1.15rem,2.4vw,2.05rem)/1.04 var(--serif); max-width: 74%; margin-top: 12px; }
.mini-layout small { background: #fffaf0; color: #262521; padding: 3px 6px; border-radius: 2px; font-size: .59rem; font-weight: 700; }
.mini-site.split img { left: auto; width: 54%; }
.mini-site.split .mini-layout { width: 52%; background: none; }
.mini-site.split .mini-layout strong { max-width: none; }
.template-info, .website-info { padding: 14px; }
.template-info, .site-title { display: flex; justify-content: space-between; align-items: center; gap: 9px; }
.template-info small, .website-info p { color: var(--muted); font-size: .85rem; }
.template-info h3, .website-info h3 { font-size: 1.42rem; overflow-wrap: anywhere; }
.website-info p { margin-top: 4px; }
.website-info .inline-actions { margin-top: 12px; gap: 10px; }
.new-card { min-height: 212px; padding: 16px; display: grid; align-content: center; justify-items: center; gap: 5px; text-align: center; text-decoration: none; border-style: dashed; background: #f6f5ef; }
.new-card:hover { background: var(--tint-blue); }
.new-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 5px; border-radius: 4px; background: var(--tint-blue); color: var(--blue); }
.new-card > span:last-child { color: var(--muted); font-size: .86rem; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 3px; color: #534f44; background: #efede5; font-size: .74rem; white-space: nowrap; }
.status span { width: 6px; height: 6px; border-radius: 50%; background: #8c7d5a; }
.status.positive { color: #2a5538; background: #e5f1e7; }
.status.positive span { background: #438354; }
.page-view { padding-top: 45px; }
.page-heading { margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(2.75rem,5.2vw,5.2rem); }
.page-heading p { margin-top: 10px; max-width: 43rem; color: var(--muted); }
.filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.filter { min-height: 40px; padding: 7px 13px; border: 1px solid var(--rule); border-radius: 999px; background: white; font-size: .88rem; font-weight: 700; }
.filter.active, .filter:hover { color: var(--blue-dark); border-color: var(--blue); background: var(--tint-blue); }
.template-grid .mini-site { aspect-ratio: 1.95; }

.plan-grid, .service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.price-card, .surface { padding: 24px; }
.price-card { border: 1px solid var(--rule); border-radius: 5px; background: #fff; }
.price-card.managed { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price-card h2 { font-size: clamp(1.75rem,3vw,2.6rem); }
.price { font: clamp(3rem,5vw,5rem)/1.2 var(--serif); letter-spacing: -.065em; margin-top: 4px; }
.price span { font: 1rem var(--sans); letter-spacing: normal; margin-left: 6px; }
.price-card ul { list-style: none; margin: 10px 0 20px; padding: 0; }
.price-card li { display: flex; gap: 9px; align-items: flex-start; padding: 7px 0; border-bottom: 1px solid #9997; }
.price-card li svg { flex: none; color: var(--blue); }
.price-card.managed li svg { color: #b8c6ff; }
.plan-note { margin-top: 11px; font-size: .86rem; }
.surface h2 { margin-bottom: 13px; }
.surface form, dialog form { display: grid; gap: 13px; justify-items: start; }
.surface label, dialog label { width: 100%; }
.request-list article { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.request-list article:first-child { padding-top: 0; }
.request-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.request-head small { display: block; color: var(--muted); font-size: .8rem; }
.request-list p { white-space: pre-line; overflow-wrap: anywhere; margin: 8px 0; }
.empty, .field-note { color: var(--muted); font-size: .9rem; }

label { display: grid; gap: 5px; font-size: .9rem; font-weight: 700; }
label small { color: var(--muted); font-size: .78rem; font-weight: 400; }
input:not([type=checkbox]), textarea, select { width: 100%; min-width: 0; min-height: 40px; padding: 7px 9px; border: 1px solid #c9c7bf; border-radius: 3px; color: var(--ink); background: #fff; font-size: .95rem; font-weight: 400; }
input[type=color] { width: 74px; padding: 4px; }
textarea { resize: vertical; }
.notice { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; max-width: 640px; margin: 8px auto; padding: 5px 10px 5px 14px; border: 1px solid #cad2fc; border-radius: 3px; background: #edf0ff; color: #24378e; font-size: .9rem; }
.icon-button { display: inline-grid; place-items: center; min-width: 34px; min-height: 34px; padding: 4px; border: 0; border-radius: 3px; background: none; color: inherit; }
.icon-button:hover, .icon-button.active { background: var(--tint-blue); color: var(--blue); }
.form-error { color: #9d2625; font-size: .9rem; }
.form-error:empty { display: none; }

.editor { max-width: 1500px; margin: auto; }
.editor-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 22px; border-bottom: 1px solid var(--rule); background: #fdfcf8; }
.editor-identity, .editor-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.editor-identity strong { max-width: 40vw; overflow-wrap: anywhere; }
#save-indicator { font-size: .8rem; }
.editor-body { display: grid; grid-template-columns: 335px minmax(0,1fr); min-height: calc(100vh - 137px); }
.editor-sidebar { background: #fff; border-right: 1px solid var(--rule); min-width: 0; }
.editor-tabs { display: flex; justify-content: space-between; flex-wrap: wrap; border-bottom: 1px solid var(--rule); padding: 5px 6px 0; }
.editor-tabs button { padding: 8px 5px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: .8rem; font-weight: 700; }
.editor-tabs button.active { border-bottom-color: var(--blue); color: var(--blue-dark); }
.editor-tabs .design-tab { color: var(--blue-dark); }
.editor-app-link { padding: 8px 5px; color: var(--blue-dark); font-size: .8rem; font-weight: 700; text-underline-offset: 3px; }
.editor-fields { display: grid; gap: 12px; padding: 17px 19px 28px; }
.editor-fields h2 { font-size: 1.65rem; }
.editor-fields details { border-top: 1px solid var(--rule); padding: 8px 0 0; }
.editor-fields details[open] label { margin: 8px 0 0; }
.editor-fields summary { cursor: pointer; font-size: .9rem; font-weight: 700; }
.section-row { display: flex; justify-content: space-between; align-items: center; gap: 5px; border-bottom: 1px solid var(--rule); padding: 4px 0; }
.section-row label { display: flex; align-items: center; gap: 6px; }
.section-row input { accent-color: var(--blue); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.page-list { display: grid; gap: 4px; }
.page-choice { min-height: 40px; padding: 7px 11px; border: 1px solid var(--rule); border-radius: 4px; background: white; text-align: left; overflow-wrap: anywhere; }
.page-choice[aria-pressed="true"] { border-color: #b3c3ed; background: var(--tint-blue); color: var(--blue-dark); font-weight: 700; }
.page-checkbox { display: flex; align-items: center; gap: 8px; }
.page-checkbox input { accent-color: var(--blue); }
.navigation-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 5px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.navigation-row label { min-width: 0; overflow-wrap: anywhere; }
.navigation-actions { display: flex; gap: 2px; padding-bottom: 3px; }
.navigation-actions button:disabled { opacity: .4; }
.preview-area { min-width: 0; padding: 14px 20px 30px; background: #ebeae4; }
.preview-toolbar { max-width: 1115px; margin: 0 auto 9px; display: flex; justify-content: space-between; align-items: center; color: #53534d; font-size: .86rem; font-weight: 700; }
.canvas-toolbar { display: flex; flex-wrap: wrap; gap: 6px; max-width: 1115px; margin: 0 auto 8px; }
.canvas-toolbar .format-toolbar { width: 100%; margin-bottom: 0; }
.format-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; max-width: 1115px; margin: 0 auto 8px; padding: 6px; border: 1px solid #d2d0c7; border-radius: 5px; background: #fdfcf8; }
.format-toolbar select, .format-button { min-height: 36px; width: auto; font-size: .86rem; }
.format-button { padding: 4px 9px; border: 1px solid transparent; border-radius: 4px; background: none; }
.format-button:hover, .format-button:focus-visible { border-color: #b3c3ed; background: var(--tint-blue); }
.device-buttons { display: flex; gap: 4px; }
.device-buttons .icon-button { border: 1px solid #d8d5cc; background: #f9f8f3; }
.device-buttons .icon-button.active { border-color: #c6cef9; background: var(--tint-blue); }
.preview-frame { max-width: 1115px; margin: auto; border: 1px solid #d2d0c7; border-radius: 5px; overflow: hidden; background: #fff; container-type: inline-size; box-shadow: 0 7px 14px #28251910; }
.preview-frame.mobile { max-width: 380px; }
.preview-frame.design-preview { border-color: var(--blue); }
.design-panel h3 { font: 700 .92rem/1.3 var(--sans); letter-spacing: 0; }
.design-theme-picker, .design-composer { display: grid; gap: 8px; }
.design-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.design-theme { display: flex; align-items: center; gap: 7px; padding: 6px; min-height: 41px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; font-size: .85rem; font-weight: 700; text-align: left; }
.design-theme:hover { background: var(--paper); }
.design-theme[aria-pressed="true"] { border-color: var(--blue); background: var(--tint-blue); }
.theme-swatch { flex: 0 0 27px; min-height: 25px; display: grid; place-items: center; border-radius: 4px; background: var(--theme-swatch); color: #fff; }
.theme-choice-editorial .theme-swatch { font-family: var(--serif); }
.design-chat-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--rule); }
.design-prompts { display: flex; flex-wrap: wrap; gap: 5px; }
.design-messages { display: grid; gap: 8px; max-height: 300px; overflow: auto; padding-inline-end: 3px; }
.design-message { padding: 8px 10px; border-radius: 6px; background: #f1f3f9; font-size: .875rem; }
.design-message.from-user { margin-inline-start: 14px; background: var(--tint-blue); }
.design-message strong { font-size: .75rem; color: var(--blue-dark); }
.design-message p { margin-top: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.design-proposal { padding: 9px; border: 1px solid #c4cff5; border-radius: 6px; background: #f8f9ff; font-size: .875rem; }
.design-proposal ul { margin: 5px 0 10px; padding-inline-start: 17px; overflow-wrap: anywhere; }
.design-composer .inline-actions, .design-proposal .inline-actions { margin: 0; }
.design-composer .form-error { margin: 0; }

.sample-site { color: #241f17; background: #fffdf8; }
.sample-header { min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px min(5%,44px); background: #fffcf6; }
.sample-header strong { font: 700 clamp(1rem,2.6cqw,1.8rem)/1.1 var(--serif); }
.sample-header strong a { color: inherit; text-decoration: none; }
.sample-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; font-size: .875rem; overflow-wrap: anywhere; }
.sample-header nav [aria-current="page"] { font-weight: 700; text-underline-offset: 3px; }
.sample-hero { position: relative; isolation: isolate; min-height: clamp(270px,48cqw,590px); display: grid; align-items: center; color: #fff; }
.sample-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sample-site.editorial .sample-photo { position: absolute; inset: 0; z-index: -2; }
.sample-site.editorial .sample-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#16170edc,#16170e0a 94%); }
.sample-hero-content { padding: 28px min(7%,58px); overflow-wrap: anywhere; }
.sample-hero h1 { font-size: clamp(2rem,6.2cqw,5.4rem); max-width: 19ch; }
.sample-hero p { max-width: 28rem; margin-top: 10px; font-size: clamp(.92rem,2.2cqw,1.25rem); }
.sample-actions, .sample-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.sample-action { display: inline-flex; align-items: center; min-height: 37px; padding: 7px 11px; border-radius: 2px; background: var(--site-accent); color: white; text-decoration: none; font-size: .86rem; font-weight: 700; }
.sample-action.secondary, .sample-site.split .sample-action { background: white; color: #27231b; }
.sample-site.split .sample-hero { grid-template-columns: 1fr 1fr; background: var(--site-accent); }
.sample-site.split .sample-photo { position: absolute; inset: 0 0 0 50%; height: 100%; order: 2; }
.sample-section { padding: 27px min(7%,58px); border-bottom: 1px solid #e4dfd4; }
.sample-section h2 { font-size: clamp(1.65rem,4.2cqw,3.25rem); margin-bottom: 11px; }
.sample-items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.sample-items div { border-top: 1px solid #ccc4b7; padding-top: 7px; overflow-wrap: anywhere; }
.sample-items h3 { font-size: 1.1rem; margin-bottom: 4px; }
.sample-section p { max-width: 660px; font-size: .92rem; color: #4b483e; }
.sample-page { min-height: 220px; }
.sample-page h1 { margin-bottom: .55em; font-size: clamp(2rem,5.2cqw,4.5rem); overflow-wrap: anywhere; }
.home-copy { min-height: 0; }
.page-copy { max-width: 740px; font-size: 1rem; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.page-copy p { max-width: none; color: inherit; font-size: inherit; }
.page-copy > :where(h2,h3,p,div,ul,ol,blockquote,img) + :where(h2,h3,p,div,ul,ol,blockquote,img) { margin-top: .85em; }
.page-copy h2 { margin-bottom: 0; font-size: clamp(1.45rem,3.5cqw,2.6rem); }
.page-copy h3 { font-size: clamp(1.2rem,2.6cqw,1.8rem); }
.page-copy ul, .page-copy ol { padding-inline-start: 1.5em; }
.page-copy blockquote { padding-inline-start: .9em; border-inline-start: 3px solid var(--site-accent); }
.page-copy img { display: block; width: auto; max-width: 100%; height: auto; }
.page-copy[contenteditable] { min-height: 96px; outline: 1px dashed #8793b1; outline-offset: 6px; border-radius: 2px; cursor: text; }
.page-copy[contenteditable]:focus { outline: 2px solid var(--blue); }
.page-copy[contenteditable]:empty::before { content: "Start writing here…"; color: #575b66; pointer-events: none; }
.sample-about { background: #f5f1e7; }
.sample-footer { background: #27251f; color: white; font-weight: 700; padding: 13px min(7%,58px); }
.hosting-credit { display: block; margin-top: 5px; font-size: .75rem; font-weight: 400; }
.sample-site.theme-modern, .sample-site.theme-minimal { color: #1d2430; background: #fff; }
.sample-site:is(.theme-modern,.theme-minimal,.theme-bold) :is(h1,h2,h3),
.sample-site:is(.theme-modern,.theme-minimal,.theme-bold) .sample-header strong { font-family: var(--display); letter-spacing: -.025em; }
.sample-site.theme-modern .sample-header { background: #eff5f7; }
.sample-site.theme-modern .sample-about { background: #eaf2f5; }
.sample-site.theme-modern .sample-action { border-radius: 22px; padding-inline: 15px; }
.sample-site.theme-editorial .sample-header { border-bottom: 1px solid #c9bfa9; }
.sample-site.theme-editorial .sample-section { padding-block: 35px; }
.sample-site.theme-minimal .sample-header { border-bottom: 1px solid #e7e7e1; background: #fff; }
.sample-site.theme-minimal.split .sample-hero { color: #252722; background: #f1f0eb; }
.sample-site.theme-minimal .sample-section { padding-block: 39px; }
.sample-site.theme-minimal .sample-about { background: #f6f6f2; }
.sample-site.theme-minimal .sample-action { background: var(--site-accent); color: #fff; }
.sample-site.theme-bold .sample-header, .sample-site.theme-bold .sample-footer { background: #191529; color: #fff; }
.sample-site.theme-bold .sample-hero h1 { font-weight: 850; font-size: clamp(2.35rem,7.2cqw,6rem); }
.sample-site.theme-bold.editorial .sample-hero::before { background: linear-gradient(90deg,#151024ee,#15102452); }
.sample-site.theme-bold .sample-about { background: #efebff; }
.canvas-text { cursor: text; border-radius: 2px; outline-offset: 3px; }
.canvas-text[aria-multiline="true"] { white-space: pre-wrap; }
.canvas-text:hover { outline: 1px dashed currentColor; }
.canvas-text:focus { outline: 2px solid #5474ff; }
.canvas-text:empty::before { content: attr(data-placeholder); opacity: .72; }
.canvas-site .sample-header nav .canvas-text { text-decoration: underline; text-underline-offset: 2px; }
.canvas-site .sample-hero { cursor: pointer; }
.canvas-site .sample-item { position: relative; }
.canvas-control { padding: 4px 8px; border: 1px solid #b4c0e5; border-radius: 3px; background: #fff; color: var(--blue-dark); font: 700 .8rem/1.3 var(--sans); }
.canvas-control:hover { background: var(--tint-blue); }
.canvas-site .sample-hero > .canvas-control { position: absolute; z-index: 1; top: 12px; right: 12px; }
.canvas-link { position: relative; display: inline-flex; align-items: center; }
.canvas-link .canvas-control, .canvas-remove { position: absolute; z-index: 2; bottom: 100%; right: 0; opacity: 0; white-space: nowrap; }
.canvas-link:hover .canvas-control, .canvas-link:focus-within .canvas-control,
.canvas-site .sample-item:hover .canvas-remove, .canvas-site .sample-item:focus-within .canvas-remove { opacity: 1; }
.canvas-site .sample-items + .canvas-control { margin-top: 11px; }
.page-copy[contenteditable] img { cursor: pointer; }
@media (hover:none) {
  .canvas-link .canvas-control, .canvas-remove { position: static; margin-inline-start: 4px; opacity: 1; }
}
@container (max-width:475px) {
  .sample-header { align-items: flex-start; flex-direction: column; }
  .sample-header nav { justify-content: flex-start; }
  .sample-items, .sample-site.split .sample-hero { grid-template-columns: 1fr; }
  .sample-site.split .sample-photo { position: relative; inset: auto; max-height: 200px; }
  .sample-site.split .sample-hero-content { order: 1; }
}
body.public-site { container-type: inline-size; background: #fffdf8; }
body.public-site .sample-header { min-height: 72px; }
body.public-site .sample-section { padding-block: 42px; }
.draft-banner { display: flex; justify-content: space-between; gap: 10px; background: var(--tint-blue); color: var(--blue-dark); font-size: .9rem; padding: 8px min(5%,44px); }

dialog { width: min(485px,calc(100% - 30px)); max-height: calc(100vh - 30px); overflow: auto; padding: 20px; border: 1px solid var(--rule); border-radius: 6px; background: #fdfcf8; color: var(--ink); box-shadow: 0 18px 55px #1b1a183a; }
dialog::backdrop { background: #19171280; }
dialog.wide-dialog { width: min(1050px,calc(100% - 30px)); }
.dialog-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.dialog-heading h2 { font-size: 1.8rem; }
.dialog-preview { container-type: inline-size; overflow: hidden; border: 1px solid var(--rule); border-radius: 4px; }
.upload-zone { display: grid; gap: 5px; width: 100%; padding: 10px; border: 1px dashed #8793b1; border-radius: 4px; background: #fff; }
.upload-zone input[type="file"] { width: 100%; font-size: .88rem; }
.upload-status { color: var(--blue-dark); font-size: .88rem; overflow-wrap: anywhere; }
.upload-status:empty { display: none; }

.product-manager { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.product-manager li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 8px; border-top: 1px solid var(--rule); }
.product-manager li > div { min-width: 0; overflow-wrap: anywhere; }
.product-manager small { display: block; color: var(--muted); }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.marketplace-heading, .app-site-controls { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.app-site-controls { margin: 0 0 18px; padding: 14px 18px; }
.app-site-controls label { min-width: min(100%,230px); }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 16px; }
.app-card { min-width: 0; min-height: 210px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.app-card h2 { font-size: 1.65rem; }
.app-card .inline-actions { margin-top: auto; gap: 6px; }
.app-category, .app-author, .app-installed { color: var(--muted); font-size: .875rem; }
.app-category, .app-installed { color: var(--blue-dark); font-weight: 700; }

.store-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.store-heading h1 { font-size: clamp(2.4rem,7cqw,4.7rem); overflow-wrap: anywhere; }
.store-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(195px,.46fr); align-items: start; gap: 16px; }
.store-products { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,160px),1fr)); align-items: stretch; gap: 12px; }
.store-product, .store-cart { min-width: 0; background: white; border: 1px solid #ded7ca; border-radius: 5px; }
.store-product { display: flex; flex-direction: column; overflow: hidden; }
.store-product img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-copy { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 14px; overflow-wrap: anywhere; }
.product-copy h2 { margin: 0; font-size: 1.38rem; }
.product-purchase { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 5px; }
.store-cart { padding: 14px; overflow-wrap: anywhere; }
.store-cart h2 { margin-bottom: 10px; font-size: 1.65rem; }
.cart-line { border-bottom: 1px solid #e3dcd1; padding: 8px 0; }
.cart-line > div:first-child, .cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.cart-stepper { display: flex; align-items: center; gap: 9px; margin-top: 5px; }
.cart-stepper button { width: 31px; height: 31px; border: 1px solid #d6cebd; border-radius: 3px; background: #fffaf0; }
.store-cart .cart-total { margin: 13px 0 9px; font-size: 1rem; color: inherit; }
.cart-checkout { width: 100%; justify-content: center; }
.store-cart .cart-note { margin-top: 8px; font-size: .85rem; }
.store-announcement { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-apps { display: flex; justify-content: flex-end; align-items: flex-end; flex-wrap: wrap; gap: 10px; padding: 12px min(7%,58px); }
.site-app-preview { padding: 10px; border: 1px dashed #9c9b98; }
.site-app-preview span { color: var(--muted); font-size: .85rem; }
.site-app-widget summary { width: fit-content; cursor: pointer; }
.site-app-widget iframe { display: block; width: min(320px,65vw); height: 290px; margin-top: 5px; border: 1px solid #ded7ca; background: #fff; }
@container (max-width: 575px) {
  .store-layout { grid-template-columns: minmax(0,1fr); }
}
.dialog-actions, dialog p+.inline-actions { margin-top: 12px; }
.simple-message { max-width: 720px; margin: auto; padding: 36px; }
.simple-message h1 { font-size: 2.6rem; margin-bottom: 8px; }
.simple-message a, .simple-message .button { margin-top: 10px; }

@media (max-width:950px) {
  .header-inner, .workspace { padding-inline: 24px; }
  .header-inner { gap: 10px; }
  .nav-link { padding-inline: 7px; }
  .editor-body { grid-template-columns: 290px minmax(0,1fr); }
  .template-info { align-items: flex-start; flex-direction: column; }
}
@media (max-width:820px) {
  .header-inner { grid-template-columns: 1fr auto; min-height: 0; padding: 10px 15px 4px; gap: 5px; }
  .header-inner nav { grid-row: 2; grid-column: 1/-1; flex-wrap: wrap; gap: 3px; padding-block: 3px; }
  .wordmark { font-size: 1.42rem; }
  .header-action { min-height: 36px; padding: 6px 8px; }
}
@media (max-width:700px) {
  .workspace { padding-inline: 16px; }
  .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .card-grid .mini-site { aspect-ratio: 1.7; }
  .site-title { flex-wrap: wrap; }
  .template-info, .website-info { padding: 9px; }
  .plan-grid, .service-grid { grid-template-columns: 1fr; }
  .price-card, .surface { padding: 17px; }
  .page-view { padding-top: 28px; }
  .editor-bar { flex-direction: column; align-items: flex-start; padding: 8px 12px; }
  .editor-identity strong { max-width: none; }
  .editor-body { grid-template-columns: 1fr; }
  .editor-sidebar { border-right: 0; border-bottom: 1px solid var(--rule); }
  .editor-fields { grid-template-columns: 1fr 1fr; padding: 13px; gap: 9px; }
  .editor-fields.page-fields { grid-template-columns: 1fr; }
  .editor-fields h2, .editor-fields details, .editor-fields .section-rows, .editor-fields .field-note { grid-column: 1/-1; }
  .preview-area { padding: 10px 11px 19px; }
}
@media (max-width:430px) {
  .card-grid, .editor-fields { grid-template-columns: 1fr; }
  .card-grid .mini-site { aspect-ratio: 2; }
  .new-card { min-height: 135px; }
}

.landing { background: white; }
.landing-hero {
  padding: clamp(42px,5.2vw,66px) 28px 0;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(ellipse at 15% 78%,#e3e4ff,transparent 58%), radial-gradient(ellipse at 92% 66%,#d6e7ff,transparent 54%), #f3f5ff;
}
.landing-intro { max-width: 940px; margin: auto; }
.landing h1, .landing h2, .landing h3, .page-heading h1, .section-heading h2 { font-family: var(--display); }
.landing-intro h1 { font-size: clamp(3.05rem,6.6vw,6.2rem); font-weight: 720; line-height: .98; }
.landing-intro h1 span { color: #2449d3; }
.landing-intro > p { max-width: 36rem; margin: 21px auto 0; color: #3f4c70; font-size: clamp(1rem,1.7vw,1.24rem); }
.landing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.landing .button { border-radius: 999px; }
.landing-cta.button { padding: 12px 21px; min-height: 50px; font-size: 1rem; }
.landing-cta.outline { background: #ffffffc7; }

.landing-stage {
  position: relative; isolation: isolate; width: min(100%,1080px);
  margin: clamp(26px,3.25vw,45px) auto 0; padding: 26px 119px 0;
  border-radius: 22px 22px 0 0; overflow: hidden; text-align: left;
  background: radial-gradient(ellipse at 20% 38%,#789aff 0%,transparent 51%), linear-gradient(135deg,#344ce6,#3249e8 57%,#172b9b);
}
.stage-desktop { min-width: 0; padding: 0 8px 8px; border: 1px solid #edf1ff; border-radius: 13px 13px 0 0; background: #fff; box-shadow: 0 16px 46px #1524815c; }
.stage-top { position: relative; min-height: 37px; display: grid; place-items: center; font-size: .74rem; font-weight: 700; color: #344263; }
.stage-dots { position: absolute; left: 6px; display: flex; gap: 5px; }
.stage-dots i { width: 6px; height: 6px; border-radius: 50%; background: #bdc7e5; }
.stage-publish { position: absolute; right: 3px; padding: 4px 9px; border-radius: 4px; background: #2b50ed; color: white; font-size: .68rem; }
.stage-layout { display: grid; grid-template-columns: minmax(69px,13%) minmax(0,1fr); overflow: hidden; border: 1px solid #dfe4f2; border-radius: 6px; }
.stage-rail { display: flex; flex-direction: column; gap: 4px; padding: 13px 8px; background: #f7f9ff; color: #4b5881; font-size: clamp(.61rem,1.1vw,.78rem); font-weight: 650; }
.stage-rail span { padding: 5px 6px; }
.stage-rail .stage-current { border-radius: 4px; color: var(--blue-dark); background: #e4eaff; }
.stage-site { min-width: 0; background: #fffcf5; color: #252015; }
.stage-site-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 37px; padding: 4px 15px; }
.stage-site-nav strong { font-family: var(--serif); font-size: clamp(.7rem,1.35vw,1.05rem); }
.stage-site-nav span { font-size: clamp(.58rem,.9vw,.75rem); }
.stage-image { position: relative; isolation: isolate; min-height: clamp(180px,25vw,340px); display: grid; align-items: center; padding: 16px 8%; background: #3b3424; color: #fff; }
.stage-image img, .stage-phone-image img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.stage-image::before, .stage-phone-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#15130cc7,transparent 88%); }
.stage-caption { display: grid; gap: 12px; justify-items: start; }
.stage-caption strong { font: 700 clamp(1.55rem,4.2vw,3.65rem)/1 var(--serif); letter-spacing: -.06em; outline: 2px solid #9cadff; outline-offset: 7px; }
.stage-caption span { padding: 5px 8px; border-radius: 3px; background: #465439; font-size: .73rem; font-weight: 700; }
.stage-phone { position: absolute; width: clamp(107px,17vw,176px); right: 24px; bottom: -2px; padding: 18px 6px 6px; border-radius: 17px 17px 0 0; background: #111b41; box-shadow: 0 10px 23px #131c6b72; transform: rotate(3deg); }
.stage-phone-speaker { position: absolute; width: 28%; height: 4px; top: 8px; left: 36%; border-radius: 4px; background: #6473a5; }
.stage-phone-screen { overflow: hidden; border-radius: 9px 9px 0 0; color: #272119; background: #fffcf5; }
.stage-phone-screen > strong { display: block; padding: 7px; font: 700 clamp(.56rem,1.05vw,.82rem) var(--serif); }
.stage-phone-image { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(101px,14vw,174px); padding: 7px; color: #fff; }
.stage-phone-image span { font: 700 clamp(.79rem,1.5vw,1.15rem)/1.03 var(--serif); }
.stage-phone-bottom { padding: 7px; font: 700 clamp(.56rem,1.05vw,.82rem) var(--serif); }
.stage-callout { position: absolute; left: 18px; bottom: 27%; display: flex; align-items: center; gap: 5px; border-radius: 8px; padding: 8px 11px; background: #fff; color: #1b38b7; box-shadow: 0 4px 14px #15248457; font-size: clamp(.66rem,1.2vw,.83rem); font-weight: 700; transform: rotate(-5deg); }

.landing-section.workspace { padding-block: clamp(38px,6.4vw,86px); }
.landing-section-bar { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 18px; margin-bottom: 21px; }
.landing-heading h2 { max-width: 18ch; font-size: clamp(2.3rem,4.95vw,4.3rem); line-height: 1.02; letter-spacing: -.055em; }
.landing-heading p { max-width: 43rem; margin-top: 11px; color: var(--muted); font-size: 1.04rem; }
.landing-templates .template-card { border-radius: 13px; }
.landing-templates .template-info { padding: 16px; }
.landing-templates .mini-site { aspect-ratio: 1.77; }
.landing-tools { background: #f0f3ff; }
.landing-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 24px; }
.landing-tool { display: grid; grid-template-rows: auto 1fr; gap: 20px; min-height: 360px; overflow: hidden; border-radius: 16px; padding: 26px; }
.landing-tool h3 { font-size: clamp(1.65rem,3.3vw,2.65rem); letter-spacing: -.05em; }
.landing-tool p { max-width: 32ch; margin: 11px 0 15px; }
.landing-store { color: #fff; background: radial-gradient(ellipse at 75% 100%,#455bc1 0%,transparent 62%), #161e54; }
.landing-store p { color: #e1e7ff; }
.landing-apps { color: #182450; background: radial-gradient(ellipse at 85% 100%,#aebeff,transparent 76%), #dbe4ff; }
.landing-cart-art, .landing-app-art { align-self: end; width: min(100%,310px); margin-left: auto; color: #182450; font-size: .88rem; }
.landing-cart-art { border-radius: 11px 11px 0 0; background: #fff; padding: 13px; margin-bottom: -27px; box-shadow: 0 6px 19px #121d5833; }
.art-cart-head, .art-cart-total { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.art-cart-head svg { color: var(--blue); }
.art-cart-item { display: grid; grid-template-columns: 37px 1fr auto; align-items: center; gap: 8px; margin: 9px 0; padding: 8px 0; border-block: 1px solid #e6eaf4; }
.art-cart-item small { display: block; color: var(--muted); }
.art-item-swatch { width: 34px; height: 34px; border-radius: 5px; background: linear-gradient(145deg,#dda287,#6e4655); }
.art-cart-checkout { margin-top: 8px; padding: 5px 8px; border-radius: 4px; background: var(--blue); color: #fff; text-align: center; }
.landing-app-art { display: grid; gap: 5px; }
.landing-app-art > div { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid #c5d0f1; border-radius: 7px; background: #fff; box-shadow: 0 4px 8px #3a469b13; }
.app-symbol { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 5px; color: #2449c9; background: #ebefff; }
.landing-services { text-align: center; }
.landing-services .landing-heading h2, .landing-services .landing-heading p { margin-inline: auto; }
.landing-services .landing-heading h2 { max-width: 25ch; }
.landing-footer { border-top: 1px solid var(--rule); background: #fff; }
.landing-footer .workspace { min-height: 79px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; padding-block: 17px; }
.footer-brand { text-decoration: none; font: 700 1.24rem var(--display); letter-spacing: -.045em; }
.landing-footer nav { display: flex; flex-wrap: wrap; gap: 13px; color: var(--muted); font-size: .88rem; }

@media (max-width: 950px) {
  .landing-stage { padding-inline: 65px; }
  .stage-callout { left: 6px; }
  .stage-phone { right: 12px; }
}
@media (max-width: 740px) {
  .landing-hero { padding-inline: 18px; }
  .landing-stage { padding: 16px 16px 0; }
  .stage-phone, .stage-callout { display: none; }
  .landing-tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .header-inner { column-gap: 7px; }
  .header-inner nav { justify-content: space-between; }
  .header-inner nav .nav-link { padding-inline: 4px; font-size: .82rem; }
  .brand-mark { width: 20px; height: 20px; margin-right: 1px; }
  .brand-mark::after { inset: 4px; }
  .header-actions { gap: 1px; }
  .header-actions .nav-link, .header-action.button { padding-inline: 6px; font-size: .81rem; }
  .landing-hero { padding-inline: 12px; }
  .landing-intro h1 { font-size: clamp(2.7rem,11.7vw,3.45rem); }
  .landing-cta.button { min-height: 44px; padding: 9px 13px; font-size: .88rem; }
  .landing-stage { padding: 10px 6px 0; border-radius: 11px 11px 0 0; }
  .stage-site-nav { padding-inline: 8px; }
  .stage-rail { padding: 8px 4px; }
  .stage-layout { grid-template-columns: 60px minmax(0,1fr); }
  .stage-image { min-height: 153px; }
  .landing-tool { padding: 19px; min-height: 320px; }
  .landing-cart-art { margin-bottom: -20px; }
}
