/* Atelier experience: cream, ink and brass, with a usable workspace at every size. */
:root { --atelier-line: #e6dfd3; --atelier-ink: #28251f; --atelier-brass: #8b692e; }
button, input, select, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--atelier-brass); outline-offset: 4px;
}
.hero-ctas { flex-wrap: wrap; }
.hero-neo-cta { cursor: pointer; background: var(--atelier-ink); color: #fff; border-color: var(--atelier-ink); }
.neo-workspace-window { height: 100dvh !important; }
.neo-workspace-body, .neo-view-screen, .neo-topbar-left, .neo-topbar-titles { min-width: 0; min-height: 0; }
.neo-workspace-topbar { gap: 16px; padding: 12px 24px; height: auto; min-height: 72px; flex-shrink: 0; }
.neo-topbar-title { letter-spacing: .025em; font-size: 14px; }
.neo-workspace-topbar button { min-height: 36px; }
.neo-topbar-sub { line-height: 1.5; }
.neo-workspace-modes { flex-shrink: 0; }
.neo-project-pill { max-width: 155px; overflow: hidden; }
.neo-project-pill .project-id { overflow: hidden; text-overflow: ellipsis; }
.neo-launcher-screen { padding: clamp(24px, 5vw, 64px); gap: 32px; }
.neo-launcher-hero { text-align: left; max-width: 1200px; width: 100%; }
.neo-launcher-heading { font-size: clamp(30px, 4vw, 52px); letter-spacing: -.035em; margin: 12px 0; }
.neo-launcher-question { line-height: 1.6; max-width: 660px; font-size: 17px; }
.neo-choices-grid { max-width: 1200px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.neo-choice-card { padding: 28px; border-radius: 8px; min-width: 0; box-shadow: none; }
.neo-choice-card:hover { transform: translateY(-3px); }
.choice-chat { background: #f4efe5; border-color: #cbb991; }
.choice-title { font-size: 23px; letter-spacing: -.02em; }
.choice-subtitle { line-height: 1.5; letter-spacing: 0; color: #80622e; }
.choice-desc { font-size: 14px; line-height: 1.75; }
.choice-footer { flex-wrap: wrap; gap: 12px; }
.choice-tag { font-size: 9px; padding: 4px 6px; }
.neo-launcher-project-status { max-width: 1200px; border-radius: 8px; flex-wrap: wrap; }
.neo-launcher-project-status .status-left, .neo-launcher-project-status .status-right { flex-wrap: wrap; min-width: 0; }
.neo-launcher-project-status strong { overflow-wrap: anywhere; }
.nwp-mobile-navigation { display: none; }
#nwpConfigurator .nwp-config-topbar { flex-wrap: wrap; gap: 8px; padding: 10px 16px; overflow: visible; }
#nwpConfigurator .nwp-topbar-left, #nwpConfigurator .nwp-topbar-center, #nwpConfigurator .nwp-topbar-right { flex-wrap: wrap; min-width: 0; }
#nwpConfigurator .nwp-config-body { grid-template-columns: auto minmax(0, 1fr) auto; }
#nwpConfigurator .nwp-module-library:not(.collapsed) { width: clamp(220px, 19vw, 280px); }
#nwpConfigurator .nwp-property-inspector:not(.collapsed) { width: clamp(240px, 21vw, 310px); }
#nwpConfigurator .nwp-module-library, #nwpConfigurator .nwp-property-inspector { max-height: none; min-height: 0; }
#nwpConfigurator .nwp-canvas-toolbar { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
.nwp-canvas-tools-left, .nwp-canvas-tools-right { flex-wrap: wrap; gap: 6px; min-width: 0; }
.nwp-canvas-tag { font-size: 10px; letter-spacing: .07em; }
.nwp-canvas-tool-btn { min-height: 32px; }
#nwpConfigurator .nwp-cad-display { padding: 16px; gap: 8px; }
#nwpConfigurator .geo-cad-footer { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 10px; border-top: 1px solid var(--atelier-line); color: #746b5d; font-size: 10px; line-height: 1.5; letter-spacing: .025em; }
#nwpConfigurator .nwp-config-bottombar { padding: 10px 16px; gap: 12px; }
#nwpConfigurator [hidden] { display: none !important; }
#neoChatView .neo-left-sidebar { width: 240px !important; }
#neoChatView .neo-chat-project-banner { flex-wrap: wrap; gap: 10px; padding: 14px 24px; }
#neoChatView .chat-banner-text { min-width: 0; overflow-wrap: anywhere; }
#neoChatView .chat-banner-actions { flex-wrap: wrap; }
#neoChatView .ai-messages { padding: 24px max(24px, calc((100% - 850px) / 2)) !important; }
#neoChatView .neo-enterprise-header { padding: 18px 0; }
#neoChatView .neo-ent-title { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); }
#neoChatView .neo-ent-sub { line-height: 1.7; color: #706658; }
#neoChatView .neo-ent-grid { gap: 12px; }
#neoChatView .neo-input-bar { margin: 12px 24px 20px; flex-shrink: 0; min-width: 0; }
.neo-input-wrap { min-width: 0; }
.neo-input-wrap input { min-width: 0; width: 100%; }
.neo-request-status { flex-shrink: 0; margin: 0 24px; min-height: 18px; color: #77603c; font-size: 12px; line-height: 1.5; }
.neo-send-btn:disabled { opacity: .45; cursor: wait; }
.ai-message { overflow-wrap: anywhere; }
@media (max-width: 1180px) {
  .neo-workspace-topbar { flex-wrap: wrap; }
  .neo-workspace-modes { order: 3; width: 100%; justify-content: center; }
  .neo-topbar-right { margin-left: auto; }
  .neo-back-btn .back-text { display: none; }
  .neo-back-btn { min-width: 36px; justify-content: center; }
  .neo-choices-grid { gap: 14px; }
  .neo-choice-card { padding: 20px; }
  .choice-icon-wrap { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 900px) {
  .neo-workspace-topbar { padding: 10px 16px; gap: 10px; }
  .neo-topbar-title { font-size: 12px; }
  .neo-topbar-sub { font-size: 10px; }
  .neo-project-pill { display: none; }
  .neo-launcher-screen { padding: 24px; gap: 24px; }
  .neo-choices-grid { grid-template-columns: 1fr; }
  .neo-choice-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 0 18px; }
  .choice-icon-wrap { align-items: flex-start; margin: 0; }
  .choice-glyph { width: 44px; height: 44px; font-size: 22px; }
  .choice-tag { display: none; }
  .choice-title { font-size: 20px; }
  .choice-desc { margin-bottom: 14px; }
  .choice-footer { grid-column: 2; padding-top: 12px; }
  .neo-launcher-project-status { padding: 16px; }
  .nwp-mobile-navigation { display: flex; gap: 4px; padding: 8px 12px; background: #efe9df; flex-shrink: 0; order: 1; }
  .nwp-mobile-navigation button { flex: 1; min-height: 40px; border: 0; border-radius: 5px; background: transparent; color: #665c4e; font-size: 12px; cursor: pointer; }
  .nwp-mobile-navigation button[aria-pressed="true"] { background: #fff; color: var(--atelier-ink); box-shadow: 0 1px 3px #0001; font-weight: 600; }
  #nwpConfigurator .nwp-config-topbar { padding: 8px 12px; gap: 6px; order: 0; flex-direction: row; align-items: center; }
  #nwpConfigurator .nwp-atelier-badge { display: none; }
  #nwpConfigurator .nwp-topbar-right { width: auto; flex: 1; }
  #nwpConfigurator .nwp-config-body { display: block; order: 2; position: relative; }
  #nwpConfigurator .nwp-design-canvas-wrap { min-height: 0; }
  #nwpConfigurator .nwp-topbar-left, #nwpConfigurator .nwp-topbar-center, #nwpConfigurator .nwp-topbar-right { min-width: 0; max-width: 100%; }
  #nwpConfigurator .nwp-mini-toggle-group { flex-wrap: wrap; gap: 4px; }
  #nwpConfigurator .nwp-mini-toggle-btn, #nwpConfigurator .nwp-start-btn { padding: 6px 8px; font-size: 11px; min-width: 0; }
  #nwpConfigurator .nwp-view-mode-toggle { max-width: 100%; flex-wrap: wrap; }
  #nwpConfigurator .nwp-view-tab { padding: 6px 8px; font-size: 11px; }
  #nwpConfigurator .nwp-topbar-right { flex-wrap: wrap; gap: 4px; }
  #nwpConfigurator .nwp-config-body > * { display: none; }
  #nwpConfigurator[data-mobile-pane="design"] .nwp-design-canvas-wrap { display: flex; height: 100%; }
  #nwpConfigurator[data-mobile-pane="library"] .nwp-module-library,
  #nwpConfigurator[data-mobile-pane="properties"] .nwp-property-inspector { display: flex; width: 100%; height: 100%; max-height: none; padding: 16px; overflow-y: auto; }
  #nwpConfigurator .nwp-sidebar-aside.collapsed .nwp-sidebar-content { display: block !important; }
  #nwpConfigurator .nwp-sidebar-rail, #nwpConfigurator .nwp-sidebar-toggle { display: none !important; }
  #nwpConfigurator .nwp-config-bottombar { order: 3; flex-direction: row; flex-shrink: 0; padding: 8px 12px; max-height: 145px; overflow-y: auto; }
  #nwpConfigurator .nwp-bottom-left { flex-basis: 100%; gap: 6px; }
  #nwpConfigurator .nwp-bottom-right { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
  #nwpConfigurator .nwp-status-strip { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  #nwpConfigurator .nwp-status-chip { flex-shrink: 0; }
  #nwpConfigurator .nwp-bottom-left, #nwpConfigurator .nwp-bottom-right { min-width: 0; width: 100%; }
  #nwpConfigurator .nwp-validation-group { gap: 4px 12px; }
  #nwpConfigurator .nwp-val-badge { padding: 2px 0; font-size: 10px; }
  #nwpConfigurator .nwp-price-container { align-items: flex-start; }
  #nwpConfigurator .nwp-price-value { font-size: 16px; }
  #nwpConfigurator .nwp-price-disclaimer { max-width: none; font-size: 10px; }
  #nwpConfigurator .nwp-bottom-actions { display: flex; flex-wrap: wrap; gap: 6px; }
  #nwpConfigurator .nwp-bottom-actions button { white-space: normal; font-size: 11px; padding: 7px 10px; }
  #nwpConfigurator .nwp-canvas-tag { display: none; }
  #nwpConfigurator .nwp-cad-display { padding: 8px; }

}
@media (max-width: 600px) {
  #navbar { padding: 14px 0; background: rgba(250,248,245,.96); }
  .nav-inner { gap: 8px; padding: 0 14px; flex-wrap: wrap; }
  .logo-link { min-width: 0; }
  .neo-text-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 0; font-size: 12px; line-height: 1.35; letter-spacing: .07em; }
  .nav-right { gap: 10px; min-width: 0; }
  #neoNavToggle .neo-toggle-btn { padding: 9px 10px; font-size: 11px; min-height: 38px; }
  .lang-switch { position: absolute; top: 72px; right: 14px; box-shadow: 0 2px 8px #0001; }
  .lang-btn { min-width: 32px; min-height: 30px; }
  .burger { flex-shrink: 0; width: 24px; margin-left: 2px; }
  .hero-left { padding-top: 28px; }
  .hero-ctas { gap: 12px; }
  .hero-ctas > * { text-align: center; justify-content: center; }
  .hero-neo-cta { width: 100%; }
  .hero-credentials-strip { line-height: 1.8; }
  .neo-topbar-left { flex: 1; gap: 8px; }
  .neo-topbar-logo, .neo-topbar-sub, .neo-window-action[aria-label="Maximaliseren"] { display: none; }
  .neo-workspace-modes { gap: 2px; padding: 3px; }
  .neo-mode-pill { flex: 1; padding: 6px !important; font-size: 10px; justify-content: center; min-width: 0; }
  .pill-glyph { display: none; }
  .neo-launcher-screen { padding: 24px 16px; }
  .neo-launcher-heading { font-size: 32px; }
  .neo-launcher-question { font-size: 15px; }
  .neo-launcher-badge { font-size: 9px; }
  .neo-choice-card { padding: 18px 14px; gap: 0 12px; }
  .choice-badge { display: none; }
  #nwpConfigurator .nwp-topbar-center { width: 100%; }
  #nwpConfigurator .nwp-start-project-bar { width: 100%; justify-content: space-between; }
  #nwpConfigurator .nwp-canvas-toolbar { padding: 6px 10px; }
  #nwpConfigurator .nwp-snap-badge { display: none; }
  #nwpConfigurator .nwp-canvas-tools-right { gap: 4px; }
  #nwpConfigurator .nwp-canvas-tool-btn { font-size: 10px; padding: 4px 6px; }
  #nwpConfigurator .geo-cad-footer { font-size: 8px; gap: 4px 8px; }
  #neoChatView .neo-chat-project-banner { padding: 10px 16px; font-size: 11px; }
  #neoChatView .ai-messages { padding: 16px !important; }
  #neoChatView .neo-ent-grid { grid-template-columns: 1fr; }
  #neoChatView .neo-input-bar { margin: 8px 12px 12px; gap: 4px; padding: 8px; }
  .neo-shortcut-hint { display: none; }
  .neo-request-status { margin: 0 16px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .neo-choice-card, .neo-workspace-overlay, .nwp-module-library, .nwp-property-inspector { transition: none; }
}

/* Keep chat settings reachable without exposing hidden controls to keyboard users. */
.neo-settings-toggle { display: none; }
@media (max-width: 1023px) {
  #neoChatView { position: relative; }
  #neoChatView .neo-settings-toggle { display: block; align-self: flex-start; margin: 8px 16px; padding: 6px 12px; border: 1px solid #b7aa96; background: #fbfaf8; color: #302b25; font: inherit; font-size: 13px; cursor: pointer; }
  #neoChatView .neo-left-sidebar { display: flex !important; visibility: hidden; top: 44px; bottom: 0; height: calc(100% - 44px) !important; max-width: calc(100% - 24px); transform: translateX(-100%); }
  #neoChatView .neo-left-sidebar.active { visibility: visible; transform: translateX(0); }
}
