/* All selectors target platform UI. Never recolor authored .site-document content. */
body { background-color: var(--canvas); color: var(--ink); }
body, button, input, select, textarea { font-family: var(--font-ui); }
:where(.dashboard-layout,.login-shell,.editor-body,.preview-body,.error-page) :where(button,a,input,select,textarea,summary,[tabindex]):not(.site-document *):focus-visible {
  outline: 3px solid var(--vd-focus); outline-offset: 4px;
}
:where(.dashboard-layout,.login-shell,.editor-top,.element-panel,.properties-panel,dialog) :where(button,a,input,select,textarea) {
  transition: background-color var(--vd-duration) var(--vd-ease), border-color var(--vd-duration) var(--vd-ease), box-shadow var(--vd-duration) var(--vd-ease), color var(--vd-duration) var(--vd-ease);
}
.workspace { background-color:var(--canvas); background-image:radial-gradient(ellipse at 85% 0%,var(--vd-ambient-blue),transparent 45%),linear-gradient(var(--vd-grid) 1px,transparent 1px),linear-gradient(90deg,var(--vd-grid) 1px,transparent 1px); background-size:auto,48px 48px,48px 48px; }
.dashboard-main { max-width: 1560px; margin-inline: auto; padding: 30px clamp(20px,3.5vw,54px) 60px; }
.sidebar {
  background: radial-gradient(ellipse at 0 5%,var(--vd-ambient-blue),transparent 50%),var(--sidebar);
  box-shadow: 6px 0 24px #00000008; border-right: 1px solid var(--line); padding-inline: 14px;
}
.sidebar-top { position:relative; justify-content:center; padding: 3px 10px 17px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.sidebar-top .brand { flex-direction:column; gap:0; }
.sidebar-top .brand-symbol { width:118px; height:118px; flex-basis:118px; }
.sidebar-top .brand-name { font-size:20px; }
.sidebar-top .sidebar-close { position:absolute; top:3px; right:8px; }
.brand-symbol { filter: var(--vd-logo-glow); }
.side-nav p { font-size: 10px; padding-inline: 13px; letter-spacing: .15em; margin-top:17px; }
.side-nav a { position: relative; min-height: 44px; padding: 11px 13px; margin-bottom: 5px; border: 1px solid transparent; border-radius: var(--vd-radius-sm); font-size: 12px; font-weight: 650; }
.side-nav a::before { content: ''; position: absolute; left: -7px; top: 13px; bottom: 13px; width: 3px; border-radius: 3px; background: var(--vd-blue); opacity: 0; transition: opacity var(--vd-duration); }
.side-nav a:hover { color: var(--ink); background: var(--vd-tech-soft); border-color: var(--vd-tech-line); }
.side-nav a:hover::before { opacity: 1; }
.side-nav a:hover .vibe-icon { filter:drop-shadow(0 0 5px var(--accent-shadow)); }
.side-nav a.active,.side-nav a.active:hover { background: var(--vd-nav-active); color: var(--vd-nav-ink); border-color: var(--accent-line); box-shadow: inset 0 0 0 1px #ffffff08; }
.side-nav a.active::before { opacity: 1; background: var(--accent); box-shadow: 0 0 8px var(--accent-shadow); }
.sidebar-bottom { margin-inline: 3px; padding-top: 16px; }
.profile-link b { overflow-wrap: anywhere; font-size: 12px; }
.topbar { height: 68px; background: var(--header); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.crumb { font-size: 12px; font-weight: 650; }
.crumb span { margin-inline: 10px; color: var(--vd-tech-ink); }
.top-actions { gap: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--vd-tech-soft); color: var(--vd-tech-ink); border: 1px solid var(--vd-tech-line); }
.platform-theme-toggle { border-radius: 10px; box-shadow: var(--vd-shadow-sm); min-height: 38px; }
.topbar-back { border-left: 1px solid var(--line); padding-left: 14px; font-size: 12px; }
.welcome,.internal-hero {
  position: relative; isolation: isolate; overflow: hidden; border: 1px solid var(--line); border-radius: var(--vd-radius-xl);
  padding: clamp(24px,3.5vw,42px); min-height: 205px; margin: 0 0 24px;
  background-image: var(--vd-hero-overlay),var(--vd-image); background-size: cover; background-position: center,center right;
  box-shadow: var(--vd-shadow);
}
.welcome::after,.internal-hero::after { content:''; position:absolute; inset:auto 0 0; height:2px; background:linear-gradient(90deg,var(--vd-blue),var(--vd-neon) 55%,transparent); opacity:.58; pointer-events:none; }
.welcome > div,.internal-hero > div { max-width: 65%; position: relative; z-index: 1; }
.welcome h1,.internal-hero h1 { font-size: clamp(27px,3vw,44px); font-weight: 800; line-height: 1.12; letter-spacing: -.045em; }
.welcome p:not(.eyebrow),.internal-hero p:not(.eyebrow) { color: var(--muted); font-size: 14px; line-height: 1.7; max-width: 560px; }
.eyebrow,.panel-eyebrow { color: var(--vd-tech-ink); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.welcome .primary-button,.internal-hero .primary-button { position: relative; z-index: 1; align-self: flex-end; }
.back-link { display:inline-flex; margin:0 0 18px; color:var(--vd-tech-ink); font-size:12px; }
.overview article,.internal-card,.account-area-card,.commercial-plan-card,.template-summary-grid article,.publication-list article,.sites-section,.quick-section,.themes-section,.activity-section,.editor-card,.domain-card,.management article,.site-card {
  border: 1px solid var(--line); border-radius: var(--vd-radius-lg); background: var(--vd-card-gradient); color: var(--ink); box-shadow: var(--vd-shadow-sm);
  background-color: var(--surface);
}
.internal-card { padding: clamp(22px,3vw,36px); }
.overview article { position:relative; overflow:hidden; padding:24px; min-height:126px; }
.overview article::after { content:''; position:absolute; top:0; right:0; width:70px; height:70px; background:radial-gradient(circle at top right,var(--vd-ambient-blue),transparent 75%); pointer-events:none; }
.overview strong { font-size:38px; font-variant-numeric:tabular-nums; letter-spacing:-.06em; margin:5px 0; }
.overview small { font-size:10px; letter-spacing:.08em; }
.overview-icon { width:44px; height:44px; border-radius:14px; background:var(--vd-tech-soft); color:var(--vd-tech-ink); border-color:var(--vd-tech-line); }
.overview-icon .vibe-icon { width:22px; height:22px; }
.compact-overview { grid-template-columns:minmax(260px,1fr); }
.compact-overview article { min-height:110px; align-items:center; }
.compact-overview article > div { display:grid; grid-template-columns:auto auto; column-gap:28px; align-items:center; }
.compact-overview article small { grid-column:2; grid-row:1; }
.compact-overview article strong { grid-column:1; grid-row:1 / 3; }
.compact-overview article em { grid-column:2; }
.dashboard-projects { margin:0 0 30px; }
.dashboard-projects-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:15px; }
.dashboard-projects-heading h2 { margin:0; font-size:21px; letter-spacing:-.04em; }
.dashboard-project-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr)); gap:14px; }
.dashboard-project-grid > a { min-height:172px; padding:20px; border:1px solid var(--line); border-radius:var(--vd-radius-lg); background:var(--vd-card-gradient); color:var(--ink); text-decoration:none; display:flex; flex-direction:column; align-items:flex-start; box-shadow:var(--vd-shadow-sm); transition:border-color var(--vd-duration),background-color var(--vd-duration),transform var(--vd-duration),box-shadow var(--vd-duration); }
.dashboard-project-grid > a:hover { transform:translateY(-2px); border-color:var(--vd-tech-line); box-shadow:var(--vd-shadow),var(--vd-glow-blue); }
.dashboard-project-grid strong { margin-top:auto; font-size:14px; overflow-wrap:anywhere; }
.dashboard-project-grid small { color:var(--muted); font-size:11px; line-height:1.5; margin-top:5px; }
.dashboard-create-card { border-style:dashed!important; border-color:var(--vd-tech-line)!important; background:linear-gradient(145deg,var(--vd-tech-soft),var(--surface))!important; }
.dashboard-create-card > span,.dashboard-project-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:11px; background:var(--vd-tech-soft); color:var(--vd-tech-ink); border:1px solid var(--vd-tech-line); font-size:20px; }
.dashboard-project-open { margin-top:13px; font-size:10px; font-weight:800; color:var(--vd-tech-ink); }
.account-area-grid { gap:18px; }
.account-area-card { padding:24px; min-height:130px; text-decoration:none; position:relative; }
.account-area-card > span { display:grid; place-items:center; width:46px; height:46px; flex-shrink:0; border-radius:14px; background:var(--vd-tech-soft); color:var(--vd-tech-ink); border:1px solid var(--vd-tech-line); font-size:22px; }
.account-area-card:nth-child(3n+2) > span { background:var(--vd-action-soft); border-color:var(--vd-action-line); color:var(--vd-tech-ink); }
.account-area-card:nth-child(3n) > span { background:var(--surface-raised); border-color:var(--line); color:var(--muted); }
.account-area-card h2 { font-size:15px; font-weight:800; margin:0 0 7px; }
.account-area-card p { color:var(--muted); line-height:1.6; font-size:12px; }
.account-area-card > b { color:var(--vd-tech-ink); margin-left:auto; font-size:20px; }
.account-area-card:hover { background:var(--surface-raised); border-color:var(--vd-tech-line); box-shadow:var(--vd-glow-blue),var(--vd-shadow); }
.dashboard-note { border:1px solid var(--vd-tech-line); border-radius:var(--vd-radius-lg); background:linear-gradient(120deg,var(--vd-tech-soft),var(--surface)); padding:28px; }
.dashboard-note h2 { font-size:22px; letter-spacing:-.04em; }
.dashboard-note p:not(.eyebrow) { font-size:13px; line-height:1.7; color:var(--muted); }
:where(.dashboard-layout,.login-shell,.editor-top,.element-panel,.properties-panel,.preview-bar,dialog,.error-page) :where(.primary-button,.outline-button,.dark-button,.submit-button,.secondary-button,.button,.delete-site-button) {
  min-height:42px; border-radius:var(--vd-radius-sm); font-size:12px; font-weight:800; letter-spacing:.01em;
}
.primary-button,.submit-button,.button.primary,.editor-actions .button.primary {
  color:var(--vd-action-ink); background:var(--vd-action); border-color:var(--vd-action); box-shadow:0 4px 16px var(--accent-shadow); text-decoration:none;
}
.primary-button:hover,.submit-button:hover,.button.primary:hover { color:var(--vd-action-ink); background:var(--vd-action-hover); border-color:var(--vd-action-hover); box-shadow:0 7px 20px var(--accent-shadow); transform:translateY(-1px); }
.primary-button:active,.submit-button:active,.button.primary:active { background:var(--vd-action-hover); transform:translateY(1px); }
.outline-button,.button,.editor-actions .button:not(.primary) { color:var(--ink); border-color:var(--line); background:var(--surface-raised); }
.outline-button:hover,.button:hover,.editor-actions .button:not(.primary):hover { color:var(--vd-tech-ink); border-color:var(--vd-tech-line); background:var(--vd-tech-soft); }
.dark-button,.secondary-button { color:var(--ink); background:var(--surface-raised); border:1px solid var(--line); }
.dark-button:hover,.secondary-button:hover { color:var(--vd-tech-ink); background:var(--vd-tech-soft); border-color:var(--vd-tech-line); }
.text-button,.signup a,.button-link:not(.submit-button) { color:var(--vd-tech-ink); }
.site-card-actions .primary-button,#preview,.preview-bar > .button:not(.primary) { background:var(--vd-tech-soft); color:var(--vd-tech-ink); border:1px solid var(--vd-tech-line); box-shadow:var(--vd-glow-blue); }
.site-card-actions .primary-button:hover,#preview:hover { background:var(--vd-tech-soft); border-color:var(--vd-blue); color:var(--vd-tech-ink); }
.delete-site-button,.button.danger,.danger-outline { color:var(--error); border-color:var(--error-line); background:var(--surface); }
.delete-site-button:hover,.button.danger:hover { background:var(--error-bg); color:var(--error); }
:where(button,input,a)[aria-busy='true'] { cursor:progress; }
:where(.dashboard-layout,.editor-top,.element-panel,.properties-panel,dialog,.login-shell) button:disabled { opacity:.55; cursor:not-allowed; box-shadow:none; transform:none; }
:where(.setup-grid,.vibe-domain-form,.properties-panel,.element-panel,.login-card,dialog) :where(input:not([type='radio']):not([type='checkbox']):not([type='range']):not([type='color']),select,textarea):not(.site-document *) {
  border:1px solid var(--line); border-radius:var(--vd-radius-sm); background:var(--surface-raised); color:var(--ink); min-height:44px; font-size:13px;
}
:where(.setup-grid,.vibe-domain-form,.properties-panel,.element-panel,.login-card,dialog) :where(input,select,textarea):not(.site-document *):focus { border-color:var(--vd-tech-ink); box-shadow:0 0 0 3px var(--accent-shadow); }
:where(.dashboard-layout,.login-shell,dialog) input::placeholder,:where(.dashboard-layout,.login-shell,dialog) textarea::placeholder { color:var(--muted); opacity:.85; }
.setup-grid label,.vibe-domain-form label,.field > label,.label-row label { color:var(--ink); font-size:12px; }
.setup-grid aside,.vibe-domain-layout aside { position:relative; overflow:hidden; border:1px solid var(--vd-tech-line); border-radius:var(--vd-radius-lg); background:var(--surface-raised); padding:28px; }
.setup-grid aside::after,.vibe-domain-layout aside::after { content:''; display:block; height:150px; margin:24px -28px -28px; background-image:linear-gradient(0deg,transparent,var(--surface-raised)),var(--vd-image); background-size:cover; background-position:center right; }
.site-base-picker span { border-radius:12px; background:var(--surface-raised); }
.site-base-picker label { position:relative; min-width:0; }
.site-base-picker input { width:1px; height:1px; min-height:0; padding:0; margin:0; inset:0 auto auto 0; clip-path:inset(50%); }
.site-base-picker input:checked + span { background:var(--vd-tech-soft); border-color:var(--vd-blue); color:var(--ink); box-shadow:0 0 0 2px var(--accent-shadow); }
.site-base-picker input:focus-visible + span { outline-color:var(--vd-focus); }
.index-import-choice { border:1px solid var(--line); border-radius:12px; background:var(--surface-raised); padding:16px; }
.index-import-choice:has(input:checked) { background:var(--vd-tech-soft); border-color:var(--vd-tech-line); }
.index-import-choice input { accent-color:var(--vd-action); }
.index-import-file input[type='file'] { padding:10px; }
.index-import-file input::file-selector-button { border:1px solid var(--vd-tech-line); background:var(--vd-tech-soft); color:var(--vd-tech-ink); border-radius:7px; padding:8px 12px; margin-right:12px; font:700 12px var(--font-ui); }
.site-grid { gap:24px; grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr)); }
.site-card { transition:border-color var(--vd-duration),box-shadow var(--vd-duration); }
.site-card:hover { border-color:var(--vd-tech-line); box-shadow:var(--vd-shadow),var(--vd-glow-blue); }
.site-card-art { position:relative; overflow:hidden; height:200px; padding:30px; background-image:linear-gradient(145deg,var(--vd-tech-soft),transparent),var(--vd-image); background-size:cover; background-position:center right; border-bottom:1px solid var(--line); }
.site-card-art > span,.site-card-art > i { position:relative; z-index:1; filter:drop-shadow(0 3px 4px #00000020); }
.site-card-art:has(.site-thumbnail[data-state='ready']) > span,.site-card-art:has(.site-thumbnail[data-state='ready']) > i { opacity:0; }
.site-card-art::before { content:'•••'; position:absolute; z-index:3; top:12px; left:14px; color:var(--vd-tech-ink); letter-spacing:5px; background:var(--vd-glass); border:1px solid var(--line); border-radius:7px; padding:2px 8px; font-size:13px; }
.site-card-art::after { content:'</>'; position:absolute; right:14px; bottom:12px; color:var(--vd-tech-ink); background:var(--vd-glass); padding:4px 9px; border:1px solid var(--vd-tech-line); border-radius:7px; font:700 12px ui-monospace,monospace; }
.site-card-content { padding:24px; }
.site-thumbnail { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.site-thumbnail iframe { position:absolute; top:0; left:0; width:1280px; height:720px; border:0; transform:scale(var(--thumbnail-scale, .25)); transform-origin:top left; visibility:hidden; opacity:1; background:#fff; }
.site-thumbnail[data-state='ready'] iframe { visibility:visible; }
.site-thumbnail[data-state='loading']::after { content:''; position:absolute; inset:0; background:linear-gradient(110deg,transparent 30%,#ffffff20 50%,transparent 70%); background-size:200% 100%; animation:vd-shimmer 1.5s linear infinite; }
@keyframes vd-shimmer { from { background-position:100% 0; } to { background-position:-100% 0; } }
.site-card h2 { font-size:21px; letter-spacing:-.035em; }
.site-card small { line-height:1.6; }
.site-status,.status-pill,.role { border-radius:6px; padding:6px 9px; font-size:10px; font-weight:800; background:var(--vd-warning-bg); color:var(--vd-warning); }
.status-pill.is-active,.site-status[data-status='published'] { background:var(--vd-success-bg); color:var(--vd-success); }
.site-card-actions { gap:8px; padding-top:18px; border-top:1px solid var(--line); }
.site-card-actions .primary-button,.site-card-actions .outline-button,.delete-site-button { min-height:39px; padding:10px 12px; font-size:11px; }
.empty-feature,.empty-site,.editor-placeholder { position:relative; overflow:hidden; background:var(--surface-raised); border:1px dashed var(--vd-tech-line); border-radius:var(--vd-radius-lg); }
.empty-feature { padding:clamp(30px,5vw,64px); }
.empty-feature::before { content:''; position:absolute; inset:0; background-image:var(--vd-image); background-position:right center; background-size:cover; opacity:.12; mask-image:linear-gradient(90deg,transparent,#000); pointer-events:none; }
.empty-feature > * { position:relative; }
.placeholder-icon { background:var(--vd-tech-soft); color:var(--vd-tech-ink); border:1px solid var(--vd-tech-line); border-radius:16px; box-shadow:var(--vd-glow-blue); }
.empty-feature h2 { font-size:24px; letter-spacing:-.04em; }
.empty-feature p { max-width:520px; line-height:1.7; color:var(--muted); }
.current-plan-card,.custom-domain-requirements,.plan-ai-note,.account-details dl div { background:var(--surface-raised); border-color:var(--line); border-radius:var(--vd-radius-md); }
.commercial-plan-card { padding:24px; }
.commercial-plan-card.is-current { border-color:var(--vd-action-line); box-shadow:var(--vd-glow-blue); }
.commercial-plan-price strong { font-size:30px; font-variant-numeric:tabular-nums; }
.commercial-plan-card li b { color:var(--vd-tech-ink); }
.plan-usage-grid > div { border-radius:var(--vd-radius-md); box-shadow:var(--vd-shadow-sm); }
.plan-usage-grid strong { font-variant-numeric:tabular-nums; }
.template-summary-grid small,.template-category,.waiting { color:var(--vd-tech-ink); }
.summary-list li { padding-block:15px; border-color:var(--line); }
.summary-list code,.custom-domain-requirements code { color:var(--vd-tech-ink); background:var(--vd-tech-soft); padding:3px 5px; border-radius:4px; }
.billing-history-grid { border-color:var(--line); }
.site-alert,.alert-error { background:var(--error-bg); color:var(--error); border-color:var(--error-line); border-radius:var(--vd-radius-md); }
.site-success { background:var(--vd-success-bg); color:var(--vd-success); border-color:var(--vd-success); border-radius:var(--vd-radius-md); }
.alert-info,.dashboard-info { background:var(--vd-tech-soft); color:var(--vd-tech-ink); border-color:var(--vd-tech-line); }
.dashboard-layout table { width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--line); border-radius:var(--vd-radius-md); overflow:hidden; }
.dashboard-layout th { color:var(--muted); background:var(--surface-raised); font-size:11px; font-weight:800; text-align:left; }
.dashboard-layout td,.dashboard-layout th { padding:14px 16px; border-bottom:1px solid var(--line); }
.dashboard-layout tbody tr:hover { background:var(--vd-tech-soft); }
/* Dialogs and dynamically mounted editor menus. */
dialog,.feature-dialog,.template-library,.template-preview-dialog,.section-move-menu,.layer-order-menu,.element-effects-menu {
  background:var(--surface); color:var(--ink); border:1px solid var(--line); border-radius:var(--vd-radius-lg); box-shadow:var(--vd-shadow-lg);
}
dialog[open] { animation:vd-dialog-in 170ms var(--vd-ease) both; }
@keyframes vd-dialog-in { from { opacity:0; transform:translateY(7px) scale(.99); } to { opacity:1; transform:translateY(0) scale(1); } }
dialog::backdrop { background:#080b0fb8; backdrop-filter:blur(7px); }
dialog h2 { letter-spacing:-.035em; }
dialog p:not(.site-document *) { color:var(--muted); line-height:1.65; }
.vibe-confirmation-icon { color:var(--vd-warning); background:var(--vd-warning-bg); border-radius:14px; }
.vibe-confirmation-actions [data-confirmation-confirm] { background:var(--vd-action); color:var(--vd-action-ink); border-color:var(--vd-action); }
.vibe-confirmation-actions [data-confirmation-cancel] { background:var(--surface-raised); color:var(--ink); border-color:var(--line); }
.template-card,.section-option,.image-picker-card { border-radius:var(--vd-radius-md); border-color:var(--line); background:var(--surface-raised); }
.template-card:hover,.section-option:hover { border-color:var(--vd-tech-line); box-shadow:var(--vd-glow-blue); }
.template-card-body h3,.library-heading h2 { color:var(--ink); }
.template-miniature { border-radius:10px; }
.tour-card { background:var(--surface); color:var(--ink); border:1px solid var(--vd-tech-line); border-radius:var(--vd-radius-lg); box-shadow:var(--vd-shadow-lg); }
.tour-card p { color:var(--muted); }
.element-section-option,.image-picker-card { background:var(--surface-raised); color:var(--ink); border-color:var(--line); }
.element-section-option:hover,.image-picker-card:hover,.image-picker-card.active { background:var(--vd-tech-soft); border-color:var(--vd-tech-line); box-shadow:var(--vd-glow-blue); }
.video-upload-button,.image-upload-button { background:var(--vd-tech-soft); color:var(--vd-tech-ink); border-color:var(--vd-tech-line); }
.video-upload-button:hover,.image-upload-button:hover { background:var(--vd-tech-soft); border-color:var(--vd-blue); }
.fixed-buttons-dialog { color:var(--ink); }
.tour-spotlight { border-color:var(--vd-blue); }
.help-list details { border:1px solid var(--line); border-radius:10px; margin:10px 0; padding:12px 14px; background:var(--surface-raised); }
.help-list summary { color:var(--ink); font-size:13px; }
.color-theme-card { border-radius:var(--vd-radius-lg); background:var(--surface-raised); border-color:var(--line); }
.platform-theme-current,.platform-theme-summary { background:var(--surface-raised); border-color:var(--line); border-radius:var(--vd-radius-md); }
/* Workspace chrome only; geometry/typography/colors inside authored sites stay intact. */
.editor-top,.preview-bar { background:var(--header); backdrop-filter:blur(12px); border-color:var(--line); box-shadow:var(--vd-shadow-sm); }
.editor-top { gap:12px; padding-block:6px; }
.editor-top .editor-brand .brand-symbol { width:72px; height:72px; flex-basis:72px; }
.editor-top .editor-brand .brand-name { font-size:17px; }
.preview-bar { padding-block:8px; }
.preview-bar .editor-brand .brand-symbol { width:70px; height:70px; flex-basis:70px; }
.editor-top #publish { box-shadow:0 4px 16px var(--accent-shadow); }
.project-heading strong { font-size:15px; letter-spacing:-.02em; }
.project-heading > span,#save-status { font-size:11px; }
.element-panel,.properties-panel { background:var(--surface); border-color:var(--line); }
.element-panel h2,.properties-panel h2 { font-size:15px; letter-spacing:-.025em; }
.element-panel h2 { margin-top:24px; }
.element-buttons { gap:8px; }
.element-buttons button { min-height:62px; border-radius:11px; background:var(--surface-raised); border-color:var(--line); color:var(--ink); }
.element-buttons button span { color:var(--vd-tech-ink); }
.element-buttons button:hover { background:var(--vd-tech-soft); border-color:var(--vd-tech-line); box-shadow:var(--vd-glow-blue); }
.canvas-workspace { background-image:radial-gradient(ellipse at top right,var(--vd-ambient-blue),transparent 60%),radial-gradient(var(--vd-grid) 1px,transparent 1px); background-color:var(--canvas); background-size:auto,18px 18px; }
.canvas-workspace .editor-canvas { box-shadow:0 20px 56px #00000024,0 0 0 1px var(--line); }
.canvas-toolbar { border-bottom:1px solid var(--line); padding-block:13px; }
.canvas-toolbar > span { font-size:12px; }
.canvas-toolbar b { color:var(--vd-tech-ink); font-size:10px; }
.device-switch { border-radius:10px; padding:4px; background:var(--surface); border-color:var(--line); }
.device-switch button { border-radius:7px; font-size:11px; }
.device-switch button[aria-pressed='true'] { color:var(--ink); background:var(--vd-tech-soft); box-shadow:inset 0 0 0 1px var(--vd-tech-line); }
.editor-page-link.is-current { background:var(--vd-tech-soft); border-color:var(--vd-tech-line); color:var(--vd-tech-ink); }
.property-field { color:var(--muted); font-size:11px; }
.properties-panel .context-toolbar { border-color:var(--vd-tech-line); background:var(--vd-tech-soft); border-radius:10px; }
.properties-panel .context-toolbar button { border-radius:7px; }
.element-style-group,.visual-group { border-color:var(--line); background:var(--surface-raised); border-radius:11px; }
.element-style-group[open],.visual-group[open] { border-color:var(--vd-tech-line); }
.element-style-group summary,.visual-group summary { cursor:pointer; }
.element-style-group summary { color:var(--ink); }
.add-section-bottom { color:var(--vd-tech-ink); border-color:var(--vd-tech-line); border-radius:12px; }
.add-section-bottom:hover { background:var(--vd-tech-soft); }
.editable-block.selected { border-color:var(--vd-blue); outline-color:var(--vd-blue); box-shadow:0 0 0 2px var(--accent-shadow); }
.editable-section.selected { border-color:var(--vd-blue); outline-color:var(--vd-blue); }
.resize-handle { background:var(--vd-blue); border-color:#fff; }
.alignment-guide { background:var(--vd-blue); }
.move-handle,.personalize-handle,.section-personalize-handle,.section-move-handle,.layer-order-handle,.element-effects-handle,.editable-section.selected > .section-handle,.editable-section:hover > .section-handle { background:var(--vd-blue); color:var(--accent-contrast); }
.move-handle:hover,.personalize-handle:hover,.section-move-handle:hover,.layer-order-handle:hover,.element-effects-handle:hover { background:var(--accent-hover); color:var(--accent-contrast); }
.preset-button { background:var(--surface-raised); color:var(--ink); border-color:var(--line); }
.preset-button:hover { background:var(--vd-tech-soft); border-color:var(--vd-tech-line); }
.section-move-option,.layer-order-row,.layer-order-step,.element-effect-choice { background:var(--surface-raised); color:var(--ink); border-color:var(--line); }
.element-effect-choice.active { color:var(--vd-tech-ink); background:var(--vd-tech-soft); border-color:var(--vd-tech-line); }
.original-document-preview { background:var(--surface-raised); border-color:var(--line); }
.error-page { padding:36px; border:1px solid var(--line); border-radius:var(--vd-radius-xl); background:var(--vd-card-gradient); box-shadow:var(--vd-shadow); }
/* Auth has its own ambient composition and shared controls. */
.login-shell { background:var(--canvas); }
.brand-panel { background:var(--surface); border-color:var(--line); isolation:isolate; }
.brand-panel::before { inset:0; width:auto; height:auto; border:0; border-radius:0; opacity:1; background-image:var(--vd-hero-overlay),var(--vd-image); background-size:cover; background-position:center,right center; }
.brand-panel::after { width:360px; height:360px; bottom:-180px; left:-180px; border-color:var(--vd-tech-line); opacity:.5; pointer-events:none; }
.brand-copy { margin-block:auto; }
.brand-copy h1 { font-size:clamp(46px,5vw,76px); }
.brand-copy h1 em { color:var(--vd-tech-ink); }
.brand-copy .eyebrow { color:var(--vd-action); }
.brand-copy > p:last-child { color:var(--muted); font-size:16px; }
.brand-footer { background:var(--vd-glass); border:1px solid var(--line); border-radius:14px; padding:18px; backdrop-filter:blur(12px); }
.brand-footer p { color:var(--muted); }
.brand-footer strong { color:var(--ink); }
.avatars span { background:var(--vd-tech-soft); color:var(--vd-tech-ink); border-color:var(--surface); }
.form-panel { background:radial-gradient(ellipse at top right,var(--vd-ambient-blue),transparent 60%),var(--canvas); }
.login-card { padding:32px; border:1px solid var(--line); border-radius:var(--vd-radius-xl); background:var(--vd-card-gradient); box-shadow:var(--vd-shadow-lg); }
.login-card h2 { font-size:30px; letter-spacing:-.04em; }
.login-card header > p:not(.welcome) { color:var(--muted); line-height:1.7; }
.login-card .welcome { min-height:0; border:0; border-radius:0; padding:0; margin-bottom:12px; background:none; box-shadow:none; font-size:10px; color:var(--vd-tech-ink); }
.login-card .welcome::after { content:none; }
.input-wrap input { border-radius:10px; }
.input-wrap input:focus { background:var(--surface-raised); border-color:var(--vd-tech-ink); box-shadow:0 0 0 3px var(--accent-shadow); }
.password-toggle:hover { background:var(--vd-tech-soft); }
.form-panel footer { color:var(--muted); }
@media(min-width:1380px) { .account-area-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:1000px) {
  .welcome > div,.internal-hero > div { max-width:75%; }
  .welcome,.internal-hero { align-items:flex-start; gap:20px; }
  .account-area-card { padding:20px; }
  .commercial-plan-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); overflow:visible; }
}
@media(max-width:760px) {
  .dashboard-main { padding:22px 16px 40px; }
  .topbar { height:66px; padding-inline:16px; }
  .top-actions { gap:9px; }
  .topbar-back { padding-left:9px; }
  .welcome,.internal-hero { min-height:248px; padding:26px; flex-direction:column; background-position:center,right center; border-radius:20px; }
  .welcome > div,.internal-hero > div { max-width:100%; }
  .welcome .primary-button,.internal-hero .primary-button { align-self:flex-start; }
  .welcome h1,.internal-hero h1 { font-size:30px; }
  .welcome p:not(.eyebrow),.internal-hero p:not(.eyebrow) { font-size:13px; }
  .internal-card { padding:20px 16px; }
  .account-area-grid { grid-template-columns:1fr; gap:12px; }
  .account-area-card { min-height:110px; }
  .dashboard-note { padding:24px; }
  .site-grid { grid-template-columns:1fr; }
  .publication-list article { gap:14px; }
  .login-card { padding:24px; }
  .editor-top { gap:10px; }
  .canvas-toolbar { gap:14px; flex-wrap:wrap; }
  .editor-actions .button { font-size:11px; }
}
@media(max-width:440px) {
  .topbar .crumb { font-size:10px; }
  .topbar-back { font-size:10px; }
  .top-actions { gap:7px; }
  .top-actions .avatar { width:30px; height:30px; font-size:11px; }
  .welcome,.internal-hero { padding:24px 20px; }
  .form-panel { padding:24px 16px; }
  .login-card { padding:24px 20px; }
  .site-card-content { padding:20px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* Platform form states and scrollbars, excluding authored site previews. */
:where(.dashboard-layout,.login-shell,.element-panel,.properties-panel,dialog) :where(input[type=checkbox],input[type=radio],input[type=range]):not(.site-document *){accent-color:var(--accent)}
:where(.dashboard-layout,.login-shell,.element-panel,.properties-panel,dialog) :where(input,textarea):not(.site-document *)::placeholder{color:var(--muted);opacity:1}
:where(.workspace,.element-panel,.properties-panel,dialog,.element-effects-menu,.layer-order-menu){scrollbar-color:var(--accent-line) var(--surface)}
:where(.dashboard-layout,.login-shell,.editor-top,.element-panel,.properties-panel,dialog) :where(.button,.primary-button,.submit-button,.outline-button):not(.site-document *):active{background:var(--accent-soft);color:var(--ink);border-color:var(--accent-line)}
:where(.dashboard-layout,.login-shell,.editor-top,.element-panel,.properties-panel,dialog) :where(.primary-button,.submit-button,.button.primary):not(.site-document *):active{background:var(--accent-active);color:var(--accent-contrast);border-color:var(--accent-active)}
