/* Shared styling for the standalone project configurator and AR viewer. */

:root {
  --primary: #5b7a5e;
  --primary-hover: #4a6a4d;
  --cta-primary: #242629;
  --cta-primary-hover: #30343a;
  --surface: #ffffff;
  --surface-muted: #f5f5f5;
  --text: #1a1f1a;
  --muted: #3f463f;
  --border: #dce0da;
  --body-bg: #ffffff;
  --radius-panel: 12px;
  --radius-card: 14px;
  --radius-input: 6px;
  --radius-pill: 999px;
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'Sora', sans-serif;
  --font-logo: 'Righteous', cursive;
  --shadow: none;
  --card-border: #e6e8e2;
  --card-shadow: 0 2px 8px rgba(28, 38, 30, 0.05);
  --card-shadow-hover: 0 20px 44px -18px rgba(28, 38, 30, 0.22);
  --pricing-shadow: 0 2px 8px rgba(28, 38, 30, 0.05);
  --pricing-shadow-hover: 0 20px 44px -18px rgba(28, 38, 30, 0.22);
}

* { box-sizing: border-box; }

.material-symbols-outlined {
  display: inline-block;
  direction: ltr;
  font-family: 'Material Symbols Outlined';
  font-feature-settings: 'liga';
  font-style: normal;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-weight: normal;
  letter-spacing: normal;
  line-height: 1;
  text-rendering: optimizeLegibility;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(91, 122, 94, 0.10), transparent 38rem),
    linear-gradient(160deg, #ffffff 0%, #fbfdfa 45%, #f1f5ef 100%);
  background-attachment: fixed;
  font-family: var(--font-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}
html.arvy-has-admin-bar { scroll-padding-top: 104px; }
@media (max-width: 782px) {
  html.arvy-has-admin-bar { scroll-padding-top: 118px; }
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(238, 242, 247, 0.7);
  backdrop-filter: blur(16px);
  opacity: 1;
  transition: opacity 420ms ease, visibility 420ms ease;
}

.loading-overlay.hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.loading-overlay strong { position: relative; display: inline-flex; align-items: center; color: var(--text); font-size: 1.1rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.loading-overlay strong::before { content: ''; width: 18px; height: 18px; margin-right: 12px; border: 3px solid rgba(37, 99, 235, 0.2); border-top-color: var(--primary); border-radius: 999px; animation: loading-spin 800ms linear infinite; }
.loading-dots { display: inline-block; width: 1.4em; margin-left: 2px; text-align: left; }
.loading-dots::after { content: ''; animation: loading-dots 1.1s steps(1, end) infinite; }
@keyframes loading-spin { to { transform: rotate(360deg); } }
@keyframes loading-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75%, 100% { content: '...'; } }

.app-shell, .stage-shell {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 24px;
  min-height: 100vh;
  padding: 24px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.configurator-panel, .stage-controls-panel { padding: 32px; }
.preview-panel { position: relative; overflow: hidden; min-height: 520px; }
.stage-workspace-panel { min-height: 620px; overflow: hidden; padding: 18px; }
.three-preview { position: relative; width: 100%; height: 100%; min-height: 520px; background: radial-gradient(circle at 50% 20%, #f8fafc 0, #e7edf5 58%, #d7e0ec 100%); }
.preview-update-overlay { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: rgba(238, 242, 247, 0.42); color: var(--text); opacity: 0; pointer-events: none; backdrop-filter: blur(3px); transition: opacity 180ms ease, visibility 180ms ease; }
.preview-update-overlay.visible { opacity: 1; }
.preview-update-overlay[hidden] { visibility: hidden; opacity: 0; }
.preview-update-overlay strong { display: inline-flex; align-items: center; padding: 12px 16px; border: 1px solid rgba(91, 122, 94, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 12px 34px rgba(15, 23, 42, 0.12); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
/* Spinner ring only decorates the "updating" message, not the pending count message. */
.preview-update-overlay.is-updating strong::before { content: ''; width: 16px; height: 16px; margin-right: 10px; border: 2px solid rgba(91, 122, 94, 0.22); border-top-color: var(--primary); border-radius: 999px; animation: loading-spin 800ms linear infinite; }
/* Both modes share the same full-overlay scrim/blur + centred message as "Updating preview";
   only the inner content differs (spinner vs. pending count + Apply/Cancel). */
.preview-update-overlay .preview-update-spinner,
.preview-update-overlay .preview-pending-card { display: none; }
.preview-update-overlay.is-updating .preview-update-spinner { display: block; }
.preview-update-overlay.is-pending { pointer-events: auto; }
.preview-update-overlay.is-pending .preview-pending-card { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.preview-pending-actions { display: inline-flex; gap: 10px; }
/* Settings panels are locked + dimmed while an update is in flight to avoid confusion. */
body.configurator-updating .config-form,
body.configurator-updating .settings-panel,
body.configurator-updating .mobile-inline-tab-overlay { opacity: 0.55; pointer-events: none; filter: saturate(0.85); transition: opacity 160ms ease; }
.page-scroll-handle { position: absolute; left: 10px; top: 50%; z-index: 5; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 42px; min-height: 74px; padding: 8px 5px; border: 1px solid rgba(217, 224, 234, 0.28); border-radius: 999px; background: rgba(255, 255, 255, 0.24); color: rgba(24, 32, 42, 0.42); box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07); transform: translateY(-50%); cursor: grab; touch-action: none; user-select: none; backdrop-filter: blur(5px); }
.page-scroll-handle .material-symbols-outlined { font-size: 24px; line-height: 0.86; }
.page-scroll-handle.dragging { cursor: grabbing; background: rgba(37, 99, 235, 0.42); color: rgba(255, 255, 255, 0.78); }
.three-preview canvas { display: block; width: 100%; height: 100%; }
.glass-slice-header { font-size: 0.72rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.glass-slice-header input, .glass-slice-header label { visibility: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.configurator-header { display: grid; gap: 14px; }
.project-heading { display: grid; gap: 3px; min-width: 0; }
.project-heading-label { color: var(--muted); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.project-title-bar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.project-title-brand { display: none; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--primary); text-decoration: none; }
.project-title-brand .brand-logo { width: 24px; height: 24px; }
.project-name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.project-code { display: inline-flex; flex: 0 0 auto; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid rgba(91, 122, 94, 0.24); border-radius: 999px; background: rgba(91, 122, 94, 0.1); color: var(--primary); font-size: 0.72rem; font-weight: 950; line-height: 1; letter-spacing: 0.04em; }
.project-switcher-trigger { display: inline-flex; align-items: center; }
.project-switcher-trigger::after { content: '▾'; display: inline-flex; width: 12px; margin-left: 6px; opacity: 0.72; transform: translateY(-1px); transition: opacity 160ms ease; }
.project-switcher-trigger:hover::after,
.project-switcher-trigger:focus-visible::after,
.project-switcher-trigger[aria-expanded="true"]::after { opacity: 1; }
.site-project-code { margin-left: 30px; margin-right: 4px; }
.project-code[hidden] { display: none; }
.project-switcher-popover { position: fixed; z-index: 10020; display: grid; gap: 4px; max-height: min(460px, calc(100vh - 90px)); padding: 10px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 22px 58px rgba(15, 23, 42, 0.18); opacity: 0; overflow: auto; transform: translateY(-6px) scale(0.98); transform-origin: top center; transition: opacity 180ms ease, transform 180ms ease; }
.project-switcher-popover.visible { opacity: 1; transform: translateY(0) scale(1); }
.project-switcher-popover.closing { pointer-events: none; }
.project-switcher-title { padding: 4px 8px 8px; color: var(--muted); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.project-switcher-item { display: grid; gap: 4px; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.project-switcher-item:hover,
.project-switcher-item:focus-visible { background: var(--surface-muted); color: var(--primary); outline: 0; }
.project-switcher-item.current { background: rgba(91, 122, 94, 0.1); color: var(--primary); }
.project-switcher-item span { overflow: hidden; font-size: 0.9rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.project-switcher-item small { overflow: hidden; color: var(--muted); font-size: 0.74rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.project-switcher-dashboard-link { margin-top: 4px; padding: 10px; border-top: 1px solid var(--border); color: var(--primary); font-size: 0.82rem; font-weight: 850; text-align: center; text-decoration: none; }
.project-switcher-dashboard-link:hover,
.project-switcher-dashboard-link:focus-visible { color: var(--primary-hover); text-decoration: underline; outline: 0; }
.project-switcher-empty { margin: 0; padding: 8px; color: var(--muted); font-size: 0.86rem; }
.project-name { overflow: hidden; text-overflow: ellipsis; margin-bottom: 0; padding-bottom: 2px; color: var(--text); font-size: clamp(0.9rem, 1.8vw, 1.14rem); font-weight: 950; line-height: 1.35; }
.project-title-menu { display: none; flex: 0 0 auto; margin-left: 0; }
.project-title-view {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 48px;
  min-height: 48px;
  padding: 6px;
  border-color: transparent;
  background: transparent;
  color: var(--primary);
}
.project-title-view .material-symbols-outlined { font-size: 26px; }
.project-name-edit {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.project-name-row:hover .project-name-edit,
.project-name-edit:focus-visible { opacity: 1; }
.project-name-edit:hover { border-color: var(--primary); color: var(--primary); }
.project-name-edit .material-symbols-outlined { font-size: 18px; }
.header-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
#generatePage { margin-left: auto; }
.project-detail-actions #viewProject { margin-left: 0; }
.icon-action { display: inline-grid; place-items: center; gap: 2px; min-width: 46px; min-height: 48px; padding: 5px 7px 4px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); cursor: pointer; }
.icon-action .material-symbols-outlined { font-size: 21px; line-height: 1; }
.icon-action.saving .material-symbols-outlined { animation: save-icon-spin 0.9s linear infinite; }
.icon-action small { color: var(--muted); font-size: 0.62rem; font-weight: 800; line-height: 1; }
.save-indicator { align-self: center; padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; background: #f8fafc; color: var(--muted); font-size: 0.72rem; font-weight: 900; }
.save-indicator.saved { border-color: rgba(34, 197, 94, 0.32); background: rgba(34, 197, 94, 0.12); color: #15803d; }
.save-indicator.error { border-color: rgba(185, 28, 28, 0.28); background: rgba(254, 226, 226, 0.7); color: #b91c1c; }
.save-indicator.saving, .save-indicator.autosaving { border-color: rgba(37, 99, 235, 0.28); background: rgba(37, 99, 235, 0.1); color: var(--primary); }
.arvy-upgrade-details { display: grid; gap: 6px; padding: 12px; border: 1px solid rgba(91, 122, 94, 0.2); border-radius: var(--radius-card); background: rgba(91, 122, 94, 0.08); color: var(--text); font-size: 0.88rem; }
.arvy-upgrade-details strong { color: var(--primary); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.arvy-upgrade-details p { margin: 0; color: var(--muted); }
.save-indicator.saving .material-symbols-outlined, .save-indicator.autosaving .material-symbols-outlined { animation: save-icon-spin 0.9s linear infinite; }
.save-indicator.autosaving .material-symbols-outlined { animation-name: save-icon-spin-pulse; }
@keyframes save-icon-spin { to { transform: rotate(360deg); } }
@keyframes save-icon-spin-pulse { 50% { opacity: 0.55; transform: rotate(180deg) scale(0.88); } 100% { opacity: 1; transform: rotate(360deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .icon-action.saving .material-symbols-outlined, .save-indicator.saving .material-symbols-outlined, .save-indicator.autosaving .material-symbols-outlined { animation: none; } }

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; }
.intro, .hint { color: var(--muted); line-height: 1.55; }

.config-form { display: grid; gap: 0; margin-top: 24px; }

.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(245, 247, 251, 0.78);
}

.tab-button {
  position: relative;
  display: inline-grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: stretch;
  gap: 2px;
  min-height: 54px;
  padding: 6px 6px 8px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.tab-button > span:first-child { align-self: center; justify-self: center; }
.tab-button > span:last-child { align-self: end; justify-self: center; line-height: 1.1; }
.tab-button .material-symbols-outlined { display: grid; place-items: center; width: 24px; height: 24px; font-size: 22px; line-height: 1; }
.tab-poles-icon { position: relative; display: inline-block; align-self: center; justify-self: center; width: 19px; height: 19px; border-top: 2px solid currentColor; border-radius: 2px; }
.tab-poles-icon::before, .tab-poles-icon::after { content: ''; position: absolute; top: 3px; width: 3px; height: 15px; border-radius: 999px; background: currentColor; }
.tab-poles-icon::before { left: 4px; }
.tab-poles-icon::after { right: 4px; }

.tab-button:hover { background: rgba(255, 255, 255, 0.72); color: var(--text); }
.tab-button.active { background: var(--surface); color: var(--primary); box-shadow: 0 8px 22px rgba(15, 23, 42, 0.11); }
.tab-button.active::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 18px; height: 3px; border-radius: 999px; background: var(--primary); transform: translateX(-50%); }
.tab-panel { display: none; gap: 18px; margin-top: 14px; padding: 18px; border: 1px solid rgba(217, 224, 234, 0.74); border-radius: 22px; background: rgba(255, 255, 255, 0.58); }
.tab-panel.active { display: grid; }
.mobile-tab-popup[hidden] { display: none !important; }
.compact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.compact-grid[hidden], .checkbox-row[hidden], label[hidden] { display: none; }
.leg-lengths, .glass-panels, .shade-panels { display: grid; gap: 8px; }
.mini-hint { margin: 0; color: var(--muted); font-size: 0.85rem; }
.leg-length-list, .glass-panel-list { display: grid; gap: 8px; max-height: 230px; overflow: auto; padding-right: 4px; }
.leg-length-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 8px; align-items: center; }
.glass-slice-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 118px; gap: 8px; align-items: center; }
.shade-opening-row { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 8px; align-items: center; }
.shade-slider-control { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.shade-slider-control output { color: var(--muted); font-size: 0.82rem; font-weight: 800; text-align: right; }
.sun-strength-control, .sun-time-control, .sun-month-control { grid-template-columns: auto minmax(0, 1fr) 70px; align-items: center; }
.sun-time-control, .sun-month-control { grid-column: 1 / -1; }
.sun-time-control .material-symbols-outlined, .sun-month-control .material-symbols-outlined { color: var(--muted); font-size: 22px; }
.sun-time-control output, .sun-month-control output { color: var(--muted); font-size: 0.82rem; font-weight: 800; text-align: right; }
.leg-length-row span, .glass-slice-row span, .shade-opening-row span { color: var(--muted); font-size: 0.9rem; }
.glass-face-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-muted); }
.glass-face-tab { position: relative; min-height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: 0.82rem; font-weight: 800; cursor: pointer; }
.glass-face-tab.active { background: var(--surface); color: var(--primary); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.09); }
.glass-face-tab.enabled::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 18px; height: 3px; border-radius: 999px; background: var(--primary); transform: translateX(-50%); }
.glass-panel-card { display: none; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255, 255, 255, 0.66); }
.glass-panel-card.active { display: grid; }
.glass-panel-header { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 10px; align-items: end; }
.glass-panel-header .mini-hint { grid-column: 1 / -1; }
.glass-divider-option { grid-column: 1 / -1; }
.glass-slice-list { display: grid; gap: 8px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; min-height: 48px; }
.checkbox-row input[type="checkbox"] { position: relative; width: 42px; min-width: 42px; height: 24px; margin: 0; border: 0; border-radius: 999px; background: var(--border); appearance: none; cursor: pointer; transition: background 220ms ease, box-shadow 220ms ease, transform 160ms ease; }
.checkbox-row input[type="checkbox"]::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 999px; background: var(--surface); box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2); transition: transform 220ms cubic-bezier(.34, 1.56, .64, 1), box-shadow 220ms ease; }
.checkbox-row input[type="checkbox"]:hover { box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14); }
.checkbox-row input[type="checkbox"]:checked { background: var(--primary); }
.checkbox-row input[type="checkbox"]:checked::after { transform: translateX(18px); box-shadow: 0 3px 8px rgba(15, 23, 42, 0.24); }
.checkbox-row input[type="checkbox"]:active::after { width: 22px; }
.checkbox-row input[type="checkbox"]:checked:active::after { transform: translateX(14px); }
.glass-open-toggle { min-height: auto; color: var(--muted); font-size: 0.86rem; font-weight: 700; }

label {
  display: grid;
  gap: 8px;
  color: #263243;
  font-weight: 400;
}

.dimension-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dimension-field { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; gap: 5px; min-width: 0; }
.dimension-input-row { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 5px; }
.inline-field-label { color: #263243; font-size: 1rem; font-weight: 400; }
.dimension-input-width,
.dimension-input-depth,
.dimension-input-height {
  padding-right: 34px;
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 18px 18px;
}
.dimension-input-width { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%2394a3b8' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M8 9l-3 3 3 3'/%3E%3Cpath d='M16 9l3 3-3 3'/%3E%3C/g%3E%3C/svg%3E"); }
.dimension-input-depth { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%2394a3b8' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round' transform='rotate(-35 12 12)'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M8 9l-3 3 3 3'/%3E%3Cpath d='M16 9l3 3-3 3'/%3E%3C/g%3E%3C/svg%3E"); }
.dimension-input-height { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%2394a3b8' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round' transform='rotate(-90 12 12)'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M8 9l-3 3 3 3'/%3E%3Cpath d='M16 9l3 3-3 3'/%3E%3C/g%3E%3C/svg%3E"); }
.dimension-input {
  min-height: 44px;
  padding-inline: 12px;
  font-size: 1rem;
  font-weight: 400;
}
.dimension-input.dimension-input-invalid {
  border-color: #b91c1c !important;
  box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.18);
}
.dimension-input::-webkit-outer-spin-button,
.dimension-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}
.dimension-input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.inline-section-label, .leg-lengths > strong, .glass-panels > strong, .shade-panels > strong { position: relative; display: block; margin-top: 15px; padding-top: 14px; color: #263243; font-size: 1.2rem; font-weight: 850; }
.inline-section-label::before, .leg-lengths > strong::before, .glass-panels > strong::before, .shade-panels > strong::before { content: ''; position: absolute; top: 0; left: 50%; width: 30%; height: 1px; border-radius: 999px; background: rgba(217, 224, 234, 0.8); transform: translateX(-50%); }
.dimension-input { min-width: 0; }
.louver-settings { display: grid; gap: 8px; min-width: 0; }
.louver-controls { display: grid; gap: 10px; min-width: 0; }
.louver-feature-controls { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.louver-feature-control { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: max-content; min-width: 0; margin: 0; cursor: pointer; }
.louver-feature-label { color: var(--muted); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.louver-led-toggle { min-height: auto; }
.toggle-group { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-muted); overflow: hidden; }
.toggle-group::before { content: ''; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 12px) / 2); border-radius: 10px; background: var(--surface); box-shadow: 0 4px 14px rgba(15, 23, 42, 0.09); transform: translateX(0); transition: transform 180ms ease; }
.toggle-group:has(label:nth-child(2) input:checked)::before { transform: translateX(calc(100% + 4px)); }
.toggle-group label { position: relative; z-index: 1; display: block; min-width: 0; }
.toggle-group input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-group span { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 34px; padding: 0 10px; border-radius: 10px; color: var(--muted); font-size: 0.84rem; font-weight: 800; cursor: pointer; transition: color 160ms ease; }
.toggle-group span:hover { color: var(--text); }
.toggle-group input:checked + span { color: var(--primary); }
.general-colors, .material-settings { display: grid; gap: 8px; }
.general-color-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 8px; align-items: center; }
.general-color-field { display: grid; grid-template-columns: 72px 36px; gap: 6px; align-items: center; justify-content: start; color: var(--muted); font-size: 0.86rem; }
.general-color-field span { min-width: 0; }
.general-color-field[hidden], .catalog-color-presets[hidden] { display: none; }
.catalog-color-presets { display: flex; flex-wrap: nowrap; gap: 4px; min-width: 0; overflow: hidden; padding: 2px; }
.catalog-color-button { width: 26px; min-width: 26px; height: 26px; border: 2px solid var(--surface); border-radius: 999px; background: var(--catalog-color); box-shadow: 0 0 0 1px var(--border), 0 3px 8px rgba(15, 23, 42, 0.1); cursor: pointer; }
.catalog-color-button.active { box-shadow: 0 0 0 3px var(--primary), 0 4px 12px rgba(15, 23, 42, 0.16); }
.texture-field { min-width: 0; }
.texture-field[hidden] { display: none; }
.texture-choice-button { display: inline-grid; place-items: center; width: 34px; min-width: 34px; height: 34px; min-height: 34px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease; }
.texture-choice-button:hover { border-color: var(--primary); box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10); }
.texture-choice-sample { position: relative; display: block; width: 100%; height: 100%; border-radius: 6px; background-image: var(--texture-sample); background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12); overflow: hidden; }
.color-mode-toggle { max-width: 260px; }

input, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  line-height: 1.4;
}

select,
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
textarea {
  min-height: 46px;
  padding: 12px 14px;
}

textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86rem; line-height: 1.45; }
input[type="color"] { width: 36px; height: 36px; padding: 4px; border-radius: 8px; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
input[type="color"]::-moz-color-swatch { border: 0; border-radius: 5px; }
input[type="range"] { accent-color: var(--primary); }
.color-input-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; }
.color-input-row input[type="text"] { height: 48px; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-transform: uppercase; }
.settings-panel { display: grid; gap: 12px; margin-top: 24px; }
.settings-secret-link { justify-self: start; width: 24px; height: 18px; text-decoration: none; }
.system-settings-content { display: grid; gap: 12px; }
.system-settings-content[hidden] { display: none; }
.settings-toggle { width: 100%; min-height: 42px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-muted); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.settings-toggle::after { content: ' +'; color: var(--primary); }
.settings-toggle[aria-expanded="true"]::after { content: ' −'; }
.settings-content { display: grid; gap: 12px; }
.settings-content[hidden] { display: none; }
.settings-actions { display: flex; justify-content: flex-start; }
.saved-settings { display: grid; gap: 10px; padding-top: 8px; border-top: 1px solid var(--border); }
.saved-settings-visible { margin-top: 24px; }
.saved-settings-list { display: grid; gap: 8px; max-height: min(420px, calc(100vh - 220px)); overflow: auto; }
.saved-files-search { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-input); background: transparent; color: var(--muted); }
.saved-files-search:focus-within { border-color: var(--border); }
.saved-files-search .material-symbols-outlined { flex: 0 0 auto; font-size: 20px; }
.saved-files-search input,
.saved-files-search input:focus,
.saved-files-search input:focus-visible { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; color: var(--text); font: inherit; appearance: none; }
.saved-files-search input::-webkit-search-decoration,
.saved-files-search input::-webkit-search-cancel-button { appearance: none; }
.search-clear-button { flex: 0 0 auto; display: inline-grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.search-clear-button:hover { background: var(--surface-muted); color: var(--text); }
.search-clear-button[hidden] { display: none; }
.saved-settings-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.saved-settings-row:last-child { border-bottom: 0; }
.saved-file-thumb { display: grid; place-items: center; width: 58px; height: 44px; border-radius: 10px; background: var(--surface-muted); color: var(--muted); overflow: hidden; text-decoration: none; }
.saved-file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.saved-file-thumb .material-symbols-outlined { font-size: 22px; }
.saved-file-content { display: grid; gap: 6px; min-width: 0; }
.saved-file-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-width: 0; }
.saved-file-name { overflow: hidden; color: var(--text); font-weight: 800; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.saved-file-name:hover { color: var(--primary); }
.saved-file-actions { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; font-size: 0.8rem; font-weight: 800; }
.saved-file-actions a { color: var(--primary); text-decoration: none; }
.saved-file-actions a:hover { color: var(--primary-hover); text-decoration: underline; }
.saved-file-details { display: flex; flex-wrap: wrap; gap: 8px 14px; min-width: 0; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.saved-file-details span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.saved-file-details .material-symbols-outlined { font-size: 16px; }
.button.danger { color: #b91c1c; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.preview-rotate-toggle { margin-top: 14px; color: var(--muted); font-size: 0.9rem; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .toggle-group::before, .toggle-group span { transition: none; }
}

.button.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.button.loading-button { position: relative; gap: 8px; opacity: 0.86; cursor: wait; }
.button.loading-button::before { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 999px; animation: loading-spin 800ms linear infinite; }
.button.small { min-height: 28px; padding: 0 9px; border-radius: 999px; font-size: 0.78rem; }

.save-dialog, .saved-files-dialog {
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1), overlay 220ms ease allow-discrete, display 220ms ease allow-discrete;
}

.saved-files-dialog {
  width: min(920px, calc(100vw - 32px));
}

.photo-placement-dialog {
  width: min(1180px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(.22, 1, .36, 1), overlay 220ms ease allow-discrete, display 220ms ease allow-discrete;
}

.save-dialog[open], .saved-files-dialog[open], .photo-placement-dialog[open] { opacity: 1; transform: translateY(0) scale(1); }
.save-dialog.is-closing, .saved-files-dialog.is-closing, .photo-placement-dialog.is-closing { opacity: 0; transform: translateY(14px) scale(0.97); }
.save-dialog::backdrop, .saved-files-dialog::backdrop, .photo-placement-dialog::backdrop { background: rgba(15, 23, 42, 0); backdrop-filter: blur(0); transition: background 180ms ease, backdrop-filter 220ms ease, overlay 220ms ease allow-discrete, display 220ms ease allow-discrete; }
.save-dialog[open]::backdrop, .saved-files-dialog[open]::backdrop, .photo-placement-dialog[open]::backdrop { background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(3px); }
.save-dialog.is-closing::backdrop, .saved-files-dialog.is-closing::backdrop, .photo-placement-dialog.is-closing::backdrop { background: rgba(15, 23, 42, 0); backdrop-filter: blur(0); }
@starting-style {
  .save-dialog[open], .saved-files-dialog[open], .photo-placement-dialog[open] { opacity: 0; transform: translateY(14px) scale(0.97); }
  .save-dialog[open]::backdrop, .saved-files-dialog[open]::backdrop, .photo-placement-dialog[open]::backdrop { background: rgba(15, 23, 42, 0); backdrop-filter: blur(0); }
}
.action-dialog-message { margin: 0; color: var(--muted); line-height: 1.55; }
.action-dialog .button.danger { border-color: rgba(185, 28, 28, 0.28); background: #fee2e2; color: #b91c1c; }
.action-dialog.texture-dialog { width: min(760px, calc(100vw - 32px)); }
.action-dialog.texture-dialog .save-dialog-card { grid-template-columns: 1fr; gap: 16px; padding: 26px; overflow: auto; }
.action-dialog.texture-dialog .save-dialog-header,
.action-dialog.texture-dialog .action-dialog-message,
.action-dialog.texture-dialog .texture-dialog-actions { width: min(100%, 620px); justify-self: center; }
.action-dialog.texture-dialog .save-dialog-header { align-items: center; }
.action-dialog.texture-dialog .action-dialog-message { font-size: 0.94rem; }
.action-dialog.texture-dialog .texture-dialog-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: start; justify-content: center; gap: 18px; }
.texture-option-button { position: relative; display: grid; width: 100%; min-width: 0; aspect-ratio: 1 / 1; min-height: 180px; padding: 0; border: 2px solid transparent; border-radius: 20px; background: var(--surface-muted); color: var(--text); font: inherit; cursor: pointer; overflow: hidden; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.texture-option-button:hover, .texture-option-button.selected { border-color: var(--primary); box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16); transform: translateY(-1px); }
.texture-option-button.selected::after { content: 'Selected'; position: absolute; top: 10px; right: 10px; z-index: 2; padding: 4px 8px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 0.68rem; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16); }
.texture-option-sample { position: relative; display: block; width: 100%; height: 100%; border-radius: 18px; background-image: var(--texture-sample); background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12); overflow: hidden; }
.texture-tinted .texture-choice-sample::before,
.texture-tinted .texture-option-sample::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--texture-tint, transparent); opacity: var(--texture-tint-opacity, 0); pointer-events: none; }
.texture-tinted .texture-option-label { z-index: 2; }
.texture-option-label { position: absolute; inset: auto 0 0; width: 100%; padding: 24px 12px 11px; background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.76)); color: #fff; font-size: 0.86rem; font-weight: 900; line-height: 1.15; text-align: left; text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35); }
.appearance-dialog .texture-dialog-actions { display: grid; grid-template-columns: 1fr; }
.appearance-dialog-content { display: grid; gap: 18px; }
.appearance-color-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.appearance-color-button { width: 34px; height: 34px; border: 2px solid var(--surface); border-radius: 999px; background: var(--catalog-color); box-shadow: 0 0 0 1px var(--border), 0 5px 14px rgba(15, 23, 42, 0.12); cursor: pointer; }
.appearance-color-button.selected { box-shadow: 0 0 0 3px var(--primary), 0 8px 18px rgba(15, 23, 42, 0.18); }
.appearance-texture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.appearance-dialog-footer { display: flex; justify-content: flex-end; gap: 10px; }
.stage-texture-contrast-field { display: grid; grid-column: 1 / -1; grid-template-columns: auto minmax(120px, 1fr) auto; gap: 8px; align-items: center; color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.stage-texture-contrast-field output { min-width: 3.2em; color: var(--text); text-align: right; }

.save-dialog-card, .saved-files-card, .photo-placement-card { display: grid; gap: 18px; max-height: inherit; padding: 24px; border: 1px solid var(--border); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); overflow: auto; }
.new-project-fieldset { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 14px; border: 1px solid rgba(217, 224, 234, 0.9); border-radius: 18px; background: rgba(248, 250, 252, 0.7); }
.new-project-fieldset legend { padding: 0 6px; color: var(--muted); font-size: 0.82rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
.new-project-sun-grid { display: grid; grid-template-columns: minmax(180px, 1.25fr) repeat(2, minmax(120px, 1fr)); gap: 12px; }
.photo-placement-layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 18px; min-height: min(720px, calc(100vh - 150px)); }
.photo-placement-controls { display: grid; align-content: start; gap: 14px; }
.photo-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.photo-placement-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-placement-stage { position: relative; min-height: 620px; overflow: hidden; border: 1px dashed var(--border); border-radius: 20px; background: linear-gradient(135deg, #e2e8f0, #f8fafc); }
.photo-placement-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0f172a; }
.photo-placement-overlay { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; cursor: crosshair; }
.photo-placement-render { position: absolute; z-index: 1; pointer-events: none; }
.photo-placement-render canvas { display: block; width: 100%; height: 100%; }
.stage-step-list { display: grid; gap: 14px; margin-top: 24px; }
.stage-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-alignment-settings { display: grid; gap: 10px; }
.stage-workspace-grid { display: grid; grid-template-rows: minmax(280px, 42vh) minmax(320px, 1fr); gap: 16px; height: 100%; min-height: 584px; }
.stage-photo-workspace, .stage-preview { position: relative; overflow: hidden; border: 1px dashed var(--border); border-radius: 20px; background: linear-gradient(135deg, #e2e8f0, #f8fafc); }
.stage-photo-workspace img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0f172a; }
.stage-mark-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.stage-preview canvas { display: block; width: 100%; height: 100%; }
.save-dialog-card input[type="text"] { min-height: 66px; height: auto; padding: 14px 18px 18px; font-size: 1.08rem; line-height: 1.5; }
.save-dialog-header, .save-dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.save-dialog-header strong { font-size: 1.15rem; }
.save-dialog-actions { justify-content: flex-end; }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

model-viewer { width: 100%; height: 100%; min-height: inherit; background: transparent; }

.preview-selection-actions {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 18;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(360px, calc(100% - 36px));
}
.preview-action-button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.preview-action-button:hover { background: rgba(37, 99, 235, 0.92); }
.preview-action-button[hidden] { display: none !important; }
.status {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100% - 36px));
  padding: 10px 10px 10px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  z-index: 8;
  font-size: 0.9rem;
}
.status.error {
  background: rgba(185, 28, 28, 0.94);
  box-shadow: 0 12px 28px rgba(127, 29, 29, 0.28);
}
.status[hidden] { display: none !important; }
.status-close {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.status-close:hover { background: rgba(255, 255, 255, 0.28); }

body.arvy-support-enabled #status.status {
  bottom: calc(88px + env(safe-area-inset-bottom));
}

