:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17221c;background:#f4f5f2}*{box-sizing:border-box}body{margin:0}.shell{max-width:900px;margin:auto;padding:22px 16px 80px}.brand{font-size:28px;font-weight:800;color:#173b2b}.sub{color:#68736d;margin:5px 0 24px}.card{background:white;border-radius:18px;padding:18px;margin:12px 0;box-shadow:0 3px 18px #0000000d}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.stat b{font-size:26px;display:block;margin-top:6px}.muted{color:#718078;font-size:14px}button{border:0;border-radius:12px;padding:13px 16px;font-weight:700;cursor:pointer;background:#173b2b;color:white}button.secondary{background:#e7ece8;color:#173b2b}input,select,textarea{width:100%;padding:13px;border:1px solid #d8ded9;border-radius:11px;margin:6px 0 12px;font:inherit}.row{display:flex;gap:10px;align-items:center;justify-content:space-between}.pill{padding:5px 9px;border-radius:99px;background:#edf2ee;font-size:12px}.danger{color:#9b2929}.login{max-width:430px;margin:10vh auto;padding:16px}.login .card{padding:28px}.house{font-weight:700;font-size:17px}.nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #e4e8e5;padding:10px;display:flex;justify-content:center;gap:8px}.nav button{padding:10px 14px}.loading{text-align:center;padding:25vh 20px;color:#68736d}@media(max-width:520px){.brand{font-size:24px}.row.wrap{align-items:flex-start;flex-direction:column}.nav button{font-size:12px;padding:9px}}

