/* Hallmark · component: Smoobu sync dialog · genre: modern-minimal · theme: Anétats austere
 * states: default · hover · focus · active · disabled · loading · error · success
 * pre-emit critique: P5 H5 E4 S5 R5 V4 · contrast: pass
 */
:root {
  color-scheme: light;
  --ink: #2b2b2b;
  --muted: #666666;
  --paper: #969596;
  --card: #f7f7f7;
  --line: #c8c8c8;
  --pine: #2b2b2b;
  --pine-dark: #1f1f1f;
  --pine-pale: #f7f7f7;
  --amber: #d4b559;
  --danger: #a84336;
  --smoobu-surface: #ffffff;
  --smoobu-surface-muted: #f3f2ed;
  --smoobu-rule: #b9b6aa;
  --smoobu-success: #24572f;
  --smoobu-success-soft: #edf5ee;
  --smoobu-warning: #765f00;
  --smoobu-warning-soft: #f8f2dc;
  --smoobu-error: #7b3027;
  --smoobu-error-muted: #704d42;
  --smoobu-error-soft: #fff4f1;
  --button-font: var(--font-ui);
  font-family: var(--font-ui);
  color: var(--ink);
  background: #ffffff;
}

button { font-family: var(--font-ui); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: #ffffff; }
button, input { font: inherit; }
.owner-shell { min-height: 100vh; }
.contract-gate { min-height: 100vh; padding: clamp(22px, 5vw, 64px); display: grid; place-items: center; background: #f5f3e8; }
.contract-gate-card { width: min(720px, 100%); padding: clamp(26px, 6vw, 58px); border: 1px solid #d9d1bf; border-radius: 24px; background: #fffdf8; box-shadow: 0 28px 70px rgba(34,31,28,.11); }
.contract-progress { margin-bottom: 32px; padding-bottom: 18px; border-bottom: 1px solid #d9d1bf; }
.contract-progress > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; font-family: var(--font-ui); font-size: var(--type-caption); }
.contract-progress strong { color: var(--ink); }
.contract-progress span { color: var(--muted); }
.contract-progress-track { height: 7px; margin-top: 11px; overflow: hidden; border-radius: 999px; background: #e7e2d4; }
.contract-progress-track span { display: block; width: 20%; height: 100%; border-radius: inherit; background: #ad9116; }
.contract-gate-heading .overline { color: #ad9116; }
.contract-gate-heading h1 { margin: 0; font-size: var(--type-title); font-weight: var(--weight-heading); letter-spacing: -.04em; line-height: 1.2; }
.contract-gate-heading > p:not(.overline) { max-width: 610px; margin: 17px 0 0; color: var(--muted); font-size: var(--type-subtitle); line-height: 1.55; }
.contract-gate-document { margin: 31px 0; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #d9d1bf; border-left: 4px solid #ad9116; background: #fff; }
.contract-gate-document strong, .contract-gate-document small { display: block; }
.contract-gate-document strong { font-size: var(--type-subtitle); }
.contract-gate-document small { margin-top: 4px; color: var(--muted); font-size: var(--type-caption); line-height: 1.45; }
.contract-gate-document a { flex: 0 0 auto; color: var(--ink); font-family: var(--font-ui); font-size: var(--type-caption); font-weight: var(--weight-label); text-underline-offset: 4px; }
.contract-form fieldset { margin: 0; padding: 23px; border: 1px solid #d9d1bf; }
.contract-form legend { padding: 0 8px; color: var(--ink); font-size: var(--type-subtitle); font-weight: var(--weight-heading); }
.contract-form-help { max-width: 520px; margin: 0 0 18px; color: var(--muted); font-size: var(--type-meta); line-height: 1.5; }
.contract-annex-summary, .contract-signature-block { margin-top: 22px; padding: 22px; border: 1px solid #d9d1bf; background: #fff; }
.contract-annex-summary p, .contract-signature-block p { color: var(--muted); line-height: 1.5; }
.contract-annex-summary summary { cursor: pointer; font-weight: var(--weight-heading); }
.contract-annex-summary details p { font-size: var(--type-meta); }
.contract-annex-summary a { display: inline-block; margin-top: 12px; font-family: var(--font-ui); font-size: var(--type-caption); }
#contract-signed-city { width: 180px; min-height: 34px; margin: 0 5px; padding: 5px 8px; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; }
#contract-signature { width: 100%; height: 130px; margin-top: 8px; display: block; border: 1px dashed #bdb5a5; background: #fffdf8; touch-action: none; }
#clear-contract-signature { margin-top: 8px; }
.contract-form label { color: var(--ink); }
.contract-form #contract-civility { width: 100%; min-height: 50px; margin-top: 8px; padding: 12px 14px; display: block; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; font: inherit; }
.contract-form #contract-civility:focus { border-color: var(--amber); outline: 2px solid rgba(162,139,31,.16); outline-offset: 1px; }
.contract-address-fields { display: grid; grid-template-columns: .55fr 1fr; gap: 14px; }
.contract-certification { margin-top: 22px; padding: 17px; display: grid; grid-template-columns: 24px 1fr; gap: 13px; align-items: start; border: 1px solid #d9d1bf; background: #fff; cursor: pointer; }
.contract-certification input { width: 21px; min-height: 21px; margin: 1px 0 0; accent-color: #ad9116; }
.contract-certification strong, .contract-certification small { display: block; }
.contract-certification strong { font-size: var(--type-body); line-height: 1.35; }
.contract-certification small { margin-top: 5px; color: var(--muted); font-size: var(--type-caption); line-height: 1.45; }
#contract-submit { width: 100%; margin-top: 20px; }
.login-layout { width: min(1080px, calc(100% - 32px)); min-height: 670px; margin: 5vh auto; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: var(--card); box-shadow: 0 28px 80px rgba(24,24,24,.18); }
.brand-panel { padding: clamp(38px, 7vw, 78px); display: flex; flex-direction: column; justify-content: center; color: white; background: none 52% center / cover no-repeat; position: relative; overflow: hidden; }
.brand-copy { width: min(100%, 470px); padding: clamp(24px, 4vw, 38px); border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(0,0,0,.2); box-shadow: 0 18px 42px rgba(0,0,0,.2); text-shadow: 0 2px 12px rgba(0,0,0,.85); }
.overline { margin: 0 0 9px; font-size: var(--type-caption); font-weight: var(--weight-label); letter-spacing: .12em; text-transform: uppercase; }
.brand-panel .overline { color: #dddddd; }
.brand-panel .brand-headline { margin: 0; font-family: inherit; font-size: var(--type-title); line-height: 1.2; font-weight: var(--weight-heading); }
.brand-panel .brand-headline span { color: #eeeeee; }
.brand-copy > p:not(.overline) { max-width: 440px; margin: 25px 0; color: #dddddd; line-height: 1.6; }
.security-note { max-width: 410px; margin-top: 28px; padding: 14px; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; border: 1px solid rgba(255,255,255,.17); border-radius: 15px; background: rgba(255,255,255,.07); }
.security-note > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; color: var(--pine-dark); background: #eeeeee; font-size: var(--type-meta); }
.security-note p { margin: 0; color: #dddddd; font-size: var(--type-caption); line-height: 1.5; }
.form-panel { padding: clamp(34px, 7vw, 80px); display: grid; place-items: center; }
#login-form { width: min(100%, 390px); }
#login-form .overline, .dashboard .overline { color: var(--pine); }
h2 { margin: 0; font-family: inherit; font-size: var(--type-section); font-weight: var(--weight-heading); }
.intro { margin: 10px 0 28px; color: var(--muted); line-height: 1.5; }
label { display: block; margin: 18px 0 7px; color: var(--muted); font-size: var(--type-meta); }
input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; outline: none; }
input:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(85,85,85,.18); }
.password-field { position: relative; }
.password-field input { padding-right: 58px; }
.password-field button { width: 36px; height: 36px; position: absolute; right: 7px; top: 7px; display: grid; place-items: center; border: 0; border-radius: 9px; padding: 0; color: var(--pine); background: var(--pine-pale); cursor: pointer; }
.password-field button:hover { background: #e8e7e0; }
.password-field button:focus-visible { outline: 2px solid #57534e; outline-offset: 2px; }
.password-field button img { width: 18px; height: 18px; opacity: .78; }
.primary-button, .secondary-button { min-height: 49px; border-radius: 13px; padding: 11px 16px; cursor: pointer; font-weight: var(--weight-label); }
.primary-button { border: 1px solid var(--pine); color: white; background: var(--pine); }
.primary-button:hover { background: var(--pine-dark); }
#login-button { width: 100%; margin-top: 18px; }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: white; }
.privacy-link { display: inline-flex; align-items: center; text-decoration: none; }
.fine-print { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: var(--type-caption); }
.fine-print a { color: inherit; text-underline-offset: 3px; }
.message { min-height: 20px; margin-top: 12px; font-size: var(--type-meta); }
.message.error { padding: 11px 12px; border-radius: 11px; color: #7b3027; background: #fae8e4; }
.message.success { padding: 11px 12px; border-radius: 11px; color: var(--pine); background: var(--pine-pale); }

.dashboard { width: min(1180px, calc(100% - 34px)); margin: 0 auto; padding: 0 0 70px; }
.dashboard-header { width: 100vw; margin-left: calc(50% - 50vw); margin-bottom: 34px; padding: 19px max(22px, calc((100vw - 1180px) / 2 + 22px)); display: flex; justify-content: space-between; gap: 20px; align-items: center; border-top: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); background: rgba(28,28,28,.92); box-shadow: 0 14px 34px rgba(0,0,0,.2); }
.dashboard-header h1 { margin: 0; font-family: inherit; font-size: var(--type-section); font-weight: var(--weight-heading); }
.dashboard-header h1, .editor-title-row h1 { color: white; }
.tools-section > h2 { color: white; letter-spacing: .04em; }
.dashboard-header .overline { color: #d4b559; }
.editor-title-row .overline { color: var(--pine); }
#logout-button { border-color: #000000; color: white; background: #000000; }
#logout-button:hover { background: #222222; }
.welcome-card { margin: 0 0 24px; padding: 13px 16px; display: flex; justify-content: space-between; border: 1px solid #9f9e9f; border-radius: 14px; color: #2b2b2b; background: #b3b2b3; font-size: var(--type-caption); }
.welcome-card p { margin: 0; color: var(--muted); }
.status-dot { width: 8px; height: 8px; margin-right: 6px; display: inline-block; border-radius: 50%; background: #d4b559; }
.dashboard-intro { padding: clamp(24px, 5vw, 44px); display: flex; justify-content: space-between; gap: 25px; align-items: end; border-radius: 24px; color: white; background: var(--pine-dark); }
.dashboard-intro .overline { color: white; }
.dashboard-intro h2 { font-size: var(--type-section); }
.dashboard-intro p:not(.overline) { margin: 10px 0 0; color: #dddddd; }
.dashboard-intro .primary-button { color: #2b2b2b; background: #d4b559; border-color: #d4b559; white-space: nowrap; }
.unit-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.unit-card { width: 100%; padding: 22px; border: 1px solid #88743a; border-radius: 19px; color: #2b2b2b; background: linear-gradient(315deg, #d4b559 0%, #b59a49 55%, #968042 100%); cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.unit-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(43,43,43,.18); }
.unit-card:focus-visible { outline: 3px solid #f7f7f7; outline-offset: 3px; }
.unit-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.unit-card h3, .unit-card-edit { position: relative; isolation: isolate; overflow: hidden; border: 1px solid rgba(255,255,255,.5); color: #252525; background: linear-gradient(135deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,.12) 48%, rgba(255,255,255,.24) 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.72), inset 0 -1px 0 rgba(255,255,255,.16), 0 8px 24px rgba(43,43,43,.16); text-shadow: 0 1px 0 rgba(255,255,255,.36); -webkit-backdrop-filter: blur(18px) saturate(1.35) brightness(1.06); backdrop-filter: blur(18px) saturate(1.35) brightness(1.06); }
.unit-card h3::before, .unit-card-edit::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(circle at 18% 0%, rgba(255,255,255,.62), transparent 42%), linear-gradient(180deg, rgba(255,255,255,.18), transparent 55%); pointer-events: none; }
.unit-card h3::after, .unit-card-edit::after { content: ""; width: 38%; position: absolute; top: -40%; bottom: -40%; left: -65%; z-index: -1; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent); transition: left .55s ease; pointer-events: none; }
.unit-card:hover h3::after, .unit-card:hover .unit-card-edit::after { left: 130%; }
.unit-card h3 { width: fit-content; margin: 0; padding: 6px 12px; border-radius: 999px; font-family: inherit; font-size: var(--type-subtitle); font-weight: var(--weight-heading); }
.unit-card-edit { min-height: 38px; padding: 7px 12px; display: inline-flex; align-items: center; border-radius: 999px; font-weight: var(--weight-label); }
.delete-unit { width: 100%; min-height: 37px; margin-top: 14px; border: 1px solid rgba(112,34,28,.36); border-radius: 10px; color: #742b24; background: rgba(255,255,255,.72); cursor: pointer; font: inherit; font-size: var(--type-caption); font-weight: var(--weight-label); }
.delete-unit:hover { color: white; background: var(--danger); }
.unit-card-edit:hover { background: linear-gradient(135deg, rgba(255,255,255,.48), rgba(255,255,255,.2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 26px rgba(43,43,43,.2); }
.stats { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat { padding: 12px 8px; border-radius: 12px; text-align: center; color: #2b2b2b; background: #ebd9a9; }
.stat strong { display: block; font-size: var(--type-section); }
.stat small { color: var(--muted); }
.tools-section { margin-top: 42px; }
.tools-section--reservations { padding-top: 36px; border-top: 1px solid var(--line); }
.tools-heading { margin-bottom: 16px; }
.tools-section h2 { margin: 0; font-size: var(--type-section); }
.tools-heading p { max-width: 600px; margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.tool-grid--reservations { grid-template-columns: repeat(3, minmax(170px, 1fr)); max-width: 790px; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.tool-card { min-height: 155px; padding: 17px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 1px solid #88743a; border-radius: 17px; color: #f7f7f7; background: linear-gradient(135deg, #d4b559 0%, #b59a49 55%, #968042 100%); cursor: pointer; }
.tool-card:hover { border-color: var(--pine); transform: translateY(-2px); }
.tool-card > .tool-icon { width: 38px; height: 38px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 11px; color: #2b2b2b; background: #ebd9a9; font-size: var(--type-subtitle); }
.tool-icon img { width: 20px; height: 20px; display: block; object-fit: contain; }
.tool-icon--letter { font-family: var(--font-ui); font-size: var(--type-subtitle); font-weight: var(--weight-heading); }
.tool-card-copy { width: 100%; padding: 11px 12px; display: grid; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.52); border-radius: 13px; color: #2b2b2b; background: rgba(247,247,247,.76); box-shadow: inset 0 1px 0 rgba(255,255,255,.76), 0 7px 20px rgba(43,43,43,.14); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); }
.tool-card-copy::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.34), transparent 52%); pointer-events: none; }
.tool-card strong { position: relative; font-size: var(--type-meta); }
.tool-card small { margin-top: 5px; position: relative; color: #555555; line-height: 1.4; }

@media (hover: hover) {
  .dashboard button:not(:disabled), .dashboard [role="button"] { cursor: pointer; transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, outline-color .18s ease; }
  .dashboard .editor-placeholder:hover, .dashboard .open-unit-editor:hover { outline: 3px solid rgba(255,255,255,.82); outline-offset: 3px; filter: brightness(1.08); box-shadow: 0 16px 34px rgba(20,20,20,.24); }
  .dashboard .editor-placeholder:hover { transform: translateY(-3px); }
  .dashboard .open-unit-editor:hover .unit-card-edit { border-color: rgba(255,255,255,.9); background: linear-gradient(135deg, rgba(255,255,255,.58), rgba(255,255,255,.27)); }
}

.dashboard .editor-placeholder:focus-visible, .dashboard .open-unit-editor:focus-visible { outline: 3px solid #f7f7f7; outline-offset: 3px; }

.editor { width: min(1380px, calc(100% - 32px)); margin: 0 auto; padding: 25px 0 60px; }
.editor-header { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.editor-title-row { display: flex; align-items: center; gap: 13px; }
.editor-title-row h1 { margin: 0; font-family: inherit; font-size: var(--type-title); font-weight: var(--weight-heading); }
.back-button { width: 43px; height: 43px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--card); cursor: pointer; font-size: var(--type-section); }
.editor-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.editor-actions > span { color: var(--muted); font-size: var(--type-caption); }
.editor-title-row { min-width: 0; }
.editor-title-row .back-button { flex: none; display: grid; place-items: center; }
.editor-title-row > div { min-width: 0; }
.editor-layout { min-height: 680px; margin-top: 18px; display: grid; grid-template-columns: 340px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 18px 55px rgba(24,24,24,.1); }
.zone-panel { padding: 18px; border-right: 1px solid var(--line); background: #f5f5f5; }
.unit-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 5px; border-radius: 13px; background: #d8d8d8; }
.unit-tab { min-height: 42px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-weight: var(--weight-label); }
.unit-tab.active { color: #2b2b2b; background: #d4b559; box-shadow: 0 3px 12px rgba(24,24,24,.1); }
.zone-panel-heading { margin: 22px 3px 10px; display: flex; justify-content: space-between; align-items: center; }
.zone-panel-heading strong { display: block; }
.zone-panel-heading small { color: var(--muted); }
.zone-panel-heading button { width: 38px; height: 38px; border: 0; border-radius: 11px; color: white; background: var(--pine); cursor: pointer; font-size: var(--type-subtitle); }
.floor-panel-heading { margin-top: 18px; }
.floor-management-list { display: grid; gap: 6px; }
.floor-management-empty { padding: 10px 12px; border: 1px dashed #aaaaaa; border-radius: 11px; color: var(--muted); background: #f7f7f7; font-size: var(--type-caption); line-height: 1.4; }
.floor-management-item { min-height: 42px; padding: 8px 9px 8px 12px; display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: center; border: 1px solid #c7b069; border-radius: 11px; color: #2b2b2b; background: #ebd9a9; }
.floor-management-item span { display: grid; gap: 1px; }
.floor-management-item strong { font-size: var(--type-caption); }
.floor-management-item small { color: #666666; font-size: var(--type-caption); }
.floor-management-item button { width: 29px; height: 29px; border: 0; border-radius: 8px; color: #7d352d; background: rgba(255,255,255,.58); cursor: pointer; font-size: var(--type-subtitle); }
.floor-management-item button:hover { background: #fae8e4; }
.zone-list { max-height: 560px; overflow: auto; display: grid; gap: 6px; padding-right: 3px; }
.zone-list-row { display: grid; grid-template-columns: minmax(0, 1fr) 31px; gap: 5px; align-items: center; }
.empty-zone-list { margin-top: 10px; padding: 18px 14px; display: grid; gap: 5px; border: 1px dashed #aaaaaa; border-radius: 12px; color: #2b2b2b; background: #f7f7f7; }
.empty-zone-list small { color: var(--muted); line-height: 1.4; }
.floor-label { margin: 18px 0 8px; padding: 10px 12px; position: sticky; top: 0; z-index: 3; border: 1px solid #b59a49; border-left: 5px solid #968042; border-radius: 11px; color: #2b2b2b; background: #ebd9a9; box-shadow: 0 5px 14px rgba(43,43,43,.14); font-size: var(--type-body); font-weight: var(--weight-heading); letter-spacing: .06em; line-height: 1.2; text-transform: uppercase; }
.floor-label:first-child { margin-top: 4px; }
.zone-item { width: 100%; padding: 11px 12px; display: flex; justify-content: space-between; gap: 10px; text-align: left; border: 1px solid transparent; border-radius: 11px; color: var(--ink); background: transparent; cursor: pointer; font-size: var(--type-meta); }
.zone-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zone-item small { flex: none; color: var(--muted); }
.zone-item:hover { background: white; }
.zone-item.active { border-color: #d4b559; color: #2b2b2b; background: #d4b559; }
.zone-item.active small { color: #2b2b2b; }
.delete-zone-inline { width: 31px; height: 31px; border: 0; border-radius: 8px; color: #7d352d; background: #f0dfdc; cursor: pointer; font-size: var(--type-subtitle); }
.delete-zone-inline:hover { color: white; background: var(--danger); }
.zone-editor { padding: clamp(24px, 5vw, 48px); }
.zone-editor-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.zone-editor-heading h2 { font-size: var(--type-section); }
.danger-button { min-height: 42px; border: 1px solid #e8bcb5; border-radius: 11px; padding: 8px 11px; color: var(--danger); background: white; cursor: pointer; font-size: var(--type-caption); }
.zone-fields { margin: 27px 0 35px; display: grid; grid-template-columns: 1.5fr .7fr; gap: 14px; }
.zone-fields label { margin-top: 0; }
.zone-fields select { width: 100%; min-height: 50px; padding: 12px 42px 12px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; font: inherit; outline: none; }
.zone-fields select:focus { border-color: var(--pine); box-shadow: 0 0 0 3px rgba(85,85,85,.18); }
.accent-strip { margin-top: 8px; display: grid; gap: 5px; }
.accent-strip > small { color: var(--muted); font-size: var(--type-caption); letter-spacing: .04em; text-transform: uppercase; }
.accent-toolbar { max-width: 100%; padding-bottom: 4px; display: flex; gap: 5px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scroll-snap-type: x proximity; }
.accent-toolbar button { width: 32px; height: 32px; flex: 0 0 32px; scroll-snap-align: start; border: 1px solid #c9b76f; border-radius: 9px; color: #2b2b2b; background: #ebd9a9; cursor: pointer; font-weight: var(--weight-heading); }
.accent-toolbar button:hover, .accent-toolbar button:focus-visible { border-color: #78736b; background: #d4b559; outline: none; }
.prefix-option { grid-column: 1 / -1; min-height: 58px; margin: 2px 0 0; padding: 12px 14px; display: flex; gap: 11px; align-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #f1f1f1; cursor: pointer; }
.prefix-option input { width: 20px; min-height: 20px; margin: 0; flex: none; accent-color: #968042; }
.prefix-option span { display: grid; gap: 3px; }
.prefix-option strong { font-size: var(--type-meta); }
.prefix-option small { color: var(--muted); font-size: var(--type-caption); }
.controls-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; padding-top: 25px; border-top: 1px solid var(--line); }
.controls-heading h3 { margin: 0; font-size: var(--type-subtitle); }
.controls-heading p { max-width: 620px; margin: 6px 0 0; color: var(--muted); font-size: var(--type-caption); line-height: 1.45; }
.editable-control-list { margin-top: 15px; display: grid; gap: 8px; }
.editable-control { display: grid; grid-template-columns: 32px 1fr auto; gap: 9px; align-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.drag-mark { text-align: center; color: #999999; letter-spacing: -2px; }
.editable-control input { min-height: 43px; border: 0; background: transparent; }
.editable-control input:focus { box-shadow: none; background: white; }
.control-actions { display: flex; gap: 4px; }
.control-actions button { width: 34px; height: 34px; border: 0; border-radius: 9px; color: var(--muted); background: #f5f5f5; cursor: pointer; }
.control-actions button:hover { color: var(--pine); background: var(--pine-pale); }
.control-actions .remove-control:hover { color: var(--danger); background: #fae8e4; }

.owner-dialog { width: min(520px, calc(100% - 28px)); margin: auto; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 24px; color: var(--ink); background: #f7f7f7; box-shadow: 0 30px 90px rgba(0,0,0,.42); }
.stays-dialog { width: min(980px, calc(100% - 32px)); max-height: min(820px, calc(100dvh - 32px)); overflow-y: auto; }
.documents-dialog { width: min(980px, calc(100% - 32px)); max-height: min(820px, calc(100dvh - 32px)); overflow-y: auto; }
.stay-form-dialog { width: min(980px, calc(100% - 28px)); max-height: 92vh; overflow-y: auto; }
.owner-dialog::backdrop { background: rgba(20,20,20,.68); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); }
.owner-dialog form, .owner-dialog .dialog-body { padding: clamp(24px, 5vw, 38px); }
.dialog-heading { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.dialog-heading .overline { color: #968042; }
.dialog-heading h2 { font-size: var(--type-section); }
.dialog-close { width: 39px; height: 39px; flex: none; border: 0; border-radius: 11px; color: white; background: #2b2b2b; cursor: pointer; font-size: var(--type-section); }
.dialog-close img { width: 15px; height: 15px; display: block; margin: auto; filter: invert(1); }
.upload-button { display: inline-flex; align-items: center; gap: 8px; }
.upload-button > img { width: 15px; height: 15px; filter: invert(1); }
.dialog-intro { margin: 12px 0 25px; color: var(--muted); line-height: 1.5; }
.owner-dialog label { margin-top: 0; }
.owner-dialog input { background: white; }
.dialog-accent-strip { margin-top: 12px; }
.dialog-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }
.users-dialog { width: min(840px, calc(100vw - 32px)); max-height: min(860px, calc(100dvh - 32px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; background: #ffffff; }
.users-dialog .users-dialog-form { display: grid; gap: 0; padding: 0; }
.users-dialog .dialog-heading { position: sticky; top: 0; z-index: 2; padding: clamp(24px, 5vw, 38px) clamp(24px, 5vw, 38px) 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.users-dialog-heading h2 { margin: 0; }
.users-dialog-heading p { margin: 7px 0 0; color: var(--muted); font-size: var(--type-meta); line-height: 1.45; }
.users-section { display: grid; gap: 14px; padding: 24px clamp(24px, 5vw, 38px); }
.account-requests-section { background: #fbf8ea; }
.users-section--create { border-top: 1px solid var(--line); }
.users-section-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.users-section-heading h3 { margin: 0; font-size: var(--type-subtitle); }
.users-section-heading p { max-width: 510px; margin: 5px 0 0; color: var(--muted); font-size: var(--type-caption); line-height: 1.45; }
.users-count, .user-status { width: fit-content; padding: 5px 8px; border-radius: 999px; font-size: var(--type-caption); font-weight: var(--weight-heading); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.users-count { color: #605019; background: #f3e6b2; }
.users-list { display: grid; gap: 10px; }
.user-row { min-height: 72px; padding: 14px 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 14px; background: #ffffff; }
.account-request-row { min-height: 72px; padding: 14px 15px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: 12px; color: inherit; background: #ffffff; text-decoration: none; }
.account-request-row:hover { border-color: #78736b; background: #fffdf6; }
.account-request-status { max-width: 210px; padding: 5px 8px; border-radius: 999px; color: #626262; background: #ecebea; font-size: var(--type-caption); font-weight: var(--weight-heading); letter-spacing: .03em; text-align: center; text-transform: uppercase; }
.account-request-status--pending, .account-request-status--awaiting_payment { color: #66530b; background: #f8eab0; }
.account-request-status--approved_free, .account-request-status--payment_received, .account-request-status--completed { color: #245734; background: #dcebdd; }
.account-request-status--rejected, .account-request-status--expired { color: #812f2b; background: #f5deda; }
.user-row--admin { background: #fbfaf5; }
.user-identity { min-width: 0; }
.user-row strong, .user-row small { display: block; }
.user-row strong { overflow-wrap: anywhere; }
.user-row small, .user-create-fields small, .empty-user-list { margin-top: 4px; color: var(--muted); font-size: var(--type-caption); line-height: 1.4; }
.user-row-side { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.user-status--admin { color: #605019; background: #f3e6b2; }
.user-status--active { color: #245734; background: #dcebdd; }
.user-status--disabled { color: #626262; background: #e8e8e8; }
.user-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.user-actions .secondary-button, .user-actions .danger-button { min-height: 38px; padding: 7px 9px; font-size: var(--type-caption); }
.user-create-fields { margin: 0; padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaf7; }
.user-create-fields legend { padding: 0 7px; font-size: var(--type-subtitle); font-weight: var(--weight-heading); }
.user-create-fields label { display: grid; gap: 6px; font-size: var(--type-caption); font-weight: var(--weight-heading); }
.user-create-fields label:first-of-type, .user-create-fields label:last-of-type, .user-create-fields small { grid-column: 1 / -1; }
.user-create-fields input { min-width: 0; }
.users-dialog #users-message { margin: 0 clamp(24px, 5vw, 38px) 16px; }
.users-dialog .dialog-actions { position: sticky; bottom: 0; z-index: 2; margin: 0; padding: 16px clamp(24px, 5vw, 38px) clamp(24px, 5vw, 28px); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.account-requests-banner { width: min(1180px, calc(100% - 44px)); min-height: 72px; margin: 22px auto 0; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #c4ae4d; border-left-width: 5px; border-radius: 10px; color: var(--ink); background: #fff9dc; cursor: pointer; text-align: left; }
.account-requests-banner > span:first-child { display: grid; gap: 4px; }
.account-requests-banner strong { font-size: var(--type-meta); }
.account-requests-banner small { color: var(--muted); font-size: var(--type-caption); line-height: 1.4; }
.account-requests-banner > span:last-child { padding-bottom: 2px; border-bottom: 1px solid currentColor; font-family: var(--mono); font-size: var(--type-caption); white-space: nowrap; }
.account-requests-banner:hover { background: #fff5c5; }
.stays-dialog-heading { align-items: center; }.stays-dialog-heading h2 { margin: 0; }.stays-dialog-heading p:not(.overline) { margin: 6px 0 0; color: var(--muted); font-size: var(--type-meta); }.stays-heading-actions { display: flex; align-items: center; gap: 9px; }.stays-heading-actions .primary-button { min-height: 42px; white-space: nowrap; }
.stays-dialog #stays-list { margin: 28px 0 0; gap: 10px; }
.cleaning-code-panel { margin-top: 24px; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .6fr) auto; gap: 12px; align-items: end; border: 1px solid var(--line); border-radius: 12px; background: #fbfaf4; }
.cleaning-code-panel h3 { margin: 0; font-size: var(--type-subtitle); }.cleaning-code-panel p, .cleaning-code-panel small { margin: 4px 0 0; color: var(--muted); font-size: var(--type-caption); line-height: 1.4; }.cleaning-code-panel label { display: grid; gap: 6px; font-size: var(--type-caption); font-weight: var(--weight-heading); }.cleaning-code-panel input { min-height: 40px; }.cleaning-code-panel small { grid-column: 1 / -1; }
.cleaning-code-panel .password-field { width: 100%; }.cleaning-code-panel .password-field input { min-height: 40px; }.cleaning-code-panel .password-field button { top: 2px; }.cleaning-code-panel #save-cleaning-access-code[data-state="saved"] { border-color: #a28b1f; color: #ffffff; background: #a28b1f; }.cleaning-code-panel #cleaning-access-code-status[data-state="saved"] { color: #315b3a; font-weight: var(--weight-heading); }
.documents-dialog-heading { align-items: center; }
.documents-dialog-heading h2 { margin: 0; }
.documents-dialog-heading p { margin: 6px 0 0; color: var(--muted); font-size: var(--type-meta); }
.documents-list { display: grid; gap: 10px; margin-top: 28px; }
.document-row { padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; box-shadow: 0 6px 18px rgba(34,31,28,.06); }
.document-main { min-width: 0; }
.document-heading { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.document-heading > strong { font-size: var(--type-body); letter-spacing: .045em; overflow-wrap: anywhere; }
.document-count { width: fit-content; padding: 4px 8px; border-radius: 999px; color: #605019; background: #f3e6b2; font-size: var(--type-caption); font-weight: var(--weight-heading); letter-spacing: .03em; text-transform: uppercase; }
.document-summary { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: var(--type-meta); line-height: 1.45; }
.document-summary strong { color: var(--ink); font-family: var(--font-ui); font-size: var(--type-subtitle); }
.document-actions { max-width: 370px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.document-actions .primary-button, .document-actions .secondary-button { min-height: 38px; padding: 8px 11px; border-radius: 7px; font-size: var(--type-caption); }
.stay-row { padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; box-shadow: 0 6px 18px rgba(34,31,28,.06); }
.stay-main { min-width: 0; flex: 1; }
.stay-heading { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.stay-heading strong { font-size: var(--type-body); letter-spacing: .045em; overflow-wrap: anywhere; }
.stay-status { width: fit-content; padding: 4px 8px; border-radius: 999px; font-size: var(--type-caption); font-weight: var(--weight-heading); letter-spacing: .03em; text-transform: uppercase; }
.stay-status--open { color: #605019; background: #f3e6b2; }
.stay-status--signed { color: #245734; background: #dcebdd; }
.stay-status--archived { color: #812f2b; background: #f5deda; }
.stay-source { padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: var(--type-caption); font-weight: var(--weight-heading); letter-spacing: .03em; text-transform: uppercase; }
.stay-source--smoobu { color: #245734; border-color: #b8d4ba; background: #edf5ee; }
.stay-summary { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: var(--type-meta); line-height: 1.45; }.stay-summary strong { color: var(--ink); font-family: var(--font-ui); font-size: var(--type-subtitle); }.stay-summary span + span::before { content: "·"; margin-right: 16px; color: var(--amber); }
.stay-summary .stay-identity-warning, .stay-detail-intro .stay-identity-warning { color: #8a3e24; font-weight: var(--weight-heading); }
.stay-detail-intro .stay-identity-warning { display: block; width: fit-content; max-width: 56ch; margin-top: 10px; line-height: 1.45; }
.stay-actions { max-width: 370px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }.stay-actions .primary-button, .stay-actions .secondary-button { min-height: 38px; padding: 8px 11px; border-radius: 7px; font-size: var(--type-caption); }
.stay-actions .archive-stay { border-color: #b4a66e; }
.stay-form-heading { margin-bottom: 19px; display: flex; align-items: flex-start; gap: 15px; }
.stay-form-heading .overline { margin-bottom: 5px; color: var(--amber); }
.stay-form-heading h2 { margin: 0; font-size: var(--type-section); font-weight: var(--weight-heading); }
.stay-form-heading p:not(.overline) { margin: 5px 0 0; color: var(--muted); font-size: var(--type-meta); line-height: 1.45; }
.stay-form-close { margin-top: 2px; }
.stay-units { margin: 0; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: #ffffff; }
.stay-units legend { padding: 0 7px; color: var(--ink); font-weight: var(--weight-heading); }
.stay-unit-option > span { display: grid; gap: 2px; }
.stay-unit-option > span small { color: var(--muted); font-size: var(--type-caption); }

.administrative-layout { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.administrative-editor { max-width: 1080px; }
.administrative-workspace { min-width: 0; padding: clamp(18px, 3vw, 32px); }
.administrative-current-unit { margin: 5px 0 0; color: var(--muted); font-size: var(--type-subtitle); overflow-wrap: anywhere; }
.administrative-workspace > .rental-type-fieldset { margin-top: 0; }
.administrative-workspace .rental-type-option { min-height: 78px; padding: 12px; }
.administrative-workspace .document-theme-option { min-height: 62px; }
.administrative-workspace :is(.rental-type-option, .document-theme-option) { margin: 0; }
.selection-help { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--muted); font-size: var(--type-meta); }
.administrative-legacy-theme { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: var(--type-meta); line-height: 1.5; }
.rental-type-fieldset { margin: 27px 0 0; padding: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; border: 1px solid var(--line); border-radius: 12px; }
.rental-type-fieldset legend { padding: 0 7px; font-family: var(--font-ui); font-size: var(--type-subtitle); font-weight: var(--weight-heading); }
.rental-type-option { min-height: 106px; padding: 15px; display: flex; gap: 11px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.rental-type-option:has(input:checked) { border-color: var(--amber); background: #f5edcb; box-shadow: inset 0 0 0 1px var(--amber); }
.rental-type-option input { width: 18px; height: 18px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--amber); }
.rental-type-option span { display: grid; gap: 5px; }
.rental-type-option strong { font-size: var(--type-body); }
.rental-type-option small { color: var(--muted); font-size: var(--type-caption); line-height: 1.45; }
.document-theme-fieldset { margin: 14px 0 0; padding: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; border: 1px solid var(--line); border-radius: 12px; }
.document-theme-fieldset legend { padding: 0 7px; font-family: var(--font-ui); font-size: var(--type-subtitle); font-weight: var(--weight-heading); }
.document-theme-option { min-height: 72px; padding: 11px; display: flex; gap: 9px; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.document-theme-option:has(input:checked) { border-color: var(--amber); background: #f5edcb; box-shadow: inset 0 0 0 1px var(--amber); }
.document-theme-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--amber); }
.document-theme-option > span:last-child { display: grid; gap: 3px; }
.document-theme-option small { color: var(--muted); font-size: var(--type-caption); }
.theme-swatch { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.theme-swatch--original { background: #ad9116; }.theme-swatch--black { background: #221f1c; }.theme-swatch--sky { background: #3D6EB3; }
.administrative-section { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.administrative-section h2 { margin: 0; font-size: var(--type-section); font-weight: var(--weight-heading); }
.administrative-section > p { margin: 6px 0 18px; color: var(--muted); font-size: var(--type-meta); line-height: 1.5; }
.administrative-field-row { display: grid; grid-template-columns: minmax(200px, .8fr) minmax(0, 1.5fr) 32px; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid #eeece5; }
.administrative-field-row:last-child { border-bottom: 0; }
.administrative-field-row > label { margin: 0; padding-top: 11px; color: var(--ink); font-size: var(--type-body); font-weight: var(--weight-label); line-height: 1.4; }
.administrative-field-input { min-width: 0; }
.administrative-field-input input, .administrative-field-input textarea { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; color: var(--ink); background: #fff; font: inherit; font-size: var(--type-body); line-height: 1.4; caret-color: #756412; }
.administrative-field-input input { min-height: 44px; }
.administrative-field-input textarea { min-height: 112px; resize: vertical; }
.administrative-field-input input::placeholder { color: #746f65; opacity: 1; }
.administrative-field-input :is(input, textarea):focus-visible { outline: 2px solid #57534e; outline-offset: 2px; }
.address-lookup-help, .administrative-field-note { display: block; margin-top: 5px; color: var(--muted); font-size: var(--type-caption); line-height: 1.4; }
.field-help { display: inline-flex; align-items: center; }
.administrative-field-row > .field-help { padding-top: 6px; }
.editor .field-help-button { display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #6a6354; cursor: help; }
.field-help-button:hover, .field-help-button[aria-expanded="true"] { background: #f2eee0; color: #221f1c; }
.field-help-button:focus-visible { outline: 2px solid #57534e; outline-offset: 2px; }
.field-help-tooltip { position: fixed; z-index: 80; width: min(330px, calc(100vw - 24px)); padding: 14px 16px; box-sizing: border-box; border: 1px solid #cfc7b4; border-radius: 8px; color: #221f1c; background: #fffdf5; font-size: var(--type-meta); font-weight: var(--weight-body); line-height: 1.5; overflow-wrap: anywhere; }
.administrative-sources { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--type-meta); line-height: 1.55; }
.administrative-sources summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); cursor: pointer; font-weight: var(--weight-label); list-style: none; }
.administrative-sources summary::-webkit-details-marker { display: none; }
.administrative-sources[open] summary svg { transform: rotate(180deg); }
.administrative-sources a { color: #635515; text-underline-offset: 3px; }
.administrative-sources p { max-width: 75ch; }
@media (max-width: 780px) {
  .rental-type-fieldset { grid-template-columns: 1fr; }
  .document-theme-fieldset { grid-template-columns: 1fr; }
  .administrative-field-row { grid-template-columns: minmax(0, 1fr) 32px; gap: 6px 12px; padding: 12px 0; }
  .administrative-field-row > label { padding-top: 5px; }
  .administrative-field-row > .field-help { grid-column: 2; grid-row: 1; padding-top: 0; }
  .administrative-field-input { grid-column: 1 / -1; grid-row: 2; }
}

.document-preview-dialog { width: min(980px, calc(100% - 32px)); max-height: min(900px, calc(100dvh - 32px)); padding: 0; overflow: auto; }
.document-preview-dialog::backdrop { background: rgba(34,31,28,.58); backdrop-filter: blur(3px); }
.document-preview-dialog .dialog-heading { margin: 0; padding: 20px 24px; position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line); background: #fff; }
.document-preview-dialog .dialog-heading h2 { margin: 2px 0 0; font-size: var(--type-section); }
.document-preview-toolbar { padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); background: #f5f3e8; }
.document-preview-toolbar small { color: var(--muted); }
.preview-legend { width: 10px; height: 10px; display: inline-block; margin-right: 4px; border-radius: 2px; vertical-align: -1px; }
.preview-legend--locked { border: 2px solid #47423c; }.preview-legend--editable { border: 2px dashed var(--amber); }
.document-preview-canvas { padding: clamp(20px, 5vw, 52px); background: #ebe7da; }
.document-preview-pages { display: grid; gap: 34px; }
.document-sheet { width: min(100%, 670px); min-height: 760px; margin: 0 auto; padding: clamp(26px, 5vw, 52px); box-sizing: border-box; color: #221f1c; background: #fff; box-shadow: 0 10px 28px rgba(34,31,28,.16); }
.document-sheet--original { --document-accent: #ad9116; --document-soft: #f2ebd2; }.document-sheet--black { --document-accent: #221f1c; --document-soft: #eeeeec; }.document-sheet--midnight { --document-accent: #17304e; --document-soft: #e5edf5; }.document-sheet--sky { --document-accent: #3D6EB3; --document-soft: #eaf1fa; }
.preview-document-header { padding-bottom: 14px; display: flex; justify-content: space-between; gap: 14px; border-bottom: 3px solid var(--document-accent); color: var(--document-accent); font-size: var(--type-caption); font-weight: var(--weight-heading); letter-spacing: .14em; }
.preview-document-header .preview-locked { color: #5f5a53; font-size: var(--type-caption); letter-spacing: .03em; }
.preview-kicker { margin: 30px 0 8px; color: var(--document-accent); font-size: var(--type-caption); font-weight: var(--weight-heading); letter-spacing: .12em; }
.document-sheet h3 { margin: 0; font-family: var(--font-ui); font-size: var(--type-subtitle); line-height: 1.2; }
.preview-subtitle { margin: 8px 0 25px; color: #67615a; font-family: var(--font-ui); font-size: var(--type-subtitle); }
.preview-identity { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preview-identity > div, .preview-stay, .preview-summary, .preview-notice { padding: 15px; border: 1px solid #d9d1bf; border-radius: 9px; }
.preview-identity small, .preview-stay small, .preview-summary small, .preview-notice small { display: block; margin-bottom: 7px; color: #746e64; font-size: var(--type-caption); font-weight: var(--weight-heading); letter-spacing: .08em; }
.preview-identity strong, .preview-identity span { display: block; }.preview-identity strong { font-family: var(--font-ui); font-size: var(--type-body); }.preview-identity span { margin-top: 6px; color: #67615a; font-size: var(--type-caption); line-height: 1.45; }
.preview-stay { margin-top: 20px; background: var(--document-soft); }.preview-stay div { display: grid; gap: 5px; }.preview-stay strong { font-family: var(--font-ui); }.preview-stay span, .preview-summary p, .preview-notice p { margin: 0; color: #625d55; line-height: 1.5; }
.preview-summary, .preview-notice { margin-top: 12px; }.preview-notice { border-color: color-mix(in srgb, var(--document-accent) 38%, #fff); }
.preview-linkage { margin-top: 20px; padding: 15px; border: 1px solid #d9d1bf; border-radius: 9px; background: var(--document-soft); }.preview-linkage strong, .preview-linkage span { display: block; }.preview-linkage span { margin-top: 6px; color: #625d55; font-size: var(--type-caption); line-height: 1.45; }
.preview-issue { margin-top: 22px; padding: 16px; border: 1px solid #d9d1bf; border-radius: 9px; }.preview-issue h4 { margin: 5px 0; font-family: var(--font-ui); font-size: var(--type-subtitle); }.preview-issue p { margin: 0; color: #625d55; line-height: 1.5; }.preview-issue small { color: #746e64; font-size: var(--type-caption); font-weight: var(--weight-heading); letter-spacing: .08em; }
.preview-photo-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }.preview-photo-grid img, .preview-photo-placeholder { width: 100%; height: 128px; display: grid; place-items: center; box-sizing: border-box; border-radius: 6px; object-fit: cover; color: #ffffff; background: linear-gradient(135deg, #304763, #9baebb); font-size: var(--type-caption); line-height: 1.4; text-align: center; }
.document-sheet footer { margin-top: 28px; padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #d9d1bf; color: #625d55; font-size: var(--type-caption); }
.preview-locked { outline: 1px solid rgba(71,66,60,.68); outline-offset: 3px; }.preview-editable { outline: 0; cursor: text; }
.preview-editable[contenteditable="true"] { display: block; min-width: 1ch; }.preview-editable[contenteditable="true"]:focus { outline: 2px solid var(--document-accent); outline-offset: 4px; background: color-mix(in srgb, var(--document-soft) 72%, #fff); }
.show-editable-zones .preview-editable { outline: 2px dashed var(--document-accent); outline-offset: 4px; }.show-editable-zones .preview-locked { opacity: .62; }
@media (max-width: 620px) { .document-preview-toolbar { align-items: flex-start; flex-direction: column; }.preview-identity { grid-template-columns: 1fr; }.document-sheet footer { display: grid; }.document-preview-dialog .dialog-heading { padding: 17px; } }
@media (max-width: 620px) { .contract-gate { padding: 16px; }.contract-gate-card { border-radius: 17px; }.contract-gate-document { align-items: flex-start; flex-direction: column; }.contract-address-fields { grid-template-columns: 1fr; } }
.stay-unit-option { min-height: 43px; margin: 0; padding: 10px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fbfaf5; cursor: pointer; font-size: var(--type-meta); }
.stay-unit-option:has(input:checked) { border-color: var(--amber); background: #f4edcf; }
.stay-unit-option input { width: 17px; min-height: 17px; margin: 0; accent-color: var(--amber); }
.stay-form-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 13px; }
.stay-field { margin: 12px 0 0 !important; color: var(--ink) !important; font-size: 12px !important; font-weight: var(--weight-label); }
.stay-field--wide { grid-column: 1 / -1; }
.stay-field small { color: var(--muted); font-weight: var(--weight-body); }
.stay-field input, .stay-field textarea { min-height: 45px; margin-top: 6px; border-radius: 9px; }
.stay-field textarea { display: block; width: 100%; min-height: 84px; padding: 12px 14px; border: 1px solid var(--line); color: var(--ink); background: #fff; font: inherit; font-size: var(--type-body); line-height: 1.4; resize: vertical; }
.stay-field textarea:focus-visible { outline: 2px solid #57534e; outline-offset: 2px; }
.stay-reference-note { margin: 12px 0 0; padding: 12px 14px; border-left: 3px solid var(--amber); color: var(--muted); background: var(--paper); font-size: var(--type-meta); line-height: 1.45; }
.stay-reference-note strong { color: var(--ink); }
.stay-form-actions { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; }
.stay-detail-dialog { width: min(1120px, calc(100% - 28px)); max-height: 92vh; overflow-y: auto; }
.stay-detail-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.stay-detail-intro h3 { margin: 11px 0 4px; color: var(--ink); font-size: var(--type-subtitle); line-height: 1.2; }
.stay-detail-intro p { margin: 0; color: var(--muted); font-size: var(--type-meta); }
.stay-detail-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.stay-detail-actions > * { min-height: 40px; padding: 9px 12px; border-radius: 8px; font-size: var(--type-caption); text-align: center; text-decoration: none; }
.stay-detail-facts { margin: 22px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stay-detail-facts > div { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.stay-detail-facts dt { color: var(--muted); font-size: var(--type-caption); font-weight: var(--weight-label); text-transform: uppercase; letter-spacing: .05em; }
.stay-detail-facts dd { margin: 7px 0 0; overflow-wrap: anywhere; color: var(--ink); font-size: var(--type-meta); font-weight: var(--weight-heading); line-height: 1.35; }
.stay-journey-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.stay-journey { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 13px; background: #ffffff; }
.stay-journey--inspection { border-top: 5px solid var(--amber); }
.stay-journey--cleaning { border-top: 5px solid #718568; }
.stay-journey-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.stay-journey-heading .overline { margin: 0 0 5px; color: var(--amber); font-size: var(--type-caption); }
.stay-journey-heading h3 { margin: 0; color: var(--ink); font-size: var(--type-subtitle); }
.stay-status--muted { color: #626262; background: #e8e8e8; }
.stay-detail-completion { margin: 15px 0 0; color: var(--muted); font-size: var(--type-caption); line-height: 1.5; }
.stay-detail-completion strong { color: var(--ink); }
.stay-journey-stats { margin: 15px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stay-journey-stats span { padding: 6px 9px; border-radius: 999px; color: var(--muted); background: var(--paper); font-size: var(--type-caption); }
.stay-journey-stats strong { color: var(--ink); }
.stay-detail-empty { margin: 16px 0 0; color: var(--muted); font-size: var(--type-meta); line-height: 1.5; }
.stay-signature { margin: 15px 0 0; padding: 8px; width: fit-content; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.stay-signature img { display: block; width: 150px; height: 54px; object-fit: contain; }
.stay-signature figcaption { margin-top: 5px; color: var(--muted); font-size: var(--type-caption); }
.stay-detail-issues { margin-top: 16px; display: grid; gap: 9px; }
.stay-detail-issue { padding: 12px; border-left: 4px solid var(--danger); background: #fff2ef; }
.stay-detail-issue > div:first-child { display: grid; gap: 2px; }
.stay-detail-issue strong { color: var(--ink); font-size: var(--type-caption); }
.stay-detail-issue small { color: var(--muted); font-size: var(--type-caption); }
.stay-detail-issue p { margin: 8px 0 0; color: var(--ink); font-size: var(--type-meta); line-height: 1.45; }
.stay-detail-photos { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 7px; }
.stay-detail-photos a { width: 68px; height: 54px; display: block; overflow: hidden; border: 1px solid rgba(34,31,28,.2); border-radius: 6px; background: #ffffff; }
.stay-detail-photos img { width: 100%; height: 100%; display: block; object-fit: cover; }
.user-create-fields { margin: 23px 0 0; padding: 17px; border: 1px solid var(--line); border-radius: 13px; }
.user-create-fields legend { padding: 0 6px; color: var(--ink); font-weight: var(--weight-heading); }
.user-create-fields label { margin-top: 12px; }

.photo-editor-layout { min-height: 700px; margin-top: 18px; display: grid; grid-template-columns: minmax(260px, 310px) minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: 0 18px 55px rgba(24,24,24,.1); }
.photo-picker { padding: 24px 18px; border-right: 1px solid var(--line); background: #ffffff; }
.photo-picker h2 { margin: 0; font-size: var(--type-section); }
.photo-picker > div > p:not(.overline) { margin: 8px 0 20px; color: var(--muted); font-size: var(--type-caption); line-height: 1.45; }
.photo-picker-fields { display: grid; gap: 12px; }
.photo-picker label { margin: 4px 0 0; }
.photo-picker label small { float: right; color: var(--muted); font-weight: var(--weight-body); }
.photo-picker select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; color: var(--ink); background: #ffffff; font: inherit; font-size: var(--type-meta); }
.photo-workspace { min-width: 0; padding: clamp(24px, 4vw, 42px); }
.photo-workspace-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.photo-workspace-heading h2 { font-size: var(--type-section); }
.photo-workspace-heading p:not(.overline) { margin: 7px 0 0; color: var(--muted); font-size: var(--type-meta); }
.photo-format-note { max-width: 660px; margin-top: 13px !important; padding-left: 10px; border-left: 3px solid var(--amber); color: var(--ink) !important; font-size: 11px !important; line-height: 1.45; }
.zone-photo-library { grid-column: 1 / -1; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.zone-photo-library-heading h3 { margin: 3px 0 4px; font-size: var(--type-subtitle); }
.zone-photo-library-heading p:not(.overline) { max-width: 680px; margin: 0; color: var(--muted); font-size: var(--type-meta); line-height: 1.45; }
.zone-photo-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.zone-photo-tile, .zone-photo-add { min-width: 0; aspect-ratio: 1; position: relative; display: grid; overflow: hidden; margin: 0; border-radius: 10px; background: #f5f3e8; }
.zone-photo-tile { border: 1px solid var(--line); }
.zone-photo-tile img { width: 100%; height: 100%; display: block; object-fit: cover; }
.zone-photo-tile figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 7px 8px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.76)); font-size: var(--type-caption); font-weight: var(--weight-heading); }
.zone-photo-add { place-items: center; align-content: center; gap: 3px; border: 2px dashed #b7ae91; color: var(--ink); cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.zone-photo-add:hover { border-color: #78736b; background: var(--amber-soft); }
.zone-photo-add input { width: 0; height: 0; opacity: 0; position: absolute; }
.zone-photo-add span { font-size: var(--type-title); line-height: .85; font-weight: var(--weight-body); }
.zone-photo-add small { font-size: var(--type-caption); font-weight: var(--weight-heading); }
.upload-button { min-height: 45px; margin: 0; padding: 11px 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: white; background: var(--pine); cursor: pointer; font-size: var(--type-meta); font-weight: var(--weight-label); white-space: nowrap; }
.upload-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-empty { min-height: 420px; margin-top: 25px; display: grid; place-content: center; justify-items: center; text-align: center; border: 1px dashed #aaaaaa; border-radius: 19px; color: var(--muted); background: #f7f7f7; }
.photo-empty > span { width: 65px; height: 65px; display: grid; place-items: center; border-radius: 20px; color: var(--pine); background: var(--pine-pale); font-size: var(--type-section); }
.photo-empty h3 { margin: 17px 0 3px; color: var(--ink); }
.photo-empty p { margin: 0; font-size: var(--type-meta); }
.photo-thumbnails { margin: 23px 0 15px; display: flex; gap: 11px; overflow-x: auto; padding: 4px 2px 7px; }
.photo-thumbnail { width: 108px; height: 76px; padding: 0; flex: none; overflow: hidden; border: 2px solid #3c3c3c; border-radius: 14px; background: #c8c8c8; cursor: pointer; }
.photo-thumbnail.active { border-color: #d4b559; }
.photo-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.interactive-photo-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(285px, .8fr); gap: 24px; align-items: start; }
.interactive-photo { min-height: 0; position: relative; overflow: hidden; border: 2px solid #3c3c3c; border-radius: 20px; background: #c8c8c8; cursor: crosshair; line-height: 0; }
.interactive-photo-image { width: 100%; height: auto; display: block; pointer-events: none; user-select: none; }
.placed-hotspot { width: 34px; height: 34px; position: absolute; transform: translate(-50%, -50%); border: 3px solid white; border-radius: 50%; color: #2b2b2b; background: #d4b559; box-shadow: 0 5px 16px rgba(0,0,0,.28); cursor: pointer; font-weight: var(--weight-heading); }
.placed-hotspot.active { outline: 4px solid rgba(112,112,112,.35); }
.photo-tip { margin: 8px 2px 0; color: var(--muted); font-size: var(--type-caption); }
.hotspot-panel { position: sticky; top: 18px; border: 1px solid var(--line); border-radius: 20px; padding: 17px; background: #ffffff; }
.hotspot-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.hotspot-heading h3 { margin: 0; font-size: var(--type-subtitle); }
.hotspot-heading span { color: var(--muted); font-size: var(--type-caption); }
.hotspot-list { max-height: calc(100dvh - 330px); overflow: auto; display: grid; gap: 11px; padding-right: 3px; }
.hotspot-card { padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.hotspot-card.active { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(112,112,112,.16); }
.hotspot-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hotspot-number { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; color: #2b2b2b; background: #d4b559; font-size: var(--type-caption); font-weight: var(--weight-heading); }
.hotspot-card label { margin: 10px 0 5px; font-size: var(--type-caption); }
.hotspot-card select, .hotspot-card textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px; color: var(--ink); background: white; font: inherit; font-size: var(--type-caption); }
.hotspot-card textarea { min-height: 65px; resize: vertical; }
.remove-hotspot { border: 0; color: var(--danger); background: transparent; cursor: pointer; font-size: var(--type-subtitle); }
.wide { width: 100%; margin-top: 12px; }
.guide-intro { margin: 22px 0 18px; padding: 14px 16px; display: grid; gap: 5px; border-left: 4px solid var(--amber); color: var(--ink); background: #f5f3e8; font-size: var(--type-meta); line-height: 1.45; }
.guide-intro span { color: var(--muted); }
.guide-list { display: grid; gap: 14px; }
.guide-card { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff; }
.guide-card h3 { margin: 0; font-size: var(--type-subtitle); }
.guide-card > label { margin: 15px 0 6px; display: block; color: var(--muted); font-size: var(--type-caption); }
.guide-card textarea { width: 100%; min-height: 84px; border: 1px solid var(--line); border-radius: 9px; padding: 10px; color: var(--ink); font: inherit; resize: vertical; }
.guide-photo-row { margin-top: 12px; display: flex; gap: 12px; align-items: center; }
.guide-photo-row img { width: 86px; height: 64px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); }
.guide-photo-row .upload-button { min-height: 38px; font-size: var(--type-caption); }

@media (max-width: 760px) {
  .login-layout { width: 100%; min-height: 100vh; margin: 0; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .brand-panel { min-height: 285px; padding: 25px; }
  .brand-copy { padding: 22px; border-radius: 16px; }
  .brand-panel .brand-headline { font-size: var(--type-title); }
  .brand-copy > p:not(.overline), .security-note { display: none; }
  .form-panel { padding: 38px 24px 55px; align-items: start; }
  .dashboard { width: min(100% - 28px, 600px); padding-top: 0; }
  .dashboard-header { margin-bottom: 26px; padding: 16px; align-items: center; }
  .dashboard-header .overline { display: none; }
  .dashboard-header h1 { font-size: var(--type-section); }
  .secondary-button { min-height: 42px; padding: 8px 11px; font-size: var(--type-caption); }
  .welcome-card { display: block; }
  .welcome-card p { margin-top: 5px; }
  .dashboard-intro { display: block; }
  .dashboard-intro .primary-button { width: 100%; margin-top: 22px; }
  .unit-grid, .tool-grid { grid-template-columns: 1fr; }
  .tool-grid--reservations { max-width: none; }
  .tool-card { min-height: 120px; }
  .editor { width: 100%; padding: 0; }
  .editor-header { padding: 15px 14px; position: sticky; top: 0; z-index: 5; background: rgba(245,245,245,.96); backdrop-filter: blur(12px); }
  .editor-title-row h1 { color: var(--ink); }
  .editor-title-row .overline, .editor-actions > span { display: none; }
  .editor-title-row h1 { font-size: var(--type-title); }
  .editor-actions .primary-button { min-height: 43px; padding: 8px 11px; font-size: var(--type-caption); }
  .editor-layout { min-height: 0; margin: 0; grid-template-columns: 1fr; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
  .zone-panel { border: 0; border-bottom: 1px solid var(--line); }
  .zone-list { max-height: 255px; }
  .zone-editor { padding: 27px 18px 55px; }
  .zone-editor-heading { display: block; }
  .zone-editor-heading .danger-button { margin-top: 12px; }
  .zone-fields { grid-template-columns: 1fr; }
  .controls-heading { display: block; }
  .controls-heading .secondary-button { width: 100%; margin-top: 14px; }
  .editable-control { grid-template-columns: 23px 1fr; }
  .control-actions { grid-column: 2; justify-content: flex-end; }
  .photo-editor-layout { margin: 0; grid-template-columns: 1fr; border-width: 1px 0 0; border-radius: 0; box-shadow: none; }
  .photo-picker { padding: 19px 16px; border: 0; border-bottom: 1px solid var(--line); }
  .photo-picker > div:first-child { display: none; }
  .photo-picker-fields { grid-template-columns: 1fr; }
  .photo-workspace { padding: 27px 16px 55px; }
  .photo-workspace-heading { display: block; }
  .upload-button { width: 100%; margin-top: 15px; }
  .interactive-photo-layout { grid-template-columns: 1fr; }
  .interactive-photo { min-height: 0; }
  .hotspot-panel { position: static; }
  .hotspot-list { max-height: none; }
}

/* Connexion propriétaire — Anétats */
body.owner-login {
  min-height: 100svh;
  background: #f5f3e8;
  font-family: var(--font-ui);
}
.owner-login .owner-shell {
  min-height: 100svh;
  padding: clamp(18px, 3vw, 42px);
  display: grid;
  place-items: center;
}
.owner-login .login-layout {
  width: min(1240px, 100%);
  min-height: min(760px, calc(100svh - clamp(36px, 6vw, 84px)));
  margin: 0;
  grid-template-columns: minmax(0, 1.22fr) minmax(400px, .78fr);
  border: 1px solid #d9d5c5;
  border-radius: 0;
  box-shadow: 0 24px 70px rgba(34,31,28,.12);
}
.owner-login .brand-panel {
  min-height: 620px;
  padding: clamp(32px, 5vw, 68px);
  justify-content: space-between;
  isolation: isolate;
  background-position: center;
}
.owner-login .brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(112deg, rgba(34,31,28,.94) 0%, rgba(34,31,28,.68) 48%, rgba(34,31,28,.16) 100%);
}
.owner-login .brand-panel-header { color: #fff; }
.owner-login .brand-wordmark {
  margin: 0;
  font-size: var(--type-title);
  font-weight: var(--weight-body);
  letter-spacing: -.06em;
}
.owner-login .brand-collection {
  margin: 4px 0 0;
  color: #e2dec8;
  font-size: var(--type-caption);
  font-weight: var(--weight-label);
  letter-spacing: .38em;
  text-transform: uppercase;
}
.owner-login .brand-copy {
  width: min(100%, 560px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-shadow: none;
}
.owner-login .brand-copy .overline {
  margin-bottom: 18px;
  color: #e2dec8;
  font-size: var(--type-caption);
  letter-spacing: .25em;
}
.owner-login .brand-panel .brand-headline {
  max-width: 620px;
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--type-title);
  font-weight: var(--weight-heading);
  letter-spacing: -.075em;
  line-height: 1.2;
}
.owner-login .brand-copy > p:not(.overline) {
  max-width: 500px;
  margin: 25px 0 0;
  color: #fff;
  font-size: var(--type-body);
  line-height: 1.65;
}
.owner-login .security-note {
  max-width: 430px;
  margin: 40px 0 0;
  padding: 15px 0 0;
  grid-template-columns: 28px 1fr;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.42);
  border-radius: 0;
  background: transparent;
}
.owner-login .security-note > span {
  width: 22px;
  height: 22px;
  color: #221f1c;
  background: #a28b1f;
  font-size: var(--type-caption);
}
.owner-login .security-note p { color: #fff; font-size: var(--type-caption); letter-spacing: .01em; }
.owner-login .form-panel {
  padding: clamp(36px, 6vw, 86px);
  background: #fff;
}
.owner-login #login-form { width: min(100%, 380px); }
.owner-login #login-form .overline {
  margin-bottom: 16px;
  color: #a28b1f;
  font-size: var(--type-caption);
  letter-spacing: .23em;
}
.owner-login h2 {
  font-family: var(--font-ui);
  font-size: var(--type-section);
  font-weight: var(--weight-heading);
  letter-spacing: -.07em;
  line-height: 1.2;
}
.owner-login .intro { margin: 18px 0 34px; color: #62615c; font-size: var(--type-meta); line-height: 1.65; }
.owner-login label { margin: 20px 0 8px; color: #221f1c; font-size: var(--type-caption); font-weight: var(--weight-label); letter-spacing: .06em; text-transform: uppercase; }
.owner-login input {
  min-height: 54px;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid #bdb8a6;
  border-radius: 0;
  font-size: var(--type-body);
}
.owner-login input:focus { border-color: #a28b1f; box-shadow: 0 2px 0 #a28b1f; }
.owner-login .password-field input { padding-right: 54px; }
.owner-login .password-field button {
  top: 10px;
  right: 0;
  height: 34px;
  width: 34px;
  border-radius: 50%;
  background: #f1efe5;
}
.owner-login #login-button {
  min-height: 55px;
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0;
  padding: 12px 18px 12px 20px;
  background: #221f1c;
  font-size: var(--type-caption);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.owner-login #login-button span { font-size: var(--type-section); font-weight: var(--weight-body); line-height: 0; }
.owner-login .fine-print { margin-top: 20px; text-align: left; font-size: var(--type-caption); line-height: 1.6; }
@media (max-width: 760px) {
  .owner-login .owner-shell { padding: 0; display: block; }
  .owner-login .login-layout { min-height: 100svh; grid-template-columns: 1fr; }
  .owner-login .brand-panel { min-height: 355px; padding: 28px 25px; }
  .owner-login .brand-panel .brand-headline { font-size: var(--type-title); }
  .owner-login .brand-copy > p:not(.overline) { display: block; margin-top: 16px; font-size: var(--type-meta); }
  .owner-login .security-note { display: none; }
  .owner-login .form-panel { padding: 42px 25px 58px; }
}

/* Charte unifiée — Anétats */
:root { --paper: #ffffff; --card: #ffffff; --line: #3c3c3c; --pine-pale: #f7f7f7; }
.login-layout, .editor-layout, .photo-editor-layout, .hotspot-panel { border-color: #3c3c3c; background: #ffffff; box-shadow: none; }
.form-panel, .zone-editor, .control-workspace, .photo-workspace { background: #ffffff; }
input, .hotspot-card select, .hotspot-card textarea { border-color: #3c3c3c; background: #ffffff; }
.primary-button { border: 0; border-radius: 999px; color: #ffffff; background: linear-gradient(120deg, #2b2b2b, #5a3100); }
.secondary-button, .back-button { border-color: #3c3c3c; border-radius: 999px; background: #ffffff; }
.dashboard-header { border-color: #d7d7d7; background: #ffffff; box-shadow: none; }
.dashboard-header h1, .editor-title-row h1, .tools-section > h2 { color: #2b2b2b; }
.dashboard-header .overline { color: #7a5814; }
#logout-button { border: 0; color: #ffffff; background: #2b2b2b; }
.dashboard-intro { border: 2px solid #3c3c3c; color: #2b2b2b; background: #ffffff; }
.dashboard-intro .overline, .dashboard-intro p:not(.overline) { color: #2b2b2b; }
.dashboard-intro .primary-button { color: #ffffff; background: linear-gradient(120deg, #2b2b2b, #5a3100); }
.unit-card, .tool-card { border: 2px solid #3c3c3c; color: #2b2b2b; background: #ffffff; box-shadow: none; }
.unit-card h3, .unit-card-edit, .tool-card-copy { border-color: transparent; color: #2b2b2b; background: transparent; box-shadow: none; text-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.unit-card h3::before, .unit-card-edit::before, .tool-card-copy::before { display: none; }
.unit-card h3::after, .unit-card-edit::after { display: none; }
.unit-card h3 { padding: 0; font-size: var(--type-subtitle); }
.unit-card-edit { padding: 7px 0; color: #6b4b09; }
.stats { border-top: 1px solid #3c3c3c; padding-top: 15px; }
.stat { border: 1px solid #3c3c3c; border-radius: 12px; background: #ffffff; }
.tool-card > .tool-icon { border: 1px solid #3c3c3c; border-radius: 50%; background: #ffffff; }
.tool-card-copy { padding: 0; }
.tool-card small { color: #555555; }
.welcome-card, .floor-management-item, .zone-item.active, .hotspot-card, .editable-control { border-color: #3c3c3c; background: #ffffff; }
.unit-tab.active { color: #2b2b2b; background: #d4b559; }
.zone-panel, .photo-zone-panel { background: #ffffff; }
.dashboard .editor-placeholder:hover, .dashboard .open-unit-editor:hover { outline-color: #57534e; filter: none; box-shadow: 0 10px 24px rgba(24,24,24,.1); }

/* Nom et régime : la paire identifie immédiatement chaque lieu. */
.unit-card-head { align-items: flex-start; }
.unit-card-heading { min-width: 0; }
.unit-card .unit-card-title {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 20px 11px;
  overflow-wrap: anywhere;
  border: 2px solid var(--amber);
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
  font-size: var(--type-display);
  font-weight: var(--weight-label);
  line-height: .95;
}
.unit-card .unit-card-title.editing { outline: 3px solid color-mix(in srgb, var(--amber) 28%, transparent); outline-offset: 3px; }
.unit-card .unit-rental-type {
  display: block;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--type-subtitle);
  font-weight: var(--weight-label);
  line-height: 1.15;
}

/* Anétats — application de la charte de marque */
:root {
  --ink: #221f1c;
  --muted: #62615c;
  --paper: #f5f3e8;
  --card: #ffffff;
  --line: #d9d5c5;
  --pine: #221f1c;
  --pine-dark: #000000;
  --pine-pale: #e2dec8;
  --amber: #a28b1f;
  --danger: #9c3c31;
}

body, .owner-shell { background: var(--paper); }
.login-layout { border-color: var(--line); border-radius: 18px; background: #ffffff; box-shadow: 0 18px 42px rgba(34,31,28,.13); }
.brand-panel { background-position: 52% center; }
.brand-copy { border-color: rgba(255,255,255,.28); border-radius: 12px; background: rgba(34,31,28,.54); }
.brand-panel .overline { color: #e2dec8; }
.form-panel { background: #ffffff; }
.overline, #login-form .overline, .dashboard .overline, .dashboard-header .overline, .editor-title-row .overline { color: var(--amber); }
input, .zone-fields select, .photo-picker select, .hotspot-card select, .hotspot-card textarea { border-color: var(--line); }
input:focus, .zone-fields select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(162,139,31,.16); }

.primary-button, .dashboard-intro .primary-button { border: 0; border-radius: 6px; color: #ffffff; background: var(--ink); }
.primary-button:hover, .dashboard-intro .primary-button:hover { background: #3d3c3a; }
.secondary-button, .back-button { border-color: var(--ink); border-radius: 6px; color: var(--ink); background: transparent; }
.dashboard-header { border: 0; border-bottom: 1px solid var(--line); background: #f5f3e8; box-shadow: none; }
.dashboard-header h1, .editor-title-row h1, .tools-section > h2 { color: var(--ink); }
#logout-button { border-radius: 6px; color: #ffffff; background: var(--ink); }

.dashboard-intro { border: 0; border-left: 5px solid var(--amber); border-radius: 0; color: var(--ink); background: #e2dec8; }
.dashboard-intro .overline, .dashboard-intro p:not(.overline) { color: var(--ink); }
.unit-card, .tool-card { border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #ffffff; box-shadow: 0 8px 20px rgba(34,31,28,.06); }
.unit-card { border-top: 5px solid var(--amber); }
.unit-card h3, .unit-card-edit, .tool-card-copy { color: var(--ink); }
.unit-card-head { align-items: stretch; }
.unit-card h3 { display: flex; align-items: center; }
.unit-card-title { cursor: text; }
.unit-card-title:hover { text-decoration: underline dotted var(--amber); text-underline-offset: 7px; }
.unit-card-title.editing { min-width: 150px; border: 1px solid var(--amber); border-radius: 6px; padding: 5px 8px; outline: none; background: #ffffff; text-decoration: none; }
.unit-card-edit { min-height: 46px; gap: 10px; border: 0; border-radius: 8px; padding: 10px 14px; color: #ffffff; background: var(--ink); font: inherit; font-weight: var(--weight-heading); cursor: pointer; }
.unit-card-edit:hover { color: #ffffff; background: #3d3c3a; }
.unit-card-edit .ui-icon { width: 15px; height: 15px; filter: invert(1); }
.unit-card-photo { height: 178px; margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #e2dec8; }
.unit-card-photo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.unit-card-photo > span { width: 100%; height: 100%; display: grid; place-items: center; }
.unit-card-photo > span .ui-icon { width: 44px; height: 44px; opacity: .55; }
.unit-presentation-upload { width: 46px; height: 46px; position: absolute; right: 14px; bottom: 14px; z-index: 2; display: grid; place-items: center; border-radius: 50%; color: #ffffff; background: var(--ink); box-shadow: 0 5px 14px rgba(34,31,28,.24); cursor: pointer; }
.unit-card-photo { position: relative; }
.unit-presentation-upload .ui-icon { width: 19px; height: 19px; filter: invert(1); }
.unit-presentation-upload input { width: 0; height: 0; opacity: 0; position: absolute; }
.unit-presentation-upload:hover { background: #3d3c3a; }
.unit-qr-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.unit-qr-link small { color: var(--muted); }
.copy-unit-link { border: 1px solid var(--amber); border-radius: 8px; padding: 8px 10px; color: var(--ink); background: #fff; font: inherit; font-weight: var(--weight-heading); cursor: pointer; }
.copy-unit-link:hover { background: var(--amber-soft); }
#documents-dialog { padding: clamp(24px, 5vw, 38px); }
.stats { border-color: var(--line); }
.stat { border-color: transparent; border-radius: 8px; background: #f5f3e8; }
.tool-card > .tool-icon { border-color: transparent; border-radius: 8px; color: #ffffff; background: var(--amber); }
.tool-card > .tool-icon img { filter: invert(1); }
.tool-card small { color: var(--muted); }
.dashboard .editor-placeholder:hover, .dashboard .open-unit-editor:hover { outline-color: #57534e; box-shadow: 0 12px 28px rgba(34,31,28,.14); }

/* Tableau de bord : trois espaces métier sans mélange des responsabilités. */
.dashboard-intro { margin-bottom: 38px; padding: 0; border: 0; background: transparent; }
.dashboard-intro h2 { max-width: 16ch; margin: 0; font-size: var(--type-section); }
.dashboard-intro p:not(.overline) { max-width: 58ch; margin: 12px 0 0; color: var(--muted); font-size: var(--type-body); }
.management-section { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.55fr); gap: clamp(24px, 5vw, 68px); padding: 34px 0; border-top: 1px solid var(--line); }
.management-section:first-of-type { border-top-color: var(--ink); }
.management-heading { align-self: start; }
.management-heading h2 { margin: 0; color: var(--ink); font-size: var(--type-section); line-height: 1.2; }
.management-heading p { max-width: 31ch; margin: 10px 0 0; color: var(--muted); line-height: 1.5; }
.management-heading .primary-button { width: 100%; max-width: 248px; margin-top: 22px; min-height: 50px; }
.management-content { min-width: 0; }
.management-tools { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.management-section--clients .management-tools { max-width: 520px; }
.management-section--stays .management-tools { max-width: 790px; }
.management-section--personalisation .unit-grid { margin: 0 0 16px; }
.management-section--personalisation .tool-card { min-height: 132px; }
.management-section--clients .tool-card,
.management-section--stays .tool-card { min-height: 132px; }

.smoobu-dialog { width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--ink); border-radius: 4px; background: var(--smoobu-surface-muted); box-shadow: none; }
.smoobu-dialog .dialog-body { padding: clamp(24px, 4vw, 40px); }
.smoobu-dialog .dialog-close { border-radius: 4px; }
.smoobu-dialog .dialog-heading p { max-width: 58ch; margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.smoobu-notice { margin-top: 24px; padding: 16px; border: 1px solid var(--smoobu-warning); border-radius: 4px; background: var(--smoobu-warning-soft); }
.smoobu-notice p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.smoobu-dialog .smoobu-connect-form { margin-top: 24px; padding: 0; overflow: hidden; border: 1px solid var(--smoobu-rule); border-radius: 4px; background: var(--smoobu-surface); }
.smoobu-explanation { padding: 20px; border-bottom: 1px solid var(--smoobu-rule); background: var(--smoobu-surface-muted); }
.smoobu-explanation strong { display: block; color: var(--ink); font-size: var(--type-subtitle); }
.smoobu-explanation p { max-width: 72ch; margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.smoobu-explanation a { margin-top: 12px; display: inline-block; color: var(--ink); font-weight: var(--weight-heading); text-underline-offset: 4px; }
.smoobu-credential-grid { margin: 0; padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.smoobu-credential-grid label { display: grid; gap: 8px; color: var(--ink); font-size: var(--type-meta); font-weight: var(--weight-heading); }
.smoobu-credential-grid input { min-height: 48px; border-color: var(--smoobu-rule); border-radius: 4px; }
.smoobu-credential-grid input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(162,139,31,.16); }
.smoobu-connect-actions { padding: 16px 20px; display: flex; justify-content: space-between; gap: 16px; align-items: center; border-top: 1px solid var(--smoobu-rule); background: var(--smoobu-surface-muted); }
.smoobu-connect-actions span { color: var(--muted); font-size: var(--type-caption); }
.smoobu-connect-actions .primary-button { min-height: 48px; border-radius: 4px; white-space: nowrap; }
.smoobu-dialog #smoobu-message:not(:empty) { min-height: 0; margin-top: 20px; padding: 12px 16px; border: 1px solid var(--smoobu-rule); border-radius: 4px; }
.smoobu-dialog #smoobu-message.success { color: var(--smoobu-success); background: var(--smoobu-success-soft); }
.smoobu-dialog #smoobu-message.error { color: var(--smoobu-error); background: var(--smoobu-error-soft); }
.smoobu-status { margin-top: 24px; padding: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--smoobu-rule); border-radius: 4px; background: var(--smoobu-surface); }
.smoobu-status-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 3px; color: white; background: var(--smoobu-success); font-weight: var(--weight-heading); }
.smoobu-status strong, .smoobu-status small { display: block; }
.smoobu-status small { margin-top: 4px; color: var(--muted); }
.smoobu-live-label { padding: 4px 8px; border: 1px solid var(--smoobu-success); border-radius: 3px; color: var(--smoobu-success); background: var(--smoobu-success-soft); font-size: var(--type-caption); font-weight: var(--weight-heading); text-transform: uppercase; }
.smoobu-panel { margin-top: 20px; overflow: hidden; border: 1px solid var(--smoobu-rule); border-radius: 4px; background: var(--smoobu-surface); }
.smoobu-panel-heading { padding: 16px; display: flex; justify-content: space-between; gap: 16px; align-items: start; border-bottom: 1px solid var(--smoobu-rule); background: var(--smoobu-surface-muted); }
.smoobu-panel-heading h3 { margin: 0; font-size: var(--type-subtitle); }
.smoobu-panel-heading p { max-width: 62ch; margin: 4px 0 0; color: var(--muted); line-height: 1.45; }
.smoobu-panel-count { flex: none; padding: 4px 8px; border: 1px solid var(--smoobu-rule); border-radius: 3px; color: var(--muted); background: var(--smoobu-surface); font-family: var(--button-font); font-size: var(--type-caption); font-weight: var(--weight-heading); text-transform: uppercase; }
.smoobu-mappings { display: grid; }
.smoobu-mapping { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 1fr); gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.smoobu-mapping:last-child { border-bottom: 0; }
.smoobu-mapping strong, .smoobu-mapping small { display: block; }
.smoobu-mapping small { margin-top: 4px; color: var(--muted); }
.smoobu-mapping-result { justify-self: end; max-width: 38ch; color: var(--muted); text-align: right; overflow-wrap: anywhere; }
.smoobu-mapping-result--matched, .smoobu-mapping-result--existing, .smoobu-mapping-result--group { color: var(--smoobu-success); font-weight: var(--weight-heading); }
.smoobu-mapping-result--create, .smoobu-mapping-result--group-pending { color: var(--smoobu-warning); font-weight: var(--weight-heading); }
.smoobu-preview-empty { padding: 24px 16px; display: grid; gap: 4px; color: var(--muted); }
.smoobu-preview-empty strong { color: var(--ink); }
.smoobu-preview-summary { padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--smoobu-rule); background: var(--smoobu-surface); }
.smoobu-preview-total { padding: 4px 8px; display: inline-flex; gap: 4px; align-items: baseline; border: 1px solid var(--smoobu-rule); border-radius: 3px; color: var(--muted); font-size: var(--type-caption); }
.smoobu-preview-total strong { color: var(--ink); font-family: var(--button-font); }
.smoobu-preview-list { display: grid; }
.smoobu-preview-row { padding: 16px; display: grid; grid-template-columns: minmax(150px, .85fr) minmax(220px, 1.25fr) auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.smoobu-preview-row:last-child { border-bottom: 0; }
.smoobu-preview-guest, .smoobu-preview-stay { min-width: 0; display: grid; gap: 4px; }
.smoobu-preview-guest span, .smoobu-preview-stay span { color: var(--muted); font-size: var(--type-caption); overflow-wrap: anywhere; }
.smoobu-preview-stay p { margin: 4px 0 0; color: var(--smoobu-error); font-size: var(--type-caption); line-height: 1.4; }
.smoobu-preview-warning { color: var(--smoobu-warning) !important; font-weight: var(--weight-heading); }
.smoobu-preview-action { min-width: 88px; padding: 8px; border: 1px solid currentColor; border-radius: 3px; text-align: center; font-family: var(--button-font); font-size: var(--type-caption); font-weight: var(--weight-heading); text-transform: uppercase; }
.smoobu-preview-action--create, .smoobu-preview-action--update { color: var(--smoobu-success); background: var(--smoobu-success-soft); }
.smoobu-preview-action--archive, .smoobu-preview-action--ignored { color: var(--smoobu-warning); background: var(--smoobu-warning-soft); }
.smoobu-preview-action--conflict { color: var(--smoobu-error); background: var(--smoobu-error-soft); }
.smoobu-sync-summary { margin-top: 18px; padding-top: 18px; display: flex; justify-content: space-between; gap: 14px; align-items: center; border-top: 1px solid var(--line); }
.smoobu-sync-summary span { color: var(--muted); font-size: var(--type-meta); }
.smoobu-skipped-details { margin-top: 16px; padding: 16px; border: 1px solid var(--smoobu-error); border-radius: 4px; color: var(--smoobu-error); background: var(--smoobu-error-soft); }
.smoobu-skipped-details > strong { display: block; }
.smoobu-skipped-details ul { margin: 8px 0 0; padding-left: 20px; }
.smoobu-skipped-details li + li { margin-top: 8px; }
.smoobu-skipped-details li span { display: block; margin-top: 4px; color: var(--smoobu-error-muted); overflow-wrap: anywhere; }
.smoobu-skipped-details p { margin: 8px 0 0; color: var(--smoobu-error-muted); }
.smoobu-actions { grid-template-columns: auto 1fr auto auto; }
.smoobu-actions button { border-radius: 4px; white-space: nowrap; }
.smoobu-actions button:focus-visible { outline: 2px solid #57534e; outline-offset: 2px; }
.smoobu-actions button:active { transform: translateY(1px); }
.smoobu-actions button:disabled { opacity: .55; cursor: not-allowed; }
.smoobu-actions button[data-state="error"] { border-color: var(--smoobu-error); color: var(--smoobu-error); background: var(--smoobu-error-soft); }
.smoobu-actions button[data-state="success"] { border-color: var(--smoobu-success); }

@media (max-width: 760px) {
  .dashboard-intro { margin-bottom: 28px; }
  .management-section { grid-template-columns: 1fr; gap: 18px; padding: 28px 0; }
  .management-heading p { max-width: 48ch; }
  .management-heading .primary-button { max-width: none; }
  .management-section--clients .management-tools,
  .management-section--stays .management-tools { max-width: none; }
  .tool-grid--reservations, .smoobu-credential-grid { grid-template-columns: 1fr; }
  .smoobu-connect-actions { align-items: stretch; flex-direction: column; }
  .smoobu-connect-actions .primary-button { width: 100%; }
  .smoobu-mapping { grid-template-columns: 1fr; }
  .smoobu-mapping-result { justify-self: start; text-align: left; }
  .smoobu-panel-heading { flex-direction: column; }
  .smoobu-preview-row { grid-template-columns: 1fr; gap: 10px; }
  .smoobu-preview-action { width: fit-content; }
  .smoobu-sync-summary { align-items: stretch; flex-direction: column; }
  .smoobu-actions { grid-template-columns: 1fr; }
  .smoobu-actions span { display: none; }
}

.editor-layout, .photo-editor-layout { border-color: var(--line); border-radius: 14px; background: #ffffff; box-shadow: 0 12px 30px rgba(34,31,28,.08); }
.zone-panel, .photo-picker { border-color: var(--line); background: #f5f3e8; }
.unit-tabs { background: #e2dec8; }
.unit-tab.active { color: #ffffff; background: var(--ink); }
.zone-panel-heading button, .upload-button { border-radius: 6px; background: var(--ink); }
.floor-management-item, .zone-item.active { border-color: var(--amber); color: var(--ink); background: #e2dec8; }
.floor-label { border-color: transparent; border-left-color: var(--amber); border-radius: 0; color: var(--ink); background: #e2dec8; box-shadow: none; }
.zone-item.active small { color: var(--muted); }
.accent-toolbar button { border-color: transparent; color: var(--ink); background: #e2dec8; }
.accent-toolbar button:hover, .accent-toolbar button:focus-visible { border-color: #78736b; background: #f5f3e8; }
.prefix-option, .photo-empty { border-color: var(--line); border-radius: 10px; background: #f5f3e8; }
.prefix-option input { accent-color: var(--amber); }
.editable-control, .hotspot-card, .hotspot-panel { border-color: var(--line); border-radius: 10px; background: #ffffff; }
.hotspot-card.active { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(162,139,31,.12); }
.hotspot-number, .placed-hotspot { color: #ffffff; background: var(--amber); }
.photo-thumbnail { border-color: var(--line); border-radius: 8px; }
.photo-thumbnail.active, .interactive-photo { border-color: var(--amber); }
.owner-dialog { border-color: var(--line); border-radius: 14px; background: #ffffff; }
.dialog-heading .overline { color: var(--amber); }
.dialog-close { border-radius: 6px; background: var(--ink); }

@media (max-width: 560px) {
  .stays-dialog { width: min(100% - 16px, 980px); max-height: calc(100dvh - 16px); }
  .documents-dialog { width: min(100% - 16px, 980px); max-height: calc(100dvh - 16px); }
  .stays-dialog-heading { align-items: flex-start; }
  .stays-heading-actions { width: 100%; justify-content: space-between; }
  .stays-heading-actions .primary-button { flex: 1; }
  .stay-row { grid-template-columns: 1fr; align-items: stretch; gap: 15px; }
  .stay-actions { max-width: none; justify-content: stretch; }
  .stay-actions > * { flex: 1 1 calc(50% - 4px); text-align: center; }
  .stay-actions .open-stay-detail { flex-basis: 100%; }
  .document-row { grid-template-columns: 1fr; align-items: stretch; gap: 15px; }
  .document-actions { max-width: none; justify-content: stretch; }
  .document-actions > * { flex: 1 1 100%; text-align: center; }
  .stay-form-panel { padding: 16px; }
  .stay-units, .stay-form-grid { grid-template-columns: 1fr; }
  .stay-field--wide { grid-column: auto; }
  .stay-detail-intro { display: grid; }
  .stay-detail-actions { justify-content: stretch; }
  .stay-detail-actions > * { flex: 1 1 145px; }
  .stay-detail-facts, .stay-journey-grid { grid-template-columns: 1fr; }
}

/* Robustesse responsive : les informations, cartes et images ne sont jamais coupées. */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; }
button, input, select, textarea { min-width: 0; }
.dashboard, .editor, .editor-layout, .photo-editor-layout, .zone-panel, .photo-picker,
.zone-editor, .photo-workspace, .unit-card, .tool-card, .stay-row, .stay-main,
.stay-detail-intro, .stay-journey, .user-row, .dialog-heading { min-width: 0; }
.dashboard h1, .dashboard h2, .dashboard h3, .editor h1, .editor h2, .editor h3,
.owner-dialog h2, .owner-dialog h3, .unit-card-title, .stay-heading strong,
.stay-guest, .stay-meta, .tool-card strong, .tool-card small, .unit-qr-link small {
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* Les libellés configurés par le propriétaire ne sont plus réduits à une ellipse. */
.zone-item { align-items: flex-start; }
.zone-item span { overflow: visible; text-overflow: clip; white-space: normal; }
.zone-item small { padding-top: 1px; }
.unit-card-head, .dashboard-header, .editor-header, .zone-editor-heading,
.stay-detail-intro, .unit-qr-link { flex-wrap: wrap; }
.unit-card h3 { max-width: 100%; white-space: normal; }
.unit-card-edit, .dashboard-intro .primary-button, .upload-button, .copy-unit-link,
.stay-actions .secondary-button, .stay-detail-actions > * { white-space: normal; }
.tool-card { overflow: visible; }
.tool-grid { width: 100%; min-width: 0; }
.tool-card { width: 100%; max-width: 100%; min-width: 0; }
.tool-card-copy { width: auto; max-width: 100%; min-width: 0; overflow: visible; }
.tool-card strong, .tool-card small { display: block; white-space: normal; }
.unit-card-photo { height: auto; min-height: 0; aspect-ratio: 16 / 7; display: grid; place-items: center; }
.unit-card-photo img { height: 100%; object-fit: contain; background: #e2dec8; }
.zone-fields { grid-template-columns: minmax(0, 1.5fr) minmax(0, .7fr); }
.stay-form-actions { gap: 9px; }

@media (max-width: 1040px) {
  .interactive-photo-layout { grid-template-columns: minmax(0, 1fr); }
  .hotspot-panel { position: static; }
  .hotspot-list { max-height: none; }
}

@media (max-width: 940px) and (min-width: 761px) {
  .owner-login .owner-shell { padding: 18px; }
  .owner-login .login-layout { grid-template-columns: minmax(0, 1fr); }
  .owner-login .brand-panel { min-height: 390px; }
  .owner-login .form-panel { padding: 48px; }
}

@media (max-width: 700px) {
  .editor-header, .dashboard-header { align-items: flex-start; }
  .editor-actions { width: 100%; justify-content: space-between; }
  .zone-fields, .stay-units, .stay-form-grid, .stay-detail-facts, .stay-journey-grid { grid-template-columns: minmax(0, 1fr); }
  .stay-field--wide { grid-column: auto; }
  .stay-form-actions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stay-form-actions > :first-child { grid-column: 1 / -1; justify-self: start; }
  .unit-qr-link > * { max-width: 100%; }
}

@media (max-width: 420px) {
  .dashboard { width: min(100% - 20px, 600px); }
  .dashboard-header { padding: 14px 10px; gap: 12px; }
  .dashboard-header h1 { font-size: var(--type-section); }
  #logout-button { padding-right: 10px; padding-left: 10px; }
  .unit-card, .tool-card { padding: 16px; }
  .unit-card-photo { min-height: 0; margin-top: 14px; }
  .owner-dialog form, .owner-dialog .dialog-body { padding: 20px 16px; }
  .dialog-heading h2 { font-size: var(--type-section); }
}

/* Les boutons partagent la famille sans empattement de l’interface. */
button,
.primary-button,
.secondary-button,
.back-button,
.danger-button,
.upload-button { font-family: var(--font-ui) !important; }

/* Administration propriétaire : hiérarchie éditoriale sobre, sans contours décoratifs. */
:root {
  --content-font: var(--font-ui);
  font-family: var(--content-font);
}

body,
input,
select,
textarea,
h1,
h2,
h3,
h4,
p,
small,
strong,
label,
legend { font-family: var(--content-font); }

.dashboard-header {
  position: sticky;
  top: 0;
  z-index: 30;
  box-sizing: border-box;
  height: 55px;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 44px;
  border: 0;
  background: #ffffff;
  box-shadow: none;
}

.dashboard-header h1,
.editor-title-row h1 { color: var(--ink); }

.dashboard-header h1 {
  font-family: var(--content-font);
  font-size: var(--type-section);
  font-weight: var(--weight-heading);
  letter-spacing: .06em;
  line-height: 1.2;
}

.dashboard-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.dashboard-intro {
  margin: 0 auto 48px;
  padding: 0;
  display: block;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.dashboard-intro h2,
#project-title {
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
  font-size: var(--type-section);
  font-weight: var(--weight-heading);
  line-height: 1.2;
}

.dashboard-intro p:not(.overline) {
  max-width: 62ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: var(--type-subtitle);
  line-height: 1.45;
}

.management-section {
  display: block;
  padding: 50px 0;
  border: 0;
}

.management-section:first-of-type { border: 0; }

.management-heading {
  max-width: 680px;
  margin: 0 auto 28px;
  text-align: center;
}

.management-heading h2 {
  font-size: var(--type-section);
  font-weight: var(--weight-heading);
}

.management-heading p {
  max-width: 50ch;
  margin: 12px auto 0;
  font-size: var(--type-subtitle);
}

.management-heading .primary-button { margin-right: auto; margin-left: auto; }
.management-content { max-width: 920px; margin: 0 auto; }
.management-tools,
.management-section--clients .management-tools,
.management-section--stays .management-tools { max-width: 620px; margin: 0 auto; }

.unit-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; margin: 0 0 34px; }

.unit-card {
  padding: 28px;
  border: 0;
  border-top: 0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(34,31,28,.10);
  cursor: default;
  overflow: hidden;
  transition: transform .38s cubic-bezier(.16,1,.3,1), box-shadow .38s cubic-bezier(.16,1,.3,1);
}

.unit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 27px 56px rgba(34,31,28,.16);
}

.unit-card-head { align-items: flex-start; }
.unit-card-heading { min-width: 0; }
.unit-card h3 { margin: 0; padding: 0; font-size: var(--type-subtitle); font-weight: var(--weight-heading); line-height: 1.2; }
.unit-card-title { overflow-wrap: normal; white-space: nowrap; }
.unit-rental-type { display: block; margin-top: 7px; color: var(--muted); font-size: var(--type-body); }

.stats {
  width: auto;
  margin: 0;
  display: flex;
  flex: none;
  gap: 16px;
  background: transparent;
}

.stat {
  min-width: 50px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  text-align: right;
}

.stat + .stat { padding-left: 16px; border-left: 1px solid var(--line); }
.stat strong { font-size: var(--type-section); font-variant-numeric: tabular-nums; }
.stat small { margin-top: 2px; color: var(--muted); font-size: var(--type-caption); }

.unit-card-edit {
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
  box-shadow: none;
  transition: background .2s ease, letter-spacing .28s cubic-bezier(.16,1,.3,1);
}

.unit-card-edit:hover { color: #ffffff; background: #3d3c3a; letter-spacing: .02em; }
.unit-card-edit .ui-icon { transition: transform .28s cubic-bezier(.16,1,.3,1); }
.unit-card:hover .unit-card-edit .ui-icon { transform: translateX(5px); }

.unit-card-photo {
  height: auto;
  min-height: 0;
  margin-top: 18px;
  border: 0;
  border-radius: 12px;
  aspect-ratio: 16 / 7;
  background: var(--pine-pale);
}

.unit-card-photo img { object-fit: cover; transition: transform .65s cubic-bezier(.16,1,.3,1), filter .4s ease; }
.unit-card:hover .unit-card-photo img { transform: scale(1.045); filter: saturate(1.06) contrast(1.02); }
.unit-presentation-upload { border: 0; box-shadow: 0 8px 20px rgba(34,31,28,.2); }

.unit-qr-link { margin-top: 22px; padding: 0; justify-content: flex-start; border: 0; }
.copy-unit-link { min-height: 46px; border: 0; border-radius: 8px; padding: 10px 14px; color: var(--ink); background: var(--amber-soft); }
.copy-unit-link:hover { background: #e9dfbb; }
.delete-unit { margin-top: 14px; border: 0; background: transparent; color: var(--danger); }
.delete-unit:hover { color: #ffffff; background: var(--danger); }

.tool-card {
  min-height: 146px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(34,31,28,.08);
  transition: transform .28s cubic-bezier(.16,1,.3,1), box-shadow .28s ease;
}

.tool-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(34,31,28,.14);
}

.tool-card-copy { padding: 0; background: transparent; }
.tool-card > .tool-icon { margin-bottom: 13px; }

.qr-link-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  margin: 0;
  padding: 13px 18px;
  border-radius: 9px;
  color: #ffffff;
  background: var(--ink);
  box-shadow: 0 14px 32px rgba(34,31,28,.22);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .18s ease, transform .18s ease;
}

.qr-link-toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 700px) {
  .dashboard-header { height: 55px; margin-bottom: 30px; }
  .dashboard-header-actions { gap: 7px; }
  .dashboard-header-actions .secondary-button { min-height: 42px; padding: 8px 10px; font-size: var(--type-caption); }
  .dashboard-intro h2, #project-title { font-size: var(--type-section); }
  .dashboard-intro p:not(.overline) { font-size: var(--type-body); }
  .management-section { padding: 34px 0; }
  .management-heading { margin-bottom: 22px; }
  .unit-card { padding: 22px; }
  .unit-card-head { gap: 16px; }
  .stats { gap: 10px; }
  .stat + .stat { padding-left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .unit-card,
  .unit-card-edit,
  .unit-card-edit .ui-icon,
  .unit-card-photo img,
  .tool-card,
  .qr-link-toast { transition-duration: .01ms; }
  .unit-card:hover,
  .tool-card:hover { transform: none; }
  .unit-card:hover .unit-card-photo img,
  .unit-card:hover .unit-card-edit .ui-icon { transform: none; }
}

/* Pièces : surface de travail large, continue et directement manipulable. */
.dashboard { width: min(1480px, calc(100% - 48px)); }
.management-content { max-width: 1420px; }
.unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.management-section--personalisation .management-tools { max-width: 380px; }

.stats {
  gap: 20px;
  border: 0;
  padding: 0;
}

.stat,
.stat + .stat {
  min-width: 64px;
  padding: 0;
  border: 0;
  text-align: center;
}

.stat strong { font-family: var(--content-font); font-size: var(--type-section); font-weight: var(--weight-label); }
.stat small { font-family: var(--content-font); font-size: var(--type-meta); }

.editor { width: min(1480px, calc(100% - 40px)); padding-top: 18px; }
.editor button { font-family: var(--content-font) !important; }
.editor-header { min-height: 70px; }
.editor-layout { margin-top: 12px; grid-template-columns: 350px minmax(0, 1fr); }
.zone-panel { padding: 18px 16px 28px; }

.unit-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}

.unit-tab { position: relative; overflow: hidden; transition: color .26s ease, background .26s ease; }
.unit-tab.active { color: #ffffff; background: var(--ink); animation: selected-unit-slide .38s cubic-bezier(.16,1,.3,1); }

@keyframes selected-unit-slide {
  from { transform: translateX(-18px); opacity: .42; }
  to { transform: translateX(0); opacity: 1; }
}

.zone-panel { padding: 20px; }
.unit-tabs { padding: 6px; }
.floor-panel-heading { margin: 26px 2px 12px; }
.floor-panel-heading > div { display: grid; gap: 3px; }
.floor-panel-heading strong { font-size: var(--type-subtitle); }
.floor-panel-heading small { font-size: var(--type-caption); }
.floor-management-list { gap: 7px; }
.floor-management-item {
  min-height: 58px;
  padding: 6px 7px 6px 15px;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 0;
  border-radius: 12px;
  background: #eeebdc;
  opacity: .58;
  transition: opacity .18s ease, background .18s ease;
}

.floor-management-item.active { color: var(--ink); background: #ffffff; box-shadow: none; opacity: 1; }
.floor-management-item .select-floor { width: 100%; min-width: 0; min-height: 100%; padding: 4px 0; border: 0; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.floor-management-item .select-floor:hover { background: transparent; }
.floor-management-item .select-floor:focus-visible { outline: 2px solid #57534e; outline-offset: 3px; }
.floor-management-item:hover { opacity: .82; }
.floor-management-item .select-floor span { display: grid; gap: 2px; }
.floor-management-item .select-floor strong { font-size: var(--type-body); }
.floor-management-item .select-floor small { display: block; font-size: var(--type-meta); line-height: 1.2; white-space: nowrap; }
.floor-management-item .delete-floor { align-self: center; background: transparent; }
.floor-management-item .delete-floor:hover { color: inherit; background: transparent; opacity: .62; }

.zone-list { max-height: none; overflow: visible; display: block; margin-top: 26px; padding: 20px 0 0; border-top: 1px solid rgba(34,31,28,.14); }
.room-list-section { display: grid; gap: 10px; }
.room-list-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.room-list-heading > div { display: grid; gap: 2px; }
.room-list-heading strong { font-size: var(--type-subtitle); }
.room-list-heading small { color: var(--muted); font-size: var(--type-caption); }
.room-list-heading > span { padding: 4px 7px; border-radius: 999px; color: #605019; background: #f3e6b2; font-size: var(--type-caption); font-weight: var(--weight-heading); letter-spacing: .04em; text-transform: uppercase; }
.room-list { display: grid; gap: 5px; }

.add-zone-button {
  width: 100%;
  min-height: 44px;
  margin: 4px 0 0;
  border: 1px solid var(--amber);
  border-radius: 10px;
  color: var(--ink);
  background: #ffffff;
  cursor: pointer;
}
.add-zone-button:hover,
.add-zone-button:focus-visible { color: var(--ink); background: #ffffff; border-color: #78736b; opacity: .68; }
.zone-list-row { grid-template-columns: minmax(0, 1fr) 34px; gap: 6px; }
.zone-item { position: relative; min-height: 46px; padding: 9px 11px; border: 1px solid transparent; border-radius: 10px; color: var(--ink); opacity: .6; transition: opacity .18s ease, background .18s ease; }
.zone-item:hover { background: transparent; opacity: .82; }
.zone-item.active { border-color: transparent; color: var(--ink); background: #ffffff; box-shadow: none; opacity: 1; transform: none; }
.zone-item.active::before { display: none; }
.delete-zone-inline { width: 34px; height: 34px; border-radius: 10px; color: var(--muted); background: transparent; }
.delete-zone-inline:hover { color: var(--muted); background: transparent; opacity: .62; }
.empty-zone-list { margin: 0; padding: 15px 13px; border-color: #d9d3bd; border-radius: 10px; color: var(--ink); background: #faf9f3; }

.zone-editor { padding: 24px clamp(30px, 5vw, 58px) 48px; }
.zone-editor-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; }
.zone-editor-heading > div { grid-column: 2; text-align: center; }
.zone-editor-heading > .danger-button { grid-column: 3; justify-self: end; }
.zone-editor-heading .overline { margin-bottom: 8px; }
.zone-editor-heading h2 { font-family: var(--content-font); }

.zone-fields { margin-top: 26px; align-items: start; }
.zone-fields > div { min-width: 0; display: grid; align-content: start; }
.zone-fields > div > label,
.zone-fields > div > .field-label { min-height: 20px; margin: 0 0 7px; }
.field-label { display: block; margin: 18px 0 7px; color: var(--muted); font-size: var(--type-meta); }
.zone-name-input-shell {
  min-height: 52px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
}

.zone-name-input-shell:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(162,139,31,.16); }
.zone-name-input-shell input { grid-column: 2; min-width: 0; min-height: 48px; border: 0; padding: 10px 7px; box-shadow: none; }
.zone-name-input-shell input:focus { box-shadow: none; }
.zone-prefix-leading { grid-column: 1; padding-left: 14px; color: var(--muted); font-size: var(--type-body); white-space: nowrap; }
.zone-prefix-leading[hidden] { display: block; visibility: hidden; }
#zone-prefix-toggle { grid-column: 3; width: 178px; min-height: 36px; margin-right: 7px; border: 0; border-radius: 7px; padding: 6px 10px; color: var(--muted); background: #f1eee2; cursor: pointer; }
#zone-prefix-toggle[aria-pressed="true"] { color: #ffffff; background: var(--ink); }
.room-template-label { margin-top: 12px !important; }
.room-template-select { width: 100%; }

.accent-strip { margin-top: 9px; }
.accent-toolbar {
  width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(17, minmax(0, 1fr));
  gap: 5px;
  overflow: visible;
  scrollbar-width: none;
}

.accent-toolbar button { width: auto; min-width: 0; height: 32px; flex: none; border: 0; border-radius: 7px; }
.dialog-accent-strip .accent-toolbar { grid-template-columns: repeat(17, minmax(0, 1fr)); }

.floor-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.floor-choice { min-height: 50px; border: 0; border-radius: 8px; color: var(--muted); background: #f1eee2; cursor: pointer; }
.floor-choice.active { color: #ffffff; background: var(--ink); }

@media (max-width: 760px) {
  .dashboard { width: min(100% - 24px, 1480px); }
  .unit-grid { grid-template-columns: 1fr; gap: 20px; }
  .editor { width: min(100% - 20px, 1480px); }
  .editor-layout { grid-template-columns: 1fr; }
  .zone-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .zone-editor-heading { grid-template-columns: 1fr; gap: 14px; }
  .zone-editor-heading > div,
  .zone-editor-heading > .danger-button { grid-column: auto; justify-self: center; }
  .zone-fields { grid-template-columns: 1fr; }
  .unit-tab { font-size: var(--type-meta); }
  #zone-prefix-toggle { width: 132px; }
  .users-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .users-dialog .dialog-heading { padding: 20px 18px 16px; }
  .users-section { padding: 20px 18px; }
  .users-section-heading { display: grid; gap: 10px; }
  .user-row, .account-request-row { grid-template-columns: 1fr; align-items: start; }
  .account-request-status { max-width: none; justify-self: start; }
  .user-row-side { justify-content: space-between; }
  .user-actions { justify-content: flex-start; }
  .user-create-fields { grid-template-columns: 1fr; padding: 14px; }
  .user-create-fields label:first-of-type, .user-create-fields label:last-of-type, .user-create-fields small { grid-column: auto; }
  .users-dialog .dialog-actions { padding: 14px 18px 18px; }
  .cleaning-code-panel { grid-template-columns: 1fr; }
  .account-requests-banner { width: calc(100% - 24px); }
}

@media (prefers-reduced-motion: reduce) {
  .unit-tab,
  .zone-item { transition-duration: .01ms; animation: none; }
  .zone-item.active { transform: none; }
}

/* Header propriétaire : actions secondaires légères, marque et contexte séparés. */
.dashboard-brand { display: flex; align-items: center; gap: 15px; min-width: 0; }
.dashboard-brand > span { color: var(--muted); font-family: var(--font-ui); font-size: var(--type-caption); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.dashboard-header-actions { gap: 4px; }
.header-link { min-height: 42px; border: 0; border-radius: 9px; padding: 9px 11px; color: var(--muted); background: transparent; font-family: var(--font-ui); font-size: var(--type-caption); font-weight: var(--weight-body); text-decoration: none; cursor: pointer; }
.header-link:hover { color: var(--ink); background: #f5f3e8; }
.header-link:focus-visible { outline: 2px solid #57534e; outline-offset: 2px; }
.dashboard-header #logout-button { min-height: 42px; border-radius: 9px; padding: 9px 13px; font-size: var(--type-caption); }

/* Les boutons radio ne reprennent pas le cadre et le remplissage des champs texte. */
.rental-type-option input[type="radio"] { min-height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; box-shadow: none; }

@media (max-width: 700px) {
  .dashboard-header { align-items: flex-start; flex-direction: column; }
  .dashboard-brand { justify-content: space-between; width: 100%; }
  .dashboard-header-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}

/* Le logement donne le contexte de l’éditeur ; la colonne gauche ne liste que ses pièces/niveaux. */
.unit-picker { display: flex; gap: 18px; align-items: center; min-width: 0; margin: 14px 0 18px; }
.unit-picker > span { flex: none; color: var(--muted); font-size: var(--type-meta); }
.unit-picker .unit-tabs { display: flex; min-width: 0; max-width: 100%; gap: 6px; padding: 5px; overflow-x: auto; border-radius: 10px; background: #e5e1cf; scrollbar-width: thin; scrollbar-color: #8b815b #e5e1cf; }
.unit-picker .unit-tab { flex: 0 0 auto; max-width: 340px; min-width: 100px; padding: 9px 16px; white-space: normal; overflow-wrap: anywhere; animation: none; }
.unit-picker .unit-tab:focus-visible { outline: 2px solid #57534e; outline-offset: -2px; }
.unit-picker + .editor-layout, .unit-picker + .photo-editor-layout { margin-top: 0; }
@media (max-width: 780px) {
  .editor-header { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .editor-actions { flex: 1 1 100%; justify-content: flex-start; }
  .editor-actions > span { flex-basis: 100%; }
  .unit-picker { display: grid; gap: 6px; }
  .unit-picker .unit-tab { max-width: 250px; }
  .administrative-editor .editor-title-row h1 { font-size: var(--type-title); }
}

.stay-detail-facts .stay-guest-address { white-space: pre-line; }

/* Gestion des séjours : une liste de travail, centrée sur le voyageur. */
.stays-dialog {
  --content-font: var(--font-ui);
  --stays-columns: minmax(210px, 1.5fr) minmax(165px, 1fr) minmax(145px, .9fr) 164px;
  font-family: var(--content-font);
  width: min(1160px, calc(100% - 32px));
  color: #292621;
  background: #fff;
  scrollbar-color: #b7b1a4 #f6f4ee;
}
.stays-dialog .dialog-body { padding: 0 32px 24px; }
.stays-dialog .stays-dialog-heading {
  position: sticky; top: 0; z-index: 2;
  margin: 0 -32px; padding: 24px 32px;
  background: #fff; border-bottom: 1px solid #e5e1d7;
}
.stays-dialog-heading h2 { font-size: var(--type-section); font-weight: var(--weight-heading); letter-spacing: -.025em; line-height: 1.2; }
.stays-dialog-heading p:not(.overline) { font-size: var(--type-meta); line-height: 1.5; }
.stays-dialog .stays-heading-actions { gap: 12px; }
.stays-dialog .stays-heading-actions .primary-button { padding: 10px 16px; font-size: var(--type-caption); min-height: 44px; border-radius: 6px; }
.stays-dialog .help-guide-context { min-height: 44px; padding: 8px; border: 0; background: transparent; color: #6a6250; font-size: var(--type-caption); }
.stays-dialog .dialog-close { width: 44px; height: 44px; min-width: 44px; padding: 12px; background: #f3f1eb; border: 0; }
.stays-dialog .dialog-close img { filter: none; width: 20px; height: 20px; }
.stays-dialog .cleaning-code-settings { margin: 24px 0 0; border: 1px solid #e5e1d7; border-radius: 8px; background: #faf9f7; }
.cleaning-code-settings > summary { min-height: 52px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; font-size: var(--type-meta); font-weight: var(--weight-label); }
.cleaning-code-settings > summary::-webkit-details-marker { display: none; }
.cleaning-code-settings > summary::after { content: ''; width: 7px; height: 7px; border: solid #6d6658; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); margin: -3px 2px 0 4px; }
.cleaning-code-settings[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.cleaning-code-overview { margin-left: auto; font-size: var(--type-caption); font-weight: var(--weight-body); color: #686258; }
.cleaning-code-overview[data-state="saved"] { color: #315b3a; }
.stays-dialog .cleaning-code-panel { margin: 0 16px; padding: 16px 0; grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr) auto; gap: 12px 24px; align-items: center; border: 0; border-top: 1px solid #e5e1d7; background: transparent; border-radius: 0; }
.stays-dialog .cleaning-code-panel label { margin-bottom: 0; }
.stays-dialog #save-cleaning-access-code { align-self: end; }
.stays-dialog #cleaning-access-code-status { margin: 0; }
.stays-dialog .cleaning-code-panel h3 { font-size: var(--type-subtitle); font-weight: var(--weight-heading); }
.stays-dialog .cleaning-code-panel p, .stays-dialog .cleaning-code-panel small { font-size: var(--type-caption); }
.stays-dialog .cleaning-code-panel #save-cleaning-access-code[data-state="saved"] { color: #315b3a; background: #edf4ed; border-color: #c3d4c5; }
.stays-toolbar { margin: 32px 0 20px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.stays-list-heading { display: grid; gap: 4px; padding-bottom: 6px; }
.stays-list-heading h3 { margin: 0; font-size: var(--type-subtitle); }
.stays-search { display: grid; gap: 8px; margin: 0; width: min(420px, 100%); font-size: var(--type-caption); font-weight: var(--weight-label); }
.stays-search input { min-height: 44px; padding: 10px 14px; border: 1px solid #c9c3b7; border-radius: 6px; background: #fff; font-size: var(--type-meta); caret-color: #756014; }
.stays-search input::placeholder { color: #716b60; opacity: 1; }
#stays-result-count { flex-shrink: 0; margin: 0; font-size: var(--type-meta); color: #716b60; font-variant-numeric: tabular-nums; }
.stays-columns { display: grid; grid-template-columns: var(--stays-columns); gap: 20px; padding: 12px 16px; border-bottom: 1px solid #e5e1d7; color: #756f62; font-size: var(--type-caption); font-weight: var(--weight-label); }
.stays-dialog #stays-list { margin: 8px 0 0; gap: 8px; }
.stays-dialog .stay-row { grid-template-columns: var(--stays-columns); padding: 20px 16px; gap: 20px; border: 0; border-bottom: 1px solid #e5e1d7; border-radius: 8px; box-shadow: none; align-items: start; }
.stays-dialog .stay-row:last-child { border-bottom: 0; }
.stays-dialog .stay-main { display: grid; gap: 5px; }
.stays-dialog .stay-guest-name { margin: 0; font-size: var(--type-body); font-weight: var(--weight-label); line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.stays-dialog .stay-unit-name { margin: 0; font-size: var(--type-meta); color: #5e584f; overflow-wrap: anywhere; }
.stays-dialog .stay-reference { margin: 5px 0 0; color: #787064; font-family: var(--content-font); font-size: var(--type-caption); font-weight: var(--weight-body); overflow-wrap: anywhere; }
.stay-dates { display: grid; gap: 9px; margin: 0; font-variant-numeric: tabular-nums; }
.stay-dates > div { display: grid; gap: 2px; }
.stay-dates dt { font-size: var(--type-caption); color: #756f62; }
.stay-dates dd { margin: 0; font-size: var(--type-meta); line-height: 1.4; }
.stay-dates small { margin-left: 8px; color: #756f62; font-size: var(--type-caption); }
.stay-state { display: grid; justify-items: start; gap: 9px; }
.stays-dialog .stay-status { padding: 5px 8px; border-radius: 4px; text-transform: none; letter-spacing: 0; font-size: var(--type-caption); line-height: 1.4; font-weight: var(--weight-label); }
.stays-dialog .stay-source { padding: 0; border: 0; background: transparent; color: #756f62; text-transform: none; letter-spacing: 0; font-size: var(--type-caption); font-weight: var(--weight-body); }
.stays-dialog .stay-identity-warning { box-sizing: border-box; max-width: 100%; padding: 5px 8px; border: 1px solid var(--danger); border-radius: 6px; color: #8a3e24; background: #fff4f1; font-size: var(--type-caption); line-height: 1.4; }
.stays-dialog .stay-row .stay-identity-warning { display: inline-block; margin-top: 8px; }
.stays-dialog .stay-actions { display: grid; gap: 2px; width: 100%; max-width: none; justify-content: stretch; }
.stays-dialog .stay-actions .open-stay-detail { min-height: 44px; padding: 8px 10px; background: #fff; color: #292621; border: 1px solid #b5ad9c; font-size: var(--type-caption); border-radius: 5px; }
.stay-secondary-actions { display: flex; justify-content: space-between; gap: 4px; }
.stays-dialog .stay-secondary-actions .secondary-button { min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: #696153; font-size: var(--type-caption); text-decoration: none; }
.stays-dialog .stay-actions .open-stay-detail:hover { background: #f4f1e8; border-color: #78736b; }
.stays-dialog .stay-secondary-actions .secondary-button:hover, .stays-dialog .help-guide-context:hover { color: #292621; text-decoration: underline; text-underline-offset: 4px; }
.stays-dialog :is(button, a, input, summary):focus-visible { outline: 2px solid #57534e; outline-offset: 3px; }
.stays-dialog .empty-user-list { margin: 0; padding: 40px 0; font-size: var(--type-body); color: #696153; }
.stays-dialog ::selection { background: #eee3b0; color: #292621; }
@media (max-width: 1000px) {
  .stays-dialog .cleaning-code-panel { grid-template-columns: minmax(0, 1fr) auto; }
  .stays-dialog .cleaning-code-panel > div { grid-column: 1 / -1; }
  .stays-dialog { --stays-columns: minmax(165px, 1.2fr) minmax(150px, 1fr) 150px; }
  .stays-columns { display: none; }
  .stays-dialog .stay-row { position: relative; grid-template-areas: 'guest dates actions' 'state dates actions'; gap: 12px 20px; }
  .stays-dialog .stay-main { grid-area: guest; }
  .stays-dialog .stay-dates { grid-area: dates; }
  .stays-dialog .stay-state { grid-area: state; display: flex; flex-wrap: wrap; align-items: center; }
  .stays-dialog .stay-actions { grid-area: actions; }
  .stays-dialog .stays-dialog-heading { flex-wrap: wrap; gap: 20px; }
}
@media (max-width: 640px) {
  .stays-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .stays-dialog .dialog-body { padding: 0 20px 12px; }
  .stays-dialog .stays-dialog-heading { position: relative; margin: 0 -20px; padding: 24px 20px 20px; gap: 20px; }
  .stays-dialog-heading h2 { font-size: var(--type-section); padding-right: 44px; }
  .stays-dialog-heading p:not(.overline) { max-width: 26ch; font-size: var(--type-meta); }
  .stays-dialog .stays-heading-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .stays-dialog .stays-heading-actions .primary-button { flex: 0 1 auto; font-size: var(--type-caption); }
  .stays-dialog .stays-heading-actions .dialog-close { position: absolute; top: 20px; right: 12px; }
  .stays-dialog .cleaning-code-panel { grid-template-columns: 1fr; gap: 16px; }
  .stays-dialog #save-cleaning-access-code { width: 100%; }
  .stays-dialog .cleaning-code-panel label, .stays-dialog .cleaning-code-panel small { grid-column: 1; }
  .stays-toolbar { align-items: stretch; flex-direction: column; gap: 16px; margin: 24px 0 16px; }
  .stays-search { width: 100%; }
  #stays-result-count { margin: 0; }
  .stays-dialog .stay-row { grid-template-columns: 1fr; grid-template-areas: 'guest' 'state' 'dates' 'actions'; gap: 14px; padding: 24px 0; }
  .stay-dates { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stays-dialog .stay-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .stays-dialog .stay-actions .open-stay-detail { flex: 1 1 145px; }
  .stays-dialog .stay-actions > .stay-secondary-actions { flex: 1 1 140px; }
  .stays-dialog .stay-secondary-actions .secondary-button { font-size: var(--type-caption); padding-inline: 6px; }
}

/* Fiche séjour : même rythme et même typographie que la liste. */
.stay-detail-dialog {
  --content-font: var(--font-ui);
  font-family: var(--content-font);
  width: min(1120px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  color: #292621; scrollbar-color: #b7b1a4 #f6f4ee;
}
.stay-detail-dialog .dialog-body { padding: 0 32px 20px; }
.stay-detail-dialog .stay-detail-heading { position: sticky; top: 0; z-index: 2; margin: 0 -32px; padding: 28px 32px 20px; border-bottom: 1px solid #e5e1d7; background: #fff; align-items: start; gap: 20px; }
.stay-detail-heading > div { min-width: 0; }
.stay-detail-dialog #stay-detail-title { margin: 0; font-size: 28px; font-weight: var(--weight-label); letter-spacing: -.025em; line-height: 1.2; overflow-wrap: anywhere; }
.stay-detail-reference { margin: 8px 0 0; color: #756f62; font-size: var(--type-caption); overflow-wrap: anywhere; }
.stay-detail-dialog .dialog-close { width: 44px; height: 44px; min-width: 44px; padding: 12px; background: #f3f1eb; border: 0; border-radius: 6px; }
.stay-detail-dialog .dialog-close img { width: 20px; height: 20px; filter: none; }
.stay-detail-dialog .stay-detail-intro { align-items: center; padding: 20px 0 24px; gap: 16px; border: 0; }
.stay-detail-dialog .stay-detail-unit { margin: 0 0 9px; font-size: var(--type-body); color: #4f4a42; }
.stay-detail-dialog .stay-status { padding: 5px 8px; border-radius: 4px; text-transform: none; letter-spacing: 0; font-size: var(--type-caption); font-weight: var(--weight-label); line-height: 1.4; }
.stay-detail-dialog .stay-detail-actions { gap: 8px; }
.stay-detail-dialog .stay-detail-actions > *, .stay-detail-dialog .stay-journey-documents a { min-height: 44px; padding: 10px 12px; border: 1px solid #b5ad9c; border-radius: 5px; background: #fff; color: #292621; font-size: var(--type-caption); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.stay-facts-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 24px 0; border-block: 1px solid #e5e1d7; }
.stay-facts-groups > section { min-width: 0; }
.stay-detail-dialog .stay-facts-groups h3 { margin: 0 0 18px; font-size: var(--type-subtitle); font-weight: var(--weight-heading); }
.stay-detail-dialog .stay-detail-facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 14px; }
.stay-detail-dialog .stay-detail-facts > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 0; border: 0; border-radius: 0; background: transparent; }
.stay-detail-dialog .stay-detail-facts dt { font-size: var(--type-caption); font-weight: var(--weight-body); text-transform: none; letter-spacing: 0; color: #756f62; }
.stay-detail-dialog .stay-detail-facts dd { margin: 0; color: #292621; font-size: var(--type-meta); font-weight: var(--weight-body); line-height: 1.5; font-variant-numeric: tabular-nums; }
.stay-detail-dialog .stay-journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; padding: 28px 0; }
.stay-detail-dialog .stay-journey { padding: 0; border: 0; border-radius: 0; background: transparent; }
.stay-detail-dialog .stay-journey-heading { gap: 16px; align-items: start; flex-wrap: wrap; }
.stay-detail-dialog .stay-journey-heading h3 { margin: 0; font-size: var(--type-subtitle); font-weight: var(--weight-heading); letter-spacing: -.02em; line-height: 1.2; }
.stay-journey-role { margin: 5px 0 0; font-size: var(--type-caption); color: #756f62; }
.stay-detail-dialog .stay-journey-stats { margin: 20px 0 0; gap: 16px; }
.stay-detail-dialog .stay-journey-stats span { padding: 0; border-radius: 0; background: transparent; font-size: var(--type-caption); color: #756f62; }
.stay-detail-dialog .stay-journey-stats strong { font-weight: var(--weight-label); color: #292621; }
.stay-detail-dialog .stay-detail-empty { margin: 12px 0 0; font-size: var(--type-meta); line-height: 1.6; color: #696153; max-width: 55ch; }
.stay-detail-dialog .stay-detail-completion { font-size: var(--type-meta); color: #696153; }
.stay-detail-dialog .stay-signature { border: 0; border-radius: 0; padding: 0; margin-top: 20px; }
.stay-detail-dialog .stay-signature figcaption { font-size: var(--type-caption); }
.stay-detail-dialog .stay-detail-issues { gap: 20px; }
.stay-detail-dialog .stay-detail-issue { padding: 16px 0 0; border: 0; border-top: 1px solid #dfd9cc; background: transparent; }
.stay-detail-dialog .stay-detail-issue strong { font-size: var(--type-meta); font-weight: var(--weight-label); }
.stay-detail-dialog .stay-detail-issue p { overflow-wrap: anywhere; }
.stay-detail-dialog .stay-detail-photos a { width: 112px; height: 84px; border: 0; border-radius: 5px; }
.stay-journey-documents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.stay-detail-management { padding-top: 12px; border-top: 1px solid #e5e1d7; text-align: right; }
.stay-detail-dialog .stay-detail-management button { min-height: 44px; padding: 10px 0; border: 0; background: transparent; color: #923b30; font-size: var(--type-caption); }
.stay-detail-dialog .stay-detail-management button:hover { text-decoration: underline; text-underline-offset: 4px; }
.stay-detail-dialog :is(.stay-detail-actions > *, .stay-journey-documents a):hover { background: #f4f1e8; border-color: #78736b; }
.stay-detail-dialog :is(button, a):focus-visible { outline: 2px solid #57534e; outline-offset: 3px; }
.stay-detail-dialog ::selection { background: #eee3b0; color: #292621; }
@media (max-width: 720px) {
  .stay-detail-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .stay-detail-dialog .dialog-body { padding: 0 20px 12px; }
  .stay-detail-dialog .stay-detail-heading { margin: 0 -20px; padding: 20px; }
  .stay-detail-dialog #stay-detail-title { font-size: var(--type-section); }
  .stay-detail-dialog .stay-detail-intro { display: grid; gap: 20px; }
  .stay-detail-dialog .stay-detail-actions { justify-content: start; }
  .stay-detail-dialog .stay-detail-actions > * { flex: 1 1 130px; }
  .stay-facts-groups { grid-template-columns: 1fr; gap: 28px; }
  .stay-detail-dialog .stay-detail-facts > div { grid-template-columns: 85px minmax(0, 1fr); }
  .stay-detail-dialog .stay-journey-grid { grid-template-columns: 1fr; gap: 28px; }
  .stay-detail-dialog .stay-journey + .stay-journey { padding-top: 28px; border-top: 1px solid #e5e1d7; }
  .stay-detail-management { text-align: left; }
}

/* Formulaires, documents et intégration : continuité des écrans de séjour. */
.owner-work-dialog {
  --content-font: var(--font-ui);
  font-family: var(--content-font); color: #292621; background: #fff;
  width: min(1040px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  border: 1px solid #ded9cd; border-radius: 14px;
  scrollbar-color: #b7b1a4 #f6f4ee;
}
.owner-work-dialog .dialog-body, .owner-work-dialog > form { padding: 0 32px 24px; }
.owner-work-dialog .dialog-heading, .owner-work-dialog .stay-form-heading {
  position: sticky; top: 0; z-index: 3; margin: 0 -32px 24px; padding: 28px 32px 22px;
  display: flex; align-items: start; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid #e5e1d7; background: #fff;
}
.owner-work-dialog :is(.dialog-heading, .stay-form-heading) > div:first-child { min-width: 0; }
.owner-work-dialog :is(.dialog-heading, .stay-form-heading) h2 { margin: 0; font-size: var(--type-title); font-weight: var(--weight-heading); letter-spacing: -.025em; line-height: 1.2; }
.owner-work-dialog :is(.dialog-heading, .stay-form-heading) p { margin: 8px 0 0; max-width: 62ch; color: #696153; font-size: var(--type-meta); line-height: 1.5; }
.owner-work-dialog .dialog-heading-actions { display: flex; align-items: center; flex-shrink: 0; gap: 12px; }
.owner-work-dialog .dialog-close { position: static; width: 44px; height: 44px; min-width: 44px; padding: 12px; border: 0; border-radius: 6px; background: #f3f1eb; }
.owner-work-dialog .dialog-close img { width: 20px; height: 20px; filter: none; }
.owner-work-dialog .help-guide-context { min-height: 44px; padding: 8px; border: 0; color: #696153; background: transparent; font-size: var(--type-caption); }
.owner-work-dialog :is(.primary-button, .secondary-button, .danger-button) { min-height: 44px; padding: 10px 14px; border-radius: 5px; font-size: var(--type-caption); }
.owner-work-dialog .secondary-button { color: #292621; border-color: #b5ad9c; background: #fff; }
.owner-work-dialog .secondary-button:hover { background: #f4f1e8; border-color: #78736b; }
.owner-work-dialog .help-guide-context:hover { color: #292621; text-decoration: underline; text-underline-offset: 4px; }
.owner-work-dialog :is(input, select, textarea) { font-size: var(--type-meta); font-weight: var(--weight-body); caret-color: #756014; min-width: 0; border-radius: 5px; }
.owner-work-dialog :is(input, select, textarea)::placeholder { color: #756f62; opacity: 1; }
.owner-work-dialog :is(button, input, select, textarea, a, summary):focus-visible { outline: 2px solid #57534e; outline-offset: 3px; }
.owner-work-dialog ::selection { background: #eee3b0; color: #292621; }
.stay-form-dialog.owner-work-dialog { width: min(820px, calc(100% - 32px)); }
.stay-form-dialog .stay-units { margin: 0 0 20px; padding: 0; border: 0; border-radius: 0; background: transparent; gap: 12px; }
.stay-form-dialog .stay-units legend, .stay-form-section legend { padding: 0; margin-bottom: 14px; font-size: var(--type-subtitle); font-weight: var(--weight-heading); }
.stay-form-dialog .stay-unit-option { padding: 12px; border: 1px solid #d9d2c2; border-radius: 5px; background: #fff; }
.stay-form-dialog .stay-unit-option:has(input:checked) { background: #f6f1dc; border-color: #a28b1f; }
.stay-form-dialog .stay-unit-option strong { font-size: var(--type-meta); font-weight: var(--weight-label); }
.stay-form-dialog .stay-unit-option small { font-size: var(--type-caption); color: #696153; }
.stay-form-dialog.owner-work-dialog .stay-test-option { margin: 0 0 20px; padding: 12px 0; border: 0; border-block: 1px solid #e5e1d7; border-radius: 0; background: transparent; }
.stay-form-dialog .stay-test-option strong { font-size: var(--type-meta); }
.stay-form-dialog .stay-test-option small { font-size: var(--type-caption); line-height: 1.5; font-weight: var(--weight-body); }
.stay-form-dialog .stay-reference-note { margin: 0 0 24px; padding: 0; border: 0; background: transparent; font-size: var(--type-caption); line-height: 1.6; color: #756f62; overflow-wrap: anywhere; }
.stay-form-dialog .stay-reference-note strong { font-weight: var(--weight-label); }
.stay-form-section { min-width: 0; padding: 0; margin: 0 0 28px; border: 0; }
.stay-form-dialog .stay-form-grid { margin-top: 0; gap: 16px 20px; }
.stay-form-dialog .stay-field { margin: 0 !important; font-size: var(--type-caption); font-weight: var(--weight-label); gap: 7px; }
.stay-form-dialog .stay-field small { color: #756f62; font-weight: var(--weight-body); font-size: var(--type-caption); }
.stay-form-dialog .stay-field :is(input, textarea) { min-height: 44px; padding: 11px 12px; border-color: #c9c3b7; }
.stay-form-dialog .stay-form-actions { position: sticky; bottom: 0; z-index: 2; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; margin: 0 -32px -24px; padding: 16px 32px; border-top: 1px solid #e5e1d7; background: #fff; }
.stay-form-dialog .stay-form-actions > span { display: none; }
.stay-form-dialog #delete-stay-from-form { padding-inline: 0; justify-self: start; border: 0; color: #923b30; background: transparent; }
.stay-form-dialog #cancel-stay-form { grid-column: 2; }
#documents-dialog.owner-work-dialog { padding: 0; }
.documents-dialog .documents-list { margin: 0; gap: 0; }
.documents-dialog .document-row { grid-template-columns: minmax(0, 1fr) minmax(240px, .9fr); padding: 24px 0; border: 0; border-bottom: 1px solid #e5e1d7; border-radius: 0; box-shadow: none; }
.documents-dialog .document-row:last-child { border-bottom: 0; }
.document-guest-name { margin: 0; font-size: var(--type-subtitle); font-weight: var(--weight-label); letter-spacing: -.02em; }
.document-reference { margin: 7px 0 0; font-size: var(--type-caption); color: #756f62; overflow-wrap: anywhere; }
.documents-dialog .document-summary { margin-top: 10px; font-size: var(--type-caption); gap: 8px 16px; }
.documents-dialog .document-count { padding: 0; background: transparent; color: #696153; font-size: var(--type-caption); font-weight: var(--weight-body); text-transform: none; letter-spacing: 0; }
.documents-dialog .document-actions { max-width: none; gap: 8px; }
.documents-dialog .document-actions a { text-decoration: none; }
.documents-dialog .document-actions .primary-button { background: #fff; color: #292621; border: 1px solid #b5ad9c; }
.documents-empty { padding: 32px 0 40px; }
.documents-empty h3 { margin: 0; font-size: var(--type-subtitle); font-weight: var(--weight-heading); }
.documents-empty p { margin: 10px 0 20px; font-size: var(--type-meta); color: #696153; max-width: 55ch; line-height: 1.6; }
.smoobu-dialog.owner-work-dialog { box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.owner-work-dialog .smoobu-status { grid-template-columns: minmax(0, 1fr) auto; padding: 0 0 20px; border: 0; border-bottom: 1px solid #e5e1d7; border-radius: 0; background: transparent; }
.owner-work-dialog .smoobu-status-mark { display: none; }
.owner-work-dialog .smoobu-status strong { font-size: var(--type-subtitle); font-weight: var(--weight-label); }
.owner-work-dialog .smoobu-status small { margin-top: 4px; font-size: var(--type-meta); }
.owner-work-dialog .smoobu-live-label { justify-self: end; font-size: var(--type-caption); text-transform: none; border: 0; padding: 5px 8px; border-radius: 4px; }
.owner-work-dialog .smoobu-panel { margin-top: 28px; border: 0; border-radius: 0; }
.owner-work-dialog .smoobu-panel-heading { padding: 0 0 16px; border-color: #e5e1d7; background: transparent; gap: 20px; }
.owner-work-dialog .smoobu-panel-heading h3 { font-size: var(--type-subtitle); font-weight: var(--weight-heading); letter-spacing: -.02em; }
.owner-work-dialog .smoobu-panel-heading p { margin-top: 7px; font-size: var(--type-meta); line-height: 1.5; color: #696153; }
.owner-work-dialog .smoobu-panel-count { padding: 5px 0; border: 0; font-family: var(--content-font); font-size: var(--type-caption); font-weight: var(--weight-body); text-transform: none; }
.owner-work-dialog .smoobu-mapping { padding: 16px 0; border-color: #e5e1d7; gap: 20px; }
.owner-work-dialog .smoobu-mapping strong { font-size: var(--type-meta); font-weight: var(--weight-label); }
.owner-work-dialog .smoobu-mapping small { font-size: var(--type-caption); }
.owner-work-dialog .smoobu-mapping-result { font-size: var(--type-meta); font-weight: var(--weight-label); line-height: 1.5; }
.owner-work-dialog .smoobu-preview-empty { padding: 20px 0; gap: 8px; font-size: var(--type-meta); line-height: 1.5; }
.owner-work-dialog .smoobu-preview-empty strong { font-weight: var(--weight-label); }
.owner-work-dialog .smoobu-preview-summary { padding: 16px 0; border-color: #e5e1d7; }
.owner-work-dialog .smoobu-preview-total { border: 0; padding: 0 12px 0 0; }
.owner-work-dialog .smoobu-preview-row { padding: 16px 0; border-color: #e5e1d7; }
.owner-work-dialog .smoobu-preview-guest strong { font-size: var(--type-meta); font-weight: var(--weight-label); }
.owner-work-dialog .smoobu-preview-action { min-width: 0; border: 0; font-family: var(--content-font); font-size: var(--type-caption); text-transform: none; }
.owner-work-dialog .smoobu-sync-summary { margin-top: 16px; border-color: #e5e1d7; font-size: var(--type-caption); line-height: 1.5; }
.owner-work-dialog .smoobu-actions { border-top: 1px solid #e5e1d7; padding-top: 16px; gap: 12px; }
.owner-work-dialog #disconnect-smoobu { border: 0; padding-inline: 0; color: #923b30; background: transparent; }
.owner-work-dialog .smoobu-connect-form { margin: 0; border: 0; border-radius: 0; }
.owner-work-dialog .smoobu-explanation { padding: 0 0 24px; border: 0; background: transparent; }
.owner-work-dialog .smoobu-explanation strong { font-size: var(--type-subtitle); font-weight: var(--weight-label); }
.owner-work-dialog .smoobu-explanation p, .owner-work-dialog .smoobu-explanation a { font-size: var(--type-meta); line-height: 1.6; }
.owner-work-dialog .smoobu-credential-grid { padding: 0 0 24px; gap: 20px; }
.owner-work-dialog .smoobu-credential-grid label { font-size: var(--type-caption); }
.owner-work-dialog .smoobu-connect-actions { padding: 16px 0 0; background: transparent; border-color: #e5e1d7; }
@media (max-width: 640px) {
  .owner-work-dialog, .stay-form-dialog.owner-work-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 16px); }
  .owner-work-dialog .dialog-body, .owner-work-dialog > form { padding: 0 20px 20px; }
  .owner-work-dialog .dialog-heading, .owner-work-dialog .stay-form-heading { margin: 0 -20px 24px; padding: 20px; gap: 16px; }
  .owner-work-dialog :is(.dialog-heading, .stay-form-heading) h2 { font-size: var(--type-section); }
  .owner-work-dialog .dialog-heading { flex-wrap: wrap; }
  .owner-work-dialog .dialog-heading > div:first-child { padding-right: 36px; width: 100%; }
  .owner-work-dialog .dialog-heading-actions { gap: 0; }
  .owner-work-dialog .dialog-heading-actions .dialog-close { position: absolute; top: 16px; right: 12px; }
  .owner-work-dialog .help-guide-context { padding: 0; min-height: 32px; }
  .stay-form-dialog .stay-form-actions { bottom: 0; margin: 0 -20px -20px; padding: 12px 20px; grid-template-columns: 1fr 1fr; gap: 8px; }
  .stay-form-dialog #cancel-stay-form { grid-column: 1; }
  .stay-form-dialog #save-stay { grid-column: 2; }
  .stay-form-dialog #delete-stay-from-form { grid-column: 1 / -1; grid-row: 2; min-height: 36px; }
  .stay-form-dialog .stay-form-grid, .stay-form-dialog .stay-units { grid-template-columns: 1fr; }
  .documents-dialog .document-row { grid-template-columns: 1fr; gap: 16px; }
  .documents-dialog .document-actions { justify-content: start; }
  .documents-dialog .document-actions > * { flex: 1 1 auto; }
  .documents-empty { padding: 12px 0 24px; }
  .owner-work-dialog .smoobu-actions { flex-direction: column; align-items: stretch; }
  .owner-work-dialog .smoobu-actions button { width: 100%; min-width: 0; white-space: normal; }
  .owner-work-dialog .smoobu-mapping { gap: 8px; }
  .owner-work-dialog .smoobu-panel-heading { flex-direction: column; gap: 8px; }
  .owner-work-dialog .smoobu-credential-grid { grid-template-columns: 1fr; }
  .owner-work-dialog .smoobu-connect-actions { align-items: stretch; gap: 12px; }
}

/* Les exercices restent identifiables même après fermeture de la visite. */
.stays-dialog .stay-row.stay-row--test { background: #edf7ef; border: 1px solid #c5ddcc; border-radius: 8px; padding: 20px 16px; }
.stay-factice { color: #286445; font-size: .8em; font-weight: 400; white-space: nowrap; }

.administrative-create-actions { display: flex; justify-content: flex-end; margin-top: 24px; }
.administrative-create-actions:has(> [hidden]) { display: none; }
@media (max-width: 700px) {
  .administrative-create-actions .primary-button { width: 100%; }
}