.login-body { display: grid; min-height: 100vh; place-items: center; padding: 20px; }
.login-shell { width: min(420px, 100%); }
.login-card { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--border); border-radius: 26px; background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow); }
.login-card h1 { font-size: 1.8rem; }
.login-error { min-height: 1.2em; margin: 0; color: #b91c1c; font-weight: 800; }

.viewer-body { overflow: hidden; background: #eef2f7; }
.viewer-body model-viewer { height: 100vh; height: 100dvh; }

.viewer-toolbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  max-width: 760px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.viewer-toolbar strong { margin-right: auto; }
.floating { position: fixed; }

@media (max-width: 860px) {
  .app-shell, .stage-shell { grid-template-columns: 1fr; padding: 12px; }
  body { padding-bottom: 72px; }
  .app-shell { padding-top: 0; }
  .configurator-panel {
    display: contents;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .stage-controls-panel { padding: 14px; }
  .configurator-header {
    position: fixed;
    top: 8px;
    left: 10px;
    right: 10px;
    z-index: 2700;
    gap: 8px;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(217, 224, 234, 0.9);
    border-radius: 18px;
    background: rgba(245, 247, 251, 0.96);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(14px);
  }
  .project-heading {
    justify-items: stretch;
    padding: 0 8px 2px;
    text-align: left;
  }
  .project-title-brand { display: inline-grid; }
  .project-title-menu { display: block; }
  .project-actions-menu { display: none; }
  .project-heading-label { display: none; }
  .project-name {
    max-width: 100%;
    padding: 2px 12px 0;
    color: #0f172a;
    font-size: clamp(1.05rem, 4.5vw, 1.32rem);
    font-weight: 950;
    letter-spacing: -0.03em;
    line-height: 1.05;
    white-space: nowrap;
  }
  .header-actions { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
  #generatePage { margin-left: 0; }
  .project-title-view {
    min-width: 44px;
    min-height: 44px;
    padding: 4px;
  }
  .project-title-view .material-symbols-outlined { font-size: 23px; }
  .icon-action {
    min-width: 0;
    min-height: 42px;
    padding: 4px 2px 3px;
    border: 0;
    border-radius: 11px;
    background: transparent;
  }
  .icon-action:hover { background: rgba(255, 255, 255, 0.72); }
  .icon-action .material-symbols-outlined { font-size: 18px; }
  .icon-action small { font-size: 0.58rem; }
  .config-form { margin-top: 0; }
  .preview-panel {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .three-preview {
    min-height: 100vh;
    min-height: 100dvh;
  }
  .tabs {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 2500;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    overflow: visible;
    min-height: 54px;
    padding: 5px;
    border: 1px solid rgba(217, 224, 234, 0.9);
    border-radius: 18px;
    background: rgba(245, 247, 251, 0.96);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(14px);
  }
  body.mobile-inline-tab-open .tabs {
    border-top-color: rgba(217, 224, 234, 0.55);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
  }
  .tab-button {
    min-width: 0;
    min-height: 42px;
    gap: 1px;
    padding: 0 2px;
    border-radius: 11px;
    font-size: 0.68rem;
    line-height: 1;
  }
  .tab-button .material-symbols-outlined { font-size: 18px; }
  .tab-poles-icon { width: 16px; height: 16px; }
  .tab-poles-icon::before, .tab-poles-icon::after { top: 3px; width: 2px; height: 12px; }
  .tab-button.active::after { bottom: 3px; width: 14px; height: 2px; }
  .configurator-panel { padding-bottom: 6px; }
  .settings-panel { display: none; }
  .mobile-inline-tab-overlay {
    position: fixed;
    inset: 0;
    z-index: 2498;
    pointer-events: none;
    background: transparent;
  }
  .mobile-inline-tab-overlay.visible { pointer-events: auto; }
  .mobile-inline-tab-overlay[hidden] { display: none !important; }
  .tab-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(64px + env(safe-area-inset-bottom));
    z-index: 2499;
    max-height: min(62vh, 560px);
    margin: 0;
    padding: 14px;
    overflow: auto;
    border: 1px solid rgba(217, 224, 234, 0.9);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(14px);
  }
  .tab-panel.active { display: grid; }
  .tab-panel::before {
    content: attr(data-mobile-title);
    position: sticky;
    top: -14px;
    z-index: 5;
    display: block;
    margin: -14px -14px 8px;
    padding: 14px 44px 11px;
    border-radius: 18px 18px 0 0;
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    font-size: 1rem;
    font-weight: 950;
    text-align: center;
    backdrop-filter: blur(14px);
  }
  .tab-panel::after {
    content: '';
    position: sticky;
    top: 36px;
    z-index: 5;
    display: block;
    height: 1px;
    margin: -8px auto 12px;
    width: 42%;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.9), transparent);
  }
  .mobile-tab-popup {
    position: fixed;
    inset: 0;
    z-index: 3200;
  }
  .mobile-tab-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.22);
  }
  .mobile-tab-popup-card {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid;
    gap: 12px;
    padding: 16px 14px 14px;
    border: 1px solid rgba(217, 224, 234, 0.96);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
    overflow: auto;
    backdrop-filter: blur(14px);
  }
  .mobile-tab-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .mobile-tab-popup-header strong { font-size: 1.05rem; }
  .mobile-tab-popup-content > .tab-panel {
    display: grid;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  body.mobile-tab-popup-open { overflow: hidden; }
  .louver-controls { grid-template-columns: 1fr; }
  .page-scroll-handle { display: none; }
  .status { display: none; }
  .preview-selection-actions { top: 14px; left: 14px; right: 14px; justify-content: center; }
  .preview-action-button { min-height: 42px; padding: 0 14px; }
  .photo-placement-card { padding: 16px; }
}

@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  body { padding-bottom: 0; }
  .configurator-header,
  .tabs,
  .tab-panel,
  .mobile-inline-tab-overlay {
    display: none !important;
  }
  .app-shell, .stage-shell { padding: 0; }
  .preview-panel,
  .three-preview {
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
  }
  .photo-placement-layout { grid-template-columns: 1fr; min-height: auto; }
  .photo-placement-stage { min-height: 70vh; }
  .stage-workspace-panel { padding: 12px; }
  .stage-workspace-grid { grid-template-rows: minmax(260px, 45vh) minmax(320px, 55vh); min-height: auto; }
}

