/* Mobile workspace: shared rhythm, readable content and native modal navigation. */
.nav-more{display:none}
.residence-trigger{display:flex;align-items:center;gap:14px;width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--ink);text-align:left;cursor:pointer}
.residence-trigger:hover{border-color:var(--brand)}
.residence-trigger .residence-selected{flex:1;min-width:0}
#dialog[data-sheet] #dialog-content{display:flex;flex-direction:column;max-height:inherit;height:100%}
#dialog[data-sheet] .dialog-head{flex:none}
#dialog[data-sheet] .sheet-body{min-height:0;overflow:auto}
#dialog[data-sheet="residences"]{height:min(720px,85dvh)}
#dialog[data-sheet="residences"] .sheet-body{display:flex;flex-direction:column;overflow:hidden;gap:16px}
.residence-search-box{flex:none;margin:0;padding:0 14px;border-radius:16px;min-height:54px;background:var(--paper)}
.residence-search-box input{font-size:16px;min-height:52px;width:100%;min-width:0}
#dialog .residence-options{flex:1;min-height:0;max-height:none;display:flex;flex-direction:column;gap:8px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
#dialog .residence-option{flex:none;min-height:76px;gap:14px;padding:12px;border-radius:18px;touch-action:pan-y pinch-zoom}
#dialog .residence-option strong{font-size:15px;line-height:1.45}
#dialog .residence-option small{font-size:13px;line-height:1.45}
#dialog .residence-option img,#dialog .residence-placeholder{width:54px;height:54px;border-radius:15px}
#dialog .sheet-close{flex:none;width:46px;height:46px;border-radius:50%;background:var(--soft);color:var(--ink)}
.menu-link{display:flex;align-items:center;gap:14px;padding:18px 14px;min-height:80px;border-radius:18px;background:var(--paper);border:1px solid var(--line);margin-bottom:10px}
.menu-link>svg:first-child{width:26px;height:26px;color:var(--brand2)}
.menu-link>span{display:grid;gap:5px;flex:1;min-width:0}
.menu-link strong{font-size:16px;line-height:1.4}
.menu-link small{font-size:13px;line-height:1.5;color:var(--muted)}
@media(max-width:1200px){
 :root{--mobile-radius:24px;--mobile-card-radius:20px;--mobile-control-radius:16px;--mobile-shadow:0 8px 30px #25172008;--muted:color-mix(in srgb,var(--ink)70%,var(--panel))}
 html{scroll-padding-bottom:116px}
 body:has(#workspace:not([hidden])){padding-bottom:calc(108px + env(safe-area-inset-bottom))}
 #workspace{font-size:16px;line-height:1.5}
 #workspace *,#dialog *{box-sizing:border-box}
 .sidebar{position:static;inset:auto;width:auto;padding:20px 20px 8px;background:var(--paper);border:0;display:block}
 .brand{margin:0;min-height:42px;gap:12px;align-items:center}
 .brand img{width:40px;height:40px;border-radius:13px;border:0;object-fit:contain;background:var(--panel)}
 .brand strong{font-size:17px;line-height:1.35;font-weight:700;letter-spacing:-.25px}
 .brand small,.workspace-label,.sidebar-project,.sidebar-foot,.nav-separator{display:none}
 .shell{margin:0}
 .topbar{height:auto;min-height:52px;padding:0 20px 8px;background:var(--paper);border:0;gap:12px;align-items:center}
 .breadcrumbs{font-size:0;flex:1;min-width:0;max-width:none;line-height:1.5}
 .breadcrumbs>span{display:none}
 .breadcrumbs>strong{font-size:14px;color:var(--muted);font-weight:550;overflow-wrap:anywhere}
 .top-actions{gap:6px;flex:none}
 .top-actions .session-tag,.top-actions .avatar{display:none}
 .icon-button{min-width:44px;min-height:44px;border-radius:50%;background:var(--panel);color:var(--ink)}
 .icon-button svg{width:21px;height:21px}
 .topbar .logout-button{min-height:44px;font-size:13px!important;padding:9px 13px!important;border-radius:14px;border-color:var(--line);background:var(--panel)}
 #navigation{position:fixed;inset:auto 10px calc(10px + env(safe-area-inset-bottom));z-index:30;width:auto;display:flex;gap:3px;margin:0;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:26px;box-shadow:0 8px 32px #2517201c}
 #navigation a,#navigation .nav-more{position:relative;display:flex;flex:1;min-width:0;min-height:60px;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:7px 1px;border-radius:19px;background:transparent;font-size:12px;font-weight:650;line-height:1.2;color:var(--muted);text-align:center}
 #navigation a svg,#navigation .nav-more svg{width:23px;height:23px;stroke-width:1.8}
 #navigation .nav-desktop-label,#navigation .counter,#navigation a.nav-overflow{display:none}
 #navigation .nav-mobile-label{display:block}
 #navigation a.active,#navigation .nav-more.active{background:var(--soft);color:var(--brand2)}
 #navigation a.active:before{display:none}
 main{padding:20px 20px 12px;max-width:760px;margin:auto}
 h1{font-size:30px;line-height:1.18;letter-spacing:-1.05px;font-weight:720;overflow-wrap:anywhere}
 h2,.panel-head h2{font-size:21px;line-height:1.3;letter-spacing:-.4px}
 h3{font-size:18px;line-height:1.4;letter-spacing:-.2px}
 h4{font-size:16px;line-height:1.45}
 .heading{display:block;margin-bottom:24px}
 .heading>.button-row{margin-top:20px;gap:10px;display:flex;flex-wrap:wrap}
 .heading .eyebrow{display:none}
 .heading p{font-size:15px;line-height:1.65;margin:12px 0 0;max-width:35em;color:var(--muted)}
 .heading .button-row .button:not(.primary){display:inline-flex}
 .heading .button-row .button.primary{flex:1}
 .button,.record-actions .button,.native-kanban .record-actions .button{min-height:50px;padding:13px 16px;font-size:15px;font-weight:650;line-height:1.35;gap:9px;white-space:normal;border-radius:var(--mobile-control-radius);justify-content:center;transition:background .18s ease,transform .18s ease,box-shadow .18s ease}
 .button{background:var(--panel);border:1px solid var(--line);color:var(--ink)}
 .button svg{width:20px;height:20px}
 .button.primary{color:var(--on-brand,#fff);background:var(--brand);border-color:transparent;box-shadow:0 6px 18px color-mix(in srgb,var(--brand)20%,transparent)}
 .button:hover{border-color:var(--brand)}
 .button:active,.residence-trigger:active,.menu-link:active{transform:scale(.985)}
 .button:disabled{opacity:.48;transform:none;box-shadow:none}
 .button.ghost{border:0;background:transparent;color:var(--brand2);padding:8px 0;min-height:44px}
 .button.danger{color:var(--red);background:color-mix(in srgb,var(--red)6%,var(--panel))}
 .button-row{gap:10px;flex-wrap:wrap}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px;min-height:52px;padding:13px 14px;border-radius:16px;background:var(--paper);border:1px solid var(--line);color:var(--ink);min-width:0;line-height:1.4}
 input[type=checkbox],input[type=radio]{accent-color:var(--brand)}
 input:focus,select:focus,textarea:focus{border-color:var(--brand)}
 .search-box{min-height:52px;padding:0 14px;border-radius:16px;background:var(--paper);min-width:0}
 .search-box input{background:none;border:0;padding:12px 0;font-size:16px}
 .search-box svg{width:20px;height:20px}
 .panel{border-radius:var(--mobile-radius);background:var(--panel);border:1px solid var(--line);box-shadow:var(--mobile-shadow);overflow:hidden}
 .panel-head{padding:22px;gap:14px;align-items:flex-start;flex-wrap:wrap}
 .panel-head p{font-size:14px;line-height:1.55;margin-top:8px}
 .panel-head .button{font-size:14px;min-height:48px}
 .residence-control{display:block;position:static;z-index:auto;margin:0 0 22px}
 .residence-context{margin:0 0 9px}
 .residence-context>.eyebrow{font-size:12px;letter-spacing:1.3px;color:var(--muted)}
 .residence-context>span:last-child:not(.eyebrow){display:none}
 .residence-picker{width:100%;min-width:0}
 .residence-trigger{min-height:84px;padding:15px;gap:14px;border-radius:22px;box-shadow:var(--mobile-shadow)}
 .residence-trigger img,.residence-trigger .residence-placeholder{width:50px;height:50px;border-radius:15px}
 .residence-trigger .residence-selected{gap:5px}
 .residence-trigger strong{font-size:16px;line-height:1.4;font-weight:700}
 .residence-trigger small{font-size:13px;line-height:1.4;color:var(--muted)}
 .residence-chevron{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--soft);font-size:22px;flex:none;color:var(--brand2)}
 .hero,.hero:has(.hero-residence){position:relative;display:block;min-height:188px;padding:26px;border-radius:26px;margin-bottom:24px;overflow:hidden;background:linear-gradient(135deg,color-mix(in srgb,var(--brand)55%,var(--hero-shade,#211724)),var(--brand)75%,color-mix(in srgb,var(--brand)90%,var(--on-brand,#fff)));color:var(--on-brand,#fff)}
 .hero-copy{position:relative;z-index:2;max-width:90%}
 .hero .eyebrow,.hero-copy>p{display:none}
 .hero h2,.hero:has(.hero-residence) h2{font-size:25px;line-height:1.25;letter-spacing:-.6px;color:inherit;margin:0 0 18px;max-width:260px}
 .hero .hero-link,.hero:has(.hero-residence) .hero-link{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:10px 14px;border:1px solid #ffffff3d;border-radius:14px;background:#ffffff17;color:inherit;font-size:14px;font-weight:600;margin:0}
 .hero .hero-residence,.hero:has(.hero-residence) .hero-residence{position:absolute;inset:0;margin:0;width:100%;height:100%;max-width:none;min-height:0;border:0;border-radius:0;opacity:.5}
 .hero-residence .hero-residence-photo{width:100%;height:100%;object-fit:cover}
 .hero-residence figcaption{display:none}
 .hero-art{display:block;position:absolute;right:-30px;bottom:-20px;width:175px;opacity:.5;pointer-events:none}
 .hero-art>span{display:none}
 .metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}
 .metric{padding:18px;border:1px solid var(--line);border-radius:22px;min-height:152px;background:var(--panel);box-shadow:var(--mobile-shadow);text-align:left}
 .metric-top{font-size:14px;line-height:1.45;font-weight:600;gap:8px;align-items:start}
 .metric-icon{width:28px;height:28px;border-radius:10px;flex:none;background:var(--soft);color:var(--brand2)}
 .metric-icon svg{width:17px;height:17px}
 .metric-value{font-size:34px;line-height:1.2;letter-spacing:-1px;margin:10px 0 6px;font-weight:720}
 .metric-note{display:block;font-size:12px;line-height:1.5;color:var(--muted)}
 .grid-main,.right-stack,.detail-grid,.client-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px}
 .grid-main>.right-stack{display:grid;grid-template-columns:minmax(0,1fr)}
 body[data-audience="staff"]:not([data-page="dashboard"]) .metrics,body[data-audience="staff"]:not([data-page="dashboard"]) .hero{display:none}
 .toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:18px;gap:10px;flex-wrap:wrap}
 .toolbar .search-box{grid-column:1/-1;width:100%;min-width:0}
 .toolbar>button[type=submit]{grid-column:2;grid-row:2}
 .toolbar>select{grid-column:1;grid-row:2;width:100%;min-width:0;max-width:100%;font-size:15px}
 .toolbar .view-switch{grid-column:1/-1;display:flex;width:100%;min-height:52px;border-radius:16px;background:var(--paper);padding:4px;gap:6px}
 .view-switch button{min-height:44px;flex:1;width:auto;border-radius:13px;font-size:14px;display:flex;align-items:center;justify-content:center;gap:8px;background:none;color:var(--muted)}
 .view-switch button.active{background:var(--panel);color:var(--ink);box-shadow:0 2px 8px #2517200a}
 .view-switch button[data-view=list]:after{content:'Liste'}
 .view-switch button[data-view=kanban]:after{content:'Par étapes'}
 .workflow-chips{display:none}
 .mobile-stage-filter{display:grid;gap:8px;padding:0 18px 18px;border-bottom:1px solid var(--line)}
 .mobile-stage-filter label{font-size:14px;font-weight:600}
 .mobile-stage-filter select{font-size:16px;width:100%}
 .table-wrap{padding:16px;overflow:visible}
 .table-wrap table{display:block;min-width:0;width:100%}
 .table-wrap thead{display:none}
 .table-wrap tbody{display:grid;gap:16px}
 .table-wrap tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;padding:18px;background:var(--paper);border:1px solid var(--line);border-radius:22px}
 .table-wrap td{padding:0;border:0;min-width:0;font-size:15px;line-height:1.5}
 .table-wrap td:first-child{grid-column:1/-1}
 .record-button{font-size:16px;text-align:left;background:none;color:var(--ink);padding:0}
 .record-button .ref,.ref{font-size:12px;color:var(--muted);font-weight:600;line-height:1.5}
 .table-wrap .record-button{min-height:48px;width:100%}
 .table-wrap .record-button strong,.native-kanban .record-button strong{font-size:18px;line-height:1.4;font-weight:700;letter-spacing:-.25px;white-space:normal;overflow-wrap:anywhere;margin:8px 0}
 .table-wrap .record-button small{display:block;font-size:13px;line-height:1.5}
 .table-wrap td strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere}
 .table-wrap td small{display:block;font-size:13px;line-height:1.5;color:var(--muted);margin-top:5px}
 .table-wrap td:nth-child(2){grid-column:1/-1}
 .table-wrap td:nth-child(2):before,.table-wrap td:nth-child(4):before,.table-wrap td:nth-child(5):before{display:block;font-size:11px;font-weight:650;letter-spacing:1px;color:var(--muted);margin-bottom:5px}
 .table-wrap td:nth-child(2):before{content:'CLIENT · LOGEMENT'}
 .table-wrap td:nth-child(4){display:block}
 .table-wrap td:nth-child(4):before{content:'PRIORITÉ'}
 .table-wrap td:nth-child(5):before{content:'ÉCHÉANCE'}
 .table-wrap td:last-child{grid-column:1/-1;min-width:0;border-top:1px solid var(--line);padding-top:15px}
 .assignee{max-width:none;font-size:14px;line-height:1.5;margin-bottom:14px}
 .assignee .avatar{width:34px;height:34px;font-size:12px}
 .record-actions,.native-kanban .record-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
 .record-actions .button,.native-kanban .record-actions .button{flex-direction:column;gap:7px;padding:11px 4px;font-size:13px;min-height:68px;border-radius:15px;background:var(--panel)}
 .record-actions .button:first-child{background:var(--soft);color:var(--brand2);border-color:transparent}
 .record-actions .button svg{width:20px;height:20px}
 .badge,.table-wrap td .badge,.native-kanban .badge{display:inline-flex;align-items:center;max-width:100%;font-size:13px;line-height:1.5;font-weight:650;padding:7px 11px;border-radius:12px;white-space:normal;overflow-wrap:anywhere}
 .count-pill{font-size:13px;border-radius:10px;padding:4px 8px}
 .table-footer{display:grid;gap:14px;padding:18px;font-size:14px}
 .table-footer>.button-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .kanban-workflows{padding:16px}
 .native-kanban{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;overflow:visible;background:none;padding:0}
 .native-kanban .kanban-col{border-radius:22px;background:var(--paper);border:1px solid var(--line);min-width:0}
 .kanban-workflow-head{gap:12px;flex-wrap:wrap;padding:8px 0 16px}
 .kanban-workflow-head h3{font-size:18px}
 .kanban-workflow-head>span,.workflow-source{font-size:12px;line-height:1.5}
 .kanban-column-head{padding:17px}
 .kanban-column-head h4{font-size:16px;line-height:1.5}
 .kanban-column-body{padding:0 12px 12px}
 .native-kanban .kanban-card{border-radius:18px;padding:18px;border-color:var(--line);background:var(--panel);margin-bottom:12px}
 .native-kanban .kanban-card p{font-size:14px;line-height:1.6;margin:10px 0 14px}
 .kanban-empty{font-size:14px;padding:18px;line-height:1.5}
 .detail-back{margin-bottom:12px}
 .detail-summary{padding:22px}
 .detail-summary h2{font-size:23px;line-height:1.3;margin:16px 0;overflow-wrap:anywhere}
 .detail-summary>.pre-line,.staff-content p,.detail-meta strong{font-size:15px;line-height:1.65}
 .detail-meta{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin:22px 0 0}
 .detail-meta small{display:block;font-size:12px;line-height:1.5;margin-bottom:5px;color:var(--muted)}
 .detail-meta strong{font-weight:600;overflow-wrap:anywhere}
 .dossier-actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0 0}
 .dossier-actions .button{flex:1 1 150px}
 .staff-content{padding:22px;font-size:15px;line-height:1.65}
 .staff-content label{font-size:14px;font-weight:600}
 .staff-content select{width:100%;margin:9px 0 12px;font-size:16px}
 .staff-content .form-help,.form-help{font-size:13px;line-height:1.6}
 .pending-list,.intervention-list{padding:0 22px}
 .pending-list article,.intervention-list article{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:22px 0}
 .pending-list h3,.intervention-list h3{font-size:18px;line-height:1.4;margin:8px 0}
 .pending-list p,.intervention-list p{font-size:14px;line-height:1.6}
 .pending-list article>.button-row,.intervention-list article>.button-row{display:flex;width:100%}
 .pending-list article>.button-row .button,.intervention-list article>.button-row .button{flex:1}
 .resolution-notice{padding:18px;margin:0 22px 22px;border-radius:18px;font-size:15px;line-height:1.6}
 .resolution-notice p{font-size:14px;line-height:1.65}
 .resolution-disputed{border-left-width:4px}
 .review-summary{margin-top:24px;padding-top:22px}
 .review-summary h3{font-size:18px}
 .review-summary strong{font-size:24px;line-height:1.4;color:var(--brand2)}
 .review-summary p{font-size:15px}
 .review-summary small{font-size:13px}
 .activity-list{padding:0 22px 16px}
 .activity{gap:13px;padding:16px 0;font-size:15px}
 .activity p{font-size:15px;line-height:1.65;margin:0 0 7px;overflow-wrap:anywhere}
 .activity small{font-size:12px;line-height:1.5;color:var(--muted)}
 .activity-dot{width:30px;height:30px;border-radius:50%;flex:none}
 .activity-dot svg{width:16px;height:16px}
 .activity-list .record-button{font-size:16px;line-height:1.5}
 .next-visit{padding:22px}
 .next-visit h3{font-size:18px;line-height:1.4}
 .next-visit p,.next-visit .visit-address,.side-empty{font-size:14px;line-height:1.6}
 .section-label{font-size:12px;letter-spacing:1.2px;line-height:1.5}
 .progress-panel{padding:22px}
 .progress-panel p,.progress-total span{font-size:14px;line-height:1.6}
 .staff-calendar{display:grid;grid-template-columns:minmax(0,1fr);padding:16px;gap:14px}
 .staff-day{min-height:110px;padding:18px;border-radius:20px;background:var(--paper)}
 .staff-day h3{font-size:16px;font-weight:700;margin:0 0 14px;text-transform:capitalize}
 .staff-day .kanban-card{border-radius:16px;background:var(--panel);padding:16px;font-size:15px}
 .staff-day .kanban-card strong{font-size:16px;line-height:1.45}
 .staff-day .kanban-card p{font-size:14px;line-height:1.6}
 .staff-day .form-help{margin:0;font-size:14px}
 .calendar-head{padding:20px;gap:14px}
 .brand-control{display:grid;gap:8px;margin-bottom:20px}
 .brand-control label{font-size:14px;font-weight:600;color:var(--muted)}
 .brand-control select{width:100%;max-width:none;font-size:16px}
 .client-home{display:none}
 .client-new-action .button{width:100%;font-size:16px;min-height:54px}
 .client-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}
 .chip,.client-filters .chip{font-size:13px;min-height:44px;padding:10px 13px;border-radius:14px;line-height:1.4}
 .client-filters .chip.active{background:var(--soft);color:var(--brand2);border-color:var(--brand)}
 .client-cards{gap:22px}
 .client-card{padding:22px}
 .client-card-head{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
 .client-card small{font-size:12px;line-height:1.6}
 .client-card h3{font-size:21px;line-height:1.35;font-weight:700;margin:16px 0 12px;letter-spacing:-.4px}
 .client-card p,.client-card .pre-line{font-size:15px;line-height:1.7}
 .client-stage-list{display:flex;flex-wrap:wrap;gap:7px;margin:20px 0}
 .client-stage-list span{font-size:12px;line-height:1.5;padding:7px 10px;border-radius:11px;border:1px solid var(--line);background:var(--paper)}
 .client-stage-list .current{color:var(--brand2);background:var(--soft);border-color:var(--brand);font-weight:700}
 .proof,.client-card .proof{font-size:14px;line-height:1.7;padding:16px;border-radius:16px;margin-top:18px;background:var(--paper);color:var(--muted)}
 .client-interventions{margin-top:22px}
 .client-interventions h4,.client-intervention h4{font-size:17px;line-height:1.4}
 .client-intervention{padding:18px;margin-top:14px;border-radius:18px;border:1px solid var(--line);background:var(--paper)}
 .client-intervention p,.client-intervention small{font-size:14px;line-height:1.6}
 .client-resolution{padding:18px;margin:20px 0;border-radius:18px;background:var(--soft)}
 .client-resolution h4{font-size:18px;line-height:1.4;margin:0 0 10px}
 .client-resolution p{font-size:14px;line-height:1.65}
 .client-resolution .button-row{display:flex;flex-direction:column}
 .client-resolution .button{width:100%}
 .client-card .activity-list{padding:0}
 .client-message-link{display:flex;flex-direction:column;gap:10px;margin-top:18px}
 .client-message-link .button{width:100%;font-size:14px}
 .client-empty{padding:28px}
 .client-empty h3{font-size:21px}
 .client-empty p{font-size:15px;line-height:1.7}
 .supplier-list{padding:16px;gap:16px}
 .supplier-card{padding:20px;border-radius:22px;background:var(--paper)}
 .supplier-card-head{display:flex;flex-direction:column;gap:14px;align-items:stretch}
 .supplier-card h3{font-size:19px;line-height:1.4}
 .supplier-card p{font-size:14px;line-height:1.6;margin:9px 0}
 .supplier-card h4{font-size:14px;margin:22px 0 12px;font-weight:650}
 .supplier-technicians>div{padding:15px;border-radius:16px;background:var(--panel);font-size:15px;line-height:1.5}
 .supplier-technicians span{font-size:13px;line-height:1.5}
 .supplier-search{gap:10px}
 .supplier-task-fields{padding:18px;border-radius:20px;margin:20px 0}
 .assignment-row{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:20px 0}
 .assignment-row strong{font-size:16px;line-height:1.5}
 .assignment-row small{font-size:13px;line-height:1.5}
 .assignment-row select{font-size:16px;width:100%}
 .assignment-row button{grid-column:auto;width:100%}
 footer{font-size:12px;line-height:1.6;padding:24px 20px;color:var(--muted)}
 .toast{bottom:calc(108px + env(safe-area-inset-bottom));font-size:14px;line-height:1.5;border-radius:16px;padding:14px 18px;max-width:calc(100% - 32px);z-index:60}
 dialog{padding:0;width:calc(100% - 16px);max-width:680px;max-height:calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));margin:auto;border-radius:26px;border:1px solid var(--line);background:var(--panel);color:var(--ink);overflow:hidden;box-shadow:0 24px 100px #0004}
 dialog::backdrop{background:#20151c75;backdrop-filter:blur(5px)}
 #dialog-content{display:flex;flex-direction:column;max-height:inherit}
 #dialog-content>form{display:flex;flex-direction:column;min-height:0;overflow:hidden;flex:1}
 .dialog-head{position:relative;display:flex;align-items:flex-start;gap:15px;padding:24px 22px 20px;flex:none;border-bottom:1px solid var(--line);background:var(--panel)}
 .dialog-head>div{min-width:0;flex:1}
 .dialog-head h2{font-size:23px;line-height:1.3;letter-spacing:-.5px}
 .dialog-head p{font-size:14px;line-height:1.6;margin:8px 0 0;color:var(--muted)}
 .dialog-head .icon-button{width:44px;height:44px;flex:none;background:var(--soft)}
 .dialog-body{padding:22px;overflow-y:auto;min-height:0;flex:1;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch}
 .dialog-body label{font-size:14px;line-height:1.5;font-weight:650;margin:0 0 9px}
 .dialog-body input:not([type=checkbox]):not([type=radio]),.dialog-body select,.dialog-body textarea{font-size:16px;min-height:54px;border-radius:16px;padding:14px;width:100%;background:var(--paper)}
 .dialog-body textarea{min-height:125px;line-height:1.6;resize:vertical}
 .dialog-body input[type=file]{font-size:14px!important;min-height:52px;padding:10px 6px}
 .fields{grid-template-columns:minmax(0,1fr);gap:18px;margin-bottom:20px}
 .field{margin-bottom:20px}
 .dialog-footer{display:flex;flex:none;justify-content:flex-end;gap:10px;padding:16px 22px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--panel);position:relative}
 .dialog-footer>.button{flex:1;min-height:52px;font-size:15px}
 .dialog-footer>.button.primary{flex:1.5}
 .people-checks{padding:14px;border-radius:20px;border-color:var(--line);margin:0 0 22px}
 .people-checks legend{font-size:14px;font-weight:650;padding:0 7px}
 .dialog-body .people-checks label{display:flex;align-items:center;gap:13px;padding:13px 12px;min-height:54px;border-radius:14px;font-size:15px;line-height:1.5;margin:0 0 4px}
 .dialog-body .people-checks input{width:22px;height:22px;min-height:22px;flex:none;margin:0}
 .confirm-check,.checkbox-line{font-size:15px!important;line-height:1.6;gap:12px;align-items:start}
 .confirm-check input,.checkbox-line input{width:22px;height:22px;flex:none;min-height:22px}
 .auth-error{font-size:14px;line-height:1.6;border-radius:15px;padding:15px;margin:16px 0 0}
 #dialog[data-sheet]{margin:auto auto calc(8px + env(safe-area-inset-bottom));width:calc(100% - 16px);border-radius:28px;max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
 #dialog[data-sheet="residences"]{height:min(78dvh,740px)}
 #dialog[data-sheet] .dialog-head{padding:24px 22px 19px}
 #dialog[data-sheet] .sheet-body{padding:18px 18px 22px}
 #dialog .residence-option{min-height:82px;padding:13px;border-radius:19px;gap:13px;background:var(--paper);border-color:transparent}
 #dialog .residence-option[aria-pressed=true]{background:var(--soft);border-color:var(--brand)}
 #dialog .residence-option strong{font-size:16px}
 #dialog .residence-option small{font-size:13px}
 #dialog .residence-empty{font-size:15px;line-height:1.6;padding:22px}
 #dialog .menu-link{margin-bottom:12px;min-height:88px}
 .photo-thumb{padding:10px;border-radius:18px;background:var(--paper)}
 .photo-thumb span{font-size:13px;line-height:1.5}
 .photo-thumb img{border-radius:12px;max-width:100%}
 .photo-view{padding:18px}
 .photo-view img{max-height:65dvh;border-radius:15px}
 .review-score label{border-radius:14px;font-size:16px;min-height:50px}
 #auth.auth-screen{display:flex;flex-direction:column;min-height:100svh;background:var(--paper)}
 #auth .auth-story{padding:26px 24px 24px;border-radius:0 0 30px 30px;min-height:0}
 #auth .auth-story-copy,#auth .sav-signature,#auth .auth-building{display:none}
 #auth .auth-wordmark{min-height:32px;gap:12px}
 #auth .auth-wordmark strong{font-size:19px;font-weight:650}
 #auth .auth-wordmark small{font-size:10px;line-height:1.5;letter-spacing:1.5px;margin-top:7px}
 #auth .auth-side{padding:22px 24px 28px}
 #auth .auth-tools{font-size:11px;letter-spacing:1px}
 #auth .auth-form-wrap{padding:24px 0 28px;max-width:440px;margin:0 auto}
 #auth .auth-kicker{font-size:11px;letter-spacing:1.5px;line-height:1.5}
 #auth h2{font-size:33px;line-height:1.15;letter-spacing:-1px;margin:15px 0}
 #auth .auth-intro{font-size:15px;line-height:1.7;margin:0 0 28px}
 #auth .auth-intro br{display:none}
 #auth label{font-size:14px;line-height:1.5}
 #auth .auth-input{height:58px;min-height:58px;padding:0 16px;margin-top:10px;border-radius:17px;background:var(--field)}
 #auth .auth-input input,#auth input,#auth #reset-form>input{font-size:16px;min-height:52px;line-height:1.5;border:0;background:none;padding:0;color:var(--ink)}
 #auth #reset-form>input{border:1px solid var(--line);border-radius:17px;height:58px;padding:0 16px;background:var(--field);margin-top:10px}
 #auth .auth-label-row{margin-top:24px;gap:12px;align-items:center}
 #auth .auth-text-link{min-height:44px;font-size:13px;line-height:1.4;padding:7px 0}
 #auth #show-password{min-width:44px;min-height:44px;flex:none}
 #auth .auth-submit{margin-top:26px;min-height:56px;font-size:16px!important;border-radius:17px!important;padding:0 19px!important}
 #auth .auth-help{font-size:12px!important;line-height:1.7;margin-top:19px}
 #auth .auth-tools .icon-button{width:46px;height:46px;min-width:46px;min-height:46px}
 #auth .auth-reassurance{padding-top:22px;gap:12px;margin-top:0}
 #auth .auth-reassurance strong,#auth .auth-reassurance a{font-size:13px;line-height:1.6}
 #auth .auth-reassurance a{margin-top:3px}
 #auth .auth-footer{font-size:10px;line-height:1.5;gap:12px;margin-top:22px}
 #auth .auth-error{font-size:14px;line-height:1.6;padding:15px;border-radius:15px}
 #auth .auth-group-band{padding:25px 20px;gap:18px;background:var(--panel);border-radius:28px 28px 0 0;border:0;flex-wrap:wrap}
 #auth .sav-group-title{flex-basis:100%;text-align:center;border:0;padding:0}
 #auth .sav-group-title small{font-size:10px;letter-spacing:1.4px}
 #auth .sav-group-title p{font-size:18px;line-height:1.5;margin-top:8px}
 #auth .sav-logo-window{flex-basis:calc(100% - 60px)}
 #auth .sav-logo-pause{width:44px;height:44px;min-width:44px;min-height:44px}
 #auth .sav-logo img{max-width:140px;max-height:54px}
}
@media(max-width:360px){
 main{padding:18px 16px 12px}
 .sidebar{padding:18px 16px 7px}
 .topbar{padding:0 16px 7px}
 h1{font-size:28px}
 #navigation{inset:auto 8px calc(8px + env(safe-area-inset-bottom));padding:6px;border-radius:23px}
 #navigation a,#navigation .nav-more{min-height:59px;font-size:11px;border-radius:17px}
 .metric{padding:16px;min-height:148px}
 .metric-top{font-size:13px}
 .metric-icon{display:none}
 .panel-head,.detail-summary,.staff-content,.client-card{padding:20px}
 .table-wrap{padding:12px}
 .table-wrap tr{padding:16px}
 .record-actions .button,.native-kanban .record-actions .button{font-size:12px;min-height:66px;padding:10px 2px}
 #auth .auth-side{padding:20px}
 #auth .auth-story{padding:24px 20px}
 #auth h2{font-size:30px}
 .dialog-head{padding:22px 18px 18px}
 .dialog-body{padding:20px 18px}
 .dialog-footer{padding:14px 18px calc(14px + env(safe-area-inset-bottom))}
 #dialog .residence-option{gap:10px;padding:11px}
 #dialog .residence-option img,#dialog .residence-placeholder{width:44px;height:48px}
}
@media(max-height:500px) and (max-width:1200px){
 #dialog[data-sheet="residences"]{height:calc(100dvh - 20px)}
 .dialog-head,#dialog[data-sheet] .dialog-head{padding:16px 18px 14px}
 .dialog-head h2{font-size:20px}
 .dialog-head p{font-size:13px;margin-top:5px}
 .dialog-body,#dialog[data-sheet] .sheet-body{padding:14px 16px}
 .dialog-footer{padding:12px 16px}
}
@media(prefers-reduced-motion:reduce){
 *,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
@media(max-width:1200px){
 .heading .button-row .button{font-size:15px;min-height:52px;padding:13px 16px}
 .heading>.button-row{border:0;padding-top:0}
}
@media(max-width:1200px){
 [data-theme="dark"] #navigation a.active,[data-theme="dark"] #navigation .nav-more.active,[data-theme="dark"] .button.ghost,[data-theme="dark"] .back-link,[data-theme="dark"] .residence-placeholder,[data-theme="dark"] .menu-link>svg:first-child{color:color-mix(in srgb,var(--brand)35%,#fff)}
 [data-theme="dark"] .source-tabs .active,[data-theme="dark"] .filter-tabs .active,[data-theme="dark"] .filter-chip.active,[data-theme="dark"] .pill{color:color-mix(in srgb,var(--brand)25%,#fff)}
 [data-theme="dark"] #dialog .residence-option>svg{color:color-mix(in srgb,var(--brand)30%,#fff)}
}

/* Company identity owns action colours; dark mode only adjusts text contrast. */
:root{--brand-accent:var(--brand2)}
[data-theme="dark"]{--brand-accent:color-mix(in srgb,var(--brand)45%,#fff)}
[data-theme="dark"] .button.primary{background:var(--brand);color:var(--on-brand,#fff);border-color:transparent}
[data-theme="dark"] nav a.active,[data-theme="dark"] nav a:hover,[data-theme="dark"] .button.ghost,[data-theme="dark"] .chip.active,[data-theme="dark"] .eyebrow,[data-theme="dark"] .metric-icon,[data-theme="dark"] .badge.open,[data-theme="dark"] .badge.new,[data-theme="dark"] .record-actions .button:first-child,[data-theme="dark"] .residence-option>svg{color:var(--brand-accent)}
[data-theme="dark"] nav a.active,[data-theme="dark"] .chip.active,[data-theme="dark"] .record-actions .button:first-child{background:color-mix(in srgb,var(--brand)14%,var(--panel))}

/* A centred icon has no text baseline to overflow its circular container. */
.residence-trigger .residence-chevron{display:grid;place-items:center;flex:none;line-height:1;padding:0;overflow:hidden}
.residence-trigger .residence-chevron svg{display:block;width:18px;height:18px;flex:none}

/* The client residence image comes from their authorized Odoo projects. */
body[data-audience="client"] #project-art:has(.client-residence-photo){opacity:1;margin:12px 0}
.client-residence-photo{display:block;width:100%;height:120px;object-fit:cover;border-radius:10px}
.client-home>.client-residence-photo{height:160px}
.client-residence-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.client-residence-gallery figure{margin:0;min-width:0}
.client-residence-gallery .client-residence-photo{height:76px;border-radius:8px}
.client-residence-gallery figcaption{font-size:11px;line-height:1.4;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}

/* Tablet landscape uses the same accessible navigation and dossier cards. */
@media(min-width:700px) and (max-width:1200px){
 main{max-width:1000px;padding:28px 28px 20px}
 #navigation{max-width:960px;margin-inline:auto}
 .staff-calendar{grid-template-columns:repeat(2,minmax(0,1fr))}
 .staff-day{min-width:0}
 .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fields>.field{min-width:0}
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .client-property h2{font-size:22px;line-height:1.4}
 .client-property-facts dd{font-size:15px}
 .client-property-spaces summary{font-size:16px}
 .client-property-spaces dl>div{font-size:15px}
}
@media(min-width:1000px) and (max-width:1200px){
 .metrics{grid-template-columns:repeat(4,minmax(0,1fr))}
 .client-layout{grid-template-columns:minmax(0,300px) minmax(0,1fr);align-items:start}
}
/* Long names and contact details must never push adjacent actions out. */
#workspace main :is(.panel-head>div,.supplier-card-head>div,.supplier-technicians>div,.client-intervention,.pending-list article>div,.detail-meta>div),#dialog :is(.field,.fields>div){min-width:0}
#workspace :is(.supplier-card p,.supplier-technicians span,.client-intervention p,.client-card p,.client-card small,.client-property-spaces dt){overflow-wrap:anywhere}
@media(max-width:1200px){
 .client-property-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
 .client-property-facts>div{min-width:0}
 .client-property-facts dd{overflow-wrap:anywhere}
 .dialog-footer>.button{min-width:0;white-space:normal;overflow-wrap:anywhere}
 .dialog-head h2{overflow-wrap:anywhere}
}

/* A compound search field owns one focus frame, including its icon. */
:is(#workspace,#dialog) :is(.search-box,.client-lot-search){display:flex;align-items:center;gap:10px;min-width:0;padding:0 14px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
:is(#workspace,#dialog) :is(.search-box,.client-lot-search)>svg{position:static;display:block;flex:0 0 20px;width:20px;height:20px;margin:0;transform:none}
:is(#workspace,#dialog) :is(.search-box,.client-lot-search)>input{flex:1 1 0;width:0;min-width:0;min-height:52px;height:auto;margin:0;padding:12px 0;border:0;border-radius:0;outline:none;box-shadow:none;background:transparent;color:var(--ink);font-size:16px;line-height:1.4}
:is(#workspace,#dialog) :is(.search-box,.client-lot-search):focus-within{border-color:var(--brand-accent,var(--brand));box-shadow:inset 0 0 0 1px var(--brand-accent,var(--brand))}
:is(#workspace,#dialog) select:focus-visible,:is(#workspace,#dialog) :is(.client-lot-trigger,.residence-trigger):focus-visible{outline:none;border-color:var(--brand-accent,var(--brand));box-shadow:inset 0 0 0 2px var(--brand-accent,var(--brand))}

/* Dossier actions follow the available card width, including portrait tablets. */
.detail-summary{container-type:inline-size;container-name:care-summary}
.detail-summary>.dossier-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0 0;align-items:stretch}
.detail-summary>.dossier-actions .button{width:100%;min-width:0;min-height:54px;height:auto;margin:0;padding:14px 16px;font-size:15px;line-height:1.45;white-space:normal;overflow-wrap:anywhere;gap:10px;border-radius:16px;justify-content:center}
.detail-summary>.dossier-actions .button svg{width:20px;height:20px;flex:none}
.detail-summary>.dossier-actions .button:only-child{grid-column:1/-1}
.detail-summary>.resolution-notice{margin:20px 0 0;padding:18px 20px;border-radius:16px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.detail-summary>.resolution-notice strong{display:block;font-size:14px;line-height:1.6}
.detail-summary>.resolution-notice p{margin:10px 0 0;font-size:14px;line-height:1.65}
@container care-summary (max-width:720px){
 .detail-summary>.dossier-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
 .detail-summary>.dossier-actions>.button:first-child{grid-column:1/-1}
}
@container care-summary (max-width:420px){
 .detail-summary>.dossier-actions{grid-template-columns:minmax(0,1fr)}
 .detail-summary>.dossier-actions>.button:first-child{grid-column:auto}
}

/* Keep the stage arrow centred inside the field, away from its rounded edge. */
.staff-stage-select{position:relative;min-width:0;width:100%;margin:9px 0 14px}
#workspace .staff-stage-select select{appearance:none;-webkit-appearance:none;display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:54px;margin:0;padding:14px 48px 14px 16px;border-radius:16px;font-size:16px;line-height:1.4}
.staff-stage-select>.staff-stage-chevron{position:absolute;inset-inline-end:16px;top:50%;transform:translateY(-50%);display:block;width:20px;height:20px;pointer-events:none;color:var(--muted);fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.staff-stage-select:has(select:disabled)>.staff-stage-chevron{opacity:.45}

/* Capture and gallery share the same request photo draft. */
.request-photos-label{display:block;font-size:14px;font-weight:650;line-height:1.5;margin:0 0 12px}
.request-photo-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.request-photo-actions .button{min-width:0;min-height:54px;padding:14px 16px;font-size:15px;line-height:1.4;white-space:normal;gap:10px;border-radius:16px}
.request-photo-actions .button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.request-photo-actions .request-camera-button{display:none}
@media(max-width:1200px),(pointer:coarse){.request-photo-actions .request-camera-button{display:inline-flex}.request-photo-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.request-photo-actions{grid-template-columns:minmax(0,1fr)}}
.request-photo-status{font-size:14px;line-height:1.5;color:var(--muted);margin:14px 0 12px}
.request-photo-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.request-photo-list:empty{display:none}
.request-photo-item{position:relative;min-width:0;margin:0;padding:6px;border:1px solid var(--line);border-radius:16px;background:var(--paper)}
.request-photo-item img{display:block;width:100%;height:120px;object-fit:cover;border-radius:11px}
.request-photo-item figcaption{font-size:12px;line-height:1.5;margin:8px 4px 4px;overflow-wrap:anywhere}
.request-photo-remove{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:var(--panel);color:var(--ink);box-shadow:0 3px 12px #0002;cursor:pointer}
.request-photo-remove svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2}
.request-photo-remove:disabled{opacity:.5;cursor:default}
@media(max-width:420px){.request-photo-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
