/* Institut Immobilier Formation: mineral blue and beige. */
:root{--ink:#253640;--muted:#5a6d76;--navy:#2f5a73;--navy2:#396a83;--gold:#f5bb53;--paper:#f3f6f7;--card:#fff;--line:#d7e2e6;--soft:#e8f0f3;--warn:#845e32;--shadow:0 12px 34px rgba(31,62,79,.11);color-scheme:light}
body{background:linear-gradient(180deg,#eaf0f3 0,#f5f7f8 360px)}
.topbar{background:#2f5a73}.auth-shell{background:radial-gradient(circle at 14% 12%,rgba(185,162,127,.22),transparent 31%),linear-gradient(130deg,#233f52,#2f5a73 60%,#466c82)}
.auth-copy h1 em,.auth-kicker{color:#e3cfaa}.auth-submit,.btn-primary,.active .step-num{background:var(--gold)}.auth-submit:hover{background:#f8ca6a}
.auth-brand,.brand{gap:12px}.institute-logo{display:block;width:168px;height:auto;max-height:56px;object-fit:contain;background:white;border-radius:7px;padding:5px 8px;flex:none}.auth-brand .institute-logo{width:203px;max-height:70px;padding:8px 10px}.brand-name{display:flex;flex-direction:column;min-width:0}.brand-name strong{line-height:1.2}.brand-name span{line-height:1.2}
.theme-switch{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:7px 11px;border:1px solid rgba(255,255,255,.48);border-radius:9px;background:rgba(255,255,255,.08);color:white;font-size:13px;font-weight:750;white-space:nowrap}.theme-switch:hover{background:rgba(255,255,255,.17)}.theme-switch:focus-visible{outline:3px solid #e2c69b;outline-offset:2px}.auth-nav-actions{display:flex;align-items:center;gap:14px}.theme-switch .theme-icon{font-size:18px;line-height:1}
@media(max-width:1000px){.brand .institute-logo{width:127px}.topbar .brand-name span{display:none}.auth-nav-note{display:none}}
@media(max-width:620px){.auth-nav{align-items:flex-start;gap:9px}.auth-brand .institute-logo{width:146px;padding:6px}.auth-brand .brand-name{display:none}.auth-nav-actions{margin-left:auto}.theme-switch{min-width:42px;padding:7px}.theme-switch .theme-switch-label{display:none}.brand .institute-logo{width:100px;padding:3px}.brand .brand-name{display:none}.topbar .theme-switch{min-width:36px;padding:6px}.topbar .theme-switch .theme-icon{font-size:16px}}
:root[data-theme="dark"]{--ink:#edf3f5;--muted:#b7c8d0;--navy:#2f5a73;--navy2:#6897af;--gold:#f5bb53;--paper:#111d26;--card:#1c2e39;--line:#3b5361;--soft:#2a414e;--warn:#d6b98a;--ok:#74c1a4;--danger:#ed9693;--shadow:0 14px 36px rgba(0,0,0,.24);color-scheme:dark}
:root[data-theme="dark"] body{background:linear-gradient(180deg,#13232e,#111d26 360px);color:var(--ink)}
:root[data-theme="dark"] .auth-shell{background:radial-gradient(circle at 12% 9%,rgba(185,162,127,.13),transparent 32%),linear-gradient(135deg,#10202c,#1b3445 65%,#294f65)}
:root[data-theme="dark"] .auth-card,:root[data-theme="dark"] .sidebar,:root[data-theme="dark"] .section-card,:root[data-theme="dark"] .project-card,:root[data-theme="dark"] .summary-pane,:root[data-theme="dark"] .dashboard-pane,:root[data-theme="dark"] .activity-pane{background:var(--card);border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .auth-card-head h2,:root[data-theme="dark"] .dashboard-head h1,:root[data-theme="dark"] .project-card h2,:root[data-theme="dark"] .theme-heading,:root[data-theme="dark"] .activity-section h2,:root[data-theme="dark"] .document-manager h4,:root[data-theme="dark"] .report h2,:root[data-theme="dark"] .report-cover h1,:root[data-theme="dark"] .address-zone>label,:root[data-theme="dark"] .analysis-panel h2,:root[data-theme="dark"] .analysis-case h3{color:#e9f1f4}
:root[data-theme="dark"] .auth-card-head p,:root[data-theme="dark"] .auth-field label,:root[data-theme="dark"] .profile-note,:root[data-theme="dark"] .analysis-private,:root[data-theme="dark"] .analysis-panel>p,:root[data-theme="dark"] .report-cover p,:root[data-theme="dark"] .report-note,:root[data-theme="dark"] .obs-desc{color:#bdd0d8}
:root[data-theme="dark"] .auth-tabs,:root[data-theme="dark"] .profile-note,:root[data-theme="dark"] .install-area,:root[data-theme="dark"] .section-footer,:root[data-theme="dark"] .dashboard-tools,:root[data-theme="dark"] .obs-form,:root[data-theme="dark"] .document-manager,:root[data-theme="dark"] .address-zone,:root[data-theme="dark"] .signature-card,:root[data-theme="dark"] .analysis-panel{background:#233844;border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .auth-tab.active,:root[data-theme="dark"] .auth-google,:root[data-theme="dark"] .install-button,:root[data-theme="dark"] .btn-secondary,:root[data-theme="dark"] .choice label,:root[data-theme="dark"] .choice label::before,:root[data-theme="dark"] .empty,:root[data-theme="dark"] .document-item,:root[data-theme="dark"] .document-empty,:root[data-theme="dark"] .document-link-picker,:root[data-theme="dark"] .document-link-select,:root[data-theme="dark"] .document-link-empty,:root[data-theme="dark"] .signature-declaration,:root[data-theme="dark"] .analysis-case,:root[data-theme="dark"] .address-results,:root[data-theme="dark"] .address-result,:root[data-theme="dark"] .dashboard-tab,:root[data-theme="dark"] .account-pill,:root[data-theme="dark"] .member-row,:root[data-theme="dark"] .audit-row{background:#1a2a35;border-color:var(--line);color:var(--ink)}
:root[data-theme="dark"] .auth-field input,:root[data-theme="dark"] .field input,:root[data-theme="dark"] .field textarea,:root[data-theme="dark"] .field select,:root[data-theme="dark"] .dashboard-search input,:root[data-theme="dark"] .address-row input,:root[data-theme="dark"] .assignment-select,:root[data-theme="dark"] .source-select,:root[data-theme="dark"] input,:root[data-theme="dark"] textarea,:root[data-theme="dark"] select{background:#152631;color:var(--ink);border-color:#526b77}
:root[data-theme="dark"] .choice input:checked+label,:root[data-theme="dark"] .dashboard-tab.active,:root[data-theme="dark"] .document-link-picker[open] summary,:root[data-theme="dark"] .address-result:hover,:root[data-theme="dark"] .address-row .address-result:hover{background:#33566a;color:white}
:root[data-theme="dark"] .step-btn{color:var(--ink)}:root[data-theme="dark"] .step-btn.active{background:#335b72;color:white}:root[data-theme="dark"] .step-num,:root[data-theme="dark"] .group-summary::before,:root[data-theme="dark"] .section-count,:root[data-theme="dark"] .help-dot{background:#36505e;color:#f1f6f7}
:root[data-theme="dark"] .analysis-case a,:root[data-theme="dark"] a,:root[data-theme="dark"] .auth-link{color:#a6cede}:root[data-theme="dark"] .auth-privacy,:root[data-theme="dark"] .install-help{color:#bfd0d7}
:root[data-theme="dark"] .report-note,:root[data-theme="dark"] .report-warning,:root[data-theme="dark"] .analysis-note,:root[data-theme="dark"] .auth-message.success{background:#344334;border-color:#827351;color:#f2e7cb}
:root[data-theme="dark"] .signature-pad{background:white;color:#16252d}:root[data-theme="dark"] .upload-zone{background:#1b3543;color:#e8f2f5}:root[data-theme="dark"] .upload-zone span{color:#bfd6e0}
:root[data-theme="dark"] .auth-submit,:root[data-theme="dark"] .btn-primary,:root[data-theme="dark"] .active .step-num{color:#241f18}:root[data-theme="dark"] .btn-ghost{color:white}
@media print{:root[data-theme="dark"] body,:root[data-theme="dark"] .summary-pane,:root[data-theme="dark"] .report{background:white!important;color:#16252d!important}:root[data-theme="dark"] .report *{color:#16252d!important}}
/* Accueil inspiré des maquettes fournies : bleu profond, doré lumineux et maison. */
.house-badge{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;flex:none;background:#f5bb53;color:#173a49;box-shadow:0 6px 18px rgba(0,0,0,.17)}.house-badge svg{width:26px;height:26px}.auth-brand .house-badge{width:62px;height:62px}.auth-brand .house-badge svg{width:32px;height:32px}.auth-brand .brand-name strong{font-size:24px;color:white}.topbar .brand-name strong{font-size:17px;color:white}
.auth-shell{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(90deg,rgba(9,42,58,.88) 0%,rgba(9,42,58,.68) 35%,rgba(9,42,58,.08) 68%,rgba(9,42,58,.12) 100%),linear-gradient(0deg,rgba(9,46,66,.93) 0%,transparent 38%),url('/maison-accueil-lumineuse.webp') center 38%/cover no-repeat,#10384a;color:white;padding:24px clamp(18px,3vw,52px)}
.auth-nav{max-width:1500px;width:100%;gap:20px}.auth-nav-actions{justify-content:flex-end;flex-wrap:wrap}.auth-nav-note{font-size:15px;color:white}.auth-layout{max-width:1500px;width:100%;margin:auto;display:grid;grid-template-columns:minmax(0,1.55fr) minmax(370px,.85fr);gap:clamp(24px,4vw,82px);align-items:center;padding:30px 0}.auth-copy{max-width:930px}.auth-kicker{color:#fff;border-color:rgba(255,255,255,.65);font-size:12px;letter-spacing:.13em;padding:8px 16px}.auth-copy h1{font-family:Georgia,Times,serif;letter-spacing:-.025em;font-weight:700;font-size:clamp(42px,4.9vw,78px);line-height:1.02;max-width:none;margin:20px 0}.auth-copy h1 em{color:#f5bb53}.auth-copy>p{font-family:Georgia,Times,serif;font-size:clamp(17px,1.35vw,22px);line-height:1.38;max-width:720px;color:white}.auth-benefits{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin-top:34px}.auth-benefit{display:block;border-top:0;border-right:1px solid rgba(255,255,255,.24);padding:0 16px 0 0;margin-right:16px}.auth-benefit:last-child{border:0;margin-right:0}.auth-benefit .benefit-icon{display:block;color:#f5bb53;font-size:36px;line-height:1;margin:0 0 10px}.auth-benefit b{font-size:15px;line-height:1.28}.auth-benefit div>span{display:block;font-size:13px;line-height:1.4;color:#d6e3e8;margin-top:6px}
.auth-card{background:#fff;color:#183244;border-color:transparent;border-radius:25px;padding:clamp(22px,2.5vw,34px);box-shadow:0 25px 70px rgba(2,24,35,.35)}.auth-card-head h2{color:#193649;font-size:clamp(24px,2vw,30px)}.auth-card-head p{color:#5d7180;font-size:15px}.auth-tabs{background:#edf2f4}.auth-tab.active{background:white;color:#18384a}.auth-tab{font-size:15px}.auth-google{background:#fff;color:#203b4b;border-color:#cbd7df}.auth-field label{color:#243e50;font-size:14px}.auth-field input{background:#fff;color:#1d3748;border-color:#c8d6de}.auth-submit{background:#f5bb53;color:#142e3b}.auth-submit:hover{background:#f8c977}.auth-link{color:#183f54}.auth-privacy{font-size:12px;color:#566f7e}.auth-divider{font-size:13px}.install-area{background:#f3f7f8;border-color:#d5e1e5}.install-button{background:white;color:#183e51}.auth-footer{max-width:1500px;width:100%;margin:auto auto 0;display:flex;justify-content:space-between;gap:20px;color:#d6e4e9;font-size:12px;letter-spacing:.19em;text-transform:uppercase}.auth-footer span:before{content:"";display:inline-block;width:36px;height:2px;background:#f5bb53;vertical-align:middle;margin-right:14px}
@media(max-width:1100px){.auth-layout{grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:25px}.auth-benefits{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.auth-benefit{border:0;margin:0}.auth-copy h1{font-size:clamp(40px,5vw,60px)}}
@media(max-width:800px){.auth-shell{background:linear-gradient(90deg,rgba(5,43,59,.74),rgba(5,43,59,.10)),linear-gradient(0deg,#092e42,transparent 76%),url('/maison-accueil-lumineuse.webp') 60% top/auto 850px no-repeat,#10384a}.auth-layout{grid-template-columns:1fr;gap:25px;margin:0 auto;padding:36px 0}.auth-copy{text-align:left}.auth-copy h1{margin:18px 0;font-size:clamp(42px,7.8vw,62px)}.auth-copy>p{margin:0}.auth-card{max-width:640px}.auth-footer{justify-content:center;text-align:center}.auth-footer span:first-child{display:none}}
@media(max-width:620px){.auth-shell{padding:15px 16px 25px;background:linear-gradient(90deg,rgba(5,43,59,.74),rgba(5,43,59,.10)),linear-gradient(0deg,#092e42 20%,transparent 72%),url('/maison-accueil-lumineuse.webp') 59% top/auto 690px no-repeat,#10384a}.auth-brand .house-badge{width:48px;height:48px}.auth-brand .house-badge svg{width:27px;height:27px}.auth-brand .brand-name{display:block}.auth-brand .brand-name strong{font-size:18px}.auth-layout{padding:32px 0 15px;gap:28px}.auth-kicker{font-size:11px;padding:6px 10px}.auth-copy h1{font-size:clamp(35px,9vw,54px);line-height:1.02;letter-spacing:-.035em}.auth-copy>p{font-size:17px;line-height:1.35}.auth-benefits{grid-template-columns:1fr;gap:10px;margin-top:24px}.auth-benefit{display:grid;grid-template-columns:48px 1fr;gap:10px;align-items:start;text-align:left}.auth-benefit .benefit-icon{font-size:30px;margin:0;display:grid;place-items:center;border:1px solid rgba(245,187,83,.35);border-radius:10px;height:48px}.auth-benefit b{font-size:15px}.auth-benefit div>span{font-size:13px;margin-top:2px}.auth-card{padding:23px 20px;border-radius:20px}.auth-footer{font-size:10px;letter-spacing:.12em;margin-top:20px}.topbar .brand-name{display:none}.topbar .house-badge{width:36px;height:36px}.topbar .house-badge svg{width:22px;height:22px}}
@media(max-width:380px){.auth-brand .brand-name strong{font-size:16px}.auth-nav{gap:8px}.auth-benefit div>span{font-size:12px}}
@media(max-width:620px){.topbar .brand-name{display:block}.topbar .brand-name strong{font-size:12px;max-width:65px}.topbar .brand{gap:5px;flex:0 0 auto}.topbar #dashboardBtn,.topbar #newProjectBtn{font-size:11px;padding:7px}.topbar #logoutBtn{padding:6px}}

.auth-benefit .benefit-icon svg{display:block;width:42px;height:42px;stroke:currentColor}@media(max-width:620px){.auth-benefit .benefit-icon svg{width:32px;height:32px}}

.brand-logo{display:block;flex:none;width:48px;height:48px;object-fit:contain}.auth-brand .brand-logo{width:62px;height:62px}@media(max-width:620px){.auth-brand .brand-logo{width:48px;height:48px}.topbar .brand-logo{width:36px;height:36px}}

@media(max-width:620px){.auth-copy>p,.auth-benefit div>span{display:none}.auth-benefit{align-items:center}.auth-benefits{gap:12px}.auth-copy h1{margin-bottom:0}}

/* L’accueil reste constant ; dans les dossiers, le choix clair/sombre reste disponible. */
.auth-card{background:rgba(255,255,255,.88);border:1px solid rgba(255,255,255,.75);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);color:#183244;box-shadow:0 25px 70px rgba(2,24,35,.3)}
.auth-card-head h2{color:#193649}.auth-card-head p,.auth-privacy,.auth-divider{color:#526b79}.auth-field label,.auth-link,.auth-loading{color:#243e50}.auth-divider::before,.auth-divider::after{background:#c9d8df}
.auth-tabs{background:rgba(230,238,242,.9)}.auth-tab{color:#435e6b}.auth-tab.active{background:#fff;color:#18384a}.auth-privacy a{color:inherit}.install-area{background:rgba(244,248,249,.78);border-color:#d5e1e5}.install-help{color:#455b65}.profile-note{background:rgba(232,242,245,.88);color:#425861}
@media(max-width:620px){.auth-benefits{display:none}.auth-copy h1{margin-bottom:0}.auth-layout{gap:22px}}

.btn-primary:hover{background:#f8ca6a}
.standards-panel{margin:0 22px 22px;padding:20px;background:var(--card);border:1px solid var(--line);border-radius:15px}.standards-panel h2{margin:0 0 8px;color:var(--navy);font-size:21px}.standards-panel>p{margin:0 0 14px;line-height:1.55}.standards-guides{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.standards-guides a{color:var(--navy2);font-size:14px}.standards-list{display:grid;gap:10px;margin-bottom:18px}.standard-item{border:1px solid var(--line);border-left:4px solid var(--gold);border-radius:10px;padding:13px;background:var(--card)}.standard-item h3{margin:0 0 5px;font-size:16px}.standard-item p{margin:5px 0;white-space:pre-wrap}.standard-item .standard-status{font-weight:800;color:var(--navy2)}.standard-remove{margin-top:8px}.standards-form{padding:16px;background:var(--soft);border-radius:12px;display:grid;gap:12px}.standards-form h3{margin:0}.standards-form .field{display:grid;gap:5px}.standards-form label{font-weight:700;font-size:14px}.standards-form input,.standards-form textarea,.standards-form select{width:100%;min-height:42px;border:1px solid #aebfc7;border-radius:8px;padding:9px;background:var(--card);color:var(--ink)}.standards-form textarea{min-height:72px}.standards-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.standards-form>.btn{justify-self:start}.standards-message{margin:0;color:var(--navy2)}.report-standards .standard-item{break-inside:avoid}
@media(max-width:620px){.standards-panel{margin:12px;padding:15px}.standards-fields{grid-template-columns:1fr}.standards-form{padding:12px}}
/* Navigation de visite sur téléphone, alignée sur la maquette. */
.mobile-nav{display:none}
.topbar .top-actions [hidden],.topbar .top-actions #activityBtn,.topbar .top-actions #logoutBtn{display:none!important}
.mobile-account{display:block;margin-left:12px;position:relative;flex:none;color:white}
.mobile-account summary{list-style:none;display:flex;gap:6px;align-items:center;min-height:44px;cursor:pointer;font-size:13px;font-weight:700}
.mobile-account summary::-webkit-details-marker{display:none}.mobile-account summary svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8}
.mobile-account summary span:nth-child(2){max-width:100px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
.mobile-account-menu{position:absolute;right:0;top:calc(100% + 9px);width:205px;padding:7px;background:white;border-radius:12px;box-shadow:0 14px 35px rgba(0,0,0,.22);z-index:31}
.mobile-account-menu button,.mobile-account-menu a{display:block;width:100%;text-align:left;color:#18384a;background:transparent;border:0;border-radius:7px;padding:11px;font-size:14px;font-weight:400;text-decoration:none;cursor:pointer}.mobile-account-menu button:hover,.mobile-account-menu a:hover{background:#edf2f4}
.mobile-account-menu a small{display:block;margin-top:4px;color:#536b76;font-size:11px;line-height:1.35}
.mobile-account-menu button:focus-visible,.mobile-account-menu a:focus-visible{outline:2px solid #f5bb53;outline-offset:-2px}
.mobile-account-menu [data-mobile-account="logout"]{border-top:1px solid #dce4ea;border-radius:0;margin-top:4px}
.mobile-account-menu .mobile-account-new{display:none}
:root[data-theme="dark"] .mobile-account-menu{background:#203641}
:root[data-theme="dark"] .mobile-account-menu button,:root[data-theme="dark"] .mobile-account-menu a{color:#e7f0f4}
:root[data-theme="dark"] .mobile-account-menu a small{color:#c1d2da}
:root[data-theme="dark"] .mobile-account-menu button:hover,:root[data-theme="dark"] .mobile-account-menu a:hover{background:#33566a}
@media(min-width:621px) and (max-width:1200px){.topbar .top-actions{min-width:0;overflow-x:auto;scrollbar-width:thin}.topbar .top-actions>*{flex:none}}
@media(max-width:620px){
  .topbar{min-height:66px;justify-content:space-between;gap:8px;padding:8px 14px;z-index:30}
  .topbar .brand{min-width:0;gap:8px;flex:0 1 auto}
  .topbar .brand-name{display:block;min-width:0}.topbar .brand-name strong{font-size:17px;max-width:none;white-space:nowrap}
  .topbar .brand-logo{width:42px;height:42px}
  .topbar .top-actions{display:none}
  .mobile-account{margin-left:auto}
  .mobile-account summary span:nth-child(2){max-width:84px}
  .mobile-account-menu .mobile-account-new{display:block}
  .dashboard-pane .dashboard-head{position:relative}
  .dashboard-pane .dashboard-head .eyebrow{display:flex;align-items:center;min-height:45px;padding-right:154px}
  .dashboard-pane .dashboard-head-actions{position:absolute;top:20px;right:20px;display:flex;margin:0}
  .dashboard-pane #dashboardActivityBtn{display:none}
  .dashboard-pane .dashboard-head-actions .btn{width:auto;margin:0;padding:10px 11px;font-size:13px;white-space:nowrap}
  #appShell:not([hidden]) + .mobile-nav{display:grid}
  .mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:40;grid-template-columns:repeat(4,minmax(0,1fr));height:calc(80px + env(safe-area-inset-bottom));padding:7px 5px calc(8px + env(safe-area-inset-bottom));background:#2f5a73;border-top:1px solid #24465c;box-shadow:0 -6px 25px rgba(28,53,70,.18)}
  .mobile-nav button{min-width:0;min-height:60px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px;padding:0 2px;border:0;background:transparent;color:#fff;font-size:12px;line-height:1.15;font-weight:600}
  .mobile-nav .mobile-nav-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center}.mobile-nav svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .mobile-nav button.active{color:#fff;font-weight:800}.mobile-nav button.active .mobile-nav-icon{background:#f5bb53;color:#142e3d}
  .mobile-nav button:focus-visible,.mobile-account summary:focus-visible{outline:2px solid #f5bb53;outline-offset:-2px}
  #appShell{padding-bottom:calc(94px + env(safe-area-inset-bottom))}
  .section-footer{bottom:calc(80px + env(safe-area-inset-bottom))}
  #documentManager{scroll-margin-top:80px}
  .section-card{scroll-margin-top:75px}
  :root[data-theme="dark"] .mobile-nav{background:#2f5a73;border-color:#24465c}
  :root[data-theme="dark"] .mobile-nav button{color:#fff}
  :root[data-theme="dark"] .mobile-nav button.active{color:white}
}
@media print{.mobile-nav,.mobile-account{display:none!important}}
.dictation-field { display: block; position: relative; width: 100%; }
.quick-active{background:#fff!important}.quick-active .quick-visit{background:#fff;color:#253640}.quick-active .quick-visit h1{color:#2f5a73}.quick-active .quick-themes,.quick-active .quick-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-active .quick-tile{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:10px;min-height:102px;width:100%;border:2px solid #2f5a73;border-radius:15px;background:#2f5a73;color:#fff;text-align:left;padding:16px;font:inherit;font-weight:700;line-height:1.25;cursor:pointer;box-shadow:0 4px 0 #203e51;transition:transform .12s,box-shadow .12s,background .12s}.quick-active .quick-tile strong{font-size:1.05rem}.quick-active .quick-tile span{color:inherit}.quick-active .quick-tile.selected,.quick-active .quick-tile[aria-pressed="true"]{background:#193a50;border-color:#f5bb53;box-shadow:inset 0 3px 9px #102b3c,0 1px 0 #203e51;transform:translateY(3px)}.quick-active .quick-tile:focus-visible,.quick-toolbar button:focus-visible{outline:3px solid #f5bb53;outline-offset:2px}.quick-active .quick-choices{margin:20px 0}.quick-active .quick-choice{min-height:88px}.quick-active .quick-note-tile{min-height:64px;margin-top:16px;background:#fff;color:#2f5a73;box-shadow:0 3px 0 #b0c6d0}.quick-note-panel{margin-top:14px}.quick-note-panel label{display:block;font-weight:700;margin-bottom:8px}.quick-toolbar[hidden]{display:none!important}.quick-toolbar{position:sticky;bottom:0;z-index:45;display:flex;align-items:center;gap:10px;padding:10px;background:#2f5a73;color:#fff;border-radius:12px 12px 0 0}.quick-toolbar button{border:2px solid #fff;border-radius:10px;background:#fff;color:#193a50;padding:12px 16px;font:inherit;font-weight:800;min-height:48px;cursor:pointer}.quick-toolbar button:disabled{opacity:.45;cursor:not-allowed}.quick-toolbar button.listening{background:#f5bb53}.quick-toolbar [role="status"]{font-size:.85rem}.quick-active .quick-back{color:#2f5a73}.quick-active .quick-hint{color:#516775}@media(max-width:620px){.quick-active .quick-themes,.quick-active .quick-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-active .quick-tile{min-height:112px;padding:13px}.quick-active .quick-choice{min-height:105px}.quick-toolbar{position:fixed;left:0;right:0;bottom:calc(80px + env(safe-area-inset-bottom));border-radius:0;box-shadow:0 -4px 14px #193a5066;flex-wrap:wrap}.quick-toolbar button{flex:1}.quick-toolbar [role="status"]:not(:empty){flex-basis:100%}.quick-active{padding-bottom:90px}}
.visit-mode-switch{display:flex;justify-content:flex-end;gap:10px;padding:16px 20px 0}.quick-active>.section-head,.quick-active>.groups,.quick-active>.section-footer{display:none!important}.quick-visit{padding:18px 20px 32px}.quick-visit h1{color:var(--navy);font-size:1.55rem;margin:10px 0}.quick-visit h2{font-size:1.2rem;margin:22px 0 12px}.quick-visit p{line-height:1.5}.quick-themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.quick-themes button{min-height:130px;border:2px solid var(--line);border-radius:16px;background:var(--card);color:var(--ink);text-align:left;padding:18px;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between;gap:12px}.quick-themes strong{font-size:1.1rem;line-height:1.25}.quick-themes span{font-size:.85rem;color:var(--muted)}.quick-themes button:hover,.quick-themes button:focus-visible{border-color:var(--navy)}.quick-back{border:0;background:transparent;color:var(--navy);font:inherit;font-weight:700;padding:10px 0;cursor:pointer}.quick-subtopics{display:flex;overflow-x:auto;gap:8px;padding:8px 0 14px}.quick-subtopics button{flex:none;max-width:240px;border:1px solid var(--line);border-radius:99px;background:var(--card);color:var(--ink);padding:10px 14px;font:inherit;cursor:pointer}.quick-subtopics button.active{background:var(--navy);color:#fff}.quick-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-choice{min-height:72px;display:flex;align-items:center;gap:12px;padding:14px;border:2px solid var(--line);border-radius:13px;background:var(--card);font-weight:650;cursor:pointer}.quick-choice.selected{border-color:var(--navy);background:var(--soft)}.quick-choice input{width:22px;height:22px;flex:none;accent-color:var(--navy)}.quick-label{display:block;margin:24px 0 7px;font-weight:750}.quick-visit textarea{width:100%;min-height:100px;border:1px solid var(--line);border-radius:10px;padding:12px;background:var(--card);color:var(--ink);font:inherit}.quick-actions{display:flex;align-items:center;gap:12px;margin-top:14px}.quick-hint{font-size:.9rem;color:var(--muted)}@media(max-width:620px){.quick-themes{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-themes button{min-height:126px;padding:14px}.quick-choices{grid-template-columns:1fr}.quick-visit{padding:16px}.visit-mode-switch{padding:12px 16px 0}.visit-mode-switch .btn{font-size:14px}}
.dictation-field > input, .dictation-field > textarea { width: 100%; padding-right: 3rem !important; }
.dictation-button { position: absolute; right: .4rem; top: .4rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border: 1px solid currentColor; border-radius: .5rem; background: var(--surface, #fff); color: #174b64; cursor: pointer; z-index: 1; }
.dictation-button.listening { color: #b02632; box-shadow: 0 0 0 3px #b0263233; }
.dictation-button:focus-visible { outline: 3px solid #246da5; outline-offset: 2px; }
.quick-active .quick-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0}.quick-active .quick-pages button{border:1px solid #2f5a73;border-radius:9px;background:#fff;color:#2f5a73;padding:9px;font:inherit;font-weight:700}.quick-active .quick-pages button:disabled{opacity:.4}.quick-active .quick-note-tile.selected{background:#193a50;color:#fff}
.quick-active .visit-mode-switch{display:none}.quick-active .quick-visit{padding-top:0}.quick-active .quick-themes,.quick-active .quick-choices{margin-top:0}.quick-active .quick-tile>span:only-child{font-size:1rem}.quick-toolbar #quickToolbarBack{flex:none;width:50px;padding:0;font-size:2rem;line-height:1;background:transparent;color:#fff;border-color:#fff}.quick-active .quick-extra{margin-bottom:12px}@media(max-width:620px){.quick-active .quick-visit{padding-top:0}.quick-toolbar #quickToolbarBack{flex:0 0 50px}.quick-toolbar #quickDictate,.quick-toolbar #quickTakePhoto{flex:1 1 0;min-width:0}}
.quick-stage-nav[hidden]{display:none!important}.quick-stage-nav{background:#2f5a73;display:flex;flex-direction:column;gap:2px;padding:5px 0}.quick-nav-row{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px 10px;white-space:nowrap}.quick-nav-row button{flex:none;border:1px solid #bdd0d9;border-radius:9px;background:#fff;color:#2f5a73;padding:8px 12px;font:inherit;font-size:14px;font-weight:700;min-height:42px;cursor:pointer}.quick-nav-row button.active{background:#a75b11;color:#fff;border-color:#f5bb53;box-shadow:inset 0 2px 4px #542d0b}.quick-nav-row button:focus-visible{outline:3px solid #f5bb53}.quick-dialog{width:min(92vw,520px);max-height:86dvh;border:0;border-radius:16px;padding:20px;background:#fff;color:#253640;box-shadow:0 20px 70px #122c3e77}.quick-dialog::backdrop{background:#102c3dc9}.quick-dialog h2{margin:0 0 8px;color:#2f5a73}.quick-dialog p{margin:0 0 12px}.quick-dialog textarea{box-sizing:border-box;width:100%;min-height:140px;padding:12px;border:1px solid #8ca8b8;border-radius:9px;font:inherit;color:#253640;background:#fff}.quick-dialog img{display:block;width:100%;max-height:50dvh;object-fit:contain;border-radius:8px;background:#e7eef1}.quick-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.quick-dialog-actions button{min-height:48px;padding:10px 14px;border:1px solid #2f5a73;border-radius:9px;background:#fff;color:#2f5a73;font:inherit;font-weight:800}.quick-dialog-actions button:last-child{background:#2f5a73;color:#fff}
@media(max-width:620px){body.quick-visit-mode{overflow:hidden;overscroll-behavior:none}body.quick-visit-mode #appShell{padding:0}body.quick-visit-mode #appShell .sidebar,body.quick-visit-mode #appShell #projectCard{display:none!important}body.quick-visit-mode #questionnaire{position:fixed;top:var(--visit-header-height,70px);bottom:calc(80px + env(safe-area-inset-bottom));left:0;right:0;margin:0;border:0;border-radius:0;overflow:hidden;z-index:25;background:#fff}body.quick-visit-mode .quick-stage-nav{position:absolute;top:0;left:0;right:0;height:55px;z-index:2;overflow:hidden}body.quick-visit-mode.quick-has-group .quick-stage-nav{height:108px}body.quick-visit-mode .quick-visit{position:absolute;top:55px;left:0;right:0;bottom:70px;overflow:hidden;padding:10px 12px;display:flex;flex-direction:column}body.quick-visit-mode.quick-has-group .quick-visit{top:108px}body.quick-visit-mode .quick-themes,body.quick-visit-mode .quick-choices{flex:1;min-height:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:9px;margin:0}body.quick-visit-mode .quick-choices{grid-template-rows:repeat(3,minmax(0,1fr))}body.quick-visit-mode .quick-tile{min-height:0;height:100%;padding:10px;font-size:clamp(13px,3.7vw,17px);overflow:hidden}body.quick-visit-mode .quick-tile strong{font-size:inherit}body.quick-visit-mode .quick-pages{flex:none;min-height:40px;margin:3px 0}body.quick-visit-mode .quick-note-tile{height:46px;min-height:46px;margin:8px 0 0}body.quick-visit-mode .quick-note-panel:not([hidden]){position:absolute;inset:12px;z-index:3;background:#fff;overflow:auto;padding:10px}body.quick-visit-mode .quick-note-panel[hidden]{display:none}body.quick-visit-mode .quick-toolbar{position:absolute;bottom:0;height:70px;box-sizing:border-box;padding:8px 10px;flex-wrap:nowrap;z-index:3}body.quick-visit-mode .quick-toolbar [role="status"]:not(:empty){position:absolute;bottom:100%;left:0;right:0;padding:7px 12px;background:#fff;color:#193a50;text-align:center;box-shadow:0 -3px 9px #193a5033}body.quick-visit-mode .quick-toolbar #quickToolbarBack{min-width:44px;height:48px}body.quick-visit-mode .quick-toolbar button{height:48px;padding:6px 10px;font-size:14px}body.quick-visit-mode #quickPhotoDialog,body.quick-visit-mode #quickVoiceDialog{z-index:100}body.quick-visit-mode .quick-extra{height:44px;min-height:44px;margin:4px 0 0}}
.quick-stage-nav{display:flex;flex-direction:row;align-items:center;gap:0;background:#e8f0f3;padding:5px 2px}.quick-stage-nav .quick-nav-row{flex:1;min-width:0;scrollbar-width:none;padding:3px 2px}.quick-stage-nav .quick-nav-row::-webkit-scrollbar{display:none}.quick-stage-nav .quick-nav-arrow{flex:0 0 30px;width:30px;min-height:42px;border:0;background:transparent;color:#2f5a73;font-size:30px;line-height:1;cursor:pointer}.quick-stage-nav .quick-nav-row button.active{background:#2f5a73;color:#fff;border-color:#2f5a73;box-shadow:inset 0 2px 5px #17394e}.quick-active .quick-tile.selected,.quick-active .quick-tile[aria-pressed="true"]{border-color:#87aebf}
@media(max-width:620px){body.quick-visit-mode.quick-has-group .quick-stage-nav{height:55px}body.quick-visit-mode.quick-has-group .quick-visit{top:55px}body.quick-visit-mode .quick-visit{bottom:70px;padding-bottom:14px;box-sizing:border-box}body.quick-visit-mode .quick-note-tile{flex:none;max-height:46px}body.quick-visit-mode .quick-pages{min-height:40px;max-height:40px}body.quick-visit-mode .quick-toolbar [role="status"]:not(:empty){pointer-events:none}}
.quick-active .quick-tile.completed{border-color:#70a8bf;background:#244e65;box-shadow:inset 0 0 0 2px #9fc2d0,0 4px 0 #193a50}.quick-active .quick-tile.completed span{font-size:.85rem;font-weight:800;color:#fff}.quick-toolbar #quickValidate[hidden]{display:none!important}.quick-toolbar #quickValidate{background:#d9ecf2;color:#173e54;border-color:#d9ecf2}
@media(max-width:620px){body.quick-visit-mode .quick-toolbar{gap:6px;padding:8px 7px}body.quick-visit-mode .quick-toolbar #quickToolbarBack{flex:0 0 38px;min-width:38px;width:38px}body.quick-visit-mode .quick-toolbar #quickDictate,body.quick-visit-mode .quick-toolbar #quickTakePhoto,body.quick-visit-mode .quick-toolbar #quickValidate{flex:1 1 0;width:0;min-width:0;font-size:13px;padding:5px 3px;white-space:nowrap}}
.quick-active .quick-tile.completed{position:relative;background:#e3f1f6;color:#183d52;border:2px solid #2f5a73;box-shadow:inset 0 0 0 2px #fff,0 4px 0 #24465c;padding-right:38px}.quick-active .quick-tile.completed span{color:#183d52}.quick-active .quick-tile.completed::after{content:"✓";position:absolute;right:8px;top:8px;display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#2f5a73;color:#fff;font-weight:900;font-size:20px}.quick-active .quick-tile-icons{display:block;min-height:19px;margin-top:auto;font-size:16px;line-height:1;color:inherit;white-space:nowrap}.quick-active .quick-tile-icons:empty{display:none}.quick-active .quick-room-tile{position:relative;min-height:0}.quick-active .quick-room-tile>.quick-tile{height:100%;box-sizing:border-box}.quick-active .quick-room-remove{position:absolute;top:4px;right:4px;z-index:1;width:34px;height:34px;border:1px solid #aec9d5;border-radius:50%;background:#fff;color:#173e54;font-size:24px;line-height:1;cursor:pointer}.quick-active .quick-add-room{flex:none;min-height:44px;margin-top:8px;border:2px solid #2f5a73;border-radius:10px;background:#fff;color:#2f5a73;font:inherit;font-weight:800}.quick-album-dialog{width:min(95vw,720px)}.quick-album-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:58dvh;overflow-y:auto}.quick-album-items>a,.quick-album-pending{display:grid;gap:5px;border:1px solid #b9cbd4;border-radius:9px;padding:6px;color:#173e54;text-decoration:none;font-size:13px;overflow-wrap:anywhere}.quick-album-items img{width:100%;height:125px;object-fit:cover;border-radius:5px}.quick-dialog select,.quick-dialog input{display:block;box-sizing:border-box;width:100%;min-height:44px;margin:6px 0 13px;padding:8px;border:1px solid #91adba;border-radius:8px;background:#fff;color:#253640;font:inherit}.quick-dialog label{font-weight:700}
@media(max-width:620px){body.quick-visit-mode .quick-toolbar #quickAlbum{flex:0 0 38px;width:38px;min-width:38px;font-size:23px;padding:4px}body.quick-visit-mode .quick-toolbar #quickToolbarBack{flex:0 0 34px;width:34px;min-width:34px}body.quick-visit-mode .quick-toolbar #quickDictate,body.quick-visit-mode .quick-toolbar #quickTakePhoto,body.quick-visit-mode .quick-toolbar #quickValidate{font-size:12px;padding:5px 2px}body.quick-visit-mode .quick-tile.completed{padding-right:32px}body.quick-visit-mode .quick-tile.completed::after{width:22px;height:22px;font-size:16px;right:5px;top:5px}body.quick-visit-mode .quick-room-remove{width:28px;height:28px;font-size:19px}}
.quick-active .quick-themes .quick-room-remove{position:absolute;top:8px;right:8px;z-index:1;display:grid;place-items:center;width:30px;height:30px;min-height:0;padding:0;border:1px solid #bbd2dc;border-radius:8px;background:#fff;color:#193a50;font:700 22px/1 Arial,sans-serif;box-shadow:0 1px 3px #102c3d33;cursor:pointer}.quick-active .quick-room-tile>.quick-tile{padding-right:42px}.quick-album-items>a,.quick-album-pending{align-content:start;grid-template-rows:125px auto}.quick-album-items img{display:block;width:100%;height:125px;object-fit:cover}.quick-album-items span{font-size:12px;line-height:1.3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.quick-album-dialog{box-sizing:border-box;max-width:calc(100vw - 24px)}
@media(max-width:620px){body:not(.quick-visit-mode){overflow-y:auto;overscroll-behavior-y:auto}body.quick-visit-mode .quick-active .quick-root-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr))}body.quick-visit-mode .quick-root-grid .quick-tile{padding:8px;font-size:clamp(11px,2.9vw,14px);line-height:1.15;overflow-wrap:anywhere}body.quick-visit-mode .quick-root-grid .quick-tile.completed{padding-right:8px;padding-top:30px}body.quick-visit-mode .quick-active .quick-themes:has(.quick-room-tile){grid-template-rows:repeat(4,minmax(0,1fr))}body.quick-visit-mode .quick-room-tile .quick-tile{gap:4px;padding:7px 32px 7px 9px;font-size:clamp(12px,3.1vw,15px)}body.quick-visit-mode .quick-room-tile .quick-tile.completed{padding-right:32px}body.quick-visit-mode .quick-room-tile .quick-tile span{font-size:11px}body.quick-visit-mode .quick-active .quick-themes .quick-room-remove{top:5px;right:5px;width:25px;height:25px;font-size:19px}}
.quick-active .quick-themes .quick-room-remove{top:5px;right:5px;width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:#fff;font:700 25px/1 Arial,sans-serif;text-shadow:0 1px 2px #17394e}.quick-active .quick-room-tile:has(.quick-tile.completed) .quick-room-remove{color:#173e54;text-shadow:none}.quick-active .quick-room-tile .quick-tile.completed::after{display:none}@media(max-width:620px){body.quick-visit-mode .quick-active .quick-themes .quick-room-remove{width:30px;height:30px;font-size:24px}}.quick-toolbar #quickAlbum svg{display:block;width:25px;height:25px;margin:auto;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.quick-toolbar #quickTakePhoto svg,.quick-toolbar #quickAlbum svg{display:block;width:26px;height:26px;margin:auto;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.quick-active .quick-tile-icons:not(:empty){display:flex;align-items:center;gap:7px;min-height:25px;margin-top:auto}.quick-active .quick-media-icon{display:inline-flex;align-items:center;justify-content:center}.quick-active .quick-media-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}@media(max-width:620px){body.quick-visit-mode.quick-root-level .quick-visit{top:0}body.quick-visit-mode .quick-root-grid .quick-tile{font-size:clamp(14px,3.7vw,17px);line-height:1.16;padding:8px;gap:5px}body.quick-visit-mode .quick-root-grid .quick-tile strong{font-size:inherit}body.quick-visit-mode .quick-root-grid .quick-tile-icons .quick-media-icon svg{width:24px;height:24px}body.quick-visit-mode .quick-toolbar #quickTakePhoto,body.quick-visit-mode .quick-toolbar #quickAlbum{flex:0 0 46px;width:46px;min-width:46px;padding:4px}body.quick-visit-mode .quick-toolbar #quickTakePhoto svg,body.quick-visit-mode .quick-toolbar #quickAlbum svg{width:27px;height:27px}}
