
:root {
  --bg: #f5efe6;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: #fffaf2;
  --text: #1e1f1b;
  --muted: #625f57;
  --accent: #bb5f3d;
  --accent-dark: #8b3f22;
  --line: rgba(30, 31, 27, 0.08);
  --shadow: 0 24px 80px rgba(58, 43, 27, 0.12);
}

/* Current brand artwork overrides the legacy generated mark. */
.brand .brand-mark {
  overflow: hidden;
  border-radius: 8px !important;
  background: #285448 url("app-logo.png?v=planner-2") center / contain no-repeat !important;
}

.brand .brand-mark::before,
.brand .brand-mark::after {
  display: none !important;
}

/* AI Interior chat-only workspace. */
.interior-chat-body .interior-chat-main {
  display: block;
}

.interior-chat-body .interior-workspace {
  display: block;
  min-height: min(720px, calc(100vh - 150px));
  border-radius: 24px;
}

.interior-chat-body .interior-workspace .interior-chat-panel {
  display: flex;
  min-height: inherit;
  flex-direction: column;
  padding: 0;
  border: 0;
}

.interior-chat-body .interior-workspace .interior-thread {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 30px;
  overflow-y: auto;
}

.interior-empty-state {
  display: grid;
  place-content: center;
  min-height: 360px;
  color: #718078;
  text-align: center;
}

.interior-empty-state[hidden] { display: none; }
.interior-empty-state span { color: #315c4e; font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.interior-empty-state p { max-width: 28rem; margin: 8px 0 0; font-size: .95rem; line-height: 1.6; }

.interior-chat-body .interior-workspace .interior-generated-box {
  width: min(100%, 760px);
  min-height: 0;
  margin: 0 auto;
  border: 0;
  background: transparent;
}

.interior-chat-body .interior-workspace .interior-generated-box[hidden] { display: none; }
.interior-chat-body .interior-workspace .generated-image-result img { border-radius: 18px; }

.interior-chat-body .interior-workspace .generated-history {
  width: min(100%, 760px);
  margin: 0 auto;
}

.interior-chat-body .interior-workspace .design-followup-messages {
  display: grid;
  width: min(100%, 760px);
  gap: 10px;
  margin: 0 auto;
}

.interior-chat-body .interior-workspace .followup-message {
  width: fit-content;
  max-width: min(82%, 570px);
  padding: 11px 14px;
  border: 1px solid #d8e4d1;
  border-radius: 16px 16px 16px 5px;
  background: #f2f7ee;
  color: #30463c;
  font-size: .88rem;
  line-height: 1.5;
}

.interior-chat-body .interior-workspace .followup-message.user {
  justify-self: end;
  border-color: #285448;
  border-radius: 16px 16px 5px 16px;
  background: #285448;
  color: #f8fff3;
}

.interior-chat-body .interior-workspace .conversation-image {
  width: min(100%, 760px);
  margin: 2px auto;
  overflow: hidden;
  border: 1px solid rgba(40, 84, 72, .13);
  border-radius: 18px;
  background: #f3f6ee;
}

.interior-chat-body .interior-workspace .conversation-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: contain;
  cursor: zoom-in;
}

.interior-chat-body .interior-workspace .conversation-generation {
  display: grid;
  width: min(100%, 760px);
  min-height: clamp(190px, 32vh, 320px);
  margin: 2px auto;
  place-items: center;
  border: 1px solid rgba(40, 84, 72, .13);
  border-radius: 18px;
  color: #5f756b;
  text-align: center;
}

.interior-chat-body .interior-workspace .conversation-generation strong {
  padding: 24px;
  font-size: .9rem;
  font-weight: 600;
}

.interior-chat-body .interior-workspace .interior-composer {
  position: relative;
  display: grid;
  gap: 9px;
  padding: 15px 20px 18px;
  border-top: 1px solid rgba(40, 84, 72, .12);
  background: rgba(255, 255, 252, .94);
}

.interior-composer-row { display: flex; align-items: end; gap: 9px; }

.composer-project-action-mount { display: block; flex: 0 0 auto; }
.composer-project-action-mount .chat-project-action { border: 1px solid #cbd4ce; background: #fff; }
.composer-project-action-mount .chat-project-action:hover { border-color: #aebbb3; background: #f6f7f4; }
.interior-composer-row .composer-project-action-mount,
.interior-composer-row .chat-project-action { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; }

.interior-add-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  padding: 0;
  border: 1px solid #cbdcc2;
  border-radius: 12px;
  background: #edf5e8;
  color: #285448;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.interior-add-button:hover, .interior-add-button[aria-expanded="true"] { border-color: #aebbb3; background: #f6f7f4; }

.interior-chat-body .interior-workspace .interior-composer textarea {
  min-height: 42px;
  max-height: 130px;
  flex: 1;
  padding: 10px 13px;
  border-radius: 13px;
  overflow-y: hidden;
  resize: none;
}

.interior-chat-body .interior-workspace #interiorSubmitButton {
  width: auto;
  min-height: 42px;
  margin: 0;
  padding: 0 18px;
}

.interior-upload-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 20px;
  z-index: 3;
  display: grid;
  min-width: 172px;
  padding: 6px;
  border: 1px solid #d5e0cd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 68, 55, .14);
}

.interior-upload-menu[hidden] { display: none; }
.interior-upload-menu label { padding: 9px 10px; border-radius: 8px; color: #285448; font-size: .82rem; font-weight: 700; cursor: pointer; }
.interior-upload-menu label:hover { background: #edf5e8; }
.interior-chat-body .interior-workspace .upload-status { min-height: 0; margin: -2px 0 0 51px; font-size: .72rem; }
.interior-upload-preview {
  display: flex;
  gap: 8px;
  margin-left: 51px;
  overflow-x: auto;
  padding: 1px 2px 4px;
}

/* Keep both AI Interior add controls visually consistent after cached theme rules. */
body.interior-chat-body #newInteriorChatButton,
body.interior-chat-body #interiorUploadToggle {
  border: 1px solid #dbe7d4 !important;
  background: #fff !important;
  color: #285448 !important;
  box-shadow: none !important;
}

body.interior-chat-body #newInteriorChatButton:hover,
body.interior-chat-body #interiorUploadToggle:hover,
body.interior-chat-body #interiorUploadToggle[aria-expanded="true"] {
  border-color: #aebbb3 !important;
  background: #f6f7f4 !important;
}
.interior-upload-preview figure {
  display: grid;
  width: 112px;
  flex: 0 0 112px;
  gap: 4px;
  margin: 0;
}
.interior-upload-preview img {
  width: 112px;
  height: 72px;
  object-fit: cover;
  border: 1px solid #d5e0cd;
  border-radius: 10px;
  background: #edf3e9;
  cursor: zoom-in;
}
.interior-upload-preview figcaption {
  overflow: hidden;
  color: #60736a;
  font-size: .66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.interior-composer-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 51px; }
.interior-composer-actions .button { min-height: 32px; padding: 0 11px; font-size: .73rem; }
.interior-composer-actions .conversation-save { margin-left: auto; }

.interior-chat-body .conversation-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.conversation-item-select { display: grid; gap: 3px; min-width: 0; padding: 12px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.conversation-delete { display: grid; width: 28px; height: 28px; place-items: center; margin-right: 6px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #719080; cursor: pointer; }
.conversation-delete:hover { background: #dfeedd; color: #285448; }
.conversation-delete svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

@media (max-width: 760px) {
  .interior-chat-body .interior-workspace { min-height: calc(100vh - 126px); border-radius: 18px; }
  .interior-chat-body .interior-workspace .interior-thread { padding: 20px 14px; }
  .interior-empty-state { min-height: 290px; }
  .interior-chat-body .interior-workspace .interior-composer { padding: 12px; }
  .interior-upload-menu { left: 12px; }
  .interior-upload-preview { margin-left: 0; }
  .interior-composer-actions { padding-left: 0; }
  .interior-composer-actions .conversation-save { margin-left: 0; }
  .interior-chat-body .interior-workspace #interiorSubmitButton { padding: 0 13px; }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(187, 95, 61, 0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(88, 122, 101, 0.18), transparent 28%),
    linear-gradient(180deg, #fcf8f2 0%, var(--bg) 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand p,
.brand span {
  margin: 0;
}

.brand p {
  font-weight: 800;
}

.brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1b4d44, var(--accent));
  color: white;
  font-family: "DM Serif Display", serif;
  font-size: 1.5rem;
}

.topnav {
  display: flex;
  gap: 24px;
}

.topnav a {
  color: var(--text);
  text-decoration: none;
}

.install-app-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #285448;
  font: 800 .88rem "Manrope", sans-serif;
  cursor: pointer;
}

.install-app-button:hover {
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(380px, 0.78fr);
  gap: 8px;
  padding: 28px 0 48px;
}

.topbar .brand > div > p,
.eyebrow {
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 800;
}

.hero h1,
.section-heading h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  line-height: 1.04;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  max-width: 18ch;
}

.hero-text,
.service-card p,
.steps p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-copy {
  position: relative;
  max-width: 56rem;
}

.hero-text-lead {
  font-size: 1.15rem;
  max-width: 44rem;
}

.hero-note {
  max-width: 44rem;
  margin: 0 0 28px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 250, 242, 0.62);
  border-radius: 0 22px 22px 0;
}

.hero-note p {
  margin: 0;
  color: #47443d;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0;
}

.hero-media-placeholder {
  height: 120px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 16px 34px rgba(187, 95, 61, 0.24);
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border-color: var(--line);
}

.hero-points {
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  max-width: 34rem;
}

.hero-points article {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  position: relative;
}

.hero-points article:first-child {
  padding-top: 0;
}

.hero-points article::before {
  content: "";
  width: min(100%, 30rem);
  height: 1px;
  background: rgba(30, 31, 27, 0.1);
}

.hero-points article:first-child::before {
  display: none;
}

.hero-points span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-dark);
}

.hero-points p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-panel,
.service-card,
.steps article {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.hero-panel {
  border-radius: 32px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  max-width: 440px;
  justify-self: end;
  align-self: start;
}

.hero-panel-simple {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35), transparent);
  pointer-events: none;
}

.feature-box {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  padding: 24px;
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(58, 43, 27, 0.08);
}

.feature-box-large {
  min-height: 210px;
}

.feature-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-dark);
}

.feature-box strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.feature-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-link {
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.feature-link:hover {
  transform: translateY(-2px);
  border-color: rgba(187, 95, 61, 0.28);
  box-shadow: 0 24px 46px rgba(58, 43, 27, 0.12);
}

.services,
.workflow {
  padding: 42px 0;
}

.services {
  padding-top: 18px;
}

.services {
  position: relative;
}

.services::before,
.workflow::before {
  content: "";
  position: absolute;
  inset: 14px -18px;
  border-radius: 36px;
  pointer-events: none;
  z-index: 0;
}

.services::before {
  background: linear-gradient(135deg, rgba(187, 95, 61, 0.08), rgba(243, 209, 191, 0.18));
}

.workflow {
  position: relative;
}

.workflow::before {
  background: linear-gradient(135deg, rgba(241, 229, 201, 0.42), rgba(236, 214, 193, 0.42));
}

.section-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
  max-width: 700px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.service-grid,
.steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card,
.steps article {
  border-radius: 26px;
  padding: 24px;
}

.service-card {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.96), rgba(255, 246, 238, 0.92));
  border-color: rgba(187, 95, 61, 0.12);
}

.steps article {
  background:
    linear-gradient(180deg, rgba(255, 249, 241, 0.95), rgba(248, 239, 229, 0.95));
  border-color: rgba(139, 63, 34, 0.1);
}

.service-card h3,
.steps h3 {
  margin: 0 0 12px;
}

.service-card h3 {
  color: #8b3f22;
}

.service-card-link { display: block; color: inherit; text-decoration: none; }

.steps h3 {
  color: #7a4a33;
}

