/* Shared visual system. Loaded after each page's functional component styles. */
:root {
  --ink: #163d35; --muted: #60736c; --line: #d1ded7; --paper: #fff;
  --wash: #f7f6f1; --primary: #1f7562; --primary-dark: #18584b;
  --primary-soft: #e6f2ed; --mint: #2f8973; --mint-soft: #e9f5f0;
  --red: #a73642; --red-soft: #fff0f1; --terracotta: #bc7458; --terracotta-dark: #884631; --terracotta-soft: #fbf2ee; --shadow: 0 8px 28px #163d350d;
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
}

.saved-property-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--wash);
}
.saved-property-summary > div { min-width: 0; display: grid; gap: 4px; }
.saved-property-summary strong, .saved-property-summary small { display: block; }
.saved-property-summary small { color: var(--muted); line-height: 1.45; }
@media (max-width: 650px) {
  .saved-property-summary { grid-template-columns: auto minmax(0, 1fr); }
  .saved-property-summary .button { grid-column: 1 / -1; width: 100%; }
}
body, .portal-body, .dashboard-body, .home-body { background: var(--wash); color: var(--ink); line-height: 1.5; }
h1,h2,h3 { text-wrap: balance; }
button,input,select,textarea { font-family: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
input,select,textarea { accent-color: var(--primary); }
.brand-mark,.avatar { background: var(--primary-dark); box-shadow: none; border-radius: 10px; }
.brand strong { font-size: 19px; font-weight: 700; }
.brand small { font-size: 12px; }
.topbar,.portal-header { height: auto; min-height: 76px; background: #fff; backdrop-filter: none; gap: 20px; }
.top-actions { gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.eyebrow,.home-eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .09em; font-weight: 650; }
.button,.text-button,.back-button { font-size: 14px; min-height: 44px; border-radius: 8px; font-weight: 600; }
.button.primary,.portal-primary,.home-body a.home-button { background: var(--primary); box-shadow: none; color: white; border-radius: 8px; }
.button:hover:not(:disabled),.portal-primary:hover:not(:disabled),.choice-card:hover,.quick-card:hover { transform: none; box-shadow: none; }
.button.primary:hover:not(:disabled),.portal-primary:hover:not(:disabled) { background: var(--primary-dark); }
.button.ghost { background: transparent; }
.button.soft { background: var(--primary-soft); }
.field label,.portal-field label,.micro-label { font-size: 14px; color: var(--ink); font-weight: 600; }
.field input,.field select,.field textarea,.portal-field input { min-height: 46px; background: white; border-color: #afc4ba; border-radius: 8px; font-size: 16px; }
.field .hint,.field-error,.field-meta,.form-section>p,.toggle-row small,.legal-caption { font-size: 13px; line-height: 1.5; }
.field input:focus,.field select:focus,.field textarea:focus,.portal-field input:focus { box-shadow: 0 0 0 3px #1f756224; }
.field input[aria-invalid="true"],.portal-field input[aria-invalid="true"] { border-color: var(--red); }
.form-grid { gap: 18px; }
.form-section { padding: 22px; border-radius: 10px; margin-bottom: 20px; }
.form-section h2 { font-size: 21px; margin-bottom: 8px; }
.form-section .form-section { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0 0; }
.optional-section,.profile-editor-card,.settings-card,.room-card,.phase-card,.technical-details { border-radius: 10px; box-shadow: none; }
.optional-section>summary strong,.technical-details>summary,.account-disclosure summary h2 { font-size: 16px; }
.optional-section>summary small,.profile-editor-heading p { font-size: 13px; }
.info-box,.stage-lead,.selection-help,.mission-card,.visit-intro,.phase-banner,.situation-panel,.owner-prefill,.room-head { background: var(--primary-soft); border-color: var(--line); box-shadow: none; border-radius: 10px; }
.info-box,.selection-help p,.stage-lead p,.phase-banner,.mission-card p,.visit-intro p { font-size: 14px; }
.stage-lead { padding: 14px 16px; }
.stage-lead strong { font-size: 15px; }
.situation-panel { background: transparent; border: 0; border-radius: 0; padding: 0 0 20px; }
.situation-panel h2 { font-size: 21px; }
.situation-panel>p,.question-block>strong,.segment span,.section-kicker strong { font-size: 14px; }
.segmented { align-items: stretch; }
.segment { display: flex; min-width: 0; }
.segment span {
  width: 100%;
  height: 64px;
  flex: 1;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  border-color: #afc4ba;
  border-radius: 8px;
}
.choice-card { min-height: 104px; border-radius: 10px; padding: 16px; grid-template-columns: 38px minmax(0,1fr); gap: 4px 12px; }
.choice-card.selected { background: var(--primary-soft); }
.choice-card:hover { border-color: var(--primary); }
.choice-card strong { font-size: 16px; }
.choice-card small { font-size: 13px; }
.choice-icon { width: 38px; height: 38px; border-radius: 8px; }
.choice-card:has(input:focus-visible),.segment input:focus-visible+span { outline-color: var(--primary); }
/* The form owns the screen; preview and export are a separate disclosure below it. */
.app-shell,.inspection-shell { grid-template-columns: 220px minmax(0,1fr); max-width: 1220px; align-items: start; }
.sidebar,.inspection-sidebar { grid-row: 1 / 3; background: transparent; border: 0; padding: 30px 16px; position: sticky; top: 76px; }
.workspace,.inspection-workspace { padding: 32px 40px 20px; background: #fff; min-width: 0; border-inline: 1px solid var(--line); }
.workspace-header h1,.inspection-heading h1 { font-size: clamp(28px,3vw,36px); line-height: 1.15; }
.workspace-header p { font-size: 15px; max-width: 620px; }
.workspace-header { gap: 16px; }
.dossier-card { background: transparent; color: var(--ink); box-shadow: none; padding: 0 12px 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
.dossier-card::after { content: none; }
.dossier-card .eyebrow { color: var(--muted); }
.dossier-card strong { font-size: 13px; overflow-wrap: anywhere; }
.status-pill { background: var(--primary-soft); color: var(--primary-dark); font-size: 11px; letter-spacing: .025em; }
.nav-step,.inspection-nav-button { font-size: 14px; line-height: 1.4; min-height: 52px; }
.privacy-note { font-size: 12px; padding-inline: 10px; }
.step-content,.inspection-content { min-height: 0; }
.progress-copy { font-size: 12px; }
.progress-track { height: 4px; background: var(--line); }
.progress-track span { background: var(--primary); }
.wizard-footer { margin-top: 26px; padding-top: 20px; gap: 12px; }
.wizard-footer span { font-size: 12px; }
.summary-panel,.inspection-summary { grid-column: 2; display: block; padding: 0 40px 32px; background: white; border: 1px solid var(--line); border-top: 0; min-width: 0; }
.document-disclosure { border-top: 1px solid var(--line); }
.document-disclosure>summary,.preparation-help>summary { cursor: pointer; padding: 18px 0; color: var(--primary-dark); font-size: 16px; font-weight: 650; }
.document-disclosure>summary span { display: block; margin-left: 20px; color: var(--muted); font-size: 13px; font-weight: 400; }
.document-tools-content { padding: 8px 0 0; max-width: 700px; margin-inline: auto; }
.document-preview { min-height: 0; }
.summary-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.summary-actions .button { flex: 1 1 220px; width: auto; }
.total-card { box-shadow: none; background: var(--primary-soft); }
.preparation-help { border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.preparation-help .mission-card { margin: 0 0 16px; }
.phase-banner small,.mini-row,.mini-row strong,.mini-head { font-size: 12px; }
.item-phase,.signer-row,.history-item { background: var(--wash); }
.modal-card { border-radius: 14px; }
.modal-card p,.modal-card li { line-height: 1.6; }
/* Authentication: a quiet introduction, with the form as the primary surface. */
.login-layout { grid-template-columns: minmax(300px,.85fr) minmax(0,1.15fr); max-width: 1440px; margin: auto; }
.login-story { min-height: 100vh; background: var(--primary-soft); color: var(--primary-dark); padding: 36px clamp(28px,5vw,72px); }
.login-story::after { content: none; }
.brand-on-dark { color: var(--primary-dark); }
.brand-on-dark small,.eyebrow.light,.story-copy>p { color: var(--muted); }
.story-copy h1 { font-size: clamp(38px,4.2vw,60px); line-height: 1.1; font-weight: 600; }
.story-copy { padding-block: 50px; }
.story-copy>p { font-size: 18px; }
.login-panel { background: #fff; padding: 40px; }
.login-card { width: min(420px,100%); }
.login-card h2 { font-size: 34px; margin-top: 0; }
.login-intro { margin-bottom: 26px; }
.portal-primary { font-size: 15px; }
.portal-field { margin-bottom: 12px; }
.password-toggle { font-size: 12px; background: var(--primary-soft); }
.register-link { font-size: 14px; }
.local-notice { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 18px 0 0; background: transparent; }
.password-feedback { background: var(--wash); border-radius: 8px; }
/* Dashboard and account use the same restrained surfaces. */
.dashboard-shell { max-width: 1120px; padding: 40px 28px 64px; }
.portal-navigation { display: flex; gap: 24px; margin-left: auto; }
.portal-navigation a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 12px 0; }
.portal-navigation a:hover { color: var(--primary); text-decoration: underline; }
.welcome-row { margin-bottom: 28px; }
.welcome-row h1 { font-size: 34px; font-weight: 600; }
.welcome-row p,.section-heading p { font-size: 14px; }
.quick-actions { margin-bottom: 36px; gap: 16px; }
.quick-card { background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: none; min-height: 120px; padding: 24px; grid-template-columns: 44px minmax(0,1fr) auto; }
.quick-card::after { content: none; }
.quick-card:hover { border-color: var(--primary); background: var(--primary-soft); }
.quick-icon { width: 44px; height: 44px; color: var(--primary); background: var(--primary-soft); border: 0; }
.quick-card em { color: var(--muted); font-size: 13px; }
.quick-card strong { font-size: 20px; font-weight: 650; }
.section-heading h2 { font-size: 23px; }
.section-heading { margin-bottom: 16px; }
.drafts-section { margin-bottom: 32px; }
.empty-drafts,.empty-properties { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: transparent; text-align: left; }
.empty-drafts h3,.empty-properties h3 { font-size: 16px; font-weight: 600; }
.empty-drafts p,.empty-properties p { margin: 4px 0 0; max-width: none; font-size: 14px; }
.draft-card,.property-card,.document-card { border-radius: 10px; box-shadow: none; }
.draft-card>p,.document-card p,.document-card a,.draft-progress-copy,.document-totals span,.account-copy strong,.account-dropdown a,.account-dropdown button { font-size: 13px; }
.draft-card h3 { font-size: 17px; }
.profile-view,.simple-view { max-width: 860px; }
.account-warning,.profile-view-intro,.settings-card span { font-size: 14px; }
/* Landing: direct copy and progressive pricing details. */
.home-body { font-family: inherit; }
.home-header { border-bottom: 1px solid var(--line); }
.home-hero { padding-block: 64px; gap: 56px; }
.hero-text h1 { font-size: clamp(38px,4.4vw,62px); font-weight: 600; }
.hero-text h1 em { color: var(--primary); }
.hero-service { background: var(--primary-soft); border-color: var(--line); border-radius: 14px; padding: 30px; }
.hero-service h2 { font-size: 26px; margin: 0 0 20px; }
.hero-service small,.hero-service>p { color: var(--muted); }
.home-services,.home-pricing { padding-block: 44px; }
.home-body h2 { font-weight: 600; }
.benefits { margin-top: 28px; gap: 32px; }
.benefits h3 { margin-top: 10px; }
.offer { border-color: var(--line); border-radius: 10px; padding: 22px; }
.offer p { min-height: 0; }
.offer-details { font-size: 14px; margin: 0 0 20px; }
.offer-details summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.offer-details ul { margin-block: 12px 0; }
.complete { background: var(--primary-dark); }
.complete p,.complete .offer-tag { color: #d6eae2; }
.home-start { margin-bottom: 20px; padding-block: 32px; }
@media (max-width: 1000px) {
 .app-shell,.inspection-shell { grid-template-columns: 190px minmax(0,1fr); }
 .workspace,.inspection-workspace { padding: 28px 24px 20px; }
 .summary-panel,.inspection-summary { padding: 0 24px 28px; }
 .workspace-header { flex-wrap: wrap; }
 .workspace-header .button { margin-top: 0; }
 .login-story { padding: 32px; }
 .login-panel { padding: 32px; }
}
@media (max-width: 780px) {
 .app-shell,.inspection-shell { display: block; }
 .topbar,.portal-header { position: relative; padding: 16px; flex-wrap: wrap; gap: 14px; }
 .top-actions { width: 100%; justify-content: flex-start; }
 .top-actions .button { font-size: 13px; padding: 10px 12px; }
 .sidebar,.inspection-sidebar { position: static; padding: 12px 16px; border-bottom: 1px solid var(--line); }
 #step-nav,#inspection-nav { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
 .nav-step,.inspection-nav-button { display: flex; flex-direction: column; gap: 6px; padding: 8px 2px; min-height: 84px; text-align: center; font-size: 12px; }
 .nav-step span:last-child,.inspection-nav-button span:last-child { white-space: normal; overflow-wrap: normal; }
 .workspace,.inspection-workspace { padding: 24px 18px; border: 0; }
 .summary-panel,.inspection-summary { padding: 12px 18px 24px; border: 0; }
 .workspace-header { display: block; }
 .workspace-header .button { margin-top: 14px; }
 .form-section { padding: 18px; }
 .wizard-footer { margin: 24px -18px -24px; padding: 14px 18px; }
 .login-layout { display: block; }
 .login-story { min-height: 0; padding: 20px 24px; }
 .story-copy { display: none; }
 .login-panel { padding: 36px 24px; min-height: calc(100vh - 82px); align-items: start; }
 .portal-navigation { order: 3; margin: 0; width: 100%; border-top: 1px solid var(--line); gap: 24px; }
 .portal-header .account-menu-wrap { margin-left: auto; }
 .dashboard-shell { padding: 28px 18px 48px; }
 .welcome-row h1 { font-size: 29px; }
 .quick-card { padding: 20px; }
 .local-badge { font-size: 11px; }
}
@media (max-width: 480px) {
 .home-header nav { font-size: 13px; }
 .home-hero { padding: 36px 20px; gap: 26px; }
 .hero-text h1 { font-size: 40px; }
 .hero-service { padding: 24px; }
 .quick-card { grid-template-columns: 36px minmax(0,1fr) auto; gap: 12px; min-height: 96px; padding: 18px; }
 .quick-icon { width: 36px; height: 36px; }
 .quick-card strong { font-size: 18px; }
 .section-heading { gap: 12px; flex-wrap: wrap; }
 .form-section { padding: 16px; }
 .choice-card { grid-template-columns: 32px minmax(0,1fr); padding: 14px; }
 .choice-icon { width: 32px; height: 32px; }
 .document-disclosure>summary span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.saved-property-picker { background: var(--wash); border-color: var(--line); border-radius: 8px; padding: 16px; }
.saved-property-picker label { color: var(--ink); font-size: 14px; }
.saved-property-picker p { font-size: 13px; color: var(--muted); }
:is(.field,.profile-field,.saved-property-picker,.catalog-filters,.inline-field) select:not([multiple]):focus-visible { outline-color: var(--primary); box-shadow: 0 0 0 3px #1f756224; }
@media (max-width: 480px) {
 #home-button,.top-actions a[href="/dashboard.html"],.top-actions a[href="/etat-des-lieux.html"],.top-actions a[href^="/rediger-un-bail.html"] { display: inline-flex; }
 .top-actions { gap: 6px; }
 .top-actions .button { padding-inline: 10px; }
}
.validation-list,.validation-list li,.validation-list button { font-size: 14px; line-height: 1.5; }
.validation-list li { padding-block: 10px; }
.validation-list button { min-height: 44px; }
.phase-banner>span:first-child { min-width: 0; }
.phase-banner>span:last-child { flex-shrink: 0; white-space: nowrap; }
.room-nav-button span,.item-nav-button strong,.meter-family-card summary { font-size: 13px; }
@media (max-width: 780px) {
 #step-nav,#inspection-nav { grid-template-columns: repeat(5,minmax(0,1fr)); align-items: stretch; gap: 10px; }
 .nav-step,.nav-step.active,.inspection-nav-button,.inspection-nav-button.active { width: 100%; min-width: 0; height: 100%; align-items: center; justify-content: center; gap: 8px; padding: 12px 6px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.72); text-align: center; }
 .nav-step.active,.inspection-nav-button.active { border-color: #c9d9ce; background: var(--primary-soft); }
 .nav-step span:first-child,.inspection-nav-button span:first-child { flex: 0 0 30px; width: 30px; height: 30px; margin: 0 auto; }
 .nav-step span:last-child,.nav-step.active span:last-child,.inspection-nav-button span:last-child,.inspection-nav-button.active span:last-child { display: flex; width: 100%; min-height: 30px; align-items: center; justify-content: center; white-space: normal; font-size: 11px; line-height: 1.35; text-align: center; }
 .inspection-footer>span { display: none; }
}
@media (max-width: 480px) {
 #step-nav,#inspection-nav { gap: 4px; }
 .nav-step,.nav-step.active,.inspection-nav-button,.inspection-nav-button.active { padding-inline: 3px; }
}
.modal-card p,.modal-card li,.modal-card .alert { font-size: 14px; }
.modal-jump { min-height: 44px; font-size: 14px; }
.source-item a,.source-item p,.review-list>button span,.review-list>button strong,.review-list>button i,.review-list>p { font-size: 13px; }
.source-item { background: white; }
dialog::backdrop { background: #203b3566; }
.profile-view h1,.simple-view h1 { font-size: 34px; font-weight: 600; }
.back-button { color: var(--primary-dark); border-color: var(--line); box-shadow: none; }
.account-disclosure-icon,.registry-card-icon { color: var(--primary); background: var(--primary-soft); }
.account-disclosure>summary:hover h2 { color: var(--primary); }
.account-disclosure>summary { padding-block: 20px; }
.profile-field label { font-size: 14px; color: var(--ink); }
.profile-field .optional,.profile-hint { font-size: 12px; }
.profile-field input { font-size: 16px; border-radius: 8px; border-color: #b6c3b9; background: white; }
.registered-property-list .registry-card { background: white; border-color: var(--line); box-shadow: none; border-radius: 10px; }
.registry-card .registry-card-edit,.registry-list-heading .registry-add { color: var(--primary-dark); background: var(--primary-soft); border-color: var(--line); }
.registry-card .registry-card-edit:hover,.registry-list-heading .registry-add:hover { background: #dce9df; }
.registry-empty { padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.field-error:empty,.form-message:empty { display: none; }
.login-card .portal-field { margin-bottom: 20px; }
.password-feedback { padding: 14px; margin-bottom: 20px; }
.password-feedback ul { grid-template-columns: repeat(2,minmax(0,1fr)); font-size: 13px; }
.account-warning p { font-size: 13px; line-height: 1.5; }
.profile-view .back-button,.simple-view .back-button { color: var(--primary-dark); border-color: var(--line); box-shadow: none; }
.document-columns>section { background: transparent; border: 0; border-radius: 0; padding: 0; }
.document-column-heading p,.empty-column p,.empty-column a,.property-meta,.property-documents { font-size: 13px; }
.document-card { background: white; }
@media (min-width: 651px) and (max-width: 900px) {
 .home-hero { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
 .hero-text h1 { max-width: 640px; font-size: 48px; }
 .home-actions { flex-wrap: wrap; }
 .hero-service { padding: 28px; }
}
/* Two distinct, fully clickable service choices on the home page. */
.hero-service > .service-link {
  gap: 14px; padding: 20px; margin-top: 12px;
  border: 1px solid #b9cfc2; border-radius: 12px;
  background: #fff; color: var(--primary-dark);
  transition: border-color .16s, box-shadow .16s;
}
.hero-service > .service-inspection { background: #faf5eb; border-color: #dfcfaf; color: #58472d; }
.service-icon { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.service-icon svg { width: 24px; height: 24px; }
.service-inspection .service-icon { background: #eee1c7; color: #775a28; }
.hero-service > .service-link > span:nth-child(2) { min-width: 0; }
.hero-service > .service-link small { font-size: 13px; line-height: 1.5; }
.hero-service > .service-link b { flex: 0 0 26px; height: 26px; display: grid; place-items: center; font-size: 19px; }
.home-body .hero-service > .service-link:hover { filter: none; border-color: var(--primary); box-shadow: 0 3px 12px #163d350f; }
.home-body .hero-service > .service-inspection:hover { border-color: #92713c; }
.hero-service > p { border-top: 0; padding-top: 8px; }
@media (max-width: 480px) {
 .hero-service > .service-link { padding: 16px 12px; gap: 10px; }
 .service-icon { flex-basis: 36px; height: 36px; border-radius: 8px; }
 .service-icon svg { width: 21px; height: 21px; }
 .hero-service > .service-link strong { font-size: 16px; }
 .hero-service > .service-link b { flex-basis: 18px; }
}

/* 2026-09-07 — site-wide alignment: one grid, one rhythm, fewer decorative surfaces. */
:root {
  --layout-max: 1120px;
  --layout-inner: 1064px;
  --page-gutter: clamp(18px, 3vw, 32px);
  --section-space: clamp(28px, 5vw, 48px);
  --card-radius: 10px;
}

.home-header,
.home-hero,
.home-services,
.home-pricing {
  width: 100%;
  max-width: calc(var(--layout-max) + 64px);
  padding-inline: 32px;
}

.home-header { min-height: 76px; padding-block: 16px; }
.home-header nav { gap: 20px; }
.home-hero { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px; padding-block: 56px; }
.home-services,
.home-pricing { padding-block: var(--section-space); }
.home-start { max-width: var(--layout-max); }
.benefits { grid-auto-rows: 1fr; gap: 24px; }
.benefits article { min-width: 0; padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 651px) {
  .benefits h3 { min-height: 3.2em; }
}
.pricing-grid { align-items: stretch; }
.offer { height: 100%; border-radius: var(--card-radius); }
.hero-service,
.hero-service > .service-link { border-radius: var(--card-radius); }

.portal-header {
  padding-inline: max(24px, calc((100vw - var(--layout-inner)) / 2));
}
.dashboard-shell { width: 100%; max-width: var(--layout-max); padding: 36px 28px 60px; }
.welcome-row { align-items: center; }
.quick-actions { grid-auto-rows: 1fr; margin: 28px 0 36px; gap: 16px; }
.quick-card { height: 100%; min-height: 112px; border-radius: var(--card-radius); }
.section-heading { align-items: center; margin-bottom: 16px; }
.document-totals { align-items: center; }
.document-totals > span { min-height: 38px; display: inline-flex; align-items: center; gap: 4px; }
.document-totals em { font-style: normal; }
.drafts-section { margin-bottom: 36px; }
.draft-grid,
.property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.draft-grid:has(> :only-child),
.property-grid:has(> :only-child) { grid-template-columns: minmax(0,560px); justify-content: center; }
.draft-card,
.property-card,
.document-card,
.settings-card,
.profile-editor-card,
.registration-card { border-radius: var(--card-radius); box-shadow: none; }
.property-card { display: grid; grid-template-columns: 76px minmax(0,1fr); }
.property-visual,
.property-visual.visual-1,
.property-visual.visual-2 {
  height: auto;
  min-height: 100%;
  padding: 18px;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: var(--primary-soft);
}
.property-visual::after,
.property-visual small { display: none; }
.property-visual span { background: white; border: 1px solid var(--line); }
.property-copy h3 { min-height: 0; }
.profile-view,
.simple-view { margin-inline: auto; }
.profile-editor-card.account-disclosure { padding: 18px 20px; }
.account-disclosure > summary { min-height: 58px; }

.login-layout { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: 1280px; }
.login-story,
.login-panel { padding-inline: clamp(28px,5vw,64px); }
.story-copy,
.login-card { width: min(420px,100%); margin-inline: auto; }
.login-card h2 { font-size: 32px; }
.login-intro { margin-bottom: 22px; }

.topbar { padding-inline: max(24px,calc((100vw - 1220px) / 2)); }
.workspace-header,
.inspection-heading { align-items: center; }
.workspace-header > div,
.inspection-heading > div { min-width: 0; }
.app-shell,
.inspection-shell { width: 100%; }
.form-section,
.composition-question,
.room-card,
.phase-card,
.technical-details { border-radius: var(--card-radius); box-shadow: none; }
.card-grid,
.document-columns { grid-auto-rows: 1fr; }
.wizard-footer > span { display: none; }
.wizard-footer { justify-content: space-between; }

.save-state[data-state="saved"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-story { min-height: auto; padding: 24px 28px 30px; }
  .login-story .story-copy { margin: 28px 0 0; padding-block: 0; }
  .login-panel { min-height: auto; padding: 36px 24px 52px; }
  .home-hero { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 780px) {
  .topbar,
  .portal-header { padding-inline: 16px; }
  .home-header,
  .home-hero,
  .home-services,
  .home-pricing { padding-inline: 20px; }
}

@media (max-width: 680px) {
  .dashboard-shell { padding: 28px 16px 48px; }
  .draft-grid,
  .property-grid,
  .draft-grid:has(> :only-child),
  .property-grid:has(> :only-child) { grid-template-columns: 1fr; }
  .property-card { grid-template-columns: 64px minmax(0,1fr); }
  .property-visual { padding: 14px; }
  .profile-editor-card.account-disclosure { padding: 16px; }
}
/* Primary account navigation: visible targets and a persistent current section. */
.portal-navigation { gap: 10px; align-items: stretch; }
.portal-navigation a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 11px 18px; border: 1px solid #b7c9bd;
  border-radius: 9px; background: #f2f6f2; color: var(--primary-dark);
  font-size: 14px; font-weight: 650; line-height: 1.35; text-align: center;
  transition: background-color .16s, border-color .16s;
}
.portal-navigation a:hover { background: #e3ede5; border-color: var(--primary); color: var(--primary-dark); text-decoration: none; }
.portal-navigation a[aria-current] { color: white; background: var(--primary); border-color: var(--primary); }
.portal-navigation a[aria-current]:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
@media (max-width: 780px) {
 .portal-navigation { padding-top: 14px; }
 .portal-navigation a { flex: 1 1 0; min-width: 0; padding: 11px 12px; }
}

/* 2026-09-07 — final clarity pass: warmer neutrals and one interaction language. */
:root {
  --surface: #ffffff;
  --surface-subtle: #fafcfb;
  --surface-muted: #edf4f0;
  --line: #d1ded7;
  --line-strong: #afc4ba;
  --focus-halo: #1f756226;
  --shadow-soft: 0 8px 24px #163d3510;
}

body,
.portal-body,
.dashboard-body,
.home-body { background: var(--wash); }

::selection { color: var(--primary-dark); background: #d9ece4; }

.brand { min-height: 44px; }
.home-header nav a:not(.home-button),
.home-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.draft-actions .button,
.account-drawing-actions .button,
.validation-list button,
.modal-jump { min-height: 44px; }

.icon-button { width: 44px; height: 44px; }
.login-card .portal-field input { min-height: 52px; }
.password-wrap input { padding-right: 98px; }
.password-toggle {
  top: 4px;
  bottom: 4px;
  min-height: 44px;
  padding-inline: 12px;
}
.register-link a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.item-nav-button,
.room-options > summary { min-height: 44px; }
.room-builder > summary,
.room-item-picker > summary,
.room-basics-choice {
  min-height: 44px;
  display: flex;
  align-items: center;
}

:is(button, a, summary, input, select, textarea) {
  -webkit-tap-highlight-color: transparent;
}

:is(.button, .portal-primary, .home-button, .back-button, .text-button, .icon-button) {
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.home-body a.home-button:hover,
.button.primary:hover:not(:disabled),
.portal-primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.button.ghost:hover:not(:disabled),
.back-button:hover,
.text-button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: var(--line-strong);
}

.button.soft:hover:not(:disabled) { background: #e2ece4; }

.binary-control button[aria-pressed="true"]:hover:not(:disabled) {
  color: white;
  background: var(--primary-dark);
  box-shadow: 0 3px 10px #203f3524;
}

.button:disabled,
.button[aria-busy="true"],
.portal-primary:disabled,
.portal-primary[aria-busy="true"] {
  color: #728078;
  background: #e8ede8;
  border-color: var(--line);
  box-shadow: none;
  opacity: 1;
}

:is(.field, .profile-field, .portal-field, .saved-property-picker, .catalog-filters, .inline-field) :is(input, select, textarea):hover:not(:disabled) {
  border-color: var(--line-strong);
}

:is(.field, .profile-field, .portal-field, .saved-property-picker, .catalog-filters, .inline-field) :is(input, select, textarea):focus-visible {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 3px var(--focus-halo);
}

:is(.field, .profile-field, .portal-field, .saved-property-picker, .catalog-filters, .inline-field) :is(input, select, textarea):disabled {
  color: #6f7c75;
  background: var(--surface-muted);
  border-color: var(--line);
}

/* Remove the last blue-grey surfaces inherited from the first prototype. */
.plain-help,
.repeat-item,
.item-phase,
.signer-row,
.history-item,
.technical-details,
.frozen-summary,
.room-item-picker,
.item-navigator,
.room-quick-actions,
.annex-empty,
.owner-assets-summary > span,
.document-columns > section,
.profile-kind-options span,
.profile-choice-help,
.account-method-comment,
.clause-card.disabled {
  background: var(--surface-subtle);
  border-color: var(--line);
}

/* Account: every explanatory sentence must remain readable when a panel opens. */
.profile-kind-options span b,
.account-method-choice strong { font-size: 13px; }

.profile-kind-options span small,
.profile-choice-help p,
.profile-choice-help span,
.account-asset-card > div:first-child span,
.account-signing-note,
.account-method-comment p,
.account-method-choice small,
.account-asset-preview,
.account-asset-save-state,
.registration-card-heading small {
  font-size: 12px !important;
  line-height: 1.5;
}

.account-method-choice {
  min-height: 88px;
  border-width: 1px;
  border-color: var(--line-strong);
  border-radius: 10px;
}

.account-method-choice:hover {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: none;
}

.account-disclosure {
  border-color: var(--line);
  box-shadow: none;
}

.account-disclosure > summary.profile-editor-heading {
  border-radius: 9px;
  transition: background-color .16s ease;
}

.account-disclosure > summary.profile-editor-heading:hover { background: var(--surface-subtle); }
.account-disclosure[open] > summary.profile-editor-heading { background: transparent; }

.account-menu-symbol,
.account-disclosure-icon,
.registry-card-icon {
  border: 1px solid var(--line);
}

/* Keep the optional onboarding reminder useful without letting it dominate home. */
.onboarding-reminder {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-color: var(--line);
  border-radius: 10px;
  background: var(--surface-subtle);
  box-shadow: none;
}

.onboarding-reminder strong { font-size: 15px; }
.onboarding-reminder p { font-size: 13px; }
.onboarding-reminder .button {
  min-height: 44px;
  color: var(--primary-dark);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.onboarding-reminder .button:hover:not(:disabled) {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: var(--primary);
}

/* Calm, consistent progress and supporting panels in both document wizards. */
.phase-banner,
.mission-card,
.visit-intro,
.composition-preview,
.item-quick-actions,
.major-disclosure[open] > summary,
.onboarding-progress,
.onboarding-field-note {
  background: var(--surface-muted);
  border-color: var(--line);
}

.room-navigator {
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

/* Lease form: one short decision at a time inside the five stable phases. */
.workspace-header,
.progress-block,
.substep-nav,
.step-content,
.wizard-footer {
  width: min(100%, 760px);
  margin-inline: auto;
}

.workspace-header { margin-bottom: 18px; }
.progress-block { margin-bottom: 12px; }
.step-content { min-height: 300px; }
.focused-step { animation: appear .18s ease; }
.substep-surface { margin-bottom: 0; }
.focused-grid { align-items: start; }
.focused-step .focused-grid + .tax-id-defer { margin-top: 16px; }
.focused-step > .form-section:first-child > h2,
.focused-step > .form-section:first-child > p:first-of-type { display: none; }

.substep-nav {
  display: grid;
  grid-template-columns: repeat(var(--substep-count), minmax(88px, 1fr));
  gap: 6px;
  margin-bottom: 24px;
  padding: 2px 0 5px;
  overflow-x: auto;
  scrollbar-width: none;
}
.substep-nav::-webkit-scrollbar { display: none; }

.substep-button {
  min-width: 88px;
  min-height: 58px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  background: var(--surface);
  text-align: left;
}

.substep-button span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-muted);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
}

.substep-button small {
  display: -webkit-box;
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.substep-button:hover { border-color: var(--primary); background: var(--primary-soft); }
.substep-button.active { color: var(--primary-dark); border-color: var(--primary); background: var(--primary-soft); }
.substep-button.active span { color: white; background: var(--primary); }
.substep-button:focus-visible { position: relative; z-index: 1; }

.choice-surface .segmented { max-width: 620px; margin-inline: auto; }
.lease-choice-surface .card-grid { margin-top: 0; }
.lease-choice-surface .selection-help { margin-bottom: 0; }
.validation-summary > p { margin: 6px 0 14px; color: var(--muted); font-size: 13px; }
.validation-phase-list { display: grid; gap: 7px; margin-top: 12px; }
.validation-phase-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid #a7364230;
  border-radius: 8px;
  background: white;
}
.validation-phase-row > span { min-width: 0; flex: 1; overflow: hidden; }
.validation-phase-row strong { display: block; font-size: 13px; }
.validation-phase-row small { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.validation-phase-row button { min-height: 44px; flex: 0 0 auto; padding: 7px 11px; border: 1px solid #a7364260; border-radius: 7px; color: var(--red); background: white; font-weight: 650; }
.validation-warning { margin-top: 12px; }
.validation-warning summary { cursor: pointer; font-weight: 650; }

@media (max-width: 780px) {
  .workspace-header,
  .progress-block,
  .substep-nav,
  .step-content,
  .wizard-footer { width: 100%; }
  .substep-nav { grid-template-columns: repeat(var(--substep-count), 104px); margin-bottom: 18px; }
  .substep-button { min-width: 104px; }
  .focused-step .form-section { padding: 18px; }
  .focused-step .form-grid { grid-template-columns: 1fr; }
  .focused-step .field.full { grid-column: auto; }
}

@media (max-width: 480px) {
  .workspace-header h1 { font-size: 29px; }
  .workspace-header p { font-size: 14px; }
  .substep-button { min-height: 54px; }
  .choice-surface .segmented { grid-template-columns: 1fr; }
  .wizard-footer .button { min-width: 0; }
}

@media (max-width: 720px) {
  .onboarding-reminder { gap: 14px; padding: 16px; }
  .onboarding-reminder .button { min-height: 46px; }
}

@media (max-width: 480px) {
  .profile-view h1,
  .simple-view h1 { font-size: 32px; }
  .account-disclosure > summary.profile-editor-heading:hover { background: transparent; }
  .profile-kind-options,
  .account-asset-methods { grid-template-columns: 1fr; }
  .profile-kind-options span { min-height: 82px; }
  .profile-kind-options span small,
  .account-method-choice small { font-size: 12px !important; }
}

/* 2026-09-09 — modern eucalyptus theme shared by every application surface. */
.brand-mark,
.avatar,
.nav-step.active span:first-child,
.inspection-nav-button.active span:first-child,
.substep-button.active span {
  background-color: var(--primary);
}

.button.primary,
.portal-primary,
.home-body a.home-button {
  background: var(--primary);
}

.button.primary:hover:not(:disabled),
.portal-primary:hover:not(:disabled),
.home-body a.home-button:hover {
  background: var(--primary-dark);
}

.field input:hover,
.field select:hover,
.field textarea:hover,
.profile-field input:hover,
.portal-field input:hover {
  border-color: #7f9f92;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.profile-field input:focus,
.portal-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--focus-halo);
}

.hero-service > .service-link {
  border-color: var(--line-strong);
}

.hero-service > .service-inspection {
  color: var(--primary-dark);
  background: #f1f7f4;
  border-color: #bfd8cd;
}

.service-inspection .service-icon {
  color: var(--primary-dark);
  background: #d9ece4;
}

.home-body .hero-service > .service-inspection:hover {
  border-color: var(--primary);
}

.portal-navigation a {
  color: var(--primary-dark);
  background: var(--surface-subtle);
  border-color: var(--line-strong);
}

.portal-navigation a:hover,
.account-dropdown a:hover,
.account-dropdown button:hover,
.account-dropdown a:focus-visible,
.account-dropdown button:focus-visible,
.substep-button:hover,
.substep-button.active,
.choice-card.selected,
.room-nav-button.complete:not(.active),
.major-disclosure[open] > summary {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: var(--primary);
}

.portal-navigation a[aria-current],
.portal-navigation a[aria-current]:hover {
  color: white;
  background: var(--primary);
  border-color: var(--primary);
}

.quick-card:hover,
.registry-card .registry-card-edit:hover,
.registry-list-heading .registry-add:hover,
.back-button:hover,
.text-button:hover:not(:disabled),
.icon-button:hover:not(:disabled) {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: var(--primary);
}

.phase-card.exit > header,
.item-phase.exit,
.locked-note,
.essential-meter.present,
.status-chip.complete,
.item-nav-button.complete > span,
.account-asset-save-state.saved,
.account-signing-save-summary.saved,
.remote-signing-feedback[data-state="success"] {
  color: var(--primary-dark);
  background: var(--mint-soft);
  border-color: #abd1c1;
}

.counter-control,
.binary-control,
.meter-disclosure,
.composition-preview,
.visit-progress,
.item-quick-actions {
  border-color: var(--line-strong);
  background-color: var(--surface-subtle);
}

.meter-fields {
  border-color: var(--line-strong);
}

.progress-track span,
.inspection-progress-track span,
.visit-progress-bar span {
  background: var(--primary);
}

/* Keep the inspection steps in the document flow on tablet-sized screens. */
@media (max-width: 820px) {
  .inspection-sidebar {
    position: static;
    top: auto;
    z-index: auto;
    width: 100%;
    padding: 12px 16px;
    overflow: hidden;
  }

  #inspection-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    overflow: visible;
  }

  .inspection-nav-button,
  .inspection-nav-button.active {
    width: 100%;
    min-width: 0;
    min-height: 82px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 5px;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
  }

  .inspection-nav-button span:first-child,
  .inspection-nav-button.active span:first-child {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    margin: 0 auto;
  }

  .inspection-nav-button span:last-child,
  .inspection-nav-button.active span:last-child {
    display: flex;
    width: 100%;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    white-space: normal;
    font-size: 11px;
    line-height: 1.3;
    text-align: center;
  }
}

@media (max-width: 520px) {
  #inspection-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }

  .inspection-nav-button,
  .inspection-nav-button.active {
    flex: 0 0 112px;
    width: 112px;
    scroll-snap-align: start;
  }
}

/* 2026-09-10 — modern visual system: clearer hierarchy, softer depth, stable controls. */
:root {
  --ink: #153f36;
  --muted: #5d7068;
  --line: #cddbd3;
  --line-strong: #9eb8ac;
  --paper: #ffffff;
  --wash: #f5f7f3;
  --primary: #26735f;
  --primary-dark: #174f43;
  --primary-soft: #e8f2ed;
  --mint: #37866f;
  --mint-soft: #edf6f2;
  --surface: #ffffff;
  --surface-subtle: #fafbf9;
  --surface-muted: #eef4f0;
  --focus-halo: rgba(38, 115, 95, .20);
  --shadow-soft: 0 1px 2px rgba(21, 63, 54, .05), 0 12px 30px rgba(21, 63, 54, .07);
  --shadow-control: 0 1px 2px rgba(21, 63, 54, .08), 0 7px 18px rgba(21, 63, 54, .10);
  --card-radius: 16px;
  --control-radius: 11px;
}

body,
.portal-body,
.dashboard-body,
.home-body {
  color: var(--ink);
  background: linear-gradient(180deg, #f8faf7 0%, var(--wash) 100%);
}

::selection { color: var(--primary-dark); background: #d7ebe2; }

.topbar,
.portal-header,
.home-header {
  border-color: rgba(158, 184, 172, .55);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 0 rgba(21, 63, 54, .03);
}

.brand-mark,
.avatar {
  background: linear-gradient(145deg, #164c40, #287a65);
  box-shadow: 0 7px 18px rgba(23, 79, 67, .14);
}

:is(.button, .portal-primary, .home-button, .back-button, .text-button) {
  min-height: 46px;
  padding: 11px 18px;
  border-radius: var(--control-radius);
  font-weight: 700;
  letter-spacing: -.01em;
}

.button.primary,
.portal-primary,
.home-body a.home-button {
  color: #fff;
  border: 1px solid #205f50;
  background: linear-gradient(180deg, #2b7a66 0%, #246b59 100%);
  box-shadow: var(--shadow-control);
}

.button.primary:hover:not(:disabled),
.portal-primary:hover:not(:disabled),
.home-body a.home-button:hover {
  color: #fff;
  border-color: var(--primary-dark);
  background: linear-gradient(180deg, #226653 0%, var(--primary-dark) 100%);
  box-shadow: 0 2px 4px rgba(21, 63, 54, .10), 0 10px 22px rgba(21, 63, 54, .14);
}

.button.primary:active:not(:disabled),
.portal-primary:active:not(:disabled),
.home-body a.home-button:active {
  background: var(--primary-dark);
  box-shadow: inset 0 2px 4px rgba(9, 42, 34, .18);
}

.button.ghost,
.back-button,
.text-button,
.icon-button,
.portal-navigation a {
  color: var(--primary-dark);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 2px rgba(21, 63, 54, .04);
}

.button.ghost:hover:not(:disabled),
.back-button:hover,
.text-button:hover:not(:disabled),
.icon-button:hover:not(:disabled),
.portal-navigation a:hover {
  color: var(--primary-dark);
  border-color: #78a18f;
  background: var(--primary-soft);
  box-shadow: 0 4px 12px rgba(21, 63, 54, .07);
}

.button.soft {
  color: var(--primary-dark);
  border: 1px solid #bfd4c9;
  background: var(--primary-soft);
}
.button.soft:hover:not(:disabled) { border-color: #8cb2a1; background: #dcebe4; }
.button.danger { border: 1px solid #ebc7cc; }

.button:disabled,
.button[aria-busy="true"],
.portal-primary:disabled,
.portal-primary[aria-busy="true"] {
  color: #6c7a73;
  border-color: #d6dfda;
  background: #e8ede9;
  box-shadow: none;
  opacity: 1;
}

.onboarding-reminder .button {
  color: #fff;
  border-color: #205f50;
  background: var(--primary);
  box-shadow: 0 5px 14px rgba(21, 63, 54, .11);
}
.onboarding-reminder .button:hover:not(:disabled) { color: #fff; border-color: var(--primary-dark); background: var(--primary-dark); }

:is(.field, .profile-field, .portal-field, .saved-property-picker, .catalog-filters, .inline-field) :is(input, select, textarea),
.segment span,
.counter-control,
.binary-control {
  border-color: var(--line-strong);
  border-radius: var(--control-radius);
  background-color: #fff;
  box-shadow: inset 0 1px 1px rgba(21, 63, 54, .025);
}

:is(.field, .profile-field, .portal-field, .saved-property-picker, .catalog-filters, .inline-field) :is(input, select, textarea):hover:not(:disabled) {
  border-color: #789f8e;
}

:is(.field, .profile-field, .portal-field, .saved-property-picker, .catalog-filters, .inline-field) :is(input, select, textarea):focus,
:is(.field, .profile-field, .portal-field, .saved-property-picker, .catalog-filters, .inline-field) :is(input, select, textarea):focus-visible {
  border-color: var(--primary);
  outline: 0;
  box-shadow: 0 0 0 4px var(--focus-halo);
}

.password-toggle {
  color: var(--primary-dark);
  border-radius: 8px;
  background: var(--primary-soft);
}
.password-toggle:hover,
.password-toggle[aria-pressed="true"] { color: #fff; background: var(--primary); }

.login-story { background: linear-gradient(155deg, #edf5f0 0%, #dcebe3 100%); }
.login-panel { background: #fbfcfa; }
.login-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid rgba(158, 184, 172, .58);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-soft);
}

:is(.quick-card, .draft-card, .property-card, .document-card, .offer, .settings-card, .profile-editor-card, .registration-card) {
  border-color: var(--line);
  border-radius: var(--card-radius);
  background-color: var(--surface);
  box-shadow: 0 1px 2px rgba(21, 63, 54, .035);
}

.quick-card:hover,
.draft-card:hover,
.property-card:hover,
.offer:hover {
  border-color: #92b6a5;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.quick-icon,
.account-menu-symbol,
.account-disclosure-icon,
.registry-card-icon,
.service-icon {
  color: var(--primary-dark);
  border-color: #c6d8cf;
  background: var(--primary-soft);
}

.hero-service {
  border-color: #bfd3c9;
  background: linear-gradient(145deg, #edf5f0, #e5f0ea);
  box-shadow: 0 12px 30px rgba(21, 63, 54, .06);
}
.hero-service > .service-link { background: rgba(255, 255, 255, .86); box-shadow: 0 1px 2px rgba(21, 63, 54, .04); }
.hero-service > .service-inspection { color: #5b4728; border-color: #dfcfaf; background: #f7f1e6; }
.service-inspection .service-icon { color: #72572d; border-color: #dfcfaf; background: #eee1c7; }
.home-body .hero-service > .service-link:hover { border-color: #7da594; background: #fff; box-shadow: 0 7px 18px rgba(21, 63, 54, .08); }
.home-body .hero-service > .service-inspection:hover { border-color: #a7834b; background: #fbf6ed; }

.benefits article { border-color: #c8d8d0; }
.benefits h3 { color: var(--ink); }
.offer.complete { border-color: #174f43; background: linear-gradient(150deg, #174f43, #216453); box-shadow: 0 14px 32px rgba(21, 63, 54, .12); }

:is(.form-section, .composition-question, .room-card, .phase-card, .technical-details, .substep-surface) {
  border-color: var(--line);
  border-radius: var(--card-radius);
  background: var(--surface);
}
.focused-step > .form-section,
.substep-surface,
.composition-question,
.room-card { box-shadow: 0 1px 2px rgba(21, 63, 54, .04); }
.form-section .form-section { box-shadow: none; }

:is(.nav-step, .inspection-nav-button, .substep-button) {
  border-radius: var(--control-radius);
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

:is(.nav-step, .inspection-nav-button, .substep-button):hover {
  color: var(--primary-dark);
  border-color: #92b6a5;
  background: #f1f6f3;
}

:is(.nav-step.active, .inspection-nav-button.active, .substep-button.active) {
  color: var(--primary-dark);
  border-color: #9ec1b1;
  background: #e5f0ea;
  box-shadow: inset 0 0 0 1px rgba(38, 115, 95, .06);
}

.portal-navigation a[aria-current],
.portal-navigation a[aria-current]:hover {
  color: #fff;
  border-color: #205f50;
  background: var(--primary);
  box-shadow: var(--shadow-control);
}

.info-box,
.stage-lead,
.selection-help,
.mission-card,
.visit-intro,
.phase-banner,
.owner-prefill,
.onboarding-reminder,
.composition-preview {
  border-color: #c6d8cf;
  background: var(--surface-muted);
}

.progress-track,
.inspection-progress-track,
.visit-progress-bar { overflow: hidden; background: #dce7e1; }
.progress-track span,
.inspection-progress-track span,
.visit-progress-bar span { background: linear-gradient(90deg, var(--terracotta-dark), var(--terracotta)); }

.warning-box,
.alert.warning,
.parking-scope-warning { background: var(--terracotta-soft); border-color: #ddb7aa; color: #713829; }
.status-chip.purple { background: var(--terracotta-soft); color: var(--terracotta-dark); }
.draft-progress span { background: linear-gradient(90deg, var(--terracotta-dark), var(--terracotta)); }

.wizard-footer {
  border-color: #cbd9d2;
  background: rgba(255, 255, 255, .96);
}

@media (prefers-reduced-motion: no-preference) {
  :is(.button, .portal-primary, .home-button, .back-button, .text-button, .icon-button, .quick-card, .offer) {
    transition-duration: .18s;
  }
}

@media (max-width: 680px) {
  :root { --card-radius: 14px; }
  .login-card { padding: 24px 20px; border-radius: 17px; }
  :is(.button, .portal-primary, .home-button, .back-button, .text-button) { padding-inline: 15px; }
}
.final-review-form fieldset{border:0;padding:0;margin:18px 0}.final-review-form legend{font-weight:800;margin-bottom:10px}.final-review-check{display:flex;gap:12px;align-items:flex-start;padding:13px 14px;margin:9px 0;border:1px solid var(--border,#d8ddd2);border-radius:14px;background:#fff;cursor:pointer}.final-review-check input{width:20px;height:20px;flex:0 0 auto;margin-top:2px}.final-review-check span{display:grid;gap:3px}.final-review-check small{color:var(--muted,#5f695d);line-height:1.45}.final-review-details{margin:16px 0}.final-review-details .review-row{display:grid;grid-template-columns:minmax(110px,.7fr) minmax(0,1.3fr);gap:12px;padding:9px 0;border-bottom:1px solid var(--border,#e2e6df)}.final-review-details dt{color:var(--muted,#5f695d)}.final-review-details dd{margin:0;font-weight:700}@media(max-width:600px){.final-review-details .review-row{grid-template-columns:1fr;gap:3px}.final-review-check{padding:12px}}
