/* All new styling is scoped to the application; landing and registration stay intact. */
.ai3d-workspace, .ai3d-workspace * { box-sizing: border-box; }
.ai3d-workspace {
    --ai3d-ink: #101744; --ai3d-muted: #657397; --ai3d-line: #dce5f0;
    --ai3d-primary: #008f98; --ai3d-primary-dark: #007a84; --ai3d-success: #008f98;
    width: min(1440px, 100%); margin: 24px auto; overflow: visible;
    border: 1px solid var(--ai3d-line); border-radius: 16px; color: var(--ai3d-ink);
    background: #edf5f9; font: 15px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 12px 40px #243b5310;
}
.ai3d-workspace [hidden] { display: none !important; }
.ai3d-workspace button, .ai3d-workspace input, .ai3d-workspace select, .ai3d-workspace textarea { font: inherit; letter-spacing: normal; text-transform: none; }
.ai3d-workspace button { cursor: pointer; }
.ai3d-workspace button:disabled { opacity: .5; cursor: not-allowed; }
.ai3d-workspace button:focus-visible, .ai3d-workspace a:focus-visible, .ai3d-workspace input:focus-visible, .ai3d-workspace select:focus-visible, .ai3d-workspace textarea:focus-visible, .ai3d-workspace summary:focus-visible { outline: 3px solid #20a9b170; outline-offset: 3px; }
.ai3d-workspace svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai3d-workspace h2, .ai3d-workspace h3 { color: var(--ai3d-ink); line-height: 1.2; letter-spacing: -.025em; font-family: inherit; font-weight: 700; }
.ai3d-app-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 28px 16px; background: #fff; border-radius: 16px 16px 0 0; }
.ai3d-brand { display: flex; align-items: center; gap: 12px; }
.ai3d-brand strong { display: block; font-size: 26px; line-height: 1.1; color: #0b1745; letter-spacing: -.02em; }
.ai3d-brand strong span { color: #008f98; }
.ai3d-brand small { display: block; color: #7180a3; font-size: 13px; }
.ai3d-brand-icon { display: grid; place-items: center; width: 45px; height: 45px; color: #008f98; }
.ai3d-brand-icon svg { width: 45px; height: 45px; }
.ai3d-brand-icon svg path:first-child { fill: #008f98; stroke: #008f98; }
.ai3d-brand-icon svg path:last-child { fill: #fff; stroke: #fff; }
.ai3d-own-credit { display: flex; align-items: center; gap: 10px; padding: 9px 15px; border: 1px solid var(--ai3d-line); border-radius: 9px; background: #fff; color: var(--ai3d-ink); font-weight: 600 !important; box-shadow: none; }
.ai3d-own-credit svg { width: 23px; height: 23px; color: var(--ai3d-primary); }
.ai3d-own-credit b { color: var(--ai3d-primary); font-size: 19px; margin-left: 4px; }
.ai3d-app-tabs { display: flex; gap: 12px; padding: 0 24px; border-top: 1px solid #edf1f7; border-bottom: 1px solid var(--ai3d-line); background: #fff; }
.ai3d-app-tabs button { padding: 15px 22px 13px; margin: 0; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: #69789b; background: transparent; box-shadow: none; font-weight: 600; }
.ai3d-app-tabs button[aria-selected=true] { color: var(--ai3d-primary); border-bottom-color: var(--ai3d-primary); }
.ai3d-app-panel { padding: 28px; }
.ai3d-panel-intro { margin-bottom: 22px; }
.ai3d-panel-intro h2 { margin: 0 0 6px; font-size: clamp(24px, 2.3vw, 32px); }
.ai3d-panel-intro p { margin: 0; color: var(--ai3d-muted); font-size: 17px; }
.ai3d-work-card { min-width: 0; padding: 22px; border: 1px solid var(--ai3d-line); border-radius: 12px; background: #fff; }
.ai3d-work-card h3 { margin: 0 0 18px; font-size: 23px; }
.ai3d-workspace .ai3d-wrap { width: 100%; margin: 0; font-family: inherit; --ai3d-primary: #008f98; --ai3d-primary-dark: #007a84; --ai3d-ink: #101744; --ai3d-muted: #657397; --ai3d-line: #dce5f0; }
.ai3d-workspace .ai3d-card { padding: 0; border: 0; border-radius: 0; overflow: visible; background: transparent; box-shadow: none; }
.ai3d-workspace .ai3d-card:before, .ai3d-workspace .ai3d-hero, .ai3d-workspace .ai3d-credit-balance, .ai3d-workspace .ai3d-plan-links, .ai3d-workspace .ai3d-account-modal { display: none !important; }
/* WordPress formatters and theme clearfix helpers must not become layout items. */
.ai3d-workspace :is(
    .ai3d-card, .ai3d-floorplan-grid, .ai3d-photo-grid, .ai3d-input-tabs, .ai3d-input-tab,
    .ai3d-form, .ai3d-drop, .ai3d-source, .ai3d-preview-frame, .ai3d-file-meta, .ai3d-file-actions,
    .ai3d-sketch-editor, .ai3d-sketch-heading, .ai3d-sketch-heading-actions, .ai3d-sketch-toolbar,
    .ai3d-sketch-tool-group, .ai3d-sketch-workspace, .ai3d-canvas-hint, .ai3d-symbol-list, .ai3d-sketch-footer,
    .ai3d-field, .ai3d-floorplan-output, .ai3d-consumption, .ai3d-photo-modes, .ai3d-photo-mode,
    .ai3d-photo-preview, .ai3d-output-heading, .ai3d-result-tabs, .ai3d-result-credits,
    .ai3d-app-header, .ai3d-brand, .ai3d-app-tabs, .ai3d-result-viewer, .ai3d-viewer-heading, .ai3d-viewer-stage
)::before,
.ai3d-workspace :is(
    .ai3d-card, .ai3d-floorplan-grid, .ai3d-photo-grid, .ai3d-input-tabs, .ai3d-input-tab,
    .ai3d-form, .ai3d-drop, .ai3d-source, .ai3d-preview-frame, .ai3d-file-meta, .ai3d-file-actions,
    .ai3d-sketch-editor, .ai3d-sketch-heading, .ai3d-sketch-heading-actions, .ai3d-sketch-toolbar,
    .ai3d-sketch-tool-group, .ai3d-sketch-workspace, .ai3d-canvas-hint, .ai3d-symbol-list, .ai3d-sketch-footer,
    .ai3d-field, .ai3d-floorplan-output, .ai3d-consumption, .ai3d-photo-modes, .ai3d-photo-mode,
    .ai3d-photo-preview, .ai3d-output-heading, .ai3d-result-tabs, .ai3d-result-credits,
    .ai3d-app-header, .ai3d-brand, .ai3d-app-tabs, .ai3d-result-viewer, .ai3d-viewer-heading, .ai3d-viewer-stage
)::after { content: none !important; display: none !important; }
.ai3d-workspace :is(
    .ai3d-card, .ai3d-floorplan-grid, .ai3d-photo-grid, .ai3d-input-tabs, .ai3d-input-tab,
    .ai3d-form, .ai3d-drop, .ai3d-source, .ai3d-preview-frame, .ai3d-file-meta, .ai3d-file-actions,
    .ai3d-sketch-editor, .ai3d-sketch-heading, .ai3d-sketch-heading-actions, .ai3d-sketch-toolbar,
    .ai3d-sketch-tool-group, .ai3d-sketch-workspace, .ai3d-canvas-hint, .ai3d-symbol-list, .ai3d-sketch-footer,
    .ai3d-field, .ai3d-floorplan-output, .ai3d-consumption, .ai3d-photo-modes, .ai3d-photo-mode,
    .ai3d-photo-preview, .ai3d-output-heading, .ai3d-result-tabs, .ai3d-result-credits,
    .ai3d-app-header, .ai3d-brand, .ai3d-app-tabs, .ai3d-result-viewer, .ai3d-viewer-heading, .ai3d-viewer-stage
) > :is(br, p:empty) { display: none !important; }
.ai3d-workspace .ai3d-floorplan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr); gap: 20px; align-items: start; }
.ai3d-workspace :is(.ai3d-floorplan-input, .ai3d-photo-input) { grid-column: 1; grid-row: 1; }
.ai3d-workspace :is(.ai3d-floorplan-output, .ai3d-photo-output) { grid-column: var(--ai3d-output-column, 2); grid-row: var(--ai3d-output-row, 1); }
.ai3d-workspace .ai3d-input-tabs { gap: 0; margin: 0 0 16px; padding: 3px; background: #f3f7fb; border: 1px solid var(--ai3d-line); border-radius: 8px; }
.ai3d-workspace .ai3d-input-tab { min-height: 40px; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: #627397; box-shadow: none; font-size: 13px; }
.ai3d-workspace .ai3d-input-tab.is-active { color: #fff; background: var(--ai3d-primary); }
.ai3d-workspace .ai3d-input-tab svg { width: 17px; height: 17px; }
.ai3d-workspace .ai3d-input-panel { margin: 0; }
.ai3d-workspace .ai3d-drop { min-height: 270px; border-radius: 8px; border: 1px dashed #9fb9cd; background: #f6fafc; }
.ai3d-workspace .ai3d-source { padding: 12px; margin: 16px 0; border-radius: 8px; background: #f5f9fc; border-color: var(--ai3d-line); }
.ai3d-workspace .ai3d-helper-button { display: inline-flex; width: auto; min-height: 35px; flex-direction: row; gap: 7px; padding: 4px 0; margin: 8px 0 0; border: 0; box-shadow: none; color: var(--ai3d-primary); font-size: 13px; }
.ai3d-workspace .ai3d-helper-button svg { width: 19px; height: 19px; }
.ai3d-workspace .ai3d-sketch-editor { border: 1px solid var(--ai3d-line); border-radius: 9px; }
.ai3d-workspace .ai3d-sketch-heading { padding: 12px; gap: 10px; }
.ai3d-workspace .ai3d-sketch-heading small { max-width: 270px; font-size: 10px; }
.ai3d-workspace .ai3d-sketch-toolbar { flex-wrap: wrap; gap: 8px; padding: 9px; }
.ai3d-workspace .ai3d-line-width { min-width: 80px; flex: 1; max-width: 150px; }
.ai3d-workspace .ai3d-sketch-workspace { grid-template-columns: 128px minmax(0, 1fr); min-height: 285px; }
.ai3d-workspace .ai3d-symbol-palette { padding: 9px 6px; }
.ai3d-workspace .ai3d-symbol-tool { min-height: 53px; min-width: 0; padding: 6px 3px; font-size: 9px; line-height: 1.15; }
.ai3d-workspace .ai3d-symbol-tool span { max-width: 100%; overflow-wrap: anywhere; }
.ai3d-workspace .ai3d-sketch-tool, .ai3d-workspace .ai3d-icon-button { font-size: 10px; }
.ai3d-workspace .ai3d-sketch-text-button { font-size: 11px; }
.ai3d-workspace .ai3d-symbol-tool svg { width: 27px; height: 27px; }
.ai3d-workspace .ai3d-canvas-column { padding: 9px; background: #eef4f8; }
.ai3d-workspace .ai3d-sketch-tool.is-active { background: #e5f6f7; color: var(--ai3d-primary); border-color: #78c4c9; box-shadow: none; }
.ai3d-workspace .ai3d-sketch-footer { padding: 10px; gap: 8px; flex-wrap: wrap; }
.ai3d-workspace .ai3d-sketch-footer button { font-size: 12px; }
.ai3d-workspace .ai3d-sketch-editor:fullscreen .ai3d-sketch-workspace, .ai3d-workspace .ai3d-sketch-editor.is-fullscreen-fallback .ai3d-sketch-workspace { flex: 1 1 auto; grid-template-columns: 142px minmax(0, 1fr); }
.ai3d-workspace .ai3d-field { margin: 20px 0 14px; }
.ai3d-workspace .ai3d-field > span { font-size: 14px; color: var(--ai3d-ink); }
.ai3d-workspace .ai3d-field textarea { border: 1px solid #cfdbe9; border-radius: 7px; padding: 12px; background: #fff; font-size: 14px; }
.ai3d-workspace .ai3d-generate { min-height: 49px; border-radius: 7px; padding: 12px; margin: 10px 0 0; background: var(--ai3d-primary); color: #fff; border-color: var(--ai3d-primary); box-shadow: none; font-size: 16px; }
.ai3d-workspace .ai3d-generate:hover:not(:disabled) { background: var(--ai3d-primary-dark); }
.ai3d-workspace .ai3d-settings { margin: 18px 0 12px; border: 1px solid var(--ai3d-line); border-radius: 8px; background: #f5f9fc; }
.ai3d-workspace .ai3d-settings summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; padding: 12px 14px; color: var(--ai3d-primary-dark); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.ai3d-workspace .ai3d-settings summary::-webkit-details-marker { display: none; }
.ai3d-workspace .ai3d-settings-chevron { width: 18px; height: 18px; flex: 0 0 18px; transition: transform .18s ease; }
.ai3d-workspace .ai3d-settings[open] .ai3d-settings-chevron { transform: rotate(180deg); }
.ai3d-workspace .ai3d-settings-content { padding: 0 14px 14px; }
.ai3d-workspace .ai3d-quality-field { display: grid; gap: 7px; margin: 0; }
.ai3d-workspace .ai3d-quality-field select { display: block; width: 100%; max-width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid #cfdbe9; border-radius: 7px; background: #fff; color: var(--ai3d-ink); font-size: 14px; }
.ai3d-workspace .ai3d-quality-note { margin: 8px 0 0; color: var(--ai3d-muted); font-size: 12px; line-height: 1.5; }
.ai3d-workspace .ai3d-settings .ai3d-preserve { margin: 13px 0 0; }
.ai3d-preserve { display: flex; align-items: center; gap: 10px; margin: 15px 0; color: var(--ai3d-muted); font-size: 13px; }
.ai3d-preserve > span { color: #56658a; font-size: 27px; line-height: 1; }
.ai3d-workspace .ai3d-status { margin: 12px 0 0; min-height: 0; padding: 10px 12px; border-radius: 7px; font-size: 12px; }
.ai3d-workspace .ai3d-floorplan-output { display: flex; flex-direction: column; }
.ai3d-done { display: inline-block; margin-left: 8px; padding: 6px 12px; border-radius: 30px; color: var(--ai3d-primary); background: #e0f5f5; font-size: 12px; font-weight: 600; letter-spacing: 0; vertical-align: middle; }
.ai3d-empty-result { display: flex; min-height: 350px; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 32px; text-align: center; background: #f3f8fb; border: 1px dashed #d2dfeb; border-radius: 9px; color: #63799b; }
.ai3d-empty-result p { font-size: 14px; max-width: 310px; margin: 0; color: #8291ab; }
.ai3d-empty-result svg { width: 65px; height: 65px; color: #7ab4bf; }
.ai3d-empty-symbol { font-size: 70px; color: #84b9c2; line-height: 1; }
.ai3d-workspace .ai3d-result { display: contents; margin: 0; border: 0; padding: 0; box-shadow: none; }
.ai3d-workspace .ai3d-result > img { order: 1; display: block; width: 100%; height: auto; border-radius: 8px; border: 0; background: #f2f6f9; }
.ai3d-workspace .ai3d-result-heading { order: 4; display: block; padding: 0; margin: 12px 0 0; border: 0; }
.ai3d-workspace .ai3d-result-heading > div { display: none; }
.ai3d-workspace .ai3d-download { display: block; width: 100%; padding: 13px; min-height: 49px; border: 0; border-radius: 7px; text-align: center; background: var(--ai3d-primary); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; box-shadow: none; }
/* Download controls are links; keep theme link colours from hiding their labels. */
.ai3d-workspace a:is(.ai3d-download, .ai3d-photo-download),
.ai3d-workspace a:is(.ai3d-download, .ai3d-photo-download):is(:link, :visited, :hover, :focus, :active) { color: #fff !important; -webkit-text-fill-color: #fff !important; }
.ai3d-workspace .ai3d-consumption { order: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 14px; padding: 14px; border: 0; border-radius: 8px; background: #edf6fa; color: var(--ai3d-ink); font-size: 14px; }
.ai3d-workspace .ai3d-consumption > strong { align-self: center; font-size: 15px; }
.ai3d-workspace .ai3d-consumption .ai3d-own-remaining { padding-left: 15px; border-left: 1px solid #cfdfeb; }
.ai3d-billing-note { margin: 12px 0 0; color: #7787a6; font-size: 12px; text-align: center; }
.ai3d-workspace .ai3d-consumption .ai3d-billing-note { grid-column: 1 / -1; margin: 0; }
.ai3d-workspace .ai3d-footnote { color: #7c8ea5; font-size: 11px; margin: 17px 0 0; }
.ai3d-workspace > .ai3d-note { margin: 16px 28px 0; border: 1px solid var(--ai3d-line); border-radius: 9px; background: #fff; }
.ai3d-photo-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 20px; }
.ai3d-photo-mode { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 18px; border: 1px solid #d6e1ed; border-radius: 9px; background: #fff; cursor: pointer; }
.ai3d-photo-mode:has(input:checked) { background: #e2f3f5; border-color: var(--ai3d-primary); }
.ai3d-photo-mode input { width: 18px; height: 18px; margin: 0; flex: 0 0 18px; accent-color: var(--ai3d-primary); }
.ai3d-photo-mode strong { display: block; font-size: 17px; font-weight: 650; color: var(--ai3d-ink); }
.ai3d-photo-mode small { display: block; font-size: 13px; margin-top: 3px; color: var(--ai3d-muted); }
.ai3d-photo-mode-icon { width: 33px; flex: 0 0 33px; color: var(--ai3d-primary); font-size: 37px; line-height: 1; }
.ai3d-photo-mode-icon svg { width: 32px; height: 32px; }
.ai3d-photo-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 20px; align-items: start; }
.ai3d-step { display: inline-grid; width: 28px; height: 28px; margin-right: 8px; place-items: center; border-radius: 50%; background: #eaf0f7; font-size: 15px; }
.ai3d-photo-input h3 { font-size: 20px; }
.ai3d-photo-drop { display: flex; min-height: 220px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; position: relative; border: 1px dashed #a4bacd; border-radius: 8px; background: #f7fafc; cursor: pointer; }
.ai3d-photo-drop > span { font-size: 34px; color: var(--ai3d-primary); }
.ai3d-photo-drop small { color: var(--ai3d-muted); font-size: 12px; }
.ai3d-photo-drop input { position: absolute; width: 100%; height: 100%; opacity: 0; inset: 0; cursor: pointer; }
.ai3d-photo-drop.is-dragging { background: #dff5f5; border-color: var(--ai3d-primary); }
.ai3d-photo-preview { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--ai3d-line); border-radius: 8px; }
.ai3d-photo-preview img { width: 44%; max-height: 145px; object-fit: contain; border-radius: 6px; }
.ai3d-photo-preview > div { min-width: 0; flex: 1; }
.ai3d-photo-preview strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.ai3d-photo-preview small { display: block; margin: 4px 0 10px; color: var(--ai3d-muted); font-size: 12px; }
.ai3d-secondary { padding: 8px 10px; border: 1px solid #bacddd; border-radius: 6px; background: #fff; color: #586a8e; font-size: 12px !important; }
.ai3d-text-button { border: 0; padding: 6px; background: transparent; color: #7a8196; font-size: 12px !important; }
.ai3d-photo-field { display: block; margin: 20px 0 12px; }
.ai3d-photo-field > span { display: block; margin: 0 0 8px; font-weight: 600; font-size: 14px; }
.ai3d-photo-field small { color: #7889a7; font-weight: 400; }
.ai3d-photo-field textarea, .ai3d-photo-field select, .ai3d-photo-field input[type=text] { display: block; width: 100%; max-width: 100%; margin: 0; padding: 12px; border: 1px solid #ccd9e8; border-radius: 7px; background: #fff; color: var(--ai3d-ink); font-size: 14px; }
.ai3d-photo-field textarea { resize: vertical; min-height: 116px; }
.ai3d-photo-mark { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0; color: var(--ai3d-ink); font-size: 13px; cursor: pointer; }
.ai3d-photo-mark input { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: var(--ai3d-primary); }
.ai3d-primary { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: center; gap: 10px; padding: 12px 15px; border: 0; border-radius: 7px; background: var(--ai3d-primary); color: #fff !important; font-weight: 600; text-decoration: none; box-shadow: none; }
.ai3d-primary:hover:not(:disabled) { background: var(--ai3d-primary-dark); }
.ai3d-photo-status { margin: 12px 0 0; padding: 10px; border-radius: 7px; font-size: 12px; color: var(--ai3d-muted); background: #f5f8fb; }
.ai3d-photo-status[data-state=error] { color: #983d45; background: #fff0f1; }
.ai3d-photo-status[data-state=working] { color: #096d85; background: #e9f7fc; }
.ai3d-photo-status[data-state=success] { color: #087975; background: #eaf8f4; }
.ai3d-output-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.ai3d-output-heading h3 { margin: 0; font-size: 23px; }
.ai3d-result-tabs { display: inline-flex; padding: 3px; border: 1px solid var(--ai3d-line); border-radius: 7px; background: #f6f8fb; }
.ai3d-result-tabs button { border: 0; padding: 7px 12px; border-radius: 5px; background: transparent; color: #627397; font-size: 12px; }
.ai3d-result-tabs button[aria-pressed=true] { background: var(--ai3d-primary); color: #fff; }
.ai3d-photo-stage { position: relative; overflow: hidden; width: 100%; aspect-ratio: 3/2; border-radius: 8px; background: #f0f4f7; }
.ai3d-photo-stage.is-comparing { touch-action: pan-y; cursor: ew-resize; user-select: none; }
.ai3d-photo-stage img { -webkit-user-drag: none; }
.ai3d-photo-stage img { position: absolute; display: block; width: 100%; height: 100%; inset: 0; object-fit: contain; border: 0; }
.ai3d-photo-before { z-index: 1; }
.ai3d-compare-label { position: absolute; top: 10px; z-index: 3; padding: 5px 12px; border-radius: 4px; background: #172442dc; color: #fff; font-size: 12px; font-weight: 600; }
.ai3d-compare-label-before { left: 10px; }.ai3d-compare-label-after { right: 10px; }
.ai3d-compare-divider { position: absolute; z-index: 2; inset: 0 auto 0 50%; width: 2px; background: #fff; transform: translateX(-1px); color: transparent; pointer-events: none; }
.ai3d-compare-divider:after { content: '‹ ›'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; color: var(--ai3d-ink); background: #fff; box-shadow: 0 2px 6px #0003; font-size: 18px; }
.ai3d-compare-control { display: flex; align-items: center; gap: 16px; padding: 12px 16px 4px; font-size: 13px; color: #617598; }
.ai3d-compare-control input { width: 100%; flex: 1; margin: 0; accent-color: var(--ai3d-primary); }
.ai3d-result-credits { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 14px 18px; margin: 15px 0 10px; border-radius: 8px; background: #edf6fa; }
.ai3d-result-credits > div + div { border-left: 1px solid #cadae9; padding-left: 20px; }
.ai3d-result-credits span { display: block; color: #607295; font-size: 12px; }
.ai3d-result-credits strong { display: block; margin-top: 4px; font-size: 18px; }
.ai3d-workspace .ai3d-account { --ac-ink: #101744; --ac-muted: #657397; --ac-accent: #008f98; max-width: none; margin: 0; border: 0; padding: 0; box-shadow: none; background: transparent; color: var(--ai3d-ink); }
.ai3d-workspace .ai3d-account-hero { padding: 0 0 18px; margin: 0; border: 0; background: transparent; }
.ai3d-workspace .ai3d-account-hero h2 { display: none; }
.ai3d-workspace .ai3d-account-stats { grid-template-columns: 1.3fr 1fr 1fr; }
.ai3d-workspace .ai3d-account-stat, .ai3d-workspace .ai3d-account-card { border: 1px solid var(--ai3d-line); border-radius: 10px; background: #fff; padding: 21px; box-shadow: none; }
.ai3d-workspace .ai3d-account-stat strong { color: var(--ai3d-ink); }
.ai3d-workspace .ai3d-account-grid { margin-top: 18px; }
.ai3d-workspace .ai3d-account-button { color: #fff; border-color: var(--ai3d-primary); background: var(--ai3d-primary); border-radius: 6px; padding: 10px 14px; box-shadow: none; }
.ai3d-workspace .ai3d-account-button-light { background: #fff; color: var(--ai3d-primary); }
.ai3d-workspace .ai3d-account-card h3 { color: var(--ai3d-ink); }
.ai3d-workspace .ai3d-account-pill { background: #e1f4f4; color: var(--ai3d-primary); }
.ai3d-workspace .ai3d-account-business { margin-top: 20px; }
.ai3d-workspace .ai3d-account-row { border-color: #e7eef5; }
.ai3d-purchases { margin: 24px 0 0; }
.ai3d-purchases > h3 { margin: 0 0 16px; font-size: 25px; }
.ai3d-purchase-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ai3d-purchase-grid .ai3d-account-card { display: flex; flex-direction: column; align-items: stretch; }
.ai3d-purchase-grid .ai3d-account-card h3 { margin-bottom: 10px; font-size: 22px; }
.ai3d-purchase-grid .ai3d-account-button, .ai3d-plan-current { margin-top: auto; text-align: center; }
.ai3d-plan-current { display: block; padding: 10px; background: #eaf0f6; color: #7582a0; border-radius: 6px; }
.ai3d-account-refresh { margin: 0 0 14px; color: var(--ai3d-muted); font-size: 13px; }
@media (max-width: 1050px) {
    .ai3d-app-panel { padding: 22px; }.ai3d-work-card { padding: 17px; }
    .ai3d-workspace .ai3d-floorplan-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; }
    .ai3d-workspace .ai3d-sketch-workspace { grid-template-columns: 82px minmax(0, 1fr); }
    .ai3d-workspace .ai3d-symbol-list { gap: 4px; }.ai3d-workspace .ai3d-symbol-tool { min-height: 46px; font-size: 7px; }
    .ai3d-workspace .ai3d-symbol-tool svg { width: 22px; height: 22px; }
    .ai3d-photo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 15px; }
    .ai3d-output-heading h3, .ai3d-work-card h3 { font-size: 20px; }
}
@media (max-width: 780px) {
    .ai3d-workspace { margin: 12px auto; border-radius: 10px; }
    .ai3d-app-header { padding: 16px; border-radius: 10px 10px 0 0; }.ai3d-brand strong { font-size: 22px; }
    .ai3d-app-tabs { padding: 0 10px; gap: 0; }.ai3d-app-tabs button { flex: 1; padding: 12px 8px 10px; font-size: 12px; }
    .ai3d-app-panel { padding: 18px; }.ai3d-panel-intro p { font-size: 14px; }
    .ai3d-workspace .ai3d-sketch-workspace { grid-template-columns: 108px minmax(0, 1fr); }
    .ai3d-workspace .ai3d-symbol-tool svg { width: 29px; height: 29px; }.ai3d-workspace .ai3d-symbol-tool { min-height: 50px; font-size: 8px; }
    .ai3d-photo-modes { gap: 10px; }.ai3d-photo-mode { padding: 12px; gap: 9px; }.ai3d-photo-mode-icon { display: none; }.ai3d-photo-mode strong { font-size: 14px; }.ai3d-photo-mode small { font-size: 11px; }
    .ai3d-workspace .ai3d-account-stats { grid-template-columns: 1fr; }.ai3d-purchase-grid { grid-template-columns: 1fr; }
    .ai3d-empty-result { min-height: 270px; }
}
@media (max-width: 450px) {
    .ai3d-app-header { gap: 10px; padding: 12px; }.ai3d-brand-icon { display: none; }.ai3d-brand strong { font-size: 19px; }.ai3d-brand small { font-size: 10px; }
    .ai3d-own-credit { padding: 7px 9px; font-size: 11px !important; }.ai3d-own-credit svg { width: 17px; }.ai3d-own-credit b { font-size: 15px; }
    .ai3d-app-panel { padding: 12px; }.ai3d-work-card { padding: 13px; }.ai3d-panel-intro h2 { font-size: 24px; }
    .ai3d-workspace .ai3d-sketch-workspace { display: flex; flex-direction: column; }.ai3d-workspace .ai3d-symbol-palette { width: 100%; border-right: 0; border-bottom: 1px solid var(--ai3d-line); }
    .ai3d-workspace .ai3d-symbol-list { display: flex; overflow-x: auto; padding-bottom: 4px; }.ai3d-workspace .ai3d-symbol-tool { flex: 0 0 49px; }
    .ai3d-workspace .ai3d-symbol-palette > strong, .ai3d-workspace .ai3d-symbol-palette > small { display: none; }
    .ai3d-workspace .ai3d-sketch-heading { flex-wrap: wrap; }.ai3d-workspace .ai3d-sketch-heading-actions { width: 100%; }
    .ai3d-workspace .ai3d-consumption, .ai3d-result-credits { grid-template-columns: 1fr; }
    .ai3d-workspace .ai3d-consumption .ai3d-own-remaining, .ai3d-result-credits > div + div { border-left: 0; border-top: 1px solid #cfdfeb; padding: 8px 0 0; }
    .ai3d-photo-modes { grid-template-columns: 1fr; }.ai3d-photo-mode small { font-size: 12px; }
}
.ai3d-workspace .ai3d-account { --ai3d-ink: #101744; --ai3d-muted: #657397; --ai3d-border: #dce5f0; --ai3d-mint: #008f98; }
.ai3d-workspace .ai3d-account-hero { color: var(--ai3d-ink); box-shadow: none; }
.ai3d-workspace .ai3d-account-hero .ai3d-account-kicker { color: var(--ai3d-primary); }
.ai3d-workspace.is-compact:not(.is-landscape-columns) .ai3d-floorplan-grid, .ai3d-workspace.is-compact:not(.is-landscape-columns) .ai3d-photo-grid { grid-template-columns: minmax(0, 1fr); --ai3d-output-column: 1; --ai3d-output-row: 2; }
@media (max-width: 1280px) {
    .ai3d-workspace.is-landscape-columns .ai3d-drop { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 12px; padding: 18px; text-align: center; }
    .ai3d-workspace.is-landscape-columns .ai3d-file-button { display: none; }
    .ai3d-workspace.is-landscape-columns .ai3d-source { grid-template-columns: minmax(0, 1fr); }
    .ai3d-workspace.is-landscape-columns .ai3d-preview-frame { width: 100%; }
    .ai3d-workspace.is-landscape-columns .ai3d-file-meta { grid-template-columns: minmax(0, 1fr); }
    .ai3d-workspace.is-landscape-columns .ai3d-file-actions { grid-column: 1; grid-row: auto; margin-top: 6px; justify-content: flex-start; }
}
.ai3d-workspace.is-compact .ai3d-account-stats, .ai3d-workspace.is-compact .ai3d-purchase-grid { grid-template-columns: 1fr; }
.ai3d-workspace.is-narrow .ai3d-app-header { gap: 10px; padding: 12px; }
.ai3d-workspace.is-narrow .ai3d-brand-icon { display: none; }
.ai3d-workspace.is-narrow .ai3d-brand strong { font-size: 19px; }
.ai3d-workspace.is-narrow .ai3d-brand small { font-size: 10px; }
.ai3d-workspace.is-narrow .ai3d-photo-modes { grid-template-columns: 1fr; }

.ai3d-preserve svg { width: 22px; height: 22px; flex: 0 0 22px; padding: 3px; border-radius: 50%; color: #15803d; background: #e8f6ec; stroke-width: 2.6; }
.ai3d-workspace textarea, .ai3d-workspace select { font-weight: 400; }

/* Break out of a narrow page-builder column while retaining the page's centre. */
@media (min-width: 1101px), (min-width: 768px) and (orientation: landscape) {
    .ai3d-workspace { width: 80vw; max-width: none; margin-inline: calc(50% - 40vw); }
}
@media (orientation: portrait) and (max-width: 1100px) {
    .ai3d-workspace .ai3d-floorplan-grid, .ai3d-workspace .ai3d-photo-grid { grid-template-columns: minmax(0, 1fr); --ai3d-output-column: 1; --ai3d-output-row: 2; }
}
@media (max-width: 767px) {
    .ai3d-workspace .ai3d-floorplan-grid, .ai3d-workspace .ai3d-photo-grid { grid-template-columns: minmax(0, 1fr); --ai3d-output-column: 1; --ai3d-output-row: 2; }
}
.ai3d-workspace .ai3d-enlarge { order: 2; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin: 12px 0 0; padding: 10px 14px; border: 1px solid #bacddd; border-radius: 7px; background: #fff; color: var(--ai3d-primary-dark); box-shadow: none; font-weight: 600; font-size: 14px; }
.ai3d-workspace .ai3d-enlarge:hover:not(:disabled) { background: #edf6fa; border-color: var(--ai3d-primary); }
.ai3d-workspace .ai3d-enlarge svg { width: 18px; height: 18px; }
.ai3d-workspace .ai3d-result-viewer { position: fixed; inset: 0; width: min(96vw, 1800px); max-width: 96vw; max-height: 94vh; max-height: 94dvh; margin: auto; padding: 0; overflow: hidden; border: 1px solid #dce5f0; border-radius: 12px; background: #edf5f9; color: var(--ai3d-ink); box-shadow: 0 24px 90px #061c3d66; }
.ai3d-workspace .ai3d-result-viewer::backdrop { background: #07162cbd; backdrop-filter: blur(3px); }
.ai3d-workspace .ai3d-viewer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--ai3d-line); }
.ai3d-workspace .ai3d-viewer-heading h3 { margin: 0; font-size: 18px; }
.ai3d-workspace .ai3d-viewer-heading button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; border: 1px solid #bacddd; border-radius: 7px; background: #fff; color: var(--ai3d-primary-dark); box-shadow: none; }
.ai3d-workspace .ai3d-viewer-heading button:hover { background: #edf6fa; }
.ai3d-workspace .ai3d-viewer-heading svg { width: 22px; height: 22px; }
.ai3d-workspace .ai3d-viewer-stage { display: grid; place-items: center; min-height: 120px; padding: 12px; overflow: auto; max-height: calc(94vh - 69px); max-height: calc(94dvh - 69px); }
.ai3d-workspace .ai3d-viewer-stage img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(94vh - 93px); max-height: calc(94dvh - 93px); margin: auto; object-fit: contain; border-radius: 6px; }
@media (pointer: coarse) {
    .ai3d-workspace .ai3d-quality-field select { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ai3d-workspace .ai3d-settings-chevron { transition: none; }
}
