:root{
  --bg:#f4f6f8;--card:#fff;--text:#111827;--muted:#6b7280;--border:#e5e7eb;
  --accent:#111827;--danger:#b91c1c;--success:#166534;--warning:#92400e;
}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,input,select,textarea{font:inherit}button{cursor:pointer}.shell{max-width:1180px;margin:0 auto;padding:24px}
.topbar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}
.user-menu{display:flex;align-items:center;gap:12px}.eyebrow{font-size:11px;letter-spacing:.14em;color:var(--muted);font-weight:800}
h1,h2,h3{margin:0}.topbar h1{font-size:24px;margin-top:4px}.screen{display:none}.screen.active{display:block}.hidden{display:none!important}
.hero{background:linear-gradient(135deg,#111827,#374151);color:#fff;border-radius:28px;padding:42px;min-height:360px;display:flex;flex-direction:column;justify-content:center}
.hero h2{font-size:clamp(30px,5vw,54px);line-height:1.05;margin:12px 0}.hero p{opacity:.78;font-size:18px;line-height:1.5}
.badge{align-self:flex-start;background:#ffffff18;border:1px solid #ffffff28;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:800}.badge.dark{background:#111827;color:#fff;border:0}
.auth-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;align-items:stretch}.auth-panel{display:flex;flex-direction:column;justify-content:center;gap:14px}
.auth-tabs{display:flex;gap:8px;margin-bottom:6px}.auth-tab{flex:1;border:1px solid var(--border);border-radius:12px;padding:10px;background:#fff;font-weight:800}.auth-tab.active{background:#111827;color:#fff}
.center-card,.setup-wrap{min-height:60vh;display:grid;place-items:center}.center-card{text-align:center}.setup-panel{max-width:560px;width:100%}.setup-panel h2{font-size:32px;margin:14px 0 8px}
.spinner{width:36px;height:36px;border:4px solid #e5e7eb;border-top-color:#111827;border-radius:50%;margin:0 auto 18px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.app-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}.mode-switch{display:flex;gap:8px}.mode{border:1px solid var(--border);background:#fff;border-radius:12px;padding:10px 14px;font-weight:800}.mode.active{background:#111827;color:#fff}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.tab{border:1px solid var(--border);background:#fff;border-radius:999px;padding:10px 14px}.tab.active{background:#111827;color:#fff}
.tabpane{display:none}.tabpane.active{display:block}.panel{background:#fff;border:1px solid var(--border);border-radius:22px;padding:22px;margin-bottom:18px;box-shadow:0 12px 24px #11182708}
.panel-head{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:18px}.muted{color:var(--muted)}
.primary,.danger,.ghost{border-radius:12px;padding:10px 14px;border:1px solid transparent;font-weight:800}.primary{background:#111827;color:#fff}.danger{background:#b91c1c;color:#fff}.ghost{background:#fff;border-color:var(--border);color:#111827}.primary:disabled,.danger:disabled,.ghost:disabled{opacity:.55;cursor:not-allowed}
.wide{width:100%;margin-top:12px;padding:14px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:800}input,select,textarea{border:1px solid var(--border);border-radius:12px;padding:12px;background:#fff;color:var(--text)}textarea{min-height:110px;resize:vertical}.full{grid-column:1/-1}
.card-list{display:grid;gap:10px}.card{border:1px solid var(--border);border-radius:16px;padding:16px;display:flex;justify-content:space-between;gap:16px;align-items:center}.card small{color:var(--muted)}
.card-actions{display:flex;gap:8px;align-items:center}.pill{padding:6px 9px;border-radius:999px;background:#f3f4f6;font-size:12px;font-weight:800}.pill.success{background:#dcfce7;color:#166534}.pill.warn{background:#fef3c7;color:#92400e}.pill.danger{background:#fee2e2;color:#991b1b}
.results{margin-top:16px}.result-item{display:grid;grid-template-columns:1.4fr .4fr .5fr .4fr;gap:8px;padding:10px 0;border-bottom:1px solid var(--border);align-items:center}.result-item input[type=checkbox]{width:18px;height:18px}
.frame-preview{position:relative;aspect-ratio:16/9;border-radius:18px;overflow:hidden;background:#111827;color:#ffffff90;display:grid;place-items:center;background-size:cover;background-position:center;margin-top:18px}.guide{position:absolute;border:2px dashed #fff8;border-radius:8px}.guide-a{left:8%;top:12%;width:20%;height:66%}.guide-b{right:10%;top:18%;width:42%;height:42%}.guide-c{left:38%;bottom:8%;width:22%;height:18%}
.service-actions{display:flex;gap:12px;margin-top:16px;flex-wrap:wrap}.ghost-stage{position:relative;aspect-ratio:16/9;border-radius:18px;background:linear-gradient(135deg,#d1d5db,#9ca3af);overflow:hidden;display:grid;place-items:center;color:#111827;background-size:cover;background-position:center}
.ghost-overlay{position:absolute;inset:8%;border:3px dashed #ffffffdd;border-radius:16px;display:grid;place-items:center;background:#ffffff12;font-weight:900;letter-spacing:.08em;text-align:center}.capture-instruction{position:absolute;bottom:14px;background:#111827e8;color:#fff;padding:8px 12px;border-radius:999px}
.quality{font-size:12px;font-weight:900;padding:8px 10px;border-radius:999px}.quality.yellow{background:#fef3c7;color:#92400e}.quality.green{background:#dcfce7;color:#166534}.capture{margin-top:12px;border:1px dashed var(--border);padding:14px;border-radius:14px}
.success-box,.warning-box,.error-box,.info-box{margin-top:12px;padding:12px;border-radius:12px;border:1px solid}.success-box{background:#ecfdf5;color:#166534;border-color:#bbf7d0}.warning-box{background:#fff7ed;color:#9a3412;border-color:#fed7aa}.error-box{background:#fef2f2;color:#991b1b;border-color:#fecaca}.info-box{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.empty{padding:22px;text-align:center;color:var(--muted);border:1px dashed var(--border);border-radius:16px}.section-gap{margin-top:18px}
dialog{border:none;border-radius:20px;padding:0;max-width:560px;width:92%}dialog::backdrop{background:#11182788}dialog form{padding:24px;display:grid;gap:14px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
@media(max-width:780px){.shell{padding:14px}.auth-grid,.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.topbar,.app-head{align-items:flex-start}.app-head{flex-direction:column}.hero{padding:28px;min-height:300px}.user-email{display:none}.result-item{grid-template-columns:1fr .5fr}.result-item span:nth-child(3){display:none}.mode-switch{width:100%}.mode{flex:1}}

.frame-card-main{display:flex;align-items:center;gap:14px;min-width:0}
.frame-thumb{width:120px;height:76px;object-fit:cover;border-radius:12px;border:1px solid var(--border);background:#f3f4f6;flex:0 0 auto}
.frame-thumb-empty{display:grid;place-items:center;color:var(--muted);font-size:11px;font-weight:800}
@media(max-width:620px){.frame-card{align-items:flex-start}.frame-thumb{width:92px;height:64px}}

.field-hint{font-weight:500;color:var(--muted);font-size:12px;line-height:1.45}
.ai-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin:16px 0;padding:14px;border:1px solid var(--border);border-radius:14px;background:#f9fafb}
.ai-summary .muted{margin-top:5px;line-height:1.45}
.ai-candidate{display:grid;grid-template-columns:32px 1fr;gap:12px;padding:14px 0;border-bottom:1px solid var(--border)}
.ai-candidate-select{padding-top:12px}.ai-candidate-select input{width:19px;height:19px}
.ai-candidate-body{min-width:0;display:grid;gap:9px}
.ai-candidate-head{display:flex;align-items:center;gap:10px}
.ai-item-name{flex:1;font-weight:800;min-width:0}
.ai-candidate-meta{display:grid;grid-template-columns:100px repeat(2,minmax(0,1fr));gap:10px;align-items:end}
.ai-candidate-meta label{font-size:11px}.ai-candidate-meta input{padding:9px}
.ai-candidate-meta>div{display:flex;flex-direction:column;gap:6px;padding-bottom:8px}
.meta-label{font-size:11px;color:var(--muted);font-weight:800}
.ai-tags{display:flex;gap:6px;flex-wrap:wrap}
.ignored-items{margin-top:14px;border:1px solid var(--border);border-radius:12px;padding:12px 14px}
.ignored-items summary{cursor:pointer;font-weight:800}.ignored-items div{display:grid;gap:7px;margin-top:10px;color:var(--muted)}
@media(max-width:620px){.ai-summary{flex-direction:column}.ai-candidate-meta{grid-template-columns:90px 1fr}.ai-candidate-meta>div:last-child{grid-column:2}.ai-candidate-head{align-items:flex-start}.ai-item-name{width:100%}}

.ai-item-quantity.needs-review{border-color:#f59e0b;background:#fffbeb}
.ignored-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--border)}
.ignored-row:first-child{border-top:0}
.ignored-row small{flex:1}
@media(max-width:620px){.ignored-row{align-items:flex-start;flex-direction:column}.ignored-row .ghost{width:100%}}

.inspection-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-top:14px;padding:14px;border:1px solid var(--border);border-radius:14px;background:#f9fafb}
.inspection-summary .muted{margin-top:5px;line-height:1.45}
.inspection-stats{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.inspection-result-card{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;padding:14px 0;border-bottom:1px solid var(--border)}
.inspection-result-card:last-child{border-bottom:0}
.inspection-result-card small{display:block;margin-top:6px;color:var(--muted);line-height:1.45}
.inspection-result-meta{margin-top:4px;color:var(--muted);font-size:12px;font-weight:700}
@media(max-width:620px){.inspection-summary,.inspection-result-card{flex-direction:column}.inspection-result-card>.pill{align-self:flex-start}}

.photo-source-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
.photo-source-grid .capture{margin-top:0}
@media(max-width:620px){.photo-source-grid{grid-template-columns:1fr}}


/* MVP 0.6 – mobile-first geführter Service-Rundgang */
.service-mode{max-width:860px;margin:0 auto}
.service-start-panel{padding:24px}
.service-start-actions .primary{min-height:48px}
.walkthrough-panel{padding:20px}
.walkthrough-overview{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.walkthrough-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.compact-action{padding:8px 10px;font-size:12px}
.walkthrough-progress-track{height:9px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin:16px 0 12px}
.walkthrough-progress-bar{height:100%;width:0;background:#111827;border-radius:999px;transition:width .25s ease}
.room-progress-list{display:flex;gap:8px;overflow-x:auto;padding:2px 2px 10px;scrollbar-width:thin}
.room-progress-chip{display:flex;align-items:center;gap:9px;min-width:150px;text-align:left;border:1px solid var(--border);background:#fff;border-radius:14px;padding:10px 12px;color:var(--text)}
.room-progress-chip.current{border-color:#111827;box-shadow:0 0 0 2px #11182712}
.room-progress-chip.complete{background:#ecfdf5;border-color:#bbf7d0}
.room-progress-number{display:grid;place-items:center;width:27px;height:27px;border-radius:999px;background:#f3f4f6;font-weight:900;flex:0 0 auto}
.room-progress-chip.complete .room-progress-number{background:#166534;color:#fff}
.room-progress-chip small{display:block;color:var(--muted);margin-top:2px;font-size:11px}
.guide-step-card{margin-top:10px;border:1px solid var(--border);border-radius:20px;padding:18px;background:#fff}
.guide-step-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.guide-step-head h2{font-size:22px;line-height:1.2;margin-top:4px}
.guide-step-kicker{font-size:11px;letter-spacing:.12em;color:var(--muted);font-weight:900}
.mobile-camera-action{border-style:solid;background:#f9fafb}
.walkthrough-final-actions{display:grid;grid-template-columns:1fr;gap:8px;margin-top:14px}
.apartment-summary-card{margin-top:18px}
.summary-hero{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:18px;border:1px solid var(--border);border-radius:18px;background:#f9fafb}
.summary-hero h2{font-size:24px;margin:5px 0 6px}
.summary-hero p{margin:0;color:var(--muted)}
.summary-score{display:grid;place-items:center;min-width:54px;height:54px;border-radius:16px;font-size:18px;font-weight:900;background:#fef3c7;color:#92400e}
.summary-score.success{background:#dcfce7;color:#166534}
.summary-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0}
.summary-kpis>div{border:1px solid var(--border);border-radius:14px;padding:12px;text-align:center;background:#fff}
.summary-kpis strong{display:block;font-size:23px}
.summary-kpis span{display:block;color:var(--muted);font-size:11px;margin-top:2px}
.summary-section{margin-top:18px}
.summary-section h4{margin:0 0 8px}
.apartment-room-row,.attention-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--border)}
.apartment-room-row small,.attention-row small{display:block;margin-top:3px;color:var(--muted);line-height:1.35}
.apartment-room-row.incomplete{opacity:.8}

@media(max-width:620px){
  .shell{padding:0 0 88px}
  .topbar{padding:14px 14px 0;margin-bottom:14px}
  #appScreen>.app-head{padding:0 14px}
  .service-mode{max-width:none}
  .service-mode .panel{border-left:0;border-right:0;border-radius:0;margin-bottom:10px;box-shadow:none;padding:16px}
  .service-start-panel .panel-head{margin-bottom:12px}
  .service-start-actions{display:grid;grid-template-columns:1fr}
  .service-start-actions button{width:100%;min-height:50px}
  .walkthrough-overview{gap:10px}
  .walkthrough-overview h3{font-size:21px}
  .walkthrough-head-actions{align-items:flex-end;flex-direction:column}
  .room-progress-list{margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px}
  .room-progress-chip{min-width:138px}
  .guide-step-card{margin-left:-16px;margin-right:-16px;border-left:0;border-right:0;border-radius:0;padding:16px}
  .guide-step-head h2{font-size:20px}
  .ghost-stage{aspect-ratio:4/3;border-radius:16px}
  .capture-instruction{left:10px;right:10px;bottom:10px;text-align:center;border-radius:12px}
  .photo-source-grid{grid-template-columns:1fr}
  .capture{padding:16px;min-height:76px;justify-content:center}
  .capture input{width:100%}
  #uploadCheckPhotoBtn,#nextRoomBtn,#analyzeApartmentBtn,#completeCheckBtn{min-height:52px;font-size:15px}
  .walkthrough-final-actions{position:sticky;bottom:8px;z-index:8;background:#f4f6f8e8;backdrop-filter:blur(8px);padding:8px;margin-left:-8px;margin-right:-8px;border-radius:16px}
  .summary-hero{flex-direction:column}
  .summary-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .apartment-room-row,.attention-row{align-items:flex-start}
}

.danger-outline{border-color:#fecaca;color:#991b1b;background:#fff}
.danger-outline:hover{background:#fef2f2}

.photo-source-single{display:block;margin-top:12px}
.photo-source-single .capture{margin-top:0}
.photo-add-action{min-height:84px;display:flex;flex-direction:column;justify-content:center}


/* MVP 0.7 – manager inventory maintenance */
.inventory-manage-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.inventory-manage-head h3{margin:3px 0 4px}
.inventory-manage-list{display:grid;gap:10px}
.inventory-manage-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 15px;border:1px solid var(--border);border-radius:16px;background:#fff;transition:box-shadow .18s ease,transform .18s ease,border-color .18s ease}
.inventory-manage-card:hover{border-color:#d1d5db;box-shadow:0 8px 24px #1118270b;transform:translateY(-1px)}
.inventory-card-main{display:flex;align-items:center;gap:12px;min-width:0}
.inventory-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f3f4f6;font-weight:900;font-size:16px;flex:0 0 auto}
.inventory-card-main strong{font-size:15px}
.inventory-card-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px;color:var(--muted);font-size:12px}
.inventory-card-meta span:not(:last-child)::after{content:"·";margin-left:8px;color:#d1d5db}
.inventory-card-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.inventory-edit-dialog{width:min(680px,calc(100vw - 28px));border:0;border-radius:22px;padding:0;box-shadow:0 30px 90px #11182740}
.inventory-edit-dialog::backdrop{background:#11182766;backdrop-filter:blur(3px)}
.inventory-edit-dialog form{padding:22px}
.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.dialog-head h3{margin:4px 0 0;font-size:22px}
.inventory-edit-meta{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}
.inventory-edit-actions{justify-content:space-between}
.inventory-edit-actions .danger-outline{margin-right:auto}

@media(max-width:620px){
  .inventory-manage-card{align-items:flex-start;flex-direction:column}
  .inventory-card-actions{width:100%;justify-content:space-between}
  .inventory-card-actions .inventory-edit-btn{min-height:42px;padding:9px 14px}
  .inventory-edit-dialog{width:100vw;max-width:none;margin:auto 0 0;border-radius:22px 22px 0 0;max-height:92vh}
  .inventory-edit-dialog form{padding:18px 16px 24px;overflow:auto;max-height:92vh}
  .inventory-edit-actions{display:grid;grid-template-columns:1fr;gap:8px}
  .inventory-edit-actions button{width:100%;min-height:48px}
}


/* MVP 0.7.1 – service photo review */
.service-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
.service-photo-tile{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:15px;background:#f3f4f6;aspect-ratio:4/3}
.service-photo-tile img{width:100%;height:100%;object-fit:cover;display:block}
.service-photo-tile.pending{border-style:dashed}
.service-photo-state{position:absolute;left:7px;bottom:7px;max-width:calc(100% - 14px);padding:4px 7px;border-radius:999px;background:#111827d9;color:#fff;font-size:10px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.service-photo-delete{position:absolute;right:7px;top:7px;z-index:5;width:38px;height:38px;border:0;border-radius:999px;background:#fffffff2;box-shadow:0 3px 12px #11182725;display:grid;place-items:center;padding:0;color:#991b1b;font-size:16px;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.service-photo-delete:hover{background:#fef2f2}
.service-photo-delete:disabled{opacity:.55;cursor:wait}
.saved-room-photos{margin-top:18px;padding-top:16px;border-top:1px solid var(--border)}
.saved-room-photos-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:4px}
.saved-room-photos-head h4{margin:3px 0 0}
.service-photo-loading{grid-column:1/-1;padding:14px;border-radius:12px;background:#f9fafb;color:var(--muted);font-size:12px;text-align:center}
.service-photo-placeholder{height:100%;display:grid;place-items:center;padding:10px;text-align:center;color:var(--muted);font-size:11px}

@media(max-width:620px){
  .service-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .service-photo-delete{width:36px;height:36px}
}

.frame-card-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.frame-delete-btn{padding:8px 11px;font-size:12px}
@media(max-width:620px){.frame-card{flex-direction:column;gap:12px}.frame-card-actions{width:100%;justify-content:space-between}.frame-delete-btn{min-height:42px}}


/* Business UI refresh – StayCheck Operations */
:root{
  --bg:#f3f6f9;
  --card:#ffffff;
  --text:#172033;
  --muted:#657084;
  --border:#dfe5ec;
  --accent:#0f8f84;
  --accent-strong:#0b6f68;
  --accent-soft:#e9f8f6;
  --navy:#13243a;
  --navy-soft:#1b304b;
  --danger:#b42318;
  --success:#16794b;
  --warning:#9a6700;
  --shadow-sm:0 1px 2px rgba(15,23,42,.04);
  --shadow-md:0 8px 24px rgba(15,23,42,.06);
}

html,body{background:var(--bg)}
body{
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:14px;
  line-height:1.5;
}
.shell{max-width:1280px;padding:0 28px 36px}

.topbar{
  min-height:74px;
  margin:0 -28px 28px;
  padding:0 28px;
  background:var(--navy);
  color:#fff;
  border-bottom:1px solid #0d1a2a;
}
.topbar .eyebrow{color:#9fb2c8;letter-spacing:.11em}
.topbar h1{font-size:20px;font-weight:700;letter-spacing:-.015em}
.topbar .muted{color:#c5d0dc}
.topbar .ghost{background:#ffffff0d;border-color:#ffffff26;color:#fff}
.topbar .ghost:hover{background:#ffffff18}

.app-head{
  align-items:center;
  margin:0 0 18px;
  padding:0 2px 16px;
  border-bottom:1px solid var(--border);
}
.app-head h2{font-size:26px;font-weight:700;letter-spacing:-.025em}
.eyebrow{
  color:#758196;
  font-size:10px;
  letter-spacing:.12em;
  font-weight:700;
}

.mode-switch{
  gap:0;
  padding:3px;
  background:#e8edf3;
  border:1px solid #d7dee8;
  border-radius:9px;
}
.mode{
  border:0;
  background:transparent;
  color:#5c6778;
  border-radius:6px;
  padding:8px 14px;
  font-size:13px;
  font-weight:650;
}
.mode.active{
  background:#fff;
  color:var(--navy);
  box-shadow:var(--shadow-sm);
}

.tabs{
  gap:0;
  margin:0 0 16px;
  padding:0 2px;
  border-bottom:1px solid var(--border);
}
.tab{
  position:relative;
  border:0;
  background:transparent;
  border-radius:0;
  color:#697588;
  padding:11px 14px 12px;
  font-size:13px;
  font-weight:650;
}
.tab:hover{color:var(--navy)}
.tab.active{
  background:transparent;
  color:var(--navy);
}
.tab.active::after{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  bottom:-1px;
  height:2px;
  background:var(--accent);
  border-radius:2px 2px 0 0;
}

.panel{
  border:1px solid var(--border);
  border-radius:12px;
  padding:22px;
  margin-bottom:16px;
  box-shadow:var(--shadow-sm);
}
.panel-head{
  align-items:center;
  padding-bottom:14px;
  margin-bottom:18px;
  border-bottom:1px solid #edf0f4;
}
.panel-head h3,.inventory-manage-head h3{font-size:18px;font-weight:700;letter-spacing:-.015em}
.panel-head p,.inventory-manage-head p{margin:5px 0 0;max-width:760px}
.muted{color:var(--muted)}

.primary,.danger,.ghost{
  min-height:38px;
  border-radius:7px;
  padding:9px 13px;
  font-weight:650;
  transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.primary:hover{background:var(--accent-strong);border-color:var(--accent-strong)}
.ghost{background:#fff;border-color:#d7dee7;color:#334155}
.ghost:hover{background:#f8fafc;border-color:#c7d0dc}
.danger{background:var(--danger);border-color:var(--danger)}
.danger-outline{border-color:#e7b8b3;color:var(--danger);background:#fff}
.wide{padding:11px 14px}

label{font-size:12px;font-weight:650;color:#445064}
input,select,textarea{
  border:1px solid #cfd7e2;
  border-radius:7px;
  padding:10px 11px;
  box-shadow:0 1px 1px rgba(15,23,42,.02);
}
input:focus,select:focus,textarea:focus{
  outline:0;
  border-color:#7ea3ce;
  box-shadow:0 0 0 3px rgba(31,79,138,.10);
}
.field-hint{color:#778397;font-size:11px}

.card{
  border-radius:9px;
  padding:14px 15px;
  box-shadow:none;
}
.card:hover{border-color:#cbd4df}
.card-list{gap:8px}
.card-actions{gap:7px}

.pill{
  border-radius:5px;
  padding:4px 7px;
  background:#eef1f5;
  color:#526074;
  font-size:11px;
  font-weight:700;
}
.pill.success{background:#e9f6ef;color:#12613d}
.pill.warn{background:#fff5d9;color:#7a5200}
.pill.danger{background:#fdecea;color:#94261e}

.inventory-manage-card{
  border-radius:9px;
  padding:13px 14px;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.inventory-manage-card:hover{
  transform:none;
  border-color:#c7d1dd;
  box-shadow:0 3px 12px rgba(15,23,42,.04);
}
.inventory-icon{
  width:38px;height:38px;border-radius:7px;
  background:var(--accent-soft);color:var(--accent);
}
.inventory-card-main strong{font-size:14px}
.inventory-card-meta{font-size:11px}

.frame-preview,.ghost-stage{border-radius:10px}
.frame-thumb{border-radius:7px}
.frame-card-actions{gap:7px}

.success-box,.warning-box,.error-box,.info-box{
  border-radius:8px;
  padding:11px 12px;
}
.info-box{background:#f0f5fb;color:#244f7f;border-color:#cfdeef}

.service-mode{max-width:900px}
.service-start-panel,.walkthrough-panel{border-radius:12px}
.guide-step-card{
  border-radius:10px;
  padding:18px;
}
.guide-step-kicker{font-size:10px;font-weight:700;letter-spacing:.1em}
.walkthrough-progress-track{height:6px;background:#e4e9ef}
.walkthrough-progress-bar{background:var(--accent)}
.room-progress-chip{
  min-width:150px;
  border-radius:8px;
  padding:9px 11px;
}
.room-progress-chip.current{
  border-color:#7d9fc5;
  box-shadow:0 0 0 2px rgba(31,79,138,.08);
}
.room-progress-number{border-radius:6px}
.room-progress-chip.complete .room-progress-number{background:var(--success)}
.capture{
  border-radius:8px;
  background:#fafbfc;
}
.photo-add-action{min-height:78px}
.service-photo-tile{border-radius:8px}
.service-photo-delete{border-radius:7px}

.summary-hero{
  border-radius:10px;
  background:#f8fafc;
}
.summary-score{border-radius:8px}
.summary-kpis>div{border-radius:8px}

.auth-grid{gap:22px}
.hero{
  border-radius:14px;
  background:linear-gradient(145deg,#13243a 0%,#1e3b5d 62%,#244e78 100%);
  box-shadow:var(--shadow-md);
}
.hero h2{font-size:clamp(31px,4.6vw,50px);font-weight:700;letter-spacing:-.035em}
.hero p{opacity:.82}
.badge{border-radius:5px;letter-spacing:.06em}
.auth-panel{box-shadow:var(--shadow-md)}
.auth-tab{border-radius:7px;font-weight:650}
.auth-tab.active{background:var(--navy)}
.setup-panel{box-shadow:var(--shadow-md)}

dialog,.inventory-edit-dialog{border-radius:12px}
.inventory-edit-dialog form{padding:24px}
.dialog-head{padding-bottom:14px;border-bottom:1px solid #edf0f4}
.empty{border-radius:9px;background:#fbfcfd}

@media(max-width:780px){
  .shell{padding:0 14px 86px}
  .topbar{margin:0 -14px 20px;padding:12px 14px}
  .app-head{padding:0 0 14px}
  .app-head h2{font-size:23px}
  .tabs{overflow-x:auto;flex-wrap:nowrap}
  .tab{white-space:nowrap}
}

@media(max-width:620px){
  .service-mode .panel{background:#fff}
  .guide-step-card{border-radius:0}
  .walkthrough-final-actions{
    background:rgba(243,246,249,.94);
    border:1px solid #e1e6ec;
    border-radius:10px;
  }
  .inventory-edit-dialog{border-radius:14px 14px 0 0}
}


/* MVP 0.6 – Aufenthaltsübersicht */
.stay-toolbar{
  display:grid;
  grid-template-columns:minmax(220px,1fr) minmax(180px,.55fr);
  gap:12px;
  margin-bottom:16px;
}
.stay-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:18px;
}
.stay-kpis>div{
  border:1px solid var(--border);
  border-radius:9px;
  background:#f9fbfd;
  padding:13px 14px;
}
.stay-kpis span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
  margin-bottom:4px;
}
.stay-kpis strong{
  display:block;
  color:var(--navy);
  font-size:20px;
  font-weight:750;
  letter-spacing:-.02em;
}
.stay-list{
  display:grid;
  gap:8px;
}
.stay-row{
  display:grid;
  grid-template-columns:minmax(260px,1.35fr) minmax(290px,1fr) minmax(150px,.65fr) auto;
  gap:16px;
  align-items:center;
  border:1px solid var(--border);
  border-radius:9px;
  background:#fff;
  padding:14px 15px;
}
.stay-row:hover{
  border-color:#c7d1dd;
  box-shadow:0 3px 12px rgba(15,23,42,.035);
}
.stay-main{min-width:0}
.stay-primary{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.stay-primary strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
}
.stay-subline{
  display:flex;
  flex-wrap:wrap;
  gap:6px 12px;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
}
.stay-subline span:not(:last-child)::after{
  content:"·";
  margin-left:12px;
  color:#c5ccd6;
}
.stay-checks{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.stay-checks span{
  padding:4px 7px;
  border:1px solid #dfe5ec;
  border-radius:5px;
  background:#fafbfc;
  color:#718096;
  font-size:10px;
  font-weight:700;
}
.stay-checks span.done{
  background:#edf7f1;
  border-color:#cce8d8;
  color:#17603d;
}
.stay-result{display:flex;justify-content:flex-start}
.business-dialog{
  width:min(720px,calc(100vw - 32px));
  max-width:720px;
  border-radius:12px;
}
.stay-detail-dialog{
  width:min(900px,calc(100vw - 32px));
  max-width:900px;
}
.stay-detail-dialog form{
  max-height:86vh;
  overflow:auto;
}
.stay-detail-summary{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  padding-bottom:16px;
  margin-bottom:18px;
  border-bottom:1px solid #edf0f4;
}
.stay-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
.stay-detail-list{
  display:grid;
  gap:7px;
  margin-top:8px;
}
.stay-detail-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-bottom:1px solid #edf0f4;
}
.stay-detail-item:last-child{border-bottom:0}
.stay-detail-item small{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:3px;
}
.compact-empty{
  padding:14px;
  font-size:12px;
}
.stay-timeline{
  position:relative;
  display:grid;
  gap:0;
  margin-top:10px;
}
.timeline-entry{
  position:relative;
  display:grid;
  grid-template-columns:16px 1fr;
  gap:10px;
  padding:0 0 16px;
}
.timeline-entry::before{
  content:"";
  position:absolute;
  left:5px;
  top:12px;
  bottom:-2px;
  width:1px;
  background:#dfe5ec;
}
.timeline-entry:last-child::before{display:none}
.timeline-marker{
  position:relative;
  z-index:1;
  width:11px;
  height:11px;
  margin-top:4px;
  border-radius:50%;
  background:var(--accent);
  border:2px solid #fff;
  box-shadow:0 0 0 1px #aebed0;
}
.timeline-entry small{
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:2px;
}
.timeline-entry p{
  margin:4px 0 0;
  color:#566275;
  font-size:12px;
}

@media(max-width:900px){
  .stay-row{
    grid-template-columns:minmax(220px,1fr) minmax(230px,1fr) auto;
  }
  .stay-result{grid-column:2}
  .stay-row>.stay-detail-btn{grid-column:3;grid-row:1 / span 2}
}
@media(max-width:700px){
  .stay-toolbar,.stay-kpis,.stay-detail-grid{grid-template-columns:1fr 1fr}
  .stay-row{
    grid-template-columns:1fr;
    gap:10px;
  }
  .stay-result,.stay-row>.stay-detail-btn{
    grid-column:auto;
    grid-row:auto;
  }
  .stay-row>.stay-detail-btn{width:100%}
}
@media(max-width:520px){
  .stay-toolbar,.stay-kpis,.stay-detail-grid{grid-template-columns:1fr}
  .stay-subline{display:grid;gap:2px}
  .stay-subline span::after{display:none}
}


.stay-guest-link{
  display:inline;
  max-width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:var(--navy);
  font:inherit;
  font-weight:750;
  text-align:left;
  cursor:pointer;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.stay-guest-link:hover{
  color:var(--accent);
  text-decoration:underline;
  text-underline-offset:3px;
}


.stay-row-actions{
  display:flex;
  gap:7px;
  justify-content:flex-end;
  align-items:center;
}
.stay-edit-btn{font-weight:700}
@media(max-width:700px){
  .stay-row-actions{width:100%}
  .stay-row-actions .ghost{flex:1}
}


/* MVP 0.6 – Gastzugang & Einladungen */
.guest-access-section{
  margin:0 0 20px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#f8fafc;
}
.guest-access-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.guest-access-head h4{
  margin:3px 0 0;
  font-size:16px;
}
.guest-access-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.guest-access-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid #dfe5ec;
  border-radius:8px;
  background:#fff;
}
.guest-access-card small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}
.guest-link-test{
  display:flex;
  gap:8px;
  margin-top:10px;
  flex-wrap:wrap;
}
.guest-link-test .ghost{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}

.guest-body{
  min-height:100vh;
  background:#eef2f6;
}
.guest-shell{
  width:min(760px,calc(100% - 28px));
  margin:0 auto;
  padding:26px 0 48px;
}
.guest-brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
  padding:18px 20px;
  border-radius:12px;
  background:var(--navy);
  color:#fff;
}
.guest-brand h1{
  margin:2px 0 0;
  font-size:22px;
}
.guest-brand .eyebrow{color:#9fb2c8}
.guest-secure-badge{
  border:1px solid #ffffff2e;
  border-radius:6px;
  padding:6px 8px;
  color:#d7e1eb;
  font-size:11px;
  font-weight:700;
}
.guest-card{
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  padding:28px;
  box-shadow:var(--shadow-sm);
}
.guest-card h2{
  margin:6px 0 8px;
  font-size:27px;
  letter-spacing:-.025em;
}
.guest-lead{
  margin:0 0 20px;
  color:#4f5d70;
  font-size:15px;
}
.guest-stay-card{
  display:grid;
  gap:3px;
  margin:18px 0;
  padding:15px;
  border:1px solid #dfe5ec;
  border-radius:8px;
  background:#f9fbfd;
}
.guest-stay-card strong{font-size:15px}
.guest-stay-card span{color:var(--muted);font-size:12px}
.guest-info-box{
  margin:18px 0;
  padding:14px 15px;
  border-left:3px solid var(--accent);
  background:#f4f7fb;
}
.guest-info-box p{
  margin:5px 0 0;
  color:#59677a;
}
.guest-main-action{
  width:100%;
  min-height:48px;
  margin-top:6px;
  font-size:15px;
}
.guest-privacy-note{
  margin:16px 0 0;
  color:#7b8798;
  font-size:11px;
  text-align:center;
}

@media(max-width:620px){
  .guest-access-grid{grid-template-columns:1fr}
  .guest-access-card{
    align-items:flex-start;
    flex-direction:column;
  }
  .guest-access-card .ghost{width:100%}
  .guest-shell{width:min(100% - 20px,760px);padding-top:10px}
  .guest-brand{
    align-items:flex-start;
    border-radius:10px;
    padding:16px;
  }
  .guest-secure-badge{display:none}
  .guest-card{padding:22px 18px}
}


/* Guided guest walkthrough */
.guest-walk-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:12px;
}
.guest-progress-text{
  flex:0 0 auto;
  border:1px solid #d8e0e9;
  border-radius:6px;
  background:#f8fafc;
  padding:5px 8px;
  color:#526074;
  font-size:12px;
  font-weight:750;
}
.guest-progress-track{
  width:100%;
  height:7px;
  overflow:hidden;
  border-radius:999px;
  background:#e5eaf0;
  margin-bottom:18px;
}
.guest-progress-bar{
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--accent);
  transition:width .2s ease;
}
.guest-step-card{
  border:1px solid var(--border);
  border-radius:9px;
  background:#f9fbfd;
  padding:16px;
  margin-bottom:14px;
}
.guest-step-card h3{
  margin:4px 0 5px;
  font-size:18px;
}
.guest-reference-image{
  display:block;
  width:100%;
  max-height:340px;
  object-fit:cover;
  margin-top:13px;
  border-radius:8px;
  border:1px solid #dbe2ea;
  background:#eef2f6;
}
.guest-photo-picker{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:72px;
  border:1px dashed #aab7c6;
  border-radius:9px;
  background:#fbfcfd;
  color:#334155;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
}
.guest-photo-picker:hover{background:#f5f8fb}
.guest-photo-picker input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.guest-photo-preview{
  position:relative;
  margin-top:12px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#fff;
  padding:8px;
}
.guest-photo-preview img{
  display:block;
  width:100%;
  max-height:360px;
  object-fit:cover;
  border-radius:7px;
}
.guest-photo-preview .ghost{
  width:100%;
  margin-top:8px;
}
.guest-done-mark{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  margin-bottom:14px;
  border-radius:50%;
  background:#e8f6ee;
  color:#147347;
  font-size:28px;
  font-weight:800;
}

@media(max-width:620px){
  .guest-walk-head h2{font-size:24px}
  .guest-step-card{padding:14px}
  .guest-reference-image{max-height:280px}
}


/* Direct property selection – Service */
.service-property-picker{
  display:grid;
  gap:12px;
}
.service-property-picker-head h4,
.service-property-context h4{
  margin:3px 0 0;
  font-size:17px;
  color:var(--navy);
}
.service-property-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:10px;
}
.service-property-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  min-height:118px;
  padding:15px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#fff;
  color:var(--text);
  text-align:left;
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.service-property-card:hover,
.service-property-card:focus-visible{
  border-color:#9eb4cc;
  box-shadow:0 5px 16px rgba(15,23,42,.06);
  transform:translateY(-1px);
  outline:none;
}
.service-property-card.active{
  border-color:#7ea3ce;
  box-shadow:0 0 0 2px rgba(31,79,138,.08);
}
.service-property-card-main{
  display:flex;
  align-items:flex-start;
  gap:11px;
  min-width:0;
}
.service-property-icon{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:38px;
  height:38px;
  border-radius:7px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:20px;
  font-weight:800;
}
.service-property-card-main>div:last-child{
  min-width:0;
}
.service-property-card strong{
  display:block;
  color:var(--navy);
  font-size:14px;
}
.service-property-card small{
  display:block;
  overflow:hidden;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.service-property-card-meta{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:14px;
  padding-top:10px;
  border-top:1px solid #edf0f4;
  color:#687588;
  font-size:11px;
  font-weight:700;
}
.service-property-workspace{
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid var(--border);
}
.service-property-context{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
  padding:13px 14px;
  border:1px solid #dbe3ec;
  border-radius:9px;
  background:#f8fafc;
}
.service-property-context p{
  margin:4px 0 0;
  font-size:12px;
}

@media(max-width:620px){
  .service-property-cards{grid-template-columns:1fr}
  .service-property-card{min-height:108px}
  .service-property-context{
    align-items:stretch;
    flex-direction:column;
  }
  .service-property-context .ghost{width:100%}
}


/* Manager property drill-down */
.manager-property-card{
  width:100%;
  min-height:76px;
  align-items:center;
  cursor:pointer;
  text-align:left;
}
.manager-property-card:hover,
.manager-property-card:focus-visible{
  border-color:#9eb4cc;
  box-shadow:0 4px 14px rgba(15,23,42,.05);
  outline:none;
}
.manager-property-card-main{
  min-width:0;
}
.manager-property-card-main strong{
  display:block;
  color:var(--navy);
  font-size:14px;
}
.manager-property-card-main small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
}
.manager-property-card-side{
  display:flex;
  align-items:center;
  gap:14px;
}
.manager-property-open{
  color:var(--accent);
  font-size:11px;
  font-weight:750;
  white-space:nowrap;
}
.property-workspace{
  margin-top:4px;
}
.property-workspace-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  padding:4px 0 18px;
  border-bottom:1px solid var(--border);
}
.property-workspace-head h2{
  margin:4px 0 2px;
  color:var(--navy);
  font-size:26px;
  letter-spacing:-.025em;
}
.property-back-link{
  display:inline-flex;
  margin:0 0 16px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--accent);
  font:inherit;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}
.property-back-link:hover{text-decoration:underline}
.property-workspace-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:18px 0 22px;
}
.property-workspace-kpis>div{
  padding:14px 15px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#f9fbfd;
}
.property-workspace-kpis span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
}
.property-workspace-kpis strong{
  display:block;
  margin-top:4px;
  color:var(--navy);
  font-size:20px;
  font-weight:750;
}
.property-section{
  padding:18px 0 4px;
  border-top:1px solid #edf0f4;
}
.property-section-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.property-section-head h3{
  margin:3px 0 0;
  font-size:17px;
  color:var(--navy);
}
.property-room-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:8px;
}
.property-room-card{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#fff;
}
.property-room-number{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  flex:0 0 auto;
  border-radius:6px;
  background:var(--accent-soft);
  color:var(--accent);
  font-size:12px;
  font-weight:800;
}
.property-room-card strong{
  display:block;
  color:var(--navy);
  font-size:13px;
}
.property-room-card small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
}
.property-action-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:9px;
}
.property-action-card{
  min-height:92px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#fff;
  color:var(--text);
  text-align:left;
  cursor:pointer;
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.property-action-card:hover,
.property-action-card:focus-visible{
  border-color:#9eb4cc;
  box-shadow:0 4px 14px rgba(15,23,42,.05);
  transform:translateY(-1px);
  outline:none;
}
.property-action-card strong{
  display:block;
  color:var(--navy);
  font-size:14px;
}
.property-action-card span{
  display:block;
  margin-top:5px;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.property-action-primary{
  border-color:#c5d7ea;
  background:#f4f8fc;
}
.property-action-primary strong{color:var(--accent)}

@media(max-width:700px){
  .property-workspace-kpis{grid-template-columns:1fr 1fr}
  .manager-property-card-side{gap:8px}
  .manager-property-open{display:none}
}
@media(max-width:480px){
  .property-workspace-kpis{grid-template-columns:1fr}
  .property-room-grid,.property-action-grid{grid-template-columns:1fr}
}


/* MVP 0.6 – Zustandsvergleich & Beweiskette */
.stay-evaluation-section{
  margin:0 0 16px;
  padding:16px;
  border:1px solid #d8e3ef;
  border-radius:10px;
  background:#f6f9fc;
}
.stay-evaluation-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
}
.stay-evaluation-head h4{
  margin:3px 0 4px;
  color:var(--navy);
  font-size:16px;
}
.stay-evaluation-head p{
  max-width:720px;
  margin:0;
  font-size:12px;
  line-height:1.45;
}
.stay-evidence-section{
  margin:0 0 18px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}
.stay-finding-evidence{
  display:grid;
  gap:12px;
  margin-top:10px;
}
.evidence-chain-card{
  border:1px solid #dfe5ec;
  border-radius:9px;
  background:#fbfcfe;
  padding:14px;
}
.evidence-chain-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.evidence-chain-head strong{
  display:block;
  color:var(--navy);
  font-size:14px;
}
.evidence-chain-head small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:11px;
}
.evidence-chain-summary{
  margin:10px 0 12px;
  color:#4f5d70;
  font-size:12px;
  line-height:1.45;
}
.evidence-stage-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.evidence-stage{
  min-width:0;
  padding:10px;
  border:1px solid #e1e7ee;
  border-radius:8px;
  background:#fff;
}
.evidence-stage.empty-stage{
  background:#f7f8fa;
}
.evidence-stage-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:5px;
}
.evidence-stage-title strong{
  color:var(--navy);
  font-size:12px;
}
.evidence-stage>small{
  display:block;
  min-height:16px;
  color:var(--muted);
  font-size:10px;
}
.evidence-stage p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.evidence-photo-strip{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:5px;
  margin-top:8px;
}
.evidence-photo-strip img{
  display:block;
  width:100%;
  aspect-ratio:4/3;
  border:1px solid #dde4ec;
  border-radius:6px;
  object-fit:cover;
  background:#eef2f6;
}
.evidence-no-photo{
  display:grid;
  min-height:74px;
  place-items:center;
  margin-top:8px;
  border:1px dashed #d2dbe5;
  border-radius:6px;
  background:#f8fafc;
  color:#8a96a6;
  font-size:10px;
  text-align:center;
}

@media(max-width:760px){
  .stay-evaluation-head{
    align-items:stretch;
    flex-direction:column;
  }
  .stay-evaluation-head .primary{width:100%}
  .evidence-stage-grid{grid-template-columns:1fr}
}


/* FairFEWO brand */
.brand-lockup{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.brand-mark{
  width:48px;
  height:48px;
  flex:0 0 auto;
  display:block;
}
.brand-wordmark{
  display:flex;
  align-items:baseline;
  gap:0;
  color:#13243a;
  font-size:24px;
  font-weight:800;
  letter-spacing:-.035em;
  line-height:1;
}
.brand-wordmark span{font-weight:750}
.brand-wordmark strong{
  color:#11b7a4;
  font-weight:850;
}
.brand-claim{
  margin-top:5px;
  color:#667487;
  font-size:10px;
  font-weight:650;
  letter-spacing:.025em;
}
.brand-lockup-light .brand-wordmark{color:#fff}
.brand-lockup-light .brand-wordmark strong{color:#24d0bd}
.brand-lockup-light .brand-claim{color:#c6d2df}
.topbar .brand-mark{width:50px;height:50px}
.guest-brand .brand-mark{width:44px;height:44px}
.guest-brand .brand-wordmark{font-size:22px}
.hero{
  background:linear-gradient(135deg,#13243a 0%,#173b50 65%,#0e7f78 140%);
}
.primary{
  background:#13243a;
}
.primary:hover:not(:disabled){
  background:#18314e;
}
@media(max-width:620px){
  .topbar .brand-mark{width:42px;height:42px}
  .topbar .brand-wordmark{font-size:21px}
  .topbar .brand-claim{font-size:9px}
}


/* FairFEWO wordmark contrast hardening */
.brand-wordmark{
  overflow:visible;
  white-space:nowrap;
}
.brand-fair{
  color:#13243a;
  font-weight:750;
}
.brand-fewo{
  color:#11b7a4;
  font-weight:850;
}
.brand-lockup-light .brand-fair,
.topbar .brand-fair{
  color:#ffffff;
}
.brand-lockup-light .brand-fewo,
.topbar .brand-fewo{
  color:#24d0bd;
}
.brand-lockup,
.brand-lockup>div{
  overflow:visible;
}


/* FairFEWO admin console */
.admin-shell{max-width:1500px}
.admin-top-link{
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.admin-inline-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  width:auto;
}
.admin-auth-wrap{
  min-height:65vh;
  display:grid;
  place-items:center;
}
.admin-auth-panel{
  width:min(100%,460px);
}
.admin-auth-panel h2{
  margin:4px 0 6px;
  color:var(--navy);
  font-size:28px;
}
.admin-denied-card{
  width:min(100%,560px);
  padding:28px;
  text-align:left;
}
.admin-denied-card h2{
  margin:4px 0 8px;
  color:var(--navy);
}
.admin-app-head{
  align-items:center;
}
.admin-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-bottom:16px;
}
.admin-kpis>div{
  padding:15px 16px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.admin-kpis span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
}
.admin-kpis strong{
  display:block;
  margin-top:4px;
  color:var(--navy);
  font-size:24px;
  letter-spacing:-.03em;
}
.admin-section{
  margin-bottom:14px;
}
.admin-panel-head{
  align-items:center;
}
.admin-search{
  width:min(320px,100%);
  margin:0;
}
.admin-users-list{
  display:grid;
  gap:8px;
}
.admin-user-row{
  display:grid;
  grid-template-columns:minmax(260px,1.4fr) minmax(230px,.8fr) auto;
  align-items:center;
  gap:16px;
  padding:14px;
  border:1px solid #e0e6ed;
  border-radius:9px;
  background:#fbfcfe;
}
.admin-user-main{
  min-width:0;
}
.admin-user-title{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}
.admin-user-title strong{
  color:var(--navy);
  font-size:14px;
}
.admin-user-email{
  display:block;
  margin-top:3px;
  color:#59677a;
  font-size:12px;
}
.admin-memberships{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:8px;
}
.admin-membership{
  display:inline-flex;
  padding:4px 6px;
  border:1px solid #dbe3ec;
  border-radius:5px;
  background:#fff;
  color:#5b687a;
  font-size:10px;
  font-weight:650;
}
.admin-user-meta{
  display:grid;
  gap:6px;
  color:var(--muted);
  font-size:10px;
}
.admin-user-meta span{
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.admin-user-meta strong{
  color:#4b586a;
  font-weight:700;
}
.admin-user-actions{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:6px;
}
.admin-user-actions button{
  white-space:nowrap;
  font-size:11px;
}
.admin-tenant-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
  gap:9px;
}
.admin-tenant-card{
  padding:14px;
  border:1px solid #dfe5ec;
  border-radius:9px;
  background:#fbfcfe;
}
.admin-tenant-card h4{
  margin:3px 0 12px;
  color:var(--navy);
  font-size:15px;
}
.admin-tenant-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  margin-bottom:10px;
}
.admin-tenant-stats span{
  padding:8px;
  border:1px solid #e2e7ee;
  border-radius:6px;
  background:#fff;
  color:var(--muted);
  font-size:9px;
  text-align:center;
}
.admin-tenant-stats strong{
  display:block;
  color:var(--navy);
  font-size:17px;
}
.admin-tenant-card small{
  color:var(--muted);
  font-size:10px;
}
@media(max-width:900px){
  .admin-user-row{
    grid-template-columns:1fr;
  }
  .admin-user-actions{
    flex-direction:row;
    flex-wrap:wrap;
  }
}
@media(max-width:700px){
  .admin-kpis{grid-template-columns:1fr 1fr}
  .admin-panel-head{
    align-items:stretch;
    flex-direction:column;
  }
  .admin-search{width:100%}
}
@media(max-width:480px){
  .admin-kpis{grid-template-columns:1fr}
  .admin-user-actions{flex-direction:column}
  .admin-user-actions button{width:100%}
}


/* FairFEWO admin role management */
.admin-head-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.admin-role-button{
  font-size:11px;
  white-space:nowrap;
}
.admin-check-row{
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-top:12px;
  padding:11px 12px;
  border:1px solid #dce4ec;
  border-radius:8px;
  background:#f8fafc;
  cursor:pointer;
}
.admin-check-row input{
  width:auto;
  margin:2px 0 0;
}
.admin-check-row span{
  display:grid;
  gap:2px;
}
.admin-check-row strong{
  color:var(--navy);
  font-size:12px;
}
.admin-check-row small{
  color:var(--muted);
  font-size:10px;
  line-height:1.35;
}
.admin-role-help{
  display:grid;
  gap:6px;
  margin:12px 0 4px;
}
.admin-role-help>div{
  display:grid;
  gap:2px;
  padding:9px 10px;
  border-left:3px solid #11b7a4;
  background:#f5faf9;
}
.admin-role-help strong{
  color:var(--navy);
  font-size:11px;
}
.admin-role-help span{
  color:var(--muted);
  font-size:10px;
}
#adminCreateUserDialog form,
#adminAccessDialog form{
  min-width:min(520px,calc(100vw - 32px));
}
@media(max-width:700px){
  .admin-head-actions{
    width:100%;
    align-items:stretch;
    flex-direction:column;
  }
  .admin-head-actions button{width:100%}
}


/* MVP 0.6 – Belegungskalender & Verwaltungsart */
.stay-calendar-section{
  margin:0 0 22px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fbfcfe;
}
.stay-calendar-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.stay-calendar-head h3{
  margin:3px 0 3px;
  color:var(--navy);
  font-size:18px;
  text-transform:capitalize;
}
.stay-calendar-head p{
  margin:0;
  max-width:680px;
  font-size:12px;
  line-height:1.45;
}
.stay-calendar-controls{
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex:0 0 auto;
}
.stay-calendar-property{
  display:grid;
  gap:5px;
  min-width:260px;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
}
.stay-calendar-property span{
  text-transform:uppercase;
  letter-spacing:.04em;
}
.stay-calendar-property select{
  width:100%;
  min-height:38px;
  background:#fff;
  color:var(--navy);
  font-weight:700;
}
.stay-calendar-nav{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}
.stay-calendar-legend{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin:0 0 12px;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
}
.stay-calendar-legend span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.calendar-dot{
  display:inline-block;
  width:9px;
  height:9px;
  border-radius:50%;
  background:#5b7b9d;
}
.calendar-dot.owner-use{background:#8a6b9c}
.calendar-dot.blocked{background:#7b8794}
.stay-calendar-weekdays,
.stay-calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
}
.stay-calendar-weekdays{
  border:1px solid #dfe5ec;
  border-bottom:0;
  border-radius:8px 8px 0 0;
  overflow:hidden;
  background:#f2f5f8;
}
.stay-calendar-weekdays span{
  padding:8px 6px;
  color:#667589;
  font-size:10px;
  font-weight:800;
  text-align:center;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.stay-calendar-grid{
  border-top:1px solid #dfe5ec;
  border-left:1px solid #dfe5ec;
  border-radius:0 0 8px 8px;
  overflow:hidden;
}
.stay-calendar-day{
  position:relative;
  min-height:92px;
  padding:7px;
  border-right:1px solid #dfe5ec;
  border-bottom:1px solid #dfe5ec;
  background:#fff;
  cursor:pointer;
}
.stay-calendar-day.free:hover{
  background:#f4f8fc;
}
.stay-calendar-day.outside{
  background:#f7f8fa;
  color:#a2aab5;
}
.stay-calendar-day.today{
  box-shadow:inset 0 0 0 2px var(--accent);
}
.stay-calendar-day.occupied{
  cursor:default;
}
.stay-calendar-date{
  display:inline-grid;
  place-items:center;
  width:24px;
  height:24px;
  color:#526174;
  font-size:11px;
  font-weight:750;
}
.stay-calendar-day.today .stay-calendar-date{
  border-radius:50%;
  background:var(--accent);
  color:#fff;
}
.stay-calendar-event{
  display:block;
  width:100%;
  margin-top:5px;
  padding:7px 8px;
  border:1px solid #c8d8e8;
  border-radius:7px;
  background:#edf4fb;
  color:#214d75;
  text-align:left;
  cursor:pointer;
}
.stay-calendar-event:hover{
  filter:brightness(.98);
}
.stay-calendar-event.owner-use{
  border-color:#d8cde1;
  background:#f4eff7;
  color:#684c77;
}
.stay-calendar-event.blocked{
  border-color:#d7dce1;
  background:#f0f2f4;
  color:#56616d;
}
.stay-calendar-event strong,
.stay-calendar-event span{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.stay-calendar-event strong{
  font-size:10px;
  font-weight:800;
}
.stay-calendar-event span{
  margin-top:2px;
  font-size:10px;
}
.property-management-mode{
  display:grid;
  gap:5px;
  width:min(310px,100%);
  margin-top:14px;
  color:var(--muted);
  font-size:11px;
  font-weight:700;
}
.property-management-mode select{
  width:100%;
  min-height:38px;
}
.manager-property-card-side .pill:first-child{
  background:#f4f6f8;
  color:#526174;
}

@media(max-width:760px){
  .stay-calendar-section{padding:12px}
  .stay-calendar-head{align-items:stretch;flex-direction:column}
  .stay-calendar-controls{align-items:stretch;flex-direction:column}
  .stay-calendar-property{min-width:0;width:100%}
  .stay-calendar-nav{justify-content:space-between}
  .stay-calendar-nav .ghost{flex:1}
  .stay-calendar-day{min-height:74px;padding:5px}
  .stay-calendar-event{padding:5px}
  .stay-calendar-event span{display:none}
}
@media(max-width:520px){
  .stay-calendar-section{
    margin-left:-8px;
    margin-right:-8px;
    padding:10px 8px;
  }
  .stay-calendar-weekdays span{padding:7px 2px;font-size:9px}
  .stay-calendar-day{min-height:58px;padding:3px}
  .stay-calendar-date{width:20px;height:20px;font-size:10px}
  .stay-calendar-event{
    margin-top:2px;
    padding:4px 3px;
    border-radius:5px;
  }
  .stay-calendar-event strong{font-size:8px}
}


/* MVP 0.7 – Buchungsseiten-Editor & Anfragen */
.booking-requests-section{
  margin:0 0 22px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
}
.booking-requests-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:12px;
}
.booking-requests-head h3{
  margin:3px 0 3px;
  color:var(--navy);
  font-size:18px;
}
.booking-requests-head p{
  margin:0;
  font-size:12px;
}
.booking-requests-list{
  display:grid;
  gap:8px;
}
.booking-request-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:13px 14px;
  border:1px solid #dfe5ec;
  border-radius:9px;
  background:#fbfcfd;
}
.booking-request-title{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.booking-request-title strong{
  color:var(--navy);
  font-size:14px;
}
.booking-request-message{
  margin:8px 0 0;
  color:#59677a;
  font-size:12px;
  line-height:1.45;
}
.booking-request-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
}
.booking-settings-dialog{
  width:min(780px,calc(100vw - 32px));
  max-width:780px;
}
.booking-settings-link-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:14px;
}

/* Öffentliche editierbare Buchungsseite */
.booking-body{
  min-height:100vh;
  background:#eef2f6;
  color:var(--text);
}
.booking-shell{
  width:min(1180px,calc(100% - 28px));
  margin:0 auto;
  padding:24px 0 54px;
}
.booking-loading,
.booking-error-card{
  max-width:680px;
  margin:80px auto;
  padding:32px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  text-align:center;
  box-shadow:var(--shadow-sm);
}
.booking-brandbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:12px;
  padding:16px 18px;
  border-radius:12px;
  background:var(--navy);
  color:#fff;
}
.booking-brandbar .eyebrow{
  color:#9fb2c8;
}
.booking-brandbar strong{
  display:block;
  margin-top:2px;
  font-size:19px;
  letter-spacing:-.015em;
}
.booking-secure{
  padding:6px 9px;
  border:1px solid #ffffff2e;
  border-radius:6px;
  color:#d7e1eb;
  font-size:11px;
  font-weight:700;
}
.booking-hero{
  position:relative;
  min-height:360px;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  border-radius:14px;
  background:
    linear-gradient(135deg,#18314d,#2e5b86);
  background-position:center;
  background-size:cover;
  box-shadow:var(--shadow-sm);
}
.booking-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(8,19,32,.05),rgba(8,19,32,.72));
}
.booking-hero-content{
  position:relative;
  z-index:1;
  width:min(760px,100%);
  padding:34px;
  color:#fff;
}
.booking-location{
  margin-bottom:8px;
  color:#d9e3ed;
  font-size:12px;
  font-weight:700;
}
.booking-hero h1{
  margin:0;
  font-size:clamp(30px,5vw,52px);
  line-height:1.02;
  letter-spacing:-.035em;
}
.booking-hero p{
  max-width:680px;
  margin:12px 0 0;
  color:#ecf2f7;
  font-size:17px;
  line-height:1.5;
}
.booking-layout{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(320px,.7fr);
  gap:18px;
  margin-top:18px;
}
.booking-content-card,
.booking-request-card{
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
  padding:24px;
  box-shadow:var(--shadow-sm);
}
.booking-request-card{
  align-self:start;
  position:sticky;
  top:18px;
}
.booking-content-card h2,
.booking-request-card h2{
  margin:4px 0 8px;
  color:var(--navy);
}
.booking-description{
  margin:10px 0 20px;
  color:#536174;
  font-size:15px;
  line-height:1.65;
  white-space:pre-line;
}
.booking-facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  margin:0 0 24px;
}
.booking-facts>div{
  padding:13px;
  border:1px solid var(--border);
  border-radius:8px;
  background:#f8fafc;
}
.booking-facts span{
  display:block;
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.booking-facts strong{
  display:block;
  margin-top:4px;
  color:var(--navy);
  font-size:13px;
}
.booking-availability-section{
  padding-top:18px;
  border-top:1px solid #edf0f4;
}
.booking-section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}
.booking-section-head h2{
  margin:3px 0 0;
  text-transform:capitalize;
}
.booking-calendar-nav{
  display:flex;
  gap:6px;
}
.booking-public-calendar-legend{
  display:flex;
  gap:14px;
  margin:12px 0 8px;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
}
.booking-public-calendar-legend span{
  display:flex;
  align-items:center;
  gap:6px;
}
.booking-public-calendar-legend i{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#dbe8f5;
}
.booking-public-calendar-legend i.occupied{
  background:#c62828;
}
.booking-calendar-weekdays,
.booking-calendar-days{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
}
.booking-calendar-weekdays{
  border:1px solid #dfe5ec;
  border-bottom:0;
  border-radius:8px 8px 0 0;
  background:#f2f5f8;
  overflow:hidden;
}
.booking-calendar-weekdays span{
  padding:8px 3px;
  color:#667589;
  font-size:10px;
  font-weight:800;
  text-align:center;
}
.booking-calendar-days{
  border-top:1px solid #dfe5ec;
  border-left:1px solid #dfe5ec;
  border-radius:0 0 8px 8px;
  overflow:hidden;
}
.booking-calendar-day{
  min-height:54px;
  border:0;
  border-right:1px solid #dfe5ec;
  border-bottom:1px solid #dfe5ec;
  background:#fff;
  color:#405067;
  cursor:pointer;
}
.booking-calendar-day.free:hover:not(:disabled){
  background:#eef6fd;
}
.booking-calendar-day.selected-range{
  background:#e3f2e8;
  color:#1f5f37;
}
.booking-calendar-day.selected-start,
.booking-calendar-day.selected-end{
  position:relative;
  background:#1f5f37;
  color:#fff;
  font-weight:800;
}
.booking-calendar-day.selected-start::after,
.booking-calendar-day.selected-end::after{
  position:absolute;
  left:50%;
  bottom:5px;
  transform:translateX(-50%);
  font-size:7px;
  font-weight:800;
  letter-spacing:.03em;
  text-transform:uppercase;
  opacity:.9;
}
.booking-calendar-day.selected-start::after{
  content:"Anreise";
}
.booking-calendar-day.selected-end::after{
  content:"Abreise";
}

.booking-calendar-day.occupied{
  background:#fdecec;
  color:#9f2020;
  cursor:not-allowed;
}
.booking-calendar-day.outside{
  opacity:.48;
}
.booking-calendar-day.past{
  color:#b2bac4;
  background:#f8f9fa;
}
.booking-rules{
  margin-top:22px;
  padding:16px;
  border-radius:8px;
  background:#f7f9fb;
}
.booking-rules p{
  margin:7px 0 0;
  color:#59677a;
  line-height:1.55;
  white-space:pre-line;
}
.booking-date-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.booking-request-card form{
  display:grid;
  gap:11px;
  margin-top:16px;
}
.booking-request-card label{
  display:grid;
  gap:5px;
}
.booking-request-card textarea{
  min-height:96px;
}
.booking-honeypot{
  position:absolute!important;
  left:-10000px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
}
.booking-success-message{
  margin-top:14px;
  padding:16px;
  border:1px solid #b9dfcc;
  border-radius:9px;
  background:#edf8f2;
  color:#15583a;
}
.booking-success-message p{
  margin:5px 0 0;
}
.booking-success-message small{
  display:block;
  margin-top:8px;
  opacity:.75;
}
.booking-contact{
  margin:14px 0 0;
  font-size:11px;
  line-height:1.45;
}

@media(max-width:900px){
  .booking-layout{grid-template-columns:1fr}
  .booking-request-card{position:static}
}
@media(max-width:700px){
  .booking-request-row{grid-template-columns:1fr}
  .booking-request-actions{justify-content:flex-start}
  .booking-facts{grid-template-columns:1fr}
  .booking-hero{min-height:300px}
  .booking-hero-content{padding:24px}
}
@media(max-width:520px){
  .booking-shell{width:min(100% - 18px,1180px);padding-top:10px}
  .booking-brandbar{align-items:flex-start;flex-direction:column}
  .booking-hero{min-height:260px;border-radius:10px}
  .booking-content-card,.booking-request-card{padding:17px}
  .booking-date-grid{grid-template-columns:1fr}
  .booking-calendar-day{min-height:46px}
}


/* MVP 0.8 – Portfolio-Import */
.property-head-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.portfolio-import-dialog{
  width:min(860px,calc(100vw - 32px));
  max-width:860px;
}
.portfolio-import-guide{
  margin:14px 0 16px;
  padding:14px;
  border:1px solid #dfe5ec;
  border-radius:9px;
  background:#f8fafc;
}
.portfolio-import-guide strong{
  display:block;
  color:var(--navy);
  margin-bottom:7px;
}
.portfolio-import-guide code{
  display:block;
  padding:9px 10px;
  border-radius:6px;
  background:#eef2f6;
  color:#31445b;
  font-size:11px;
  overflow:auto;
}
.portfolio-import-guide p{
  margin:8px 0 0;
  color:var(--muted);
  font-size:11px;
}
.portfolio-import-actions{
  display:flex;
  gap:8px;
  margin:10px 0;
}
.portfolio-import-preview{
  display:grid;
  gap:5px;
  max-height:330px;
  overflow:auto;
  margin:10px 0 14px;
}
.portfolio-import-row{
  display:grid;
  grid-template-columns:42px minmax(180px,1.4fr) minmax(160px,1fr) 80px 100px;
  gap:8px;
  align-items:center;
  padding:9px 10px;
  border:1px solid #dfe5ec;
  border-radius:7px;
  background:#fff;
  font-size:11px;
}
.portfolio-import-row>span{
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.portfolio-import-row strong{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--navy);
}
.portfolio-import-row small{
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.portfolio-import-row em{
  color:#24704a;
  font-style:normal;
  font-weight:700;
}
.portfolio-import-row.invalid{
  border-color:#efc9c9;
  background:#fff7f7;
}
.portfolio-import-row.invalid em{
  color:#9f3030;
}
.portfolio-import-more{
  padding:7px 10px;
  font-size:11px;
}

@media(max-width:720px){
  .property-head-actions{
    width:100%;
    align-items:stretch;
  }
  .property-head-actions button{flex:1}
  .portfolio-import-row{
    grid-template-columns:34px 1fr;
  }
  .portfolio-import-row small,
  .portfolio-import-row em{
    grid-column:2;
  }
}


/* MVP 0.8 – PMS/API-Verbindungen */
.integration-section{
  margin-top:20px;
  padding-top:18px;
  border-top:1px solid #e7ebf0;
}
.integration-section-head h4{
  margin:3px 0 3px;
  color:var(--navy);
  font-size:16px;
}
.integration-section-head p{
  margin:0 0 12px;
  font-size:12px;
  line-height:1.45;
}
.integration-connections-list{
  display:grid;
  gap:7px;
  margin-top:10px;
}
.integration-connection-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 12px;
  border:1px solid #dfe5ec;
  border-radius:8px;
  background:#fbfcfd;
}
.integration-connection-title{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.integration-connection-row small{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:11px;
}
.integration-connection-row em{
  display:block;
  margin-top:4px;
  color:#a33b3b;
  font-size:11px;
  font-style:normal;
}
.integration-key-box{
  margin:12px 0;
  padding:14px;
  border:1px solid #badccc;
  border-radius:9px;
  background:#f0f8f4;
}
.integration-key-box strong{
  display:block;
  color:#15583a;
}
.integration-key-box>code{
  display:block;
  overflow:auto;
  margin:8px 0;
  padding:9px;
  border-radius:6px;
  background:#10251c;
  color:#d8f5e6;
  font-size:11px;
}
.integration-key-box p{
  margin:6px 0 10px;
  color:#476455;
  font-size:11px;
  line-height:1.45;
}
@media(max-width:650px){
  .integration-connection-row{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* MVP 0.7.1 – Preisverwaltung */
.booking-pricing-settings{
  margin-top:4px;
  padding:16px;
  border:1px solid #dfe5ec;
  border-radius:10px;
  background:#f8fafc;
}
.booking-pricing-settings-head{
  margin-bottom:13px;
}
.booking-pricing-settings-head h4{
  margin:3px 0 3px;
  color:var(--navy);
  font-size:16px;
}
.booking-pricing-settings-head p{
  margin:0;
  font-size:11px;
  line-height:1.45;
}
.money-input{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
}
.money-input input{
  border:0;
  border-radius:0;
  min-width:0;
}
.money-input span{
  padding:0 12px;
  color:var(--muted);
  font-weight:800;
}
.booking-extras-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:16px 0 8px;
}
.booking-extras-head>div{
  display:grid;
  gap:2px;
}
.booking-extras-head strong{
  color:var(--navy);
  font-size:12px;
}
.booking-extras-head span{
  color:var(--muted);
  font-size:10px;
}
.booking-extras-editor{
  display:grid;
  gap:7px;
}
.booking-extra-editor-row{
  display:grid;
  grid-template-columns:minmax(160px,1.3fr) minmax(110px,.7fr) minmax(150px,1fr) 92px 38px;
  gap:8px;
  align-items:end;
  padding:10px;
  border:1px solid #dfe5ec;
  border-radius:8px;
  background:#fff;
}
.booking-extra-editor-row label{
  font-size:10px;
}
.compact-money-input input{
  padding:9px;
}
.booking-extra-required{
  align-items:center;
  justify-content:center;
  min-height:59px;
}
.booking-extra-required input{
  width:18px;
  height:18px;
  margin:0;
}
.booking-extra-remove{
  width:38px;
  min-width:38px;
  height:38px;
  padding:0;
}
@media(max-width:760px){
  .booking-extra-editor-row{
    grid-template-columns:1fr 1fr;
  }
  .booking-extra-editor-row label:first-child{
    grid-column:1/-1;
  }
  .booking-extra-required{
    min-height:auto;
    align-items:flex-start;
  }
}

/* Öffentliche Preisübersicht */
.booking-facts{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.booking-extra-options{
  display:grid;
  gap:7px;
  padding:12px;
  border:1px solid #dfe5ec;
  border-radius:9px;
  background:#f8fafc;
}
.booking-extra-options-head{
  display:grid;
  gap:2px;
  margin-bottom:3px;
}
.booking-extra-options-head strong{
  color:var(--navy);
  font-size:12px;
}
.booking-extra-options-head span{
  color:var(--muted);
  font-size:10px;
}
.booking-extra-option{
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  justify-content:space-between;
  gap:10px!important;
  padding:9px 10px;
  border:1px solid #e0e6ed;
  border-radius:7px;
  background:#fff;
}
.booking-extra-option.optional{
  cursor:pointer;
  justify-content:flex-start;
}
.booking-extra-option.optional input{
  width:18px;
  height:18px;
  flex:0 0 auto;
  margin:0;
}
.booking-extra-option>div{
  min-width:0;
  display:grid;
  gap:2px;
}
.booking-extra-option strong{
  color:var(--navy);
  font-size:11px;
}
.booking-extra-option small{
  color:var(--muted);
  font-size:9px;
}
.booking-extra-required-badge{
  padding:4px 6px;
  border-radius:999px;
  background:#e3f2e8;
  color:#1f5f37;
  font-size:9px;
  font-weight:800;
}
.booking-price-summary{
  overflow:hidden;
  border:1px solid #cfd9d4;
  border-radius:10px;
  background:#fff;
}
.booking-price-summary-head{
  display:grid;
  gap:2px;
  padding:12px 13px;
  background:#f3f8f5;
  border-bottom:1px solid #dde7e1;
}
.booking-price-summary-head strong{
  color:#1f5f37;
  font-size:13px;
}
.booking-price-summary-head span{
  color:var(--muted);
  font-size:9px;
}
.booking-price-rows{
  display:grid;
  gap:0;
}
.booking-price-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:9px 13px;
  border-bottom:1px solid #edf0f2;
  color:#536174;
  font-size:11px;
}
.booking-price-row span{
  min-width:0;
}
.booking-price-row small{
  color:var(--muted);
  font-size:9px;
}
.booking-price-row strong{
  color:var(--navy);
  white-space:nowrap;
}
.booking-price-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  padding:13px;
  background:#1f5f37;
  color:#fff;
}
.booking-price-total span{
  font-size:12px;
  font-weight:700;
}
.booking-price-total strong{
  font-size:18px;
}
.booking-price-loading,
.booking-price-unavailable{
  padding:12px 13px;
}
.booking-price-loading{
  color:var(--muted);
  font-size:11px;
}
.booking-price-unavailable{
  display:grid;
  gap:3px;
}
.booking-price-unavailable strong{
  color:var(--navy);
}
.booking-price-unavailable span{
  color:var(--muted);
  font-size:10px;
}
.booking-success-price{
  margin-top:8px!important;
}

/* Kalender: Rot = gebucht, Dunkelgrün = Auswahl */
.booking-calendar-day{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:2px;
}
.booking-calendar-number{
  font-weight:750;
}
.booking-calendar-price{
  font-size:8px;
  font-weight:700;
  opacity:.8;
  white-space:nowrap;
}
.booking-calendar-price.occupied-label{
  color:#9f2020;
  text-transform:uppercase;
  font-size:7px;
}
.booking-calendar-day.occupied{
  background:#fde8e8;
  color:#a21d1d;
  box-shadow:inset 0 0 0 1px #efb5b5;
}
.booking-calendar-day.selected-range{
  background:#dfeee4;
  color:#174b2c;
}
.booking-calendar-day.selected-start,
.booking-calendar-day.selected-end{
  background:#174b2c;
  color:#fff;
  box-shadow:inset 0 0 0 1px #174b2c;
}
.booking-calendar-day.selected-start .booking-calendar-price,
.booking-calendar-day.selected-end .booking-calendar-price{
  color:#fff;
}

@media(max-width:700px){
  .booking-facts{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  .booking-calendar-price{font-size:7px}
}


/* Property editing + clearer navigation */
.property-workspace-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 14px;
}
.property-back-button{
  border-color:#cfd9e5;
  background:#f7f9fb;
  color:var(--navy);
}
.property-edit-dialog{
  width:min(720px,calc(100vw - 32px));
  max-width:720px;
}
.property-edit-rooms-section{
  margin-top:6px;
  padding:14px;
  border:1px solid #dfe5ec;
  border-radius:10px;
  background:#f8fafc;
}
.property-edit-rooms-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.property-edit-rooms-head strong{
  display:block;
  margin-top:3px;
  color:var(--navy);
  font-size:14px;
}
.property-edit-rooms{
  display:grid;
  gap:7px;
}
.property-edit-room-row{
  display:grid;
  grid-template-columns:24px minmax(0,1fr) auto;
  align-items:end;
  gap:8px;
  padding:9px;
  border:1px solid #dfe5ec;
  border-radius:8px;
  background:#fff;
}
.property-edit-room-row label{
  gap:4px;
}
.property-edit-room-row label>span{
  color:var(--muted);
  font-size:9px;
}
.property-edit-room-handle{
  align-self:center;
  color:#9aa7b5;
  font-weight:900;
  letter-spacing:-2px;
}
.property-edit-room-remove{
  min-height:42px;
}
@media(max-width:620px){
  .property-workspace-toolbar{
    align-items:stretch;
    flex-direction:column;
  }
  .property-workspace-toolbar button{width:100%}
  .property-edit-room-row{
    grid-template-columns:20px 1fr;
  }
  .property-edit-room-remove{
    grid-column:2;
    width:100%;
  }
}

/* Booking gallery editor */
.booking-gallery-settings{
  margin-top:4px;
  padding:16px;
  border:1px solid #dfe5ec;
  border-radius:10px;
  background:#f8fafc;
}
.booking-gallery-settings-head{
  margin-bottom:12px;
}
.booking-gallery-settings-head h4{
  margin:3px 0;
  color:var(--navy);
  font-size:16px;
}
.booking-gallery-settings-head p{
  margin:0;
  font-size:11px;
  line-height:1.45;
}
.booking-gallery-editor{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
  gap:8px;
  margin-top:10px;
}
.booking-gallery-editor-item{
  display:grid;
  gap:7px;
  padding:8px;
  border:1px solid #dfe5ec;
  border-radius:9px;
  background:#fff;
}
.booking-gallery-editor-thumb{
  overflow:hidden;
  aspect-ratio:4/3;
  display:grid;
  place-items:center;
  border-radius:7px;
  background:#edf1f5;
  color:var(--muted);
  font-size:10px;
}
.booking-gallery-editor-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.booking-gallery-editor-meta{
  min-width:0;
}
.booking-gallery-editor-meta strong,
.booking-gallery-editor-meta small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.booking-gallery-editor-meta strong{
  color:var(--navy);
  font-size:11px;
}
.booking-gallery-editor-meta small{
  margin-top:2px;
  color:var(--muted);
  font-size:9px;
}

/* Public booking gallery */
.booking-gallery-section{
  margin:0 0 24px;
  padding-top:18px;
  border-top:1px solid #edf0f4;
}
.booking-gallery-section h2{
  margin:3px 0 10px;
}
.booking-gallery-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  grid-auto-rows:150px;
  gap:7px;
}
.booking-gallery-item{
  overflow:hidden;
  padding:0;
  border:0;
  border-radius:9px;
  background:#edf1f5;
  cursor:pointer;
}
.booking-gallery-item:first-child{
  grid-row:span 2;
}
.booking-gallery-item img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .2s ease;
}
.booking-gallery-item:hover img{
  transform:scale(1.025);
}
.booking-gallery-more{
  position:relative;
}
.booking-gallery-more::after{
  content:attr(data-more);
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  background:#10243899;
  color:#fff;
  font-weight:850;
  font-size:16px;
}
.booking-gallery-lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:grid;
  place-items:center;
  padding:24px;
  background:#07111ddb;
  backdrop-filter:blur(5px);
}
.booking-gallery-lightbox.hidden{display:none}
.booking-gallery-lightbox img{
  max-width:min(1100px,94vw);
  max-height:88vh;
  border-radius:10px;
  box-shadow:0 24px 80px #0008;
}
.booking-gallery-lightbox-close{
  position:fixed;
  top:18px;
  right:18px;
  width:46px;
  height:46px;
  border:1px solid #ffffff55;
  border-radius:999px;
  background:#0b1728dd;
  color:#fff;
  font-size:20px;
}
@media(max-width:720px){
  .booking-gallery-grid{
    grid-template-columns:1fr 1fr;
    grid-auto-rows:130px;
  }
  .booking-gallery-item:first-child{
    grid-column:1/-1;
    grid-row:auto;
    min-height:220px;
  }
}


/* MVP 0.9 – Self-Service Datenquellen */
.data-sources-dialog{
  width:min(920px,calc(100vw - 28px));
  max-width:920px;
}
.data-source-explainer{
  margin:0 0 14px;
  padding:12px 14px;
  border:1px solid #d7e4e2;
  border-radius:9px;
  background:#f3f9f8;
}
.data-source-explainer strong{
  color:#174b45;
  font-size:12px;
}
.data-source-explainer p{
  margin:4px 0 0;
  color:#5a6b72;
  font-size:11px;
  line-height:1.45;
}
.data-source-capabilities{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:13px 0;
}
.data-source-capabilities label{
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:7px;
  padding:9px 11px;
  border:1px solid #dfe5ec;
  border-radius:8px;
  background:#fff;
  color:var(--navy);
  font-size:10px;
  font-weight:700;
}
.data-source-capabilities input{
  width:16px;
  height:16px;
  margin:0;
}
.data-source-form-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin:12px 0;
}
.data-source-list-section{
  margin-top:18px;
}
.property-data-sources-list{
  display:grid;
  gap:8px;
}
.property-data-source-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:12px 13px;
  border:1px solid #dfe5ec;
  border-radius:9px;
  background:#fff;
}
.property-data-source-main{
  min-width:0;
}
.property-data-source-title{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}
.property-data-source-title strong{
  color:var(--navy);
  font-size:13px;
}
.property-data-source-main>small,
.property-data-source-main>a,
.property-data-source-meta{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:10px;
}
.property-data-source-main>a{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--accent);
}
.property-data-source-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}
.data-source-error,
.data-source-warning{
  margin-top:7px;
  padding:8px 9px;
  border-radius:7px;
  font-size:10px;
  line-height:1.4;
}
.data-source-error{
  background:#fff0f0;
  color:#a32727;
}
.data-source-warning{
  background:#fff8e6;
  color:#7a5b16;
}
.data-source-preview{
  margin:12px 0;
  padding:13px;
  border:1px solid #cfe0dc;
  border-radius:9px;
  background:#f7fbfa;
}
.data-source-preview-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.data-source-preview-head strong{
  color:#174b45;
  font-size:13px;
}
.data-source-preview-head span{
  color:var(--muted);
  font-size:10px;
}
.data-source-preview-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
  margin-top:10px;
}
.data-source-preview-grid>div{
  padding:9px;
  border:1px solid #dce8e5;
  border-radius:7px;
  background:#fff;
}
.data-source-preview-grid span,
.data-source-preview-grid strong{
  display:block;
}
.data-source-preview-grid span{
  color:var(--muted);
  font-size:9px;
}
.data-source-preview-grid strong{
  margin-top:3px;
  color:var(--navy);
  font-size:12px;
}
@media(max-width:700px){
  .property-data-source-row{
    flex-direction:column;
  }
  .property-data-source-actions,
  .property-data-source-actions button{
    width:100%;
  }
  .data-source-preview-grid{
    grid-template-columns:1fr 1fr;
  }
  .data-source-form-actions{
    flex-direction:column;
  }
  .data-source-form-actions button{width:100%}
}


/* Umsatz & Forecast */
.revenue-cockpit{
  margin:0 0 18px;
  padding:16px;
  border:1px solid #dfe5ec;
  border-radius:11px;
  background:#fbfcfd;
}
.revenue-cockpit-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.revenue-cockpit-head h3{
  margin:3px 0 3px;
}
.revenue-cockpit-head p{
  margin:0;
  max-width:760px;
}
.revenue-filters{
  display:flex;
  gap:8px;
  flex:0 0 auto;
}
.revenue-filters label{
  min-width:110px;
}
.revenue-kpis{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:9px;
  margin-bottom:14px;
}
.revenue-kpis>div{
  padding:12px 13px;
  border:1px solid #dfe5ec;
  border-radius:9px;
  background:#fff;
}
.revenue-kpis span,
.revenue-kpis small{
  display:block;
}
.revenue-kpis span{
  color:var(--muted);
  font-size:10px;
  font-weight:700;
}
.revenue-kpis strong{
  display:block;
  margin-top:4px;
  color:var(--navy);
  font-size:20px;
  letter-spacing:-.02em;
}
.revenue-kpis small{
  margin-top:3px;
  color:#8090a1;
  font-size:9px;
  line-height:1.35;
}
.revenue-kpi-primary{
  border-color:#bcd8c8!important;
  background:#f2f8f4!important;
}
.revenue-kpi-primary strong{
  color:#174b2c;
}
.revenue-chart-wrap{
  padding:12px;
  border:1px solid #e1e6ec;
  border-radius:9px;
  background:#fff;
}
.revenue-chart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
.revenue-chart-head>strong{
  color:var(--navy);
  font-size:12px;
}
.revenue-chart-head>span{
  color:var(--muted);
  font-size:9px;
  text-align:right;
}
.revenue-monthly-chart{
  display:grid;
  gap:6px;
}
.revenue-month-row{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) 100px;
  align-items:center;
  gap:9px;
  min-height:22px;
}
.revenue-month-label{
  color:var(--muted);
  font-size:9px;
  font-weight:750;
}
.revenue-month-track{
  display:flex;
  height:10px;
  overflow:hidden;
  border-radius:999px;
  background:#eef1f4;
}
.revenue-month-actual{
  display:block;
  height:100%;
  background:#174b2c;
}
.revenue-month-future{
  display:block;
  height:100%;
  background:#9bc8ab;
}
.revenue-month-row>strong{
  color:var(--navy);
  font-size:10px;
  text-align:right;
  white-space:nowrap;
}
.stay-price{
  color:#174b2c!important;
  font-weight:800;
}
@media(max-width:900px){
  .revenue-kpis{grid-template-columns:1fr 1fr}
  .revenue-cockpit-head{flex-direction:column}
  .revenue-filters{width:100%}
  .revenue-filters label{flex:1}
}
@media(max-width:560px){
  .revenue-kpis{grid-template-columns:1fr}
  .revenue-filters{flex-direction:column}
  .revenue-month-row{grid-template-columns:30px minmax(0,1fr) 84px}
}


/* MVP 0.11 – Module & Lizenzen */
.admin-tenant-modules{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin:10px 0 8px;
}
.admin-module-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:4px 8px;
  border:1px solid #cfe0dc;
  border-radius:999px;
  background:#f3f9f7;
  color:#174b45;
  font-size:9px;
  font-weight:800;
}
.admin-module-badge.muted{
  border-color:#dfe5ec;
  background:#f5f7f9;
  color:#7f8c99;
}
.admin-modules-button{
  margin-top:10px;
}
.admin-modules-dialog{
  width:min(700px,calc(100vw - 28px));
  max-width:700px;
}
.admin-module-explainer{
  margin-bottom:14px;
  padding:12px 14px;
  border:1px solid #d7e4e2;
  border-radius:9px;
  background:#f3f9f8;
}
.admin-module-explainer strong{
  color:#174b45;
  font-size:12px;
}
.admin-module-explainer p{
  margin:4px 0 0;
  color:#5d6b75;
  font-size:10px;
  line-height:1.45;
}
.admin-modules-list{
  display:grid;
  gap:8px;
  margin-bottom:14px;
}
.admin-module-row{
  display:grid;
  grid-template-columns:22px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid #dfe5ec;
  border-radius:9px;
  background:#fff;
  cursor:pointer;
}
.admin-module-row input{
  width:18px;
  height:18px;
  margin:0;
}
.admin-module-row span{
  min-width:0;
}
.admin-module-row strong,
.admin-module-row small{
  display:block;
}
.admin-module-row strong{
  color:var(--navy);
  font-size:12px;
}
.admin-module-row small{
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
  line-height:1.4;
}
.admin-module-row em{
  padding:4px 7px;
  border-radius:999px;
  background:#f2f5f7;
  color:#667684;
  font-size:9px;
  font-style:normal;
  font-weight:800;
  white-space:nowrap;
}
.admin-module-row:has(input:checked){
  border-color:#b9d8c8;
  background:#f7fbf8;
}
.admin-module-row:has(input:checked) em{
  background:#e1f3e7;
  color:#1f6238;
}
@media(max-width:560px){
  .admin-module-row{
    grid-template-columns:22px 1fr;
  }
  .admin-module-row em{
    grid-column:2;
    justify-self:start;
  }
}


/* MVP 0.12 – Suche, Buchungsbestätigung & Mandantenliste */
.property-search-bar{
  display:flex;
  align-items:flex-end;
  gap:12px;
  margin:0 0 14px;
}
.property-search-field{
  flex:1;
  margin:0;
}
.property-search-field span{
  display:block;
  margin-bottom:5px;
  color:var(--muted);
  font-size:10px;
  font-weight:750;
}
#propertySearchCount{
  padding:0 0 11px;
  white-space:nowrap;
  font-size:10px;
}
.booking-source{
  display:inline-flex!important;
  align-items:center;
  padding:2px 7px;
  border:1px solid #d9e3e9;
  border-radius:999px;
  background:#f5f8fa;
  color:#526270!important;
  font-size:9px!important;
  font-weight:750;
}
.booking-confirmation-state{
  color:var(--muted);
  font-size:9px;
  font-weight:700;
}
.booking-confirmation-dialog{
  width:min(860px,calc(100vw - 28px));
  max-width:860px;
}
.booking-confirmation-preview{
  display:block;
  width:100%;
  min-height:560px;
  margin:12px 0 0;
  border:1px solid #dfe5ec;
  border-radius:10px;
  background:#f3f6f8;
}
.admin-tenant-list{
  overflow:hidden;
  border:1px solid #dfe5ec;
  border-radius:10px;
  background:#fff;
}
.admin-tenant-list-head,
.admin-tenant-row{
  display:grid;
  grid-template-columns:minmax(190px,2fr) 80px 90px 90px minmax(180px,1.6fr) 82px;
  align-items:center;
  gap:12px;
  padding:11px 14px;
}
.admin-tenant-list-head{
  background:#f5f7f9;
  color:#667684;
  font-size:9px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.admin-tenant-row{
  width:100%;
  border:0;
  border-top:1px solid #e7ebef;
  border-radius:0;
  background:#fff;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.admin-tenant-row:first-of-type{
  border-top:0;
}
.admin-tenant-row:hover{
  background:#f8fafb;
}
.admin-tenant-row-name strong,
.admin-tenant-row-name small{
  display:block;
}
.admin-tenant-row-name strong{
  color:var(--navy);
  font-size:12px;
}
.admin-tenant-row-name small{
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
}
.admin-tenant-row>span:not(.admin-tenant-row-name){
  font-size:10px;
}
.admin-tenant-row-modules{
  overflow:hidden;
  color:#526270;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.admin-tenant-row-open{
  color:#174b45;
  font-weight:800;
  text-align:right;
  white-space:nowrap;
}
.admin-tenant-dialog{
  width:min(820px,calc(100vw - 28px));
  max-width:820px;
}
.admin-tenant-detail-kpis{
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin:0 0 16px;
}
.admin-tenant-detail-section{
  padding:16px 0;
  border-top:1px solid #e5e9ee;
}
.admin-tenant-detail-section>.eyebrow{
  margin-bottom:9px;
}
.admin-tenant-detail-list{
  display:grid;
  gap:7px;
}
.admin-tenant-detail-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  border:1px solid #e0e6eb;
  border-radius:8px;
  background:#fafbfc;
}
.admin-tenant-detail-row span{
  min-width:0;
}
.admin-tenant-detail-row strong,
.admin-tenant-detail-row small{
  display:block;
}
.admin-tenant-detail-row strong{
  color:var(--navy);
  font-size:11px;
}
.admin-tenant-detail-row small{
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
  overflow-wrap:anywhere;
}
.admin-tenant-detail-row em{
  flex:0 0 auto;
  color:#526270;
  font-size:9px;
  font-style:normal;
  font-weight:800;
}
@media(max-width:850px){
  .admin-tenant-list-head{
    display:none;
  }
  .admin-tenant-row{
    grid-template-columns:minmax(0,1fr) auto;
    gap:7px 12px;
  }
  .admin-tenant-row-name{
    grid-column:1;
  }
  .admin-tenant-row>span:nth-child(2)::before{content:"Benutzer: ";color:var(--muted)}
  .admin-tenant-row>span:nth-child(3)::before{content:"Wohnungen: ";color:var(--muted)}
  .admin-tenant-row>span:nth-child(4)::before{content:"Aufenthalte: ";color:var(--muted)}
  .admin-tenant-row-modules{
    grid-column:1 / -1;
    white-space:normal;
  }
  .admin-tenant-row-open{
    grid-column:2;
    grid-row:1;
  }
}
@media(max-width:600px){
  .property-search-bar{
    align-items:stretch;
    flex-direction:column;
    gap:4px;
  }
  #propertySearchCount{
    padding:0;
  }
  .booking-confirmation-preview{
    min-height:480px;
  }
  .admin-tenant-detail-kpis{
    grid-template-columns:1fr;
  }
}


.integration-connection-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:7px;
  flex-wrap:wrap;
}
.integration-mapping-dialog{
  width:min(760px,calc(100vw - 28px));
  max-width:760px;
}
.integration-mapping-capabilities{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0 4px;
}
.integration-mapping-capabilities label{
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 10px;
  border:1px solid #dfe5ec;
  border-radius:8px;
  background:#f8fafb;
  cursor:pointer;
}
.integration-mapping-capabilities input{
  width:17px;
  height:17px;
  margin:0;
}
.integration-mapping-capabilities span{
  font-size:10px;
  font-weight:700;
}
.integration-mapping-existing{
  margin-top:18px;
  padding-top:15px;
  border-top:1px solid #e5e9ee;
}
.integration-mappings-list{
  display:grid;
  gap:7px;
  margin-top:9px;
}
.integration-mapping-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  border:1px solid #e0e6eb;
  border-radius:8px;
  background:#fafbfc;
}
.integration-mapping-row strong,
.integration-mapping-row small{
  display:block;
}
.integration-mapping-row strong{
  color:var(--navy);
  font-size:11px;
}
.integration-mapping-row small{
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
}
.integration-mapping-row em{
  color:#526270;
  font-size:9px;
  font-style:normal;
  font-weight:800;
}
@media(max-width:600px){
  .integration-connection-actions{
    align-items:stretch;
    flex-direction:column;
  }
  .integration-mapping-capabilities{
    flex-direction:column;
  }
  .integration-mapping-row{
    align-items:flex-start;
    flex-direction:column;
  }
}


/* MVP 0.13 – Gäste-Kommunikation */
.booking-requests-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.communication-settings-dialog{
  width:min(900px,calc(100vw - 28px));
  max-width:900px;
}
.communication-schedule-section,
.communication-template-section{
  padding:14px;
  border:1px solid #dfe5ec;
  border-radius:10px;
  background:#fbfcfd;
  margin-bottom:14px;
}
.communication-schedule-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:10px;
}
.communication-toggle-row{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:62px;
  padding:10px;
  border:1px solid #dfe5ec;
  border-radius:8px;
  background:#fff;
}
.communication-toggle-row input{
  width:18px;
  height:18px;
  margin:0;
  flex:0 0 auto;
}
.communication-toggle-row span{
  min-width:0;
}
.communication-toggle-row strong,
.communication-toggle-row small{
  display:block;
}
.communication-toggle-row small{
  margin-top:2px;
  color:var(--muted);
  font-size:9px;
}
.communication-template-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
}
.communication-template-head>small{
  max-width:520px;
  color:var(--muted);
  font-size:9px;
  line-height:1.45;
  text-align:right;
}
.communication-template-card{
  padding:13px;
  border:1px solid #dfe5ec;
  border-radius:9px;
  background:#fff;
  margin-top:10px;
}
.communication-template-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}
.communication-template-title>strong{
  color:var(--navy);
  font-size:13px;
}
.communication-template-enabled{
  display:flex!important;
  flex-direction:row!important;
  align-items:center;
  gap:6px;
  font-size:9px;
  font-weight:800;
  color:#536170;
}
.communication-template-enabled input{
  width:16px;
  height:16px;
  margin:0;
}
.communication-template-card textarea{
  min-height:150px;
  resize:vertical;
  line-height:1.5;
}
@media(max-width:760px){
  .communication-schedule-grid{
    grid-template-columns:1fr;
  }
  .communication-template-head{
    flex-direction:column;
  }
  .communication-template-head>small{
    text-align:left;
  }
}


/* Administration workspace */
.administration-panel{
  overflow:hidden;
}
.administration-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.administration-card{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:12px 14px;
  align-items:start;
  min-height:190px;
  padding:18px;
  border:1px solid var(--border);
  border-radius:12px;
  background:#fff;
}
.administration-card-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:10px;
  background:#f0f5fa;
  color:var(--navy);
  font-size:20px;
}
.administration-card h4{
  margin:3px 0 6px;
  color:var(--navy);
  font-size:16px;
}
.administration-card p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}
.administration-card>button,
.administration-card>.administration-link{
  grid-column:1 / -1;
  align-self:end;
  justify-self:start;
}
.administration-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
}
#administrationMessage{
  margin-top:14px;
}
@media(max-width:760px){
  .administration-grid{grid-template-columns:1fr}
  .administration-card{min-height:0}
}


/* Tenant user administration */
.tenant-users-dialog{
  width:min(860px,calc(100vw - 32px));
  max-width:860px;
}
.tenant-users-section,
.tenant-users-invite{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid #edf0f4;
}
.tenant-users-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.tenant-users-list{
  display:grid;
  gap:8px;
}
.tenant-user-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#fff;
}
.tenant-user-main{
  display:grid;
  gap:4px;
  min-width:0;
}
.tenant-user-title{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}
.tenant-user-email,
.tenant-user-main small{
  color:var(--muted);
  font-size:11px;
}
.tenant-user-actions{
  flex:0 0 auto;
}
.tenant-users-invite h4{
  margin:4px 0 5px;
  color:var(--navy);
}
.tenant-users-invite>div>p{
  margin:0 0 14px;
}
@media(max-width:700px){
  .tenant-user-row{
    align-items:stretch;
    flex-direction:column;
  }
  .tenant-user-actions button{
    width:100%;
  }
}


/* Tenant business profile */
.tenant-profile-dialog{
  width:min(780px,calc(100vw - 32px));
  max-width:780px;
}
.tenant-profile-tax-section{
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid #edf0f4;
}
.tenant-profile-tax-section>p{
  margin:4px 0 12px;
  font-size:11px;
}


/* Desktop ERP / SaaS shell */
.manager-sidebar-head,
.manager-sidebar-foot{display:none}

@media(min-width:1100px){
  body{background:#eef2f6}
  .shell{
    max-width:none;
    width:100%;
    padding:0 30px 44px;
  }
  .topbar{
    position:sticky;
    top:0;
    z-index:40;
    min-height:64px;
    margin:0 -30px;
    padding:0 30px;
    box-shadow:0 1px 0 rgba(255,255,255,.04),0 3px 14px rgba(15,23,42,.08);
  }
  main{max-width:1640px;margin:0 auto}
  #appScreen>.app-head{
    min-height:78px;
    margin:0;
    padding:18px 0 16px;
    border-bottom:0;
  }
  #appScreen>.app-head h2{
    font-size:24px;
    line-height:1.2;
  }

  #managerMode{
    display:grid;
    grid-template-columns:218px minmax(0,1fr);
    gap:18px;
    align-items:start;
  }
  .manager-sidebar{
    position:sticky;
    top:82px;
    grid-column:1;
    grid-row:1;
    min-height:calc(100vh - 112px);
    display:flex;
    flex-direction:column;
    padding:12px;
    border:1px solid #d9e1ea;
    border-radius:9px;
    background:#fff;
    box-shadow:0 1px 3px rgba(15,23,42,.04);
  }
  .manager-sidebar-head{
    display:grid;
    gap:2px;
    padding:6px 8px 12px;
    border-bottom:1px solid #edf0f4;
  }
  .manager-sidebar-head strong{
    color:var(--navy);
    font-size:15px;
    font-weight:750;
  }
  .manager-sidebar-kicker{
    color:#8792a5;
    font-size:9px;
    font-weight:800;
    letter-spacing:.13em;
  }
  .manager-sidebar .tabs{
    display:grid;
    gap:3px;
    margin:10px 0 0;
    padding:0;
    border:0;
  }
  .manager-sidebar .tab{
    width:100%;
    min-height:38px;
    padding:9px 10px;
    border:0;
    border-radius:6px;
    color:#536176;
    text-align:left;
    font-size:12px;
    font-weight:680;
  }
  .manager-sidebar .tab:hover{
    background:#f4f7fa;
    color:var(--navy);
  }
  .manager-sidebar .tab.active{
    background:#eaf5f3;
    color:#0b6f68;
  }
  .manager-sidebar .tab.active::after{
    top:7px;
    right:auto;
    bottom:7px;
    left:0;
    width:3px;
    height:auto;
    border-radius:0 3px 3px 0;
    background:var(--accent);
  }
  .manager-sidebar-foot{
    display:grid;
    gap:1px;
    margin-top:auto;
    padding:12px 8px 4px;
    border-top:1px solid #edf0f4;
    color:#8792a5;
  }
  .manager-sidebar-foot span{font-size:10px;font-weight:800;letter-spacing:.08em}
  .manager-sidebar-foot small{font-size:10px}

  #managerMode>.tabpane{
    grid-column:2;
    grid-row:1;
    min-width:0;
  }
  #managerMode>.tabpane.active{display:block}

  #managerMode .panel{
    border-radius:8px;
    padding:18px;
    box-shadow:none;
  }
  #managerMode .panel-head{
    margin-bottom:14px;
    padding-bottom:12px;
  }
  #managerMode .panel-head h3{font-size:17px}
  #managerMode .panel-head p{font-size:12px}

  .stay-toolbar{
    padding:10px 12px;
    border:1px solid #e1e7ee;
    border-radius:7px;
    background:#f8fafc;
  }
  .stay-kpis,
  .revenue-kpis{
    gap:8px;
  }
  .stay-kpis>div,
  .revenue-kpis>div{
    border-radius:7px;
    box-shadow:none;
  }
  .stay-calendar-section,
  .revenue-cockpit,
  .booking-requests-section{
    border-radius:8px;
  }

  .property-action-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
  .property-action-card{
    min-height:94px;
    border-radius:7px;
  }
  .property-room-card,
  .manager-property-card{
    border-radius:7px;
  }

  .administration-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:10px;
  }
  .administration-card{
    min-height:160px;
    padding:15px;
    border-radius:7px;
  }
  .administration-card-icon{
    width:36px;
    height:36px;
    border-radius:7px;
    font-size:17px;
  }

  .card,
  .inventory-manage-card,
  .booking-request-card,
  .stay-card{
    border-radius:7px;
  }
  dialog,
  .inventory-edit-dialog{
    border-radius:10px;
  }
}

@media(min-width:1450px){
  #managerMode{grid-template-columns:232px minmax(0,1fr);gap:22px}
  .shell{padding-left:38px;padding-right:38px}
  .topbar{margin-left:-38px;margin-right:-38px;padding-left:38px;padding-right:38px}
}


/* Damage Center workspace */
.damage-toolbar{
  display:grid;
  grid-template-columns:minmax(180px,240px) minmax(220px,1fr);
  gap:12px;
  margin:8px 0 18px;
}
.damage-admin-list{
  display:grid;
  gap:12px;
}
.damage-work-card{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:16px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
}
.damage-work-media{
  width:150px;
  min-height:110px;
}
.damage-work-media a,
.damage-work-media img,
.damage-thumb-empty{
  display:block;
  width:100%;
  height:110px;
  border-radius:12px;
}
.damage-work-media img{
  object-fit:cover;
  border:1px solid var(--border);
}
.damage-thumb-empty{
  display:grid;
  place-items:center;
  background:#f6f7f9;
  border:1px dashed var(--border);
  color:var(--muted);
  font-size:11px;
  font-weight:800;
}
.damage-work-body{
  min-width:0;
  display:grid;
  gap:10px;
}
.damage-work-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}
.damage-work-head>small{
  white-space:nowrap;
  color:var(--muted);
}
.damage-work-title{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:3px;
}
.damage-work-description{
  margin:0;
  line-height:1.5;
}
.damage-work-context{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  color:var(--muted);
  font-size:11px;
}
.damage-work-actions{
  display:flex;
  justify-content:flex-end;
}
@media(max-width:700px){
  .damage-toolbar{grid-template-columns:1fr}
  .damage-work-card{grid-template-columns:1fr}
  .damage-work-media{width:100%}
  .damage-work-media a,
  .damage-work-media img,
  .damage-thumb-empty{height:180px}
  .damage-work-head{flex-direction:column;gap:6px}
  .damage-work-actions button{width:100%}
}


/* Local capture quality feedback */
.quality.red{
  background:#fee2e2;
  color:#991b1b;
}
.service-photo-quality{
  position:absolute;
  left:8px;
  right:8px;
  bottom:30px;
  display:grid;
  gap:4px;
  padding:7px 8px;
  border-radius:10px;
  background:#fffffff2;
  box-shadow:0 4px 14px #11182718;
}
.service-photo-quality .pill{
  justify-self:start;
  padding:4px 7px;
  font-size:10px;
}
.service-photo-quality small{
  color:var(--muted);
  font-size:10px;
  line-height:1.3;
}
.service-photo-tile.quality-poor{
  outline:2px solid #ef4444;
  outline-offset:2px;
}
.service-photo-tile.quality-warn{
  outline:2px solid #f59e0b;
  outline-offset:2px;
}
.service-photo-tile.quality-good{
  outline:2px solid #22c55e;
  outline-offset:2px;
}


/* ERP filter & saved selections */
.erp-selection-shell{
  margin-bottom:16px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#f8fafc;
  overflow:hidden;
}
.erp-selection-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 12px;
  border-bottom:1px solid var(--border);
  background:#fff;
}
.erp-selection-heading{
  display:grid;
  gap:1px;
  min-width:145px;
}
.erp-selection-heading strong{
  color:var(--navy);
  font-size:12px;
}
.erp-selection-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex-wrap:wrap;
}
.erp-selection-actions select{
  width:auto;
  min-width:210px;
  min-height:34px;
  padding:6px 28px 6px 9px;
  font-size:11px;
}
.erp-selection-actions .compact-action{
  min-height:34px;
  padding:6px 9px;
  font-size:11px;
}
.stay-toolbar.erp-filter-grid{
  grid-template-columns:minmax(240px,1.6fr) repeat(4,minmax(135px,.8fr));
  gap:8px;
  margin:0;
  padding:11px 12px;
}
.erp-filter-grid label{
  gap:4px;
  color:#667085;
  font-size:10px;
  font-weight:700;
}
.erp-filter-grid input,
.erp-filter-grid select{
  min-height:36px;
  padding:7px 9px;
  background:#fff;
  font-size:12px;
}
.erp-filter-search{min-width:0}
.erp-filter-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:0 12px 11px;
}
.erp-filter-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:28px;
  padding:5px 8px;
  border:1px solid #cfd8e3;
  border-radius:999px;
  background:#fff;
  color:#344054;
  font-size:10px;
  font-weight:700;
  cursor:pointer;
}
.erp-filter-chip:hover{
  border-color:#93a4b8;
  background:#f5f8fb;
}
.erp-filter-chip b{
  color:#7c8798;
  font-size:14px;
  line-height:1;
}
.erp-filter-chip.static{
  cursor:default;
}
.erp-filter-chip.static:hover{
  border-color:#cfd8e3;
  background:#fff;
}
.stay-selection-dialog{
  width:min(620px,calc(100vw - 32px));
  max-width:620px;
}
.stay-selection-preview{
  margin-top:12px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:9px;
  background:#f8fafc;
}
.stay-selection-preview-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:8px;
}

@media(max-width:1180px){
  .stay-toolbar.erp-filter-grid{
    grid-template-columns:minmax(220px,1.4fr) repeat(2,minmax(150px,1fr));
  }
}
@media(max-width:860px){
  .erp-selection-topbar{
    align-items:stretch;
    flex-direction:column;
  }
  .erp-selection-actions{
    justify-content:flex-start;
  }
  .stay-toolbar.erp-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .erp-filter-search{
    grid-column:1/-1;
  }
}
@media(max-width:560px){
  .stay-toolbar.erp-filter-grid{
    grid-template-columns:1fr;
  }
  .erp-filter-search{
    grid-column:auto;
  }
  .erp-selection-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .erp-selection-actions select{
    grid-column:1/-1;
    width:100%;
  }
  .erp-selection-actions button{
    width:100%;
  }
}


/* ERP selection rollout: properties, damages, service */
.property-erp-filter-grid{
  grid-template-columns:minmax(260px,1.6fr) repeat(3,minmax(150px,.85fr));
}
.damage-erp-filter-grid{
  grid-template-columns:minmax(260px,1.6fr) repeat(4,minmax(135px,.8fr));
  margin:0;
  padding:11px 12px;
}
.service-erp-filter-grid{
  grid-template-columns:minmax(260px,1.6fr) repeat(2,minmax(170px,.9fr));
}
.erp-selection-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 12px 11px;
}
.erp-selection-footer .erp-filter-chips{
  flex:1 1 auto;
  padding:0;
}
.erp-selection-footer>.muted{
  flex:0 0 auto;
  font-size:10px;
}
.service-selection-shell{
  margin-top:12px;
  margin-bottom:14px;
}
.service-property-card-meta .pill{
  min-height:auto;
  padding:4px 7px;
  font-size:9px;
}
.damage-selection-shell .erp-filter-chips,
.service-selection-shell .erp-filter-chips{
  padding-top:0;
}
.property-selection-shell.hidden,
.service-selection-shell.hidden{
  display:none;
}

@media(max-width:1180px){
  .property-erp-filter-grid,
  .damage-erp-filter-grid{
    grid-template-columns:minmax(220px,1.4fr) repeat(2,minmax(150px,1fr));
  }
  .service-erp-filter-grid{
    grid-template-columns:minmax(220px,1.4fr) repeat(2,minmax(150px,1fr));
  }
}
@media(max-width:860px){
  .property-erp-filter-grid,
  .damage-erp-filter-grid,
  .service-erp-filter-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .property-erp-filter-grid .erp-filter-search,
  .damage-erp-filter-grid .erp-filter-search,
  .service-erp-filter-grid .erp-filter-search{
    grid-column:1/-1;
  }
  .erp-selection-footer{
    align-items:flex-start;
    flex-direction:column;
  }
}
@media(max-width:560px){
  .property-erp-filter-grid,
  .damage-erp-filter-grid,
  .service-erp-filter-grid{
    grid-template-columns:1fr;
  }
  .property-erp-filter-grid .erp-filter-search,
  .damage-erp-filter-grid .erp-filter-search,
  .service-erp-filter-grid .erp-filter-search{
    grid-column:auto;
  }
}


/* Public legal pages */
.booking-privacy-note{
  margin:10px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}
.booking-privacy-note a,
.booking-legal-footer a,
.legal-page-footer a,
.legal-back-link,
.legal-content a{
  color:#174b45;
  text-decoration:none;
  font-weight:700;
}
.booking-privacy-note a:hover,
.booking-legal-footer a:hover,
.legal-page-footer a:hover,
.legal-back-link:hover,
.legal-content a:hover{
  text-decoration:underline;
}
.booking-legal-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:22px 0 6px;
  padding:16px 4px 4px;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:12px;
}
.booking-legal-footer nav{
  display:flex;
  gap:16px;
}
.legal-body{
  min-height:100vh;
  background:#f3f6f8;
}
.legal-shell{
  width:min(860px,calc(100% - 28px));
  margin:0 auto;
  padding:28px 0 46px;
}
.legal-back-link{
  display:inline-flex;
  margin-bottom:14px;
  font-size:13px;
}
.legal-card{
  padding:30px;
  border:1px solid var(--border);
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 34px #13243a12;
}
.legal-card h1{
  margin:5px 0 8px;
  color:var(--navy);
  font-size:clamp(30px,5vw,46px);
}
.legal-intro{
  margin:0 0 24px;
  color:var(--muted);
  line-height:1.6;
}
.legal-loading{
  padding:18px 0;
  color:var(--muted);
}
.legal-content{
  display:grid;
  gap:8px;
}
.legal-content section{
  padding:19px 0;
  border-top:1px solid var(--border);
}
.legal-content section:first-of-type{
  border-top:0;
}
.legal-content h2{
  margin:0 0 8px;
  color:var(--navy);
  font-size:18px;
}
.legal-content p{
  margin:0;
  line-height:1.7;
}
.legal-content .info-box{
  margin:4px 0 12px;
}
.legal-page-footer{
  display:flex;
  justify-content:center;
  gap:18px;
  padding:20px 0 0;
  font-size:12px;
}
@media(max-width:600px){
  .booking-legal-footer{
    align-items:flex-start;
    flex-direction:column;
  }
  .legal-card{
    padding:22px 18px;
    border-radius:12px;
  }
}