.steps article span {
  display: inline-flex;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #8b3f22;
  background: rgba(187, 95, 61, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
}

@media (max-width: 900px) {
  .topbar,
  .hero {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar {
    gap: 18px;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .service-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: none;
    justify-self: stretch;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-copy,
  .hero-text-lead,
  .hero-note {
    max-width: none;
  }
}

/* Final landing-page accents. These stay last to preserve the feature hierarchy. */
.brand-mark {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #285448 url("app-logo.png?v=studio-5") center / cover no-repeat;
}

.brand-mark::before,
.brand-mark::after {
  display: none;
}

.hero-panel {
  background: #f8faf4;
  border-color: rgba(40, 84, 72, 0.2);
}

.hero-panel .feature-box,
.hero-panel .feature-box:first-child {
  background: #a8c88b;
  color: #10221d;
}

.hero-panel .feature-box strong,
.hero-panel .feature-box p,
.hero-panel .feature-box:first-child p,
.hero-panel .feature-box .feature-kicker,
.hero-panel .feature-box:first-child .feature-kicker {
  color: #10221d;
}

.hero-panel .feature-link:hover {
  background: #bad99c;
}

/* Mobile landing overrides must follow the desktop landing refinements. */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-copy,
  .hero-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .hero-panel {
    justify-self: stretch;
  }

  .hero-panel .feature-box {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    gap: 14px;
    padding: 16px 0;
  }

  .topbar .brand {
    padding-left: 42px;
  }

  .brand > div > span {
    display: none;
  }

  .topnav {
    padding-bottom: 2px;
  }

  .hero {
    gap: 22px;
    padding: 28px 0 42px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 11vw, 3.1rem);
    line-height: .98;
  }

  .hero-text-lead,
  .hero-note,
  .hero-points {
    max-width: none;
  }

  .hero-panel {
    padding: 10px;
    border-radius: 16px;
  }

  .hero-panel .feature-box {
    padding: 18px;
  }

  .hero-panel .feature-box strong {
    font-size: clamp(1.25rem, 6vw, 1.55rem);
  }

  .hero-media-placeholder {
    height: 48px;
  }
}

/* Current brand artwork. Keep this last so legacy theme overrides cannot replace it. */
.brand .brand-mark {
  overflow: hidden;
  border-radius: 8px !important;
  background: #285448 url("app-logo.png?v=planner-1") center / cover no-repeat !important;
}

.brand .brand-mark::before,
.brand .brand-mark::after {
  display: none !important;
}

/* Space Planner brand mark: an architectural S with a small AI accent. */
.brand .brand-mark {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #285448 url("app-logo.png?v=studio-5") center / cover no-repeat;
  box-shadow: 0 7px 18px rgba(40, 84, 72, .16);
}

.brand .brand-mark::before,
.brand .brand-mark::after {
  display: none;
}

/* Final navigation and account overrides. */
@media (min-width: 721px) {
  .topbar .topnav {
    gap: clamp(14px, 1.55vw, 24px);
  }

  .topbar .topnav > a {
    font-weight: 450;
    letter-spacing: 0;
  }

  .topbar .topnav > .topnav-service {
    font-weight: 550;
    letter-spacing: .012em;
  }
}

.account-body .account-panel {
  padding: 12px 0 12px clamp(28px, 4vw, 52px);
  border: 0;
  border-left: 1px solid rgba(40, 84, 72, .2);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.account-body .account-panel-heading {
  margin-bottom: 10px;
  padding: 0 0 20px;
}

.account-body .account-session {
  padding: 24px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-body .account-form,
.account-body .account-form:first-child {
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-body .account-form:first-child {
  border-right: 1px solid rgba(40, 84, 72, .12);
}

@media (max-width: 720px) {
  .topbar .brand {
    padding-left: 0;
  }

  .topbar .topnav {
    gap: 2px;
  }

  .topbar .settings-menu-button {
    display: flex;
    width: 100%;
    height: 44px;
    justify-content: flex-start;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
  }

  .settings-menu-panel {
    position: static;
    width: 100%;
    margin-top: 2px;
    padding: 4px 4px 4px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 620px) {
  .account-body .account-panel {
    padding: 24px 0 0;
    border-top: 1px solid rgba(40, 84, 72, .18);
    border-left: 0;
    border-radius: 0;
  }

  .account-body .account-form,
  .account-body .account-form:first-child {
    padding: 18px 0 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(40, 84, 72, .12);
  }
}

/* Compact global navigation and settings menu. */
.topbar .topnav {
  gap: clamp(14px, 1.55vw, 24px);
}

.topbar .topnav > a {
  font-weight: 450;
  letter-spacing: 0;
}

.topbar .topnav > .topnav-service {
  font-weight: 550;
  letter-spacing: .012em;
}

.settings-menu {
  position: relative;
  flex: 0 0 auto;
}

.settings-menu-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(40, 84, 72, .14);
  border-radius: 50%;
  background: rgba(255, 255, 252, .72);
  color: #285448;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.settings-menu-button:hover,
.settings-menu.is-open .settings-menu-button {
  border-color: rgba(40, 84, 72, .3);
  background: #e8f3df;
}

.settings-menu-button:focus-visible {
  outline: 3px solid rgba(80, 116, 95, .2);
  outline-offset: 3px;
}

.settings-menu-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
  transform-origin: center;
  transition: transform 180ms ease;
}

.settings-menu.is-open .settings-menu-button svg {
  transform: rotate(30deg);
}

.settings-menu-panel {
  position: absolute;
  z-index: 45;
  top: calc(100% + 11px);
  right: 0;
  display: none;
  width: 220px;
  padding: 7px;
  border: 1px solid rgba(40, 84, 72, .14);
  border-radius: 15px;
  background: rgba(255, 255, 252, .98);
  box-shadow: 0 18px 46px rgba(31, 68, 55, .14);
}

.settings-menu.is-open .settings-menu-panel {
  display: grid;
}

.topbar .settings-menu-panel > a {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0 11px;
  border-radius: 9px;
  color: #28483d;
  font-size: .9rem;
  font-weight: 450;
  text-decoration: none;
}

.topbar .settings-menu-panel > a:hover,
.topbar .settings-menu-panel > a[aria-current="page"] {
  background: #fff;
  color: #183c32;
  text-decoration: none;
}

.settings-language-slot {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid rgba(40, 84, 72, .1);
}

.settings-language-slot .language-switcher,
.settings-language-slot .language-switcher-button {
  width: 100%;
}

.settings-language-slot .language-switcher-button {
  display: flex;
  min-height: 40px;
  align-items: center;
  padding: 0 11px;
  border-radius: 9px;
  color: #28483d;
  font-size: .9rem;
  font-weight: 450;
  text-align: left;
}

.settings-language-slot .language-switcher-button:hover {
  background: #fff;
}

.settings-language-slot .language-switcher-menu {
  top: calc(100% + 8px);
  right: 0;
}

/* Open, editorial account layout instead of nested cards. */
.account-body .account-panel {
  position: relative;
  padding: 12px 0 12px clamp(28px, 4vw, 52px);
  border: 0;
  border-left: 1px solid rgba(40, 84, 72, .2);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.account-body .account-panel::before {
  position: absolute;
  top: 0;
  left: -2px;
  width: 3px;
  height: 74px;
  border-radius: 999px;
  background: #285448;
  content: "";
}

.account-body .account-panel-heading {
  margin-bottom: 10px;
  padding: 0 0 20px;
  border-bottom-color: rgba(40, 84, 72, .14);
}

.account-body .account-panel-heading h2 {
  font-size: 1.65rem;
  font-weight: 650;
}

.account-body .account-panel-icon {
  width: 35px;
  height: 35px;
  flex-basis: 35px;
  border: 1px solid rgba(40, 84, 72, .2);
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 10px rgba(80, 116, 95, .12);
}

.account-body .account-session {
  gap: 9px;
  padding: 24px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-body .account-session h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
}

.account-body .account-session > span {
  color: #50745f;
  font-weight: 650;
}

.account-body .account-session > div {
  gap: 10px;
  margin-top: 14px;
}

.account-body .account-session .button {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 550;
}

.account-body .account-form {
  padding: 20px 20px 22px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.account-body .account-form:first-child {
  padding-right: 24px;
  border-right: 1px solid rgba(40, 84, 72, .12);
  background: transparent;
}

@media (max-width: 720px) {
  .topbar .topnav {
    gap: 2px;
  }

  .topbar .settings-menu-button {
    display: flex;
    width: 100%;
    height: 44px;
    justify-content: flex-start;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
  }

  .settings-menu.is-open .settings-menu-button {
    transform: none;
  }

  .settings-menu-panel {
    position: static;
    width: 100%;
    margin-top: 2px;
    padding: 4px 4px 4px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .settings-language-slot .language-switcher-menu {
    position: static;
    width: 100%;
    max-height: 220px;
    margin-top: 4px;
    box-shadow: none;
  }
}

@media (max-width: 620px) {
  .topbar .brand {
    padding-left: 0;
  }

  .account-body .account-panel {
    padding: 24px 0 0;
    border-top: 1px solid rgba(40, 84, 72, .18);
    border-left: 0;
  }

  .account-body .account-panel::before {
    top: -2px;
    left: 0;
    width: 72px;
    height: 3px;
  }

  .account-body .account-form,
  .account-body .account-form:first-child {
    padding: 18px 0 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(40, 84, 72, .12);
  }
}

/* Desktop navigation sizing for the complete product menu. */
@media (min-width: 721px) {
  .topnav {
    align-items: center;
    gap: clamp(9px, 1.15vw, 18px);
  }
  .topnav a {
    padding: 7px 0;
    font-size: clamp(.75rem, .78vw, .88rem);
    font-weight: 650;
    white-space: nowrap;
  }
  .topnav .topnav-service {
    color: #285448;
    font-weight: 800;
    letter-spacing: .025em;
    text-transform: uppercase;
  }
}

/* Project explorer: one quiet workspace instead of a collection of cards. */
.workspace-body {
  background:
    radial-gradient(circle at 92% 8%, rgba(185, 216, 159, .18), transparent 27rem),
    #f6f7f3;
}

.workspace-body .workspace-main {
  padding: 38px 0 88px;
}

.workspace-body .workspace-heading {
  max-width: none;
  margin-bottom: 24px;
}

.workspace-body .workspace-heading h1 {
  max-width: none;
  margin: 6px 0 8px;
  font-size: clamp(2.25rem, 4.5vw, 3.7rem);
}

.workspace-body .workspace-heading > p:last-child {
  max-width: 680px;
  margin: 0;
}

.workspace-body .file-manager {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 0;
  min-height: 590px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d9e0d5;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 54px rgba(35, 64, 52, .07);
}

.file-manager-commandbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 9px 14px;
  border-bottom: 1px solid #e0e5dd;
  background: #fbfcfa;
}

.file-manager-primary-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.explorer-command,
.explorer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #30483f;
  font: 650 .8rem/1 "Manrope", sans-serif;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.explorer-command:hover,
.explorer-action:hover {
  border-color: #d5dfd0;
  background: #f0f5ec;
  color: #1f5142;
}

.explorer-command-primary {
  background: #e5f1dc;
  color: #244f42;
}

.explorer-command svg,
.folder-breadcrumb svg,
.folder-tree-icon svg,
.workspace-item-preview svg,
.item-remove svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.explorer-command svg {
  width: 19px;
  height: 19px;
}

.file-manager-count {
  color: #708078;
  font-size: .74rem;
}

.workspace-body .workspace-sidebar {
  min-width: 0;
  padding: 18px 12px;
  border: 0;
  border-right: 1px solid #e0e5dd;
  background: #f8faf7;
}

.workspace-body .workspace-sidebar-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 7px 12px;
}

.workspace-body .workspace-sidebar-heading strong {
  font-size: .9rem;
}

.workspace-body .workspace-sidebar-heading span {
  color: #849087;
  font-size: .66rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.workspace-body .folder-quick-form {
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0 3px 12px;
  padding: 10px;
  border: 1px solid #d6e0d1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(36, 79, 66, .06);
}

.workspace-body .folder-quick-form[hidden] {
  display: none;
}

.workspace-body .folder-quick-form input,
.workspace-body .folder-quick-form select {
  grid-column: 1 / -1;
  height: 36px;
  border-radius: 6px;
}

.workspace-body .folder-quick-form .button {
  width: auto;
  min-height: 34px;
  padding: 0 8px;
  border-radius: 6px;
}

.workspace-body .folder-tree {
  display: grid;
  gap: 1px;
  margin: 0;
}

.workspace-body .folder-tree-branch {
  display: grid;
  gap: 1px;
}

.workspace-body .folder-tree-item {
  grid-template-columns: 19px minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 35px;
  padding: 5px 8px 5px calc(8px + var(--folder-depth, 0) * 14px);
  border: 0;
  border-radius: 6px;
}

.workspace-body .folder-tree-item:hover {
  background: #edf2ea;
}

.workspace-body .folder-tree-item.folder-active {
  border: 0;
  background: #dfeedd;
  color: #1f5142;
  box-shadow: inset 3px 0 #51826c;
}

.workspace-body .folder-tree-icon {
  display: grid;
  place-items: center;
  color: #6f8e72;
}

.workspace-body .folder-tree-icon svg {
  width: 17px;
  height: 17px;
}

.workspace-body .folder-tree-item strong {
  font-size: .8rem;
  font-weight: 600;
}

.workspace-body .folder-tree-item small {
  min-width: 17px;
  color: #7c8981;
  text-align: right;
}

.workspace-body .workspace-content {
  min-width: 0;
  padding: 0 18px 22px;
}

.workspace-body .file-manager-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px) auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin: 0 -18px;
  padding: 9px 18px;
  border-bottom: 1px solid #e4e8e1;
}

.folder-breadcrumb {
  display: flex !important;
  grid-auto-flow: column;
  align-items: center;
  justify-content: start;
  gap: 7px !important;
  min-width: 0;
}

.folder-breadcrumb span {
  color: #718079;
  white-space: nowrap;
}

.folder-breadcrumb svg {
  width: 15px;
  height: 15px;
  color: #9aa49e;
}

.workspace-body .file-manager-toolbar strong {
  overflow: hidden;
  color: #203f35;
  font: 650 .88rem/1.3 "Manrope", sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-body .workspace-search {
  display: flex;
  width: min(320px, 42%);
  min-width: 180px;
  height: 36px;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid #d7dfd3;
  border-radius: 8px;
  background: #f8faf7;
  color: #75827b;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.workspace-body .workspace-search:focus-within {
  border-color: #7fa18b;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(81, 130, 108, .11);
}

.workspace-body .workspace-search svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.workspace-body .workspace-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #203f35;
  font: 500 .78rem/1 "Manrope", sans-serif;
}

.workspace-body .workspace-search input::placeholder {
  color: #89958e;
}

.workspace-body .folder-action-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.workspace-body .folder-action-bar[hidden] {
  display: none;
}

.workspace-body .folder-action-bar select {
  width: 128px;
  height: 34px;
  border-color: #d7dfd3;
  border-radius: 6px;
  font-size: .72rem;
}

.workspace-body .explorer-action {
  min-height: 34px;
  padding: 0 9px;
  font-size: .72rem;
}

.workspace-body .explorer-action-danger {
  color: #8d4639;
}

.workspace-body .explorer-action-danger:hover {
  border-color: #ead1ca;
  background: #fbefeb;
  color: #853629;
}

.workspace-body .workspace-feedback {
  margin: 9px 0 0;
}

.workspace-body .folder-create-form {
  grid-template-columns: minmax(180px, 1fr) auto auto;
  margin: 12px 0 0;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: #f2f6ef;
}

.workspace-body .folder-create-form input {
  height: 40px;
}

.workspace-body .item-selection-toolbar {
  margin: 12px 0 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: #e8f2e2;
}

.file-list-heading {
  display: grid;
  grid-template-columns: 26px minmax(220px, 1fr) minmax(120px, .38fr) 100px 64px;
  align-items: center;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 8px;
  border-bottom: 1px solid #dfe4dc;
  color: #77827c;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.file-list-heading span:first-child {
  grid-column: 2;
}

.workspace-body .workspace-items {
  display: block;
  margin-top: 0;
}

.workspace-body .workspace-item {
  display: grid;
  grid-template-columns: 26px minmax(220px, 1fr) minmax(120px, .38fr) 100px 64px;
  gap: 0;
  min-height: 58px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px solid #edf0eb;
  border-radius: 0;
  background: transparent;
  transition: background .15s ease;
}

.workspace-body .workspace-item:hover {
  background: #f4f7f2;
}

.workspace-body .workspace-item:has(.item-select:checked) {
  border-color: #dbe7d5;
  background: #eaf3e5;
}

.workspace-body .item-selector {
  align-self: center;
}

.workspace-body .item-selector input {
  width: 15px;
  height: 15px;
}

.workspace-body .workspace-item-open {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 0 10px 0 0;
}

.workspace-body .workspace-item-preview {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #e8f1e3;
  color: #527561;
  font-size: 1rem;
}

.workspace-body .workspace-item-preview svg {
  width: 21px;
  height: 21px;
}

.workspace-body .workspace-item-info {
  display: block;
}

.workspace-body .workspace-item-info strong {
  display: block;
  color: #253c34;
  font-size: .8rem;
  font-weight: 650;
}

.workspace-item-kind,
.workspace-item-date {
  overflow: hidden;
  color: #6f7c75;
  font-size: .73rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-body .workspace-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.workspace-body .workspace-item-secondary,
.workspace-body .item-remove {
  display: grid;
  place-items: center;
  width: 29px;
  min-width: 29px;
  height: 29px;
  min-height: 29px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #68776f;
  font-size: .66rem;
}

.workspace-body .workspace-item-secondary:hover,
.workspace-body .item-remove:hover {
  border-color: #d6dfd2;
  background: #fff;
  color: #275548;
}

.workspace-body .item-remove svg {
  width: 16px;
  height: 16px;
}

.workspace-body .workspace-empty {
  min-height: 250px;
  padding: 80px 20px;
  text-align: center;
}

@media (max-width: 820px) {
  .workspace-body .workspace-main {
    padding-top: 28px;
  }

  .workspace-body .file-manager {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .workspace-body .workspace-sidebar {
    padding: 13px 12px;
    border-right: 0;
    border-bottom: 1px solid #e0e5dd;
  }

  .workspace-body .workspace-sidebar-heading {
    margin-bottom: 8px;
  }

  .workspace-body .folder-tree,
  .workspace-body .folder-tree-branch {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
  }

  .workspace-body .folder-tree {
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .workspace-body .folder-tree-branch {
    display: contents;
  }

  .workspace-body .folder-tree-item {
    flex: 0 0 auto;
    width: auto;
    padding: 6px 10px;
  }

  .workspace-body .workspace-content {
    padding-bottom: 16px;
  }

  .workspace-body .file-manager-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .workspace-body .folder-action-bar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .workspace-body .folder-action-bar select {
    flex: 1 1 140px;
    width: auto;
    max-width: none;
  }

  .file-list-heading {
    display: none;
  }

  .workspace-body .workspace-items {
    margin-top: 10px;
  }

  .workspace-body .workspace-item {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    min-height: 62px;
    padding: 7px 5px;
  }

  .workspace-body .item-selector {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .workspace-body .workspace-item-open {
    grid-column: 2;
    grid-row: 1;
  }

  .workspace-body .workspace-item-kind {
    grid-column: 2;
    grid-row: 2;
    padding-left: 48px;
  }

  .workspace-body .workspace-item-date {
    display: none;
  }

  .workspace-body .workspace-item-actions {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

@media (max-width: 520px) {
  .workspace-body .workspace-heading h1 {
    font-size: 2.35rem;
  }

  .file-manager-commandbar {
    align-items: flex-start;
    gap: 8px;
  }

  .file-manager-count {
    max-width: 90px;
    padding-top: 4px;
    text-align: right;
  }

  .explorer-command {
    padding: 0 9px;
  }

  .workspace-body .folder-quick-form,
  .workspace-body .folder-create-form {
    grid-template-columns: 1fr;
  }

  .workspace-body .folder-quick-form .button,
  .workspace-body .folder-create-form .button {
    width: 100%;
  }

  .workspace-body .item-selection-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Project explorer interactions: collapsible tree and large-icon workspace. */
.workspace-body .folder-tree-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  padding-left: calc(var(--folder-depth, 0) * 14px);
}

.workspace-body .folder-tree-toggle,
.workspace-body .folder-tree-toggle-placeholder {
  display: grid;
  width: 20px;
  height: 32px;
  place-items: center;
}

.workspace-body .folder-tree-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: #7a8981;
  cursor: pointer;
}

.workspace-body .folder-tree-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .16s ease;
}

.workspace-body .folder-tree-toggle.is-expanded svg {
  transform: rotate(90deg);
}

.workspace-body .folder-tree-row .folder-tree-item {
  min-height: 32px;
  padding: 4px 7px;
}

.workspace-body .folder-tree-root {
  margin-bottom: 2px;
}

.workspace-body .folder-add-menu-wrap {
  position: relative;
}

.workspace-body .folder-add-button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid #d3ded0;
  border-radius: 7px;
  background: #e7f1e0;
  color: #285448;
  cursor: pointer;
}

.workspace-body .folder-add-button:hover {
  background: #dcebd3;
}

.workspace-body .folder-add-button svg,
.workspace-body .folder-add-menu svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-body .folder-add-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 12;
  display: grid;
  width: 190px;
  padding: 6px;
  border: 1px solid #d9e1d5;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(30, 55, 46, .15);
}

.workspace-body .folder-add-menu[hidden] {
  display: none;
}

.workspace-body .folder-add-menu button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #2d443b;
  font: 600 .78rem/1.2 "Manrope", sans-serif;
  text-align: left;
  cursor: pointer;
}

.workspace-body .folder-add-menu button:hover {
  background: #eef4ea;
}

.workspace-body .item-selection-toolbar span {
  color: #66766e;
  font-size: .72rem;
}

.workspace-body .workspace-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  align-content: start;
  gap: 8px;
  margin: 14px 0 0;
}

.workspace-body .workspace-entry {
  position: relative;
  min-width: 0;
  min-height: 154px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  transition: border-color .15s ease, background .15s ease;
}

.workspace-body .workspace-entry:hover {
  border-color: #e0e7dc;
  background: #f6f8f4;
}

.workspace-body .workspace-entry:has(.entry-selector input:checked) {
  border-color: #b9cfaf;
  background: #eaf3e5;
}

.workspace-body .workspace-entry.entry-is-cut {
  opacity: .45;
}

.workspace-body .entry-selector {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 4;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 5px;
  background: rgba(255, 255, 255, .9);
  opacity: 0;
  cursor: pointer;
  transition: opacity .14s ease;
}

.workspace-body .workspace-entry:hover .entry-selector,
.workspace-body .entry-selector:has(input:checked),
.workspace-body .entry-selector:focus-within {
  opacity: 1;
}

.workspace-body .entry-selector input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #285448;
}

.workspace-body .workspace-entry-open {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 152px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  padding: 13px 8px 10px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: #293f37;
  font: inherit;
  text-align: center;
  cursor: pointer;
}

.workspace-body .workspace-entry-open:focus-visible {
  outline: 2px solid rgba(40, 84, 72, .32);
  outline-offset: -2px;
}

.workspace-body .workspace-entry-open strong {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workspace-body .workspace-entry-open small {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #7a867f;
  font-size: .63rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-body .folder-entry-visual,
.workspace-body .workspace-entry-preview {
  position: relative;
  display: grid;
  width: 102px;
  height: 86px;
  flex: 0 0 86px;
  place-items: center;
  overflow: hidden;
}

.workspace-body .folder-entry-icon {
  width: 86px;
  height: 69px;
  overflow: visible;
  filter: drop-shadow(0 6px 8px rgba(40, 68, 55, .1));
  transition: filter .16s ease, transform .16s ease;
}

.workspace-body .folder-icon-back {
  fill: #bcd3b5;
  stroke: #789b7f;
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.workspace-body .folder-icon-front {
  fill: #d9e7d4;
  stroke: #789b7f;
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.workspace-body .folder-icon-highlight {
  fill: none;
  stroke: rgba(255, 255, 255, .72);
  stroke-linecap: round;
  stroke-width: 1.4;
}

.workspace-body .workspace-folder-entry:hover .folder-entry-icon {
  filter: drop-shadow(0 7px 10px rgba(40, 68, 55, .15));
  transform: translateY(-1px);
}

.workspace-body .workspace-entry-preview {
  border: 1px solid #dde5da;
  border-radius: 7px;
  background: #edf3e9;
  color: #5c7b68;
}

.workspace-body .workspace-entry-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workspace-body .workspace-entry-preview svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-body .workspace-entry-actions {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 4;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity .14s ease;
}

.workspace-body .workspace-entry:hover .workspace-entry-actions,
.workspace-body .workspace-entry:focus-within .workspace-entry-actions {
  opacity: 1;
}

.workspace-body .workspace-entry-actions .workspace-item-secondary,
.workspace-body .workspace-entry-actions .item-remove {
  background: rgba(255, 255, 255, .92);
}

.entry-context-menu {
  position: fixed;
  z-index: 120;
  display: grid;
  width: 174px;
  padding: 6px;
  border: 1px solid rgba(40, 84, 72, .14);
  border-radius: 12px;
  background: rgba(255, 255, 252, .98);
  box-shadow: 0 18px 48px rgba(25, 53, 43, .17);
}

.entry-context-menu[hidden] {
  display: none;
}

.entry-context-menu button {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #28483d;
  font: 550 .86rem/1.2 "Manrope", sans-serif;
  text-align: left;
  cursor: pointer;
}

.entry-context-menu button:hover,
.entry-context-menu button:focus-visible {
  outline: 0;
  background: #fff;
}

.entry-context-menu svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entry-operation-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(40, 84, 72, .15);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 28px 90px rgba(25, 42, 33, .22);
}

.entry-operation-dialog::backdrop {
  background: rgba(19, 31, 27, .42);
  backdrop-filter: blur(3px);
}

.entry-operation-dialog form {
  display: grid;
  gap: 22px;
  padding: 22px;
}

.entry-operation-dialog header,
.entry-operation-dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.entry-operation-dialog h2 {
  margin: 0;
  font: 700 1.3rem/1.2 "Outfit", sans-serif;
}

.entry-operation-dialog label {
  display: grid;
  gap: 7px;
  color: #285448;
  font-size: .78rem;
  font-weight: 700;
}

.entry-operation-dialog input,
.entry-operation-dialog select {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #cbd8bf;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: 500 .9rem/1 "Manrope", sans-serif;
}

.entry-operation-dialog input:focus,
.entry-operation-dialog select:focus {
  outline: 3px solid rgba(80, 116, 95, .14);
  border-color: #6f947d;
}

.entry-operation-dialog footer {
  justify-content: flex-end;
}

.workspace-body .workspace-empty {
  grid-column: 1 / -1;
  min-height: 300px;
  padding: 112px 20px;
  text-align: center;
}

@media (max-width: 820px) {
  .workspace-body .file-manager-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .workspace-body .workspace-search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    margin-left: 0;
  }

  .workspace-body .folder-tree,
  .workspace-body .folder-tree-branch {
    display: grid;
  }

  .workspace-body .folder-tree {
    max-height: 230px;
    padding: 0 3px 4px 0;
    overflow: auto;
  }

  .workspace-body .folder-tree-branch {
    gap: 1px;
  }

  .workspace-body .folder-tree-item {
    width: 100%;
  }

  .workspace-body .workspace-items {
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  }

  .workspace-body .workspace-entry {
    min-height: 142px;
  }

  .workspace-body .workspace-entry-open {
    min-height: 140px;
  }

  .workspace-body .folder-entry-visual,
  .workspace-body .workspace-entry-preview {
    width: 90px;
    height: 76px;
    flex-basis: 76px;
  }

  .workspace-body .workspace-entry-actions,
  .workspace-body .entry-selector {
    opacity: 1;
  }
}

@media (max-width: 520px) {
  .workspace-body .workspace-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .workspace-body .folder-add-menu {
    right: auto;
    left: 0;
  }

  .workspace-body .item-selection-toolbar span {
    line-height: 1.5;
  }
}

/* Keep an empty AI Interior chat compact; only the chat list itself scrolls. */
@media (min-width: 961px) {
  .interior-chat-body .interior-workspace,
  .interior-chat-body .interior-chat-panel {
    min-height: 0;
  }

  .interior-chat-body .interior-workspace .interior-chat-panel {
    height: auto;
  }

  .interior-chat-body .interior-workspace .interior-thread {
    min-height: 0;
    flex: 0 0 auto;
    padding: 0;
  }

  .interior-chat-body .interior-empty-state {
    display: none;
  }

  .interior-chat-body .interior-conversation-rail {
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .interior-chat-body .conversation-rail-list {
    min-height: 0;
    max-height: 210px;
    overflow-y: auto;
  }
}

/* Compact conversation drawer: it never reserves a permanent empty column. */
.interior-chat-body .conversation-drawer-toggle {
  position: fixed;
  z-index: 81;
  top: 106px;
  left: max(20px, calc((100vw - 1240px) / 2));
  display: grid;
  place-items: center;
}

.interior-chat-body .interior-conversation-rail {
  position: fixed;
  z-index: 80;
  top: 158px;
  left: max(20px, calc((100vw - 1240px) / 2));
  display: none;
  width: min(280px, calc(100vw - 40px));
  height: auto;
  min-height: 0;
  max-height: min(560px, calc(100vh - 178px));
  gap: 12px;
  padding: 14px;
  overflow: hidden;
}

.interior-chat-body .interior-conversation-rail.is-open { display: flex; }
.interior-chat-body .conversation-rail-list { flex: 0 1 auto; max-height: min(370px, calc(100vh - 310px)); }
.interior-chat-body .conversation-save { margin-top: 0; }

@media (max-width: 760px) {
  .interior-chat-body .conversation-drawer-toggle { top: 96px; left: 14px; }
  .interior-chat-body .interior-conversation-rail {
    top: 146px;
    left: 12px;
    width: min(292px, calc(100vw - 24px));
    max-height: calc(100vh - 164px);
  }
  .interior-chat-body .conversation-rail-list { max-height: calc(100vh - 300px); }
}

/* Desktop keeps the saved chats beside the workspace, at exactly the same height. */
@media (min-width: 961px) {
  .interior-chat-body .interior-chat-main {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
  }

  .interior-chat-body .conversation-drawer-toggle { display: none; }

  .interior-chat-body .interior-conversation-rail {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    width: auto;
    height: min(720px, calc(100vh - 150px));
    min-height: 0;
    max-height: none;
    padding: 20px;
    transform: none;
  }

  .interior-chat-body .conversation-rail-list {
    flex: 1 1 auto;
    max-height: none;
    overflow-y: auto;
  }
}

/* Organic visual refinement for the landing page. The content and interactions stay unchanged. */
body.home-page {
  background:
    radial-gradient(58rem 40rem at -12% -14%, rgba(172, 209, 161, .48), transparent 64%),
    radial-gradient(44rem 32rem at 105% 16%, rgba(216, 231, 201, .68), transparent 62%),
    linear-gradient(160deg, #f7f8f2 0%, #f3f5ee 48%, #f8f7f2 100%);
  overflow-x: clip;
}

.home-page .page-shell {
  position: relative;
}

.home-page .topbar {
  position: relative;
  margin-bottom: 10px;
  padding: 20px 0 18px;
  border-bottom-color: rgba(35, 72, 60, .13);
}

.home-page .topnav a {
  position: relative;
  padding: 6px 0;
  transition: color 180ms ease;
}

.home-page .topnav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: #355b50;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.home-page .topnav a:hover {
  color: #183c32;
}

.home-page .topnav a:hover::after {
  transform: scaleX(1);
}

.home-page .hero {
  position: relative;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  gap: clamp(42px, 7vw, 106px);
  padding: clamp(54px, 8vw, 106px) 0 clamp(70px, 10vw, 130px);
}

.home-page .hero::before {
  position: absolute;
  top: 6%;
  left: 40%;
  width: clamp(170px, 19vw, 310px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(53, 91, 80, .14);
  border-radius: 48% 52% 62% 38% / 43% 48% 52% 57%;
  transform: rotate(-14deg);
  pointer-events: none;
}

.home-page .hero-copy {
  z-index: 1;
}

.home-page .hero h1 {
  max-width: 12.5ch;
  margin-bottom: 24px;
  color: #172b25;
  font-family: "Segoe UI Variable Display", "Aptos Display", "Segoe UI Variable", sans-serif;
  font-size: clamp(3.3rem, 5.5vw, 5.9rem);
  font-weight: 680;
  letter-spacing: -.065em;
  line-height: .94;
}

.home-page .hero-text-lead {
  max-width: 35rem;
  color: #52635b;
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
}

.home-page .hero-note {
  max-width: 34rem;
  margin: 26px 0 0;
  padding: 0 0 0 18px;
  border-left: 2px solid rgba(53, 91, 80, .5);
  background: transparent;
}

.home-page .hero-note p {
  color: #66736c;
}

.home-page .hero-media-placeholder {
  height: clamp(42px, 7vw, 92px);
}

.home-page .hero-points {
  max-width: 37rem;
}

.home-page .hero-points article {
  padding: 17px 0;
}

.home-page .hero-points article::before {
  width: min(100%, 34rem);
  background: linear-gradient(90deg, rgba(53, 91, 80, .28), rgba(53, 91, 80, 0));
}

.home-page .hero-points span,
.home-page .eyebrow {
  color: #376a57;
}

.home-page .hero-panel {
  z-index: 1;
  align-self: center;
  padding: 12px 0 12px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.home-page .hero-panel::before {
  inset: 10px -18px -12px 24px;
  border-radius: 38% 62% 55% 45% / 44% 43% 57% 56%;
  background: linear-gradient(145deg, rgba(184, 214, 159, .44), rgba(239, 245, 229, .78));
}

.home-page .hero-panel-simple {
  gap: 13px;
}

.home-page .hero-panel .feature-box {
  border: 1px solid rgba(32, 71, 59, .08);
  border-radius: 22px 22px 22px 7px;
  padding: 24px 25px;
  background: rgba(248, 251, 243, .84);
  box-shadow: 0 18px 42px rgba(31, 68, 55, .08);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.home-page .hero-panel .feature-box:first-child {
  padding: 29px 28px;
  background: linear-gradient(145deg, #356757, #5f8d71);
  color: #f8fbf4;
}

.home-page .hero-panel .feature-box:nth-child(2) {
  margin-left: 28px;
  background: rgba(213, 230, 190, .94);
}

.home-page .hero-panel .feature-box:nth-child(3) {
  margin-right: 19px;
  background: rgba(237, 244, 229, .94);
}

.home-page .hero-panel .feature-box strong {
  font-size: clamp(1.3rem, 1.8vw, 1.65rem);
}

.home-page .hero-panel .feature-box:first-child strong,
.home-page .hero-panel .feature-box:first-child p,
.home-page .hero-panel .feature-box:first-child .feature-kicker {
  color: #f8fbf4;
}

.home-page .hero-panel .feature-box:hover {
  background: #eff6e5;
  box-shadow: 0 24px 48px rgba(31, 68, 55, .14);
  transform: translate3d(0, -5px, 0);
}

.home-page .hero-panel .feature-box:first-child:hover {
  background: linear-gradient(145deg, #2d5a4a, #568267);
}

.home-page .services,
.home-page .workflow {
  position: relative;
  padding: clamp(66px, 8vw, 112px) 0;
}

.home-page .services::before,
.home-page .workflow::before {
  display: block;
  inset: auto;
  z-index: 0;
  width: min(54vw, 760px);
  height: 1px;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(53, 91, 80, .48), transparent);
}

.home-page .services::before {
  top: 28px;
  left: 8%;
}

.home-page .workflow::before {
  top: 26px;
  right: 5%;
  left: auto;
  transform: rotate(180deg);
}

.home-page .section-heading {
  max-width: 44rem;
  margin-bottom: 42px;
}

.home-page .section-heading h2 {
  color: #1d352c;
  font-family: "Segoe UI Variable Display", "Aptos Display", "Segoe UI Variable", sans-serif;
  font-size: clamp(2.4rem, 4.2vw, 4.35rem);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: .98;
}

.home-page .service-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 0 clamp(30px, 6vw, 84px);
}

.home-page .service-card,
.home-page .steps article {
  border: 0;
  border-top: 1px solid rgba(53, 91, 80, .22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .service-card {
  padding: 25px 0 31px;
}

.home-page .service-card:first-child {
  padding-right: min(9vw, 110px);
}

.home-page .service-card h3,
.home-page .steps h3 {
  color: #244c3f;
  font-size: 1.25rem;
}

.home-page .service-card p,
.home-page .steps p {
  max-width: 31rem;
  color: #607069;
}

.home-page .workflow .steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
}

.home-page .steps article {
  padding: 22px 0 0;
}

.home-page .steps article:nth-child(2) {
  margin-top: 30px;
}

.home-page .steps article span {
  margin-bottom: 17px;
  padding: 0;
  color: #5d846d;
  background: transparent;
  font-size: .78rem;
  letter-spacing: .13em;
}

@media (max-width: 900px) {
  .home-page .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  .home-page .hero h1 {
    max-width: 14ch;
  }

  .home-page .hero-panel {
    width: min(100%, 620px);
    padding-left: 12px;
    justify-self: start;
  }

  .home-page .workflow .steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .home-page .steps article:nth-child(2) {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .home-page .hero {
    gap: 36px;
    padding-top: 46px;
  }

  .home-page .hero::before {
    top: 6%;
    left: 50%;
    width: 150px;
  }

  .home-page .hero h1 {
    max-width: 10.5ch;
    font-size: clamp(2.7rem, 13vw, 3.85rem);
  }

  .home-page .hero-panel {
    padding-left: 4px;
  }

  .home-page .hero-panel .feature-box,
  .home-page .hero-panel .feature-box:first-child {
    padding: 21px;
  }

  .home-page .hero-panel .feature-box:nth-child(2) {
    margin-left: 12px;
  }

  .home-page .hero-panel .feature-box:nth-child(3) {
    margin-right: 8px;
  }

  .home-page .services,
  .home-page .workflow {
    padding: 72px 0;
  }

  .home-page .service-grid {
    grid-template-columns: 1fr;
  }

  .home-page .service-card:first-child {
    padding-right: 0;
  }
}

/* Compact mobile navigation: the existing links become a clear vertical menu. */
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 720px) {
  .topbar {
    position: relative;
    z-index: 70;
    display: flex !important;
    grid-template-columns: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .topbar .brand {
    min-width: 0;
  }

  .mobile-nav-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    place-content: center;
    gap: 5px;
    border: 1px solid rgba(53, 91, 80, .2);
    border-radius: 13px;
    background: rgba(255, 255, 252, .84);
    box-shadow: 0 8px 22px rgba(31, 68, 55, .08);
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 2px;
    background: #285448;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-nav-open .mobile-nav-toggle span:first-child {
    transform: translateY(6.5px) rotate(45deg);
  }

  .mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-open .mobile-nav-toggle span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .topbar .topnav {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: grid;
    width: auto;
    max-height: calc(100vh - 112px);
    padding: 8px;
    overflow-y: auto;
    border: 1px solid rgba(53, 91, 80, .15);
    border-radius: 17px;
    background: #fbfcf7;
    box-shadow: 0 20px 46px rgba(31, 68, 55, .16);
    opacity: 0;
    pointer-events: none;
    scrollbar-width: auto;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    visibility: hidden;
  }

  .mobile-nav-open .topbar .topnav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .topbar .topnav > * {
    width: 100%;
  }

  .topbar .topnav a,
  .topbar .language-switcher-button,
  .topbar .install-app-button {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    padding: 0 12px;
    border-radius: 10px;
    color: #28483d;
    font-size: .96rem;
    text-align: left;
  }

  .topbar .topnav a:hover,
  .topbar .language-switcher-button:hover,
  .topbar .install-app-button:hover {
    background: #e8f3df;
  }

  .topbar .language-switcher {
    margin-left: 0;
  }

  .topbar .language-switcher-menu {
    position: static;
    width: 100%;
    max-height: 230px;
    margin-top: 4px;
    border-color: rgba(53, 91, 80, .13);
    box-shadow: none;
  }

  .home-page .topnav a::after {
    display: none;
  }
}

/* Keep the landing page genuinely single-column after the desktop refinements above. */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-copy,
  .hero-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .hero-panel {
    justify-self: stretch;
  }

  .hero-panel .feature-box {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    gap: 14px;
    padding: 16px 0;
  }

  .topbar .brand {
    padding-left: 42px;
  }

  .brand > div > span {
    display: none;
  }

  .topnav {
    padding-bottom: 2px;
  }

  .hero {
    gap: 22px;
    padding: 28px 0 42px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 11vw, 3.1rem);
    line-height: .98;
  }

  .hero-text-lead,
  .hero-note,
  .hero-points {
    max-width: none;
  }

  .hero-panel {
    padding: 10px;
    border-radius: 16px;
  }

  .hero-panel .feature-box {
    padding: 18px;
  }

  .hero-panel .feature-box strong {
    font-size: clamp(1.25rem, 6vw, 1.55rem);
  }

  .hero-media-placeholder {
    height: 48px;
  }
}

/* Shared browser-history control, available on every page through pwa.js. */
.page-back-button {
  position: fixed;
  z-index: 60;
  top: 18px;
  left: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(29, 33, 31, .12);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.page-back-button:hover {
  background: #e8f3df;
  transform: translateX(-2px);
}

.page-back-button:focus-visible {
  outline: 3px solid rgba(40, 84, 72, .32);
  outline-offset: 3px;
}

.page-back-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (max-width: 480px) {
  .page-back-button {
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
  }
}

/* Responsive foundation: phones keep one clear task per row; tablets retain room for work. */
@media (max-width: 1024px) {
  .page-shell {
    width: min(100% - 32px, 1160px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(290px, .72fr);
    gap: 32px;
  }

  .file-manager {
    grid-template-columns: minmax(200px, .3fr) minmax(0, 1fr);
    gap: 18px;
  }

  .account-main {
    grid-template-columns: minmax(0, .72fr) minmax(380px, 1fr);
    gap: 28px;
  }

  .interior-chat-main {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
    gap: 16px;
  }

  .interior-generated-box {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
  }

  .page-shell,
  .site-footer-inner {
    width: min(100% - 24px, 1160px);
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px 0;
  }

  .topnav {
    width: 100%;
    gap: 14px;
    padding: 2px 0 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .topnav > * {
    flex: 0 0 auto;
  }

  .topbar-model-settings {
    min-width: min(250px, 72vw);
  }

  .topbar-model-settings input {
    min-width: 0;
    width: 100%;
  }

  .hero,
  .account-main,
  .file-manager,
  .consultant-layout,
  .catalog-admin,
  .model-layout,
  .layout-ai,
  .interior-chat-main {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
    padding: 32px 0 42px;
  }

  .hero h1,
  .model-heading h1,
  .workspace-heading h1,
  .plan-heading h1,
  .consultant-heading h1,
  .catalog-heading h1,
  .plans-heading h1,
  .account-intro h1 {
    max-width: none;
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .hero-actions,
  .layout-actions,
  .file-actions,
  .plans-followup,
  .dossier-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .button,
  .layout-actions .button,
  .file-actions .button,
  .plans-followup .button,
  .dossier-actions .button {
    width: 100%;
  }

  .hero-panel,
  .service-card,
  .steps article,
  .interior-chat-panel,
  .interior-result-panel,
  .account-panel,
  .catalog-admin,
  .layout-ai,
  .consultant-chat,
  .consultant-side,
  .plan-workspace {
    border-radius: 14px;
  }

  .workspace-sidebar {
    padding: 0 0 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .folder-quick-form,
  .folder-create-form {
    grid-template-columns: 1fr;
  }

  .folder-quick-form .button,
  .folder-create-form .button {
    width: 100%;
  }

  .workspace-item,
  .workspace-item-open {
    min-width: 0;
  }

  .catalog-filters,
  .catalog-form,
  .pricing-grid,
  .account-forms,
  .dossier-analysis-grid,
  .dossier-lists,
  .dossier-improvements {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .catalog-search-label,
  .catalog-search-label input,
  .catalog-filters select {
    width: 100%;
    min-width: 0;
  }

  .plan-toolbar {
    gap: 7px;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .plan-toolbar label {
    margin-left: 0;
  }

  .plan-status-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  #planStatus {
    text-align: left;
  }

  .plan-canvas-wrap {
    min-height: 360px;
    padding: 12px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .plan-canvas-stage {
    width: max-content;
    min-width: 100%;
  }

  .plan-floor-bar {
    width: 100%;
  }

  .interior-chat-panel,
  .interior-result-panel {
    padding: 15px;
  }

  .interior-generated-box {
    min-height: 300px;
  }

  .generated-history {
    max-height: none;
  }

  .generated-history-item,
  .generated-history-item img {
    min-height: 280px;
  }

  .conversation-drawer-toggle {
    top: 130px;
    left: 16px;
  }

  .interior-conversation-rail {
    top: 116px;
    left: 12px;
    width: min(300px, calc(100vw - 24px));
    height: min(570px, calc(100dvh - 132px));
    transform: none;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0;
  }
}

@media (max-width: 480px) {
  .page-shell,
  .site-footer-inner {
    width: min(100% - 20px, 1160px);
  }

  .brand span:not(.brand-mark) {
    display: none;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .topnav {
    gap: 12px;
  }

  .topnav a,
  .language-switcher-button {
    font-size: .84rem;
  }

  .hero h1,
  .model-heading h1,
  .workspace-heading h1,
  .plan-heading h1,
  .consultant-heading h1,
  .catalog-heading h1,
  .plans-heading h1,
  .account-intro h1 {
    font-size: clamp(2rem, 10.8vw, 2.75rem);
  }

  .feature-box,
  .service-card,
  .steps article,
  .account-panel,
  .catalog-admin,
  .layout-ai,
  .consultant-chat,
  .consultant-side {
    padding: 15px;
  }

  .preview-grid,
  .design-followup-actions {
    grid-template-columns: 1fr;
  }

  .design-followup-actions .button,
  .design-followup-actions .button:first-child {
    grid-column: auto;
    width: 100%;
  }

  .catalog-grid,
  .catalog-source-grid,
  .generated-product-list {
    grid-template-columns: 1fr;
  }

  .catalog-swatch {
    height: 190px;
  }

  .plan-shape-inspector {
    grid-template-columns: 1fr;
  }

  .plan-shape-inspector > div {
    grid-column: auto;
  }

  .plan-canvas-wrap {
    min-height: 320px;
    padding: 8px;
  }

  .conversation-drawer-toggle {
    top: 126px;
    left: 12px;
    width: 38px;
    height: 38px;
  }
}

.language-switcher { position: relative; flex: 0 0 auto; }
.language-switcher-button { min-height: auto; padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .92rem; cursor: pointer; }
.language-switcher-button:hover { color: var(--text); }
.language-switcher-menu { position: absolute; top: calc(100% + 10px); right: 0; z-index: 30; display: none; width: 168px; max-height: min(440px, calc(100vh - 120px)); padding: 5px; overflow-y: auto; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 12px 26px rgba(25,42,33,.12); }
.language-switcher.is-open .language-switcher-menu { display: grid; }
.language-switcher-menu button { padding: 8px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: 700 .8rem "Outfit", sans-serif; text-align: left; cursor: pointer; }
.language-switcher-menu button:hover, .language-switcher-menu button.is-active { background: #e8f3df; color: #285448; }

/* Phone layout: keep controls readable and make dense workspaces usable by touch. */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .page-shell {
    width: min(100% - 24px, 1160px);
    padding-bottom: 38px;
  }

  .topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    padding: 16px 0;
  }

  .brand > div span {
    display: none;
  }

  .topnav {
    width: 100%;
    flex-wrap: nowrap;
    gap: 16px;
    padding-bottom: 3px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .topnav a {
    flex: 0 0 auto;
    font-size: .9rem;
  }

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

  .language-switcher-menu { right: 0; }

  .topbar-model-settings {
    width: 100%;
    flex-wrap: wrap;
  }

  .topbar-model-settings input {
    width: 100%;
  }

  .hero,
  .services,
  .workflow {
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .hero {
    gap: 24px;
  }

  .hero h1,
  .model-heading h1,
  .workspace-heading h1,
  .plan-heading h1,
  .consultant-heading h1,
  .catalog-heading h1,
  .plans-heading h1,
  .account-intro h1 {
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

  .hero-actions,
  .layout-actions,
  .file-actions,
  .item-selection-toolbar,
  .plans-followup,
  .account-session > div {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .layout-actions .button,
  .file-actions .button,
  .item-selection-toolbar .button,
  .plans-followup .button,
  .account-session > div .button {
    width: 100%;
  }

  .hero-panel,
  .service-card,
  .steps article,
  .chat-panel,
  .result-panel,
  .interior-chat-panel,
  .interior-result-panel,
  .file-manager,
  .catalog-admin,
  .pricing-card,
  .account-panel,
  .layout-ai,
  .project-dossier {
    padding: 16px;
    border-radius: 14px;
  }

  .feature-box,
  .chat-message,
  .upload-box {
    padding: 16px;
  }

  .chat-composer textarea {
    min-height: 120px;
  }

  .generated-image-box,
  .interior-generated-box {
    min-height: 250px;
  }

  .design-followup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .design-followup-actions .button:first-child {
    grid-column: 1 / -1;
  }

  .followup-message {
    max-width: 100%;
  }

  .model-main,
  .workspace-main {
    padding-top: 28px;
  }

  .model-stage {
    min-height: 390px;
    border-radius: 13px;
  }

  .model-stage-topline {
    top: 12px;
    right: 12px;
    left: 12px;
  }

  .model-interaction-help {
    right: 10px;
    bottom: 9px;
    left: 10px;
    font-size: .66rem;
  }

  .file-manager-toolbar,
  .catalog-section-heading,
  .dossier-header > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .folder-grid {
    grid-template-columns: 1fr;
  }

  .workspace-item {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .workspace-item-actions {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    justify-content: flex-end;
  }

  .workspace-item-open {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .workspace-item-preview {
    width: 58px;
    height: 58px;
  }

  .plan-toolbar {
    padding: 10px;
  }

  .plan-toolbar button,
  .plan-tool-icon,
  .plan-toolbar .plan-tool-text {
    min-height: 42px;
  }

  .plan-canvas-wrap {
    min-height: 340px;
    padding: 10px;
  }

  .plan-canvas-stage {
    width: 100%;
  }

  .plan-status-row,
  .plan-shape-inspector {
    padding-right: 12px;
    padding-left: 12px;
  }

  .layout-preview {
    min-height: 170px;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-swatch {
    height: 210px;
  }

  .pricing-grid,
  .account-forms,
  .dossier-analysis-grid,
  .dossier-lists,
  .dossier-improvements {
    grid-template-columns: 1fr;
  }

  .dossier-visuals {
    grid-auto-columns: minmax(84%, 84%);
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* Public legal and trust layer. */
.site-footer {
  margin-top: 42px;
  border-top: 1px solid rgba(40, 84, 72, 0.16);
  background: #edf1e8;
}

.site-footer-inner {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.site-footer strong {
  color: #193d34;
  font-size: 1.05rem;
}

.site-footer p {
  margin: 7px 0 0;
  color: #59655f;
  line-height: 1.55;
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 10px 24px;
}

.site-footer a,
.legal-main a,
.legal-header a {
  color: #285448;
  text-underline-offset: 3px;
}

.affiliate-disclosure {
  font-size: .84rem;
}

/* Audience-focused landing pages and crawlable home directory. */
.audience-directory {
  width: min(1160px, calc(100% - 32px));
  margin: 96px auto 24px;
  padding-top: 64px;
  border-top: 1px solid rgba(40, 84, 72, .18);
}

.audience-directory .section-heading > p:last-child {
  max-width: 680px;
  color: #59655f;
  line-height: 1.65;
}

.audience-directory-grid,
.audience-link-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.audience-directory-grid a,
.audience-link-list a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(40, 84, 72, .14);
  border-radius: 12px;
  background: rgba(255, 255, 255, .58);
  color: #244c41;
  font-size: .9rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.audience-directory-grid a:hover,
.audience-link-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 84, 72, .42);
  background: #fff;
}

.audience-page {
  background: #f6f7f2;
}

.audience-brand {
  color: inherit;
  text-decoration: none;
}

.audience-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.audience-brand small {
  color: #68756f;
  font-size: .72rem;
  font-weight: 500;
}

.audience-breadcrumbs {
  width: min(1160px, calc(100% - 32px));
  margin: 34px auto 0;
  display: flex;
  gap: 9px;
  color: #68756f;
  font-size: .82rem;
}

.audience-breadcrumbs a {
  color: #285448;
}

.audience-hero,
.audience-detail,
.audience-tools,
.audience-faq,
.audience-more,
.audience-cta {
  width: min(1160px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.audience-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 64px;
  align-items: center;
  padding: 84px 0 92px;
}

.audience-hero h1 {
  max-width: 850px;
  margin: 12px 0 22px;
  color: #173c32;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}

.audience-lead {
  max-width: 730px;
  margin: 0;
  color: #4d5d56;
  font-size: 1.08rem;
  line-height: 1.75;
}

.audience-summary {
  padding: 30px;
  border: 1px solid rgba(40, 84, 72, .18);
  border-radius: 18px;
  background: #edf1e8;
}

.audience-summary ul {
  display: grid;
  gap: 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.audience-summary li {
  position: relative;
  padding-left: 20px;
  color: #344b43;
  line-height: 1.55;
}

.audience-summary li::before {
  position: absolute;
  top: .58em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c8793d;
  content: "";
}

.audience-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 72px;
  border-radius: 22px;
  background: #224c40;
  color: #fff;
}

.audience-detail h2,
.audience-cta h2 {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.audience-detail .eyebrow {
  color: #d7e5db;
}

.audience-detail > p {
  margin: 0;
  color: #e1ebe5;
  font-size: 1.02rem;
  line-height: 1.75;
}

.audience-tools,
.audience-faq,
.audience-more {
  padding-top: 96px;
}

.audience-tools .service-card a {
  display: inline-block;
  margin-top: 18px;
  color: #285448;
  font-weight: 700;
  text-underline-offset: 4px;
}

.audience-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.audience-faq-grid article {
  padding: 28px;
  border: 1px solid rgba(40, 84, 72, .15);
  border-radius: 16px;
  background: #fff;
}

.audience-faq-grid h3 {
  margin: 0 0 12px;
  color: #193d34;
  font-size: 1.05rem;
}

.audience-faq-grid p {
  margin: 0;
  color: #59655f;
  line-height: 1.65;
}

.audience-link-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audience-cta {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  margin-top: 96px;
  padding: 52px 58px;
  border-radius: 20px;
  background: #e7ebe1;
}

.audience-cta h2 {
  max-width: 720px;
  color: #193d34;
}

@media (max-width: 900px) {
  .audience-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-hero { grid-template-columns: 1fr; gap: 38px; padding: 58px 0 72px; }
  .audience-detail { grid-template-columns: 1fr; gap: 28px; padding: 48px; }
  .audience-link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .audience-directory { margin-top: 64px; padding-top: 46px; }
  .audience-directory-grid,
  .audience-link-list,
  .audience-faq-grid { grid-template-columns: 1fr; }
  .audience-hero { padding-top: 44px; }
  .audience-hero h1 { font-size: clamp(2.45rem, 13vw, 3.8rem); }
  .audience-detail { padding: 34px 24px; }
  .audience-tools,
  .audience-faq,
  .audience-more { padding-top: 70px; }
  .audience-cta { align-items: flex-start; flex-direction: column; margin-top: 72px; padding: 36px 24px; }
}

.cookie-notice {
  position: fixed;
  z-index: 1000;
  right: 18px;
  bottom: 18px;
  width: min(430px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid rgba(40, 84, 72, .2);
  border-radius: 14px;
  background: #fbfcf8;
  box-shadow: 0 18px 50px rgba(25, 61, 52, .16);
}

.cookie-notice p {
  margin: 0 0 14px;
  color: #3f4944;
  font-size: .92rem;
  line-height: 1.5;
}

.cookie-notice div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.cookie-notice a {
  color: #285448;
}

.cookie-notice button {
  padding: 9px 15px;
  border: 0;
  border-radius: 8px;
  background: #285448;
  color: white;
  cursor: pointer;
}

.legal-body {
  background: #f4f5f0;
}

.legal-shell {
  width: min(940px, calc(100% - 32px));
  min-height: 78vh;
}

.legal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 34px;
}

.legal-brand {
  color: var(--text) !important;
  text-decoration: none;
}

.legal-main {
  max-width: 760px;
  padding-bottom: 38px;
}

.legal-main h1 {
  max-width: 14ch;
  margin: 8px 0 10px;
  font-family: "Bahnschrift", "Aptos Display", sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.8rem);
  letter-spacing: -.05em;
  line-height: .98;
}

.legal-main section {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid rgba(40, 84, 72, .12);
  border-radius: 14px;
  background: #fff;
}

.legal-main h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.legal-main p {
  margin: 9px 0 0;
  color: #505a55;
  line-height: 1.7;
}

.legal-updated {
  font-size: .88rem;
}

.legal-warning {
  margin: 24px 0;
  padding: 15px 17px;
  border: 1px solid #d7a84b;
  border-radius: 10px;
  background: #fff8e7;
  color: #604715;
  line-height: 1.5;
}

.legal-table-wrap {
  overflow-x: auto;
}

.legal-main table {
  width: 100%;
  border-collapse: collapse;
}

.legal-main th,
.legal-main td {
  padding: 12px;
  border-bottom: 1px solid #e3e6df;
  text-align: left;
  vertical-align: top;
}

.contact-card {
  display: grid;
  gap: 8px;
}

.contact-card > span {
  color: #65706a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-email {
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.legal-consent {
  display: grid !important;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  color: #505a55;
  font-size: .86rem;
  line-height: 1.45;
}

.legal-consent input {
  width: 18px !important;
  min-height: 18px !important;
  margin-top: 2px;
}

.legal-consent a {
  color: #285448;
}

.button.danger {
  border: 1px solid #bd5c50;
  background: transparent;
  color: #913c33;
}

@media (max-width: 720px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer nav {
    grid-template-columns: 1fr 1fr;
  }

  .legal-main section {
    padding: 19px;
  }
}

.model-main { padding: 42px 0 90px; }
.model-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .55fr); gap: 18px 60px; align-items: end; margin-bottom: 28px; }
.model-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.model-heading h1 { max-width: 850px; margin: 0; font: 700 clamp(2.4rem, 6vw, 5.6rem)/.94 "Outfit", sans-serif; letter-spacing: -.06em; }
.model-heading > p:last-child { margin: 0 0 6px; color: var(--muted); line-height: 1.7; }
.model-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.model-stage { position: relative; min-height: 650px; overflow: hidden; border: 1px solid #d5dfcf; border-radius: 20px; background: #edf3e9; box-shadow: 0 24px 70px rgba(35, 64, 53, .1); }
.model-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.model-stage canvas:active { cursor: grabbing; }
.model-stage canvas:focus-visible { outline: 3px solid rgba(40,84,72,.28); outline-offset: -5px; }
.model-stage-topline { position: absolute; top: 17px; right: 18px; left: 18px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.model-stage-topline span { overflow: hidden; color: #203e34; font-size: .8rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.model-stage-topline strong { padding: 6px 8px; border-radius: 999px; background: rgba(40,84,72,.86); color: #fff; font-size: .62rem; letter-spacing: .11em; }
.model-empty { position: absolute; top: 50%; left: 50%; z-index: 1; width: min(300px, 78%); margin: 0; color: #52685d; text-align: center; line-height: 1.6; transform: translate(-50%, -50%); pointer-events: none; }
.model-interaction-help { position: absolute; right: 16px; bottom: 14px; left: 16px; z-index: 1; margin: 0; color: rgba(35,65,53,.72); font-size: .7rem; font-weight: 700; text-align: center; pointer-events: none; }
.model-controls { display: grid; gap: 18px; padding: 22px; border: 1px solid #d8e1d3; border-radius: 18px; background: #fff; }
.model-controls > div:first-child { display: grid; gap: 5px; }
.model-controls .eyebrow { margin: 0; }
.model-controls h2 { margin: 0; font: 700 1.7rem/1 "Outfit", sans-serif; letter-spacing: -.035em; }
.model-controls > label { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 10px; color: #315c4e; font-size: .74rem; font-weight: 800; }
.model-controls > label select { grid-column: 1 / -1; height: 44px; padding: 0 10px; border: 1px solid #c6d5bd; border-radius: 9px; background: #f8faf6; color: var(--text); font: inherit; }
.model-controls > label input { grid-column: 1 / -1; width: 100%; accent-color: #285448; }
.model-controls output { color: #285448; font-weight: 800; }
.model-ai-builder { display: grid; gap: 9px; padding: 13px; border: 1px solid #cbd8bf; border-radius: 11px; background: #f4f8f0; }
.model-ai-builder > div:first-child { display: grid; gap: 2px; }
.model-ai-builder > div:first-child span { color: #537767; font-size: .61rem; font-weight: 800; letter-spacing: .1em; }
.model-ai-builder > div:first-child strong { font: 700 1rem/1.2 "Outfit", sans-serif; }
.model-ai-builder > label { color: #315c4e; font-size: .71rem; font-weight: 700; line-height: 1.4; }
.model-ai-builder textarea { width: 100%; min-height: 82px; padding: 9px; border: 1px solid #c6d5bd; border-radius: 8px; background: #fff; color: var(--text); font: 500 .76rem/1.45 "Manrope", sans-serif; resize: vertical; }
.model-ai-builder textarea:focus { outline: 2px solid rgba(40,84,72,.16); border-color: #285448; }
.model-ai-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.model-ai-actions .button { min-height: 38px; padding: 7px 9px; font-size: .7rem; }
.model-ai-builder > p { min-height: 2.2em; margin: 0; color: #60746a; font-size: .68rem; line-height: 1.45; }
.model-object-list { display: grid; gap: 6px; max-height: 170px; overflow-y: auto; }
.model-object-list[hidden] { display: none; }
.model-object-list article { display: grid; grid-template-columns: minmax(0, 1fr) 25px; gap: 6px; align-items: center; padding: 6px 6px 6px 8px; border: 1px solid rgba(40,84,72,.12); border-radius: 7px; background: #fff; }
.model-object-list article > span { display: grid; min-width: 0; gap: 1px; }
.model-object-list strong, .model-object-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-object-list strong { font-size: .7rem; }
.model-object-list small { color: var(--muted); font-size: .6rem; }
.model-object-list a { width: fit-content; color: #285448; font-size: .61rem; font-weight: 800; }
.model-object-list button { display: grid; width: 25px; height: 25px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #eef5e7; color: #285448; font-size: .9rem; cursor: pointer; }
.model-view-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 42px 42px; gap: 7px; }
.model-view-buttons .button { min-height: 42px; padding: 8px; }
.model-legend { display: grid; gap: 8px; padding: 13px; border-radius: 10px; background: #f3f7ef; color: #577065; font-size: .71rem; }
.model-legend span { display: flex; align-items: center; gap: 8px; }
.model-legend i { display: block; width: 18px; height: 9px; border: 1px solid rgba(40,84,72,.3); border-radius: 2px; }
.model-legend .wall { background: #c9d8c2; }
.model-legend .volume { background: #b9d3a7; }
.model-legend .object { background: #d6b59b; }
.model-legend .label { background: #203e34; }
.model-status { min-height: 2.8em; margin: -4px 0 0; color: #60746a; font-size: .74rem; line-height: 1.5; }
.workspace-item-secondary { min-width: 38px; min-height: 34px; padding: 6px 8px; border: 1px solid #cbd8bf; border-radius: 7px; background: #eef5e7; color: #285448; font: inherit; font-size: .72rem; font-weight: 800; cursor: pointer; }

@media (max-width: 900px) {
  .model-heading { grid-template-columns: 1fr; }
  .model-heading .eyebrow { grid-column: auto; }
  .model-heading > p:last-child { max-width: 680px; }
  .model-layout { grid-template-columns: 1fr; }
  .model-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-controls > div:first-child, .model-controls > label:first-of-type, .model-ai-builder, .model-view-buttons, .model-legend, .model-controls > .button, .model-status { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .model-main { padding-top: 28px; }
  .model-heading h1 { font-size: clamp(2.35rem, 14vw, 4rem); }
  .model-stage { min-height: 500px; border-radius: 15px; }
  .model-controls { grid-template-columns: 1fr; padding: 17px; }
  .model-controls > * { grid-column: 1 !important; }
  .model-view-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Demo gratuïta: manté el selector d'imatges dins la mateixa paleta verda. */
.demo-page .upload-box {
  border-color: #a8c88b;
  background: #eef5e7;
}

.demo-page .upload-box:hover {
  border-color: #285448;
  background: #e4efd9;
}

.demo-page .upload-badge {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #285448;
}

.demo-page .upload-button {
  border-color: #285448;
  background: #285448;
  color: #f8fff3;
}

.hero-panel .feature-box:hover {
  background: #bad99c;
}

/* AI Interior upload area follows the green interface palette. */
.interior-chat-panel .upload-box,
.interior-chat-panel .upload-box-rich {
  background: #eef5e7;
  border-color: #a8c88b;
}

.interior-chat-panel .upload-badge {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #285448;
}

.interior-chat-panel .upload-button {
  background: #285448;
  border-color: #285448;
  color: #f8fff3;
}

.interior-chat-panel .upload-box:hover {
  border-color: #285448;
  background: #e4efd9;
}

/* Modern refinement: editorial contrast with a restrained lime accent. */
:root {
  --bg: #f3f4ee;
  --surface: rgba(255, 255, 252, 0.88);
  --surface-strong: #fffffb;
  --text: #10221d;
  --muted: #66716a;
  --accent: #c8f269;
  --accent-dark: #285347;
  --line: rgba(16, 34, 29, 0.13);
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(16, 34, 29, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 34, 29, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
}

.brand-mark {
  background: var(--text);
  border-radius: 50%;
}

.hero h1,
.section-heading h2 {
  letter-spacing: -0.045em;
}

.eyebrow,
.feature-kicker,
.hero-points span {
  color: #315c4e;
}

.button {
  border-radius: 999px;
  font-size: 0.92rem;
}

.button.primary {
  background: var(--text);
  color: #f8fff0;
}

.button.primary:hover {
  background: #234437;
}

.button.secondary {
  background: rgba(255, 255, 252, 0.76);
}

.hero-panel {
  padding: 12px;
  border-radius: 24px;
  background: rgba(16, 34, 29, 0.96);
  border-color: rgba(16, 34, 29, 0.96);
}

.feature-box {
  border: 0;
  border-radius: 16px;
  background: #f9faf4;
}

.feature-box:first-child {
  background: var(--accent);
}

.feature-box:first-child .feature-kicker,
.feature-box:first-child p {
  color: #284437;
}

.feature-link:hover {
  border-color: transparent;
  background: #d5fa83;
}

.service-grid,
.steps {
  gap: 14px;
}

.service-card,
.steps article {
  min-height: 190px;
  border-radius: 18px;
  background: rgba(255, 255, 252, 0.86);
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.steps article:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 34, 29, 0.28);
}

.service-card:first-child,
.steps article:first-child {
  background: #e8efdf;
}

.steps article span {
  color: #315c4e;
  font-weight: 800;
}

.interior-chat-panel,
.interior-result-panel {
  border-radius: 24px;
  background: rgba(255, 255, 252, 0.9);
}

.chat-message strong,
.feature-box strong {
  color: var(--text);
}

.upload-box {
  background: #f6f8ef;
  border-color: rgba(16, 34, 29, 0.25);
}

.upload-button {
  background: var(--text);
  border-color: var(--text);
  color: white;
}

.upload-badge {
  background: var(--accent);
  color: var(--text);
}

/* Clear, contemporary headings and a unified feature panel. */
.hero h1,
.section-heading h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.feature-box,
.feature-box:first-child {
  background: #285448;
  color: #f8fff3;
}

.feature-box strong {
  color: #f8fff3;
}

.feature-box p,
.feature-box:first-child p {
  color: #d7e5da;
}

.feature-box .feature-kicker,
.feature-box:first-child .feature-kicker {
  color: #cdf47a;
}

.feature-link:hover {
  background: #326b5b;
}

/* Refined heading font and high-contrast sage feature blocks. */
.hero h1,
.section-heading h2 {
  font-family: "Outfit", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.feature-box,
.feature-box:first-child {
  background: #a8c88b;
  color: var(--text);
}

.feature-box strong,
.feature-box p,
.feature-box:first-child p,
.feature-box .feature-kicker,
.feature-box:first-child .feature-kicker {
  color: var(--text);
}

.feature-link:hover {
  background: #b7d79a;
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    padding-top: 10px;
  }

  .hero-actions {
    flex-direction: column;
  }
}

.demo-page {
  padding-bottom: 40px;
}

.demo-chat-layout {
  display: grid;
  gap: 28px;
}

.demo-chat-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.92fr);
  gap: 26px;
  align-items: start;
}

.demo-chat-layout-simple {
  gap: 0;
}

.chat-panel,
.result-panel {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  border-radius: 32px;
  padding: 24px;
}

.chat-panel-full {
  max-width: 960px;
  width: 100%;
}

.chat-message {
  border-radius: 22px;
  padding: 18px 18px 16px;
  background: rgba(255, 250, 242, 0.95);
  border: 1px solid rgba(187, 95, 61, 0.1);
  margin-bottom: 18px;
}

.chat-message strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
}

.chat-message p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.chat-composer {
  display: grid;
  gap: 14px;
}

.chat-composer label {
  font-weight: 700;
  font-size: 0.95rem;
}

.upload-box {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px dashed rgba(139, 63, 34, 0.32);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.92), rgba(252, 244, 236, 0.88));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.upload-box:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 63, 34, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 26px rgba(139, 63, 34, 0.08);
}

.upload-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(187, 95, 61, 0.1);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-title {
  font-weight: 800;
  font-size: 1.05rem;
}

.upload-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-box {
  position: relative;
}

.upload-box input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-status {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.upload-button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 6px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff7f1;
  border: 1px solid rgba(187, 95, 61, 0.2);
  color: var(--accent-dark);
  font-weight: 700;
}

.preview-box,
.generated-image-box {
  min-height: 220px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.preview-box p {
  color: var(--muted);
}

.preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-panel-compact {
  width: 100%;
  max-width: 460px;
  justify-self: start;
  align-self: start;
}

.generated-image-box {
  min-height: 340px;
  align-items: center;
}

.chat-composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 150px;
  border-radius: 22px;
  border: 1px solid var(--line);
  padding: 16px;
  font: inherit;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.84);
}

.generated-placeholder {
  display: grid;
  gap: 10px;
  padding: 24px;
  text-align: center;
  width: 100%;
  min-height: inherit;
  align-content: center;
}

.generated-placeholder strong {
  font-size: 1rem;
  line-height: 1.25;
  color: rgba(98, 95, 87, 0.82);
  font-weight: 500;
}

.generated-placeholder p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 28ch;
}

.generated-ready {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #f3f8ee;
  width: 100%;
  height: 100%;
  align-content: center;
}

.generated-ready::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  width: 72%;
  background: linear-gradient(90deg, transparent 0%, rgba(209, 235, 193, 0.82) 50%, transparent 100%);
  transform: translateX(150%);
  animation: generation-sweep 2.8s linear infinite;
}

@keyframes generation-sweep {
  from { transform: translateX(150%); }
  to { transform: translateX(-150%); }
}

@media (prefers-reduced-motion: reduce) {
  .generated-ready::before { animation: none; }
}

@media (max-width: 900px) {
  .demo-chat-shell {
    grid-template-columns: 1fr;
  }
}

.interior-chat-body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f4eee6 0%, #efe5d8 100%);
}

.interior-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.interior-blur-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blur-card {
  position: absolute;
  border-radius: 36px;
  filter: blur(18px);
  opacity: 0.52;
  transform: rotate(-4deg);
  background-size: cover;
  background-position: center;
}

.blur-card-a {
  top: 7%;
  left: 4%;
  width: 28vw;
  height: 34vh;
  background:
    linear-gradient(135deg, rgba(198, 163, 133, 0.82), rgba(239, 229, 216, 0.76)),
    radial-gradient(circle at top right, rgba(255,255,255,0.75), transparent 34%);
}

.blur-card-b {
  top: 14%;
  right: 8%;
  width: 23vw;
  height: 28vh;
  transform: rotate(6deg);
  background:
    linear-gradient(135deg, rgba(218, 190, 165, 0.82), rgba(244, 237, 229, 0.78)),
    radial-gradient(circle at center, rgba(255,255,255,0.65), transparent 40%);
}

.blur-card-c {
  bottom: 9%;
  left: 18%;
  width: 26vw;
  height: 24vh;
  transform: rotate(3deg);
  background:
    linear-gradient(135deg, rgba(183, 147, 118, 0.7), rgba(240, 231, 221, 0.72)),
    radial-gradient(circle at bottom left, rgba(255,255,255,0.55), transparent 38%);
}

.interior-chat-shell {
  position: relative;
  z-index: 1;
}

.interior-topbar {
  padding-bottom: 18px;
}

.interior-chat-main {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  gap: 26px;
  align-items: start;
}

.interior-chat-panel,
.interior-result-panel {
  background: rgba(255, 251, 246, 0.72);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 28px 80px rgba(71, 51, 31, 0.16);
  border-radius: 34px;
  padding: 24px;
}

.interior-conversation-rail {
  position: fixed;
  z-index: 40;
  top: 238px;
  left: max(48px, calc((100vw - 1160px) / 2 - 44px));
  display: none;
  width: min(280px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 126px));
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 20px;
  background: rgba(255, 251, 246, 0.72);
  backdrop-filter: blur(20px);
  box-shadow: 0 20px 54px rgba(26, 45, 35, .18);
  transform: translateX(calc(-100% + 16px));
}

.interior-conversation-rail.is-open { display: flex; }
.conversation-drawer-toggle { position: fixed; z-index: 41; top: 252px; left: max(48px, calc((100vw - 1160px) / 2 - 44px)); display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #cbd8bf; border-radius: 12px; background: #f7faf3; color: #285448; box-shadow: 0 8px 20px rgba(26, 45, 35, .12); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.conversation-drawer-toggle:hover, .conversation-drawer-toggle[aria-expanded="true"] { background: #e8f3df; transform: translateY(-1px); }
.conversation-drawer-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }

.conversation-rail-heading { display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.conversation-rail-heading div { display: grid; gap: 2px; }
.conversation-rail-heading span { color: #537767; font-size: .64rem; font-weight: 800; letter-spacing: .11em; }
.conversation-rail-heading strong { font: 700 .88rem/1.15 "Outfit", sans-serif; }
.conversation-new { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #b8cfaa; border-radius: 9px; background: #e8f3df; color: #285448; font: 500 1.45rem/1 sans-serif; cursor: pointer; }
.conversation-new:hover { background: #e8f3df; }
.conversation-rail-list { display: grid; align-content: start; gap: 6px; min-height: 0; width: calc(100% + 6px); margin-right: -6px; padding-right: 6px; overflow-y: auto; }
.conversation-item { display: grid; gap: 3px; width: 100%; padding: 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.conversation-item:hover, .conversation-item.is-active { border-color: #cbd8bf; background: #f7faf3; }
.conversation-item strong { overflow: hidden; font-size: .75rem; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item small { color: var(--muted); font-size: .65rem; }
.conversation-save { width: 100%; margin-top: auto; padding: 0 9px; font-size: .75rem; }

.interior-thread {
  margin-bottom: 18px;
}

.upload-box-rich {
  background: linear-gradient(180deg, rgba(255, 249, 242, 0.94), rgba(249, 240, 231, 0.88));
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.preview-box-thumb {
  min-height: 150px;
}

.preview-box-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-box-empty {
  grid-column: 1 / -1;
}

.interior-generated-box {
  min-height: 560px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.76), rgba(252, 245, 237, 0.78));
}

.interior-generated-placeholder {
  min-height: inherit;
  align-content: center;
}

.generated-history {
  display: grid;
  gap: 16px;
  max-height: 620px;
  margin-top: 18px;
  overflow-y: auto;
  scroll-snap-type: y proximity;
  padding-right: 6px;
}

.generated-history[hidden] {
  display: none;
}

.generated-history-item {
  overflow: hidden;
  min-height: 420px;
  border-radius: 26px;
  border: 1px solid rgba(187, 95, 61, 0.16);
  background: rgba(255, 255, 255, 0.75);
  scroll-snap-align: start;
}

.generated-history-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: contain;
  background: #f3f6ee;
}

.generated-image-result {
  width: 100%;
  height: 100%;
}

.generated-image-result img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f3f6ee;
  cursor: zoom-in;
}

.generated-history-item img {
  cursor: zoom-in;
}

.image-viewer {
  width: min(96vw, 1600px);
  max-width: none;
  height: min(92vh, 1000px);
  padding: 18px;
  border: 0;
  border-radius: 22px;
  background: rgba(19, 35, 29, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.image-viewer::backdrop {
  background: rgba(16, 31, 25, 0.72);
  backdrop-filter: blur(5px);
}

.image-viewer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-viewer-close {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 1;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(20, 39, 31, 0.8);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.design-followup {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 18px;
  border-radius: 25px;
  background: rgba(255, 248, 240, 0.82);
  border: 1px solid rgba(187, 95, 61, 0.16);
}

.design-followup[hidden] {
  display: none;
}

.design-followup-heading {
  display: grid;
  gap: 4px;
}

.design-followup-heading span {
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.model-settings {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid rgba(40, 84, 72, 0.16);
  border-radius: 12px;
  background: #eef5e7;
}

.model-settings label {
  color: #285448;
  font-size: 0.84rem;
  font-weight: 800;
}

.model-settings input {
  width: 100%;
  border: 1px solid #a8c88b;
  border-radius: 8px;
  padding: 10px 11px;
  background: #ffffff;
  color: #10221d;
  font: inherit;
}

.model-settings p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.topbar-model-settings {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.topbar-model-settings label {
  white-space: nowrap;
  font-size: 0.78rem;
}

.topbar-model-settings input {
  width: min(220px, 24vw);
  padding: 8px 10px;
  font-size: 0.8rem;
}

.workspace-body { background: #f5f4f0; }
.workspace-main { padding: 54px 0 90px; }
.workspace-heading { max-width: 690px; margin-bottom: 30px; }
.workspace-heading h1 { margin: 8px 0 12px; font-family: "Outfit", sans-serif; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -0.05em; }
.workspace-heading > p:last-child { color: var(--muted); line-height: 1.7; }
.file-manager { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.file-manager { display: grid; grid-template-columns: minmax(230px, .33fr) minmax(0, 1fr); gap: 24px; }
.workspace-sidebar { min-width: 0; padding-right: 20px; border-right: 1px solid var(--line); }
.workspace-sidebar-heading { display: grid; gap: 3px; margin-bottom: 14px; }
.workspace-sidebar-heading strong { font: 700 1.05rem/1.2 "Outfit", sans-serif; }
.workspace-sidebar-heading span { color: var(--muted); font-size: .76rem; }
.workspace-content { min-width: 0; }
.folder-quick-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; padding: 10px; border: 1px solid #dce5d1; border-radius: 12px; background: #f7faf3; }
.folder-quick-form input, .folder-quick-form select { min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #cbd8bf; border-radius: 8px; background: #fff; font: inherit; font-size: .8rem; }
.folder-quick-form select { grid-column: 1 / -1; }
.folder-quick-form .button { min-height: 38px; padding: 0 11px; font-size: .78rem; }
.folder-tree { display: grid; gap: 2px; margin-top: 15px; }
.folder-tree-branch { display: grid; gap: 2px; }
.folder-tree-item { display: grid; grid-template-columns: 15px minmax(0, 1fr) auto; align-items: center; gap: 7px; width: 100%; min-height: 34px; padding: 6px 8px 6px calc(8px + var(--folder-depth, 0) * 15px); border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.folder-tree-item:hover { background: #f2f6ed; }
.folder-tree-item.folder-active { border-color: #cbd8bf; background: #e8f3df; color: #285448; }
.folder-tree-item > span { color: #537767; font-size: .75rem; }
.folder-tree-item strong { overflow: hidden; font-size: .82rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.folder-tree-item small { color: var(--muted); font-size: .68rem; }
.file-manager-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.file-manager-toolbar div { display: grid; gap: 3px; }
.file-manager-toolbar .file-actions { display: flex; flex-wrap: wrap; }
.file-manager-toolbar strong { font-family: "Outfit", sans-serif; font-size: 1.2rem; }
.file-manager-toolbar span, .workspace-item small, .folder-card small { color: var(--muted); font-size: 0.8rem; }
.workspace-feedback { min-height: 1.3em; margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.workspace-feedback:empty { display: none; }
.workspace-feedback[data-tone="success"] { color: #285448; }
.workspace-feedback[data-tone="error"] { color: #9a4435; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 20px 0 32px; }
.folder-card { display: grid; align-content: space-between; gap: 8px; min-height: 124px; padding: 18px; border: 1px solid #dce5d1; border-radius: 12px; background: #eef5e7; text-align: left; font: inherit; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.folder-card:hover { border-color: #a8c88b; background: #e6f0dc; transform: translateY(-2px); }
.folder-card.folder-active { border-color: #285448; box-shadow: inset 0 0 0 1px #285448; }
.folder-card-root { background: #f7f8f3; }
.folder-icon { color: #285448; font-size: 1.55rem; line-height: 1; }
.folder-action-bar { display: flex; align-items: center; gap: 9px; margin: -12px 0 24px; padding: 13px; border: 1px solid #dce5d1; border-radius: 12px; background: #f7faf3; }
.workspace-content > .folder-action-bar { margin: 14px 0; }
.folder-action-bar select { min-width: 0; max-width: 260px; height: 38px; padding: 0 8px; border: 1px solid #cbd8bf; border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: .78rem; }
.folder-action-bar > div { display: grid; gap: 2px; margin-right: auto; }
.folder-action-bar span { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.folder-action-bar strong { color: #285448; }
.button.danger { border-color: #e2c2b9; background: #f9ece8; color: #8c3f30; box-shadow: none; }
.button.danger:hover { background: #f4dfd8; }
.folder-delete-confirmation { display: flex; align-items: center; gap: 10px; margin: -10px 0 22px; padding: 15px; border: 1px solid #e2c2b9; border-radius: 12px; background: #fff8f5; }
.folder-delete-confirmation > div { display: grid; gap: 4px; margin-right: auto; }
.folder-delete-confirmation p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.files-heading { padding-top: 18px; border-top: 1px solid var(--line); }
.item-selection-toolbar { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border: 1px solid #bdd1ae; border-radius: 11px; background: #eef5e7; }
.item-selection-toolbar > strong { margin-right: auto; color: #285448; font-size: .82rem; }
.item-selection-toolbar label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .78rem; }
.item-selection-toolbar select { min-width: 150px; padding: 8px; border: 1px solid #a8c88b; border-radius: 8px; background: #fff; font: inherit; }
.item-selection-toolbar .button:disabled { opacity: .45; cursor: not-allowed; }
.workspace-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 18px; }
.workspace-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 94px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .18s ease, background .18s ease; }
.workspace-item:has(.item-select:checked) { border-color: #79a761; background: #f7faf3; }
.item-selector { display: grid; place-items: center; align-self: stretch; cursor: pointer; }
.item-selector input { width: 17px; height: 17px; margin: 0; accent-color: #285448; }
.workspace-item-open { display: grid; grid-template-columns: 74px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; }
.workspace-item-open:focus-visible { outline: 2px solid rgba(40,84,72,.28); outline-offset: 4px; border-radius: 7px; }
.workspace-item-preview { display: grid; place-items: center; width: 74px; height: 74px; overflow: hidden; border-radius: 8px; background: #eef5e7; color: #285448; font-size: 1.6rem; }
.workspace-item-preview img { width: 100%; height: 100%; object-fit: cover; }
.workspace-item-info { display: grid; gap: 3px; min-width: 0; }
.workspace-item-info > span { color: #285448; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }
.workspace-item-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-item-actions { display: grid; gap: 5px; justify-items: center; }
.item-remove { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 1.35rem; cursor: pointer; }
.file-actions { display: flex; gap: 8px; }
.import-file { position: relative; overflow: hidden; }
.import-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.folder-create-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 9px; align-items: end; margin-top: 16px; padding: 14px; border: 1px solid #dce5d1; border-radius: 12px; background: #f7faf3; }
.folder-create-form[hidden] { display: none; }
.folder-create-form label { grid-column: 1 / -1; color: #285448; font-size: .76rem; font-weight: 800; }
.folder-create-copy { grid-column: 1 / -1; display: grid; gap: 3px; }
.folder-create-copy label { grid-column: auto; }
.folder-create-copy p { margin: 0; color: var(--muted); font-size: .78rem; }
.folder-create-form input { min-width: 0; height: 48px; padding: 0 12px; border: 1px solid #cbd8bf; border-radius: 9px; background: #fff; font: inherit; }
.folder-create-form input:focus { outline: 2px solid rgba(40,84,72,.18); border-color: #285448; }
.folder-filter { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .8rem; }
.folder-filter select { padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font: inherit; }
.workspace-empty { grid-column: 1 / -1; margin: 0; padding: 24px 0; color: var(--muted); }
.item-preview-dialog { width: min(720px, calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 22px; overflow: auto; border: 1px solid #dce5d1; border-radius: 18px; background: #fff; color: var(--text); box-shadow: 0 26px 90px rgba(25,42,33,.2); }
.item-preview-dialog::backdrop { background: rgba(19,31,27,.54); backdrop-filter: blur(5px); }
.item-preview-dialog > span { display: block; padding-right: 42px; color: #285448; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.item-preview-dialog h2 { margin: 7px 42px 18px 0; font-family: "Outfit", sans-serif; font-size: clamp(1.5rem, 4vw, 2.4rem); }
.item-preview-dialog img { width: 100%; max-height: 68vh; object-fit: contain; border-radius: 11px; background: #f3f4ee; }
.item-preview-dialog p { margin: 16px 0 0; color: var(--muted); white-space: pre-wrap; line-height: 1.65; }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); font: 500 1.25rem/1 "Manrope", sans-serif; cursor: pointer; }
@media (max-width: 680px) {
  .file-manager { grid-template-columns: 1fr; padding: 16px; }
  .workspace-sidebar { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .file-manager-toolbar { align-items: flex-start; flex-direction: column; }
  .file-manager-toolbar .file-actions { width: 100%; }
  .folder-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .folder-card { min-height: 112px; padding: 14px; }
  .folder-create-form { grid-template-columns: 1fr; }
  .folder-create-form label { grid-column: auto; }
  .folder-action-bar, .folder-delete-confirmation, .item-selection-toolbar { align-items: stretch; flex-direction: column; }
  .folder-action-bar > div, .folder-delete-confirmation > div, .item-selection-toolbar > strong { margin-right: 0; }
  .item-selection-toolbar label { align-items: stretch; flex-direction: column; }
  .item-selection-toolbar select { width: 100%; }
  .folder-filter { width: 100%; justify-content: space-between; }
  .folder-filter select { min-width: 0; flex: 1; }
  .workspace-items { grid-template-columns: 1fr; }
}

.plan-main { padding: 42px 0 90px; }
.plan-heading { max-width: 700px; margin-bottom: 26px; }
.plan-heading h1 { margin: 8px 0 0; font-family: "Outfit", sans-serif; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.05em; line-height: 1.02; }
.plan-heading > p:last-child { max-width: 650px; color: var(--muted); line-height: 1.65; }
.plan-workspace { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.plan-toolbar { display: flex; align-items: center; gap: 8px; padding: 13px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.plan-toolbar button { flex: 0 0 auto; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-size: 0.82rem; cursor: pointer; }
.plan-toolbar .plan-tool-icon { display: grid; width: 38px; height: 38px; padding: 7px; place-items: center; }
.plan-tool-icon svg { width: 22px; height: 22px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plan-tool-icon[data-tool="select"] svg path { fill: currentColor; stroke-width: 1.25; }
.plan-toolbar .plan-tool-text { min-width: 48px; height: 38px; padding: 7px 10px; font-weight: 700; }
.plan-toolbar button:disabled { opacity: .45; cursor: not-allowed; }
.plan-toolbar .tool-active { border-color: #285448; background: #eef5e7; color: #285448; font-weight: 800; }
.plan-toolbar label { display: flex; align-items: center; gap: 7px; margin-left: auto; color: var(--muted); font-size: 0.8rem; white-space: nowrap; }
.plan-toolbar input { accent-color: #285448; }
.plan-toolbar .plan-title-field { margin-left: 8px; }
.plan-title-field input { width: 150px; height: 34px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: #fafbf8; color: var(--text); font: inherit; }
.plan-toolbar .plan-snap, .plan-toolbar .plan-zoom { margin-left: 0; }
.plan-toolbar output { min-width: 104px; color: #285448; font-weight: 800; }
.plan-toolbar .tool-subtle { color: var(--muted); }
.plan-shape-inspector { position: relative; z-index: 8; display: grid; width: 100%; grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(105px, 135px)) auto auto; gap: 12px; align-items: end; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f4f7f1; }
.plan-shape-inspector { min-height: 108px; }
.plan-shape-inspector.is-empty > :not(.plan-inspector-hint) { visibility: hidden; pointer-events: none; }
.plan-shape-inspector .plan-inspector-hint { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 12px; margin: 0; padding: 16px 24px; color: #718075; font-size: .82rem; line-height: 1.5; }
.plan-shape-inspector.is-empty .plan-inspector-hint { display: flex; }
.plan-inspector-hint svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.plan-shape-inspector > div { display: grid; gap: 2px; align-self: center; padding-bottom: 2px; }
.plan-shape-inspector > div span { color: #658074; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.plan-shape-inspector > div strong { color: #203e34; font: 700 1rem/1.2 "Outfit", sans-serif; }
.plan-shape-inspector label { display: grid; gap: 4px; color: #315c4e; font-size: .72rem; font-weight: 800; }
.plan-shape-inspector label span { font-weight: 500; }
.plan-shape-inspector input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #b9cba9; border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.plan-shape-inspector .button { min-height: 40px; padding: 8px 12px; }
.plan-shape-inspector[data-shape-type="text"] { grid-template-columns: minmax(150px, 1fr) auto; }
.plan-status-row { position: absolute; top: 70px; right: 16px; z-index: 20; padding: 0; pointer-events: none; }
.plan-status-row p { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#planStatus { display: block; max-width: min(360px, calc(100vw - 44px)); padding: 9px 12px; border: 1px solid rgba(40, 84, 72, .14); border-radius: 10px; background: rgba(255, 255, 252, .96); color: #52625c; box-shadow: 0 10px 28px rgba(29, 57, 47, .13); font-size: .76rem; font-weight: 700; line-height: 1.4; text-align: left; backdrop-filter: blur(8px); }
#planStatus:empty { display: none; }
#planStatus[data-tone="success"] { color: #285448; }
#planStatus[data-tone="error"] { color: #9a4435; }
.plan-canvas-wrap { position: relative; display: flex; align-items: flex-start; justify-content: center; min-height: 580px; padding: 24px; overflow: auto; background: #f3f4ee; }
.plan-canvas-stage { position: relative; display: grid; width: min(960px, 100%); min-width: 0; gap: 12px; }
#planCanvas { display: block; flex: 0 0 auto; max-width: none; height: auto; margin: 0 auto; border: 1px solid #d9ddd4; background: #fcfcf9; box-shadow: 0 12px 28px rgba(25, 42, 33, 0.08); cursor: crosshair; touch-action: none; user-select: none; }
#planCanvas.is-panning { cursor: grabbing; }
#planCanvas.is-curve-control { cursor: grab; }
#planCanvas.is-adjusting-curve { cursor: grabbing; }
#planCanvas:focus-visible { outline: 3px solid rgba(40,84,72,.24); outline-offset: 3px; }
.plan-inline-text-input { position: absolute; z-index: 10; height: 36px; min-width: 112px; max-width: 300px; padding: 0 10px; border: 1px solid #79a761; border-radius: 7px; outline: 3px solid rgba(121, 167, 97, .17); background: rgba(255, 255, 255, .97); color: #1e312a; font: 500 15px/1 "Manrope", sans-serif; box-shadow: 0 8px 22px rgba(29, 57, 47, .15); }
.plan-inline-text-input[hidden] { display: none; }
.plan-floor-bar { position: relative; display: flex; align-items: center; gap: 7px; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.plan-floor-tabs { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; min-width: 0; }
.plan-floor-tabs button, .plan-add-floor { flex: 0 0 auto; min-height: 36px; padding: 8px 13px; border: 1px solid #ced8ca; border-radius: 8px; background: #fff; color: #52625c; font: 700 .78rem/1 "Manrope", sans-serif; cursor: pointer; }
.plan-floor-tabs button.is-active { border-color: #285448; background: #285448; color: #fff; }
.plan-floor-tabs button.drop-before { box-shadow: inset 4px 0 #8cad7d; }
.plan-floor-tabs button.drop-after { box-shadow: inset -4px 0 #8cad7d; }
.plan-add-floor { border-style: dashed; border-color: #9bb58f; background: #eef5e7; color: #285448; }
.plan-add-floor:hover { border-style: solid; background: #e2eed9; }
.plan-floor-menu { position: fixed; z-index: 30; min-width: 156px; padding: 5px; border: 1px solid #d5ded3; border-radius: 10px; background: #fff; box-shadow: 0 14px 36px rgba(25, 49, 41, .17); }
.plan-floor-menu[hidden] { display: none; }
.plan-floor-menu button { width: 100%; padding: 9px 11px; border: 0; border-radius: 7px; background: transparent; color: #9a4435; font: 700 .76rem/1.2 "Manrope", sans-serif; text-align: left; cursor: pointer; }
.plan-floor-menu button:hover { background: #f8ece8; }
.plan-floor-menu button:disabled { color: #9caaa4; cursor: not-allowed; }
.layout-ai { margin-top: 22px; overflow: hidden; border: 1px solid rgba(40, 84, 72, .13); border-radius: 22px; background: #fff; box-shadow: 0 18px 52px rgba(32, 62, 52, .09); }
.layout-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px; border-bottom: 1px solid rgba(40, 84, 72, .1); background: rgba(255, 255, 252, .96); }
.layout-chat-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.layout-chat-identity .eyebrow { margin: 0 0 3px; }
.layout-chat-mark { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid #cbdcc2; border-radius: 13px; background: #edf5e8; color: #285448; }
.layout-chat-mark svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.layout-ai h2 { margin: 0; font-family: "Outfit", sans-serif; font-size: 1.35rem; letter-spacing: -.025em; }
.layout-mode { display: grid; flex: 0 0 220px; gap: 5px; color: #52675e; font-size: .7rem; font-weight: 800; }
.layout-mode select { width: 100%; height: 40px; padding: 0 11px; border: 1px solid #cbd8bf; border-radius: 10px; background: #f8fbf5; color: var(--text); font: inherit; }
.layout-chat-thread { display: flex; min-height: 280px; max-height: 560px; flex-direction: column; gap: 12px; padding: 28px; overflow-y: auto; scrollbar-gutter: stable; background: radial-gradient(circle at 8% 18%, rgba(177, 207, 158, .18), transparent 28%), linear-gradient(180deg, #fbfcf9, #fff); }
/* Keep message heights intact when the bounded thread starts scrolling.
   In particular, the working indicator clips its animation, not its text. */
.layout-chat-thread > *, .layout-conversation > * { flex-shrink: 0; }
.layout-conversation { display: flex; flex-direction: column; gap: 12px; }
.layout-message { width: fit-content; max-width: min(78%, 620px); padding: 11px 14px; border: 1px solid #d8e4d1; border-radius: 16px 16px 16px 5px; background: #f2f7ee; color: #30463c; font-size: .88rem; line-height: 1.55; white-space: pre-wrap; }
.layout-message.user { align-self: flex-end; border-color: #285448; border-radius: 16px 16px 5px 16px; background: #285448; color: #f8fff3; }
.layout-message[hidden] { display: none; }
.layout-message-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 7px; margin-top: 9px; }
.layout-message-images img { display: block; width: 100%; max-width: 160px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.layout-working { position: relative; overflow: hidden; overflow-wrap: anywhere; color: #587065; }
.layout-working::after { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 15%, rgba(255, 255, 255, .72) 45%, transparent 75%); content: ""; transform: translateX(-100%); animation: layout-thinking 1.7s linear infinite; }
@keyframes layout-thinking { to { transform: translateX(100%); } }
.layout-alternatives { display: flex; flex-wrap: wrap; gap: 8px; }
.layout-alternatives[hidden], .layout-validation[hidden] { display: none; }
.layout-alternatives button { display: grid; min-width: 132px; gap: 3px; padding: 9px 12px; border: 1px solid #cad9c2; border-radius: 11px; background: rgba(255, 255, 255, .92); color: #40584e; text-align: left; cursor: pointer; }
.layout-alternatives button:hover { border-color: #8cad7d; background: #f5f9f1; }
.layout-alternatives button.is-active { border-color: #285448; background: #285448; color: #fff; box-shadow: 0 8px 20px rgba(40, 84, 72, .14); }
.layout-alternatives strong { font: 700 .78rem/1.2 "Outfit", sans-serif; }
.layout-alternatives span { font-size: .64rem; letter-spacing: .04em; opacity: .75; text-transform: capitalize; }
.layout-validation { display: grid; width: min(100%, 720px); gap: 8px; padding: 11px 12px; border: 1px solid #d5e2cf; border-radius: 13px; background: rgba(247, 250, 244, .94); }
.layout-validation-metrics { display: flex; flex-wrap: wrap; gap: 7px; }
.layout-validation-metrics span { padding: 5px 8px; border-radius: 999px; background: #e8f1e2; color: #486057; font-size: .67rem; }
.layout-validation-metrics strong { color: #285448; }
.layout-validation-warning { margin: 0; color: #7a5a39; font-size: .7rem; line-height: 1.45; }
.layout-validation-note { margin: 0; color: #66766f; font-size: .7rem; line-height: 1.45; }
.layout-chat-composer { position: relative; display: flex; flex-wrap: wrap; align-items: end; gap: 9px; padding: 14px 20px 10px; border-top: 1px solid rgba(40, 84, 72, .1); background: rgba(255, 255, 252, .97); }
.layout-chat-composer textarea { width: 100%; min-height: 44px; max-height: 126px; flex: 1; padding: 11px 13px; overflow-y: hidden; border: 1px solid #cbd8bf; border-radius: 13px; background: #fff; color: var(--text); font: inherit; line-height: 1.45; resize: none; }
.layout-chat-composer textarea:focus { outline: 3px solid rgba(121, 167, 97, .14); border-color: #79a761; }
.layout-chat-composer .button { min-height: 44px; padding: 0 19px; }
.layout-chat-composer .layout-submit-button { display: grid; width: 44px; min-width: 44px; padding: 0; place-items: center; }
.layout-submit-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }
.layout-submit-button.is-cancelling { background: #8b403d; border-color: #8b403d; color: #fff; }
.layout-submit-button.is-cancelling:hover { background: #733431; border-color: #733431; }
.layout-project-action-mount { display: block; flex: 0 0 44px; }
.layout-project-action-mount .chat-project-action { width: 44px; height: 44px; border: 1px solid #cbd4ce; border-radius: 13px; background: #fff; font: 700 1rem/1 "Manrope", sans-serif; }
.layout-project-action-mount .chat-project-action:hover { border-color: #aebbb3; background: #f6f7f4; }
.layout-attachment-control { position: relative; flex: 0 0 44px; }
.layout-attachment-button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid #cbd4ce; border-radius: 13px; background: #fff; color: #285448; font: 400 1.55rem/1 "Manrope", sans-serif; cursor: pointer; }
.layout-attachment-button:hover, .layout-attachment-button[aria-expanded="true"] { border-color: #aebbb3; background: #f6f7f4; }
.layout-attachment-button:disabled { opacity: .5; cursor: wait; }
.layout-attachment-menu { position: absolute; bottom: calc(100% + 9px); left: 0; z-index: 12; display: grid; width: 172px; gap: 3px; padding: 6px; border: 1px solid #cfddc7; border-radius: 12px; background: #fff; box-shadow: 0 16px 42px rgba(29, 57, 47, .16); }
.layout-attachment-menu[hidden] { display: none; }
.layout-attachment-menu button { padding: 10px; border: 0; border-radius: 8px; background: transparent; color: #30463c; font: 700 .76rem/1.2 "Manrope", sans-serif; text-align: left; cursor: pointer; }
.layout-attachment-menu { width: 240px; max-width: calc(100vw - 96px); }
.layout-attachment-menu button { display: flex; align-items: center; gap: 10px; }
.layout-attachment-menu button svg { width: 19px; height: 19px; flex: 0 0 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.layout-attachment-menu button:hover { background: #eef5e9; }
.layout-attachment-preview { display: flex; flex: 1 0 100%; order: 4; gap: 7px; min-width: 0; overflow-x: auto; padding-top: 2px; }
.layout-attachment-preview[hidden] { display: none; }
.layout-attachment-preview > .layout-video-attachment { display: flex; flex-wrap: wrap; width: 280px; flex-basis: 280px; }
.layout-video-attachment video, .layout-message-images video { width: 100%; max-height: 240px; object-fit: contain; border-radius: 8px; background: #17231e; }
.layout-attachment-preview > span { position: relative; display: grid; width: 124px; flex: 0 0 124px; grid-template-columns: 32px minmax(0, 1fr) 20px; align-items: center; gap: 6px; padding: 5px; border: 1px solid #d8e4d1; border-radius: 9px; background: #f7faf4; }
.layout-attachment-preview img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.layout-attachment-preview small { overflow: hidden; color: #52675e; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.layout-attachment-preview button { display: grid; width: 20px; height: 20px; padding: 0; place-items: center; border: 0; background: transparent; color: #6e7d76; font: 500 1rem/1 sans-serif; cursor: pointer; }
.layout-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 15px; background: rgba(255, 255, 252, .97); }
.layout-actions span { color: #7a877f; font-size: .7rem; }
.layout-actions .button { min-height: 34px; padding: 7px 12px; font-size: .75rem; }
@media (max-width: 760px) {
  .layout-chat-header { align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; }
  .layout-mode { width: 100%; flex-basis: auto; }
  .layout-chat-thread { min-height: 240px; padding: 20px 14px; }
  .layout-message { max-width: 88%; }
  .layout-alternatives { display: grid; grid-template-columns: 1fr; width: 100%; }
  .layout-alternatives button { width: 100%; }
  .layout-chat-composer { padding: 12px 12px 9px; }
  .layout-chat-composer .button { padding: 0 13px; }
  .layout-chat-composer .layout-submit-button { padding: 0; }
  .layout-chat-composer textarea { min-width: 0; }
  .layout-attachment-menu { bottom: calc(100% + 7px); }
  .layout-actions { align-items: flex-end; padding: 0 12px 12px; }
  .layout-actions span { max-width: 190px; }
  .plan-toolbar label { margin-left: 0; }
  .plan-title-field input { width: 132px; }
  .plan-shape-inspector { width: 100%; min-height: 220px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .plan-shape-inspector > div { grid-column: 1 / -1; }
  .plan-shape-inspector[data-shape-type="text"] { grid-template-columns: 1fr; }
  .plan-status-row { top: 122px; right: 12px; }
  .plan-canvas-wrap { min-height: 390px; padding: 14px; }
  .plan-floor-bar { align-items: center; }
}

.consultant-main { padding: 42px 0 90px; }
.consultant-heading { max-width: 820px; margin-bottom: 28px; }
.consultant-heading h1 { margin: 8px 0 0; font-family: "Outfit", sans-serif; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.05em; line-height: 1.02; }
.consultant-heading > p:last-child { max-width: 680px; color: var(--muted); line-height: 1.65; }
.consultant-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: stretch; }
.consultant-history-row { position: relative; flex: 0 0 auto; }
.consultant-history-row .consultant-history-entry { min-height: 54px; padding-right: 78px; }
.chat-delete-action, .chat-project-action { display: grid; place-items: center; width: 32px; height: 32px; padding: 5px; border: 0; border-radius: 8px; background: #eef4e9; color: #285448; cursor: pointer; }
.chat-delete-action svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.consultant-history-row .chat-delete-action { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); border: 1px solid #dbe7d4; background: #fff; }
.consultant-history-row .chat-project-action { position: absolute; top: 50%; right: 42px; transform: translateY(-50%); }
.conversation-item > .chat-project-action { position: absolute; right: 42px; top: 50%; transform: translateY(-50%); }
.consultant-history-row .chat-project-action,
.conversation-item > .chat-project-action { border: 1px solid #dbe7d4; background: #fff; color: #285448; }
.conversation-item:has(> .chat-project-action) .conversation-item-select { padding-right: 76px; }
.consultant-chat > .chat-project-action { margin: 8px 16px; }
.chat-project-dialog { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid #d4e1ca; border-radius: 20px; color: #285448; }
.chat-project-dialog::backdrop { background: rgb(20 40 30 / .3); }
.chat-project-dialog label { display: grid; gap: 8px; margin: 18px 0; }
.chat-project-dialog select { width: 100%; padding: 12px; border: 1px solid #c9d9c0; border-radius: 10px; background: #f6f9f3; }
.chat-project-dialog .button { margin: 4px; }
.consultant-history { display: flex; flex-direction: column; align-self: stretch; contain: size; min-width: 0; min-height: 0; padding: 20px; border: 1px solid rgba(40,84,72,.13); border-radius: 22px; background: rgba(255,255,252,.82); box-shadow: 0 16px 48px rgba(31,68,55,.07); overflow: hidden; }
.consultant-history header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(40,84,72,.1); color: #285448; }
.consultant-history header .button { min-width: 38px; min-height: 38px; padding: 0; font-size: 24px; }
.consultant-history-list { display: flex; flex: 1 1 0; min-height: 0; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior-y: contain; padding: 2px 14px 4px 0; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #b9c9bd transparent; }
.consultant-history-list > p { color: var(--muted); font-size: .85rem; }
.consultant-history-entry { display: flex; flex: 0 0 auto; flex-direction: column; justify-content: center; gap: 1px; min-height: 54px; width: 100%; padding: 7px 78px 7px 11px; text-align: left; border: 1px solid #d7e3d0; border-radius: 13px; background: #f9fcf7; color: #285448; cursor: pointer; font: inherit; }
.consultant-history-entry strong { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: .84rem; line-height: 1.3; }
.consultant-history-entry span { color: var(--muted); font-size: .68rem; }
.consultant-history-entry:hover, .consultant-history-entry[aria-pressed="true"] { background: #edf6e7; border-color: #9bc687; }
.consultant-history-entry:focus-visible { outline: 2px solid #285448; outline-offset: 2px; }
@media (max-width: 1100px) {
  .consultant-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .consultant-side { grid-column: 2; }
}
@media (max-width: 760px) {
  .consultant-layout { grid-template-columns: minmax(0, 1fr); }
  .consultant-history { contain: none; height: 280px; }
  .consultant-side { grid-column: auto; }
}
.consultant-chat, .consultant-side { border: 1px solid rgba(40,84,72,.13); border-radius: 22px; background: rgba(255,255,255,.96); box-shadow: 0 24px 65px rgba(30,64,53,.08); }
.consultant-chat { overflow: hidden; }
.consultant-chat-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid rgba(40,84,72,.1); background: rgba(255,255,255,.88); }
.consultant-chat-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.consultant-chat-identity > div { display: grid; gap: 3px; min-width: 0; }
.consultant-chat-mark { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid #bad3a8; border-radius: 12px; background: linear-gradient(145deg, #f3f8ee, #dcebd1); color: #285448; box-shadow: inset 0 1px rgba(255,255,255,.8); }
.consultant-chat-mark svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.consultant-chat-header strong { color: #1d2924; font: 700 1rem/1.2 "Outfit", sans-serif; }
.consultant-chat-header span { color: var(--muted); font-size: .72rem; }
.consultant-chat-header .button { flex: 0 0 auto; min-height: 38px; padding: 8px 12px; font-size: .76rem; }
.consultant-messages { display: flex; min-height: 360px; max-height: min(56vh, 620px); padding: 28px 24px; overflow-y: auto; flex-direction: column; gap: 12px; scrollbar-gutter: stable; background: radial-gradient(circle at 88% 6%, rgba(160,193,128,.13), transparent 28%), linear-gradient(180deg, #fbfcf9 0%, #f7faf4 100%); }
.consultant-messages .followup-message { width: fit-content; max-width: min(78%, 640px); padding: 11px 14px; border-radius: 15px 15px 15px 5px; background: #fff; color: #263b33; box-shadow: 0 7px 22px rgba(28,59,49,.07); line-height: 1.55; }
.consultant-messages .followup-message.user { align-self: flex-end; border-radius: 15px 15px 5px 15px; background: #285448; color: #fff; }
.consultant-form { display: grid; gap: 10px; padding: 13px 18px 16px; border-top: 1px solid rgba(40,84,72,.1); background: #fff; }
.consultant-tools { display: flex; flex-wrap: wrap; gap: 7px; order: 2; }
.consultant-tool { position: relative; min-height: 34px; padding: 7px 10px; overflow: hidden; border: 1px solid #c1d5b4; border-radius: 999px; background: #f3f8ee; color: #285448; font: inherit; font-size: .74rem; font-weight: 750; cursor: pointer; }
.consultant-tool input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.consultant-tool:disabled { cursor: wait; opacity: .58; }
.consultant-tool.is-active, .consultant-tool[aria-pressed="true"] { border-color: #285448; background: #285448; color: #fff; }
.live-session-button { display: inline-flex; align-items: center; gap: 7px; }
.live-session-button::before { content: ""; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #67a653; box-shadow: 0 0 0 3px rgba(103, 166, 83, .14); }
.live-session-button[aria-pressed="true"]::before { background: #d8ff8a; animation: live-session-pulse 1.4s ease-out infinite; }
@keyframes live-session-pulse { 0% { box-shadow: 0 0 0 0 rgba(216, 255, 138, .52); } 70%, 100% { box-shadow: 0 0 0 7px rgba(216, 255, 138, 0); } }
.consultant-composer-row { display: flex; align-items: stretch; gap: 9px; order: 1; }
.consultant-composer-row .composer-project-action-mount,
.consultant-composer-row .chat-project-action { width: 44px; height: 44px; flex-basis: 44px; border-radius: 13px; }
.consultant-form textarea { width: 100%; min-height: 46px; max-height: 126px; padding: 12px 14px; overflow-y: hidden; border: 1px solid #d5dfce; border-radius: 14px; outline: 0; background: #fbfcfa; font: inherit; line-height: 1.45; resize: none; transition: border-color .18s ease, box-shadow .18s ease; }
.consultant-form textarea:focus { border-color: #8bae76; box-shadow: 0 0 0 3px rgba(105,151,79,.12); }
.consultant-composer-row .button { min-width: 92px; min-height: 46px; border-radius: 14px; }
.consultant-attachment { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 8px; padding: 9px; border: 1px solid #cbd8bf; border-radius: 11px; background: #f4f8f0; }
.consultant-attachment-card { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 9px; align-items: center; min-width: 0; padding: 7px 34px 7px 7px; border: 1px solid rgba(40,84,72,.12); border-radius: 8px; background: #fff; }
.consultant-attachment-card img { width: 52px; height: 46px; object-fit: cover; border-radius: 6px; background: #e8eee2; }
.consultant-attachment-card video { width: 76px; height: 48px; object-fit: cover; border-radius: 6px; background: #10221d; }
.consultant-attachment-card span { min-width: 0; overflow: hidden; color: #315c4e; font-size: .72rem; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; }
.consultant-attachment-card button { position: absolute; top: 5px; right: 5px; display: grid; width: 25px; height: 25px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: #eef5e7; color: #285448; font-size: 1rem; cursor: pointer; }
.consultant-attachment-card.is-screen { grid-column: span 2; grid-template-columns: 76px minmax(0, 1fr); border-color: #a8c88b; }
.consultant-media-status { min-height: 1.25em; margin: -4px 2px 0; color: #5f7368; font-size: .75rem; line-height: 1.45; order: 2; }
.consultant-media-status:empty { display: none; }
.consultant-media-status[data-tone="error"] { color: #9a4435; }
.consultant-media-status.is-transcribing { position: relative; min-height: 34px; margin: 0; padding: 8px 12px; overflow: hidden; border: 1px solid #d2e3c8; border-radius: 10px; background: linear-gradient(110deg, #edf6e8 0%, #f8fcf5 36%, #dcefd1 52%, #f8fcf5 68%, #edf6e8 100%); background-size: 240% 100%; color: #426457; animation: consultant-transcribing 1.8s linear infinite; }
@keyframes consultant-transcribing { to { background-position: -240% 0; } }
@media (prefers-reduced-motion: reduce) { .consultant-media-status.is-transcribing { animation: none; } }
.live-session-privacy { margin: -5px 2px 0; color: var(--muted); font-size: .7rem; line-height: 1.45; order: 2; }
.consultant-attachment { order: 2; }
.consultant-side { display: grid; gap: 12px; padding: 20px; background: linear-gradient(160deg, #f0f6eb, #e7f0df); border-color: #d4e1ca; }
.consultant-side h2 { margin: 8px 0; font-family: "Outfit", sans-serif; font-size: 1.65rem; }
.consultant-side p { color: var(--muted); line-height: 1.65; }
.consultant-side .button { width: 100%; }
.project-context-list { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }
.project-context-list span { padding: 7px 9px; border-radius: 7px; background: rgba(255,255,255,.7); color: #315c4e; font-size: .76rem; }
.followup-message { white-space: pre-wrap; }
.consultant-citations { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.consultant-citations a { padding: 7px 9px; border: 1px solid #cbd8bf; border-radius: 7px; background: #fff; color: #285448; font-size: .76rem; font-weight: 800; text-decoration: none; }
.save-chat-note { display: block; width: fit-content; margin-top: 10px; padding: 6px 9px; border: 1px solid rgba(40,84,72,.24); border-radius: 7px; background: rgba(255,255,255,.72); color: #285448; font: inherit; font-size: .73rem; font-weight: 800; cursor: pointer; }
@media (max-width: 760px) {
  .consultant-layout { grid-template-columns: 1fr; }
  .consultant-chat-header { align-items: stretch; flex-direction: column; }
  .consultant-chat-header .button { width: 100%; }
  .consultant-messages { min-height: 300px; max-height: 52vh; padding: 20px 14px; }
  .consultant-messages .followup-message { max-width: 88%; }
  .consultant-form { padding: 12px; }
  .consultant-composer-row .button { min-width: 78px; padding-inline: 12px; }
  .consultant-tools { flex-wrap: nowrap; padding-bottom: 2px; overflow-x: auto; }
  .consultant-tool { flex: 0 0 auto; }
  .consultant-attachment { grid-template-columns: 1fr; }
  .consultant-attachment-card.is-screen { grid-column: auto; }
}

.project-dossier { margin-top: 28px; padding: clamp(22px, 4vw, 48px); border: 1px solid #d8dfd1; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(39, 71, 62, .08); }
.project-dossier[hidden] { display: none; }
.dossier-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.dossier-header > div { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.dossier-header .eyebrow { margin: 0; }
.dossier-header span { color: var(--muted); font-size: .78rem; }
.dossier-header h2 { grid-column: 1; max-width: 18ch; margin: 0; font: 700 clamp(2rem, 5vw, 4.4rem)/.98 "Outfit", sans-serif; letter-spacing: -.055em; }
.dossier-header > p { grid-column: 2; align-self: end; max-width: 460px; margin: 0; color: var(--muted); line-height: 1.75; }
.dossier-visuals { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 38%); gap: 12px; margin: 28px 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.dossier-visuals figure { position: relative; height: 260px; margin: 0; overflow: hidden; border-radius: 12px; background: #eef0e9; scroll-snap-align: start; }
.dossier-visuals img { width: 100%; height: 100%; object-fit: cover; }
.dossier-visuals figcaption { position: absolute; right: 9px; bottom: 9px; left: 9px; padding: 8px 10px; border-radius: 7px; background: rgba(24, 40, 34, .82); color: #fff; font-size: .72rem; backdrop-filter: blur(8px); }
.dossier-empty { grid-column: 1 / -1; margin: 0; padding: 20px; border: 1px dashed #cbd8bf; border-radius: 10px; color: var(--muted); }
.dossier-analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.dossier-analysis-grid article { min-height: 235px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dossier-analysis-grid article > span { color: #78906d; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.dossier-analysis-grid h3 { margin: 30px 0 10px; font: 700 1.3rem/1.1 "Outfit", sans-serif; }
.dossier-analysis-grid p { margin: 0; color: var(--muted); line-height: 1.72; white-space: pre-wrap; }
.dossier-block { padding: 38px 0; border-bottom: 1px solid var(--line); }
.dossier-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dossier-section-heading p { margin: 0; }
.dossier-section-heading h3 { max-width: 520px; margin: 0; font: 700 clamp(1.5rem, 3vw, 2.4rem)/1 "Outfit", sans-serif; letter-spacing: -.04em; }
.dossier-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.dossier-products article { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; }
.dossier-products img { grid-row: 1 / 3; width: 74px; height: 74px; border-radius: 8px; object-fit: cover; background: #e9ece4; }
.dossier-products article > div { display: grid; gap: 2px; min-width: 0; }
.dossier-products span { color: #577265; font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dossier-products strong { overflow: hidden; font-size: .88rem; text-overflow: ellipsis; white-space: nowrap; }
.dossier-products small { color: var(--muted); font-size: .7rem; }
.dossier-products a { grid-column: 2; color: #285448; font-size: .74rem; font-weight: 800; }
.dossier-improvements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dossier-improvements article { min-height: 190px; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #fafbf8; }
.dossier-improvements article > span { display: inline-flex; padding: 5px 7px; border-radius: 999px; background: #e8eee2; color: #456052; font-size: .65rem; font-weight: 800; text-transform: uppercase; }
.dossier-improvements .priority-alta { border-top: 3px solid #9b5541; }
.dossier-improvements .priority-mitjana { border-top: 3px solid #b39a55; }
.dossier-improvements .priority-baixa { border-top: 3px solid #78906d; }
.dossier-improvements h4 { margin: 24px 0 8px; font: 700 1.08rem/1.15 "Outfit", sans-serif; }
.dossier-improvements p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.dossier-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 38px 0; }
.dossier-lists section { padding: 22px; border-radius: 12px; background: #eef5e7; }
.dossier-lists section:last-child { background: #f1f0eb; }
.dossier-lists h3 { margin: 0 0 14px; font: 700 1.2rem "Outfit", sans-serif; }
.dossier-lists ol, .dossier-lists ul { display: grid; gap: 9px; margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.55; }
.dossier-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.dossier-actions > span { color: #285448; font-size: .8rem; font-weight: 700; }

@media (max-width: 760px) {
  .dossier-header { grid-template-columns: 1fr; }
  .dossier-header h2, .dossier-header > p { grid-column: 1; }
  .dossier-header > div { align-items: start; flex-direction: column; }
  .dossier-visuals { grid-auto-columns: 86%; }
  .dossier-analysis-grid, .dossier-lists { grid-template-columns: 1fr; }
  .dossier-improvements { grid-template-columns: 1fr; }
  .dossier-analysis-grid article { min-height: 0; }
  .dossier-section-heading { align-items: start; flex-direction: column; }
}

@media print {
  body * { visibility: hidden; }
  .project-dossier, .project-dossier * { visibility: visible; }
  .project-dossier { position: absolute; inset: 0; margin: 0; padding: 18px; border: 0; box-shadow: none; }
  .dossier-visuals { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .dossier-actions { display: none; }
}

.catalog-main { padding: 42px 0 90px; }
.catalog-heading { max-width: 720px; margin-bottom: 28px; }
.catalog-heading h1 { margin: 8px 0; font-family: "Outfit", sans-serif; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.05em; line-height: 1.02; }
.catalog-heading p:last-child { color: var(--muted); line-height: 1.65; }
.catalog-admin { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: 34px; margin-bottom: 30px; padding: 24px; border: 1px solid #dce5d1; border-radius: 18px; background: #f7faf3; }
.catalog-admin h2 { margin: 6px 0 8px; font: 700 1.55rem/1.15 "Outfit", sans-serif; }
.catalog-admin > div > p:last-child { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.catalog-admin-locked { opacity: .78; }
.catalog-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.catalog-form label { display: grid; gap: 6px; color: #285448; font-size: .76rem; font-weight: 800; }
.catalog-form input, .catalog-form select { min-width: 0; height: 44px; padding: 0 12px; border: 1px solid #cbd8bf; border-radius: 9px; background: #fff; color: var(--text); font: inherit; }
.catalog-form input[type="file"] { height: auto; padding: 10px; color: var(--muted); cursor: pointer; }
.catalog-form input[type="file"]::file-selector-button { margin-right: 10px; padding: 8px 11px; border: 0; border-radius: 7px; background: #dcebcf; color: #285448; font: 800 .76rem "Manrope", sans-serif; cursor: pointer; }
.catalog-form label small { color: var(--muted); font-size: .72rem; font-weight: 500; }
.catalog-form input:focus, .catalog-form select:focus { outline: 2px solid rgba(40, 84, 72, .18); border-color: #285448; }
.catalog-form-wide { grid-column: 1 / -1; }
.catalog-form .button { justify-self: start; min-height: 44px; background: #285448; box-shadow: none; }
.catalog-feedback { align-self: center; margin: 0; color: var(--muted); font-size: .84rem; }
.catalog-feedback a { color: #285448; font-weight: 800; }
.catalog-directory { margin: 44px 0 34px; }
.catalog-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.catalog-section-heading h2 { margin: 5px 0 0; font: 700 1.7rem/1.1 "Outfit", sans-serif; }
.catalog-section-heading > p { max-width: 500px; margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }
.catalog-source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px; }
.catalog-source-card { display: grid; gap: 5px; min-height: 82px; padding: 15px; border: 1px solid #dce5d1; border-radius: 11px; background: #f7faf3; color: var(--text); text-decoration: none; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.catalog-source-card:hover { border-color: #8eae80; background: #eef5e7; transform: translateY(-2px); }
.catalog-source-card strong { font: 700 .94rem/1.2 "Outfit", sans-serif; }
.catalog-source-card span { color: var(--muted); font-size: .7rem; }
.catalog-browser { display: grid; gap: 12px; margin: 36px 0 16px; }
.catalog-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.catalog-filters label { display: grid; gap: 5px; color: #285448; font-size: .7rem; font-weight: 800; }
.catalog-filters select { min-width: 210px; height: 40px; padding: 0 11px; border: 1px solid #cbd8bf; border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.catalog-search-label { min-width: min(320px, 100%); }
.catalog-search-label input { min-width: 260px; height: 40px; padding: 0 11px; border: 1px solid #cbd8bf; border-radius: 8px; background: #fff; color: var(--text); font: inherit; }
.catalog-search-label input:focus { outline: 2px solid rgba(40,84,72,.18); border-color: #285448; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.catalog-card { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.catalog-swatch { display: grid; place-items: center; height: 170px; margin-bottom: 14px; overflow: hidden; border-radius: 9px; background: #e3ded4; }
.catalog-swatch img { width: 100%; height: 100%; object-fit: cover; }
.catalog-image-placeholder { max-width: 140px; color: #61766c; font: 700 .8rem/1.35 "Outfit", sans-serif; text-align: center; }
.catalog-swatch.lamp-orbit { background: radial-gradient(circle at 50% 35%, #fff8c9 0 18%, #d8e3d1 19% 33%, #eef5e7 34%); }
.catalog-swatch.tile-sage, .catalog-swatch.chair-loop { background: #a8c88b; }
.catalog-swatch.table-oak { background: linear-gradient(135deg, #d7ba87, #f1ddbb); }
.catalog-swatch.rug-weave { background: repeating-linear-gradient(45deg, #ebe3d7 0 7px, #d8c7af 7px 14px); }
.catalog-card-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.catalog-card-meta span { padding: 4px 7px; border-radius: 999px; background: #eef5e7; color: #285448; font-size: .62rem; font-weight: 800; }
.catalog-card h2 { margin: 8px 0 2px; font-family: "Outfit", sans-serif; font-size: 1.25rem; }
.catalog-card p { margin: 0 0 14px; color: var(--muted); font-size: .84rem; }
.catalog-card a { color: #285448; font-size: .85rem; font-weight: 800; }
.catalog-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.catalog-card-footer strong { color: var(--text); font-size: .86rem; }
.catalog-remove { position: absolute; top: 21px; right: 21px; padding: 6px 9px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .92); color: #713426; font: 800 .7rem/1 "Manrope", sans-serif; cursor: pointer; box-shadow: 0 5px 18px rgba(30, 31, 27, .12); }
.catalog-remove:disabled { opacity: .55; cursor: wait; }
.catalog-picker { display: grid; gap: 10px; margin-top: 14px; padding: 13px; border: 1px solid #dce5d1; border-radius: 12px; background: #f7faf3; }
.catalog-picker > div:first-child { display: grid; gap: 2px; }
.catalog-picker strong { color: #285448; font-size: .9rem; }
.catalog-picker span { color: var(--muted); font-size: .78rem; }
.catalog-picker-items { display: flex; flex-wrap: wrap; gap: 7px; }
.catalog-choice { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border: 1px solid #a8c88b; border-radius: 999px; background: #fff; color: #285448; font: inherit; font-size: .77rem; cursor: pointer; }
.catalog-choice img { width: 27px; height: 27px; border-radius: 50%; object-fit: cover; }
.catalog-choice > span { color: inherit; }
.catalog-choice.selected { border-color: #285448; background: #285448; color: #fff; }
.catalog-picker-empty { width: 100%; padding: 6px 2px; }
.catalog-picker-empty a { color: #285448; font-weight: 800; }
.generated-products { display: grid; gap: 11px; padding: 14px; border: 1px solid #dce5d1; border-radius: 12px; background: #f7faf3; }
.generated-products[hidden] { display: none; }
.generated-products > div:first-child { display: grid; gap: 2px; }
.generated-products > div:first-child span { color: #537767; font-size: .67rem; font-weight: 800; letter-spacing: .1em; }
.generated-products > div:first-child strong { font: 700 1rem/1.25 "Outfit", sans-serif; }
.generated-product-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.generated-product-list > a { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 7px; border: 1px solid #cbd8bf; border-radius: 9px; background: #fff; color: var(--text); text-decoration: none; }
.generated-product-list > a:hover { border-color: #285448; }
.generated-product-list img { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 7px; object-fit: cover; background: #e5ebe0; }
.generated-product-list a > span { display: grid; min-width: 0; gap: 2px; }
.generated-product-list strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.generated-product-list small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 760px) {
  .catalog-admin { grid-template-columns: 1fr; gap: 20px; padding: 19px; }
  .catalog-form { grid-template-columns: 1fr; }
  .catalog-form-wide { grid-column: auto; }
  .catalog-section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .catalog-filters { display: grid; grid-template-columns: 1fr; }
  .catalog-filters select { width: 100%; min-width: 0; }
  .catalog-search-label input { width: 100%; min-width: 0; }
}

.plans-main { padding: 58px 0 90px; }
.plans-heading { max-width: 680px; margin-bottom: 30px; }
.plans-heading h1 { margin: 8px 0; font-family: "Outfit", sans-serif; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.05em; line-height: 1.02; }
.plans-heading p:last-child { color: var(--muted); }
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 850px; }
.pricing-card { display: grid; gap: 13px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pricing-card > span { color: #285448; font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.pricing-card h2 { margin: 0; font-family: "Outfit", sans-serif; font-size: 1.75rem; }
.pricing-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.pricing-card .price { color: var(--text); font-family: "Outfit", sans-serif; font-size: 2rem; font-weight: 800; }
.pricing-card .price small { color: var(--muted); font: 400 .9rem "Manrope", sans-serif; }
.pricing-card ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: var(--muted); font-size: .9rem; }
.pricing-featured { border-color: #285448; background: #eef5e7; }
.pricing-card-labels { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: #285448; font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.pricing-recommended { padding: 6px 11px; border-radius: 999px; background: #285448; color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .02em; }
.plans-heading #accountStatus { line-height: 1.8; }
.plans-heading #accountStatus a { color: #285448; font-weight: 600; text-decoration-color: #a6b8ad; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .15s, text-decoration-color .15s; }
.plans-heading #accountStatus a:hover { color: #163c30; text-decoration-color: currentColor; }
.plans-heading #accountStatus a:focus-visible { outline: 2px solid #285448; outline-offset: 4px; border-radius: 3px; }
.pricing-card .button:disabled { opacity: .62; cursor: not-allowed; }
.plans-followup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 850px; margin-top: 20px; }
.plans-followup:not(:has(> :not([hidden]))), .plans-followup:empty { display: none; }
.payment-note { max-width: 760px; margin-top: 20px; color: var(--muted); font-size: .82rem; }
@media (max-width: 640px) { .pricing-grid { grid-template-columns: 1fr; } }

.account-main { display: grid; grid-template-columns: minmax(0, .8fr) minmax(520px, 1fr); gap: 40px; align-items: start; padding: 58px 0 90px; }
.account-intro h1 { margin: 8px 0 12px; font-family: "Outfit", sans-serif; font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.05em; line-height: 1.02; }
.account-intro > p:last-child { color: var(--muted); line-height: 1.7; }
.account-panel { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.account-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.account-form { display: grid; align-content: start; gap: 12px; padding: 18px; border: 1px solid #dce5d1; border-radius: 12px; background: #f8faf4; }
.account-form h2, .account-session h2 { margin: 0; font-family: "Outfit", sans-serif; font-size: 1.5rem; }
.account-form label { display: grid; gap: 5px; color: #285448; font-size: .8rem; font-weight: 800; }
.account-form input { width: 100%; padding: 10px; border: 1px solid #a8c88b; border-radius: 8px; background: #fff; font: inherit; }
.account-form > p { margin: -3px 0 2px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.account-link-button { justify-self: start; padding: 0; border: 0; background: transparent; color: #285448; font: inherit; font-size: .8rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.account-reset-form { grid-column: 1 / -1; max-width: 500px; }
.account-session { display: grid; gap: 10px; padding: 18px; border-radius: 12px; background: #eef5e7; }
.account-session > span { color: #285448; font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.account-session p { margin: 0; color: var(--muted); }
.account-session > div { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.account-feedback { min-height: 1.3em; margin: 14px 0 0; color: #285448; font-size: .84rem; }
.account-delete-dialog { width: min(460px, calc(100% - 32px)); margin: auto; padding: 0; border: 0; border-radius: 24px; background: transparent; color: var(--text); box-shadow: 0 28px 80px rgba(26, 47, 40, .28); }
.account-delete-dialog::backdrop { background: rgba(20, 39, 33, .48); backdrop-filter: blur(5px); }
.account-delete-dialog-card { display: grid; gap: 15px; padding: 30px; border: 1px solid rgba(140, 63, 48, .2); border-radius: 24px; background: linear-gradient(145deg, #fffdf9, #f8eee9); }
.account-delete-dialog-card .eyebrow { margin: 0; color: #9a5040; font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.account-delete-dialog-card h2 { margin: 0; font: 750 clamp(1.5rem, 4vw, 2rem)/1.05 "Outfit", sans-serif; letter-spacing: -.035em; }
.account-delete-dialog-card > p:not(.eyebrow) { margin: 0; color: #635f57; line-height: 1.6; }
.account-delete-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 5px; }
.account-delete-dialog-actions .button { min-height: 43px; border-radius: 11px; }
.profile-crop-dialog { width: min(590px, calc(100% - 28px)); margin: auto; padding: 0; overflow: visible; border: 0; border-radius: 30px; background: transparent; color: var(--text); box-shadow: 0 34px 100px rgba(18, 42, 34, .3); }
.profile-crop-dialog::backdrop { background: rgba(18, 35, 29, .52); backdrop-filter: blur(8px); }
.profile-crop-dialog-card { display: grid; justify-items: center; gap: 22px; padding: 34px 38px 30px; border: 1px solid rgba(40, 84, 72, .13); border-radius: 30px; background: radial-gradient(circle at 100% 0, rgba(200, 223, 184, .26), transparent 36%), #fffefb; box-shadow: inset 0 1px rgba(255, 255, 255, .9); }
.profile-crop-header { display: grid; width: 100%; justify-items: center; gap: 9px; text-align: center; }
.profile-crop-kicker { display: flex; align-items: center; gap: 9px; }
.profile-crop-kicker > span { width: 26px; height: 1px; background: #8aaa77; }
.profile-crop-header .eyebrow { margin: 0; color: #60806d; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.profile-crop-header h2 { margin: 0; color: #20362f; font: 400 clamp(1.9rem, 4vw, 2.55rem)/1.13 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.profile-crop-header > p:last-child { max-width: 46ch; margin: 1px 0 0; color: #6b706b; font-size: .87rem; line-height: 1.6; }
.profile-crop-stage { position: relative; display: grid; justify-items: center; padding: 3px 3px 24px; }
.profile-crop-canvas { display: block; width: min(370px, 76vw); height: min(370px, 76vw); border: 6px solid #fff; border-radius: 26px; background: #e6ece1; box-shadow: 0 18px 42px rgba(31, 68, 55, .19); cursor: grab; touch-action: none; user-select: none; }
.profile-crop-canvas:active { cursor: grabbing; }
.profile-crop-canvas.is-dragging { cursor: grabbing; box-shadow: 0 15px 36px rgba(31, 68, 55, .24); }
.profile-crop-controls { position: absolute; bottom: 2px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px; border: 1px solid rgba(40, 84, 72, .13); border-radius: 999px; background: rgba(255, 255, 252, .96); box-shadow: 0 10px 26px rgba(31, 68, 55, .15); backdrop-filter: blur(10px); }
.profile-crop-controls button { display: grid; width: 37px; height: 37px; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #285448; font: 750 1.05rem/1 "Manrope", sans-serif; cursor: pointer; transition: background 150ms ease, transform 150ms ease; }
.profile-crop-controls button:hover { background: #e5efe0; transform: translateY(-1px); }
.profile-crop-controls button:active { transform: translateY(0) scale(.94); }
.profile-crop-controls button[data-crop-reset] { background: #edf4e8; font-size: 1.15rem; }
.profile-crop-actions { display: flex; width: 100%; justify-content: flex-end; gap: 10px; padding-top: 20px; border-top: 1px solid rgba(40, 84, 72, .1); }
.profile-crop-actions .button { min-width: 112px; min-height: 45px; border-radius: 13px; }
@media (max-width: 560px) { .profile-crop-dialog-card { gap: 18px; padding: 25px 20px 22px; border-radius: 24px; } .profile-crop-header h2 { font-size: 1.85rem; } .profile-crop-actions .button { flex: 1; min-width: 0; } }
@media (max-width: 480px) { .account-delete-dialog-card { padding: 24px 20px; border-radius: 20px; } .account-delete-dialog-actions > * { flex: 1 1 135px; } }
@media (max-width: 900px) { .account-main { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .account-forms { grid-template-columns: 1fr; } }

/* Shared product navigation and refreshed account surface. */
.topnav {
  align-items: center;
  gap: clamp(9px, 1.15vw, 18px);
}
.topnav a {
  padding: 7px 0;
  font-size: clamp(.75rem, .78vw, .88rem);
  font-weight: 650;
  white-space: nowrap;
}
.topnav .topnav-service {
  color: #285448;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.topnav a[aria-current="page"] {
  color: #183c32;
  text-decoration: underline;
  text-decoration-color: #8eaf78;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}
.legal-shell { width: min(1160px, calc(100% - 32px)); }
.legal-header.topbar { padding: 22px 0 28px; }

.account-body {
  background:
    radial-gradient(48rem 34rem at 7% 16%, rgba(184, 211, 164, .35), transparent 64%),
    radial-gradient(36rem 28rem at 100% 42%, rgba(220, 230, 206, .58), transparent 66%),
    #f5f4f0;
}
.account-body .account-main {
  grid-template-columns: minmax(0, .88fr) minmax(560px, 1.12fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
  min-height: calc(100vh - 150px);
  padding: 68px 0 100px;
}
.account-body .account-intro { position: relative; display: flex; min-height: 100%; padding: clamp(30px, 4vw, 46px); overflow: hidden; border: 1px solid #c6d8b9; border-radius: 28px; background: linear-gradient(145deg, #dfeeda 0%, #eef6e9 52%, #f8faf5 100%); box-shadow: 0 22px 55px rgba(31, 68, 55, .11); flex-direction: column; }
.account-body .account-intro::before { position: absolute; top: -80px; right: -65px; width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 255, 255, .42); content: ""; pointer-events: none; }
.account-body .account-intro::after { position: absolute; right: -52px; bottom: -78px; width: 205px; height: 205px; border: 1px solid rgba(80, 116, 95, .14); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255, 255, 255, .16), 0 0 0 56px rgba(80, 116, 95, .035); content: ""; pointer-events: none; }
.account-intro-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.account-intro-kicker > span { width: 34px; height: 1px; background: #7d9b6c; }
.account-intro-kicker .eyebrow { margin: 0; color: #50745f; font-size: .69rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.account-body .account-intro h1 { position: relative; z-index: 1; max-width: 12ch; margin: 0 0 20px; color: #213a32; font: 520 clamp(2.55rem, 4.8vw, 4.35rem)/1.02 "Outfit", sans-serif; letter-spacing: -.045em; }
.account-body .account-intro > p:last-of-type { position: relative; z-index: 1; max-width: 46ch; margin: 0; color: #68706b; font-size: .96rem; line-height: 1.75; }
.account-intro-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin-top: auto;
  padding-top: 38px;
  border-top: 1px solid rgba(40, 84, 72, .18);
}
.account-intro-points p {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 12px;
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid rgba(40, 84, 72, .12);
  color: #355b50;
}
.account-intro-points p:last-child { border-bottom: 0; padding-bottom: 0; }
.account-intro-points i { grid-row: span 2; align-self: start; padding-top: 3px; color: #78956b; font: 700 .64rem/1 "Manrope", sans-serif; letter-spacing: .1em; }
.account-intro-points strong { font-size: .88rem; font-weight: 700; letter-spacing: .005em; }
.account-intro-points span { margin-top: 3px; color: #6b7b70; font-size: .74rem; line-height: 1.45; }
.account-body .account-panel {
  position: relative;
  min-height: 100%;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid #d6e1cf;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 22px 55px rgba(31, 68, 55, .1);
  backdrop-filter: none;
}
.account-panel-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -2px 0 24px;
  padding: 0 0 17px;
  border-bottom: 1px solid rgba(40, 84, 72, .11);
  border-radius: 0;
  background: transparent;
}
.account-panel-heading p { margin: 0 0 2px; }
.account-panel-heading h2 { margin: 0; font: 750 1.4rem "Outfit", sans-serif; }
.account-panel-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #234b40, #73936a);
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, .13);
}
.account-body .account-forms { gap: 16px; }
.account-body .account-form {
  gap: 14px;
  padding: 21px;
  border-color: #dce7d5;
  border-radius: 16px;
  background: #fbfcfa;
}
.account-body .account-form:first-child { background: linear-gradient(145deg, #eff6ea, #f8fbf6); }
.account-body .account-form input {
  min-height: 45px;
  padding: 11px 12px;
  border-color: #bfd0b2;
  border-radius: 11px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.account-body .account-form input:focus {
  border-color: #50745f;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(80, 116, 95, .12);
}
.account-body .account-form > .button { min-height: 44px; border-radius: 11px; }
.account-body .account-session {
  padding: 6px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.account-session-profile { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.account-session-copy > span { display: block; margin-bottom: 8px; color: #50745f; font-size: .69rem; font-weight: 800; letter-spacing: .13em; }
.account-session-copy h2 { margin: 0; color: #213a32; font: 650 clamp(1.8rem, 3vw, 2.55rem)/1.08 "Outfit", sans-serif; letter-spacing: -.04em; }
.account-session-copy p { margin: 7px 0 0; color: #647168; font-size: .86rem; }
.profile-avatar-editor { position: relative; flex: 0 0 auto; }
.profile-avatar { display: grid; width: 94px; height: 94px; place-items: center; overflow: hidden; border: 4px solid rgba(255, 255, 255, .76); border-radius: 50%; background: #285448; color: #fff; font: 650 2rem/1 "Outfit", sans-serif; box-shadow: 0 12px 26px rgba(31, 68, 55, .18); cursor: pointer; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-pencil { position: absolute; right: -2px; bottom: 0; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 3px solid #edf5e8; border-radius: 50%; background: #285448; color: #fff; cursor: pointer; }
.profile-avatar-pencil svg, .profile-avatar-menu svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.profile-avatar-menu { position: absolute; right: 0; z-index: 4; width: max-content; min-width: 205px; margin-top: 9px; padding: 5px; border: 1px solid rgba(40, 84, 72, .13); border-radius: 11px; background: #fff; box-shadow: 0 12px 30px rgba(31, 68, 55, .14); }
.profile-avatar-menu button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #285448; font: 700 .76rem "Manrope", sans-serif; cursor: pointer; }
.profile-avatar-menu button:hover { background: #edf5e8; }
.account-session-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; padding-top: 20px; border-top: 1px solid rgba(40, 84, 72, .15); }

/* With an active session, the two columns live inside one generous profile card. */
.account-has-active-session .account-main { position: relative; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 0; min-height: 570px; overflow: hidden; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.account-has-active-session .account-main::before { position: absolute; top: -80px; right: 37%; width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 255, 255, .38); content: ""; pointer-events: none; }
.account-has-active-session .account-main::after { position: absolute; right: -52px; bottom: -78px; width: 205px; height: 205px; border: 1px solid rgba(80, 116, 95, .14); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255, 255, 255, .16), 0 0 0 56px rgba(80, 116, 95, .035); content: ""; pointer-events: none; }
.account-has-active-session .account-intro { min-height: 0; padding: clamp(30px, 4vw, 46px); border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.account-has-active-session .account-intro h1 { max-width: 18ch; font-size: clamp(2.25rem, 4.2vw, 3.6rem); }
.account-has-active-session .account-panel { z-index: 1; width: auto; min-height: 0; margin: 0; padding: clamp(30px, 4vw, 46px); border: 0; border-left: 1px solid rgba(40, 84, 72, .18); border-radius: 0; background: rgba(255, 255, 252, .2); box-shadow: none; }
.account-has-active-session .account-panel-heading { display: none; }
.account-has-active-session .account-session { padding-top: 0; }
.account-has-active-session .account-feedback { margin-top: 14px; }
@media (max-width: 620px) {
  .account-session-profile { align-items: flex-start; }
  .profile-avatar { width: 76px; height: 76px; font-size: 1.6rem; }
  .account-has-active-session .account-main { grid-template-columns: 1fr; min-height: 0; }
  .account-has-active-session .account-panel { border-top: 1px solid rgba(40, 84, 72, .18); border-left: 0; }
}
@media (max-width: 1060px) {
  .topbar .brand > div > span { display: none; }
  .account-body .account-main { grid-template-columns: minmax(0, .65fr) minmax(500px, 1fr); gap: 34px; }
}
@media (max-width: 900px) {
  .account-body .account-main { grid-template-columns: 1fr; min-height: 0; padding-top: 44px; }
  .account-body .account-intro h1 { max-width: 13ch; }
}
@media (max-width: 620px) {
  .account-body .account-intro { padding: 27px 23px; border-radius: 24px; }
  .account-body .account-intro h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .account-body .account-panel { padding: 18px; border-radius: 18px; }
  .account-body .account-form { padding: 17px; }
}

@media (max-width: 640px) {
  .topbar-model-settings {
    width: 100%;
  }

  .topbar-model-settings input {
    flex: 1;
    width: auto;
  }
}

.design-followup-heading strong {
  font-size: 1.05rem;
}

.design-followup-messages {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow-y: auto;
  padding-right: 4px;
}

.followup-message {
  max-width: 92%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  white-space: pre-wrap;
}

.followup-message.assistant {
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  border: 1px solid rgba(30, 31, 27, 0.06);
}

.followup-message.user {
  justify-self: end;
  background: var(--accent);
  color: white;
}

.followup-message strong {
  font-weight: 800;
}

.followup-message a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.followup-message.user a {
  color: white;
}

.followup-links {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.followup-links a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.followup-links a:hover {
  text-decoration: underline;
}

.design-followup-form {
  display: grid;
  gap: 10px;
}

.design-followup-form textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  font: inherit;
  line-height: 1.5;
  background: rgba(255, 255, 255, 0.85);
}

.design-followup-form .button {
  min-height: 42px;
}

.design-followup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.design-followup-actions .button {
  padding: 0 14px;
}

@media (max-width: 1180px) {
  .interior-chat-main { grid-template-columns: minmax(0, 1fr) minmax(310px, .82fr); }
}

@media (max-width: 1450px) {
  .interior-conversation-rail { transform: none; }
}

@media (max-width: 960px) {
  .interior-chat-main {
    grid-template-columns: 1fr;
  }

  .interior-conversation-rail { top: 160px; }
  .conversation-drawer-toggle { top: 174px; }

  .interior-generated-box {
    min-height: 320px;
  }

  .blur-card-a,
  .blur-card-b,
  .blur-card-c {
    width: 44vw;
  }
}

/* Minimal visual layer: restrained surfaces, borders, and hierarchy. */
:root {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #1d211f;
  --muted: #656861;
  --accent: #355b50;
  --accent-dark: #27473e;
  --line: #dfdfd8;
  --shadow: none;
}

body {
  background: #f5f4f0;
}

.page-shell {
  width: min(1160px, calc(100% - 40px));
}

.topbar {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--text);
  font-size: 1.15rem;
}

.topnav {
  gap: 18px;
}

.topnav a {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero {
  grid-template-columns: minmax(0, 1.3fr) minmax(350px, 0.7fr);
  gap: 56px;
  padding: 58px 0 68px;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(3rem, 5.2vw, 5.1rem);
  letter-spacing: -0.035em;
}

.hero-text-lead,
.hero-note {
  max-width: 38rem;
}

.hero-note {
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.hero-note p {
  color: var(--muted);
}

.hero-actions {
  margin: 26px 0;
}

.button {
  min-height: 44px;
  border-radius: 9px;
  box-shadow: none;
}

.button.primary {
  background: var(--text);
  box-shadow: none;
}

.button.secondary {
  background: transparent;
}

.hero-media-placeholder {
  height: 82px;
}

.hero-points {
  max-width: 38rem;
  gap: 0;
}

.hero-points article {
  padding: 16px 0;
}

.hero-points article::before {
  width: 100%;
  background: var(--line);
}

.hero-panel,
.service-card,
.steps article,
.interior-chat-panel,
.interior-result-panel,
.chat-panel,
.result-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: none;
}

.hero-panel {
  max-width: none;
  padding: 14px;
  border-radius: 18px;
}

.feature-box {
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: none;
}

.feature-box-large {
  min-height: 0;
}

.feature-link:hover,
.upload-box:hover {
  transform: none;
  box-shadow: none;
}

.services,
.workflow {
  padding: 64px 0;
}

.services::before,
.workflow::before {
  display: none;
}

.service-grid,
.steps {
  gap: 12px;
}

.service-card,
.steps article {
  padding: 22px;
  border-radius: 12px;
  background: #ffffff;
}

.service-card h3,
.steps h3 {
  color: var(--text);
}

.steps article span {
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.interior-chat-body {
  background: #f5f4f0;
}

.interior-blur-layer {
  display: none;
}

.interior-chat-main {
  gap: 18px;
}

.interior-chat-panel,
.interior-result-panel {
  padding: 18px;
  border-radius: 18px;
}

.chat-message,
.upload-box,
.design-followup,
.generated-image-box,
.preview-box {
  border-radius: 12px;
  background: #fafaf8;
  box-shadow: none;
}

.upload-box {
  border-color: #c9cac3;
}

.upload-button,
.upload-badge {
  border-radius: 7px;
}

.generated-history-item {
  border-radius: 12px;
}

.design-followup {
  border-color: var(--line);
}

@media (max-width: 900px) {
  .page-shell {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    gap: 32px;
    padding: 38px 0 48px;
  }
}

/* AI Interior: a quieter chat workspace with a persistent conversation sidebar. */
.interior-chat-body {
  background:
    radial-gradient(42rem 32rem at -10% 14%, rgba(207, 232, 195, .42), transparent 62%),
    radial-gradient(42rem 32rem at 108% 76%, rgba(221, 238, 206, .6), transparent 65%),
    #f4f6f0;
}

.interior-chat-body .interior-stage {
  min-height: 100vh;
}

.interior-chat-body .interior-blur-layer {
  display: none;
}

.interior-chat-body .interior-chat-shell {
  width: min(1240px, calc(100% - 40px));
  padding-bottom: 62px;
}

.interior-chat-body .interior-topbar {
  padding-bottom: 22px;
}

.interior-chat-body .interior-chat-main {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.interior-chat-body .interior-conversation-rail {
  position: relative;
  top: auto;
  left: auto;
  display: flex;
  width: auto;
  height: auto;
  min-height: 670px;
  padding: 20px;
  border: 1px solid rgba(40, 84, 72, .13);
  border-radius: 22px;
  background: rgba(255, 255, 252, .82);
  box-shadow: 0 16px 48px rgba(31, 68, 55, .07);
  transform: none;
}

.interior-chat-body .conversation-drawer-toggle {
  display: none;
}

.interior-chat-body .conversation-rail-heading {
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
}

.interior-chat-body .conversation-rail-heading span {
  color: #557567;
}

.interior-chat-body .conversation-rail-heading strong {
  color: #183d31;
  font-size: .96rem;
}

.interior-chat-body .conversation-new {
  width: 36px;
  height: 36px;
  border: 1px solid #dbe7d4;
  border-radius: 11px;
  background: #fff;
  color: #285448;
  box-shadow: none;
}

.interior-chat-body .conversation-new:hover {
  border-color: #aebbb3;
  background: #f6f7f4;
}

.interior-chat-body .conversation-item {
  padding: 12px;
  border-radius: 12px;
}

.interior-chat-body .conversation-item:hover,
.interior-chat-body .conversation-item.is-active {
  border-color: #9bc687;
  background: #edf6e7;
}

.interior-chat-body .conversation-item strong {
  color: #203e34;
  font-size: .8rem;
}

.interior-chat-body .conversation-save {
  min-height: 40px;
  margin-top: auto;
  border-color: #c4d8ba;
  background: #f5f9f1;
  color: #285448;
}

.interior-workspace {
  display: grid;
  grid-template-columns: minmax(290px, .73fr) minmax(0, 1.27fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(40, 84, 72, .13);
  border-radius: 24px 24px 24px 10px;
  background: rgba(255, 255, 252, .9);
  box-shadow: 0 22px 64px rgba(31, 68, 55, .09);
}

.interior-workspace-heading {
  display: flex;
  grid-column: 1 / -1;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px 20px;
  border-bottom: 1px solid rgba(40, 84, 72, .11);
}

.interior-workspace-heading .eyebrow {
  margin: 0 0 7px;
  color: #48745e;
}

.interior-workspace-heading h1 {
  margin: 0;
  color: #18362c;
  font-family: "Segoe UI Variable Display", "Aptos Display", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 680;
  letter-spacing: -.06em;
  line-height: .95;
}

.interior-workspace-heading > p {
  margin: 0 0 4px;
  color: #718078;
  font-size: .82rem;
}

.interior-workspace .interior-chat-panel,
.interior-workspace .interior-result-panel {
  min-width: 0;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.interior-workspace .interior-chat-panel {
  border-right: 1px solid rgba(40, 84, 72, .11);
}

.interior-workspace .interior-thread {
  min-height: 116px;
  margin-bottom: 18px;
}

.interior-workspace .chat-message {
  max-width: 30rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.interior-workspace .chat-message strong {
  color: #406b58;
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.interior-workspace .chat-message p {
  color: #53645c;
  font-size: .94rem;
  line-height: 1.62;
}

.interior-workspace .interior-composer {
  display: grid;
  gap: 12px;
}

.interior-workspace .upload-box-rich {
  min-height: 136px;
  padding: 17px;
  border: 1px dashed #93bd81;
  border-radius: 16px;
  background: #eef6e9;
  box-shadow: none;
}

.interior-workspace .upload-box-rich:hover {
  border-color: #285448;
  background: #e4f1db;
  transform: none;
}

.interior-workspace .upload-title {
  color: #203f33;
  font-size: .92rem;
}

.interior-workspace .upload-subtitle {
  color: #65756d;
  font-size: .77rem;
}

.interior-workspace .upload-button {
  width: fit-content;
  margin-top: 3px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #285448;
  color: #f8fff3;
  font-size: .72rem;
}

.interior-workspace .upload-status {
  min-height: 1.2em;
  margin: 0;
  color: #6b7a73;
  font-size: .72rem;
}

.interior-workspace .preview-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.interior-workspace .preview-box {
  min-height: 96px;
  border-radius: 12px;
  background: #f7faf4;
}

.interior-workspace .preview-box-thumb {
  min-height: 160px;
}

.interior-workspace .interior-composer > label[for="interiorPrompt"] {
  margin-top: 6px;
  color: #315c4e;
  font-size: .78rem;
  font-weight: 800;
}

.interior-workspace .interior-composer textarea {
  min-height: 150px;
  padding: 13px;
  border: 1px solid #c9d8c1;
  border-radius: 14px;
  background: #fbfcf9;
  color: #20332b;
  font: inherit;
  line-height: 1.55;
}

.interior-workspace .interior-composer textarea:focus {
  outline: 3px solid rgba(167, 212, 143, .38);
  border-color: #5d956d;
}

.interior-workspace #interiorSubmitButton {
  width: 100%;
  min-height: 45px;
  margin-top: 2px;
  background: #285448;
}

.interior-workspace .interior-result-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  background: linear-gradient(145deg, rgba(243, 248, 239, .74), rgba(255, 255, 252, .34));
}

.interior-workspace .interior-generated-box {
  min-height: 480px;
  border: 1px solid rgba(40, 84, 72, .11);
  border-radius: 16px;
  background: #f7faf4;
}

.interior-workspace .interior-generated-placeholder {
  min-height: 478px;
  color: #819087;
}

.interior-workspace .interior-generated-placeholder strong {
  font-size: 1rem;
  font-weight: 600;
}

.interior-workspace .generated-image-result img {
  border-radius: 15px;
}

.interior-workspace .generated-products,
.interior-workspace .design-followup {
  margin-top: 0;
  border-color: rgba(40, 84, 72, .13);
  background: rgba(255, 255, 252, .78);
}

@media (max-width: 960px) {
  .interior-chat-body .interior-chat-main {
    grid-template-columns: 1fr;
  }

  .interior-chat-body .conversation-drawer-toggle {
    position: fixed;
    z-index: 80;
    top: 104px;
    left: 18px;
    display: grid;
  }

  .interior-chat-body .interior-conversation-rail {
    position: fixed;
    z-index: 79;
    top: 94px;
    left: 12px;
    display: none;
    width: min(300px, calc(100vw - 24px));
    min-height: min(610px, calc(100vh - 112px));
    max-height: calc(100vh - 112px);
  }

  .interior-chat-body .interior-conversation-rail.is-open {
    display: flex;
  }
}

@media (max-width: 760px) {
  .interior-chat-body .interior-chat-shell {
    width: min(100% - 24px, 1240px);
  }

  .interior-workspace {
    grid-template-columns: 1fr;
    border-radius: 19px;
  }

  .interior-workspace-heading {
    align-items: start;
    flex-direction: column;
    gap: 9px;
    padding: 24px 20px 18px;
  }

  .interior-workspace .interior-chat-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(40, 84, 72, .11);
  }

  .interior-workspace .interior-chat-panel,
  .interior-workspace .interior-result-panel {
    padding: 20px;
  }

  .interior-workspace .interior-thread {
    min-height: auto;
  }

  .interior-workspace .interior-generated-box,
  .interior-workspace .interior-generated-placeholder {
    min-height: 320px;
  }
}

/* Final overrides for the landing feature panel. */
.brand-mark {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  background: #285448;
}

.brand-mark::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border: 1.5px solid #f8fff3;
  border-left-color: transparent;
  transform: rotate(45deg);
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 1.5px;
  background: #cdf47a;
  transform: rotate(-45deg) translate(2px, 5px);
}

.hero-panel {
  background: #f8faf4;
  border-color: rgba(40, 84, 72, 0.2);
}

.hero-panel .feature-box,
.hero-panel .feature-box:first-child {
  background: #a8c88b;
  color: #10221d;
}

.hero-panel .feature-box strong,
.hero-panel .feature-box p,
.hero-panel .feature-box:first-child p,
.hero-panel .feature-box .feature-kicker,
.hero-panel .feature-box:first-child .feature-kicker {
  color: #10221d;
}

.hero-panel .feature-link:hover {
  background: #bad99c;
}

/* Interior imagery integrated into navigation and section rhythm. */
.home-page .hero-points {
  margin-top: clamp(38px, 6vw, 72px);
}

.home-page .hero-panel .feature-box {
  display: grid;
  grid-template-columns: minmax(min-content, 1fr) minmax(64px, 28%);
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(22px, 2vw, 28px);
  align-items: start;
}

.home-page .hero-panel .feature-kicker,
.home-page .hero-panel .feature-box strong {
  grid-column: 1;
}

.home-page .hero-panel .feature-kicker,
.home-page .hero-panel .feature-box strong,
.home-page .hero-panel .feature-box p {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.home-page .hero-panel .feature-kicker {
  display: block;
  grid-row: 1;
  margin-bottom: 11px;
}

.home-page .hero-panel .feature-box strong {
  grid-row: 2;
  margin-top: 0;
}

.home-page .hero-panel .feature-box p {
  grid-column: 1;
  grid-row: 3;
  margin-top: 10px;
}

.home-page .hero-panel .feature-image {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 4;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 1 / 2;
  overflow: hidden;
  border-radius: 17px 17px 17px 6px;
  background: rgba(255, 255, 255, .25);
}

.home-page .hero-panel .feature-image::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: inherit;
}

.home-page .hero-panel .feature-image img,
.home-page .home-image-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(.2, .75, .25, 1);
}

.home-page .hero-panel .feature-link:hover .feature-image img {
  transform: scale(1.035);
}

.home-page .home-image-band {
  position: relative;
  isolation: isolate;
  padding: clamp(8px, 2vw, 24px) 0 clamp(54px, 8vw, 100px);
}

.home-page .home-image-band figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 12px 26px 12px 12px;
  background: #dfe8d8;
  box-shadow: 0 22px 58px rgba(31, 68, 55, .08);
}

.home-page .home-image-band .home-image-band-main {
  width: 100%;
  height: clamp(230px, 27vw, 350px);
  border-radius: 32px 12px 12px 12px;
}

.home-page .home-image-band figure::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(244, 249, 239, .42);
  border-radius: inherit;
  pointer-events: none;
}

.home-page .home-image-band-insets {
  position: absolute;
  right: clamp(18px, 3vw, 42px);
  bottom: clamp(34px, 5vw, 62px);
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: clamp(7px, 1vw, 12px);
}

.home-page .home-image-band-insets figure {
  width: clamp(112px, 12vw, 158px);
  aspect-ratio: 4 / 3;
  border: 5px solid #f4f7ef;
  border-radius: 14px 22px 14px 14px;
  box-shadow: 0 16px 35px rgba(27, 60, 49, .18);
}

.home-page .home-image-band-insets figure:last-child {
  position: relative;
  top: 9px;
  border-radius: 22px 14px 14px 14px;
}

.home-page .services,
.home-page .workflow {
  isolation: isolate;
}

.home-page .services {
  overflow: visible;
}

.home-page .services > *,
.home-page .workflow > * {
  position: relative;
  z-index: 1;
}

.home-page .services::after {
  position: absolute;
  top: 20%;
  right: 24px;
  z-index: 0;
  width: clamp(150px, 18vw, 265px);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(53, 91, 80, .16);
  border-radius: 61% 39% 54% 46% / 43% 57% 43% 57%;
  background: rgba(213, 230, 190, .1);
  transform: rotate(17deg);
  pointer-events: none;
}

.home-page .workflow {
  margin-bottom: clamp(64px, 8vw, 108px);
  padding: clamp(42px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid rgba(53, 91, 80, .18);
  border-radius: clamp(26px, 3.5vw, 44px);
  background: rgba(245, 249, 239, .72);
  box-shadow: 0 24px 70px rgba(31, 68, 55, .07);
}

.home-page .workflow::before {
  display: none;
}

.home-page .workflow::after {
  position: absolute;
  right: -9%;
  bottom: -34%;
  z-index: 0;
  width: clamp(210px, 28vw, 410px);
  aspect-ratio: 1.16;
  content: "";
  border-radius: 44% 56% 66% 34% / 52% 38% 62% 48%;
  background: rgba(190, 216, 166, .2);
  transform: rotate(-13deg);
  pointer-events: none;
}

.home-page .workflow .section-heading {
  max-width: 48rem;
}

.home-page .workflow .steps {
  gap: clamp(22px, 3vw, 42px);
}

.home-page .workflow .steps article,
.home-page .workflow .steps article:nth-child(2) {
  margin-top: 0;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid rgba(53, 91, 80, .22);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

@media (prefers-reduced-motion: no-preference) {
  .home-page.motion-ready .scroll-reveal {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
      opacity 620ms cubic-bezier(.22, .7, .25, 1),
      transform 620ms cubic-bezier(.22, .7, .25, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
  }

  .home-page.motion-ready .scroll-reveal.reveal-side {
    transform: translate3d(16px, 0, 0);
  }

  .home-page.motion-ready .scroll-reveal.reveal-scale {
    transform: translate3d(0, 10px, 0) scale(.985);
  }

  .home-page.motion-ready .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .home-page .services::after {
    animation: service-shape-drift 14s ease-in-out infinite alternate;
  }

  .home-page .workflow::after {
    animation: workflow-shape-drift 16s ease-in-out infinite alternate;
  }
}

@keyframes service-shape-drift {
  from { transform: translate3d(0, -3px, 0) rotate(17deg); }
  to { transform: translate3d(-7px, 7px, 0) rotate(21deg); }
}

@keyframes workflow-shape-drift {
  from { transform: translate3d(0, 0, 0) rotate(-13deg); }
  to { transform: translate3d(-8px, -6px, 0) rotate(-9deg); }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-page .services::after,
  .home-page .workflow::after {
    animation: none;
  }
}

/* Final mobile landing layout: kept at the end to override desktop rules. */
/* Match the language control's baseline to the navigation links. */
.home-page .topnav { align-items: center; }
.home-page .language-switcher,
.home-page .language-switcher-button {
  display: inline-flex;
  align-items: center;
}
.home-page .language-switcher-button { line-height: 1.2; }

/* Conversation cards need enough height to make each saved chat identifiable. */
.interior-chat-body .conversation-rail-list {
  gap: 10px;
  width: calc(100% + 10px);
  margin-right: -10px;
  padding: 2px 14px 4px 0;
  scrollbar-gutter: stable;
}

.interior-chat-body .conversation-item {
  position: relative;
  display: block;
  min-height: 54px;
  padding: 0;
  border: 1px solid #d7e3d0;
  border-radius: 13px;
  background: #f9fcf7;
}

.interior-chat-body .conversation-item-select {
  display: flex;
  width: 100%;
  height: 54px;
  min-height: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 7px 40px 7px 11px;
  text-align: left;
}

.interior-chat-body .conversation-item strong {
  white-space: normal;
  font-size: .84rem;
  line-height: 1.3;
}

.interior-chat-body .conversation-item small {
  margin-top: 1px;
  font-size: .68rem;
}

.interior-chat-body .conversation-delete {
  position: absolute;
  top: 50%;
  right: 5px;
  width: 31px;
  height: 31px;
  margin: 0;
  transform: translateY(-50%);
  border: 1px solid #dbe7d4;
  background: #fff;
}

.interior-chat-body .interior-composer-row {
  min-height: 48px;
  align-items: center;
}
.interior-chat-body .interior-add-button,
.interior-chat-body .interior-composer-row .composer-project-action-mount,
.interior-chat-body .interior-composer-row .chat-project-action,
.interior-chat-body .interior-workspace #interiorSubmitButton {
  display: grid;
  height: 48px;
  min-height: 48px;
  align-self: center;
  place-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.interior-chat-body .interior-add-button {
  width: 48px;
  flex-basis: 48px;
  padding-inline: 0;
  font-size: 1.65rem;
  line-height: 1;
}

/* Project dossier selection and dedicated document studio. */
.dossier-selection-dialog { width: min(720px, calc(100vw - 28px)); max-height: min(780px, calc(100vh - 28px)); padding: 0; overflow: hidden; border: 1px solid #d4ddd7; border-radius: 22px; background: #fff; color: var(--text); box-shadow: 0 28px 90px rgba(25, 55, 45, .2); }
.dossier-selection-dialog::backdrop { background: rgba(21, 42, 35, .28); backdrop-filter: blur(3px); }
.dossier-selection-dialog > header { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 24px 26px 16px; border-bottom: 1px solid #e1e6e1; }
.dossier-selection-dialog h2 { margin: 5px 0 0; font: 650 1.65rem/1.1 "Outfit", sans-serif; }
.dossier-selection-search { display: flex; align-items: center; gap: 9px; margin: 16px 26px 8px; padding: 0 12px; border: 1px solid #d8e1da; border-radius: 11px; background: #f9faf7; color: #638071; }
.dossier-selection-search:focus-within { border-color: #789b7f; box-shadow: 0 0 0 3px rgba(80, 116, 95, .12); }
.dossier-selection-search svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.dossier-selection-search input { width: 100%; height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 .86rem/1 "Manrope", sans-serif; }
.dossier-selection-empty { margin: 16px 10px; color: var(--muted); font-size: .82rem; text-align: center; }
.dossier-selection-tree { display: grid; max-height: min(470px, 56vh); gap: 3px; overflow-y: auto; padding: 10px 22px 18px; scrollbar-gutter: stable; }
.dossier-selection-branch { display: grid; gap: 3px; }
.dossier-selection-row { display: grid; grid-template-columns: 20px 24px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 42px; padding: 6px 10px 6px calc(10px + var(--selection-depth, 0) * 18px); border-radius: 10px; cursor: pointer; }
.dossier-selection-row:hover { background: #f4f6f2; }
.dossier-selection-row input { width: 16px; height: 16px; accent-color: #285448; }
.dossier-selection-row > span { display: grid; width: 24px; height: 24px; place-items: center; color: #638071; }
.dossier-selection-row svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.dossier-selection-row strong { overflow: hidden; font-size: .85rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.dossier-selection-row small { color: var(--muted); font-size: .68rem; }
.dossier-selection-file { margin-left: calc(22px + var(--selection-depth, 0) * 18px); }
.dossier-selection-root { --selection-depth: 0; border-bottom: 1px solid #e6ebe5; border-radius: 0; margin-bottom: 5px; }
.dossier-selection-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 26px 22px; border-top: 1px solid #e1e6e1; }
.dossier-selection-dialog > footer > span { color: #587066; font-size: .78rem; }
.dossier-selection-dialog > footer > div { display: flex; gap: 8px; }

.dossier-studio-body { background: radial-gradient(48rem 34rem at 0 0, rgba(196, 217, 182, .3), transparent 68%), #f3f4ef; }
.dossier-shell { width: min(1540px, calc(100% - 34px)); }
.dossier-studio-main { padding: 34px 0 80px; }
.dossier-studio-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.dossier-studio-toolbar h1 { margin: 5px 0 7px; font: 650 clamp(2.2rem, 5vw, 4.4rem)/.98 "Outfit", sans-serif; letter-spacing: -.05em; }
.dossier-studio-toolbar p:last-child { margin: 0; color: var(--muted); }
.dossier-studio-toolbar > div:last-child { display: flex; gap: 9px; }
.dossier-studio-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 22px; align-items: start; }
.dossier-document { min-width: 0; margin: 0; }
.dossier-loading { display: grid; min-height: 540px; place-content: center; justify-items: center; gap: 10px; color: #496459; text-align: center; }
.dossier-loading[hidden] { display: none; }
.dossier-loading > span { width: 42px; height: 42px; border: 3px solid #dae5d4; border-top-color: #50745f; border-radius: 50%; animation: dossier-spin .9s linear infinite; }
.dossier-loading strong { font: 650 1.15rem "Outfit", sans-serif; }
.dossier-loading p { max-width: 420px; margin: 0; color: var(--muted); font-size: .82rem; }
@keyframes dossier-spin { to { transform: rotate(360deg); } }
.dossier-index { margin: 28px 0; padding: 24px; border-radius: 14px; background: #f1f5ed; }
.dossier-index h3 { margin: 0 0 14px; font: 650 1.3rem "Outfit", sans-serif; }
.dossier-index ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 30px; margin: 0; padding-left: 22px; color: #53665d; font-size: .84rem; }
.dossier-extra-sections { display: grid; }
.dossier-generated-section { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px 18px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.dossier-generated-section > span { grid-row: 1 / 3; color: #78906d; font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.dossier-generated-section h3 { margin: 0; font: 650 1.55rem "Outfit", sans-serif; }
.dossier-generated-section p { margin: 0; color: var(--muted); line-height: 1.75; white-space: pre-wrap; }
.dossier-revision-chat { position: sticky; top: 18px; display: grid; grid-template-rows: auto minmax(260px, 52vh) auto; overflow: hidden; border: 1px solid #d7dfd7; border-radius: 20px; background: #fff; box-shadow: 0 20px 54px rgba(32, 63, 52, .09); }
.dossier-revision-chat > header { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 19px; border-bottom: 1px solid #e3e8e3; }
.dossier-revision-chat h2 { margin: 4px 0 0; font: 650 1.2rem "Outfit", sans-serif; }
.dossier-revision-chat header > span { color: #61766c; font-size: .7rem; text-align: right; }
.dossier-chat-thread { display: flex; min-height: 0; flex-direction: column; gap: 9px; overflow-y: auto; padding: 18px; }
.dossier-chat-hint { margin: auto 10px; color: #87948e; font-size: .82rem; line-height: 1.6; text-align: center; }
.dossier-chat-message { max-width: 88%; padding: 10px 12px; border-radius: 13px; font-size: .82rem; line-height: 1.55; white-space: pre-wrap; }
.dossier-chat-message.user { align-self: end; border-bottom-right-radius: 4px; background: #285448; color: #fff; }
.dossier-chat-message.assistant { align-self: start; border-bottom-left-radius: 4px; background: #f0f3ee; color: #34473f; }
.dossier-chat-composer { display: flex; align-items: end; gap: 8px; padding: 13px; border-top: 1px solid #e3e8e3; }
.dossier-chat-composer textarea { min-width: 0; min-height: 44px; max-height: 130px; flex: 1; padding: 10px 12px; overflow-y: auto; border: 1px solid #cfd8d1; border-radius: 12px; font: inherit; line-height: 1.45; resize: none; }
.dossier-chat-composer .button { min-height: 44px; padding-inline: 14px; }

@media (max-width: 980px) {
  .dossier-studio-layout { grid-template-columns: 1fr; }
  .dossier-revision-chat { position: static; grid-template-rows: auto 360px auto; }
}
@media (max-width: 620px) {
  .dossier-shell { width: min(100% - 20px, 1540px); }
  .dossier-studio-toolbar { align-items: stretch; flex-direction: column; }
  .dossier-studio-toolbar > div:last-child, .dossier-selection-dialog > footer, .dossier-selection-dialog > footer > div { align-items: stretch; flex-direction: column; }
  .dossier-studio-toolbar .button, .dossier-selection-dialog > footer .button { width: 100%; }
  .dossier-document { padding: 20px 15px; }
  .dossier-index ol, .dossier-analysis-grid, .dossier-improvements, .dossier-lists { grid-template-columns: 1fr; }
  .dossier-selection-dialog > header, .dossier-selection-dialog > footer { padding-right: 18px; padding-left: 18px; }
  .dossier-selection-search { margin-right: 18px; margin-left: 18px; }
  .dossier-selection-tree { padding-right: 14px; padding-left: 14px; }
  .dossier-selection-row { grid-template-columns: 20px 24px minmax(0, 1fr); }
  .dossier-selection-row small { display: none; }
}

@media print {
  @page { size: A4; margin: 15mm; }
  body.dossier-studio-body { background: #fff; }
  .dossier-shell { width: 100%; }
  .dossier-topbar, .dossier-studio-toolbar, .dossier-revision-chat { display: none !important; }
  .dossier-studio-main { padding: 0; }
  .dossier-studio-layout { display: block; }
  .dossier-document { padding: 0; border: 0; box-shadow: none; }
  .dossier-visuals { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; }
  .dossier-visuals figure { break-inside: avoid; }
  .dossier-analysis-grid article, .dossier-generated-section, .dossier-block, .dossier-lists section { break-inside: avoid; }
}
.interior-chat-body .interior-composer-row .composer-project-action-mount,
.interior-chat-body .interior-composer-row .chat-project-action { width: 44px; height: 44px; min-height: 44px; flex-basis: 44px; border-radius: 13px; }
.interior-chat-body .interior-workspace .interior-composer textarea {
  height: 48px;
  min-height: 48px;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 22px;
}

/* AI Interior: the work area stays above the composer; the page never grows for chat history. */
.interior-chat-body .interior-empty-state {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  place-content: center;
}
.interior-chat-body .interior-empty-state[hidden] { display: none; }
.interior-chat-body .interior-empty-state span {
  color: #9aa49e;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-transform: none;
}

@media (min-width: 961px) {
  .interior-chat-body .interior-workspace {
    height: min(720px, calc(100vh - 150px));
    min-height: 520px;
  }

  .interior-chat-body .interior-workspace .interior-chat-panel {
    height: 100%;
    min-height: 0;
  }

  .interior-chat-body .interior-workspace .interior-thread {
    min-height: 0;
    flex: 1 1 auto;
    padding: 30px;
    overflow-y: auto;
  }

  .interior-chat-body .interior-conversation-rail {
    height: min(720px, calc(100vh - 150px));
    min-height: 0;
    max-height: none;
    flex-direction: column;
  }

  .interior-chat-body .conversation-rail-list {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
  }
}

/* AI Interior uses one scroll container for the complete message and image history. */
.interior-chat-body .interior-workspace {
  height: min(720px, calc(100dvh - 150px));
  min-height: 520px;
}

.interior-chat-body .interior-workspace .interior-chat-panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.interior-chat-body .interior-workspace .interior-thread {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.interior-chat-body .interior-workspace .design-followup-messages,
.interior-chat-body .interior-workspace .generated-history {
  max-height: none;
  overflow: visible;
  padding-right: 0;
  scroll-snap-type: none;
}

@media (max-width: 760px) {
  .interior-chat-body .interior-workspace {
    height: calc(100dvh - 126px);
    min-height: 0;
  }
}
@media (max-width: 900px) {
  .home-page .home-image-band .home-image-band-main {
    height: 260px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-copy,
  .hero-panel {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .hero-panel {
    justify-self: stretch;
  }

  .hero-panel .feature-box {
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .home-page .hero-points {
    margin-top: 36px;
  }

  .home-page .hero-panel .feature-box,
  .home-page .hero-panel .feature-box:first-child {
    grid-template-columns: minmax(min-content, 1fr) minmax(52px, 72px);
    column-gap: 22px;
  }

  .home-page .hero-panel .feature-box strong {
    font-size: clamp(1.05rem, 4.6vw, 1.3rem);
  }

  .home-page .hero-panel .feature-box p {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .home-page .hero-panel .feature-image {
    grid-row: 1 / 3;
  }

  .home-page .hero-panel .feature-image {
    min-height: 0;
    aspect-ratio: 1 / 2;
    border-radius: 12px;
  }

  .home-page .home-image-band {
    padding-bottom: 60px;
  }

  .home-page .home-image-band .home-image-band-main {
    height: 220px;
    border-radius: 15px;
  }

  .home-page .home-image-band-insets {
    right: 11px;
    bottom: 36px;
    gap: 5px;
  }

  .home-page .home-image-band-insets figure {
    width: min(29vw, 108px);
    border-width: 3px;
    border-radius: 11px 16px 11px 11px;
  }

  .home-page .services::after {
    top: 13%;
    right: 24px;
    width: 190px;
  }

  .home-page .workflow {
    margin-bottom: 62px;
    padding: 34px 20px 38px;
    border-radius: 24px;
  }

  .home-page .workflow::after {
    right: -28%;
    bottom: -12%;
    width: 245px;
  }

  .home-page .workflow .section-heading {
    margin-bottom: 32px;
  }

  .home-page .workflow .steps {
    gap: 24px;
  }

  .home-page .workflow .steps article,
  .home-page .workflow .steps article:nth-child(2) {
    padding-top: 19px;
  }

  .page-shell {
    width: min(100% - 28px, 1160px);
  }

  .topbar {
    gap: 14px;
    padding: 16px 0;
  }

  .topbar .brand {
    padding-left: 42px;
  }

  .brand > div > span {
    display: none;
  }

  .topnav {
    padding-bottom: 2px;
  }

  .hero {
    gap: 22px;
    padding: 28px 0 42px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.35rem, 11vw, 3.1rem);
    line-height: .98;
  }

  .hero-text-lead,
  .hero-note,
  .hero-points {
    max-width: none;
  }

  .hero-panel {
    padding: 10px;
    border-radius: 16px;
  }

  .hero-panel .feature-box {
    padding: 18px;
  }

  .hero-panel .feature-box strong {
    font-size: clamp(1.25rem, 6vw, 1.55rem);
  }

  .hero-media-placeholder {
    height: 48px;
  }
}
