/* Client property controls use the active company and light/dark theme tokens. */
.client-lot-control{max-width:780px;margin:0 0 24px;min-width:0}
.client-lot-label{display:block;color:var(--muted);font-size:13px;font-weight:600;margin-bottom:9px}
.client-lot-trigger,.client-lot-option{display:flex;align-items:center;gap:14px;width:100%;text-align:left;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:18px;padding:14px;min-width:0;cursor:pointer;font:inherit}
.client-lot-trigger:hover,.client-lot-option:hover{border-color:var(--brand);background:var(--soft)}
.client-lot-trigger:focus-visible,.client-lot-option:focus-visible,.client-plan-preview:focus-visible{outline:3px solid var(--brand);outline-offset:3px}
.client-lot-thumb{flex:none;display:grid;place-items:center;width:58px;height:58px;border-radius:14px;background:var(--soft);color:var(--brand2);overflow:hidden}
.client-lot-thumb img{width:100%;height:100%;object-fit:cover}.client-lot-thumb img.is-plan{object-fit:contain;background:white;padding:3px}.client-lot-thumb>svg{width:24px;height:24px}
.client-lot-selected{display:grid;gap:5px;min-width:0;flex:1;overflow-wrap:anywhere}
.client-lot-selected strong{font-size:16px;line-height:1.45;font-weight:650}.client-lot-selected small{font-size:13px;line-height:1.5;color:var(--muted)}
.client-lot-chevron{width:32px;height:32px;display:grid;place-items:center;border-radius:50%;background:var(--soft);flex:none}.client-lot-chevron svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7}
#dialog[data-sheet="client-lots"]{width:min(640px,calc(100% - 24px));height:min(680px,85dvh);padding:0;overflow:hidden}
.client-lot-sheet{padding:20px;display:flex;flex-direction:column;gap:16px;min-height:0;flex:1;overflow:hidden}
.client-lot-search{display:flex;align-items:center;gap:10px;padding:0 14px;border:1px solid var(--line);border-radius:14px;background:var(--paper);flex:none;min-height:52px}
.client-lot-search svg{width:20px;height:20px;color:var(--muted);flex:none}.client-lot-search input{width:100%;min-width:0;border:0;background:transparent;color:var(--ink);font-size:16px;padding:14px 0;outline-offset:2px}
.client-lot-options{display:flex;flex-direction:column;gap:10px;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable}
.client-lot-option{flex:none;min-height:90px}.client-lot-option[hidden]{display:none}.client-lot-option.selected{border-color:var(--brand);background:var(--soft)}
.client-lot-check{width:24px;height:24px;color:var(--brand2);flex:none}.client-lot-check svg{width:24px;height:24px}.client-lot-no-result{font-size:15px;color:var(--muted);text-align:center}
.client-property{padding:22px;min-width:0;align-self:start;overflow-wrap:anywhere}
.client-property>.eyebrow{margin:0 0 10px}.client-property h2{font-size:21px;line-height:1.4;margin:0 0 9px;letter-spacing:-.4px}
.client-property>p{font-size:13px;line-height:1.6}.client-property-residence{display:flex;align-items:flex-start;gap:6px;color:var(--muted);margin:0 0 20px}.client-property-residence svg{width:16px;height:16px;flex:none;margin-top:3px}
.client-property-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px;margin:20px 0;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.client-property-facts div{min-width:0}.client-property-facts dt{font-size:11px;line-height:1.5;color:var(--muted);margin:0 0 5px}.client-property-facts dd{font-size:14px;line-height:1.5;font-weight:600;margin:0}
.client-property-plans{display:grid;gap:12px;margin:20px 0}.client-plan-preview{display:block;width:100%;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);cursor:zoom-in;font:inherit}
.client-plan-preview img{display:block;width:100%;height:180px;object-fit:contain;background:#fff;padding:7px}.client-plan-preview span{display:flex;align-items:center;justify-content:center;gap:7px;padding:12px 8px;font-size:12px;font-weight:600;line-height:1.5}.client-plan-preview svg{width:15px;height:15px}
.client-property-spaces{margin:20px 0;border:1px solid var(--line);border-radius:15px;background:var(--paper);overflow:hidden}.client-property-spaces summary{display:flex;justify-content:space-between;gap:10px;align-items:center;cursor:pointer;padding:16px;font-size:14px;font-weight:600;list-style:none}.client-property-spaces summary::-webkit-details-marker{display:none}.client-property-spaces summary small{display:block;color:var(--muted);font-weight:400;font-size:12px;line-height:1.6;margin-top:5px}.client-property-spaces[open] summary{border-bottom:1px solid var(--line)}
.client-property-spaces section{padding:16px}.client-property-spaces section+section{border-top:1px solid var(--line)}.client-property-spaces h3{font-size:12px;color:var(--muted);font-weight:600;margin:0 0 12px}.client-property-spaces dl{margin:0}.client-property-spaces dl>div{display:flex;justify-content:space-between;gap:14px;padding:8px 0;font-size:13px;line-height:1.5}.client-property-spaces dt{min-width:0}.client-property-spaces dd{margin:0;white-space:nowrap;font-weight:600}
.client-property-help{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}.client-property-help h3{font-size:14px;line-height:1.5}.client-property-help p{font-size:13px;line-height:1.6;margin:8px 0 16px}.client-property .button{font-size:12px;white-space:normal;min-height:44px;line-height:1.5}.client-property>.client-residence-photo{height:160px;margin-bottom:20px}
#dialog[data-sheet="client-plan"]{width:min(1100px,calc(100% - 24px));padding:0;max-height:92dvh;overflow:hidden}.client-plan-view{overflow:auto;background:#fff;min-height:0;overscroll-behavior:contain}.client-plan-view img{display:block;width:100%;height:auto;max-height:75dvh;object-fit:contain;padding:12px}
@media(max-width:780px){.client-lot-control{max-width:none;margin-bottom:22px}.client-lot-trigger{padding:14px;gap:12px}.client-lot-label{font-size:14px}.client-lot-selected strong{font-size:16px}.client-lot-selected small{font-size:13px}.client-lot-thumb{width:50px;height:58px;border-radius:12px}.client-lot-chevron{width:28px;height:28px}.client-property{display:block;padding:22px;border-radius:22px}.client-property h2{font-size:22px}.client-property-facts dt{font-size:12px}.client-property-facts dd{font-size:15px}.client-property-spaces summary{font-size:16px}.client-property-spaces summary small{font-size:13px}.client-property-spaces dl>div{font-size:15px}.client-property-spaces h3{font-size:14px}.client-plan-preview img{height:220px}.client-plan-preview span{font-size:14px}.client-property .button{font-size:15px;min-height:50px}.client-lot-sheet{padding:16px;gap:14px}.client-lot-option{padding:12px;gap:12px}.client-plan-view img{max-height:none}}
@media(prefers-reduced-motion:reduce){.client-lot-trigger,.client-lot-option{scroll-behavior:auto}}

body[data-audience="client"] .client-cards{align-self:start}

/* Keep the signalement draft in place while choosing a different authorized property. */
.request-lot-control .client-lot-trigger{font-size:inherit}
.request-lot-panel{display:grid;gap:12px;margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:18px;background:var(--paper)}
.request-lot-panel[hidden]{display:none}
.request-lot-panel .client-lot-search{display:flex;margin:0;background:var(--panel)}
.request-lot-options{max-height:260px;scrollbar-gutter:stable}
.request-lot-no-result{margin:0;font-size:14px;line-height:1.5;color:var(--muted)}
.request-lot-panel .client-lot-option{background:var(--panel)}
.request-lot-panel .client-lot-option.selected{background:var(--soft)}
#request-space-field .field{margin-top:16px}#request-other-space[hidden]{display:none}
#request-space-field select{width:100%;min-height:44px;font-size:14px}
@media(max-width:780px){.request-lot-control .client-lot-trigger{padding:12px;gap:10px}.request-lot-control .client-lot-selected strong{font-size:15px}.request-lot-control .client-lot-selected small{font-size:12px}.request-lot-control .client-lot-thumb{width:44px;height:54px}.request-lot-panel{padding:10px}.request-lot-options{max-height:min(260px,40dvh)}.request-lot-panel .client-lot-option{padding:10px;gap:10px}.request-lot-panel .client-lot-selected strong{font-size:15px}#request-space-field select{font-size:16px;min-height:52px}}

.request-lot-panel{display:flex;flex-direction:column;max-height:min(360px,var(--request-picker-height,360px));overflow:hidden}
.request-lot-panel .client-lot-search{flex:none}.request-lot-options{flex:1 1 auto;min-height:0}

/* Keep the signalement header and actions visible at every viewport size. */
#dialog:has(form[data-form="request"]){height:min(900px,calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:hidden}
#dialog:has(form[data-form="request"]) #dialog-content{height:100%;max-height:100%;display:flex;flex-direction:column}
#dialog:has(form[data-form="request"]) .dialog-head{flex:none}
#dialog form[data-form="request"]{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}
#dialog form[data-form="request"] .dialog-body{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y pinch-zoom}
#dialog form[data-form="request"] .dialog-footer{flex:none}

/* Native radio values, with category pictograms and the active company palette. */
.request-categories{border:0;padding:0;margin:22px 0 0;min-inline-size:0;min-width:0}
.request-categories legend{font-size:14px;line-height:1.5;font-weight:600;color:var(--ink);padding:0;margin:0 0 12px}
.request-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.request-category-grid .request-category{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:88px;padding:14px 10px;margin:0;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);cursor:pointer;text-align:center;transition:border-color .15s,background-color .15s}
.request-category input[type=radio]{position:absolute;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:0!important;opacity:0;clip-path:inset(50%);overflow:hidden}
.request-category-symbol{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:var(--soft);color:var(--brand2);flex:none}
.request-category-symbol svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.request-category-name{font-size:14px;line-height:1.4;font-weight:550;overflow-wrap:anywhere}
.request-category-grid .request-category:hover{border-color:var(--brand)}
.request-category-grid .request-category:has(input:checked){border-color:var(--brand);background:var(--soft)}
.request-category:has(input:checked) .request-category-name{font-weight:700;color:var(--ink)}
.request-category-check{position:absolute;right:8px;top:8px;display:none;width:16px;height:16px;color:var(--brand2)}
.request-category-check svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.request-category:has(input:checked) .request-category-check{display:block}
.request-category-grid .request-category:has(input:focus-visible){outline:3px solid var(--brand);outline-offset:3px}
.request-category:has(input:disabled){opacity:.5;cursor:not-allowed}
.request-priority{max-width:240px}.request-priority select{width:100%}
@media(max-width:780px){.request-category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.request-category-grid .request-category{min-height:92px;padding:14px 10px;border-radius:18px}.request-category-name{font-size:15px}.request-categories legend{font-size:15px}.request-priority{max-width:none}}
@media(prefers-reduced-motion:reduce){.request-category-grid .request-category{transition:none}}