body.compact-landscape-ui { padding-bottom: 0; }
body.compact-landscape-ui .configurator-header,
body.compact-landscape-ui .tabs,
body.compact-landscape-ui .tab-panel,
body.compact-landscape-ui .mobile-inline-tab-overlay,
body.compact-landscape-ui .status {
  display: none !important;
}
body.compact-landscape-ui .app-shell,
body.compact-landscape-ui .stage-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}
body.compact-landscape-ui .configurator-panel { display: none !important; }
body.compact-landscape-ui .preview-panel {
  position: fixed;
  inset: 0;
  grid-column: 1 / -1;
  min-height: 100vh;
  min-height: 100dvh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.compact-landscape-ui .three-preview {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  border-radius: 0;
}

/* Fast stage builder */
.stage-builder-shell { grid-template-columns: minmax(380px, 0.9fr) minmax(520px, 1.1fr); }
.stage-builder-controls { max-height: calc(100vh - 24px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.stage-builder-grid { display: grid; gap: 14px; }
.builder-card { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: rgba(248, 250, 252, 0.76); }
.builder-card h2 { margin: 0; font-size: 1rem; color: #0f172a; }
.shape-preset-list, .object-preset-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.object-preset-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shape-preset, .object-preset { min-height: 54px; border: 1px solid var(--border); border-radius: 16px; background: #fff; color: #334155; font-weight: 800; cursor: pointer; }
.shape-preset.active, .object-preset:hover { border-color: var(--primary); background: #e0f2fe; color: #075985; box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16); }
.plan-list { display: grid; gap: 10px; }
.plan-row { display: grid; grid-template-columns: 1fr repeat(4, minmax(82px, 0.7fr)) auto; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.stage-builder-shell .plan-row { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
.plan-row strong { align-self: center; }
.stage-builder-shell .plan-row strong { grid-column: 1 / -1; }
.plan-row small { color: var(--muted); font-weight: 700; }
.compact-plan-row { grid-template-columns: auto repeat(2, minmax(74px, 0.5fr)) auto; }
.stage-builder-shell .compact-plan-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.button.tiny { padding: 8px 10px; border-radius: 10px; font-size: 0.78rem; }
.compact-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stage-builder-preview-panel { position: relative; min-height: calc(100vh - 24px); }
.stage-builder-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.stage-builder-preview { min-height: calc(100vh - 104px); }
.selected-settings-gear {
  position: absolute;
  top: 86px;
  right: 28px;
  z-index: 20;
  display: none;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.94);
  color: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.24);
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.selected-settings-gear .material-symbols-outlined { font-size: 28px; }
.settings-popup[hidden], .selected-settings-gear[hidden] { display: none !important; }
.settings-popup { position: fixed; inset: 0; z-index: 3000; pointer-events: none; }
.settings-popup-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.14); pointer-events: auto; }
.settings-popup-card {
  position: fixed;
  left: var(--settings-popup-x, 50vw);
  top: var(--settings-popup-y, 20vh);
  display: grid;
  gap: 12px;
  width: min(640px, calc(100vw - 32px));
  max-height: min(760px, calc(100dvh - 32px));
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  transform: none;
  overflow: auto;
  pointer-events: auto;
  backdrop-filter: blur(14px);
}
.settings-popup-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-popup-header strong { font-size: 1.02rem; }
.settings-popup-content { display: grid; gap: 10px; }
.settings-popup-content .builder-card, .settings-popup-content .plan-row { background: #fff; }
.settings-popup-content .plan-row, .settings-popup-content .object-plan-row, .settings-popup-content .window-plan-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.settings-popup-content .plan-row strong,
.settings-popup-content .window-row-actions,
.settings-popup-content .object-nudge-controls { grid-column: 1 / -1; }

@media (max-width: 520px) {
  .save-dialog, .saved-files-dialog, .photo-placement-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .save-dialog-card, .saved-files-card, .photo-placement-card { padding: 20px; }
  .new-project-sun-grid { grid-template-columns: 1fr; }
  .action-dialog.texture-dialog .save-dialog-card { padding: 20px; }
  .action-dialog.texture-dialog .texture-dialog-actions { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .stage-builder-shell { grid-template-columns: 1fr; }
  .stage-builder-controls { max-height: none; overflow-y: visible; }
  .plan-row, .compact-plan-row { grid-template-columns: 1fr 1fr; }
  .plan-row strong, .compact-plan-row span { grid-column: 1 / -1; }
  .selected-settings-gear { display: grid; }
  .settings-popup-card { left: 12px; top: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; max-height: none; transform: none; }
}
.stage-builder-shell .plan-row.selected,
.stage-builder-shell .builder-card.selected {
  border-color: var(--primary);
  background: #e0f2fe;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}
.stage-builder-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: 260px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}
.preview-measurement-tooltip {
  z-index: 10000;
  max-width: 360px;
  background: rgba(2, 6, 23, 0.96);
  outline: 2px solid rgba(56, 189, 248, 0.55);
}

.stage-builder-shell .window-plan-row, .stage-builder-shell .object-plan-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stage-builder-shell .window-plan-row strong,
.stage-builder-shell .object-plan-row strong,
.stage-builder-shell .window-row-actions,
.stage-builder-shell .object-nudge-controls { grid-column: 1 / -1; }
.window-row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.object-nudge-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stage-builder-shell .segment-plan-row {
  margin-left: 16px;
  border-style: dashed;
  background: rgba(248, 250, 252, 0.92);
}
.stage-builder-shell .segment-plan-row strong::before {
  content: 'Segment ';
  color: var(--muted);
  font-weight: 800;
}
.configurator-panel .selected {
  border-color: var(--primary) !important;
  background: #e0f2fe !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16) !important;
}
.configurator-panel .glass-slice-row.selected,
.configurator-panel .shade-opening-row.selected,
.configurator-panel .leg-lengths.selected,
.configurator-panel .louver-settings.selected,
.configurator-panel .material-settings.selected,
.configurator-panel .glass-panel-card.selected {
  border-radius: 14px;
}

/* Global application shell, landing page, profile view, and project action menu. */
.landing-shell, .profile-shell {
  display: grid;
  gap: 24px;
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.landing-nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
}

.brand-mark, .account-chip, .landing-menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark .material-symbols-outlined { color: var(--primary); }
.landing-menu { display: flex; flex-wrap: wrap; gap: 14px; margin-left: auto; }
.landing-menu a { color: var(--muted); font-size: 0.92rem; }
.account-chip { padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 26px;
  align-items: stretch;
  padding: clamp(28px, 5vw, 56px);
}

.landing-hero-copy { display: grid; align-content: center; gap: 18px; }
.landing-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button.large { min-height: 52px; padding: 0 24px; }

.landing-hero-card {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 300px;
  padding: 26px;
  border: 1px solid rgba(217, 224, 234, 0.82);
  border-radius: 26px;
  background: radial-gradient(circle at 70% 10%, rgba(37, 99, 235, 0.18), transparent 36%), linear-gradient(145deg, #ffffff, #eef4ff);
}

.landing-hero-card .material-symbols-outlined { color: var(--primary); font-size: 64px; }
.landing-hero-render { display: grid; gap: 12px; align-content: end; min-height: 360px; padding: 14px; border: 1px solid rgba(217, 224, 234, 0.82); border-radius: 26px; background: linear-gradient(145deg, #ffffff, #eef4ff); }
.landing-render-frame { width: 100%; min-height: 320px; border: 0; border-radius: 20px; background: radial-gradient(circle at 50% 35%, rgba(37, 99, 235, 0.12), transparent 42%); }
.demo-frame-wrap { width: 100%; height: 70vh; min-height: 560px; margin: 0 0 32px; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface-muted); }
.demo-frame { display: block; width: 100%; height: 100%; min-height: 0; border: 0; background: var(--surface-muted); }
.faq-list { display: grid; gap: 16px; }
.faq-list article { padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: rgba(255, 255, 255, 0.72); }
.project-type-pill { display: inline-flex; width: fit-content; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(37, 99, 235, 0.1); color: var(--primary); font-size: 0.78rem; font-weight: 900; }
.latest-projects, .profile-card { padding: clamp(22px, 4vw, 34px); }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-actions { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.section-action-separator { align-self: stretch; width: 1px; min-height: 30px; background: var(--border); }
.section-header h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.public-work-shell { display: grid; gap: 36px; }
.work-organization-card { display: flex; align-items: flex-start; gap: 24px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); }
.work-organization-card h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.12; }
.work-organization-logo { display: grid; flex: 0 0 auto; place-items: center; width: 112px; min-height: 84px; overflow: hidden; border-radius: 4px; background-position: center; background-repeat: no-repeat; background-size: contain; color: var(--primary); }
.work-organization-logo.logo-ratio-landscape { width: 136px; }
.work-organization-logo.logo-ratio-wide-landscape { width: 168px; }
.work-organization-logo .material-symbols-outlined { font-size: 38px; }
.logo-ratio-square { aspect-ratio: 1 / 1; }
.logo-ratio-landscape { aspect-ratio: 4 / 3; }
.logo-ratio-wide-landscape { aspect-ratio: 16 / 9; }
.logo-ratio-portrait { aspect-ratio: 3 / 4; }
.logo-ratio-tall-portrait { aspect-ratio: 9 / 16; }
.work-organization-link { display: inline-flex; margin-top: 12px; color: var(--primary); font-weight: 600; text-decoration: none; }
.work-organization-link:hover { color: var(--primary-hover); text-decoration: underline; }
.project-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08); transition: box-shadow 0.2s ease; }
.project-card:hover { box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12); }
.project-card-edit { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(91, 122, 94, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--primary); opacity: 0; transform: translateY(-4px) scale(0.96); pointer-events: none; text-decoration: none; box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12); backdrop-filter: blur(8px); transition: opacity 180ms ease, transform 180ms ease, color 180ms ease, border-color 180ms ease; }
.project-card:hover .project-card-edit, .project-card:focus-within .project-card-edit { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.project-card-edit:hover { border-color: var(--primary); color: var(--primary-hover); }
.project-card-edit .material-symbols-outlined { font-size: 20px; }
.project-card-index { position: absolute; top: 12px; left: 12px; z-index: 2; max-width: calc(100% - 24px); overflow: hidden; padding: 4px 9px; border: 1px solid rgba(91, 122, 94, 0.22); border-radius: 999px; background: rgba(255, 255, 255, 0.88); color: var(--primary); font-size: 0.72rem; font-weight: 950; letter-spacing: 0.04em; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(6px); }
.project-thumb { display: grid; place-items: center; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #e7edf5, #f8fafc); color: var(--muted); text-decoration: none; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.project-image-thumb { overflow: hidden; background: #f6f7f4; }
.project-thumb .material-symbols-outlined { font-size: 44px; }
.project-type-thumb { background: var(--surface-soft); color: var(--primary); }
.project-type-svg { width: 78px; height: 78px; color: var(--primary); overflow: visible; }
.project-type-svg path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pergola-icon-roof { stroke-width: 3.5; }
.pergola-icon-line { opacity: 0.9; stroke-width: 2; }
.pergola-icon-post { stroke-width: 3.5; }
.project-card-body { display: grid; gap: 8px; padding: 18px 20px; }
.project-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.project-card-body strong { overflow: hidden; font-size: 1.02rem; text-overflow: ellipsis; white-space: nowrap; }
.project-card-body small { color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.project-card-title small { flex: 0 0 auto; text-align: right; }
.project-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 4px 16px; }
.project-card-client { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--muted); font-size: 0.78rem; font-weight: 750; }
.project-card-client .material-symbols-outlined { flex: 0 0 auto; font-size: 16px; color: var(--muted); }
.project-card-client span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card-meta small { display: inline-flex; align-items: center; gap: 4px; }
.project-card-meta .material-symbols-outlined { font-size: 16px; color: var(--muted); }
.portfolio-description-copy { min-height: 36px; margin: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-muted); color: var(--muted); font-size: 0.84rem; line-height: 1.35; }
.project-card-description { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.project-card-actions { display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 6px; }
.public-work-shell .project-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.project-card-actions .button { flex: 0 1 auto; justify-content: center; min-width: 0; padding-inline: 8px; overflow: hidden; text-align: center; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.button.danger { border-color: rgba(185, 28, 28, 0.2); color: #b91c1c; }
.button.danger:hover { border-color: #b91c1c; background: rgba(185, 28, 28, 0.08); color: #7f1d1d; }
.project-card-actions .material-symbols-outlined { font-size: 18px; }
.project-card-actions .portfolio-action-mark { margin-right: -5px; font-size: 15px; }
.empty-state { grid-column: 1 / -1; display: grid; place-items: center; gap: 12px; min-height: 260px; padding: 48px 24px; color: var(--muted); text-align: center; }
.empty-state .material-symbols-outlined { font-size: 52px; }

.profile-card { justify-self: center; display: grid; gap: 16px; width: min(720px, 100%); }
.profile-avatar { color: var(--primary); font-size: 72px; }
.profile-summary { display: grid; gap: 10px; margin: 0; }
.profile-summary div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.profile-summary dt { color: var(--muted); font-weight: 800; }
.profile-summary dd { margin: 0; font-weight: 900; }
.account-card { width: min(1120px, 100%); }
.account-heading { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.account-heading h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.account-heading p { margin: 0; color: var(--muted); }
.account-heading-copy { display: grid; gap: 8px; }
.account-heading-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.account-heading-separator { color: var(--muted); font-weight: 700; }
.account-heading-organization-logo { display: grid; flex: 0 0 auto; place-items: center; width: 54px; aspect-ratio: 1 / 1; overflow: hidden; border: 1px solid rgba(91, 122, 94, 0.16); border-radius: 8px; background-color: var(--surface); background-position: center; background-repeat: no-repeat; background-size: contain; color: var(--primary); }
.account-heading-organization-logo.logo-ratio-landscape { width: 64px; }
.account-heading-organization-logo.logo-ratio-wide-landscape { width: 78px; }
.account-heading-organization-logo.logo-ratio-portrait { width: 46px; }
.account-heading-organization-logo.logo-ratio-tall-portrait { width: 40px; }
.account-heading-organization-logo .material-symbols-outlined { font-size: 26px; }
.account-heading-organization-name { min-width: 0; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.account-avatar { width: 72px; height: 72px; border-radius: 50%; }
.account-notice { padding: 12px 14px; border: 1px solid rgba(91, 122, 94, 0.22); border-radius: 14px; background: rgba(91, 122, 94, 0.1); color: var(--primary); font-weight: 800; }
.account-notice[data-notice-type="success"] { border-color: rgba(34, 197, 94, 0.28); background: rgba(34, 197, 94, 0.1); color: #15803d; }
.account-notice[data-notice-type="error"] { border-color: rgba(220, 38, 38, 0.28); background: rgba(220, 38, 38, 0.09); color: #b91c1c; }
.account-notice[data-notice-type="info"] { border-color: rgba(59, 130, 246, 0.24); background: rgba(59, 130, 246, 0.08); color: #1d4ed8; }
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.account-detail-card { display: grid; gap: 5px; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-muted); text-align: left; }
.account-detail-button { cursor: pointer; font: inherit; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.account-detail-button:hover, .account-detail-button:focus-visible { border-color: rgba(91, 122, 94, 0.34); box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08); transform: translateY(-1px); outline: none; }
.account-detail-card .material-symbols-outlined { color: var(--primary); font-size: 24px; }
.account-detail-card strong { color: var(--text); font-size: 1rem; }
.account-detail-card small { color: var(--muted); font-weight: 800; }
.account-settings-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.account-settings-sidebar { position: sticky; top: 92px; }
.account-settings-subnav { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface-muted); }
.account-settings-subnav-link { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; color: var(--muted); font-weight: 850; text-decoration: none; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.account-settings-subnav-link .material-symbols-outlined { font-size: 20px; }
.account-settings-subnav-link:hover { border-color: rgba(91, 122, 94, 0.22); background: rgba(91, 122, 94, 0.07); color: var(--text); }
.account-settings-subnav-link.active { border-color: rgba(91, 122, 94, 0.32); background: var(--primary); color: #fff; }
@keyframes account-tab-panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.account-settings-content { min-width: 0; display: grid; gap: 18px; }
.profile-section-card { scroll-margin-top: 92px; }
.profile-section-card[hidden] { display: none !important; }
.profile-section-card.active { animation: account-tab-panel-in 180ms ease-out both; }
.profile-section-card:focus { outline: none; }
.profile-section-card:focus-visible .profile-fieldset { border-color: rgba(91, 122, 94, 0.46); box-shadow: 0 0 0 4px rgba(91, 122, 94, 0.1); }
.profile-section-card .profile-fieldset { position: relative; }
.profile-section-card .profile-fieldset legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.profile-section-header { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; }
.profile-section-header > .material-symbols-outlined { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: rgba(91, 122, 94, 0.1); color: var(--primary); font-size: 24px; }
.profile-section-header h2 { margin: 0 0 5px; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.profile-section-header p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.account-form { display: grid; gap: 18px; }
.arvy-account-billing-card { margin-top: 2px; }
.arvy-billing-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.arvy-account-billing-card .account-detail-card { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 1px 10px; padding: 12px; background: var(--surface); }
.arvy-account-billing-card .account-detail-card .material-symbols-outlined { grid-row: 1 / span 2; font-size: 22px; }
.arvy-account-billing-card .account-detail-card strong { overflow: hidden; font-size: 0.95rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.arvy-account-billing-card .account-detail-card small { font-size: 0.72rem; line-height: 1.2; }
.organization-form { margin-top: 0; }
.profile-fieldset { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 16px; border: 1px solid rgba(217, 224, 234, 0.9); border-radius: 18px; background: rgba(248, 250, 252, 0.7); }
.profile-fieldset legend { padding: 0 6px; color: var(--muted); font-size: 0.82rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.05em; }
.form-grid.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid-wide { grid-column: 1 / -1; }
.account-form label { display: grid; gap: 8px; color: #263243; font-size: 1rem; font-weight: 400; }
.account-form label span { color: #263243; font-size: 1rem; font-weight: 400; }
.account-form input:not([type="checkbox"]):not([type="radio"]), .account-form textarea { display: block; width: 100%; min-height: 46px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; line-height: 1.4; transform: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.account-form input[type="file"] { padding: 10px; line-height: 1.4; }
.account-form textarea { min-height: 128px; resize: vertical; font-family: var(--font-body); line-height: 1.55; }
.account-form input::placeholder, .account-form textarea::placeholder { color: rgba(103, 118, 104, 0.72); }
.account-form input:not([type="checkbox"]):not([type="radio"]):hover, .account-form textarea:hover { border-color: rgba(91, 122, 94, 0.35); }
.account-form input:not([type="checkbox"]):not([type="radio"]):focus, .account-form textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(91, 122, 94, 0.12); transform: none; }
.account-form .checkbox-row { display: flex; grid-template-columns: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; }
.account-form .checkbox-row input[type="checkbox"] { flex: 0 0 42px; width: 42px; min-width: 42px; height: 24px; min-height: 24px; padding: 0; border: 0; border-radius: 999px; }
.account-form .checkbox-row input[type="checkbox"] + span { flex: 1; line-height: 1.35; }
.account-form small { color: var(--muted); font-size: 0.74rem; font-weight: 650; }
.organization-logo-row { display: grid; grid-template-columns: minmax(112px, 184px) minmax(0, 1fr); gap: 18px; align-items: flex-start; justify-items: start; }
.organization-logo-row > .organization-logo-preview-stack { justify-self: center; }
.organization-logo-preview-stack { display: grid; gap: 10px; justify-items: center; }
.organization-logo-preview { display: grid; place-items: center; width: 112px; max-width: 100%; min-height: 112px; overflow: hidden; border: 1px solid rgba(91, 122, 94, 0.18); border-radius: 4px; background-position: center; background-repeat: no-repeat; background-size: contain; color: var(--primary); }
.organization-logo-preview.logo-ratio-landscape { width: 150px; }
.organization-logo-preview.logo-ratio-wide-landscape { width: 184px; }
.organization-logo-preview .material-symbols-outlined { font-size: 34px; }
.organization-logo-controls { display: grid; gap: 14px; width: 100%; }
.logo-upload-field { gap: 8px; }
.account-form input.logo-upload-input[type="file"] { position: absolute; inset: auto; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; clip: rect(0 0 0 0); opacity: 0; overflow: hidden; pointer-events: none; }
.logo-upload-dropzone { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; min-height: 74px; padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--primary) 42%, var(--border)); border-radius: 16px; background: linear-gradient(135deg, rgba(91,122,94,.08), rgba(255,255,255,.82)); color: var(--text); cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.logo-upload-dropzone:hover, .logo-upload-input:focus + .logo-upload-dropzone { border-color: var(--primary); background: rgba(91,122,94,.10); box-shadow: 0 10px 28px rgba(15,23,42,.08); }
.logo-upload-dropzone[aria-disabled="true"], .logo-ratio-option input[data-branding-locked] + .logo-ratio-card, [data-branding-locked].button { cursor: pointer; filter: grayscale(0.12); }
[data-paid-feature] { position: relative; opacity: 0.5; transition: opacity 320ms cubic-bezier(.22, 1, .36, 1); }
[data-paid-feature]:hover, [data-paid-feature]:focus-visible, [data-paid-feature]:focus-within { opacity: 1; }
[data-paid-feature]::after { content: ''; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 999px; background: #e59a35; box-shadow: 0 0 0 2px rgba(255,255,255,.92); opacity: 1; }
[data-paid-feature]::before { content: 'Paid feature'; position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 20; min-width: max-content; padding: 5px 8px; border: 1px solid rgba(229,154,53,.32); border-radius: 6px; background: #fffaf2; color: #7a4a08; font-size: 11px; font-weight: 700; line-height: 1.2; box-shadow: 0 8px 22px rgba(15,23,42,.12); opacity: 0; pointer-events: none; transform: translateY(4px) scale(.98); transform-origin: bottom right; transition: opacity 220ms cubic-bezier(.22, 1, .36, 1), transform 220ms cubic-bezier(.22, 1, .36, 1), visibility 220ms ease; visibility: hidden; }
html[lang^="ro"] [data-paid-feature]::before { content: 'Funcționalitate plătită'; }
[data-paid-feature]:hover::before, [data-paid-feature]:focus-visible::before, [data-paid-feature]:focus-within::before { opacity: 1; transform: translateY(0) scale(1); visibility: visible; }
[data-config-paid-feature] { cursor: pointer; -webkit-tap-highlight-color: rgba(229,154,53,.16); }
[data-config-paid-feature] :is(input, select, textarea, button),
[data-config-paid-feature] :is(input, select, textarea, button) * { pointer-events: none; }
.paid-config-control { display: grid; min-width: 0; }
.paid-config-control > :is(input, select, textarea, button) { width: 100%; min-width: 0; }
.logo-upload-dropzone .material-symbols-outlined { grid-row: span 2; color: var(--primary); font-size: 28px; }
.logo-upload-dropzone strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-upload-dropzone small { color: var(--muted); }
.logo-ratio-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid rgba(217, 224, 234, 0.5); border-radius: 14px; }
.logo-ratio-picker-title { grid-column: 1 / -1; color: var(--text); font-size: .78rem; font-weight: 800; }
.logo-ratio-option { position: relative; margin: 0; }
.logo-ratio-option input { position: absolute; opacity: 0; pointer-events: none; }
.logo-ratio-card { display: grid; grid-template-rows: 1fr auto; gap: 6px; justify-items: center; align-content: start; min-height: 48px; padding: 10px 8px 8px; border: 1px solid var(--border); border-radius: 14px; cursor: pointer; text-align: center; transition: border-color .2s ease, box-shadow .2s ease; }
.logo-ratio-card:hover, .logo-ratio-option input:focus + .logo-ratio-card { border-color: color-mix(in srgb, var(--primary) 50%, var(--border)); }
.logo-ratio-option input:checked + .logo-ratio-card { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,122,94,.12); }
.logo-ratio-card strong { align-self: end; overflow: hidden; font-size: .72rem; line-height: 1.2; text-overflow: ellipsis; }
.logo-ratio-shape { align-self: start; display: block; width: 100%; max-width: 112px; min-height: 28px; border: 1px solid rgba(91, 122, 94, 0.22); border-radius: 3px; background-color: rgba(91, 122, 94, 0.08); background-position: center; background-repeat: no-repeat; background-size: cover; }
.logo-ratio-shape.logo-ratio-square { max-width: 84px; }
.logo-ratio-shape.logo-ratio-portrait { max-width: 63px; }
.logo-ratio-shape.logo-ratio-tall-portrait { max-width: 48px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.logo-crop-dialog { display: grid; gap: 12px; grid-column: 1 / -1; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.logo-crop-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo-crop-header strong { font-size: .9rem; }
.logo-crop-header strong span { color: var(--muted); font-weight: 700; }
.logo-crop-actions { display: flex; gap: 8px; }
.logo-crop-stage { position: relative; display: grid; place-items: center; max-height: 400px; overflow: hidden; border: 1px solid rgba(217, 224, 234, 0.5); border-radius: 8px; background: #1a1a1a; user-select: none; -webkit-user-select: none; }
.logo-crop-stage img { display: block; max-width: 100%; max-height: 400px; object-fit: contain; pointer-events: none; }
.logo-crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0,0,0,.55); cursor: move; touch-action: none; }
.logo-crop-handle { position: absolute; width: 18px; height: 18px; background: #fff; border: 2px solid var(--primary); border-radius: 50%; touch-action: none; }
.logo-crop-handle-nw { top: -9px; left: -9px; cursor: nw-resize; }
.logo-crop-handle-ne { top: -9px; right: -9px; cursor: ne-resize; }
.logo-crop-handle-sw { bottom: -9px; left: -9px; cursor: sw-resize; }
.logo-crop-handle-se { bottom: -9px; right: -9px; cursor: se-resize; }

.project-detail-actions { align-items: flex-start; }
.primary-action { border-color: rgba(37, 99, 235, 0.32); background: var(--primary); color: #fff; }
.primary-action small, .primary-action .material-symbols-outlined { color: #fff; }
#generatePage:not(.dirty):not(.saving) {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}
#generatePage:not(.dirty):not(.saving) .material-symbols-outlined { color: var(--text); }
#generatePage.dirty,
#generatePage.saving {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}
#generatePage.dirty .material-symbols-outlined,
#generatePage.saving .material-symbols-outlined { color: #fff; }
.desktop-auth-menu { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.desktop-menu-action { display: inline-flex; align-items: center; min-height: 38px; padding: 0 11px; border-radius: 999px; color: var(--text); font-size: 0.95rem; font-weight: 900; text-decoration: none; }
.desktop-menu-action:hover { background: var(--surface-muted); color: var(--text); }
.desktop-menu-action[href$="login.php"] { background: var(--primary); color: #fff; padding: 0 16px; }
.hamburger-menu { display: none; position: relative; }
.hamburger-menu summary { list-style: none; }
.hamburger-menu summary::-webkit-details-marker { display: none; }
.hamburger-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; gap: 4px; min-width: 220px; padding: 8px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); transform-origin: top right; }
.hamburger-menu[open]:not(.is-closing) .hamburger-menu-panel { animation: arvy-menu-open 180ms ease-out both; }
.hamburger-menu.is-closing[open] .hamburger-menu-panel { pointer-events: none; animation: arvy-menu-close 160ms ease-in both; }
.hamburger-menu:not([open]) > .hamburger-menu-panel,
.profile-menu:not([open]) > .profile-menu-panel { display: none; }
.menu-action { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-weight: 850; text-align: left; text-decoration: none; cursor: pointer; }
.menu-action:hover { background: var(--surface-muted); }
.menu-action .material-symbols-outlined { color: var(--muted); font-size: 20px; }

@keyframes arvy-menu-open {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes arvy-menu-close {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-6px) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .hamburger-menu[open] .hamburger-menu-panel,
  .profile-menu[open] .profile-menu-panel { animation: none !important; }
  .save-dialog,
  .saved-files-dialog,
  .photo-placement-dialog,
  .save-dialog::backdrop,
  .saved-files-dialog::backdrop,
  .photo-placement-dialog::backdrop { transition: none !important; }
}

@media (max-width: 860px) {
  .landing-nav { position: static; display: grid; }
  .landing-menu { margin-left: 0; }
  .landing-hero { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-organization-card { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 540px) {
  .projects-grid { grid-template-columns: 1fr; }
  .section-header { align-items: flex-start; flex-direction: column; }
  .account-dashboard-shell .section-header { align-items: center; text-align: center; }
  .account-dashboard-shell .section-actions { justify-content: center; width: 100%; }
  .account-dashboard-shell .section-header h2 { width: 100%; text-align: center; }
  .desktop-auth-menu { display: none; }
  .hamburger-menu { display: block; }
  .hamburger-menu-panel { position: fixed; left: 16px; right: 16px; top: auto; min-width: 0; }
}

/* Public presentation page and private account dashboard sections. */
.presentation-section, .dashboard-hero {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
}

.presentation-section h2, .dashboard-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  line-height: 1.05;
}

.presentation-grid, .workflow-steps, .quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.presentation-grid { grid-template-columns: minmax(0, 1fr); }

.presentation-card, .workflow-steps > div, .quick-action-card {
  display: grid;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-decoration: none;
}

.presentation-card .material-symbols-outlined, .quick-action-card .material-symbols-outlined {
  color: var(--primary);
  font-size: 38px;
}

.presentation-card p, .workflow-steps p, .quick-action-card small { margin: 0; color: var(--muted); line-height: 1.5; }
.workflow-steps span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 950; }
.dashboard-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.quick-action-card { min-height: 150px; }
.quick-action-card:hover { box-shadow: 0 16px 36px rgba(15, 23, 42, 0.11); }

@media (max-width: 860px) {
  .presentation-grid, .workflow-steps, .quick-actions-grid, .dashboard-hero { grid-template-columns: 1fr; }
  .dashboard-actions { justify-content: flex-start; }
}

/* Shared logo and always-available hamburger navigation. */
.app-logo {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.app-logo .material-symbols-outlined { color: #fff; font-size: 23px; }
.global-nav-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.configurator-header > .brand-mark { width: fit-content; }

@media (max-width: 860px) {
  .global-nav-actions { margin-left: 0; }
  .global-nav-actions .button { min-height: 40px; padding: 0 14px; }
}

/* Nordic design-system bridge from /design. Keeps dynamic screens functional while adopting the static prototype tokens. */
.panel,
.login-card,
.save-dialog-card,
.saved-files-card,
.photo-placement-card,
.settings-popup-card,
.hamburger-menu-panel,
.viewer-toolbar {
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

.wp-block-buttons { gap: 12px; }
.wp-block-button { color: inherit; }

.button,
.btn,
.wp-block-button__link,
.ninja-forms-form-wrap .submit-wrap input[type="button"].nf-element,
.ninja-forms-form-wrap .submit-wrap input[type="submit"].nf-element,
.icon-button,
.settings-toggle,
.shape-preset,
.object-preset,
.tool-btn,
.preview-action-button,
.viewer-control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: auto;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.button,
.btn,
.wp-block-button__link,
.ninja-forms-form-wrap .submit-wrap input[type="button"].nf-element,
.ninja-forms-form-wrap .submit-wrap input[type="submit"].nf-element { border-radius: var(--radius-pill); }

.ninja-forms-form-wrap .submit-wrap .nf-field-element {
  display: flex;
  justify-content: center;
}

.ninja-forms-form-wrap .submit-wrap input[type="button"].nf-element,
.ninja-forms-form-wrap .submit-wrap input[type="submit"].nf-element {
  box-sizing: border-box;
  width: fit-content;
  height: auto;
  min-height: auto;
  margin-inline: auto;
  appearance: none;
}

.button.disabled,
.btn.disabled,
.button[disabled],
.btn[disabled],
.button[aria-disabled="true"],
.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; pointer-events: none; filter: grayscale(0.25); }

.button:hover,
.btn:hover,
.wp-block-button__link:hover,
.ninja-forms-form-wrap .submit-wrap input[type="button"].nf-element:hover,
.ninja-forms-form-wrap .submit-wrap input[type="submit"].nf-element:hover,
.icon-button:hover,
.settings-toggle:hover,
.shape-preset:hover,
.object-preset:hover,
.tool-btn:hover,
.preview-action-button:hover,
.viewer-control-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.preview-selection-actions .preview-action-button {
  min-height: 38px;
  padding: 8px 14px;
  border-color: rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.preview-selection-actions .preview-action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
}

#hideSelectedElement[data-visibility-action="hide-selected"] {
  border-color: rgba(220, 38, 38, 0.24);
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
}

#hideSelectedElement[data-visibility-action="hide-selected"]:hover {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

#hideSelectedElement[data-visibility-action="show-selected"],
#showHiddenElements[data-visibility-action="show-hidden"] {
  border-color: rgba(91, 122, 94, 0.28);
  background: rgba(241, 248, 242, 0.96);
  color: var(--primary);
}

#hideSelectedElement[data-visibility-action="show-selected"]:hover,
#showHiddenElements[data-visibility-action="show-hidden"]:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

#showHiddenElements[data-visibility-action="hide-hidden"] {
  border-color: rgba(202, 138, 4, 0.28);
  background: rgba(254, 252, 232, 0.96);
  color: #a16207;
}

#showHiddenElements[data-visibility-action="hide-hidden"]:hover {
  border-color: #ca8a04;
  background: #ca8a04;
  color: #fff;
}

.button.primary,
.button.primary-action,
.btn-primary,
.wp-block-button.btn-primary .wp-block-button__link,
.wp-block-button .wp-block-button__link.has-primary-background-color,
.ninja-forms-form-wrap .submit-wrap input[type="button"].nf-element,
.ninja-forms-form-wrap .submit-wrap input[type="submit"].nf-element,
.primary-action,
.desktop-menu-action[href$="login.php"] {
  border-color: var(--cta-primary);
  background: var(--cta-primary);
  color: #fff;
}

.button.primary:hover,
.button.primary-action:hover,
.btn-primary:hover,
.wp-block-button.btn-primary .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link.has-primary-background-color:hover,
.ninja-forms-form-wrap .submit-wrap input[type="button"].nf-element:hover,
.ninja-forms-form-wrap .submit-wrap input[type="submit"].nf-element:hover,
.primary-action:hover,
.desktop-menu-action[href$="login.php"]:hover {
  border-color: var(--cta-primary-hover);
  background: var(--cta-primary-hover);
  color: #fff;
}

.nav-links .btn-primary,
.nav-links .btn-primary:hover {
  border: 0;
  box-shadow: none;
}

.button.large,
.btn-large,
.wp-block-button.btn-large .wp-block-button__link,
.ninja-forms-form-wrap .submit-wrap input[type="button"].nf-element,
.ninja-forms-form-wrap .submit-wrap input[type="submit"].nf-element { padding: 12px 28px; font-size: 0.93rem; }
.wp-block-button:not(.btn-large):not(.btn-small) .wp-block-button__link { padding: 12px 28px; font-size: 0.93rem; }
.wp-block-button.btn { display: block; min-height: 0; padding: 0; border: 0; background: transparent; }
.button.small,
.btn-small,
.wp-block-button.btn-small .wp-block-button__link { min-height: auto; padding: 5px 12px; font-size: 0.8rem; }
.button.tiny { min-height: auto; padding: 5px 10px; border-radius: var(--radius-pill); font-size: 0.78rem; }

.icon-action {
  border-radius: var(--radius-input);
  background: var(--surface);
  box-shadow: none;
}

.loading-overlay { background: rgba(255, 255, 255, 0.82); }
.loading-overlay strong { font-family: var(--font-body); font-weight: 600; }
.loading-overlay strong::before { border-color: rgba(91, 122, 94, 0.2); border-top-color: var(--primary); }

.eyebrow {
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.intro,
.hint,
.mini-hint { color: var(--muted); }

input,
select,
textarea {
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(91, 122, 94, 0.18);
  border-color: var(--primary);
}

.tabs,
.toggle-group,
.glass-face-tabs {
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.tab-button,
.glass-face-tab,
.toggle-group span {
  border-radius: var(--radius-input);
  font-weight: 500;
}

.tab-button.active,
.glass-face-tab.active,
.shape-preset.active,
.object-preset.active,
.object-preset:hover,
.configurator-panel .selected,
.stage-builder-shell .plan-row.selected,
.stage-builder-shell .builder-card.selected {
  background: var(--surface) !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
  box-shadow: none !important;
}

.app-shell,
.stage-shell {
  background: var(--body-bg);
}

.three-preview,
.project-thumb,
.landing-render-frame,
.demo-frame,
.stage-photo-workspace,
.stage-preview,
.photo-placement-stage {
  background: var(--surface-muted);
}

.configurator-panel,
.stage-controls-panel,
.builder-card,
.glass-panel-card,
.plan-row,
.presentation-card,
.workflow-steps > div,
.quick-action-card,
.project-card,
.faq-list article {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.landing-shell,
.profile-shell {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1060px;
  width: auto;
  margin: 0 auto;
  padding: 48px 32px 80px;
  gap: 96px;
}

.wp-page-shell > * { min-width: 0; }

.landing-nav {
  top: 0;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

.brand-mark,
.account-chip,
.landing-menu a {
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 400;
}

.app-logo {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  box-shadow: none;
}

.app-logo .material-symbols-outlined,
.brand-mark .material-symbols-outlined {
  color: var(--primary);
  font-size: 24px;
}

.desktop-menu-action {
  min-height: auto;
  padding: 6px 10px;
  border-radius: var(--radius-input);
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 500;
}

.desktop-menu-action:hover {
  background: transparent;
  color: var(--text);
}

.landing-hero,
.presentation-section,
.dashboard-hero,
.latest-projects,
.profile-card {
  padding: 48px 40px;
}

.landing-hero-card,
.landing-hero-render {
  border-radius: var(--radius-card);
  background: var(--surface-muted);
}

.presentation-card .material-symbols-outlined,
.quick-action-card .material-symbols-outlined,
.profile-avatar,
.landing-hero-card .material-symbols-outlined {
  color: var(--primary);
}

.project-type-pill {
  border-radius: var(--radius-input);
  background: rgba(91, 122, 94, 0.1);
  color: var(--primary);
}

.workflow-steps span {
  background: var(--primary);
  font-weight: 600;
}

.project-card-body small,
.profile-summary dt,
.menu-action .material-symbols-outlined,
.viewer-toolbar strong {
  color: var(--muted);
}

.selected-settings-gear {
  background: var(--primary);
  box-shadow: none;
}

.viewer-body { background: var(--body-bg); }

@media (max-width: 860px) {
  .landing-shell,
  .profile-shell {
    padding: 18px 16px 48px;
    gap: 24px;
  }

  .landing-nav {
    padding: 12px 14px;
    border-radius: var(--radius-panel);
  }

  .landing-hero,
  .presentation-section,
  .dashboard-hero,
  .latest-projects,
  .profile-card {
    padding: 28px 20px;
  }

  .account-heading,
  .account-grid,
  .account-settings-layout,
  .form-grid.two,
  .organization-logo-row {
    grid-template-columns: 1fr;
  }

  .account-card.profile-card {
    gap: 12px;
    padding: 18px 14px;
  }

  .account-heading {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
  }

  .account-avatar {
    width: 44px;
    height: 44px;
  }

  .account-heading h1 {
    margin-bottom: 2px;
    font-size: 1.35rem;
  }

  .account-heading p {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .account-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .account-detail-card {
    gap: 3px;
    padding: 9px 7px;
    border-radius: 12px;
  }

  .account-detail-card .material-symbols-outlined {
    font-size: 17px;
  }

  .account-detail-card strong {
    overflow: hidden;
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-detail-card small {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .account-notice {
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 0.86rem;
  }

  .account-settings-sidebar {
    position: static;
  }

  .account-settings-subnav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .account-settings-subnav-link {
    white-space: nowrap;
  }

  .profile-section-card {
    scroll-margin-top: 78px;
  }

  .profile-section-header {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
  }

  .profile-section-header > .material-symbols-outlined {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 21px;
  }

  .profile-section-header h2 {
    font-size: 1.14rem;
  }

  .profile-section-header p {
    font-size: 0.82rem;
  }

  .configurator-header,
  .tabs,
  .tab-panel,
  .mobile-tab-popup-card {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
  }
}

/* Design-page navigation and content components used by the live PHP pages. */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
}

body.arvy-has-admin-bar { padding-top: 32px; }
body.arvy-has-admin-bar .site-nav { top: 32px; }
@media (max-width: 782px) {
  body.arvy-has-admin-bar { padding-top: 46px; }
  body.arvy-has-admin-bar .site-nav { top: 46px; }
}

.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  gap: 8px;
  color: var(--text);
}

.site-nav nav { justify-self: center; }

.brand-logo { width: 24px; height: 24px; flex: 0 0 auto; }
.brand-name { color: var(--text); font-family: var(--font-logo); font-size: 1.78rem; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav-menu-item { display: inline-flex; align-items: center; }
.site-nav .nav-menu-action { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); }
.nav-link { color: var(--text); font-size: 0.95rem; font-weight: 700; transition: color 0.2s ease; }
.nav-link:hover, .nav-link.active, .nav-menu-item.active .nav-link { color: var(--text); }
.nav-menu-separator { display: inline-flex; align-items: center; width: 1px; height: 26px; margin: 0 -6px; list-style: none; pointer-events: none; }
.nav-menu-separator span { display: block; width: 1px; height: 100%; border-radius: 999px; background: linear-gradient(180deg, transparent, var(--border), transparent); }
.menu-action-separator { display: flex; align-items: center; min-height: 18px; padding: 4px 12px; pointer-events: none; }
.menu-action-separator span { display: block; width: 100%; height: 1px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.profile-menu-item, .mobile-profile-menu { position: relative; }
.mobile-profile-menu { display: none; }
.profile-menu summary { list-style: none; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease; }
.profile-menu-toggle:hover, .profile-menu[open] .profile-menu-toggle { border-color: var(--primary); background: rgba(91, 122, 94, 0.08); color: var(--primary); }
.profile-menu-toggle .material-symbols-outlined { font-size: 22px; }
.profile-menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 110; display: grid; gap: 4px; min-width: 180px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); box-shadow: 0 18px 45px rgba(24, 32, 42, 0.12); transform-origin: top right; }
.profile-menu[open]:not(.is-closing) .profile-menu-panel { animation: arvy-menu-open 180ms ease-out both; }
.profile-menu.is-closing[open] .profile-menu-panel { pointer-events: none; animation: arvy-menu-close 160ms ease-in both; }
.profile-menu-user-info { display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 10px 12px 12px; border-bottom: 1px solid var(--border); }
.profile-menu-avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.profile-menu-user-text { display: grid; gap: 2px; min-width: 0; }
.profile-menu-user-text strong { overflow: hidden; color: var(--text); font-size: 0.9rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-user-text small { overflow: hidden; color: var(--muted); font-size: 0.76rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu-organization { overflow: hidden; max-width: 240px; padding: 10px 12px 0; color: var(--primary); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; line-height: 1.3; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.profile-menu-link { display: flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: var(--radius-input); color: var(--text); font-size: 0.87rem; font-weight: 500; text-decoration: none; }
.profile-menu-link:hover, .profile-menu-link.active { background: var(--surface-muted); color: var(--primary); }
.profile-menu-link.switch-back-link { border-bottom: 1px solid var(--border); border-radius: var(--radius-input) var(--radius-input) 0 0; color: var(--primary); font-weight: 700; }
.profile-menu-link.switch-back-link .material-symbols-outlined,
.profile-menu-logout-link .material-symbols-outlined { margin-right: 8px; font-size: 18px; }
.site-hamburger, .mobile-sign-in-link, .mobile-support-toggle { display: none; }
.mobile-support-toggle {
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.mobile-support-toggle:hover,
.mobile-support-toggle:focus-visible {
  border-color: var(--primary);
  background: rgba(91, 122, 94, 0.08);
  color: var(--primary);
  outline: 0;
}
.mobile-support-toggle .material-symbols-outlined { font-size: 20px; }
.site-hamburger .mobile-nav-toggle { display: inline-flex; list-style: none; }
.site-hamburger .mobile-nav-toggle::-webkit-details-marker { display: none; }
.site-hamburger .menu-action.active { color: var(--primary); }
.site-hamburger .hamburger-menu-panel .menu-action .material-symbols-outlined { display: none; }
.site-hamburger .hamburger-menu-panel .menu-action-logout .material-symbols-outlined { display: inline-block; }
.mobile-projects-parent { border-bottom-right-radius: 8px; border-bottom-left-radius: 8px; }
.mobile-projects-parent::after { content: '▾'; margin-left: auto; color: var(--muted); }
.mobile-projects-subnav { display: grid; gap: 3px; margin: -2px 0 6px 14px; padding: 4px 0 4px 10px; border-left: 1px solid var(--border); }
.mobile-projects-subnav-item { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; color: var(--text); text-decoration: none; }
.mobile-projects-subnav-item:hover,
.mobile-projects-subnav-item:focus-visible,
.mobile-projects-subnav-item.current { background: var(--surface-muted); color: var(--primary); outline: 0; }
.mobile-projects-subnav-item span { overflow: hidden; font-size: 0.84rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.mobile-projects-subnav-item small { overflow: hidden; color: var(--muted); font-size: 0.7rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.mobile-projects-empty { margin: 0; padding: 8px 10px; color: var(--muted); font-size: 0.78rem; }

.hero { text-align: center; padding: 24px 0; }
.hero h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 4vw, 3rem); }
.hero-subtitle { margin: 0 0 29px; color: var(--primary); font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.2; }
.landing-shell .intro { max-width: 48ch; margin: 40px auto 50px; font-size: 1.2rem; line-height: 1.65; text-align: center; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-bottom: 32px; }
.hero-render iframe { display: block; width: 100%; height: auto; min-height: 500px; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface-muted); box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1); }
.home-preview-scroll-rail { position: fixed; left: var(--home-preview-scroll-left, 14px); top: var(--home-preview-scroll-top, 76px); z-index: 70; display: grid; place-items: center; width: 34px; height: 112px; border: 1px solid rgba(120, 120, 120, 0.2); border-radius: 999px; background: rgba(246, 246, 246, 0.78); box-shadow: 0 10px 26px rgba(40, 40, 40, 0.12); color: #767676; cursor: ns-resize; opacity: 0; pointer-events: none; touch-action: pan-y; transform: translateX(-4px); transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, border-color 180ms ease; backdrop-filter: blur(8px); }
.home-preview-scroll-rail[hidden] { display: none; }
body.has-home-preview-scroll-rail .home-preview-scroll-rail { opacity: 0.7; pointer-events: auto; transform: translateX(0); }
.home-preview-scroll-rail:hover { border-color: rgba(96, 96, 96, 0.28); background: rgba(255, 255, 255, 0.9); opacity: 0.85; }
.home-preview-scroll-arrow { position: absolute; left: 50%; width: 8px; height: 8px; border: solid #8a8a8a; border-width: 1.5px 1.5px 0 0; }
.home-preview-scroll-arrow-up { top: 14px; transform: translateX(-50%) rotate(-45deg); }
.home-preview-scroll-arrow-down { bottom: 14px; transform: translateX(-50%) rotate(135deg); }
.not-found-shell { display: grid; place-items: center; min-height: calc(100vh - 56px); padding-top: 64px; padding-bottom: 80px; }
.not-found-card { display: grid; grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 56px); width: min(980px, 100%); padding: clamp(28px, 6vw, 64px); border: 1px solid var(--border); border-radius: 32px; background: radial-gradient(circle at 18% 18%, rgba(91, 122, 94, 0.16), transparent 34%), linear-gradient(145deg, #fff, #f6f8f4); box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1); }
.not-found-visual { position: relative; display: grid; place-items: center; min-height: 260px; border: 1px solid rgba(91, 122, 94, 0.16); border-radius: 28px; background: rgba(255, 255, 255, 0.64); color: var(--primary); overflow: hidden; }
.not-found-visual::before { content: ''; position: absolute; width: 170px; height: 170px; border: 28px solid rgba(91, 122, 94, 0.12); border-radius: 999px; }
.not-found-visual .material-symbols-outlined { position: relative; font-size: 74px; }
.not-found-code { position: absolute; left: 18px; top: 16px; color: rgba(91, 122, 94, 0.18); font-size: clamp(3rem, 8vw, 6rem); font-weight: 950; line-height: 1; letter-spacing: -0.08em; }
.not-found-copy { display: grid; justify-items: start; gap: 14px; text-align: left; }
.not-found-copy h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.4rem); letter-spacing: -0.04em; }
.not-found-copy .intro { max-width: 620px; margin: 0; }
.not-found-copy .center-actions { justify-content: flex-start; margin-top: 10px; }
.section { text-align: center; }
.section h1 { margin: 0 0 12px; font-family: var(--font-heading); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.section h2 { margin: 0 0 29px; font-family: var(--font-body); font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: -0.035em; }
.landing-shell .section h2,
.landing-shell .feature-text h2,
.landing-shell .cta-banner h2 {
  position: relative;
  padding-top: 28px;
}
.landing-shell .section h2::before,
.landing-shell .feature-text h2::before,
.landing-shell .cta-banner h2::before {
  content: '';
  position: absolute;
  top: 0;
  width: 54px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 62%, var(--border));
}
.landing-shell .section h2::before,
.landing-shell .cta-banner h2::before {
  left: 50%;
  transform: translateX(-50%);
}
.landing-shell .feature-text h2::before { left: 0; }
.center-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.presentation-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.muted-card { opacity: 0.74; }
.seller-presentation { position: relative; left: 50%; display: grid; gap: 0; width: min(124%, calc(100vw - 32px)); max-width: none; margin-inline: 0; transform: translateX(-50%); }
.seller-presentation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 0; }
.seller-presentation-card { display: grid; align-content: center; min-height: 280px; padding: 42px 28px; border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--card-border)); border-radius: var(--radius-card); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 10%, #ffffff) 0%, color-mix(in srgb, var(--primary) 4%, #ffffff) 46%, #ffffff 100%); box-shadow: var(--card-shadow); text-align: center; transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease; }
.seller-presentation-card:hover { border-color: color-mix(in srgb, var(--primary) 28%, var(--card-border)); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 13%, #ffffff) 0%, color-mix(in srgb, var(--primary) 5%, #ffffff) 50%, #ffffff 100%); box-shadow: var(--card-shadow-hover); }
.seller-card-icon { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 0 auto 16px; color: var(--primary); font-size: 34px; filter: drop-shadow(0 6px 8px rgba(15, 23, 42, 0.16)); }
.seller-presentation-card h3 { margin: 0 0 7px; font-size: clamp(1.18rem, 2vw, 1.32rem); line-height: 1.25; text-align: center; }
.seller-presentation-card p { max-width: 28ch; margin: 0 auto; color: var(--muted); font-size: 0.94rem; line-height: 1.55; text-align: center; }
.examples-gallery-section { position: relative; left: 50%; display: grid; gap: 0; width: min(140%, calc(100vw - 32px)); max-width: none; margin-inline: 0; transform: translateX(-50%); }
.wp-page-shell .examples-gallery-section { left: 50%; width: min(140%, calc(100vw - 32px)); max-width: none; margin-inline: 0; transform: translateX(-50%); }
.examples-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.examples-gallery-card { position: relative; min-height: 300px; margin: 0; border: 1px solid var(--card-border); border-radius: var(--radius-card); background: var(--surface-muted); box-shadow: var(--card-shadow); overflow: hidden; }
.examples-gallery-image { display: block; width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform 0.36s ease, filter 0.36s ease; }
.examples-gallery-card:hover .examples-gallery-image { filter: saturate(1.04); transform: scale(1.08); }
.examples-gallery-card figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, 0.36); border-radius: var(--radius-input); background: rgba(26, 31, 26, 0.56); color: #fff; font-size: 0.78rem; font-weight: 700; line-height: 1.35; text-align: left; backdrop-filter: blur(8px); }
.arvy-examples-grid-empty { display: grid; gap: 12px; place-items: center; min-height: 220px; border: 1px dashed var(--border); border-radius: var(--radius-card); background: var(--surface-muted); color: var(--muted); }

.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }
.feature-text h2 { margin: 0 0 18px; font-family: var(--font-body); font-size: clamp(1.65rem, 2.5vw, 2rem); font-weight: 700; letter-spacing: -0.035em; }
.feature-text p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; margin-bottom: 16px; }
.feature-text ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.feature-text li { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.feature-text li .material-symbols-outlined { flex-shrink: 0; margin-top: 1px; color: var(--primary); font-size: 20px; }
.feature-visual { display: flex; align-items: center; justify-content: center; height: 320px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); color: var(--muted); font-size: 0.85rem; text-align: center; }
.feature-visual .material-symbols-outlined { display: inline-block; margin-bottom: 8px; color: var(--primary); font-size: 48px; opacity: 0.3; }
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.feature-card { padding: 32px 20px; text-align: center; }
.features-grid .feature-card { border: 1px solid var(--card-border); border-radius: var(--radius-card); background: linear-gradient(180deg, #ffffff, #fbfbfa); box-shadow: var(--card-shadow); transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease; }
.feature-card:hover { border-color: color-mix(in srgb, var(--primary) 42%, var(--card-border)); background: linear-gradient(180deg, #fff, #f3f6f1); color: var(--text); box-shadow: var(--card-shadow-hover); }
.feature-card .material-symbols-outlined { display: block; margin-bottom: 14px; color: var(--primary); font-size: 32px; }
.feature-card h3 { margin: 0 0 10px; font-size: clamp(1.25rem, 2.2vw, 1.45rem); line-height: 1.25; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.testimonial { max-width: 640px; margin: 0 auto; text-align: center; }
.testimonial blockquote { margin: 0 0 20px; color: var(--text); font-family: var(--font-heading); font-size: 1.3rem; font-style: italic; line-height: 1.5; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-avatar { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-muted); }
.testimonial-name { font-size: 0.85rem; font-weight: 600; }
.testimonial-role { color: var(--muted); font-size: 0.8rem; }
.section:has(.workflow-grid) { position: relative; left: 50%; width: min(124%, calc(100vw - 32px)); max-width: none; margin-inline: 0; transform: translateX(-50%); }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.workflow-step { display: grid; align-content: center; min-height: 280px; padding: 42px 28px; border: 1px solid var(--card-border); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--card-shadow); text-align: center; transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease; }
.workflow-step:hover { border-color: color-mix(in srgb, var(--primary) 42%, var(--card-border)); background: linear-gradient(180deg, #fff, #fbfdfa); box-shadow: var(--card-shadow-hover); }
.workflow-number { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 auto 14px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 600; }
.workflow-step h3 { margin: 0 0 10px; font-size: clamp(1.25rem, 2.2vw, 1.45rem); line-height: 1.25; }
.workflow-step p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.65; }
.workflow-step .workflow-number { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 auto 14px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 1rem; font-weight: 600; line-height: 1; }
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: stretch; max-width: 820px; margin: 73px auto 0; }
.pricing-card { position: relative; display: flex; flex-direction: column; gap: 0; padding: 34px 32px; border: 1px solid var(--card-border); border-radius: var(--radius-panel); background: var(--surface); box-shadow: var(--pricing-shadow); text-align: left; transition: box-shadow 0.28s ease; }
.pricing-card:hover { box-shadow: var(--pricing-shadow-hover); }
.pricing-grid .pricing-card:last-child { border: 1.5px solid var(--primary); }
.pricing-grid .pricing-card:last-child::after { content: 'Limited launch offer'; position: absolute; top: -12px; left: 32px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--primary); color: #fff; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; line-height: 1.2; text-transform: uppercase; }
.pricing-card::before { content: none; }
.pricing-card h3 { margin: 0; color: var(--text); font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; line-height: 1.2; text-align: left; }
.pricing-card .price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 8px; margin: 10px 0 2px; color: var(--text); font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; text-align: left; }
.pricing-card .price-old { margin-right: 0; color: var(--muted); font-size: 1.15rem; font-weight: 600; text-decoration: line-through; text-decoration-thickness: 2px; opacity: 1; }
.pricing-card .price-current { color: var(--text); }
.pricing-card .price-note { max-width: none; margin: 0 0 20px; color: var(--muted); font-size: 0.88rem; font-weight: 400; line-height: 1.55; text-align: left; }
.pricing-card .limited-seats { display: inline; margin: 0; padding: 0; border-radius: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: none; }
.pricing-card ul { display: flex; flex-direction: column; gap: 11px; align-content: start; width: auto; margin: 6px 0 26px; padding: 0; color: var(--text); font-size: 0.92rem; line-height: 1.5; list-style: none; }
.pricing-card .price + ul { margin-top: 70px; }
.pricing-card li { position: relative; padding-left: 29px; }
.pricing-card li::before { content: '✓'; position: absolute; left: 0; top: 0.03em; display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: var(--radius-pill); color: var(--primary); font-size: 0.9rem; font-weight: 800; line-height: 1; }
.pricing-card .center-actions { justify-content: center; margin-top: auto; }
.pricing-card .wp-block-button__link { padding: 14px 28px; font-size: 1rem; }
.cta-banner { padding: 64px 32px; border: 1px solid var(--border); border-radius: var(--radius-panel); background: var(--surface); text-align: center; }
.cta-banner-ready { position: relative; left: 50%; width: 80vw; max-width: none; margin-inline: 0; transform: translateX(-50%); }
.cta-banner-help { position: relative; left: 50%; width: min(140%, calc(100vw - 32px)); max-width: none; margin-inline: 0; transform: translateX(-50%); }
.cta-banner h2 { margin: 0 0 14px; font-family: var(--font-body); font-size: clamp(1.75rem, 3vw, 2.35rem); font-weight: 700; letter-spacing: -0.035em; }
.cta-banner p { max-width: 480px; margin: 0 auto 28px; color: var(--muted); font-size: 1.02rem; line-height: 1.65; }
.cta-help-card { max-width: 640px; margin: 34px auto 0; padding: 26px 28px; border: 1px solid var(--card-border); border-radius: var(--radius-card); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, #ffffff), #ffffff); box-shadow: var(--card-shadow); }
.cta-help-card h3 { margin: 0 0 8px; font-family: var(--font-body); font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; letter-spacing: -0.025em; }
.cta-help-card p { margin-bottom: 18px; font-size: 0.96rem; }
.faq-section { max-width: 680px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 0; border: 0; background: transparent; color: var(--text); font-family: var(--font-body); font-size: 1rem; font-weight: 600; text-align: left; cursor: pointer; }
.faq-question:hover { color: var(--primary); }
.faq-question .material-symbols-outlined { color: var(--muted); transition: transform 0.3s; }
.faq-item.open .faq-question .material-symbols-outlined { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s, padding 0.3s; }
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 18px; }
.faq-answer p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.75; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 40px 0 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8rem; }
.footer-links { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--primary); }

.dashboard-shell { max-width: 1060px; margin: 0 auto; padding: 48px 32px 80px; }
.dashboard-shell .dashboard-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 32px; padding: 0; }
.dashboard-shell .dashboard-hero h1 { margin: 0 0 6px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.dashboard-shell .dashboard-hero p { margin: 0; color: var(--muted); }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 48px; }
.quick-actions .quick-action-card { display: flex; align-items: center; gap: 14px; padding: 20px; color: var(--text); }
.quick-action-card h3 { margin: 0 0 4px; font-size: 1rem; }
.quick-action-card p { margin: 0; color: var(--muted); font-size: 0.85rem; }
.projects-section { margin-top: 0; }
.projects-section .section-header { margin-bottom: 20px; }
.projects-filter-row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.projects-filter-row .projects-search { flex: 1 1 auto; margin-bottom: 0; }
.projects-search { margin-bottom: 18px; }
.admin-project-filter { flex: 0 0 min(360px, 42%); display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(420px, 100%); min-height: 44px; margin: 0; padding: 0; border: 0; background: var(--surface-muted); }
.admin-project-filter span { display: flex !important; align-items: center; justify-content: center; height: 44px; min-height: 44px !important; padding: 0 10px; border-radius: 10px; font-weight: 800; }
@media (max-width: 900px) {
  .projects-filter-row { display: grid; gap: 12px; }
  .admin-project-filter { width: 100%; }
}
.admin-project-filter::before { display: block !important; top: 0; bottom: 0; left: 0; width: calc((100% - 8px) / 3); }
.admin-project-filter label { border-right: 0 !important; }
.admin-project-filter input:checked + span { background: transparent !important; color: var(--primary) !important; }
.admin-project-filter:has(label:nth-child(2) input:checked)::before { transform: translateX(calc(100% + 4px)); }
.admin-project-filter:has(label:nth-child(3) input:checked)::before { transform: translateX(calc((100% + 4px) * 2)); }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.8rem; }
.project-actions { display: flex; gap: 8px; }

.profile-back-link { justify-self: start; margin-bottom: 24px; }
.profile-summary-heading h2 { margin: 0 0 4px; }
.profile-summary-heading p { margin: 0; color: var(--muted); }
.profile-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.profile-row span:first-child { color: var(--muted); }
.profile-row span:last-child { font-weight: 600; text-align: right; }

.demo-shell { max-width: 1060px; margin: 0 auto; padding: 48px 32px 80px; }
.compact-section { max-width: 680px; margin: 0 auto 24px; }
.demo-embed-live { min-height: 0; margin-bottom: 0; }
.examples-shell { max-width: 1120px; }
.examples-hero { text-align: center; }
.examples-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0; }
.example-card { overflow: hidden; padding: 0; }
.example-thumb { display: grid; place-items: center; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #e7edf5, #f8fafc); color: var(--muted); text-decoration: none; }
.example-thumb img { width: 100%; height: 100%; object-fit: cover; }
.example-thumb .material-symbols-outlined { font-size: 48px; color: var(--primary); opacity: 0.36; }
.example-card-body { display: grid; gap: 10px; padding: 20px; }
.example-card-body h2 { margin: 0; font-size: 1.15rem; line-height: 1.25; }
.example-card-body p { margin: 0; color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.example-kicker { color: var(--primary) !important; font-size: 0.72rem !important; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.examples-guidance-card { display: grid; grid-template-columns: minmax(220px, 0.8fr) 1.2fr; gap: 28px; align-items: start; margin: 40px 0; padding: 32px; }
.examples-guidance-card h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.25; }
.examples-guidance-card ul { display: grid; gap: 12px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.demo-cta-card { padding: 32px; text-align: center; }
.demo-cta-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.demo-cta-card p { margin: 0 0 20px; color: var(--muted); font-size: 0.85rem; }
.design-faq-list { max-width: 780px; margin: 0 auto; }
.faq-article { padding: 22px 0; border-bottom: 1px solid var(--border); }
.faq-article h3 { margin: 0 0 8px; }
.faq-article p { margin: 0; color: var(--muted); line-height: 1.7; }

body:has(.site-nav) .app-shell,
body:has(.site-nav) .stage-shell { min-height: calc(100vh - 56px); }

@media (max-width: 860px) {
  .site-nav { z-index: 3000; display: flex; justify-content: flex-start; gap: 10px; padding: 0 16px; }
  .site-nav .nav-menu-action { position: static; transform: none; }
  .site-nav .nav-links { display: none; }
  .mobile-profile-menu { display: block; margin-left: auto; }
  .site-hamburger { display: block; position: relative; margin-left: auto; }
  .mobile-support-toggle { display: inline-flex; margin-left: auto; }
  .mobile-support-toggle + .site-hamburger { margin-left: 0; }
  .mobile-sign-in-link { display: inline-flex; margin-left: auto; white-space: nowrap; }
  .mobile-sign-in-link + .site-hamburger { margin-left: 0; }
  body.arvy-support-has-mobile-toggle .arvy-support-floating-button { display: none; }
  body.arvy-mobile-nav-open::before { content: ''; position: fixed; inset: 56px 0 0; z-index: 2998; background: rgba(26, 31, 26, 0.52); backdrop-filter: blur(8px); animation: arvy-menu-open 180ms ease-out both; pointer-events: none; }
  .site-hamburger .mobile-nav-toggle { position: relative; z-index: 3001; }
  .site-hamburger .hamburger-menu-panel { top: calc(100% + 8px); z-index: 3002; }
  .brand-logo { width: 28px; height: 28px; }
  .brand-name { font-size: 1.5rem; }
  .hero-render iframe { min-height: 360px; aspect-ratio: 4 / 5; }
  .not-found-shell { min-height: calc(100vh - 56px); padding-top: 32px; padding-bottom: 56px; }
  .not-found-card { grid-template-columns: 1fr; padding: 24px; border-radius: 24px; text-align: center; }
  .not-found-visual { min-height: 190px; }
  .not-found-copy { justify-items: center; text-align: center; }
  .not-found-copy .center-actions { justify-content: center; }
  .presentation-grid.two-up,
  .seller-presentation-grid,
  .feature-split,
  .features-grid,
  .workflow-grid,
  .pricing-grid,
  .quick-actions,
  .examples-grid,
  .examples-gallery-grid,
  .examples-guidance-card,
  .dashboard-shell .dashboard-hero { grid-template-columns: 1fr; }
  .feature-split.reverse { direction: ltr; }
  .seller-presentation { left: auto; width: 100%; margin-inline: 0; transform: none; }
  .seller-presentation-grid { gap: 0; padding: 6px 0; border: 1px solid var(--card-border); border-radius: var(--radius-card); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, #ffffff) 0%, #ffffff 42%, #ffffff 100%); box-shadow: var(--card-shadow); overflow: hidden; }
  .seller-presentation-card,
  .seller-presentation-card:hover { min-height: auto; padding: 30px 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .seller-presentation-card + .seller-presentation-card { position: relative; padding-top: 36px; }
  .seller-presentation-card + .seller-presentation-card::before { content: ''; position: absolute; top: 10px; left: 50%; width: 54px; height: 2px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 62%, var(--border)); transform: translateX(-50%); }
  .examples-gallery-section { width: 100%; margin-inline: 0; transform: none; }
  .examples-gallery-grid { gap: 12px; }
  .examples-gallery-card { min-height: 240px; }
  .landing-shell .features-grid { gap: 0; padding: 6px 0; border: 1px solid var(--card-border); border-radius: var(--radius-card); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, #ffffff) 0%, #ffffff 42%, #ffffff 100%); box-shadow: var(--card-shadow); overflow: hidden; }
  .landing-shell .features-grid .feature-card,
  .landing-shell .features-grid .feature-card:hover { position: relative; padding: 30px 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .landing-shell .features-grid .feature-card + .feature-card { padding-top: 36px; }
  .landing-shell .features-grid .feature-card + .feature-card::before { content: ''; position: absolute; top: 10px; left: 50%; width: 54px; height: 2px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 62%, var(--border)); transform: translateX(-50%); }
  .section:has(.workflow-grid) { left: auto; width: 100%; margin-inline: 0; transform: none; }
  .landing-shell .workflow-grid { gap: 0; padding: 6px 0; border: 1px solid var(--card-border); border-radius: var(--radius-card); background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, #ffffff) 0%, #ffffff 42%, #ffffff 100%); box-shadow: var(--card-shadow); overflow: hidden; }
  .landing-shell .workflow-step,
  .landing-shell .workflow-step:hover { position: relative; min-height: auto; padding: 30px 24px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .landing-shell .workflow-step + .workflow-step { padding-top: 36px; }
  .landing-shell .workflow-step + .workflow-step::before { content: ''; position: absolute; top: 10px; left: 50%; width: 54px; height: 2px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 62%, var(--border)); transform: translateX(-50%); }
  .seller-presentation-card h3,
  .landing-shell .features-grid .feature-card h3,
  .landing-shell .workflow-step h3 { font-size: 1.62rem; }
  .cta-banner-ready,
  .cta-banner-help { left: auto; width: 100%; margin-inline: 0; transform: none; }
  .landing-shell .section h2,
  .landing-shell .feature-text h2,
  .landing-shell .cta-banner h2 { margin-top: 16px; font-size: clamp(1.9rem, 7vw, 2.5rem); }
  .seller-card-icon,
  .landing-shell .features-grid .feature-card .material-symbols-outlined,
  .landing-shell .workflow-step .workflow-number { margin-bottom: 8px; }
  .footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .dashboard-shell,
  .demo-shell { padding: 32px 16px 56px; }
  .demo-frame-wrap { height: 68vh; min-height: 420px; }
}

/* Configurator action bar and advanced settings refinements from /design/configurator.html. */
.project-detail-actions {
  align-items: center;
  gap: 8px;
}

.project-detail-actions .icon-action {
  min-width: 46px;
  min-height: 46px;
}

.project-detail-actions .save-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius-input);
  font-weight: 500;
}

.project-detail-actions .save-indicator .material-symbols-outlined {
  font-size: 18px;
}

.settings-config-card {
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}

.settings-config-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.settings-config-header > .material-symbols-outlined {
  color: var(--primary);
  font-size: 28px;
}

.settings-config-header strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
}

.settings-config-header p {
  margin: 2px 0 0;
}

.settings-config-card label {
  gap: 6px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 500;
}

.settings-config-card input,
.settings-config-card select,
.settings-config-card textarea {
  color: var(--text);
}

.settings-config-card .settings-toggle {
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-input);
}

.settings-config-card .settings-toggle::after {
  content: '';
}

.settings-actions .btn {
  width: fit-content;
}

@media (max-width: 860px) {
  .project-detail-actions .save-indicator {
    justify-content: center;
    min-width: 0;
    min-height: 42px;
    padding: 4px 2px 3px;
    background: transparent;
    font-size: 0.58rem;
  }

  .project-detail-actions .save-indicator .material-symbols-outlined {
    font-size: 18px;
  }
}

/* Strict configurator parity with /design/configurator.html containers and arrangements. */
body:has(.site-nav) .app-shell {
  display: flex;
  height: calc(100vh - 56px);
  min-height: calc(100vh - 56px);
  overflow: hidden;
  gap: 0;
  padding: 0;
  background: var(--body-bg);
}

body:has(.site-nav) .configurator-panel {
  width: 380px;
  flex: 0 0 380px;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  backdrop-filter: none;
}

body:has(.site-nav) .preview-panel {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--surface-muted);
  box-shadow: none;
}

body:has(.site-nav) .three-preview {
  height: 100%;
  min-height: calc(100vh - 56px);
  background: var(--surface-muted);
}

body:has(.site-nav) .configurator-header {
  display: block;
  margin: 0;
  padding: 0 0 12px;
}

body:has(.site-nav) .project-heading {
  display: block;
  margin: 0 0 12px;
  padding: 10px 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

body:has(.site-nav) .project-title-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

body:has(.site-nav) .project-title-brand {
  display: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-input);
}

body:has(.site-nav) .project-heading-label {
  display: block;
  margin-bottom: 2px;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

body:has(.site-nav) .project-name-row {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}

body:has(.site-nav) .project-name {
  display: block;
  margin-bottom: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.2;
}

body:has(.site-nav) .header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 32px 12px;
}

body:has(.site-nav) .project-detail-actions .icon-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--muted);
}

body:has(.site-nav) .project-detail-actions .icon-action:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: none;
}

body:has(.site-nav) .project-detail-actions .icon-action small {
  display: none;
}

body:has(.site-nav) .project-detail-actions .icon-action .material-symbols-outlined,
body:has(.site-nav) .project-title-menu .icon-action .material-symbols-outlined {
  font-size: 18px;
}

body:has(.site-nav) .project-title-view {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  margin-left: auto;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--primary);
}

body:has(.site-nav) .project-title-view .material-symbols-outlined {
  font-size: 23px;
}

body:has(.site-nav) .project-title-menu {
  display: none;
  margin-left: 0;
}

body:has(.site-nav) .project-title-menu .icon-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--muted);
}

body:has(.site-nav) .project-title-menu .icon-action:hover {
  border-color: var(--primary);
  color: var(--primary);
}

body:has(.site-nav) .project-title-menu .icon-action small {
  display: none;
}

body:has(.site-nav) .project-title-menu .hamburger-menu-panel {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 8px);
  min-width: 220px;
}

body:has(.site-nav) .project-detail-actions .primary-action {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

body:has(.site-nav) .project-detail-actions #generatePage:not(.dirty):not(.saving) {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

body:has(.site-nav) .project-detail-actions #generatePage.dirty,
body:has(.site-nav) .project-detail-actions #generatePage.saving {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}

body:has(.site-nav) #generatePage {
  margin-left: auto;
}

body:has(.site-nav) .project-detail-actions #viewProject {
  margin-left: 0;
}

body:has(.site-nav) .project-detail-actions .save-indicator {
  margin-left: auto;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

body:has(.site-nav) .project-detail-actions .save-indicator .material-symbols-outlined {
  color: var(--primary);
  font-size: 14px;
}

body:has(.site-nav) .config-form {
  display: block;
  margin-top: 0;
}

body:has(.site-nav) .tabs {
  display: flex;
  grid-template-columns: none;
  gap: 0;
  margin-top: 8px;
  padding: 0 24px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

body:has(.site-nav) .tab-button {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  min-height: 0;
  padding: 10px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  box-shadow: none;
}

body:has(.site-nav) .tab-button:hover {
  background: none;
  color: var(--text);
  transform: none;
}

body:has(.site-nav) .tab-button.active {
  border-bottom-color: var(--primary) !important;
  background: none !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

body:has(.site-nav) .tab-button.active::after {
  display: none;
}

body:has(.site-nav) .tab-button .material-symbols-outlined {
  margin-right: 4px;
  font-size: 18px;
}

body:has(.site-nav) .tab-panel {
  flex-direction: column;
  gap: 22px;
  margin-top: 0;
  padding: 20px 24px 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:has(.site-nav) .tab-panel.active {
  display: flex;
}

body:has(.site-nav) .inline-section-label,
body:has(.site-nav) .leg-lengths > strong,
body:has(.site-nav) .glass-panels > strong,
body:has(.site-nav) .shade-panels > strong {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body:has(.site-nav) .inline-section-label::before,
body:has(.site-nav) .leg-lengths > strong::before,
body:has(.site-nav) .glass-panels > strong::before,
body:has(.site-nav) .shade-panels > strong::before {
  display: none;
}

body:has(.site-nav) .dimension-grid,
body:has(.site-nav) .compact-grid {
  gap: 12px;
}

body:has(.site-nav) .dimension-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 5px;
}

body:has(.site-nav) .inline-field-label {
  min-width: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

body:has(.site-nav) input,
body:has(.site-nav) select,
body:has(.site-nav) textarea {
  border-radius: var(--radius-input);
}

body:has(.site-nav) .toggle-group,
body:has(.site-nav) .glass-face-tabs {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  overflow: hidden;
  padding: 0;
}

body:has(.site-nav) .toggle-group::before {
  display: none;
}

body:has(.site-nav) .toggle-group label,
body:has(.site-nav) .glass-face-tab {
  flex: 1;
  border-right: 1px solid var(--border);
}

body:has(.site-nav) .toggle-group label:last-child,
body:has(.site-nav) .glass-face-tab:last-child {
  border-right: 0;
}

body:has(.site-nav) .toggle-group span,
body:has(.site-nav) .glass-face-tab {
  min-height: 34px;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

body:has(.site-nav) .toggle-group input:checked + span,
body:has(.site-nav) .glass-face-tab.active {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body:has(.site-nav) .checkbox-row {
  justify-content: flex-start;
  min-height: 34px;
  padding: 6px 0;
}

body:has(.site-nav) .checkbox-row span {
  color: #2a2d2a;
  font-size: 0.9rem;
  font-weight: 500;
}

body:has(.site-nav) .general-color-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

body:has(.site-nav) .general-color-field {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

body:has(.site-nav) .catalog-color-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow: visible;
}

body:has(.site-nav) .catalog-color-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
}

body:has(.site-nav) .builder-card,
body:has(.site-nav) .glass-panel-card,
body:has(.site-nav) .plan-row {
  border-radius: var(--radius-card);
  background: var(--surface);
}

body:has(.site-nav) .settings-panel {
  margin: 0;
  padding: 0 24px 24px;
}

@media (max-width: 860px) {
  body:has(.site-nav) .app-shell {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
  }

  body:has(.site-nav) .configurator-panel {
    display: contents;
    width: auto;
    flex: none;
    border-right: 0;
  }

  body:has(.site-nav) .configurator-header {
    top: 64px;
  }

  body.arvy-has-admin-bar:has(.site-nav) .configurator-header {
    top: 110px;
  }

  body:has(.site-nav) .project-heading {
    padding-right: 8px;
    padding-left: 8px;
  }

  body:has(.site-nav) .project-title-brand,
  body:has(.site-nav) .project-title-menu,
  body:has(.site-nav) .project-actions-menu {
    display: none;
  }

  body:has(.site-nav) .preview-panel {
    position: sticky;
    min-height: 100vh;
    min-height: 100dvh;
  }

  body:has(.site-nav) .three-preview {
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* Feature flags must win over component display rules. */
[hidden],
body:has(.site-nav) [hidden],
.stage-alignment-settings[hidden],
body:has(.site-nav) .stage-alignment-settings[hidden] {
  display: none !important;
}

/* Icon-enhanced louver toggle options. */
.louver-controls .toggle-group span {
  gap: 5px;
}

.louver-controls .toggle-group .material-symbols-outlined {
  font-size: 17px;
  line-height: 1;
}

/* Louver controls: text label inline with icon-only toggle buttons. */
.louver-toggle-row {
  display: grid;
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.louver-toggle-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.louver-controls .icon-toggle-group span {
  min-height: 34px;
  padding: 0 12px;
}

.louver-controls .icon-toggle-group .material-symbols-outlined {
  margin: 0;
  font-size: 20px;
}

/* Compact icon-only louver controls. */
.louver-toggle-row {
  grid-template-columns: auto max-content;
  justify-content: start;
  gap: 8px;
}

.louver-controls .icon-toggle-group {
  width: auto;
  min-width: 76px;
  flex: 0 0 auto;
}

body:has(.site-nav) .louver-controls .icon-toggle-group label {
  flex: 0 0 38px;
  width: 38px;
}

.louver-controls .icon-toggle-group span,
body:has(.site-nav) .louver-controls .icon-toggle-group span {
  width: 38px;
  min-width: 38px;
  min-height: 32px;
  padding: 0;
}

.louver-controls .icon-toggle-group .material-symbols-outlined {
  font-size: 19px;
}

/* Final compact louver icon row: no text labels, visible selected icons. */
.louver-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.louver-toggle-row {
  display: block;
}

.louver-toggle-label {
  display: none;
}

.louver-controls .icon-toggle-group .material-symbols-outlined,
body:has(.site-nav) .louver-controls .icon-toggle-group .material-symbols-outlined {
  color: currentColor !important;
}

.louver-controls .icon-toggle-group input:checked + span,
body:has(.site-nav) .louver-controls .icon-toggle-group input:checked + span {
  background: var(--primary) !important;
  color: #fff !important;
}

.louver-controls .icon-toggle-group input:not(:checked) + span,
body:has(.site-nav) .louver-controls .icon-toggle-group input:not(:checked) + span {
  color: var(--muted) !important;
}

/* Custom louver open/closed icons: outlined slats vs solid closed panel. */
.louver-state-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 16px;
  border: 1.8px solid currentColor;
  border-radius: 3px;
  color: currentColor;
}

.louver-state-icon-open::before,
.louver-state-icon-open::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  height: 1.8px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(-24deg);
  transform-origin: center;
}

.louver-state-icon-open::before { top: 4px; }
.louver-state-icon-open::after { bottom: 4px; }

.louver-state-icon-closed {
  background: currentColor;
  box-shadow: inset 0 0 0 2px var(--surface);
}

.louver-state-icon-closed::before,
.louver-state-icon-closed::after {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  height: 1px;
  background: var(--surface);
  opacity: 0.9;
}

.louver-state-icon-closed::before { top: 5px; }
.louver-state-icon-closed::after { bottom: 5px; }

.louver-controls .icon-toggle-group input:checked + span .louver-state-icon-closed {
  box-shadow: inset 0 0 0 2px var(--primary);
}

.louver-controls .icon-toggle-group input:checked + span .louver-state-icon-closed::before,
.louver-controls .icon-toggle-group input:checked + span .louver-state-icon-closed::after {
  background: var(--primary);
}

/* Open uses Material table_rows_narrow; closed fills the gaps from that visual. */
.louver-controls .icon-toggle-group .material-symbols-outlined {
  font-size: 21px;
  color: currentColor !important;
}

.louver-state-icon-closed {
  width: 21px;
  height: 16px;
  border-width: 1.6px;
  border-radius: 3px;
  background:
    linear-gradient(currentColor, currentColor) 3px 3px / calc(100% - 6px) 2px no-repeat,
    linear-gradient(currentColor, currentColor) 3px 7px / calc(100% - 6px) 2px no-repeat,
    linear-gradient(currentColor, currentColor) 3px 11px / calc(100% - 6px) 2px no-repeat,
    currentColor;
  box-shadow: inset 0 0 0 2px var(--surface);
}

.louver-state-icon-closed::before,
.louver-state-icon-closed::after {
  display: none;
}

.louver-controls .icon-toggle-group input:checked + span .louver-state-icon-closed {
  box-shadow: inset 0 0 0 2px var(--primary);
}

/* Matched SVG louver state icons. */
.louver-svg-icon {
  display: block;
  width: 24px;
  height: 18px;
  color: currentColor;
}

.louver-controls .icon-toggle-group input:checked + span {
  --louver-closed-line-color: var(--primary);
}

.louver-controls .icon-toggle-group input:not(:checked) + span {
  --louver-closed-line-color: var(--surface);
}

/* Louver open icon slats use the border color, including selected state. */
.louver-controls .icon-toggle-group {
  --louver-line-color: var(--border);
}

.louver-controls .icon-toggle-group input:checked + span {
  --louver-line-color: var(--border);
}

/* Closed louver separators use border color; open slats keep current color. */
.louver-controls .icon-toggle-group {
  --louver-line-color: var(--border);
}

/* Border-only selected style for compact icon toggles. */
.louver-controls .icon-toggle-group,
body:has(.site-nav) .louver-controls .icon-toggle-group {
  gap: 4px;
  border: 0;
  background: transparent;
  overflow: visible;
}

.louver-controls .icon-toggle-group label,
body:has(.site-nav) .louver-controls .icon-toggle-group label {
  border: 0;
}

.louver-controls .icon-toggle-group span,
body:has(.site-nav) .louver-controls .icon-toggle-group span {
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface) !important;
  color: var(--muted) !important;
}

.louver-controls .icon-toggle-group input:checked + span,
body:has(.site-nav) .louver-controls .icon-toggle-group input:checked + span {
  border-color: var(--primary) !important;
  background: var(--surface) !important;
  color: var(--primary) !important;
  box-shadow: inset 0 0 0 1px var(--primary);
}

/* Stronger selected border for compact icon toggles. */
.louver-controls .icon-toggle-group input:checked + span,
body:has(.site-nav) .louver-controls .icon-toggle-group input:checked + span {
  border-width: 2px;
  box-shadow: none;
}

/* Normalize all four louver icon buttons to identical dimensions and borders. */
.louver-controls .icon-toggle-group,
body:has(.site-nav) .louver-controls .icon-toggle-group {
  display: inline-grid;
  grid-template-columns: repeat(2, 40px);
  gap: 4px;
  min-width: 84px;
  width: 84px;
}

.louver-controls .icon-toggle-group label,
body:has(.site-nav) .louver-controls .icon-toggle-group label {
  display: block;
  width: 40px;
  height: 34px;
  flex: none;
  border: 0 !important;
}

.louver-controls .icon-toggle-group span,
body:has(.site-nav) .louver-controls .icon-toggle-group span {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-input) !important;
}

.louver-controls .icon-toggle-group input:checked + span,
body:has(.site-nav) .louver-controls .icon-toggle-group input:checked + span {
  border: 2px solid var(--primary) !important;
}

.louver-controls .icon-toggle-group .material-symbols-outlined,
.louver-controls .icon-toggle-group .louver-svg-icon,
body:has(.site-nav) .louver-controls .icon-toggle-group .material-symbols-outlined,
body:has(.site-nav) .louver-controls .icon-toggle-group .louver-svg-icon {
  width: 22px;
  height: 18px;
  font-size: 21px;
}

/* Larger square louver toggles with group separator and centered SVGs. */
.louver-controls {
  align-items: center;
  gap: 12px;
}

.louver-toggle-row + .louver-toggle-row {
  position: relative;
  padding-left: 13px;
}

.louver-toggle-row + .louver-toggle-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: var(--border);
}

.louver-controls .icon-toggle-group,
body:has(.site-nav) .louver-controls .icon-toggle-group {
  grid-template-columns: repeat(2, 52px);
  min-width: 108px;
  width: 108px;
}

.louver-controls .icon-toggle-group label,
body:has(.site-nav) .louver-controls .icon-toggle-group label {
  width: 52px;
  height: 52px;
}

.louver-controls .icon-toggle-group span,
body:has(.site-nav) .louver-controls .icon-toggle-group span {
  width: 52px;
  min-width: 52px;
  height: 52px;
  min-height: 52px;
  align-items: center;
  justify-items: center;
}

.louver-controls .icon-toggle-group .louver-svg-icon,
body:has(.site-nav) .louver-controls .icon-toggle-group .louver-svg-icon {
  width: 31px;
  height: 24px;
}

.louver-svg-icon-rotated {
  transform: rotate(90deg);
  transform-origin: center;
}

/* Closed louver icon is same SVG as open, only with filled background. */
.louver-controls .icon-toggle-group {
  --louver-closed-bg: rgba(62, 63, 62, 0.18);
}

.louver-controls .icon-toggle-group input:checked + span {
  --louver-closed-bg: rgba(91, 122, 94, 0.16);
}

/* Closed louver fill is same color family as open, only softly tinted. */
.louver-controls .icon-toggle-group,
.louver-controls .icon-toggle-group input:checked + span {
  --louver-closed-bg: currentColor;
}

/* Slightly smaller compact louver toggle buttons. */
.louver-controls .icon-toggle-group,
body:has(.site-nav) .louver-controls .icon-toggle-group {
  grid-template-columns: repeat(2, 47px);
  min-width: 98px;
  width: 98px;
}

.louver-controls .icon-toggle-group label,
body:has(.site-nav) .louver-controls .icon-toggle-group label,
.louver-controls .icon-toggle-group span,
body:has(.site-nav) .louver-controls .icon-toggle-group span {
  width: 47px;
  min-width: 47px;
  height: 47px;
  min-height: 47px;
}

.louver-controls .icon-toggle-group .louver-svg-icon,
body:has(.site-nav) .louver-controls .icon-toggle-group .louver-svg-icon {
  width: 28px;
  height: 22px;
}

/* Fine tune louver toggle buttons 5% smaller. */
.louver-controls .icon-toggle-group,
body:has(.site-nav) .louver-controls .icon-toggle-group {
  grid-template-columns: repeat(2, 45px);
  min-width: 94px;
  width: 94px;
}

.louver-controls .icon-toggle-group label,
body:has(.site-nav) .louver-controls .icon-toggle-group label,
.louver-controls .icon-toggle-group span,
body:has(.site-nav) .louver-controls .icon-toggle-group span {
  width: 45px;
  min-width: 45px;
  height: 45px;
  min-height: 45px;
}

.louver-controls .icon-toggle-group .louver-svg-icon,
body:has(.site-nav) .louver-controls .icon-toggle-group .louver-svg-icon {
  width: 27px;
  height: 21px;
}

/* Center louver toggle groups within their section. */
.louver-controls {
  justify-content: center;
}

/* Auto-rotate sits at the bottom of General with the design's subtle separator. */
.preview-rotate-toggle {
  margin-top: 4px;
  padding-top: 18px !important;
  border-top: 1px solid var(--border);
}

/* Centered half-width separator for auto-rotate row. */
.preview-rotate-toggle {
  position: relative;
  border-top: 0 !important;
}

.preview-rotate-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

/* Centered half-width separators before configurator section headings. */
body:has(.site-nav) .tab-panel > * + * .inline-section-label,
body:has(.site-nav) .tab-panel > * + * > strong {
  position: relative;
  padding-top: 18px;
}

body:has(.site-nav) .tab-panel > * + * .inline-section-label::before,
body:has(.site-nav) .tab-panel > * + * > strong::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  display: block;
  width: 50%;
  height: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

/* Section heading centered with separator after the heading. */
body:has(.site-nav) .tab-panel > * + * .inline-section-label,
body:has(.site-nav) .tab-panel > * + * > strong {
  padding-top: 0;
  padding-bottom: 14px;
  text-align: center;
}

body:has(.site-nav) .tab-panel > * + * .inline-section-label::before,
body:has(.site-nav) .tab-panel > * + * > strong::before {
  top: auto;
  bottom: 0;
}

/* Extra breathing room before centered section headers. */
body:has(.site-nav) .tab-panel > * + * .inline-section-label,
body:has(.site-nav) .tab-panel > * + * > strong {
  margin-top: 10px;
}

/* Keep every configurator section header centered consistently. */
body:has(.site-nav) .tab-panel .inline-section-label,
body:has(.site-nav) .tab-panel .leg-lengths > strong,
body:has(.site-nav) .tab-panel .glass-panels > strong,
body:has(.site-nav) .tab-panel .shade-panels > strong {
  text-align: center;
}

/* Center full toggle controls under centered section headers. */
body:has(.site-nav) .louver-controls,
body:has(.site-nav) .color-mode-toggle,
body:has(.site-nav) .stage-mode-toggle,
body:has(.site-nav) .glass-face-tabs {
  margin-left: auto;
  margin-right: auto;
}

body:has(.site-nav) .color-mode-toggle,
body:has(.site-nav) .stage-mode-toggle {
  width: min(260px, 100%);
}

/* Compact color controls: label + small picker + presets on one line per color row. */
body:has(.site-nav) .general-color-list,
body:has(.site-nav) .shade-panels {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
}

body:has(.site-nav) .general-colors .general-color-list {
  margin-top: 14px;
}

body:has(.site-nav) .general-color-field,
body:has(.site-nav) .shade-panels > .general-color-field {
  display: grid;
  grid-template-columns: 58px 24px;
  align-items: center;
  gap: 8px;
  margin: 0;
  white-space: nowrap;
}

body:has(.site-nav) .general-color-field input[type="color"],
body:has(.site-nav) .shade-panels input[type="color"] {
  width: 24px;
  min-width: 24px;
  height: 24px;
  padding: 2px;
  border-radius: 5px;
}

body:has(.site-nav) .catalog-color-presets {
  min-width: 0;
  align-items: center;
  gap: 4px;
}

body:has(.site-nav) .catalog-color-button {
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-width: 1px;
}

body:has(.site-nav) .stage-color-list {
  grid-template-columns: max-content max-content max-content;
  justify-content: center;
  align-items: center;
  justify-items: center;
  gap: 7px 5px;
  overflow: hidden;
}

body:has(.site-nav) .stage-color-list .checkbox-row {
  gap: 5px;
  min-height: 30px;
  padding: 0;
  white-space: nowrap;
}

body:has(.site-nav) .stage-color-list .checkbox-row input[type="checkbox"] {
  width: 34px;
  min-width: 34px;
  height: 20px;
}

body:has(.site-nav) .stage-color-list .checkbox-row input[type="checkbox"]::after {
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
}

body:has(.site-nav) .stage-color-list .checkbox-row input[type="checkbox"]:checked::after {
  transform: translateX(14px);
}

body:has(.site-nav) .stage-color-list .checkbox-row input[type="checkbox"]:checked:active::after {
  transform: translateX(11px);
}

body:has(.site-nav) .stage-color-list .checkbox-row span {
  font-size: 0.82rem;
}

body:has(.site-nav) .stage-color-list .catalog-color-presets {
  display: none;
}

body:has(.site-nav) .stage-color-list .general-color-field {
  grid-template-columns: 30px;
  padding-left: 6px;
  border-left: 1px solid var(--border);
}

body:has(.site-nav) .stage-color-list .general-color-field span {
  display: none;
}

body:has(.site-nav) .stage-color-list .general-color-field input[type="color"],
body:has(.site-nav) .stage-color-list .texture-choice-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  cursor: pointer;
}

body:has(.site-nav) #basicStageWallHiddenRow { grid-column: 1; grid-row: 1; }
body:has(.site-nav) #stageWallColorRow { grid-column: 2; grid-row: 1; }
body:has(.site-nav) #stageWallTextureRow { grid-column: 3; grid-row: 1; }
body:has(.site-nav) #stageWallTextureContrastRow { grid-column: 1 / -1; grid-row: 2; }
body:has(.site-nav) #basicStageFloorHiddenRow { grid-column: 1; grid-row: 3; }
body:has(.site-nav) #basicStageFloorColorRow { grid-column: 2; grid-row: 3; }
body:has(.site-nav) #basicStageFloorTextureRow { grid-column: 3; grid-row: 3; }
body:has(.site-nav) #basicStageFloorTextureContrastRow { grid-column: 1 / -1; grid-row: 4; }
body:has(.site-nav) .stage-color-list .stage-texture-contrast-field { width: 100%; grid-template-columns: max-content minmax(90px, 1fr) max-content; }

body:has(.site-nav) .stage-color-list .texture-field {
  justify-self: start;
}

body:has(.site-nav) .shade-panels > .glass-face-tabs,
body:has(.site-nav) .shade-panels > .glass-panel-list {
  grid-column: 1 / -1;
}

body:has(.site-nav) .shade-panels > .glass-face-tabs {
  margin-top: 14px;
}

body:has(.site-nav) .config-form,
body:has(.site-nav) .tab-panel.active,
body:has(.site-nav) .glass-panels,
body:has(.site-nav) .glass-panel-list,
body:has(.site-nav) .glass-panel-card.active {
  min-height: 0;
}

body:has(.site-nav) .config-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

body:has(.site-nav) .tab-panel.active {
  flex: 1 1 auto;
}

body:has(.site-nav) .glass-panels,
body:has(.site-nav) .glass-panel-card.active {
  flex: 0 1 auto;
}

body:has(.site-nav) .glass-panels {
  align-content: start;
}

body:has(.site-nav) .glass-face-tabs {
  align-self: start;
}

body:has(.site-nav) .glass-panel-list {
  flex: 0 1 auto;
  max-height: min(420px, calc(100vh - 320px));
  overflow-y: auto;
}

body:has(.site-nav) .glass-slice-list {
  max-height: min(300px, calc(100vh - 440px));
  min-height: 0;
  overflow-y: auto;
}

/* Configurator desktop tabs keep the standard inline app layout. */
body:has(.site-nav) .tabs {
  justify-content: space-between;
  margin-top: 14px;
}

body:has(.site-nav) .tab-button {
  display: inline-grid;
  grid-template-rows: 1fr auto;
  flex: 1 1 0;
  justify-items: center;
  align-items: stretch;
  gap: 3px;
  min-height: 54px;
  padding: 7px 4px 8px;
  text-align: center;
}

body:has(.site-nav) .tab-button .material-symbols-outlined {
  margin-right: 0;
  font-size: 22px;
  line-height: 1;
}

body:has(.site-nav) .tab-poles-icon {
  margin-right: 0;
}

body:has(.site-nav) .tab-button span:last-child {
  display: block;
  align-self: end;
  justify-self: center;
  font-size: 0.8rem;
  line-height: 1.1;
}

/* Disable hover motion/effects on toggle controls. */
.toggle-group span:hover,
body:has(.site-nav) .toggle-group span:hover,
.checkbox-row input[type="checkbox"]:hover,
body:has(.site-nav) .checkbox-row input[type="checkbox"]:hover,
.settings-toggle:hover,
body:has(.site-nav) .settings-toggle:hover {
  transform: none !important;
  box-shadow: none !important;
}

.toggle-group span:hover,
body:has(.site-nav) .toggle-group span:hover {
  color: inherit;
}

.mobile-tab-close-button {
  display: none;
}

@keyframes mobileTabPanelFadeIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Mobile configurator tabs keep their bottom-sheet chrome despite desktop site-nav tab overrides. */
@media (max-width: 860px) {
  body:has(.site-nav) .tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    margin: 0;
    padding: 5px;
    border: 1px solid rgba(217, 224, 234, 0.9);
    border-radius: 18px;
    background: rgba(245, 247, 251, 0.96);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(14px);
  }

  body:has(.site-nav).mobile-inline-tab-open .tabs {
    border-top-color: rgba(217, 224, 234, 0.55);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
  }

  body:has(.site-nav) .tab-button {
    flex: initial;
    min-height: 42px;
    gap: 1px;
    padding: 0 2px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    font-size: 0.68rem;
    line-height: 1;
  }

  body:has(.site-nav) .tab-button.active {
    background: var(--surface) !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.11) !important;
  }

  body:has(.site-nav) .tab-button.active::after {
    display: block;
  }

  body:has(.site-nav) .mobile-inline-tab-overlay {
    opacity: 0;
    pointer-events: none;
    transition: none;
  }

  body:has(.site-nav) .mobile-inline-tab-overlay.visible {
    opacity: 0;
    pointer-events: auto;
  }

  body:has(.site-nav) .tab-panel {
    position: fixed;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(217, 224, 234, 0.9);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.16);
    transform: translate3d(0, 0, 0);
    backdrop-filter: blur(14px);
    will-change: opacity, transform;
    transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1), transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  body:has(.site-nav) .tab-panel.active {
    display: grid;
    animation: mobileTabPanelFadeIn 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  body:has(.site-nav) .mobile-tab-close-button {
    position: sticky;
    top: -6px;
    justify-self: end;
    align-self: start;
    z-index: 7;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin: -48px -4px 14px auto;
    border: 1px solid rgba(217, 224, 234, 0.9);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.96);
    color: #0f172a;
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    cursor: pointer;
  }

  body:has(.site-nav) .mobile-tab-close-button:hover {
    background: #fff;
  }

  body:has(.site-nav) .tab-panel.closing {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    animation: none;
    pointer-events: none;
  }
}

/* WordPress authentication pages: login, password reset, registration, and confirmations. */
body.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px 18px;
  background:
    radial-gradient(circle at top left, rgba(91, 122, 94, 0.14), transparent 32rem),
    linear-gradient(135deg, #fbfaf6 0%, #f3f5ef 46%, #ffffff 100%);
  color: var(--text);
  font-family: var(--font-body);
}

body.login #login {
  width: min(420px, 100%);
  padding: 0;
}

body.login h1 {
  margin: 0 0 18px;
  text-align: center;
}

body.login h1 a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  height: auto;
  min-height: 52px;
  margin: 0 auto;
  padding: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-logo);
  font-size: 0;
  line-height: 1;
  text-indent: 0;
  text-decoration: none;
  letter-spacing: 0.02em;
}

body.login h1 a::before {
  content: '';
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='28' viewBox='0 -960 960 960' width='28'%3E%3Cpath fill='%235b7a5e' d='M440-181 240-296q-19-11-29.5-29T200-365v-230q0-22 10.5-40t29.5-29l200-115q19-11 40-11t40 11l200 115q19 11 29.5 29t10.5 40v230q0 22-10.5 40T720-296L520-181q-19 11-40 11t-40-11Zm0-92v-184l-160-93v185l160 92Zm80 0 160-92v-185l-160 93v184ZM480-526l158-93-158-91-158 91 158 93Z'/%3E%3Cpath fill='%235b7a5e' d='M80-680v-120q0-33 23.5-56.5T160-880h120v80H160v120H80ZM280-80H160q-33 0-56.5-23.5T80-160v-120h80v120h120v80Zm400 0v-80h120v-120h80v120q0 33-23.5 56.5T800-80H680Zm120-600v-120H680v-80h120q33 0 56.5 23.5T880-800v120h-80Z'/%3E%3C/svg%3E");
}

body.login h1 a::after {
  content: 'Arvy';
  color: var(--text);
  font-family: var(--font-logo);
  font-size: 2.3rem;
  line-height: 1;
}

body.login .arvy-login-intro {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0 0 14px;
  padding: 16px 18px;
  border: 1px solid rgba(91, 122, 94, 0.16);
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  text-align: center;
  box-shadow: 0 18px 50px rgba(24, 32, 42, 0.08);
}


body.login form {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 28px;
  border: 1px solid rgba(220, 224, 218, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(24, 32, 42, 0.14);
}

body.login form p,
body.login .user-pass-wrap {
  margin: 0;
}

body.login .cf-turnstile {
  display: flex;
  justify-content: center;
  justify-self: stretch;
  max-width: 100%;
  margin: 0 auto !important;
  overflow: hidden;
}

body.login [class^='cf-turnstile-br'] {
  display: none;
}

body.login .wp-pwd {
  position: relative;
  display: block;
}

body.login label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 850;
}

body.login form .input,
body.login input[type='text'],
body.login input[type='password'],
body.login input[type='email'],
body.login input[type='tel'],
body.login input[type='url'],
body.login select,
body.login textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 24px;
  box-shadow: none;
  transform: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.login .wp-pwd input[type='password'],
body.login .wp-pwd input[type='text'] {
  padding-right: 48px;
}

body.login form .input:focus,
body.login input[type='text']:focus,
body.login input[type='password']:focus,
body.login input[type='email']:focus,
body.login input[type='tel']:focus,
body.login input[type='url']:focus,
body.login select:focus,
body.login textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 122, 94, 0.12);
  outline: 0;
  transform: none;
}

body.login textarea {
  min-height: 86px;
  resize: vertical;
}

body.login select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 21px, calc(100% - 12px) 21px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

body.login .arvy-auth-field {
  display: grid;
  gap: 7px;
}

body.login .arvy-auth-checkbox-field label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

body.login .arvy-auth-checkbox-field input[type='checkbox'] {
  margin-top: 2px;
}

body.login .arvy-auth-checkbox-field a {
  font-weight: 850;
}

body.login .forgetmenot {
  display: flex;
  float: none;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 36px;
  margin: 0;
}

body.login .forgetmenot label {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 18px;
}

body.login input[type='checkbox'] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: 0;
  border-color: var(--border);
  border-radius: 5px;
  box-shadow: none;
}

body.login input[type='checkbox']:checked::before {
  content: '✓';
  width: 16px;
  margin: -2px 0 0 1px;
  color: var(--primary);
  font-size: 16px;
  line-height: 1;
}

body.login .submit,
body.login .login-submit {
  margin: 0;
  padding: 0;
}

body.login .button-primary {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-input);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 850;
  text-shadow: none;
  box-shadow: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

body.login #nav,
body.login #backtoblog,
body.login .privacy-policy-page-link {
  margin: 16px 0 0;
  padding: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.84rem;
}

body.login #nav a,
body.login #backtoblog a,
body.login .privacy-policy-page-link a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login .privacy-policy-page-link a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

body.login .message,
body.login .notice,
body.login #login_error {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(91, 122, 94, 0.2);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-input);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(24, 32, 42, 0.08);
}

body.login #login_error {
  border-color: rgba(185, 28, 28, 0.18);
  border-left-color: #b91c1c;
}

body.login .wp-hide-pw {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  min-height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  transform: none;
}

body.login .wp-hide-pw:focus {
  border: 0;
  box-shadow: none;
  outline: 0;
  transform: none;
}

body.login .language-switcher {
  margin-top: 18px;
  text-align: center;
}

body.login .language-switcher select {
  min-height: 40px;
  border-color: var(--border);
  border-radius: var(--radius-input);
  color: var(--text);
  font-family: var(--font-body);
}

@media (max-width: 480px) {
  body.login {
    padding: 18px 12px;
  }

  body.login form {
    padding: 22px 18px;
    border-radius: 18px;
  }
}

/* Contact / Ninja Forms layout */
.contact-hero {
  margin-bottom: 36px;
}

.contact-options,
.contact-options > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto 28px;
}

.contact-options > .wp-block-group__inner-container {
  width: 100%;
}

.contact-option-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  background: linear-gradient(145deg, #fff, #f7f9f5);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  text-align: center;
}

.contact-option-card,
.contact-option-card > .wp-block-group__inner-container {
  display: grid;
  gap: 12px;
}

.contact-option-card > .wp-block-group__inner-container {
  align-content: start;
}

.contact-option-card .material-symbols-outlined {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 2px;
  border-radius: 999px;
  background: rgba(91, 122, 94, 0.12);
  color: var(--primary);
  font-size: 24px;
}

.contact-option-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.45rem);
}

.contact-option-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.contact-form-heading {
  max-width: 620px;
  margin: 0 auto 30px;
  text-align: center;
}

.contact-form-heading h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.contact-form-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.contact-card,
.legal-policy-card {
  max-width: 860px;
  margin: 0 auto 64px;
  padding: clamp(22px, 4vw, 42px);
}

.privacy-hero {
  margin-bottom: -48px;
}

.privacy-effective-date {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.privacy-policy-content {
  display: grid;
  gap: 28px;
  text-align: left;
}

.privacy-policy-content section {
  display: grid;
  gap: 10px;
}

.privacy-policy-content h2 {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.privacy-policy-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

.contact-card .nf-form-title,
.contact-card .nf-before-form-content,
.contact-card .nf-after-form-content {
  display: none;
}

.contact-card .nf-form-content {
  padding: 0;
}

.contact-card .nf-form-content nf-fields-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.contact-card .nf-form-content nf-field:nth-child(5),
.contact-card .nf-form-content nf-field:nth-child(6),
.contact-card .nf-form-content nf-field:has(.turnstile-container),
.contact-card .nf-form-content nf-field:has(.submit-container) {
  grid-column: 1 / -1;
}

.contact-card .turnstile-container,
.contact-card .submit-container {
  width: 100%;
}

.contact-card .nf-field-label label {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 850;
}

.contact-card .ninja-forms-req-symbol {
  color: #b45309;
}

.contact-card .nf-field-element input,
.contact-card .nf-field-element textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: #fff;
  color: var(--text);
  font: 600 0.98rem var(--font-body);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.contact-card .nf-field-element textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-card .nf-field-element input:focus,
.contact-card .nf-field-element textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(91, 122, 94, 0.14);
  outline: 0;
  transform: translateY(-1px);
}

.contact-card .turnstile-container .nf-field-element,
.contact-card .submit-container .nf-field-element {
  display: flex;
  justify-content: center;
}

.contact-card .nf-cf-turnstile {
  margin-inline: auto;
}

.contact-card .submit-container input[type="button"],
.contact-card .submit-container input[type="submit"] {
  width: auto;
  min-width: 210px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: 850 0.98rem var(--font-body);
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(91, 122, 94, 0.22);
}

.contact-card .nf-error-msg,
.contact-card .nf-error .nf-error-msg {
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 720px) {
  .contact-options,
  .contact-options > .wp-block-group__inner-container,
  .contact-card .nf-form-content nf-fields-wrap {
    grid-template-columns: 1fr;
  }

  .contact-card .nf-form-content nf-field:nth-child(5),
  .contact-card .nf-form-content nf-field:nth-child(6) {
    grid-column: auto;
  }

  .contact-card .nf-form-content nf-field:has(.turnstile-container),
  .contact-card .nf-form-content nf-field:has(.submit-container) {
    grid-column: 1;
  }

  .contact-card .submit-container input[type="button"],
  .contact-card .submit-container input[type="submit"] {
    width: 100%;
  }
}

.contact-card .nf-field-label label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.contact-card .ninja-forms-req-symbol {
  display: inline;
  white-space: nowrap;
}

.site-nav .nav-menu-action.language-switcher {
  position: absolute;
  right: 138px;
  top: 50%;
  transform: translateY(-50%);
}

.site-nav.is-authenticated .nav-menu-action.language-switcher {
  right: 82px;
}

.language-switcher {
  margin-left: 0;
  flex: 0 0 auto;
}

.language-switcher-menu {
  position: relative;
}

.language-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(36, 38, 41, 0.12);
  border-radius: 999px;
  color: var(--text-muted, #3f463f);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  cursor: pointer;
  list-style: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.language-switcher-toggle::-webkit-details-marker {
  display: none;
}

.language-switcher-toggle .material-symbols-outlined {
  font-size: 17px;
}

.language-switcher-menu[open] .language-switcher-toggle,
.language-switcher-toggle:hover,
.language-switcher-toggle:focus-visible {
  border-color: rgba(91, 122, 94, 0.35);
  background: rgba(91, 122, 94, 0.10);
  color: var(--primary, #5b7a5e);
}

.language-switcher-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 4px;
  min-width: 82px;
  padding: 6px;
  border: 1px solid rgba(36, 38, 41, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.language-switcher-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text-muted, #3f463f);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.language-switcher-link:hover,
.language-switcher-link:focus-visible,
.language-switcher-link.is-active {
  border-color: rgba(91, 122, 94, 0.35);
  background: rgba(91, 122, 94, 0.10);
  color: var(--primary, #5b7a5e);
}

.language-switcher-link.is-active {
  cursor: default;
}

.mobile-language-switcher {
  display: grid;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 12px 12px;
  border-top: 1px solid rgba(36, 38, 41, 0.12);
}

.mobile-language-switcher-heading {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted, #6f766f);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-language-switcher-heading .material-symbols-outlined {
  color: var(--primary, #5b7a5e);
  font-size: 18px;
}

.mobile-language-switcher-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(91, 122, 94, 0.16);
  border-radius: 14px;
  background: rgba(91, 122, 94, 0.07);
}

.mobile-language-switcher-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-muted, #3f463f);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.mobile-language-switcher-link:hover,
.mobile-language-switcher-link:focus-visible,
.mobile-language-switcher-link.is-active {
  border-color: rgba(91, 122, 94, 0.28);
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary, #5b7a5e);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  outline: 0;
}

.mobile-language-switcher-link.is-active {
  cursor: default;
}

/* Floating support entry point for logged-in users. */
.arvy-support-floating-button {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 999998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: #242629;
  color: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.24);
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.arvy-support-floating-button:hover,
.arvy-support-floating-button:focus-visible {
  background: #1b1d20;
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.30);
  outline: 0;
  transform: translateY(-2px);
}

.arvy-support-floating-button .material-symbols-outlined {
  font-size: 24px;
}

@media (max-width: 640px) {
  .arvy-support-floating-button {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
}

/* In-page support popup. */
.arvy-support-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.arvy-support-modal.is-open,
.arvy-support-modal.is-closing {
  display: flex;
}

.arvy-support-modal.is-closing {
  pointer-events: none;
}

.arvy-support-modal.is-open .arvy-support-backdrop {
  animation: arvy-support-backdrop-in 180ms ease-out both;
}

.arvy-support-modal.is-closing .arvy-support-backdrop {
  animation: arvy-support-backdrop-out 160ms ease-in both;
}

.arvy-support-modal.is-open .arvy-support-dialog {
  animation: arvy-support-dialog-in 220ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.arvy-support-modal.is-closing .arvy-support-dialog {
  animation: arvy-support-dialog-out 160ms ease-in both;
}

.arvy-support-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(5px);
}

.arvy-support-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid rgba(36, 38, 41, 0.10);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28);
}

.arvy-support-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(36, 38, 41, 0.08);
}

.arvy-support-header h2 {
  margin: 0;
  color: var(--text, #242629);
  font-size: 1.2rem;
  line-height: 1.2;
}

.arvy-support-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 38, 41, 0.06);
  color: var(--text-muted, #3f463f);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.arvy-support-close:hover,
.arvy-support-close:focus-visible {
  background: rgba(36, 38, 41, 0.12);
  color: var(--text, #242629);
  outline: 0;
}

.arvy-support-form {
  display: grid;
  gap: 16px;
  padding: 20px 22px 22px;
}

.arvy-support-field {
  display: grid;
  gap: 7px;
  color: var(--text, #242629);
  font-weight: 800;
}

.arvy-support-field input,
.arvy-support-field textarea {
  width: 100%;
  border: 1px solid rgba(36, 38, 41, 0.14);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--text, #242629);
  font: inherit;
  font-weight: 500;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.arvy-support-field textarea {
  resize: vertical;
  min-height: 140px;
}

.arvy-support-field input:focus,
.arvy-support-field textarea:focus {
  border-color: rgba(91, 122, 94, 0.52);
  box-shadow: 0 0 0 3px rgba(91, 122, 94, 0.12);
  outline: 0;
}

.arvy-support-message {
  min-height: 20px;
  margin: 0;
  color: var(--text-muted, #3f463f);
  font-size: 0.92rem;
  font-weight: 700;
}

.arvy-support-message[data-type="success"] {
  color: #2f6d3a;
}

.arvy-support-message[data-type="error"] {
  color: #b42318;
}

.arvy-support-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.arvy-support-actions .btn {
  border: 0;
  cursor: pointer;
}

.arvy-support-actions .btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

@keyframes arvy-support-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes arvy-support-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes arvy-support-dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes arvy-support-dialog-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(0.98); }
}

@media (prefers-reduced-motion: reduce) {
  .arvy-support-modal.is-open .arvy-support-backdrop,
  .arvy-support-modal.is-closing .arvy-support-backdrop,
  .arvy-support-modal.is-open .arvy-support-dialog,
  .arvy-support-modal.is-closing .arvy-support-dialog {
    animation: none;
  }
}

@media (max-width: 640px) {
  .arvy-support-modal {
    align-items: flex-end;
    padding: 10px;
  }

  .arvy-support-dialog {
    max-height: calc(100vh - 20px);
    border-radius: 18px 18px 14px 14px;
  }

  .arvy-support-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
