:root {
  --bg: #0e1116; --surface: #171b22; --surface-2: #1f242d; --line: #2a303a;
  --text: #e8ebf0; --muted: #8b94a3; --accent: #0a84ff; --btn: #0a6ed8; --accent-ink: #ffffff;
  --ok: #4cc38a; --warn: #f5a524; --danger: #ff6b62;
  --on-ok: #0e1116; --on-danger: #0e1116;   /* dark symbols on the bright dark-mode chips (white was only 2.2:1) */
  --radius: 14px; --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f3f5f8; --surface: #ffffff; --surface-2: #eef1f5; --line: #dde2ea;
          --text: #14181f; --muted: #5d6675; --accent: #0868c9; --btn: #0a6ed8;
          --ok: #17794b; --warn: #8f5400; --danger: #c4261a; --on-ok: #ffffff; --on-danger: #ffffff; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* the hidden attribute must always win over any .btn/.card display rule */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.5;
       padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 560px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.wrap.wide { max-width: 980px; }
h1 { font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .35rem; }
h2 { font-size: 1.05rem; margin: 1.75rem 0 .6rem; }
p { margin: 0 0 1rem; } .muted { color: var(--muted); } .small { font-size: .85rem; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; color: var(--text); font-size: 1.05rem; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.back { font-size: .9rem; }

label { display: block; font-weight: 600; font-size: .9rem; margin: 1rem 0 .4rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], select, textarea {
  width: 100%; padding: .75rem .85rem; font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); }
textarea { min-height: 6rem; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none; margin: 0; }
.btn { display: block; width: 100%; padding: .9rem; margin-top: 1.25rem; font: inherit; font-weight: 600;
       color: var(--accent-ink); background: var(--btn); border: 0; border-radius: var(--radius-sm);
       text-align: center; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: var(--surface-2); color: var(--text); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn.inline { display: inline-block; width: auto; padding: .6rem 1rem; margin-top: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.flash { padding: .65rem .9rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem;
         background: var(--surface-2); border-left: 3px solid var(--accent); }
.flash.error { border-color: var(--danger); } .flash.ok { border-color: var(--ok); }
.banner { display: flex; justify-content: space-between; gap: .75rem; align-items: center; padding: .75rem 1rem;
          background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .9rem; }
.banner.warn { border-color: var(--warn); }


.list { background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.list > a, .list > label, .list > div.row { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
       padding: 1rem; margin: 0; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line); }
.list > :last-child { border-bottom: 0; }
.list .chev { color: var(--muted); font-weight: 400; }
.list > a, .list > label, .list > div.row { line-height: 1.25; min-height: 3.4rem; }
.list input[type=checkbox] { width: 1.3rem; height: 1.3rem; accent-color: var(--accent); flex: none; }

.providers { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.providers input { position: absolute; opacity: 0; }
.providers label { margin: 0; padding: .9rem; text-align: center; background: var(--surface); border: 2px solid var(--line);
                   border-radius: var(--radius-sm); cursor: pointer; }
.providers input:checked + label { border-color: var(--accent); }
.providers input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.provider-fields { display: none; } .provider-fields.on { display: block; }
.ical-howto { margin: 1rem 0 .3rem; padding: .1rem 0; }
.ical-howto summary { cursor: pointer; font-size: .85rem; color: var(--accent); font-weight: 600; }
.ical-howto p { margin: .4rem 0 0; }

.pricebox { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 1.25rem 0; }
.pricebox .amount { font-size: 2.2rem; font-weight: 750; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pricebox .amount small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.stepper { display: inline-flex; align-items: center; gap: .9rem; margin: .4rem 0 .6rem; }
.stepper button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2);
                  color: var(--text); font-size: 1.3rem; cursor: pointer; }
.stepper output { min-width: 2ch; text-align: center; font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.hero { padding: 1.5rem 0 .5rem; }
.hero h1 { font-size: clamp(1.9rem, 6vw, 2.9rem); max-width: 21ch; letter-spacing: -0.03em; margin-bottom: .85rem; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.hero-grid { display: grid; gap: 1.5rem; }
@media (min-width: 820px) { .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; } }
.checks { list-style: none; padding: 0; margin: 1rem 0; } .checks li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.start-steps { margin: .8rem 0 0; padding-left: 1.3rem; } .start-steps li { padding: .3rem 0; }
.pricing-grid { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 820px) { .pricing-grid { grid-template-columns: .9fr 1.1fr; gap: 3rem; } }
.faq details { background: var(--surface); border-radius: var(--radius-sm); padding: .8rem 1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 600; } .faq details p { margin: .6rem 0 0; }
.pricetable { width: 100%; border-collapse: collapse; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.pricetable td { padding: .45rem 0; border-bottom: 1px solid var(--line); } .pricetable td:last-child { text-align: right; font-weight: 600; }

.footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
          font-size: .85rem; color: var(--muted); }
.footer a { color: var(--muted); } .footer .lang a.on { color: var(--text); font-weight: 700; }
.legal-todo { background: var(--surface); border: 1px dashed var(--warn); border-radius: var(--radius); padding: 1rem; }
.legal-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0; }
.legal-box p { margin: 0.5rem 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: .5rem 0 1rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .45rem .5rem .45rem 0; border-bottom: 1px solid var(--line);
                                   overflow-wrap: break-word; }

#loading-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; }
#loading-overlay[hidden] { display: none; }
#loading-overlay i { width: 36px; height: 36px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-card { display: flex; align-items: center; gap: .9rem; }
.scan-spinner { flex: none; width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .scan-spinner { animation-duration: 3s; } }
@media (prefers-reduced-motion: reduce) { #loading-overlay i { animation-duration: 3s; } }

.mobile-only { display: block; } @media (min-width: 820px) { .mobile-only { display: none; } }
.hero .btn.inline { margin: 0 0 .5rem; }
.trust-line { margin: 0 0 .5rem; }
.hero-media { display: flex; justify-content: center; }
.hero-video { display: block; width: 100%; max-width: 300px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 22px;
              background: var(--surface); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
@media (min-width: 820px) { .hero-video { max-width: 320px; } }
.below-hero { margin-top: 1.5rem; align-items: start !important; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom));
              background: var(--bg); border-top: 1px solid var(--line); }
.sticky-cta .btn { margin: 0; }

/* ---- Landing: feature showcase ---- */
.showcase-title { text-align: center; font-size: 1.8rem; margin: 3.5rem 0 2rem; }
.showcase { display: flex; flex-direction: column; gap: 3rem; }
.showcase-row { display: grid; gap: 1.5rem; align-items: center; }
.showcase-img-btn { position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none;
                     cursor: zoom-in; border-radius: var(--radius); }
.showcase-img { display: block; width: 100%; height: 260px; object-fit: cover; object-position: top; border-radius: var(--radius);
                border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.25); background: var(--surface); }
.showcase-zoom { position: absolute; bottom: .7rem; right: .7rem; width: 2.2rem; height: 2.2rem; display: flex;
                 align-items: center; justify-content: center; border-radius: 50%; background: rgba(14,17,22,.7);
                 color: #fff; font-size: 1rem; }
.showcase-text h3 { font-size: 1.3rem; margin: 0 0 .5rem; letter-spacing: -0.01em; }
.showcase-text p { margin: 0; }
@media (min-width: 820px) {
  .showcase-row { grid-template-columns: 1.1fr .9fr; gap: 2.5rem; }
  .showcase-row:nth-child(even) .showcase-img-btn { order: 2; }
  .showcase-img { height: 320px; }
}
.lightbox { position: fixed; inset: 0; z-index: 9998; background: rgba(0,0,0,.85); display: flex;
            align-items: center; justify-content: center; padding: 2rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--radius-sm); box-shadow: 0 20px 60px rgba(0,0,0,.5); }

/* ---- Cleaning plan ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.print-title, .print-only { display: none; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; align-items: end; margin: 1rem 0 1.25rem;
           background: var(--surface); border-radius: var(--radius); padding: .25rem 1rem 1rem; }
.filters .f-apt { grid-column: 1 / -1; }
.filters label { margin-top: .75rem; }
.f-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.f-actions .btn { margin: 0; width: 100%; }
@media (min-width: 820px) {
  .filters { grid-template-columns: 1.8fr 1fr 1fr minmax(260px, auto); } .filters .f-apt { grid-column: auto; }
  .f-actions { grid-column: auto; margin-top: 0; display: flex; gap: .5rem; }
  .f-actions .btn { width: auto; white-space: nowrap; }
}
.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1rem; }
@media (min-width: 820px) { .summary { grid-template-columns: repeat(4, 1fr); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin: .5rem 0 1rem; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.admin-table th, .admin-table td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.visit-days { background: var(--surface); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: 1rem; }
.visit-day { display: grid; grid-template-columns: 6.5rem 1fr 2.5rem; gap: .6rem; align-items: center; font-size: .82rem;
             padding: .15rem 0; font-variant-numeric: tabular-nums; }
.visit-day span:last-child { text-align: right; font-weight: 600; }
.visit-day i { height: .55rem; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.visit-day b { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.visit-lists { display: grid; gap: 1rem; } .visit-lists h3 { font-size: .92rem; margin: .5rem 0 .3rem; }
@media (min-width: 720px) { .visit-lists { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--surface); border-radius: var(--radius); padding: .9rem 1rem; }
.stat .v { font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .82rem; }
.stat.accent { border: 1px solid var(--btn); }

.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; padding: 0; margin: 0 0 1rem; font-size: .85rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: .45rem; }
.sw { display: inline-grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 6px; font-style: normal; font-size: .8rem; font-weight: 700; }
.sw.checkout, .cell.checkout .mk { background: var(--ok); color: var(--on-ok); }
.sw.open, .cell.open .mk { background: var(--danger); color: var(--on-danger); }
.sw.stay { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.sw.turn { color: var(--warn); font-size: 1rem; }

.plan { background: var(--surface); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.1rem; }
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; align-items: flex-start; margin-bottom: 1rem; }
.plan-head h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-block; font-size: .78rem; padding: .18rem .6rem; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.chip.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.chip.nowrap { white-space: nowrap; }
.chip.warn { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.cleaner label { margin: 0 0 .25rem; font-size: .78rem; color: var(--muted); font-weight: 600; }
.inline-form { display: flex; gap: .5rem; } .inline-form input { min-width: 0; padding: .5rem .7rem; }
.inline-form .btn { padding: .5rem .9rem; }
.plan-body { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .plan-body { grid-template-columns: minmax(300px, 1.05fr) 1fr; align-items: start; } }

.cal { display: grid; gap: 4px; }
.cal-head, .cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-head span { text-align: center; font-size: .72rem; color: var(--muted); font-weight: 600; padding-bottom: 2px; }
.cell { position: relative; min-height: 3rem; border-radius: 8px; background: var(--surface-2); padding: 4px 5px; overflow: hidden; }
.cell.blank { background: transparent; }
.cell .n { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cell.weekend .n { color: var(--text); opacity: .75; }
.cell .mk { position: absolute; right: 4px; bottom: 4px; min-width: 1.25rem; height: 1.25rem; display: grid; place-items: center;
            border-radius: 6px; font-size: .8rem; font-weight: 700; }
.cell.stay { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.cell.today .n { color: var(--accent); font-weight: 800; }
.cell.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.cell .tn { position: absolute; left: 4px; bottom: 3px; color: var(--warn); font-size: .95rem; font-weight: 700; line-height: 1; }

.weeks { display: grid; gap: .55rem; }
.week { background: var(--surface-2); border-radius: 10px; padding: .6rem .75rem .7rem; }
.wk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; margin-bottom: .45rem; }
.wk-name { font-weight: 700; } .wk-range { color: var(--muted); font-size: .82rem; margin-right: auto; }
.wk-sum { font-weight: 600; font-size: .9rem; font-variant-numeric: tabular-nums; }
.wk-days { display: flex; flex-wrap: wrap; gap: .35rem; }
.day-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 8px; font-size: .88rem; font-weight: 600;
            font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--ok) 18%, transparent); }
.day-chip b { color: var(--warn); font-weight: 700; }
.wk-total { display: flex; justify-content: space-between; padding: .75rem .75rem 0; margin-top: .15rem; border-top: 2px solid var(--line); font-variant-numeric: tabular-nums; }

.message textarea { min-height: 11rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; white-space: pre; }
.langswitch { display: flex; gap: .9rem; margin: .5rem 0 .6rem; font-size: .9rem; }
.langswitch a.on { color: var(--text); font-weight: 700; text-decoration: underline; }
.actions { display: flex; gap: .6rem; align-items: center; margin-top: .75rem; } .actions .btn { margin: 0; }
.ok-text { color: var(--ok); }

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f1f1f1; --text: #000; --muted: #444; --line: #bbb;
          --ok: #000; --warn: #000; --accent: #000; --btn: #000; }
  body { background: #fff; color: #000; }
  .no-print, .topbar, .footer, #loading-overlay { display: none !important; }
  .print-title { display: block; font-size: 1.3rem; font-weight: 700; margin-bottom: .75rem; }
  .print-only { display: block; font-size: .9rem; }
  .wrap.wide { max-width: none; padding: 0; }
  .summary { grid-template-columns: repeat(4, 1fr); } .stat, .plan { border: 1px solid #999; break-inside: avoid; }
  .plan-body { grid-template-columns: 1fr 1fr; }
  .week { border: 1px solid #999; break-inside: avoid; } .day-chip { background: #fff; border: 1px solid #000; } .day-chip b { color: #000; }
  .sw.checkout, .cell.checkout .mk { background: #000; color: #fff; }
  .cell.open { outline: 1.5px dashed #000; } .cell.stay { background: #ddd; }
  .sw.open, .cell.open .mk { background: #fff; color: #000; border: 1.5px solid #000; }
}


/* ---- Finance ---- */
.fin-cards { display: grid; gap: 1rem; }
@media (min-width: 720px) { .fin-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.fin-card { background: var(--surface); border-radius: var(--radius); padding: 1.1rem; break-inside: avoid; }
.fin-card.fin-total { border: 1px solid var(--btn); grid-column: 1 / -1; }
.fin-card h2 { margin: 0 0 .7rem; font-size: 1.05rem; }
.fin-line { display: flex; justify-content: space-between; padding: .3rem 0; font-size: .93rem; border-bottom: 1px solid var(--line);
            font-variant-numeric: tabular-nums; }
.fin-line:last-of-type { border-bottom: 0; }
.fin-line.strong { font-weight: 700; }
.fin-line.minor { padding-left: .75rem; color: var(--muted); font-size: .87rem; }
.fin-sub { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; margin-top: .55rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.fin-net { display: flex; justify-content: space-between; margin-top: .6rem; padding-top: .6rem; border-top: 2px solid var(--line);
           font-weight: 700; font-size: 1.05rem; color: var(--ok); font-variant-numeric: tabular-nums; }
.fin-net.negative { color: var(--danger); }

@media print {
  .fin-card { border: 1px solid #999; }
  .fin-card.fin-total { border: 2px solid #000; }
  .fin-net { color: #000; } .fin-net.negative { color: #000; text-decoration: underline; }
}

/* ---- Settings: per-apartment costs ---- */
.list .row { padding: 1rem; }
.expense-row-right { display: flex; align-items: center; gap: .75rem; font-variant-numeric: tabular-nums; }
.expense-row-right form { margin: 0; }
.btn.danger.inline { padding: .35rem .7rem; font-size: .82rem; }
.fin-note { margin: .3rem 0 .2rem; }

.print-again { margin: 0 0 1.1rem; }

/* ---- Guest Replies ---- */
.hourfilter { color: var(--muted); font-size: .9rem; margin: .75rem 0 1.25rem; }
.hourfilter a { margin-right: .75rem; }
.hourfilter a.on { color: var(--text); font-weight: 700; text-decoration: underline; }
.reply-meta { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.reply-box { min-height: 6rem; resize: none; overflow: hidden; }
.snippet-picker { display: flex; gap: .5rem; margin-top: .6rem; }
.snippet-picker select { flex: 1; padding: .55rem .6rem; font-size: .88rem; }
.row2 { display: flex; gap: .5rem; margin-top: .75rem; }
.row2 .btn { margin: 0; flex: 1; }
.reply-feedback { background: var(--surface-2); border-radius: 10px; padding: .75rem; margin-top: .6rem; font-size: .9rem; }
.fb-status { font-weight: 700; margin-bottom: .3rem; }
.fb-status.ok { color: var(--ok); } .fb-status.warn { color: var(--warn); }
.fb-text { color: var(--muted); line-height: 1.4; }
.card > form.no-margin { margin: 0; }

/* ---- Templates ---- */
.quick-find { background: var(--surface); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.qf-row { display: flex; gap: .6rem; margin-top: .4rem; } .qf-row select { flex: 1; }
.new-snippet summary { cursor: pointer; color: var(--accent); font-weight: 700; padding: .5rem 0 1rem; }
.card { background: var(--surface); border-radius: var(--radius); padding: 1rem; margin-bottom: .75rem; }
.card-title { font-weight: 700; margin-bottom: .4rem; }
.card-text { color: var(--muted); font-size: .9rem; white-space: pre-wrap; margin-bottom: .6rem; }
.card-actions { display: flex; gap: .5rem; }
.card-actions form { margin: 0; flex: 1; } .card-actions .btn { margin: 0; width: 100%; }
.edit-form { display: none; } .edit-form.open { display: block; }
.card.highlight { outline: 2px solid var(--accent); }
details.card { padding: 0; }
details.card summary { padding: 1rem; cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card > div:not(summary) { padding: 0 1rem 1rem; }
details.card > form { padding: 0 1rem 1rem; }

/* The reminder toggle sits at the right of the summary row; its own onclick calls
   event.stopPropagation(), which keeps the click from ever reaching <summary> -- so the
   accordion's built-in toggle behaviour (which only fires once the click bubbles up to the
   summary element itself) never triggers from tapping the checkbox or its label. */
.booking-card summary { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.reminder-toggle { display: flex; flex-direction: column; align-items: center; gap: .2rem;
  cursor: pointer; flex: none; }
.reminder-toggle input[type=checkbox] { width: 1.4rem; height: 1.4rem; accent-color: var(--accent); margin: 0; }
.reminder-toggle span { font-size: .68rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.reminder-toggle.error span { color: var(--danger); }

/* Pairs a label above each of two side-by-side selects, keeping both selects aligned even
   when one label wraps to more lines than the other (a plain flex row can't do that, since
   each column's own label height pushes its own select down independently). */
.field-pair { display: grid; grid-template-columns: 1fr 1fr; column-gap: .75rem; margin-top: .75rem; }
.field-pair label { grid-row: 1; margin: 0 0 .4rem; }
.field-pair select { grid-row: 2; }
.field-pair label:nth-of-type(1), .field-pair select:nth-of-type(1) { grid-column: 1; }
.field-pair label:nth-of-type(2), .field-pair select:nth-of-type(2) { grid-column: 2; }
.field-label { font-size: .78rem; color: var(--muted); margin: .6rem 0 .2rem; }
.price { font-weight: 700; color: var(--ok); font-size: 1.05rem; margin-bottom: .4rem; }

/* ---- Belege ---- */
.tabs { display: flex; gap: .4rem; margin-bottom: 1.2rem; }
.tab-btn { flex: 1; padding: .7rem .4rem; border-radius: var(--radius-sm); border: 1px solid var(--line);
          background: var(--surface); color: var(--muted); font-size: .85rem; font-weight: 600; }
.tab-btn.active { background: var(--btn); color: var(--accent-ink); border-color: var(--btn); }
.tab-panel { display: none; } .tab-panel.active { display: block; }

.receipt-preview { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius-sm); margin: .75rem 0; }

#photoSaveOverlay { position: fixed; inset: 0; z-index: 999; background: #000; display: flex;
  flex-direction: column; align-items: center; justify-content: safe center; gap: .8rem; padding: 1.25rem;
  overflow-y: auto; -webkit-overflow-scrolling: touch; }
#photoSaveOverlay img { max-width: 100%; max-height: 42vh; object-fit: contain; border-radius: var(--radius-sm); }
#photoSaveOverlay p { color: #fff; text-align: center; max-width: 26rem; margin: 0; }
#photoSaveOverlay .btn { width: 100%; max-width: 20rem; text-align: center; text-decoration: none; }
.warn-badge { display: inline-block; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700;
             padding: .25rem .6rem; border-radius: 99px; margin-bottom: .6rem; }
.warn-badge.inline { margin: 0 0 0 .4rem; vertical-align: middle; }

.field-hint { margin-top: .35rem; }
.invoice-item-row { padding: .7rem .9rem; border-top: 1px solid var(--line); }
.invoice-item-row:first-child { border-top: 0; }
.invoice-item-view { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.invoice-item-name { font-weight: 600; }
.invoice-item-actions { display: flex; gap: .5rem; }
.invoice-item-actions form { margin: 0; }
.invoice-item-edit { display: none; margin-top: .6rem; }
.invoice-item-row.editing .invoice-item-edit { display: block; }
.item-row { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .75rem .75rem .2rem; margin-bottom: .6rem; }
.btn-remove-item { width: auto; background: none; border: 0; color: var(--danger); padding: .2rem 0; margin: -.2rem 0 .3rem; font-size: .85rem; cursor: pointer; }
.btn-add-item { border: 1px dashed var(--line) !important; background: transparent !important; color: var(--muted) !important; }

.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 1rem; }
@media (min-width: 820px) { .summary { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border-radius: var(--radius); padding: .9rem 1rem; }
.stat .v { font-size: 1.5rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .78rem; }

.entry { border-top: 1px solid var(--line); padding: .85rem 0; }
.entry:first-child { border-top: 0; padding-top: 0; }
.entry-head { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }
.entry-title { font-weight: 700; font-size: .95rem; }
.entry-meta { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.entry-amount { font-weight: 700; white-space: nowrap; color: var(--ok); font-variant-numeric: tabular-nums; }
.entry-vat { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
.entry-detail { font-size: .87rem; color: var(--text); opacity: .85; margin-top: .3rem; }
.entry-buttons { display: flex; gap: 1rem; margin-top: .4rem; }
.btn-edit-entry, .btn-delete { width: auto; background: none; border: 0; font-size: .8rem; padding: .2rem 0; cursor: pointer; }
.btn-edit-entry { color: var(--accent); } .btn-delete { color: var(--danger); }
.entry-edit { display: none; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line); }
.entry-edit.open { display: block; }

.pending-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.assign-bar { position: sticky; top: 0; background: var(--surface); z-index: 2; padding-bottom: .5rem; margin-bottom: .75rem; }
.btn-edit-pending { background: none; border: 0; color: var(--muted); font-size: 1.05rem; cursor: pointer; padding: .2rem .45rem; flex: none; }
.pending-wrap > .entry-edit { margin: 0 0 .6rem; }
.pending-item { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.pending-item:first-child { border-top: 0; }
.pending-check { width: 1.3rem; height: 1.3rem; accent-color: var(--accent); flex: none; }
.pending-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pending-title { font-size: .9rem; font-weight: 700; }
.pending-desc { font-size: .83rem; color: var(--text); opacity: .85; }
.pending-meta { font-size: .78rem; color: var(--muted); }
.btn-delete-pending { width: auto; flex: none; background: none; border: 0; color: var(--danger); padding: .3rem; font-size: 1rem; cursor: pointer; }
.pending-actions { display: flex; gap: .5rem; margin: .6rem 0; }
.pending-actions .btn { flex: 1; }
.table-scroll { overflow-x: auto; margin-bottom: .75rem; }
.table-scroll .tbl { font-size: .82rem; white-space: nowrap; }

@media print {
  .tabs, #panel-scan, #panel-dictate, #panel-import { display: none !important; }
  #panel-overview { display: block !important; }
  .entry { page-break-inside: avoid; }
}


/* A simple, robust 2-field filter row (Belege overview) — deliberately NOT the .filters grid
   built for Cleaning/Finance's 4-field forms, whose column-span tricks don't fit a 2-field
   form and can collapse a field's width unpredictably on some engines. Flex with a min-width
   wraps cleanly instead of ever crushing a field down to near-zero. */
.simple-filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; margin: 1rem 0 1.25rem; }
.simple-filters > div { flex: 1 1 160px; min-width: 0; }
.simple-filters select { width: 100%; }

#dictateMicBtn.active { background: var(--danger); color: #fff; border-color: var(--danger); }

.checkbox-row { display: flex; align-items: center; gap: .6rem; margin: 1rem 0 0; font-weight: 400; font-size: .92rem; }
.checkbox-row input[type=checkbox] { width: 1.3rem; height: 1.3rem; accent-color: var(--accent); flex: none; }
.install-banner { align-items: flex-start; border-color: var(--accent); }
.install-banner .actions { margin-top: .6rem; }

/* Demo (try without signing up): a slim bar that stays on top while scrolling */
.demo-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
            gap: .75rem; margin: -.25rem 0 1.25rem; padding: .6rem .6rem .6rem .9rem; font-size: .85rem; line-height: 1.35;
            background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); }
.demo-bar .btn { flex: none; padding: .5rem .8rem; font-size: .85rem; }
.demo-welcome { margin-bottom: 1.25rem; border: 1px solid var(--accent); }
.demo-link { margin: 0 0 .5rem; font-size: .95rem; font-weight: 600; }

/* Home page hero on phones: text centred above the centred video (left-aligned next to it on wide screens) */
@media (max-width: 819px) {
  .hero-text { text-align: center; }
  .hero-text h1, .hero-text p.lead { margin-left: auto; margin-right: auto; }
}
.reminder-due { color: var(--warn); font-weight: 600; font-size: .8rem; margin-left: .25rem; }
.demo-hint { border: 1px solid var(--accent); font-weight: 600; }
.demo-pulse { border-color: var(--accent) !important; animation: demo-pulse 1.6s ease-in-out infinite; }
@keyframes demo-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(10, 132, 255, .55); } 50% { box-shadow: 0 0 0 7px rgba(10, 132, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .demo-pulse { animation: none; } }
.demo-next-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }

/* Benachrichtigungen */
.notice-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem .75rem; margin: .6rem 0 .8rem;
                 align-items: end; }   /* a label on two lines must not push its field below its neighbour */
.notice-fields > div { grid-column: 1 / -1; }          /* one field per row ... */
.notice-fields > .nf-half { grid-column: auto; }       /* ... except date and time, side by side */
.notice-fields label { font-size: .8rem; margin-top: .2rem; }
.notice-fields input, .notice-fields select { min-width: 0; }
.notice-draft { border: 1px solid var(--accent); }
details.card > summary { cursor: pointer; }

.reply-stay { font-size: .85rem; font-weight: 600; margin: -.2rem 0 .5rem; }
/* Guest replies: which platform the message came from */
.src-badge { display: inline-block; font-size: .7rem; font-weight: 700; line-height: 1.5; padding: 0 .45rem; border-radius: 999px;
             color: #fff; vertical-align: 1px; }
.src-airbnb { background: #e0224a; } .src-booking { background: #003b95; } .src-vrbo { background: #1f4fb8; }
.src-expedia { background: #1a2b49; } .src-direct { background: var(--surface-2); color: var(--text); }

/* Benachrichtigungen: date and time fields look like the other fields on iPhone/Android too
   (Safari draws them natively: different height, centred text, sometimes wider than the column) */
.notice-fields input, .notice-fields select { height: 3rem; margin: 0; }
.notice-fields input[type=date], .notice-fields input[type=time] { -webkit-appearance: none; appearance: none;
  display: block; min-width: 0; max-width: 100%; line-height: 1.2; text-align: left; }
.notice-fields input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.notice-fields input::-webkit-datetime-edit { padding: 0; }

/* The date of a Benachrichtigung: a button that opens Touli's own calendar (static/datepick.js) */
.date-pick { display: block; width: 100%; height: 3rem; padding: 0 .85rem; font: inherit; text-align: left; color: var(--text);
             background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
             white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-pick.empty { color: var(--muted); }
.dp-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem;
               background: rgba(0, 0, 0, .5); }
.dp-overlay[hidden] { display: none; }
.dp { width: min(22rem, 100%); padding: 1rem; background: var(--surface); border: 1px solid var(--line);
       border-radius: var(--radius); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.dp-nav { width: 2.75rem; height: 2.75rem; font-size: 1.5rem; line-height: 1; color: var(--text); background: var(--surface-2);
           border: 0; border-radius: 50%; cursor: pointer; }
.dp-nav:disabled { opacity: .3; cursor: default; }
.dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .25rem; text-align: center; }
.dp-week { font-size: .75rem; color: var(--muted); margin-bottom: .3rem; }
.dp-day { aspect-ratio: 1; min-height: 2.5rem; padding: 0; font: inherit; color: var(--text); background: none; border: 1px solid transparent;
           border-radius: 50%; cursor: pointer; }
.dp-day.today { border-color: var(--accent); }
.dp-day.chosen { background: var(--accent); color: #fff; font-weight: 700; }
.dp-day:disabled { color: var(--muted); opacity: .4; cursor: default; }
.dp .dp-close { margin-top: .8rem; }
a.reminder-open { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* Line icons (templates/_icons.html) */
.ico { width: 1.25rem; height: 1.25rem; flex: none; }
.icon-list > a > span:first-child { display: flex; align-items: center; gap: .7rem; }
.icon-list .ico { color: var(--accent); }

/* Tint per feature (the icons of the "Mehr" sheet) */
.tile-replies { --tint: #0a84ff; } .tile-notifications { --tint: #f5a524; } .tile-cleaning { --tint: #30c3b5; }
.tile-receipts { --tint: #a78bfa; } .tile-purchases { --tint: #4cc38a; } .tile-finance { --tint: #5ac8fa; }
.tile-templates { --tint: #8b94a3; } .tile-settings { --tint: #8b94a3; }
@media (prefers-color-scheme: light) {
  .tile-notifications { --tint: #b86e00; } .tile-cleaning { --tint: #0f8a80; } .tile-purchases { --tint: #17794b; }
  .tile-finance { --tint: #0a7bbd; } .tile-receipts { --tint: #7c5cd6; } .tile-templates, .tile-settings { --tint: #5d6675; }
}

/* Gästeantworten: reminders suggested from the chat */
.reminder-find { width: 100%; margin-top: .5rem; }
.chat-reminders { margin-top: .8rem; }
.chat-reminders .notice-draft { background: var(--surface-2); }
.status-msg.ok { color: var(--ok); }

/* Settings -> apartment: replies learned from Gästeantworten */
.learned-example { font-size: .9rem; white-space: pre-line; }
.learned-guest { color: var(--muted); }

/* Benachrichtigungen: bookings to scan for reminders */
.scan-booking { background: var(--surface-2); }
.scan-booking .reminder-find { margin-top: .3rem; }

/* ---- Start page: tiles that show their content ("bento"), flat colours -------------------------------- */
:root { --b-blue: #12305a; --b-blue-ink: #ffffff; --b-blue-soft: #c3dbff; --b-blue-line: #4a6c9c;
        --b-teal: #103b38; --b-teal-soft: #a8ebe2; --b-violet: #2a2350; --b-violet-soft: #d3c7ff;
        --b-amber: #3d2c0c; --b-amber-soft: #f7cf80; --b-btn: #ffffff; --b-btn-ink: #0d2a52;
        --dock: #1b2129; --dock-line: #2c3441; }
@media (prefers-color-scheme: light) {
  :root { --b-blue: #dbe9fb; --b-blue-ink: #0d2a52; --b-blue-soft: #1c4f94; --b-blue-line: #8fb0dc;
          --b-teal: #d3efeb; --b-teal-soft: #0c5a52; --b-violet: #e7e1fa; --b-violet-soft: #4a33a8;
          --b-amber: #fbecc8; --b-amber-soft: #7a4a00; --b-btn: #0a6ed8; --b-btn-ink: #ffffff;
          --dock: #ffffff; --dock-line: #dde2ea; }
}
.home-top { margin-bottom: 1rem; }
.home-top .brand { gap: .65rem; }
.home-top .brand img { width: 34px; height: 34px; border-radius: 9px; }
.home-top .brand strong { display: block; font-size: 1.15rem; line-height: 1.15; letter-spacing: -.01em; }
.home-top .brand small { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.icon-btn { width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%; background: var(--surface); color: var(--text);
            display: grid; place-items: center; }
.mini-spin { display: inline-block; width: .7rem; height: .7rem; margin-left: .35rem; vertical-align: -1px; border: 2px solid var(--line);
             border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.mini-spin[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .mini-spin { animation-duration: 3s; } }
.bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .65rem; }
.b-card { display: flex; flex-direction: column; gap: .4rem; min-height: 7.4rem; padding: .9rem; border-radius: 22px;
          background: var(--surface); color: var(--text); }
a.b-card:active { opacity: .85; }
.b-wide { grid-column: 1 / -1; min-height: 0; }
.b-head { display: flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 700; color: var(--accent); }
.b-head .ico { width: 1.15rem; height: 1.15rem; }
.b-head.b-green { color: var(--ok); } .b-head.b-muted { color: var(--muted); }
.b-meta { margin-left: auto; font-weight: 600; }
.b-num { font-size: 1.9rem; font-weight: 800; line-height: 1.05; }
.b-title { font-size: .98rem; margin-top: .1rem; }
.b-sub { font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.b-body strong { display: block; font-size: 1rem; }
.b-body p { margin: .2rem 0 0; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b-actions { display: flex; gap: .5rem; margin-top: .35rem; }
.b-btn { flex: 1; display: grid; place-items: center; min-height: 2.75rem; padding: 0 .9rem; border-radius: 13px; font-weight: 700;
         font-size: .92rem; background: var(--b-btn); color: var(--b-btn-ink); text-align: center; }
.b-btn.ghost { flex: none; background: transparent; color: var(--b-blue-ink); border: 1px solid var(--b-blue-line); font-weight: 600; }
.b-blue { background: var(--b-blue); color: var(--b-blue-ink); }
.b-blue .b-head, .b-blue .b-body p { color: var(--b-blue-soft); }
.b-teal { background: var(--b-teal); } .b-teal .b-head, .b-teal .b-sub { color: var(--b-teal-soft); }
.b-violet { background: var(--b-violet); } .b-violet .b-head, .b-violet .b-sub { color: var(--b-violet-soft); }
.b-amber { background: var(--b-amber); } .b-amber .b-head { color: var(--b-amber-soft); }
.b-dashed { background: transparent; border: 1px dashed var(--muted); }
.b-list { list-style: none; margin: 0; padding: 0; font-size: .9rem; }
.b-list li + li { margin-top: .3rem; }
.b-chips { display: flex; flex-wrap: wrap; gap: .3rem; }
.b-chips:empty { display: none; }
.b-chips span { padding: .1rem .5rem; border-radius: 8px; font-size: .78rem; font-weight: 700; background: var(--surface-2); color: var(--text); }
.b-teal .b-chips span { background: color-mix(in srgb, var(--b-teal-soft) 22%, transparent); }
.b-meta.b-muted { color: var(--muted); font-weight: 500; }
/* Finance tile: chart colours follow the four parts in a fixed order; all text stays in text colours */
:root { --viz-1: #3987e5; --viz-2: #d95926; --viz-3: #199e70; --viz-4: #c98500; }
@media (prefers-color-scheme: light) { :root { --viz-1: #2a78d6; --viz-2: #eb6834; --viz-3: #1baf7a; --viz-4: #eda100; } }
.viz-1 { background: var(--viz-1); } .viz-2 { background: var(--viz-2); } .viz-3 { background: var(--viz-3); } .viz-4 { background: var(--viz-4); }
.fin-top { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.fin-side { display: flex; flex-direction: column; text-align: right; }
#b-fin-net.negative { color: var(--danger); }
.fin-bar { display: flex; gap: 2px; height: 12px; margin-top: .2rem; }
.fin-bar[hidden], .fin-legend[hidden] { display: none; }
.fin-bar span { min-width: 3px; }
.fin-bar span:first-child { border-radius: 4px 0 0 4px; } .fin-bar span:last-child { border-radius: 0 4px 4px 0; }
.fin-bar span:only-child { border-radius: 4px; }
.fin-legend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .3rem .9rem; font-size: .82rem; margin-top: .15rem; }
.fin-legend div { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.fin-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.fin-legend span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fin-legend strong { margin-left: auto; white-space: nowrap; }

/* ---- Floating navigation on every app page, and the "Mehr" sheet ------------------------------------- */
body.has-dock .wrap { padding-bottom: calc(7rem + env(safe-area-inset-bottom)); }
.dock { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: calc(.75rem + env(safe-area-inset-bottom));
        width: min(26rem, calc(100% - 1.25rem)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
        padding: 5px; border-radius: 28px; background: var(--dock); border: 1px solid var(--dock-line);
        box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.dock-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
             min-height: 3.1rem; padding: 0 2px; border: 0; border-radius: 23px; background: transparent; color: var(--muted);
             font: inherit; font-size: clamp(.58rem, 2.7vw, .66rem); font-weight: 600; cursor: pointer; }
.dock-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-item .ico { width: 1.4rem; height: 1.4rem; }
.dock-item.on { background: var(--btn); color: #ffffff; }
.dock-badge { position: absolute; top: 3px; left: 50%; margin-left: 5px; min-width: 1.1rem; height: 1.1rem; padding: 0 .25rem;
              border-radius: 99px; background: var(--danger); color: var(--on-danger); font-size: .68rem; font-weight: 800;
              display: grid; place-items: center; }
/* while typing on a phone (see _dock.html): nothing floats over the page */
body.typing .dock, body.typing .fab-stack { display: none; }
.sheet-overlay { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
                 background: rgba(0, 0, 0, .5); }
.sheet-overlay[hidden] { display: none; }
.sheet { width: min(30rem, 100%); padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); background: var(--surface);
         border-radius: 24px 24px 0 0; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sheet-item { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .8rem .3rem; border-radius: 16px;
              color: var(--text); font-size: .82rem; font-weight: 600; text-align: center; }
.sheet-item:active { background: var(--surface-2); }
.sheet-ico { width: 2.9rem; height: 2.9rem; border-radius: 14px; display: grid; place-items: center;
             color: var(--tint, var(--accent)); background: color-mix(in srgb, var(--tint, var(--accent)) 16%, transparent); }
.sheet .btn { margin-top: .8rem; }

/* ---- Gästeantworten as a chat -------------------------------------------------------------------------- */
.hourfilter { display: flex; align-items: center; gap: .4rem; }
.hourfilter a { margin: 0; padding: .45rem .8rem; border-radius: 99px; border: 1px solid var(--line); color: var(--muted);
                font-weight: 600; font-size: .85rem; }
.hourfilter a.on { background: var(--text); color: var(--bg); border-color: var(--text); text-decoration: none; }
.btn .ico, .pill .ico { width: 1.1rem; height: 1.1rem; vertical-align: -.2em; margin-right: .35rem; }
.chat { padding: 1rem .9rem; border-radius: 20px; }
.chat-head { margin-bottom: .55rem; }
.chat-who { font-size: 1.05rem; }
.chat-stay { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.stay-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .6rem; border-radius: 10px; font-size: .78rem;
             font-weight: 600; background: var(--surface-2); color: var(--text); }
.stay-chip .ico { width: .95rem; height: .95rem; }
.stay-chip.in { color: var(--ok); } .stay-chip.out { color: var(--warn); }
.chat-log { display: flex; flex-direction: column; gap: .45rem; margin-bottom: .8rem; }
.bubble { max-width: 86%; padding: .6rem .8rem; font-size: .93rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.guest { align-self: flex-start; background: var(--surface-2); border-radius: 18px 18px 18px 5px; }
.bubble.host { align-self: flex-end; background: var(--b-blue); color: var(--b-blue-ink); border-radius: 18px 18px 5px 18px; }
.bubble.old { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; opacity: .8; cursor: pointer; }
.suggest-card { border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 18px;
                padding: .8rem .9rem; margin-bottom: .6rem; }
.suggest-title { display: flex; align-items: center; gap: .4rem; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .4rem; }
.suggest-title .ico { width: 1rem; height: 1rem; }
.suggest-text { font-size: .93rem; white-space: pre-wrap; }
.suggest-card .suggest-again { flex: none; width: auto; padding-left: 1.1rem; padding-right: 1.1rem; }
.chat-suggest { margin-top: 0; }
/* "Was soll die Antwort sagen?": the host's direction for "Antwort vorschlagen" */
.steer-box { display: block; width: 100%; box-sizing: border-box; margin: 0 0 .5rem; padding: .6rem .8rem; min-height: 2.75rem;
             border: 1px dashed var(--line); border-radius: 14px; background: transparent; color: var(--text);
             font: inherit; font-size: .9rem; resize: none; overflow: hidden; }
.steer-box:focus { outline: none; border-style: solid; border-color: var(--accent); }
.chat-tools { display: flex; gap: .4rem; margin-top: .5rem; }
.chat-tools form { margin: 0; flex: 1; display: flex; }
.pill { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 .5rem;
        border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--text); font: inherit;
        font-size: .84rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.pill:disabled { opacity: .6; }
.composer { display: flex; align-items: flex-end; gap: .5rem; margin-top: .7rem; }
.composer .reply-box { flex: 1; min-width: 0; min-height: 2.9rem; padding: .7rem .9rem; border-radius: 22px;
                       background: var(--surface-2); }
.send-btn { width: 2.9rem; height: 2.9rem; flex: none; border: 0; border-radius: 50%; background: var(--btn); color: #ffffff;
            display: grid; place-items: center; cursor: pointer; }
.send-btn .ico { width: 1.3rem; height: 1.3rem; }

/* ---- Benachrichtigungen grouped by day ----------------------------------------------------------------- */
.n-filter { display: flex; gap: .4rem; overflow-x: auto; margin: 0 -1rem 1rem; padding: 0 1rem; scrollbar-width: none; }
.n-filter::-webkit-scrollbar { display: none; }
.n-filter .pill { flex: none; padding: 0 .95rem; color: var(--muted); }
.n-filter .pill.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.n-group { margin-bottom: 1.2rem; }
.n-day { margin: 0 0 .5rem; font-size: 1.02rem; }
.n-day small { font-size: .82rem; font-weight: 500; color: var(--muted); margin-left: .35rem; }
.n-item { background: var(--surface); border-radius: 16px; margin-bottom: .5rem; --cat: var(--muted); }
.n-item.cat-checkin { --cat: var(--ok); } .n-item.cat-checkout { --cat: var(--warn); }
.n-item.cat-invoice { --cat: #a78bfa; }
.n-item > summary { display: flex; align-items: center; gap: .7rem; padding: .75rem .85rem; cursor: pointer; list-style: none; }
.n-item > summary::-webkit-details-marker { display: none; }
.n-time { width: 2.9rem; flex: none; text-align: center; font-weight: 800; font-size: .95rem; }
.n-stripe { width: 4px; align-self: stretch; flex: none; border-radius: 2px; background: var(--cat); }
.n-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.n-cat { font-size: .78rem; font-weight: 700; color: var(--cat); }
.n-main strong { font-size: .95rem; overflow-wrap: anywhere; }
.n-sub { font-size: .82rem; color: var(--muted); }
.n-open { flex: none; display: grid; place-items: center; min-height: 2.75rem; padding: 0 .75rem; border: 1px solid var(--line);
          border-radius: 12px; font-size: .82rem; font-weight: 700; color: var(--text); text-align: center; }
.n-edit { padding: 0 .85rem .85rem; }
/* "Neue Benachrichtigung": one card, three ways to add (tabs) */
.n-add-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .75rem; font-size: 1.05rem; }
.n-add-title .ico { color: var(--accent); }
.n-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .3rem; padding: .3rem;
          background: var(--surface-2); border-radius: var(--radius-sm); }
.n-tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 3.4rem;
         padding: .4rem .25rem; font: inherit; font-size: .8rem; font-weight: 600; line-height: 1.15; text-align: center;
         color: var(--muted); background: none; border: 0; border-radius: calc(var(--radius-sm) - 3px); cursor: pointer; }
.n-tab .ico { width: 1.25rem; height: 1.25rem; }
.n-tab[aria-selected=true] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.n-tab[aria-selected=true] .ico { color: var(--accent); }
.n-pane { margin-top: .9rem; }
.n-pane .notice-fields { margin-top: 0; }
@media (prefers-color-scheme: light) { .n-item.cat-invoice { --cat: #6d4fd1; } }
.fab-stack { position: fixed; z-index: 40; right: max(1rem, calc(50% - 280px + 1rem)); bottom: calc(5.4rem + env(safe-area-inset-bottom));
             display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.fab { width: 3.4rem; height: 3.4rem; border: 0; border-radius: 50%; background: var(--btn); color: #ffffff; display: grid;
       place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.fab .ico { width: 1.4rem; height: 1.4rem; transition: transform .15s; }
.fab.open .ico { transform: rotate(45deg); }
.fab-stack { align-items: flex-end; }
/* the sheet of the round button on Benachrichtigungen: three ways to add, one per row */
.sheet-title { margin: .1rem .2rem .7rem; font-weight: 700; font-size: 1.05rem; }
.add-options { display: grid; gap: .5rem; }
.add-option { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 4rem; padding: .7rem .8rem; font: inherit;
              text-align: left; color: var(--text); background: var(--surface-2); border: 1px solid var(--line);
              border-radius: 16px; cursor: pointer; }
.add-option:active { border-color: var(--accent); }
.add-option-ico { flex: none; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: 12px;
                  background: var(--surface); color: var(--accent); }
.add-option-ico .ico { width: 1.3rem; height: 1.3rem; }
.add-option-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.add-option-text strong { font-size: .95rem; }
.add-option-text small { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.add-option-go { flex: none; font-size: 1.4rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .fab .ico { transition: none; } }

/* ---- Reinigungskräfte: the host's settings and the cleaner's own plan (/plan/<code>) ------------------- */
.check-list { display: flex; flex-direction: column; gap: .35rem; }
.check-list label, label.check-line { display: flex; align-items: flex-start; gap: .6rem; margin: 0; font-weight: 500; font-size: .93rem; }
.check-list input, label.check-line input { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .1rem; accent-color: var(--accent); }
.cleaner-link { display: block; padding: .6rem .75rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: .85rem;
                overflow-wrap: anywhere; user-select: all; }
.cplan-months { display: flex; gap: .4rem; margin: .9rem 0 1rem; }
.cplan-months a { flex: 1; display: grid; place-items: center; min-height: 2.75rem; padding: 0 .4rem; border: 1px solid var(--line);
                 border-radius: 99px; color: var(--muted); font-size: .84rem; font-weight: 600; text-align: center; }
.cplan-months a.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.cplan-day { margin-bottom: 1rem; }
.cplan-day.past { opacity: .55; }
.cplan-day h2 { margin: 0 0 .45rem; font-size: 1.02rem; }
.cplan-day h2 small { font-size: .82rem; font-weight: 500; color: var(--muted); margin-left: .35rem; }
.cplan-item { background: var(--surface); border-radius: 16px; padding: .75rem .9rem; margin-bottom: .45rem; border-left: 4px solid var(--line); }
.cplan-item.sure { border-left-color: var(--ok); }
.cplan-item strong { display: block; font-size: 1rem; }
.cplan-item .cplan-info { font-size: .86rem; color: var(--muted); }
.cplan-item .cplan-info.sure { color: var(--ok); font-weight: 700; }
/* a note of the host: an amber box with a label, so it can't be overlooked */
.cplan-item .cplan-note { margin-top: .5rem; padding: .55rem .7rem; border-radius: 10px; font-size: .98rem; font-weight: 700;
                          background: var(--b-amber); color: var(--text); border-left: 4px solid var(--b-amber-soft); }
.cplan-note-label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
                    color: var(--b-amber-soft); margin-bottom: .1rem; }
.cplan-item.note-only { border-left-color: var(--b-amber-soft); }
.clean-notes { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.clean-note { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .35rem 0; font-size: .93rem; }
.clean-note form { margin: 0; flex: none; }
.clean-note-form { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }
.clean-note-form select { flex: 0 0 8.5rem; }
.clean-note-form input[type=text] { flex: 1 1 11rem; min-width: 0; }
.clean-note-form .btn { flex: 1 1 100%; }
/* The cleaner's calendar: a certain cleaning is a filled green day with a tick, an open day ("?") a
   dashed amber one -- told apart by colour, fill, border and sign. */
.ccal-card { background: var(--surface); border-radius: var(--radius); padding: .9rem; margin-bottom: .9rem; }
.ccal-card h2 { margin: 0 0 .45rem; font-size: 1.05rem; }
.ccal-card .chips { margin-bottom: .7rem; }
.ccal .cell { min-height: 3.1rem; }
.ccal .cell.checkout { background: color-mix(in srgb, var(--ok) 30%, transparent); box-shadow: inset 0 0 0 2px var(--ok); }
.ccal .cell.checkout .n { color: var(--text); font-weight: 800; }
.ccal .cell.open { background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1.5px dashed var(--warn); }
.ccal .cell.open .mk, .ccal-legend .sw.open { background: var(--warn); color: #1a1205; }
@media (prefers-color-scheme: light) { .ccal .cell.open .mk, .ccal-legend .sw.open { color: #ffffff; } }
.ccal .cell.stay { background: var(--surface-2); }
.ccal .cell.today { box-shadow: inset 0 0 0 2px var(--accent); }
.ccal .cell.checkout.today { box-shadow: inset 0 0 0 2px var(--ok), 0 0 0 2px var(--accent); }
.ccal .cell .nt { position: absolute; left: 4px; bottom: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.ccal-legend { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; }
.ccal-legend li { display: flex; align-items: center; gap: .55rem; }
.ccal-legend .sw { flex: none; width: 1.6rem; height: 1.6rem; font-size: .95rem; }
.chip.open { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
/* Reinigung calendar: days are buttons (tap to change the day or write a note); a dot marks a note,
   a corner marks a day the host changed by hand */
button.cell { display: block; width: 100%; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.cell .nt, .sw.note { background: var(--accent); }
.cell .nt { position: absolute; left: 5px; bottom: 5px; width: 7px; height: 7px; border-radius: 50%; }
.cell .tn + .nt { left: 22px; }
.sw.note { width: .6rem; height: .6rem; border-radius: 50%; margin: 0 .35rem; }
.cell.manual::after, .sw.manual::after { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 11px 11px 0;
                                         border-color: transparent var(--warn) transparent transparent; }
.sw.manual { position: relative; background: var(--surface-2); overflow: hidden; }
.sw.none { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.day-options { display: grid; gap: .45rem; margin-top: .8rem; }
.day-options .btn { margin: 0; display: flex; align-items: center; gap: .6rem; text-align: left; }
.day-note { margin-top: .8rem; padding-top: .2rem; border-top: 1px solid var(--line); }
@media print { .cell.manual::after, .cell .nt { display: none; } }
.ccal-legend .sw.cnote { width: .8rem; height: .8rem; margin: 0 .4rem; border-radius: 50%; background: var(--accent); }

/* "Read this page in English" for a visitor whose browser prefers the other language (seo.py) */
.lang-hint { margin: -.25rem 0 1rem; font-size: .9rem; text-align: right; }

/* ---- /admin: tabs, "needs attention", latest visitors ----------------------------------------------------- */
.adm-tabs { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: .4rem; padding-bottom: .4rem; }
.adm-tabs .pill { text-decoration: none; }
.adm-dot { display: inline-block; width: .5rem; height: .5rem; margin-left: .35rem; border-radius: 50%; background: #e5484d; }
.adm-tab h2:first-child { margin-top: .4rem; }
.adm-attention { margin-bottom: 1rem; }
.adm-attn-row { display: flex; justify-content: space-between; gap: .75rem; padding: .55rem 0; border-top: 1px solid var(--line);
                color: var(--text); text-decoration: none; font-size: .9rem; }
.adm-attn-row:first-of-type { border-top: 0; }
.adm-visit { display: flex; flex-wrap: wrap; gap: .15rem .5rem; align-items: baseline; padding: .5rem 0; border-bottom: 1px solid var(--line);
             font-size: .9rem; overflow-wrap: anywhere; }
.adm-visit .small { flex-basis: 100%; }

/* ---- Settings -> Check-in-Codes ------------------------------------------------------------------------ */
.ci-apt { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.ci-apt:first-of-type { border-top: 0; }
.ci-apt strong { flex-basis: 100%; }
.ci-label { display: inline-block; margin: .1rem .25rem 0 0; padding: .05rem .5rem; border-radius: 99px; background: var(--surface-2);
            font-weight: 600; }
.ci-pick { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.ci-pick input[type=checkbox] { margin-top: .9rem; flex: none; }
.ci-pick > span { flex: 1; min-width: 0; }
.ci-pick input[type=text] { margin: 0 0 .2rem; }
.ci-result { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.ci-mark { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700;
           color: #fff; background: #2f9e6e; }
.ci-missing .ci-mark, .ci-no_message .ci-mark, .ci-error .ci-mark { background: #e5484d; }
.ci-tpl { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; width: 100%; padding: .35rem 0 .2rem; }
.ci-tpl > span:first-child { flex-basis: 100%; overflow-wrap: anywhere; }
.ci-code { display: block; margin: .15rem 0 .3rem; font-variant-numeric: tabular-nums; }

/* ---- Rechnungen: the list of invoice reminders (date · who · open · delete) ------------------------------- */
.inv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; font-weight: 700; }
.inv-count { min-width: 1.6rem; height: 1.6rem; padding: 0 .45rem; border-radius: 99px; background: var(--surface-2);
             display: grid; place-items: center; font-size: .82rem; }
.inv-row { display: flex; align-items: center; gap: .4rem; border-top: 1px solid var(--line); }
.inv-row form { margin: 0; }
.inv-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding: .65rem 0;
            color: var(--text); text-decoration: none; }
.inv-date { flex: none; width: 3.6rem; display: flex; flex-direction: column; align-items: center; padding: .35rem 0;
            border-radius: 12px; background: var(--surface-2); line-height: 1.15; }
.inv-date b { font-size: .95rem; }
.inv-date small { font-size: .68rem; color: var(--muted); }
.inv-row.overdue .inv-date { background: rgba(229, 72, 77, .16); }
.inv-row.overdue .inv-date small { color: #ff8a8d; font-weight: 700; }
.inv-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.inv-text strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-text span { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-go { flex: none; font-size: 1.4rem; color: var(--muted); }
.inv-del { flex: none; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 0; border-radius: 50%;
           background: none; color: var(--muted); cursor: pointer; }
.inv-del .ico { width: 1.15rem; height: 1.15rem; }
.inv-del:active { background: var(--surface-2); color: #ff8a8d; }

/* "Save or share as PDF" (static/pdfshare.js) */
.pdf-btn { margin: 0 0 1.1rem; }