.timer{font-size:2rem;font-weight:800;margin:12px 0}.actions{display:flex;gap:8px;flex-wrap:wrap}.check{display:flex;gap:10px;align-items:flex-start;padding:12px 0;border-bottom:1px solid #eee}.check input{width:22px;height:22px}.section{margin-top:20px}.success{color:#176b3a}.warning{color:#9a6700}.full{width:100%}.small{font-size:.9rem}.tabs{display:flex;gap:8px;overflow:auto;margin:14px 0}.tabs button{white-space:nowrap}.jobclick{cursor:pointer}.modalish{margin-bottom:90px}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.tabs button{width:auto}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:end}
.toolbar>div{min-width:150px;flex:1}
.tablewrap{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{padding:10px 8px;border-bottom:1px solid #e8e8e8;text-align:left;white-space:nowrap}
th{font-size:12px;color:#666}
.right{text-align:right}
.dangerbtn{background:#fff;color:#a00;border:1px solid #d99}
.ok{color:#087a39}
.priority-Dringend{color:#a00;font-weight:700}
.priority-Wichtig{color:#a45b00;font-weight:700}
.mini{padding:7px 10px;font-size:13px;width:auto}
.inline{display:flex;gap:8px;align-items:center;flex-wrap:wrap}

.duration-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:8px}.duration-grid input{width:100%}@media(max-width:520px){.duration-grid{grid-template-columns:1fr 1fr}}

:root{--bg:#f4f6f3;--surface:#fff;--surface2:#e9efeb;--text:#17251f;--muted:#6d7b75;--border:#d8e0db;--brand:#123f2d;--scale:1}
html[data-size=small]{--scale:.88} html[data-size=large]{--scale:1.15}
html{font-size:calc(16px * var(--scale));background:var(--bg)} body{background:var(--bg)!important;color:var(--text)!important}
.card{background:var(--surface)!important;border:1px solid var(--border);box-shadow:0 10px 28px rgba(20,45,34,.08)!important;border-radius:20px!important}
input,select,textarea{background:var(--surface)!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:12px!important;min-height:44px}
button{border-radius:12px!important;min-height:42px}.secondary{background:var(--surface2)!important;color:var(--brand)!important}.muted{color:var(--muted)!important}
.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 22px}.segmented button{background:var(--surface2)!important;color:var(--text)!important}.segmented .active{background:var(--brand)!important;color:#fff!important}
.section-head,.listrow{display:flex;justify-content:space-between;align-items:center;gap:12px}.listrow{padding:14px 0;border-bottom:1px solid var(--border)}.checkline{display:flex;gap:10px;align-items:center;margin:16px 0}.checkline input{min-height:auto;width:20px;height:20px}.iconbtn{min-width:44px}
html[data-theme=dark]{--bg:#0e1512;--surface:#16201b;--surface2:#202c26;--text:#eef5f1;--muted:#aab8b1;--border:#304039;--brand:#2d8b62;color-scheme:dark}
@media(prefers-color-scheme:dark){html[data-theme=auto]{--bg:#0e1512;--surface:#16201b;--surface2:#202c26;--text:#eef5f1;--muted:#aab8b1;--border:#304039;--brand:#2d8b62;color-scheme:dark}}

.checkwrap{border-bottom:1px solid var(--border);padding:6px 0 12px}.photoarea{margin:0 0 8px 32px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.photobutton{display:inline-flex;align-items:center;background:var(--surface2);color:var(--text);border:1px solid var(--border);border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer}.hiddenfile{display:none!important}.checkphoto{width:110px;height:82px;object-fit:cover;border-radius:12px;border:1px solid var(--border)}

.photo-grid{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.issuephoto{width:150px;height:110px;object-fit:cover;border-radius:12px;border:1px solid var(--border)}.preview-name{padding:8px 10px;background:var(--surface2);border-radius:10px}.clickable{cursor:pointer}.clickable:hover{opacity:.82}

/* V4.7: Quick controls + complete contrast corrections */
.view-controls{display:inline-flex;gap:6px;align-items:center;margin-right:6px}.fontbtn{font-weight:800;min-width:44px}
html[data-theme="dark"] .pill,html[data-theme="dark"] .warning,
html[data-theme="auto"] .pill{border:1px solid var(--border)}
html[data-theme="dark"] .pill{background:#26362f!important;color:#f3f8f5!important}
html[data-theme="dark"] .priority-Normal{background:#26362f!important;color:#e8f1ec!important}
html[data-theme="dark"] .priority-Wichtig{background:#4a3b18!important;color:#ffe7a3!important}
html[data-theme="dark"] .priority-Dringend{background:#542421!important;color:#ffd4d0!important}
html[data-theme="dark"] .warning{color:#ffc766!important}
html[data-theme="dark"] .danger{color:#ffaaa4!important}
html[data-theme="dark"] input[type="checkbox"]{accent-color:#4cc98c}
html[data-theme="dark"] a{color:#75d9aa}
html[data-theme="dark"] table,html[data-theme="dark"] th,html[data-theme="dark"] td{color:var(--text)!important;border-color:var(--border)!important}
html[data-theme="dark"] .timer{color:#fff!important}
html[data-theme="dark"] button:not(.secondary):not(.iconbtn){color:#fff!important}
html[data-theme="dark"] .secondary,html[data-theme="dark"] .iconbtn{color:var(--text)!important}
html[data-theme="dark"] ::placeholder{color:#82948b!important;opacity:1}
@media(prefers-color-scheme:dark){
 html[data-theme="auto"] .pill{background:#26362f!important;color:#f3f8f5!important}
 html[data-theme="auto"] .priority-Normal{background:#26362f!important;color:#e8f1ec!important}
 html[data-theme="auto"] .priority-Wichtig{background:#4a3b18!important;color:#ffe7a3!important}
 html[data-theme="auto"] .priority-Dringend{background:#542421!important;color:#ffd4d0!important}
 html[data-theme="auto"] .warning{color:#ffc766!important}
 html[data-theme="auto"] .danger{color:#ffaaa4!important}
 html[data-theme="auto"] input[type="checkbox"]{accent-color:#4cc98c}
 html[data-theme="auto"] table,html[data-theme="auto"] th,html[data-theme="auto"] td{color:var(--text)!important;border-color:var(--border)!important}
 html[data-theme="auto"] button:not(.secondary):not(.iconbtn){color:#fff!important}
 html[data-theme="auto"] .secondary,html[data-theme="auto"] .iconbtn{color:var(--text)!important}
}
@media(max-width:700px){
 .view-controls{gap:3px}.view-controls .iconbtn{min-width:38px;padding:7px!important}.settingsbtn{display:none}
}

/* V4.8 – Header controls guaranteed + full-height themes */
html,body{min-height:100%;margin:0}
html[data-theme="dark"],html[data-theme="dark"] body{background:#0e1512!important}
html[data-theme="light"],html[data-theme="light"] body{background:#f4f6f3!important}
body{min-height:100vh}
.shell{min-height:calc(100vh - 84px);box-sizing:border-box;background:var(--bg)!important}
.nav{background:var(--surface)!important;border-top:1px solid var(--border)!important}
.topbar{align-items:center!important}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.header-actions .iconbtn{display:inline-flex!important;align-items:center;justify-content:center;min-width:44px!important;padding:8px 10px!important}
.header-actions .fontbtn{font-weight:900!important}
.brand{color:var(--brand)!important}
.sub{color:var(--muted)!important}
html[data-theme="dark"] .brand{color:#65c997!important}
html[data-theme="dark"] .sub{color:#aebdb5!important}
@media(prefers-color-scheme:dark){
 html[data-theme="auto"],html[data-theme="auto"] body{background:#0e1512!important}
 html[data-theme="auto"] .brand{color:#65c997!important}
 html[data-theme="auto"] .sub{color:#aebdb5!important}
}
@media(max-width:700px){
 .topbar{align-items:flex-start!important;gap:10px}
 .header-actions{gap:4px}
 .header-actions .iconbtn{min-width:38px!important;padding:7px!important}
 .logoutbtn{padding:7px 9px!important}
}

/* V4.9 – 7 zoom levels */
html{font-size:calc(16px * var(--font-scale,1))!important}
.size-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0 20px}
.size-grid button{background:var(--surface2)!important;color:var(--text)!important}
.size-grid button.active{background:var(--brand)!important;color:#fff!important}
.size-toast{position:fixed;right:24px;top:92px;z-index:9999;background:var(--text);color:var(--surface);padding:9px 14px;border-radius:999px;font-weight:800;opacity:0;transform:translateY(-5px);pointer-events:none;transition:.15s}
.size-toast.show{opacity:1;transform:translateY(0)}
/* Keep large zoom usable */
.shell{width:min(100%,1200px);padding-left:max(18px,3vw);padding-right:max(18px,3vw)}
.nav{overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
.nav button{flex:0 0 auto}
.actions{flex-wrap:wrap}
img{max-width:100%}
@media(max-width:700px){
 .size-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .topbar{flex-direction:column!important}
 .header-actions{width:100%;justify-content:flex-start!important}
 .shell{padding-left:14px;padding-right:14px}
 .size-toast{right:14px;top:112px}
}

.notice{padding:12px 14px;margin:12px 0;background:var(--surface2);border-radius:14px}.time-list{margin-top:10px}

.report-tabs{display:flex;gap:8px;margin:12px 0 18px}.year-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.year-stat{background:var(--surface2);padding:12px;border-radius:12px;display:flex;flex-direction:column;gap:5px}.year-stat b{font-size:1.05em}@media(max-width:700px){.year-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V5.4 – kompakter Arbeitsauftrag / Checkliste */
.job-detail .card,.checklist-card{padding:14px 16px!important;margin-bottom:10px!important}
.job-detail h2,.job-detail h3,.checklist-card h3{margin:0 0 8px!important}
.checklist-card h4{margin:10px 0 4px!important}
.checklist-row{padding:7px 0!important;min-height:36px!important;border-bottom:1px solid var(--border)}
.checklist-row:last-child{border-bottom:0}
.checklist-row label{margin:0!important}
.checklist-row input[type="checkbox"]{width:22px;height:22px;margin:0 10px 0 0;flex:0 0 auto}
.checklist-row .photobutton{margin:5px 0 0!important;padding:7px 10px!important}
.compact-job-meta{margin:2px 0 8px!important}
.compact-start{margin-top:8px!important}
@media(max-width:700px){
 .job-detail .card,.checklist-card{padding:12px!important}
 .checklist-row{padding:6px 0!important}
}

.finish-cleaning{margin-top:14px;padding-top:12px;border-top:1px solid var(--border)}.finishbtn{font-size:1.05em;padding:12px!important}.finish-cleaning .muted{text-align:center;margin-top:6px}

/* V5.6 – echte kompakte Reinigungsliste */
.checklist-card .section{margin:8px 0!important;padding:0!important}
.checklist-card .section>b{display:block;margin:0 0 4px!important}
.checklist-card .checkwrap{
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  border-bottom:1px solid var(--border);
}
.checklist-card .checkwrap>.check{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  gap:10px!important;
  margin:0!important;
  padding:9px 2px!important;
  min-height:0!important;
  line-height:1.25!important;
}
.checklist-card .checkwrap>.check input[type="checkbox"]{
  width:20px!important;height:20px!important;min-width:20px!important;
  margin:0!important;flex:0 0 20px!important;
}
.checklist-card .checkwrap>.check span{margin:0!important;padding:0!important}
.checklist-card .photoarea{
  margin:0 0 8px 30px!important;padding:0!important;
  display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important
}
.checklist-card .checkphoto{width:72px!important;height:54px!important;object-fit:cover!important;margin:0!important}
.checklist-card .photobutton{margin:0!important;padding:6px 9px!important}
.checklist-card hr{display:none!important}
@media(max-width:700px){
 .checklist-card .checkwrap>.check{padding:8px 0!important}
}

/* V5.7 – kompakte mobile Navigation + Admin-Menü */
.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.admin-grid button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;padding:16px;min-height:105px}
.admin-grid button span{font-size:1.5em}.admin-grid button b{font-size:1.05em}.admin-grid button small{opacity:.78}
@media(max-width:700px){
 .nav{display:grid!important;grid-template-columns:repeat(5,1fr)!important;overflow:visible!important;gap:4px!important;padding:7px!important}
 .nav button{min-width:0!important;padding:9px 3px!important;font-size:.78rem!important;white-space:normal!important;line-height:1.1!important}
 .admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* V5.8 – abgeschlossene Reinigungsnachweise */
.done-banner{padding:11px 12px;margin-bottom:9px;border-radius:12px;background:var(--surface2);font-weight:800;text-align:center}
.clickable-photo{cursor:zoom-in}
.photo-modal{position:fixed;inset:0;z-index:20000;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;padding:20px}
.photo-modal img{max-width:95vw;max-height:90vh;object-fit:contain;border-radius:12px}
.photo-modal button{position:absolute;right:18px;top:18px;width:46px;height:46px;border-radius:50%;font-size:28px;padding:0}
.checklist-card input:disabled{opacity:.8}

.password-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.password-row button{height:100%;min-width:52px}

/* V6.0 – Arbeitszeit: mehr Luft und bessere Lesbarkeit */
.time-list .listrow{padding:14px 0!important;gap:14px!important;align-items:center!important}
.time-list .listrow>div:first-child{flex:1 1 320px;min-width:220px}
.time-list .listrow .actions{flex:0 0 auto;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.time-list .listrow b{display:inline-block;margin-bottom:2px}
@media(max-width:700px){
 .time-list .listrow{align-items:flex-start!important;padding:13px 0!important}
 .time-list .listrow .actions{width:100%;justify-content:flex-start;margin-top:6px}
 .time-list .listrow .actions button{padding:8px 10px!important}
}

/* V6.2 – sauberer Auftragskopf */
.job-head .house{margin-bottom:10px!important}
.job-head h2{margin:0 0 12px!important}
.job-meta{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:7px!important;margin:0 0 12px!important}
.job-meta .muted,.job-meta .pill{margin:0!important;position:static!important}
.job-head #timerbox{margin-top:4px!important}

/* V6.4 – Reinigung ohne vorherigen Arbeitsauftrag */
.cleaning-house-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:16px 0}
.cleaning-house{min-height:82px;text-align:left;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:14px 16px!important}
.cleaning-house b{font-size:1.15em}.cleaning-house span{font-size:.9em;opacity:.85}
@media(max-width:700px){.cleaning-house-grid{grid-template-columns:1fr}.cleaning-house{min-height:68px}}

/* V6.5 – Reinigung als Hauptaktion auf der Übersicht */
.cleaning-hero{
  width:100%;display:flex;align-items:center;gap:14px;text-align:left;
  padding:16px 18px!important;margin:0 0 14px!important;border-radius:14px!important;
}
.cleaning-hero-icon{font-size:1.65rem;line-height:1}
.cleaning-hero>span:nth-child(2){display:flex;flex-direction:column;gap:2px;flex:1}
.cleaning-hero b{font-size:1.08rem}
.cleaning-hero small{font-size:.82rem;opacity:.88;font-weight:400}
.cleaning-hero-arrow{font-size:1.8rem;line-height:1}

/* V6.7 – laufende Zeit auf Übersicht direkt öffnen */
.clickable-stat{cursor:pointer;transition:transform .12s ease,filter .12s ease}
.clickable-stat:hover{transform:translateY(-1px);filter:brightness(1.08)}
.clickable-stat small{display:block;margin-top:6px;font-size:.75rem;opacity:.8}

/* V6.8 – Benachrichtigungs-Badge bei offenen Aufgaben */
.stat-label{display:inline-flex;align-items:center;gap:7px}
.notification-badge{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:20px;height:20px;padding:0 6px;border-radius:999px;
  background:#e53935;color:#fff;font-size:11px;font-weight:800;
  line-height:1;box-shadow:0 1px 4px rgba(0,0,0,.28)
}

/* V6.9 – roter Aufgabenzähler direkt am unteren Menü */
.nav .nav-overview{position:relative}
.nav-badge{
  position:absolute;top:3px;right:5px;
  display:flex;align-items:center;justify-content:center;
  min-width:18px;height:18px;padding:0 5px;border-radius:999px;
  background:#e53935;color:#fff;font-size:10px;font-weight:800;
  line-height:1;border:2px solid var(--surface,#16201b);
  box-sizing:content-box
}

/* V7.0 – Menü-Badge ohne Überschneidung */
.nav .nav-overview{
  position:relative;
  overflow:visible!important;
  padding-right:30px!important;
}
.nav-badge{
  position:absolute!important;
  top:-8px!important;
  right:-7px!important;
  min-width:19px!important;
  height:19px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  border:2px solid var(--bg,#0e1512)!important;
  z-index:20!important;
  box-sizing:border-box!important;
  pointer-events:none;
}
@media(max-width:700px){
  .nav .nav-overview{padding-right:28px!important}
  .nav-badge{top:-7px!important;right:-5px!important}
}

.pwa-actions{display:flex;justify-content:flex-end;margin-bottom:10px}.notify-btn{font-size:.8rem!important}
@media(max-width:700px){.pwa-actions .notify-btn{width:100%}}

/* V7.4 – Löschbutton sichtbar */
.job-delete-btn{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 margin-top:8px!important;padding:12px 16px!important;
 background:#8f1d1d!important;color:#fff!important;-webkit-text-fill-color:#fff!important;
 border:1px solid #c94a4a!important;border-radius:12px!important;font-weight:800!important;
 opacity:1!important;visibility:visible!important;
}
.job-delete-btn:hover{filter:brightness(1.12)}

.nav-admin,.admin-issue-btn{position:relative!important;overflow:visible!important}
.admin-badge{top:-8px!important;right:-6px!important}
.admin-issue-btn .menu-badge{position:absolute;top:8px;right:8px;background:#d62f2f;color:#fff;border-radius:999px;min-width:20px;height:20px;padding:0 5px;display:flex;align-items:center;justify-content:center;font-size:11px;font-style:normal;font-weight:800}
.static-badge{position:static!important;display:inline-flex!important;align-items:center;justify-content:center!important}
.admin-alerts{margin-top:14px}

/* V7.6 – mobile Navigation zentrieren */
@media(max-width:700px){
  .nav{
    left:0!important;
    right:0!important;
    width:100%!important;
    margin:0!important;
    padding-left:12px!important;
    padding-right:12px!important;
    justify-content:center!important;
    gap:8px!important;
    box-sizing:border-box!important;
  }
  .nav > button{
    flex:0 1 150px!important;
    min-width:0!important;
    margin:0!important;
  }
}

/* V7.8 – mobile Bottom-Navigation: gleichmäßig und sauber */
@media(max-width:700px){
  .nav{
    left:12px!important;
    right:12px!important;
    bottom:12px!important;
    width:auto!important;
    padding:6px!important;
    gap:6px!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    justify-content:stretch!important;
    align-items:stretch!important;
    border-radius:18px!important;
    box-sizing:border-box!important;
  }
  .nav > button{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    min-height:58px!important;
    padding:8px 5px!important;
    margin:0!important;
    border-radius:14px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    text-align:center!important;
    line-height:1.05!important;
    font-size:14px!important;
    white-space:normal!important;
    box-sizing:border-box!important;
  }
  .nav-overview{padding-right:5px!important}
  .nav-badge{
    top:-7px!important;
    right:-4px!important;
  }
}

.task-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.task-action-grid button{width:100%;min-height:48px}
@media(max-width:700px){.task-action-grid{grid-template-columns:1fr}.task-action-grid button{min-height:54px;font-size:16px}}

.issue-admin-actions{margin:16px 0 10px}.issue-admin-actions .full{min-height:50px}

.issue-tabs{display:flex;gap:8px;margin:18px 0 8px;border-bottom:1px solid var(--line);padding-bottom:10px}
.issue-tabs button{background:transparent;border:1px solid var(--line);padding:9px 14px;border-radius:12px}
.issue-tabs button.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.issue-tabs button span{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;padding:0 6px;margin-left:5px;border-radius:999px;background:rgba(255,255,255,.12);font-size:.85em}
@media(max-width:700px){.issue-tabs{display:grid;grid-template-columns:1fr 1fr}.issue-tabs button{width:100%}}

.shopping-list{display:flex;flex-direction:column}
.shopping-row{display:grid;grid-template-columns:44px 1fr auto;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}
.shopping-check{width:40px;height:40px;padding:0;border-radius:50%;font-size:22px}
.shopping-text{min-width:0}
.shopping-done .shopping-text{opacity:.65}
.shopping-done .shopping-text>b{text-decoration:line-through}
@media(max-width:700px){
  .nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .nav>button{font-size:12px!important;padding:7px 3px!important}
  .shopping-row{grid-template-columns:42px 1fr auto}
}

.nav-shopping{position:relative}
.shopping-badge{top:-7px!important;right:-4px!important}

.brand-home{cursor:pointer;user-select:none;border-radius:10px;padding:2px 5px;margin:-2px -5px}
.brand-home:active{transform:scale(.985)}

.app-version{position:fixed;right:10px;bottom:4px;font-size:10px;opacity:.35;z-index:20;pointer-events:none}
.notify-ok{display:inline-flex;align-items:center;padding:9px 12px;border:1px solid var(--line);border-radius:12px;font-size:13px;opacity:.8}
.linked-issue .photo-grid{margin:10px 0}
.linked-issue .issuephoto{cursor:pointer}
@media(max-width:700px){.app-version{bottom:78px;right:8px}.task-tabs{margin-top:12px}}

.task-filter{display:grid;grid-template-columns:auto minmax(180px,300px);gap:10px;align-items:center;margin:10px 0 16px}
.task-filter label{margin:0;font-weight:700}
.task-filter select{margin:0}
@media(max-width:700px){.task-filter{grid-template-columns:1fr;gap:5px}.task-filter select{width:100%}}

.admin-quick{position:fixed;top:12px;right:12px;z-index:60}.admin-quick-btn{position:relative;min-height:42px;padding:8px 12px}
.admin-quick-menu{position:absolute;right:0;top:48px;width:180px;padding:7px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.25)}
.admin-quick-menu.hidden{display:none}.admin-quick-menu button{width:100%;margin:3px 0;text-align:left;min-height:42px}
.quick-badge{display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:#e53935;color:#fff;font-size:12px}
@media(max-width:700px){.nav{grid-template-columns:repeat(4,minmax(0,1fr))!important}.admin-quick{top:76px;right:12px}.admin-quick-btn{font-size:12px;min-height:36px;padding:6px 9px}.shell{padding-bottom:135px!important}form{padding-bottom:45px}}

.settings-wrap{position:fixed;top:18px;right:18px;z-index:80}
.settings-btn{width:46px;height:46px;padding:0!important;border-radius:14px!important;font-size:20px!important}
.settings-menu{position:absolute;right:0;top:54px;width:230px;padding:9px;background:var(--card);border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 35px rgba(0,0,0,.3)}
.settings-menu.hidden{display:none}
.settings-title{font-weight:800;padding:7px 9px 10px}
.settings-menu>button{width:100%;margin:3px 0;text-align:left;min-height:43px;background:transparent;border:0}
.settings-menu>button:hover{background:var(--surface)}
.settings-divider{height:1px;background:var(--line);margin:7px 3px}
.settings-size{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:5px;padding:3px 0}
.settings-size button{min-height:40px;padding:5px}
.settings-size span{text-align:center;font-size:13px}
@media(max-width:700px){.settings-wrap{top:14px;right:14px}.topbar .header-actions{display:none!important}}

/* V9.2: Zahnrad auf Mobilgeräten sichtbar halten */
@media(max-width:700px){
  .topbar .header-actions{
    display:flex!important;
    position:relative!important;
    z-index:90!important;
  }
  .topbar .header-actions .settings-btn{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
  }
}

/* V9.3 – Zahnrad fest rechts oben */
.topbar{position:relative}
.topbar .header-actions{
  position:absolute!important;
  top:0!important;
  right:0!important;
  display:flex!important;
  z-index:90!important;
}
.topbar .header-actions .settings-btn{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:46px!important;
  height:46px!important;
  min-width:46px!important;
}
@media(max-width:700px){
  .topbar{padding-right:58px!important}
  .topbar .header-actions{top:0!important;right:0!important}
}

/* V9.4 – Einstellungszahnrad wirklich viewport-rechts oben */
.topbar .header-actions{
  position:fixed!important;
  top:18px!important;
  right:18px!important;
  left:auto!important;
  width:auto!important;
  margin:0!important;
  z-index:1000!important;
}
@media(max-width:700px){
  .topbar .header-actions{
    position:fixed!important;
    top:max(14px,env(safe-area-inset-top))!important;
    right:14px!important;
    left:auto!important;
  }
}

/* V9.5 – Einstellungsmenü sauber über dem Inhalt */
.settings-wrap{
  position:fixed!important;top:18px!important;right:18px!important;left:auto!important;
  z-index:5000!important;width:auto!important;height:auto!important;pointer-events:none!important
}
.topbar .header-actions{position:fixed!important;top:18px!important;right:18px!important;left:auto!important;z-index:5001!important}
.topbar .header-actions .settings-btn{pointer-events:auto!important}
.settings-menu{
  position:fixed!important;top:72px!important;right:18px!important;left:auto!important;
  width:min(300px,calc(100vw - 36px))!important;max-height:calc(100vh - 100px)!important;
  overflow:auto!important;z-index:5002!important;box-sizing:border-box!important;
  background:var(--card)!important;opacity:1!important;pointer-events:auto!important;
  padding:12px!important;border-radius:18px!important
}
.settings-menu.hidden{display:none!important}
.settings-menu>button{display:flex!important;align-items:center!important;width:100%!important;min-height:46px!important;padding:10px 12px!important;color:inherit!important}
.settings-size{display:grid!important;grid-template-columns:52px 1fr 52px!important;gap:8px!important;align-items:center!important;width:100%!important}
.settings-size button{width:52px!important;height:44px!important;padding:0!important}
.settings-size span{text-align:center!important;color:inherit!important}
@media(max-width:700px){
 .settings-wrap{top:max(14px,env(safe-area-inset-top))!important;right:14px!important}
 .topbar .header-actions{top:max(14px,env(safe-area-inset-top))!important;right:14px!important}
 .settings-menu{top:74px!important;right:14px!important;width:min(290px,calc(100vw - 28px))!important}
}

.presence-state{display:flex;align-items:center;gap:7px;white-space:nowrap;font-size:13px}.presence-dot{width:9px;height:9px;border-radius:50%;background:#8a9490}.presence-state.online{font-weight:700}.presence-state.online .presence-dot{background:#28b463;box-shadow:0 0 0 3px rgba(40,180,99,.14)}

/* V9.8 – kompakter Team-Online-Status im Admin-Dashboard */
.online-strip{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--card)}
.online-strip-title{font-weight:800;margin-right:3px}
.online-person{display:inline-flex!important;align-items:center!important;gap:6px!important;width:auto!important;min-height:34px!important;padding:6px 10px!important;margin:0!important;border-radius:999px!important;background:transparent!important;border:1px solid var(--line)!important;font-size:13px!important}
.online-person .presence-dot{width:8px;height:8px;border-radius:50%;background:#7d8883;display:inline-block;flex:0 0 auto}
.online-person .presence-dot.is-online{background:#28b463;box-shadow:0 0 0 3px rgba(40,180,99,.15)}
@media(max-width:700px){.online-strip{gap:6px;padding:9px}.online-person{font-size:12px!important;padding:6px 8px!important}}

/* V9.9 – echtes undurchsichtiges Einstellungs-Popup */
.settings-backdrop{position:fixed!important;inset:0!important;z-index:4998!important;background:rgba(0,0,0,.28)!important}
.settings-backdrop.hidden{display:none!important}
.settings-wrap{z-index:4999!important}
.settings-menu{
  z-index:5000!important;
  isolation:isolate!important;
  opacity:1!important;
  background:#102019!important;
  background-image:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  mix-blend-mode:normal!important;
  box-shadow:0 20px 60px rgba(0,0,0,.48)!important;
  border:1px solid #344a40!important;
}
.settings-menu:before,.settings-menu:after{display:none!important;content:none!important}
.settings-menu>*{position:relative!important;z-index:2!important}
html[data-theme="light"] .settings-menu,
body[data-theme="light"] .settings-menu,
html.light .settings-menu,body.light .settings-menu{
  background:#f7faf8!important;color:#102019!important;border-color:#cbd7d1!important;
}

.shopping-meta{margin-top:4px;font-size:12px;opacity:.78}.shopping-meta b{font-weight:750}

.time-add-menu{position:relative}
.time-add-dropdown{position:absolute;right:0;top:48px;z-index:120;width:260px;padding:7px;background:var(--card);border:1px solid var(--line);border-radius:14px;box-shadow:0 12px 30px rgba(0,0,0,.28)}
.time-add-dropdown.hidden{display:none}
.time-add-dropdown button{display:block;width:100%;margin:2px 0;text-align:left;min-height:43px}
@media(max-width:700px){.time-add-dropdown{position:fixed;top:auto;right:14px;left:14px;width:auto}}

.check-legend{font-size:.86rem;color:var(--muted);margin:8px 0 14px}
.required-pill{font-weight:700}
.control-pill{font-weight:700;opacity:.78}
.control-point{opacity:.92}

.team-open-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:5px;border-radius:999px;background:#c62828;color:#fff;font-size:11px;font-weight:800;line-height:1}

.unassigned-notice{cursor:pointer;margin-bottom:10px}
.time-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.time-summary>div{padding:12px;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;gap:4px}
.time-filter-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
@media(max-width:600px){.time-filter-grid{grid-template-columns:1fr}.time-summary{grid-template-columns:1fr 1fr}}

.month-switch{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}
.planning-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}
.planning-row:last-child{border-bottom:0}


/* V12.3 – Prioritätsfilter und mobile Navigation */
.task-filter-chips{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0}
.task-filter-chips button{background:transparent;border:1px solid var(--line);padding:8px 11px;border-radius:999px;font-size:13px}
.task-filter-chips button.active{background:var(--accent);color:#fff;border-color:var(--accent)}
.replacement-card{border:2px solid #d95555!important}
.replacement-label{font-weight:800;margin-bottom:8px;color:#d95555}
.mobile-nav{display:none!important}
.more-menu,.more-backdrop{display:none}
@media(max-width:700px){
  .desktop-nav{display:none!important}
  .mobile-nav{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    left:10px!important;right:10px!important;bottom:10px!important;width:auto!important;
    padding:6px!important;gap:5px!important
  }
  .mobile-nav>button{
    min-height:58px!important;padding:6px 3px!important;font-size:20px!important;
    display:flex!important;flex-direction:column!important;gap:3px!important;
    align-items:center!important;justify-content:center!important
  }
  .mobile-nav>button small{font-size:11px!important;line-height:1!important;font-weight:700}
  .mobile-nav .nav-overview{padding-right:3px!important}
  .more-backdrop{display:block;position:fixed;inset:0;z-index:68;background:rgba(0,0,0,.25)}
  .more-backdrop.hidden,.more-menu.hidden{display:none!important}
  .more-menu{
    display:grid;position:fixed;z-index:69;left:12px;right:12px;bottom:84px;
    padding:9px;background:var(--card);border:1px solid var(--line);border-radius:16px;
    box-shadow:0 14px 35px rgba(0,0,0,.3);gap:5px
  }
  .more-menu button{width:100%;min-height:48px;text-align:left}
  .task-filter-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
  .task-filter-chips button{width:100%;padding:9px 6px}
}

/* V12.4 – Branding */
.brand-home{display:flex!important;align-items:center!important;gap:11px!important}
.brand-logo{width:58px;height:58px;object-fit:contain;border-radius:50%;flex:0 0 58px}
.brand-copy .sub{margin:3px 0 0!important}
@media(max-width:700px){
  .brand-logo{width:50px;height:50px;flex-basis:50px}
  .brand-copy .brand{font-size:20px!important}
  .brand-copy .sub{font-size:13px!important}
}

/* V12.4.1 – Filter-Zähler */
.task-filter-chips button{position:relative}
.filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:5px;border-radius:999px;background:#d62f2f;color:#fff;font-size:10px;font-weight:800;line-height:1}
.task-filter-chips button.active .filter-count{background:#fff;color:#b42323}

/* V12.5 – kompaktere Hausverwaltung */
.house-admin-card{padding:14px 16px!important;margin:8px 0!important}

.house-admin-card{min-height:0!important;align-items:center!important;gap:12px!important}
.house-admin-card .house{margin-bottom:2px!important;line-height:1.15!important}
.house-admin-card .muted{line-height:1.2!important;margin:2px 0!important}
.house-admin-card>div:last-child{display:flex!important;gap:6px!important;align-items:center!important;flex-shrink:0!important}
.house-admin-card .mini{margin:0!important}
@media(max-width:700px){
  .house-admin-card{padding:12px!important;margin:7px 0!important;align-items:flex-start!important}
  .house-admin-card>div:last-child{width:100%!important;margin-top:7px!important}
  .house-admin-card .mini{flex:1!important;min-height:42px!important}
}

/* V12.5.1 – Light-Mode Kontrast */
@media (prefers-color-scheme: light){
 .online-strip,.online-strip *,.online-person,.online-person *{color:#17231e!important;-webkit-text-fill-color:#17231e!important}
 .task-filter-chips button{color:#17231e!important;-webkit-text-fill-color:#17231e!important;background:#f2f5f3!important;border-color:#cbd6d0!important}
 .task-filter-chips button.active{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#154b37!important;border-color:#154b37!important}
 .task-filter-chips .filter-count{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#d62f2f!important}
 .task-filter-chips button.active .filter-count{color:#b42323!important;-webkit-text-fill-color:#b42323!important;background:#fff!important}
}
html[data-theme="light"] .online-strip,html[data-theme="light"] .online-strip *,html[data-theme="light"] .online-person,html[data-theme="light"] .online-person *{color:#17231e!important;-webkit-text-fill-color:#17231e!important}
html[data-theme="light"] .task-filter-chips button{color:#17231e!important;-webkit-text-fill-color:#17231e!important;background:#f2f5f3!important;border-color:#cbd6d0!important}
html[data-theme="light"] .task-filter-chips button.active{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#154b37!important;border-color:#154b37!important}
html[data-theme="light"] .task-filter-chips .filter-count{color:#fff!important;-webkit-text-fill-color:#fff!important;background:#d62f2f!important}

/* V12.5.2 – abschließender Kontrast-Fix
   Ursache: globale button-Regel setzt weiß; Filter brauchen explizite Theme-Farben. */
.task-filter-chips button{
  color:#17251f!important;
  -webkit-text-fill-color:#17251f!important;
  background:#eef3ef!important;
  border:1px solid #cbd6d0!important;
}
.task-filter-chips button.active{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  background:#154b37!important;
  border-color:#154b37!important;
}
.task-filter-chips .filter-count{
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  background:#d62f2f!important;
}
.task-filter-chips button.active .filter-count{
  color:#b42323!important;
  -webkit-text-fill-color:#b42323!important;
  background:#ffffff!important;
}
.online-strip .online-person,.online-strip .online-person *{
  color:#17251f!important;
  -webkit-text-fill-color:#17251f!important;
}
html[data-theme="dark"] .task-filter-chips button{
  color:#eef5f1!important;
  -webkit-text-fill-color:#eef5f1!important;
  background:#202c26!important;
  border-color:#304039!important;
}
html[data-theme="dark"] .task-filter-chips button.active{
  color:#fff!important;-webkit-text-fill-color:#fff!important;background:#2d8b62!important
}
html[data-theme="dark"] .online-strip .online-person,
html[data-theme="dark"] .online-strip .online-person *{
  color:#eef5f1!important;-webkit-text-fill-color:#eef5f1!important
}
@media (prefers-color-scheme:dark){
  html[data-theme="auto"] .task-filter-chips button{
    color:#eef5f1!important;-webkit-text-fill-color:#eef5f1!important;background:#202c26!important;border-color:#304039!important
  }
  html[data-theme="auto"] .task-filter-chips button.active{
    color:#fff!important;-webkit-text-fill-color:#fff!important;background:#2d8b62!important
  }
  html[data-theme="auto"] .online-strip .online-person,
  html[data-theme="auto"] .online-strip .online-person *{
    color:#eef5f1!important;-webkit-text-fill-color:#eef5f1!important
  }
}

/* V12.5.3 – Aufgaben-Tabs Offen/Erledigt/Archiv: Theme-sicher */
.task-tabs button{
  color:#17251f!important;
  -webkit-text-fill-color:#17251f!important;
  background:#eef3ef!important;
  border-color:#cbd6d0!important;
}
.task-tabs button span{
  color:#17251f!important;
  -webkit-text-fill-color:#17251f!important;
  background:#dfe8e2!important;
}
.task-tabs button.active{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  background:#154b37!important;
  border-color:#154b37!important;
}
.task-tabs button.active span{
  color:#154b37!important;
  -webkit-text-fill-color:#154b37!important;
  background:#fff!important;
}
html[data-theme="dark"] .task-tabs button{
  color:#eef5f1!important;-webkit-text-fill-color:#eef5f1!important;
  background:#202c26!important;border-color:#304039!important;
}
html[data-theme="dark"] .task-tabs button span{
  color:#eef5f1!important;-webkit-text-fill-color:#eef5f1!important;background:#304039!important;
}
html[data-theme="dark"] .task-tabs button.active{
  color:#fff!important;-webkit-text-fill-color:#fff!important;background:#2d8b62!important;
}
html[data-theme="dark"] .task-tabs button.active span{
  color:#174b37!important;-webkit-text-fill-color:#174b37!important;background:#fff!important;
}
@media (prefers-color-scheme:dark){
 html[data-theme="auto"] .task-tabs button{
   color:#eef5f1!important;-webkit-text-fill-color:#eef5f1!important;background:#202c26!important;border-color:#304039!important;
 }
 html[data-theme="auto"] .task-tabs button span{
   color:#eef5f1!important;-webkit-text-fill-color:#eef5f1!important;background:#304039!important;
 }
 html[data-theme="auto"] .task-tabs button.active{
   color:#fff!important;-webkit-text-fill-color:#fff!important;background:#2d8b62!important;
 }
 html[data-theme="auto"] .task-tabs button.active span{
   color:#174b37!important;-webkit-text-fill-color:#174b37!important;background:#fff!important;
 }
}
/* V12.7 – kompakte Zeiterfassung, Nachrichten & Termine */
.duration-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 10px}.duration-choice.active{outline:2px solid currentColor;font-weight:700}.custom-duration{margin-bottom:12px}.message-unread{border-left:4px solid var(--accent,#2f7d59);background:rgba(47,125,89,.08)}.message-body{white-space:normal;line-height:1.55}.button-link{display:inline-block;padding:10px 12px;border:1px solid currentColor;border-radius:10px;text-decoration:none}.simple-upcoming .listrow{padding:10px 0}.compact-entry{max-width:650px;margin-left:auto;margin-right:auto}html[data-ui="simple"] .advanced-only{display:none!important}@media(max-width:520px){.duration-buttons{grid-template-columns:repeat(2,1fr)}}

/* V12.7.2 – kompakter Alltag + Nachrichten direkt im Kopf */
.header-actions{position:relative!important;display:flex!important;gap:7px!important;align-items:center!important;width:auto!important;justify-content:flex-end!important}
.header-actions .message-btn,.header-actions .settings-btn{position:relative!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:42px!important;width:42px!important;height:42px!important;padding:0!important;border-radius:12px!important;font-size:18px!important}
.header-badge{position:absolute;right:-5px;top:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:#e53935;color:#fff!important;font-size:11px;line-height:19px;text-align:center;border:2px solid var(--surface,#fff)}

/* Einfache Ansicht: nur das, was im Alltag gebraucht wird */
html[data-ui="simple"] .shell{padding-top:12px}
html[data-ui="simple"] .cleaning-hero{margin:8px 0 10px!important;padding:13px 16px!important;min-height:auto!important}
html[data-ui="simple"] .cleaning-hero small{font-size:.82rem!important}
html[data-ui="simple"] .grid{gap:8px!important}
html[data-ui="simple"] .stat{padding:12px 14px!important;margin:6px 0!important;min-height:88px!important}
html[data-ui="simple"] .stat b{font-size:1.75rem!important;margin-top:2px!important}
html[data-ui="simple"] .task-filter-chips,
html[data-ui="simple"] .task-filter{display:none!important}
html[data-ui="simple"] .task-tabs{margin:8px 0 10px!important;gap:6px!important}
html[data-ui="simple"] .task-tabs button{padding:9px 11px!important}
html[data-ui="simple"] .jobclick{padding:12px 14px!important;margin:7px 0!important}
html[data-ui="simple"] .jobclick .house{font-size:1rem!important}
html[data-ui="simple"] .simple-upcoming{padding:12px 14px!important}
html[data-ui="simple"] .simple-upcoming h3{margin:0!important;font-size:1rem!important}
html[data-ui="simple"] .simple-upcoming .listrow:nth-of-type(n+3){display:none!important}
html[data-ui="simple"] .card>div.row>h3{margin:0!important}

@media(max-width:700px){
 .topbar{padding-right:96px!important;position:relative!important}
 .topbar .header-actions{display:flex!important;position:absolute!important;right:0!important;top:0!important}
 .header-actions .message-btn,.header-actions .settings-btn{min-width:40px!important;width:40px!important;height:40px!important}
 html[data-ui="simple"] .shell{padding-left:10px!important;padding-right:10px!important}
}

/* v12.8.1 */
.message-tabs{display:flex;gap:8px;margin:14px 0}.message-tabs button{width:auto}.message-tabs button.active{font-weight:700}

/* V12.9.0 compact UI */
.compact-admin button{min-height:82px!important;padding:12px!important}.task-card-actions{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}.task-more{width:38px;height:34px;padding:0!important;font-size:1.25rem;line-height:1}.appointment-detail{max-width:720px;margin-left:auto;margin-right:auto}.appointment-detail h3{margin-bottom:12px}.appointment-time{font-weight:700;margin-bottom:5px}.appointment-detail .actions{margin-top:18px}.danger-text{opacity:.85}.shopping-sub{font-size:.92em;color:var(--muted);margin-top:2px}.shopping-qty{font-weight:700;color:var(--text)}.activity-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.planning-actions{display:flex;gap:6px;flex-wrap:wrap}.simple-upcoming{padding:12px 14px!important}.simple-upcoming .row{margin-bottom:2px}.simple-upcoming .listrow{padding:8px 0!important}@media(max-width:650px){.activity-filters{grid-template-columns:1fr}.planning-actions{justify-content:flex-end}}

/* V12.9.1 – sauberes Admin-Aktionsmenü */
.action-sheet-backdrop{position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.48);display:flex;align-items:flex-end;justify-content:center;padding:14px}.action-sheet{width:min(560px,100%);background:var(--surface,#fff);border:1px solid var(--border,#d9e2dd);border-radius:20px;padding:10px 12px 14px;box-shadow:0 -12px 40px rgba(0,0,0,.25)}.sheet-handle{width:42px;height:4px;border-radius:10px;background:var(--muted,#999);opacity:.45;margin:2px auto 12px}.action-sheet h3{margin:4px 8px 10px}.action-sheet button{width:100%;display:flex;align-items:center;gap:12px;text-align:left;margin:6px 0;padding:14px 16px;border-radius:13px;min-height:50px}.action-sheet .sheet-danger{color:#d64b4b}.action-sheet .sheet-cancel{justify-content:center;text-align:center;margin-top:10px}
/* V13 Hausakte */
.house-file-row{width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;margin:.45rem 0;padding:.9rem 1rem;background:var(--card,#fff);border:1px solid var(--border,#ddd);color:inherit}.house-file-row span:first-child{display:flex;flex-direction:column;gap:.15rem}.house-file-row small{opacity:.65;font-weight:400}.house-tabs{display:flex;gap:.35rem;overflow-x:auto;padding:.25rem 0 .8rem}.house-tabs button{white-space:nowrap}.house-tabs button.active{font-weight:700;box-shadow:inset 0 -3px currentColor}.house-file-stats,.protocol-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;margin:.5rem 0 1rem}.house-file-stats>div,.protocol-summary>div{border:1px solid var(--border,#ddd);border-radius:12px;padding:.75rem;display:flex;flex-direction:column}.house-file-stats b,.protocol-summary b{font-size:1.15rem}.house-file-stats small,.protocol-summary small{opacity:.65}.doc-list .button-link{display:inline-flex;padding:.45rem .65rem;border-radius:9px;text-decoration:none}.inactive-account{max-width:520px;margin:10vh auto}.inactive-account h3{margin-top:1rem}

/* V13.0.1 – Hausakten: theme-safe cards */
.house-file-row{background:var(--surface2)!important;color:var(--text)!important;border-color:var(--border)!important;border-radius:16px!important;min-height:74px}
.house-file-row b,.house-file-row small,.house-file-row span{color:inherit!important}
.house-file-row small{color:var(--muted)!important;opacity:1!important}
.house-file-row:hover{filter:brightness(1.04)}
html[data-theme=dark] .house-file-row{background:var(--surface2)!important;color:var(--text)!important}
@media(prefers-color-scheme:dark){html[data-theme=auto] .house-file-row{background:var(--surface2)!important;color:var(--text)!important}}
