:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f3f7f6;color:#243f44;--teal:#075b62;--line:#d5e3e1;--muted:#60797c}*{box-sizing:border-box}body{margin:0}header{height:79px;background:white;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between}.brand{color:var(--teal);text-decoration:none;font-weight:850;font-size:25px;letter-spacing:-1px}.brand>span{color:#639c8d}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:3px;color:var(--muted)}main{max-width:1000px;margin:auto;padding:32px 24px 60px}button,input,a.button{font:inherit}button,.button{border:1px solid transparent;border-radius:12px;background:var(--teal);color:white;font-weight:650;min-height:49px;padding:13px 19px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;touch-action:manipulation}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus{outline:3px solid #88bcb1;outline-offset:3px}.secondary{background:white;color:var(--teal);border-color:var(--line)}.text{background:none;color:var(--teal);padding:9px 12px;font-size:13px}.login{max-width:410px;margin:9vh auto 0}.login .card{padding:32px}.eyebrow{color:var(--teal);font-size:11px;font-weight:750;letter-spacing:1.6px}.login h1{font-size:29px;margin:14px 0 9px;letter-spacing:-.6px}p{line-height:1.6}.muted,small{color:var(--muted)}.login p{font-size:14px;color:var(--muted)}.card{background:white;border:1px solid var(--line);border-radius:18px;padding:23px;margin:18px 0}.field{display:grid;gap:9px;margin:24px 0 18px;font-size:14px;font-weight:600}.field input{min-height:54px;width:100%;border:1px solid #b8ccca;border-radius:10px;padding:12px 15px;font-size:22px;letter-spacing:5px;text-align:center;color:var(--teal)}.full{width:100%}.lock{width:54px;height:54px;background:#eaf4f0;border-radius:15px;display:grid;place-items:center;color:var(--teal)}svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.6}.error{background:#fff0ed;color:#a13a2c;padding:12px;border-radius:9px;font-size:14px;margin:12px 0}.test{font-size:11px;color:var(--muted);text-align:center;margin-top:20px}.profiles{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:25px}.profile{background:white;border:1px solid var(--line);color:var(--teal);padding:23px;display:flex;flex-direction:column;gap:12px}.avatar{width:48px;height:48px;border-radius:50%;background:#e6f1ec;display:grid;place-items:center;font-size:18px;color:#256e63;flex:none}.profile small{font-weight:400;font-size:11px}.pagehead{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:27px}.pagehead h1{font-size:30px;margin:7px 0;letter-spacing:-.6px}.identity{display:flex;gap:13px;align-items:center}.identity strong{display:block;font-size:16px}.identity small{font-size:12px}.datebar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0}.datebar input{border:1px solid var(--line);border-radius:10px;padding:12px;background:white;font-size:16px;min-width:0;color:var(--teal)}.datebar button{padding:10px 14px;min-width:46px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-top:25px}.section-title h2{font-size:18px;margin:0}.section-title small{font-size:12px}.visit{display:grid;grid-template-columns:78px minmax(0,1fr) auto;gap:18px;align-items:start}.visit .time{font-size:23px;font-weight:750;letter-spacing:-.7px}.visit .time small{display:block;font-size:11px;letter-spacing:0;font-weight:400;margin-top:5px}.visit h3{font-size:20px;margin:10px 0 6px;overflow-wrap:anywhere}.visit .city{font-size:17px;color:var(--teal);font-weight:650;margin:0 0 5px}.visit .address{font-size:13px;color:var(--muted);margin:0;line-height:1.6}.tags{display:flex;flex-wrap:wrap;gap:6px}.tag{display:inline-block;background:#edf5f1;color:#2c6c5f;padding:5px 8px;border-radius:5px;font-size:11px}.tag.blue{background:#edf3f8;color:#476a87}.tag.gray{background:#f0f3f3;color:#617679}.visit .open{align-self:center}.empty{padding:28px 20px;text-align:center}.empty h2{font-size:19px}.empty p{font-size:14px;color:var(--muted)}.loading{padding:55px 12px;text-align:center;color:var(--muted)}.detail-title h1{margin:8px 0;font-size:29px}.detail-title .city{font-size:18px}.detail-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.detail-actions a{flex:1}.request{white-space:pre-wrap;font-size:15px;line-height:1.8;overflow-wrap:anywhere}.documents{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.document{display:flex;flex-direction:column;text-decoration:none;color:var(--teal);border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#f7faf8}.document img{width:100%;height:130px;object-fit:cover}.document .pdf{height:100px;display:grid;place-items:center;background:#e8f1ee;font-weight:750;font-size:23px}.document span:last-child{font-size:12px;padding:12px;overflow-wrap:anywhere}.back{margin-left:-12px;margin-bottom:10px}#message{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#193e42;color:white;border-radius:9px;padding:14px;max-width:90%;font-size:13px}.note{font-size:12px;line-height:1.7;color:var(--muted)}[hidden]{display:none!important}
@media(max-width:650px){header{height:67px;padding:0 18px}.brand{font-size:22px}main{padding:24px 16px 40px}.login{margin:5vh auto 0}.login .card{padding:25px}.profiles{grid-template-columns:1fr 1fr;gap:10px}.profile{padding:18px 9px;font-size:13px}.pagehead{align-items:flex-start}.pagehead h1{font-size:26px}.identity .avatar{width:39px;height:39px;font-size:15px}.identity strong{font-size:14px}.identity small{font-size:10px}.card{padding:19px 16px;border-radius:14px}.visit{grid-template-columns:55px minmax(0,1fr);gap:12px}.visit .time{font-size:21px}.visit h3{font-size:18px}.visit .open{grid-column:2;width:100%;min-height:45px;margin-top:5px}.visit .city{font-size:16px}.datebar{gap:6px}.datebar input{width:152px;font-size:14px}.datebar button{padding:10px;min-width:42px}.datebar .today{font-size:12px}.documents{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-title h1{font-size:25px}.section-title small{font-size:10px}}
.pv-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.pv-page{width:100%;height:auto;margin-top:16px}.pv-layout fieldset{border:1px solid #b8d0d0;border-radius:12px;margin:18px 0;padding:14px}.pv-layout fieldset label{display:flex;align-items:center;gap:12px;min-height:52px}.pv-layout input[type=radio],.pv-layout input[type=checkbox]{width:22px;height:22px;flex-shrink:0}.pv-layout textarea,#pv-report{width:100%;box-sizing:border-box;font:inherit;padding:12px;border:1px solid #9ab7bb;border-radius:10px}.pv-confirm{display:flex;align-items:center;gap:12px;margin:20px 0}#pv-sign{width:100%;height:140px;background:white;border:2px dashed #7a9fa3;border-radius:12px;touch-action:none}#pv-result{color:#176341;font-weight:600}@media(max-width:760px){.pv-layout{grid-template-columns:1fr}.pv-document{max-height:440px;overflow:auto}.pv-layout .card{padding:18px}}
.visit-actions{display:flex;flex-direction:column;gap:8px;align-self:center}.visit-actions .open{min-height:48px;text-align:center}.visit-actions .text{font-size:12px}@media(max-width:650px){.visit-actions{grid-column:2}.visit .visit-actions .open{margin:0}}
.profile.universe-profile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:16px;min-height:140px}.universe-profile img{display:block;width:150px;max-width:100%;height:90px;object-fit:contain}.universe-profile span{font-weight:700}@media(max-width:600px){.profile.universe-profile{min-height:116px;padding:12px}.universe-profile img{width:120px;height:70px}}
.portal-nav{display:flex;gap:4px;overflow:auto;margin:-8px 0 24px;padding:4px 0;border-bottom:1px solid var(--line)}.portal-nav button{white-space:nowrap;flex:1;min-width:max-content}.portal-nav [aria-current=page]{background:#e0eee9;color:#075b62}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.dashboard-tile{position:relative;display:flex;align-items:flex-start;flex-direction:column;text-align:left;background:white;color:var(--teal);border-color:var(--line);padding:24px;min-height:168px}.tile-number{font-size:30px;font-weight:800;line-height:1.2}.dashboard-tile strong{font-size:18px}.dashboard-tile small{font-weight:400}.tile-arrow{position:absolute;right:20px;top:22px;font-size:22px}.day-strip{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:20px 0 28px}.day-strip button{flex-direction:column;gap:4px;padding:12px 8px}.day-strip span{font-size:12px;text-transform:uppercase;font-weight:500}.day-strip strong{font-size:20px}.day-strip [aria-pressed=true]{background:var(--teal);color:white;border-color:var(--teal)}.tour-stop{display:grid;grid-template-columns:65px minmax(0,1fr);gap:16px;margin:18px 0;position:relative}.tour-time{padding-top:18px;display:flex;flex-direction:column;gap:8px;align-items:center}.tour-time strong{font-size:19px}.tour-time small{font-size:12px}.tour-card{margin:0;padding:20px}.tour-card h3{font-size:19px;margin:14px 0 8px;overflow-wrap:anywhere;white-space:pre-line}.tour-client{margin:0 0 12px}.tour-address,.tour-team{font-size:14px;color:var(--muted);margin:10px 0}.tour-phone{font-size:14px;color:var(--teal);text-decoration:none}.tour-state{font-size:11px;margin-left:auto;color:var(--muted);padding-top:5px}.type-tag{font-weight:750;background:#dceee8;color:#075b62}.tour-actions{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid var(--line);padding-top:14px;margin-top:16px}.tour-actions button,.tour-actions .button{font-size:13px;min-height:44px;padding:10px 12px;flex:1;white-space:nowrap}.task-card h2,.dossier-card h2{font-size:20px}.task-card>button{display:flex;margin-top:16px}.dossier-card{display:flex;justify-content:space-between;align-items:center;gap:15px}.dossier-card p{font-size:14px;margin:6px 0}#dossier-search{display:block;width:100%;font:inherit;padding:14px;border:1px solid #a8c5c2;border-radius:10px;background:white;color:inherit;margin:10px 0 20px}.search-label{font-size:14px}#reply-text{display:block;width:100%;font:inherit;padding:12px;border:1px solid #a8c5c2;border-radius:10px;margin-top:12px;resize:vertical}.task-card .request{max-height:150px;overflow:auto}@media(max-width:650px){.dashboard-grid{gap:10px}.dashboard-tile{padding:16px;min-height:160px}.dashboard-tile strong{font-size:15px}.dashboard-tile small{font-size:11px}.tile-number{font-size:26px}.tile-arrow{right:12px;top:16px}.tour-stop{grid-template-columns:46px minmax(0,1fr);gap:8px}.tour-time strong{font-size:15px}.tour-time small{font-size:10px}.tour-card{padding:14px 12px}.tour-card h3{font-size:17px}.tour-address,.tour-team,.tour-client{font-size:12px}.tour-actions{gap:6px}.tour-actions button,.tour-actions .button{font-size:11px;padding:10px 8px}.portal-nav .text{padding:9px 8px;font-size:12px}.dossier-card{display:block}.dossier-card button{width:100%;margin-top:12px}.day-strip{gap:6px}.day-strip strong{font-size:19px}}
@media(max-width:650px){.portal-nav{gap:0}.portal-nav .text{min-width:0;padding:10px 6px;font-size:11px}.datebar{display:grid;grid-template-columns:32px minmax(104px,1fr) 32px auto 28px;gap:4px}.datebar input{width:100%;padding:10px 5px;font-size:12px}.datebar button{min-width:0;padding:10px 5px}.datebar .today{font-size:11px}.day-strip{margin-top:16px}.tile-number{max-width:100%;overflow-wrap:anywhere}}

.planning-panel{max-width:520px;margin:0 auto;border:1px solid #cedfdb;border-radius:24px;background:#f6faf8;overflow:hidden}.planning-heading{padding:22px 22px 16px;background:#e8f1ee;border-bottom:1px solid #d5e3de}.planning-title{display:flex;align-items:center;justify-content:space-between}.planning-title h1{font-size:23px;font-weight:600;margin:10px 0 4px;letter-spacing:-.4px}.planning-heading>p{font-size:12px;color:var(--muted);margin:0 0 12px}.planning-date-actions{display:flex;justify-content:space-between;align-items:center;gap:6px}.planning-date-actions .text{font-size:11px;min-height:32px;padding:4px 7px}.planning-pick-date{position:relative;font-size:11px;color:var(--teal);cursor:pointer;overflow:hidden}.planning-pick-date input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.planning-panel .day-strip{margin:8px 0 0;gap:7px}.planning-panel .day-strip button{min-height:52px;border:0;border-radius:10px;background:#dbe8e3;padding:8px 5px}.planning-panel .day-strip [aria-pressed=true]{background:var(--teal);color:white}.planning-panel .day-strip span{font-size:10px}.planning-panel .day-strip strong{font-size:17px;font-weight:500}.planning-body{padding:18px 18px 22px}.tour-section-title{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:var(--muted);margin:0 0 14px}.tour-section-title small{font-size:10px}.planning-panel .tour-stop{grid-template-columns:43px minmax(0,1fr);gap:12px;margin:0 0 12px}.planning-panel .tour-time{padding-top:12px;gap:5px}.planning-panel .tour-time strong{font-size:13px;font-weight:500}.planning-panel .tour-time small{font-size:10px}.planning-panel .tour-card{padding:13px;border-radius:15px;background:#fff}.planning-panel .tour-card h3{font-size:15px;font-weight:600;line-height:1.4;margin:10px 0 4px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.planning-panel .tour-client{font-size:12px;margin:0 0 12px;line-height:1.4}.planning-panel .tag{font-size:9px;padding:5px 6px}.planning-panel .tour-state{font-size:9px}.planning-panel .tour-address,.planning-panel .tour-team{font-size:11px;line-height:1.4;margin:10px 0}.planning-panel .tour-phone{font-size:11px}.planning-panel .tour-card>small{font-size:10px}.planning-panel .tour-actions{margin-top:10px;padding-top:10px;gap:6px}.planning-panel .tour-actions button,.planning-panel .tour-actions .button{min-height:36px;font-size:10px;flex:0 1 auto;padding:8px 10px}.planning-panel [data-visit]{background:var(--teal);color:white;border-color:var(--teal)}@media(max-width:560px){.planning-panel{border-radius:18px}.planning-heading{padding:16px 14px 12px}.planning-body{padding:16px 10px}.planning-panel .tour-stop{gap:7px;grid-template-columns:39px minmax(0,1fr)}.planning-panel .tour-card{padding:11px}.planning-panel .tour-actions button,.planning-panel .tour-actions .button{font-size:10px;padding:8px 7px}}

.portal-nav .text{display:flex;align-items:center;justify-content:center;gap:7px;position:relative;padding:13px 14px}.portal-icon{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.nav-count{display:grid;place-items:center;min-width:18px;height:18px;border-radius:10px;padding:0 4px;font-size:10px;font-weight:700;color:#fff;background:#2a8173;line-height:1}.day-summary{display:flex;gap:22px;padding:30px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0;align-items:flex-start}.day-summary-icon{width:60px;height:60px;display:grid;place-items:center;background:#e4f0eb;border-radius:18px;color:#26786d;flex:none}.day-summary-icon svg{width:34px;height:34px}.day-summary h2{font-size:23px;margin:0 0 16px;font-weight:600}.day-summary p{margin:12px 0;font-size:16px}.day-team{display:flex;gap:10px;align-items:center}.day-team svg{width:19px;height:19px;color:#397c73}.day-summary #day-progress{font-size:13px}@media(max-width:650px){.portal-nav .text{flex-direction:column;gap:5px;font-size:10px;padding:10px 6px}.nav-count{position:absolute;top:4px;right:5px;font-size:9px;min-width:15px;height:15px}.portal-icon{width:19px;height:19px}.day-summary{gap:14px;padding:24px 0}.day-summary-icon{width:44px;height:44px;border-radius:13px}.day-summary-icon svg{width:26px;height:26px}.day-summary h2{font-size:20px}.day-summary p{font-size:14px}}

/* Technician mobile shell: shared by all portal routes. */
:root{color-scheme:dark;background:#0b171b;color:#e5eeed;--teal:#8ad0ca;--line:#3c5558;--muted:#b2c6c5}body{max-width:460px;min-height:100dvh;margin:0 auto;background:#102126;border-inline:1px solid #30494b}body>header{height:62px;padding:0 18px;background:#203e3e;border-color:#345251}.brand{font-size:19px;color:#e5eeed}.brand>span{color:#91c9bf}.brand small{font-size:8px;letter-spacing:1.5px}.signed-in>header{height:44px;background:#203e3e}.signed-in>header .brand{font-size:12px;letter-spacing:1px}.signed-in>header .brand small{display:none}#logout{font-size:11px;min-height:44px;padding:8px}main{padding:18px 12px calc(100px + env(safe-area-inset-bottom));width:100%;min-width:0}button,.button{background:#348e90;color:#fff;border-radius:9px;min-height:44px;font-size:13px;padding:11px 13px}.secondary{background:#273f43;color:#e0eeec;border-color:var(--line)}.text{background:transparent;color:#aad9d2}.card{background:#1d3338;border-color:var(--line);border-radius:13px;padding:16px;margin:14px 0}.eyebrow{color:#aedcd5;font-size:9px;letter-spacing:1.6px}.avatar,.lock{background:#365b58;color:#bde4dc}.profile{background:#1d3338;color:#e5eeed;border-color:var(--line)}.profiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.field input,#dossier-search,#reply-text{background:#10272b;color:#e5eeed;border-color:#567475}.pagehead{margin:5px 0 18px;gap:10px}.pagehead h1,.detail-title h1{font-size:24px}.pagehead .text{font-size:11px;padding:8px}.tag,.tag.gray,.tag.blue,.type-tag{background:#2b4b4d;color:#c2dfdb;font-size:9px;font-weight:500}.request{font-size:14px}.document,.document .pdf{background:#284044;color:#e5eeed}.error{background:#532d2b;color:#ffdad0}.dossier-card{display:block}.dossier-card button{width:100%;margin-top:10px}.task-card h2,.dossier-card h2{font-size:18px}.login{margin:3vh auto}.login .card{padding:24px 18px}.login h1{font-size:25px}
.portal-nav{position:fixed;z-index:50;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,460px);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:7px 7px calc(7px + env(safe-area-inset-bottom));gap:2px;overflow:visible;background:#1b3337;border:1px solid #3c5558;border-bottom:0;box-shadow:0 -8px 24px #07151944}.portal-nav .text{min-width:0;min-height:57px;padding:7px 2px;display:flex;flex-direction:column;gap:6px;font-size:10px;font-weight:500;color:#abc0be;border-radius:10px}.portal-nav [aria-current=page]{background:#294b4a;color:#b7eee3}.portal-nav .portal-icon{width:20px;height:20px}.nav-count{position:absolute;top:2px;right:9px;min-width:15px;height:15px;font-size:9px;border:1px solid #1b3337;color:#102126;background:#a2d6cb}#message{bottom:calc(86px + env(safe-area-inset-bottom));z-index:60}.home-welcome{background:#203e3e;margin:-18px -12px 15px;padding:5px 18px 20px}.welcome-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.welcome-top .avatar{width:32px;height:32px;min-height:44px;min-width:44px;font-size:12px;padding:0}.home-welcome h1{font-size:26px;letter-spacing:-.9px;margin:19px 0 5px}.home-welcome>p{font-size:11px;margin:0;color:#c3d8d4}.next-card{padding:16px;margin-top:0}.next-time{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:12px 0 9px}.next-time strong{font-size:21px;font-weight:650;letter-spacing:-.5px}.next-time>span{font-size:11px;color:var(--muted)}.next-card h2{font-size:15px;line-height:1.4;margin:13px 0 5px;overflow-wrap:anywhere}.next-client{font-size:12px;margin:0;color:#cbd9d7}.next-info{border-top:1px solid var(--line);margin-top:14px;padding-top:10px}.next-info p{font-size:11px;line-height:1.5;margin:5px 0;color:#c2d3d1;overflow-wrap:anywhere}.next-info .portal-icon{width:15px;height:15px;vertical-align:middle;margin-right:6px}.next-info a{color:#bee3dc;text-decoration:none}.next-actions{display:flex;gap:7px;margin-top:14px}.next-actions>*{flex:1;font-size:11px;min-height:44px;padding:10px 7px}.day-summary{background:#1d3338;border:1px solid var(--line);border-radius:13px;padding:16px;gap:12px;margin:14px 0}.day-summary-icon{background:#2b4b4b;width:32px;height:32px;border-radius:9px;color:#9ed3c9}.day-summary-icon svg{width:20px;height:20px}.day-summary h2{font-size:14px;margin:0 0 8px}.day-summary p{font-size:12px;margin:7px 0}.day-summary #day-progress{font-size:11px}.day-team svg{display:none}.home-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.home-shortcuts button{font-size:11px;font-weight:400;justify-content:flex-start;padding:12px 9px}.home-shortcuts strong{font-size:15px;color:#b7e2d7;margin-right:3px}.home-shortcuts .portal-icon{width:17px;height:17px}
.planning-panel{max-width:none;border:0;border-radius:0;background:transparent;margin:-18px -12px 0}.planning-heading{background:#203e3e;border-color:#345251;padding:18px 16px 14px}.planning-body{padding:16px 12px}.planning-panel .day-strip button{background:#2b4548;color:#c6d9d6;min-height:55px}.planning-panel .day-strip [aria-pressed=true]{background:#348e90;color:white}.planning-panel .tour-card{background:#1d3338;border-color:#3c5558}.planning-panel .tour-stop{grid-template-columns:39px minmax(0,1fr);gap:8px}.planning-panel [data-visit]{background:#348e90;border-color:#348e90;color:white}.planning-panel .tour-actions button,.planning-panel .tour-actions .button{min-height:44px}.planning-panel .tour-phone{color:#b7e2d7}.planning-date-actions .text{min-height:44px}.planning-pick-date{min-height:44px;display:flex;align-items:center}.tour-team,.tour-address{color:#b8ccca}.tour-card .tour-client{color:#e0e9e6}.tour-time strong{color:#e0e9e6}button:focus-visible,a:focus-visible{outline:2px solid #b9ede2;outline-offset:3px}@media(min-width:600px){body{margin:24px auto;min-height:calc(100dvh - 48px);border:1px solid #30494b;border-radius:24px}body>header{border-radius:24px 24px 0 0}.portal-nav{bottom:16px;border:1px solid #3c5558;border-radius:0 0 22px 22px}}@media(prefers-reduced-motion:no-preference){button,.button{transition:background .15s ease}}@media(max-width:360px){.next-time strong{font-size:18px}.home-shortcuts button{font-size:10px;gap:4px}.nav-count{right:4px}}
/* Timed Apogée tasks sit between visits in a compact, distinct card. */
.planning-panel .task-stop{margin-bottom:12px}.planning-task{display:flex;align-items:center;gap:10px;width:100%;min-width:0;text-align:left;justify-content:flex-start;padding:11px 12px;background:#263e40;border:1px solid #527370;border-left:3px solid #9ac9ba;border-radius:11px;color:#e5eeed}.planning-task>span{display:grid;gap:4px;min-width:0}.planning-task small{font-size:9px;letter-spacing:.7px;color:#a8d7cc}.planning-task strong{font-size:13px;line-height:1.4;font-weight:600;overflow-wrap:anywhere}.planning-task>span>span{font-size:10px;font-weight:400;color:#b4ccca}.planning-task .portal-icon{width:18px;height:18px;color:#a8d7cc}
.apogee-picto{display:inline-flex;align-items:center;justify-content:center;flex:none;width:22px;height:22px;border-radius:5px;font-size:15px;font-style:normal;font-weight:normal;line-height:1}.universe-tag{display:inline-flex;gap:5px;align-items:center}.material-badge{min-height:30px;padding:4px 8px!important;border:1px solid #79aaa0!important;font-size:11px!important;flex:none!important}.compact-dossier.card{display:block;padding:12px;margin:10px 0}.compact-dossier .dossier-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.compact-dossier h2{font-size:15px;margin:0;line-height:1.25}.dossier-heading>span{font-size:11px;color:#adc8c3;flex:none;max-width:40%}.compact-dossier .tags{gap:5px;margin:8px 0 5px}.compact-dossier .tag{font-size:10px;padding:3px 6px}.compact-dossier .dossier-address{font-size:11px;margin:4px 0;color:#b8ccca;line-height:1.4}.dossier-appointment{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:7px;font-size:12px}.compact-dossier .dossier-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:4px}.compact-dossier .dossier-footer button{width:auto;margin:0;min-height:36px;font-size:12px;padding:4px 8px}.compact-dossier small{font-size:10px}.dossier-instructions,.tour-instructions{font-size:11px!important;padding:6px 8px;background:#3b4033;color:#f1deb1;border-radius:6px;line-height:1.4!important;white-space:pre-wrap}.materials-dialog{width:min(94vw,520px);max-height:85dvh;padding:0;border:1px solid #52736d;border-radius:16px;background:#183035;color:#e5eeed}.materials-dialog::backdrop{background:#0009}.materials-dialog>header{height:auto;padding:12px;gap:12px;background:#203e3e;position:sticky;top:0}.materials-dialog h2{font-size:18px;margin:0}.materials-dialog header button{min-height:40px;padding:6px 10px;font-size:12px}.materials-body{padding:12px}.materials-body h3{font-size:14px}.materials-body ul{padding-left:18px}.materials-body li{margin:10px 0;font-size:13px}.materials-body li span{display:block;font-size:12px;color:#b8ccca}
.profiles:has(.universe-profile){grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.profile.universe-profile{padding:7px 3px;min-height:86px;gap:5px}.universe-profile img{width:62px;height:50px}.universe-profile span{font-size:10px;line-height:1.2;overflow-wrap:anywhere}
.compact-dossier .material-badge{width:auto;margin:0;display:inline-flex}.compact-dossier .dossier-appointment{flex-wrap:wrap}
/* Align appointment badges, with or without an icon or button. */
.tags{align-items:center}
.tags>.tag,.dossier-appointment>.tag{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;line-height:1.2;box-sizing:border-box;margin-block:0}
.tags>.material-badge,.dossier-appointment>.material-badge{font-size:inherit!important}
.tags>.material-badge{font-size:9px!important}
.compact-dossier .tags>.material-badge{font-size:10px!important}
.tags .apogee-picto{width:18px;height:18px;font-size:13px}

.tags>.universe-icon,.compact-dossier .tags>.universe-icon,.planning-panel .tags>.universe-icon{padding:0;background:transparent;width:30px;height:30px;min-height:30px;flex:none;border-radius:50%}.universe-icon img{display:block;width:30px;height:30px;object-fit:contain}

.tags>.intervention-icon,.dossier-appointment>.intervention-icon,.compact-dossier .tags>.intervention-icon,.planning-panel .tags>.intervention-icon{width:30px;height:30px;min-height:30px;padding:4px;flex:none;border-radius:50%;background:var(--icon-color);color:#fff;border:1px solid #ffffffb3}.intervention-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

.tags>.material-badge,.compact-dossier .material-badge,.dossier-appointment>.material-badge{width:30px;height:30px;min-height:30px;padding:3px!important;border-radius:50%;background:#ac7b47;border-color:#e8c8a4!important;color:#fff}.material-badge svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}

.material-slash{display:none}.material-empty .material-slash{display:block;stroke:#fff;stroke-width:2.5;filter:drop-shadow(0 1px 0 #596467)}.tags>.material-empty,.compact-dossier .material-empty,.dossier-appointment>.material-empty{background:#596467;border-color:#a9b5b5!important}[data-material-state="loading"]{opacity:.6}

.quote-dialog{width:min(96vw,760px)}.quote-sheet{margin-bottom:24px}.quote-sheet table{width:100%;border-collapse:collapse;font-size:12px}.quote-sheet th,.quote-sheet td{padding:9px 6px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.quote-sheet th:first-child{width:75%}.quote-sheet .request{font-size:12px;line-height:1.5;margin-top:5px}.quote-sheet td:first-child{overflow-wrap:anywhere}

.planning-pick-date input{pointer-events:none;width:1px;height:1px;inset:auto;bottom:0;left:0}.planning-pick-date.date-fallback{flex-direction:column;overflow:visible}.planning-pick-date.date-fallback input{position:static;opacity:1;pointer-events:auto;width:140px;height:36px;background:#203e3e;color:#e5eeed;border:1px solid var(--line);border-radius:6px}.planning-pick-date.date-fallback #choose-day{display:none}

.address-link,.client-phone{color:#b7e2d7;text-decoration:underline;text-underline-offset:3px}.client-phone{display:block;font-size:12px;line-height:1.6;margin:5px 0}.address-link:focus-visible,.client-phone:focus-visible{outline:2px solid #b9ede2;outline-offset:3px}

.portal-nav{grid-template-columns:repeat(6,minmax(0,1fr))}.stats-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.stats-heading h2,#home-stats h2{font-size:15px;margin:0}.stats-heading button{font-size:11px;padding:5px}.stats-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.stats-kpis>div{display:flex;flex-direction:column;gap:5px;background:#284346;border-radius:9px;padding:12px 8px}.stats-kpis strong{font-size:21px;color:#b7e2d7}.stats-kpis span{font-size:10px}.stats-period{display:flex;gap:6px}.stats-period button{flex:1;font-size:12px}.stats-period [aria-pressed=true]{background:#348e90}.stats-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:9px 0;font-size:13px}#stats-content h2{font-size:16px}#stats-content .stats-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}

.card-copy{margin:10px 0 6px}.card-copy .card-copy-text{font-size:12px;font-weight:500;line-height:1.5;white-space:pre-line;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.card-copy.expanded .card-copy-text{display:block;-webkit-line-clamp:unset}.card-copy .card-copy-more{min-height:28px;padding:2px 6px;font-size:12px}

.stats-ca{display:flex;flex-direction:column;gap:5px;margin:12px 0}.stats-ca>span{font-size:12px;color:#c2d7d4}.stats-ca>strong{font-size:27px;color:#b7e2d7}.stats-ca>small{font-size:10px}.stats-leaders p{display:flex;flex-direction:column;gap:3px;margin:9px 0;font-size:12px}.stats-leaders span{font-size:10px;color:var(--muted)}

/* Personal statistics: compact charts and provider identities. */
.stats-pie-layout{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:16px 0}.stats-pie{width:150px;height:150px;flex-shrink:0}.stats-legend{flex:1;min-width:160px;font-size:12px}.stats-legend>div{display:flex;align-items:center;gap:7px;margin:9px 0}.stats-legend strong{margin-left:auto;white-space:nowrap}.stats-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.stats-bars{display:grid;gap:16px}.stats-bar-label{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:6px}.stats-bar-track{height:16px;background:#ffffff0b;border-radius:4px;overflow:hidden}.stats-bar-track>div{height:100%;border-radius:4px}.stats-provider{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #ffffff16;font-size:13px}.stats-provider:last-child{border:0}.stats-provider img{object-fit:contain;background:white;border-radius:6px;padding:4px;flex-shrink:0}.stats-provider strong{margin-left:auto;white-space:nowrap}.stats-provider-placeholder{width:80px;text-align:center;color:var(--muted);flex-shrink:0}

svg.stats-bar-track{display:block;width:100%;height:18px}.stats-measure{display:flex;align-items:center;gap:10px;justify-content:flex-end;margin:14px 0;font-size:13px}.stats-measure input{width:20px;height:20px;accent-color:#65bcb5}

fieldset.stats-measure{border:0;padding:0;gap:0}fieldset.stats-measure label{position:relative;cursor:pointer}fieldset.stats-measure input{position:absolute;opacity:0;width:1px;height:1px}fieldset.stats-measure span{display:block;padding:10px 22px;border:1px solid var(--line);background:#1b3438}fieldset.stats-measure label:first-of-type span{border-radius:9px 0 0 9px}fieldset.stats-measure label:last-of-type span{border-radius:0 9px 9px 0}fieldset.stats-measure input:checked+span{background:#348e90;color:white}fieldset.stats-measure input:focus-visible+span{outline:2px solid #b7e2d7;outline-offset:3px}.stats-measure legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

.stats-provider strong small{display:block;font-weight:400;font-size:11px;margin-top:4px;color:var(--muted)}

.stats-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.stats-topline .stats-ca{min-width:0}.stats-topline .stats-ca>span{font-size:11px}.stats-topline fieldset.stats-measure{margin:0;flex-shrink:0}.stats-topline fieldset.stats-measure span{padding:8px 10px;font-size:12px}

/* A bounded app frame: only the page scrolls; navigation is a separate bottom row. */
html{height:100%;overflow:hidden}body{height:100dvh;min-height:0;display:flex;flex-direction:column;overflow:hidden}body>header{flex-shrink:0}main#app{display:flex;flex-direction:column;flex:1;min-height:0;padding:0;margin:0;overflow:hidden}.portal-page{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;padding:18px 12px 20px;scroll-padding-bottom:16px;-webkit-overflow-scrolling:touch}#app>.portal-nav{position:static;transform:none;left:auto;bottom:auto;width:100%;flex-shrink:0;border-radius:0;box-shadow:none;margin:0}#app>.portal-nav:last-child{border-bottom:0}@media(min-width:600px){body{height:calc(100dvh - 48px);min-height:0}#app>.portal-nav{border-radius:0 0 22px 22px}}

.material-supply-photo{display:block;max-width:100%;max-height:260px;object-fit:contain}

/* Apogée glyph styling in the stylesheet: allowed by the portal CSP. */
[data-picto-kind="univers"][data-picto-key="ame_logement"]{color:#2B15E0;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="univers"][data-picto-key="menuiserie"]{color:#FF7018;background:#FFF;font-family:apogee-sharp-regular-400}
[data-picto-kind="univers"][data-picto-key="plomberie"]{color:#3BA6FF;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="univers"][data-picto-key="renovation"]{color:#A38D77;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="univers"][data-picto-key="serrurerie"]{color:#FF12BD;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="univers"][data-picto-key="vitrerie"]{color:#7FFE2E;background:#FFF;font-family:apogee-regular-400}
[data-picto-kind="univers"][data-picto-key="volets"]{color:#9817F0;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="univers"][data-picto-key="electricite"]{color:#FD9A2C;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="CAPBRETON"]{color:#FFC107;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="DAX"]{color:#24BE36;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="EN ATTENTE"]{color:#FFF;background:#007BFF;font-family:apogee-sharp-regular-400}
[data-picto-kind="pictoInterv"][data-picto-key="GESTION DE CLES"]{color:#ED0404;background:#FF0;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="HAGETMAU"]{color:#F230DA;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="MIMIZAN"]{color:#FF0;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="MONT DE MARSAN"]{color:#007BFF;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="NRP"]{color:#000;background:#0F0;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="PAYS BASQUE"]{color:#DB1515;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="PEYREHORADE"]{color:#6C757D;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="POINT CLIENT"]{color:#E3342F;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="PROSPECTION"]{color:#007BFF;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="SAV"]{color:#F90700;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="SELON M\u00c9T\u00c9O"]{color:#007BFF;background:#FFF;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="TEL AVANT D ARRIVER"]{color:#FF0;background:#067EE9;font-family:apogee-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="TH"]{color:#007BFF;background:#D7D9DA;font-family:apogee-sharp-solid-900}
[data-picto-kind="pictoInterv"][data-picto-key="URGENT"]{color:#ED1302;background:#FFF;font-family:apogee-solid-900}

.provider-badge{width:64px;height:30px;object-fit:contain;background:white;border-radius:5px;padding:3px}

/* Home: an overview of the next visit and work waiting for the technician. */
.home-dashboard{display:grid;gap:12px}.home-dashboard .card{margin:0;padding:12px;border-radius:14px}.home-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.home-heading h1{font-size:23px;margin:0}.home-heading p{font-size:12px;margin:4px 0 0;color:var(--muted)}.home-heading .avatar{width:36px;height:36px;min-height:36px;font-size:14px;padding:0}.home-dashboard .home-day{display:flex;align-items:center;gap:8px;text-align:left;margin:0;padding:8px 10px;background:#ffffff08;border-radius:9px;font-size:12px;min-height:36px}.home-day svg{width:18px;height:18px;flex-shrink:0}.home-day>span:last-child{margin-left:auto}.home-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.home-section-head h2{font-size:14px;margin:0}.home-section-head>span{font-size:11px;color:var(--muted);white-space:nowrap}.home-section-head .text{font-size:11px;padding:4px 0;min-height:32px;white-space:nowrap}.home-section-head h2 small{font-size:11px;font-weight:500;color:var(--muted);margin-left:4px}.home-visit-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:7px}.home-visit-title>strong{font-size:14px;overflow-wrap:anywhere}.home-visit-title .tags{margin:0;gap:4px;flex-shrink:0}.home-dashboard .next-card .tags img,.home-dashboard .next-card .tags .type-icon,.home-dashboard .next-card .tags .material-icon{width:26px;height:26px}.home-dashboard .next-card .card-copy{margin:6px 0}.home-dashboard .next-card .card-copy-text{-webkit-line-clamp:2;font-size:12px;line-height:1.4}.home-dashboard .next-card .card-copy.expanded .card-copy-text{-webkit-line-clamp:unset}.home-visit-contact{display:flex;flex-wrap:wrap;gap:5px 14px;font-size:12px;line-height:1.4}.home-visit-contact>a:first-child{flex-basis:100%;overflow-wrap:anywhere}.home-visit-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px;font-size:11px;color:var(--muted)}.home-visit-footer>div{display:flex;gap:8px;align-items:center}.home-visit-footer button{font-size:12px;min-height:32px;padding:4px 7px}.home-visit-footer svg{width:18px;height:18px}.home-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;min-height:48px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;text-align:left;color:inherit;text-decoration:none}.home-row>span:first-child{min-width:0}.home-row strong{display:block;font-size:12px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.home-row small{display:block;font-size:11px;font-weight:400;color:var(--muted);margin-top:3px}.home-row:hover{background:#ffffff07}.home-work .note{margin:8px 0 2px;font-size:12px}.home-row:focus-visible{outline:2px solid #b7e2d7;outline-offset:2px}@media(max-height:780px){#home-tasks .home-row:nth-child(3){display:none}.home-dashboard{gap:9px}.home-dashboard .card{padding:10px}}
.bi-time{border-top:1px solid var(--line);padding:10px 0}.bi-time>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.bi-time input{min-width:0;width:100%}.bi-person{display:flex;align-items:center;gap:8px}.bi-person input,.bi-choices input{width:18px;height:18px;flex:none}.bi-choices{display:grid;gap:8px}.bi-choices label{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:9px;padding:10px;margin:0}.bi-history{padding:10px 0;border-top:1px solid var(--line);font-size:12px}.bi-history p{white-space:pre-line;margin:5px 0}.bi-history small{color:var(--muted)}#bi-form fieldset{border:0;padding:0;margin:0;min-width:0}#bi-form label{font-size:12px}#bi-form select{width:100%;min-height:42px}#bi-form [hidden]{display:none!important}
#bi-form fieldset>label{display:block;margin:16px 0;font-weight:600}#bi-form textarea,#bi-form select,#bi-form input:not([type=checkbox]):not([type=radio]){display:block;width:100%;min-width:0;box-sizing:border-box;margin-top:7px;padding:10px 8px;min-height:44px;font:inherit;background:#10272b;color:#e5eeed;border:1px solid #567475;border-radius:8px}#bi-form textarea{resize:vertical;line-height:1.5}#bi-form .bi-time>div{margin-top:8px}#bi-form .bi-person{min-height:36px;font-weight:600}#bi-form input[type=checkbox],#bi-form input[type=radio]{accent-color:#348e90}#bi-form :disabled{opacity:.65}#bi-form h2{font-size:20px;margin:22px 0 10px}#bi-form input:focus-visible,#bi-form textarea:focus-visible,#bi-form select:focus-visible{outline:2px solid #aad9d2;outline-offset:2px}
.bi-history [data-sign-bi]{display:block;margin:10px 0}.bi-pdf{width:100%;height:380px;display:block;margin:14px 0;background:white;border:1px solid var(--line);border-radius:8px}#bi-sign-form fieldset{border:0;padding:0;margin:0;min-width:0}#bi-sign-form label{display:block;margin:14px 0;font-size:13px}#bi-sign-form input:not([type=checkbox]),#bi-sign-form textarea,#bi-sign-form select{display:block;width:100%;box-sizing:border-box;margin-top:7px;padding:10px;min-height:44px;font:inherit;background:#10272b;color:#e5eeed;border:1px solid #567475;border-radius:8px}#bi-sign-canvas{display:block;margin-top:8px;background:#fff;width:100%;height:150px;border:2px dashed #7a9fa3;border-radius:8px;touch-action:none}#bi-sign-form label.bi-sign-confirm{display:flex;gap:10px;align-items:flex-start;margin:20px 0}#sign-confirm{width:22px;height:22px;flex:none}#bi-sign-form p{font-size:13px;line-height:1.6}#sign-result{white-space:pre-line}
.intervention-consultation{border-top:1px solid var(--line);margin-top:12px;padding-top:12px}.card-section-label{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.8px;margin-bottom:8px}.address-link,.client-phone{display:inline-flex;align-items:center;gap:7px}.address-link .portal-icon,.client-phone .portal-icon{width:17px;height:17px;flex:none}.consultation-buttons{display:flex;gap:6px;margin:12px 0;flex-wrap:wrap}.planning-panel .consultation-buttons button{display:inline-flex;align-items:center;gap:5px;flex:1;justify-content:center;background:transparent;color:#bad6d3;border:1px solid var(--line);font-size:11px;min-height:40px;padding:8px 6px}.consultation-buttons .portal-icon{width:17px;height:17px}.intervention-actions{border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.intervention-main-actions{display:flex;gap:8px}.planning-panel .intervention-primary{display:flex;gap:10px;align-items:center;justify-content:center;flex:1;min-width:0;min-height:60px;padding:10px;background:#348e90;color:white}.intervention-primary strong,.intervention-primary small{display:block;text-align:left}.intervention-primary small{font-size:10px;font-weight:400;margin-top:4px}.intervention-primary .portal-icon{width:24px;height:24px;flex:none}.planning-panel .intervention-unavailable{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;background:transparent;color:#e9b7aa;border:0;font-size:11px;margin-top:8px;min-height:38px}.intervention-unavailable .portal-icon{width:17px;height:17px}#unavailable-form fieldset{border:0;padding:0;margin:0;min-width:0}#unavailable-form label{display:block;font-size:13px;margin:14px 0}#unavailable-form label.unable-choice{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;padding:12px;min-height:44px}#unavailable-form textarea,#unavailable-form select{width:100%;display:block;box-sizing:border-box;background:#10272b;color:#e5eeed;border:1px solid #567475;border-radius:8px;font:inherit;padding:10px;margin-top:8px;min-height:44px}#unavailable-form input[type=radio]{width:20px;height:20px;accent-color:#348e90;flex:none}

.environment-warning{flex-shrink:0;padding:9px 14px;background:#514126;color:#fff0c8;font-size:12px;line-height:1.4;border-bottom:1px solid #94773f}.rt-only .portal-nav{grid-template-columns:repeat(4,1fr)}

/* Operia Suivi V2 — navy hero, cyan accents, white working cards. */
:root{color-scheme:light;--teal:#075985;--line:#dce7ef;--muted:#64748b;background:#eaf1f6;color:#0c4a6e}
body{background:#f8fafc;color:#0f172a;border-color:#dce7ef;box-shadow:0 20px 70px #082f4920}
body>header{background:#fff;border-color:#e2e8f0;height:66px}.brand{color:#082f49}.brand>span{color:#0891b2}.brand small{color:#64748b}
button,.button{background:#075985;color:#fff;border-color:#075985;border-radius:14px}button:hover,.button:hover{background:#0369a1}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #22d3ee;outline-offset:3px}
button.text,.text,.secondary{background:transparent;color:#075985;border-color:#dce7ef}.text:hover,.secondary:hover{background:#e0f2fe}.card,.profile{background:#fff;border-color:#e2e8f0;color:#0f172a;border-radius:24px;box-shadow:0 3px 12px #0c4a6e06}
h1,h2,h3,.tour-card .tour-client,.tour-time strong{color:#082f49}small,.muted,.note,.tour-team,.tour-address,.dossier-heading>span,.compact-dossier .dossier-address{color:#64748b}.eyebrow,.card-section-label{color:#0e7490}
input,textarea,select{background:#f8fafc;color:#0f172a;border-color:#cbd5e1;border-radius:12px}input::placeholder,textarea::placeholder{color:#64748b}input[type=checkbox],input[type=radio]{accent-color:#0284c7}
.avatar,.lock,.nav-count{background:#e0f2fe;color:#075985}.portal-page{padding:20px 14px}.portal-nav,#app>.portal-nav{background:#fff;border-color:#e2e8f0}.portal-nav .text{color:#64748b}.portal-nav [aria-current]{background:#e0f2fe;color:#0369a1;border-radius:16px}
.home-heading,.pagehead,.planning-heading{background:radial-gradient(ellipse at 100% 0%,#22d3ee22,transparent 55%),linear-gradient(135deg,#020617,#082f49 55%,#0369a1);color:white;border:0;border-radius:28px;padding:22px;box-shadow:0 12px 30px #082f491a;margin-bottom:20px}.home-heading h1,.pagehead h1,.planning-heading h1{color:#fff;letter-spacing:-.7px}.home-heading p,.planning-heading p{color:#cbe8f5}.home-heading .avatar,.pagehead .text,.planning-heading .text{background:#ffffff12;color:#e0f2fe;border-color:#ffffff25}.planning-heading .eyebrow{color:#67e8f9}
.home-day{color:#075985;background:#e0f2fe;border-color:#bae6fd}.home-row{background:#f8fafc;color:#0f172a;border-color:#e2e8f0}.home-row small{color:#64748b}.home-section-head h2,.home-visit-title strong{color:#082f49}.home-visit-contact a,.client-phone,.address-link,.next-card a{color:#0369a1}.home-visit-footer{border-color:#e2e8f0;color:#64748b}.next-card{border-top:3px solid #22d3ee}.next-card .home-section-head span{color:#075985}
.planning-panel{margin:0;background:transparent}.planning-heading{margin:0}.planning-body{padding:16px 0}.planning-panel .tour-card{background:#fff;border-color:#e2e8f0;border-radius:24px}.planning-panel .day-strip button{background:#ffffff12;color:#dff5ff;border-color:#ffffff15;border-radius:14px}.planning-panel .day-strip [aria-pressed=true]{background:#fff;color:#075985}.tour-state{color:#64748b}.tour-card .card-copy-text{color:#334155}.tour-instructions,.dossier-instructions{background:#fffbeb;color:#92400e}.intervention-consultation,.intervention-actions{border-color:#e2e8f0}.intervention-primary{background:#075985;border-color:#075985}.intervention-primary small{color:#bae6fd}.intervention-unavailable{color:#9a3412;background:transparent}.consultation-buttons .secondary{background:#f0f9ff;border-color:#dbeafe;color:#075985}
.compact-dossier h2,.dossier-appointment{color:#082f49}.tag.gray,.tag{background:#e0f2fe;color:#075985}.material-badge{border-color:#cbd5e1!important}.planning-task{background:#f0f9ff;border-color:#bae6fd;color:#082f49}.planning-task small,.planning-task>span>span,.planning-task .portal-icon{color:#0369a1}
.materials-dialog,.materials-dialog>header{background:#fff;color:#0f172a;border-color:#cbd5e1}.materials-dialog>header{background:#f0f9ff}.materials-body li span{color:#64748b}.error{background:#fff1f2;color:#9f1239}.environment-warning{background:#fff7ed;color:#9a3412;border-color:#fed7aa;font-size:11px;padding:8px 14px}.stats-ca strong,.stats-kpis strong{color:#075985}.stats-kpis>div{background:#e0f2fe}.stats-ca span,.stats-legend,.stats-provider{color:#334155}
@media(min-width:600px){body{border-radius:28px}body>header{border-radius:28px 28px 0 0}}
.signed-in>header{height:58px;background:#fff;border-color:#e2e8f0}.signed-in>header .text{color:#075985}.portal-nav button.text{border-color:transparent}.portal-nav button.text[aria-current]{border-color:#bae6fd}.record h2{font-size:20px;line-height:1.3}
