:root {
  color-scheme: light;
  --paper: #f3f7f6;
  --white: #fff;
  --ink: #142d29;
  --muted: #4a625c;
  --line: #cfded9;
  --green: #1c5748;
  --light-green: #e2f2e8;
  --service: #206081;
  --kitchen: #173d6b;
  --light-blue: #e7f2f8;
  --violet: #5b3977;
  --light-violet: #f1eaf8;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #2883aa; outline-offset: 2px; }
a { color: var(--kitchen); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.65rem, 6vw, 2.15rem); letter-spacing: -.035em; line-height: 1.12; }
h2 { font-size: 1.18rem; letter-spacing: -.02em; }
h3 { font-size: 1rem; }
small { color: var(--muted); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) max(16px, calc((100% - 760px) / 2)) 10px; background: var(--ink); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { flex: none; border-radius: 9px; }
.brand strong, .brand small { display: block; }
.brand small { color: #cce6df; overflow-wrap: anywhere; }
.plain { color: inherit; background: transparent; border: 1px solid #74988d; border-radius: 9px; padding: 8px 12px; min-height: 44px; }
.screen { max-width: 760px; margin: 0 auto; padding: 24px 16px calc(96px + env(safe-area-inset-bottom)); min-height: 310px; }
.heading { margin-bottom: 17px; }
.heading p { color: var(--muted); line-height: 1.42; margin-top: 5px; }
.narrow { max-width: 460px; margin-inline: auto; }
.card { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 15px; margin-top: 13px; }
.card > :not(:first-child) { margin-top: 8px; }
.shift { background: var(--light-blue); border-color: #c7dce7; }
.shift.cleaning { background: var(--light-violet); border-color: #ddcdea; color: var(--violet); }
.shift.free { background: var(--light-green); color: var(--green); border-color: #c7e1d1; }
.times { display: grid; gap: 7px; margin-block: 0; padding: 0; list-style: none; }
.times li { display: grid; gap: 3px; }
.hour { font-weight: 750; font-size: 1.35rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.row .hour { font-size: 1.05rem; }
.post { font-size: .9rem; font-weight: 650; color: var(--service); }
.post.kitchen { color: var(--kitchen); }
.change { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding-top: 8px; border-top: 1px solid var(--line); }
.change span { font-size: .86rem; font-weight: 650; }
.change .before { flex-basis: 100%; }
.stack { display: grid; gap: 12px; }
.form { display: grid; gap: 13px; }
.form label { display: grid; gap: 4px; font-weight: 620; }
.field { color: inherit; width: 100%; min-width: 0; min-height: 44px; padding: 9px 10px; border-radius: 8px; border: 1px solid #aabfb7; background: #fff; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 3px; color: var(--ink); min-height: 44px; padding: 8px 13px; border-radius: 9px; border: 1px solid #afc4bc; background: var(--white); text-decoration: none; font-weight: 620; }
.button.primary { border-color: var(--green); background: var(--green); color: #fff; }
.button.warning { color: #852f2b; }
.row { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: space-between; }
.row-start { justify-content: flex-start; }
.tabs { position: fixed; z-index: 2; inset: auto 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; background: var(--white); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; padding: 5px 6px calc(5px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 25px #142d2910; }
.tabs button { background: transparent; border: 0; border-radius: 10px; color: var(--muted); font-size: .92rem; padding: 6px 3px; min-height: 47px; }
.tabs button[aria-current="page"] { background: var(--light-green); color: var(--ink); font-weight: 700; }
@media (max-width: 380px) { .tabs button { font-size: .82rem; padding-inline: 1px; } }
.check { display: flex; align-items: flex-start; gap: 9px; min-height: 44px; padding: 9px 0; border-top: 1px solid var(--line); line-height: 1.36; overflow-wrap: anywhere; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--green); }
.check:has(input:checked) { color: var(--green); }
.task-time { display: block; margin-top: 2px; }
.task-overdue { color: #8e361e; font-weight: 650; }
.task-info { margin: 0 0 8px 27px; }
.task-info summary { min-height: 38px; padding: 7px 0; color: var(--service); }
.task-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.task-photo { display: block; max-width: 100%; max-height: 460px; object-fit: contain; margin: 7px 0; border-radius: 7px; }
.today-task-group { border-top: 1px solid var(--line); padding-top: 4px; }
.today-task-group summary { padding: 8px 0; min-height: 36px; font-weight: 650; }
.notes, .list { list-style: none; margin: 0; padding: 0; }
.notes li + li { margin-top: 6px; }
.list > li { padding: 9px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.week-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; align-items: center; text-align: center; margin-bottom: 12px; }
.week-controls button { font-size: 1.25rem; }
.team-department h2 { color: var(--service); }
.team-department.kitchen h2 { color: var(--kitchen); }
.team-department ul { list-style: none; padding: 0; margin: 6px 0 0; }
.team-department li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 6px; border-top: 1px solid var(--line); min-height: 43px; }
.team-department li.own { background: var(--light-green); }
.team-department li.housekeeping { background: var(--light-violet); }
.team-department li.team-contact { border-radius: 6px; background: #e4f1f7; border-top-color: transparent; }
.team-department.kitchen li.team-contact { background: #e7edf8; }
.team-department li.team-contact.housekeeping { background: var(--light-violet); }
.team-department .team-contact-label, .team-contact-title { color: var(--service); font-size: .78rem; }
.team-department.kitchen .team-contact-label, .team-department.kitchen .team-contact-title { color: var(--kitchen); }
.team-department .team-contact-label { font-weight: 650; }
.team-person-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 5px; }
.team-contact-title { overflow-wrap: anywhere; }
.team-person strong { overflow-wrap: anywhere; }
.team-person small { display: block; }
.team-times { display: grid; text-align: end; font-size: .9rem; font-variant-numeric: tabular-nums; }
.push-settings button { margin-top: 7px; }
.tag { display: inline-block; padding: 3px 7px; border-radius: 5px; background: var(--light-blue); color: var(--kitchen); font-size: .82rem; font-weight: 650; }
.tag.accepted { background: var(--light-green); color: var(--green); }
.tag.declined { background: #f7e9e8; color: #852f2b; }
.status { position: fixed; z-index: 3; left: max(12px, calc((100% - 720px) / 2)); right: max(12px, calc((100% - 720px) / 2)); bottom: calc(64px + env(safe-area-inset-bottom)); background: var(--ink); color: white; padding: 11px 14px; border-radius: 10px; box-shadow: 0 8px 24px #142d2920; }
.status.error { background: #7a2726; }
.break { overflow-wrap: anywhere; }
.overview { margin-block: 21px; }
details > summary { cursor: pointer; font-weight: 650; padding-block: 7px; }
@media (min-width: 540px) { .row-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } }
