
@font-face { font-family: Figtree; src: url(/fonts/figtree-latin.woff2) format("woff2"); font-weight: 300 900;
  font-display: swap; }
:root { --font: Figtree, system-ui, sans-serif; --font-display: var(--font); --radius: 18px; --radius-sm: 12px;
  --radius-button: 12px; --accent-text: #fff; }
:root{color-scheme:light;--bg:#f4f3ef;--surface:#fff;--field:#faf9f6;--text:#1c1b22;--muted:#5c5a66;--line:#e4e2dc;
--line-strong:#dcd9d1;--hover:#f4f3ef;--ok:#dcf5e3;--ok-text:#146c36;--bad:#fde4e1;--bad-text:#a3261b;
--shadow:0 8px 24px rgb(28 27 34 / 0.08);--home-soft:#ffe4dc;--home-ink:#a8341a;--home-strong:#c43d1d;--apps-soft:#d7f1ee;--apps-ink:#0b6463;--apps-strong:#0e7a78;--bot-soft:#d9f3e1;--bot-ink:#146c36;--bot-strong:#18803f;--system-soft:#e4e9ef;--system-ink:#3b4859;--system-strong:#4a5a70;--links-soft:#d7f1ee;--links-ink:#0b6463;--links-strong:#0e7a78;--forms-soft:#ffe6d5;--forms-ink:#a63a0c;--forms-strong:#c2410c;--rides-soft:#dfe8ff;--rides-ink:#1d47c4;--rides-strong:#2554d8;--attendees-soft:#ece2ff;--attendees-ink:#5b21b6;--attendees-strong:#6d3fd6;--schedule-soft:#ffe1ee;--schedule-ink:#a3195b;--schedule-strong:#c2185b;}
@media (prefers-color-scheme: dark){html.auto{color-scheme:dark;--bg:#141318;--surface:#1d1c22;--field:#18171c;--text:#ecebf0;--muted:#a3a0ad;--line:#2e2c35;
--line-strong:#3a3842;--hover:#26252c;--ok:#15301f;--ok-text:#8fdcaa;--bad:#3d1d1a;--bad-text:#ffaba2;
--shadow:0 8px 24px rgb(0 0 0 / 0.35);--home-soft:#3d2019;--home-ink:#ffab94;--home-strong:#c43d1d;--apps-soft:#123634;--apps-ink:#7fd8d3;--apps-strong:#0e7a78;--bot-soft:#15301f;--bot-ink:#8fdcaa;--bot-strong:#18803f;--system-soft:#262c35;--system-ink:#b8c4d4;--system-strong:#4a5a70;--links-soft:#123634;--links-ink:#7fd8d3;--links-strong:#0e7a78;--forms-soft:#3d2414;--forms-ink:#ffb27f;--forms-strong:#c2410c;--rides-soft:#1a2647;--rides-ink:#a5bcff;--rides-strong:#2554d8;--attendees-soft:#2a1f45;--attendees-ink:#c9b0ff;--attendees-strong:#6d3fd6;--schedule-soft:#401a2c;--schedule-ink:#ffa8cc;--schedule-strong:#c2185b;}}
html.dark{color-scheme:dark;--bg:#141318;--surface:#1d1c22;--field:#18171c;--text:#ecebf0;--muted:#a3a0ad;--line:#2e2c35;
--line-strong:#3a3842;--hover:#26252c;--ok:#15301f;--ok-text:#8fdcaa;--bad:#3d1d1a;--bad-text:#ffaba2;
--shadow:0 8px 24px rgb(0 0 0 / 0.35);--home-soft:#3d2019;--home-ink:#ffab94;--home-strong:#c43d1d;--apps-soft:#123634;--apps-ink:#7fd8d3;--apps-strong:#0e7a78;--bot-soft:#15301f;--bot-ink:#8fdcaa;--bot-strong:#18803f;--system-soft:#262c35;--system-ink:#b8c4d4;--system-strong:#4a5a70;--links-soft:#123634;--links-ink:#7fd8d3;--links-strong:#0e7a78;--forms-soft:#3d2414;--forms-ink:#ffb27f;--forms-strong:#c2410c;--rides-soft:#1a2647;--rides-ink:#a5bcff;--rides-strong:#2554d8;--attendees-soft:#2a1f45;--attendees-ink:#c9b0ff;--attendees-strong:#6d3fd6;--schedule-soft:#401a2c;--schedule-ink:#ffa8cc;--schedule-strong:#c2185b;}
.home, .guest{--soft:var(--home-soft);--ink:var(--home-ink);--strong:var(--home-strong);}
.group-apps{--soft:var(--apps-soft);--ink:var(--apps-ink);--strong:var(--apps-strong);}
.group-bot{--soft:var(--bot-soft);--ink:var(--bot-ink);--strong:var(--bot-strong);}
.group-system{--soft:var(--system-soft);--ink:var(--system-ink);--strong:var(--system-strong);}
.page-links{--soft:var(--links-soft);--ink:var(--links-ink);--strong:var(--links-strong);}
.page-forms{--soft:var(--forms-soft);--ink:var(--forms-ink);--strong:var(--forms-strong);}
.page-rides{--soft:var(--rides-soft);--ink:var(--rides-ink);--strong:var(--rides-strong);}
.page-attendees{--soft:var(--attendees-soft);--ink:var(--attendees-ink);--strong:var(--attendees-strong);}
.page-schedule{--soft:var(--schedule-soft);--ink:var(--schedule-ink);--strong:var(--schedule-strong);}
body { --accent: var(--strong); --link: var(--ink); --focus: color-mix(in srgb, var(--strong) 22%, transparent); }


* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--font-display); }
h2 { font-size: 1.2rem; font-weight: 700; margin: 0 0 14px; }
p { margin: 0 0 12px; }
section, .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px; }
section > :last-child, .card > :last-child { margin-bottom: 0; }
.muted, .hint { color: var(--muted); font-size: 0.9rem; }
.notice, .error { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius-sm);
  font-weight: 600; margin-bottom: 18px; }
.notice { background: var(--ok); color: var(--ok-text); }
.error { background: var(--bad); color: var(--bad-text); }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
tbody tr:last-child td { border-bottom: 0; }
tr.off td { color: var(--muted); }
th.cell, td.cell { text-align: center; }
td.cell { padding: 0; vertical-align: middle; }
td.cell label { display: flex; justify-content: center; padding: 10px 8px; cursor: pointer; }
table.members th:first-child, table.members td:first-child { position: sticky; left: 0; background: var(--surface); }
form.stack { display: grid; gap: 14px; max-width: 560px; }
form.wide { display: grid; gap: 14px; }
form.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
form.inline { display: inline; margin: 0; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
input, select, textarea { font: inherit; font-weight: 400; min-height: 44px; padding: 8px 14px; width: 100%;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--field); color: var(--text); }
textarea { min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--focus); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; accent-color: var(--accent); }
input[type=color] { width: 52px; padding: 4px; }
input[readonly], textarea[readonly] { font-family: ui-monospace, monospace; font-size: 0.85rem; }
fieldset { display: grid; gap: 12px; margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
legend { font-weight: 700; padding: 0 6px; }
button, .button { font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-button);
  background: var(--accent); color: var(--accent-text); cursor: pointer; text-decoration: none; }
button:hover, .button:hover { filter: brightness(1.08); }
button.secondary { background: var(--hover); color: var(--text); border: 1px solid var(--line-strong); }
button.link { background: none; color: var(--muted); padding: 0; min-height: 0; font-weight: 500; text-decoration: underline; }
details summary { cursor: pointer; font-weight: 600; }
pre { white-space: pre-wrap; background: var(--field); padding: 12px; border-radius: var(--radius-sm); font-size: 0.85rem; }
.qr { width: 220px; max-width: 100%; background: #fff; border-radius: 8px; padding: 8px; }
.header-preview { max-width: 100%; border-radius: var(--radius-sm); }
svg.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; flex: none; }
svg.paw { width: 22px; height: 22px; fill: currentColor; }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0;
  border-radius: 12px; background: transparent; color: var(--muted); border: 0; }
.icon-button:hover { background: var(--hover); color: var(--text); filter: none; }
footer { display: flex; justify-content: center; gap: 16px; padding: 24px 16px; font-size: 0.9rem; }
footer a { color: var(--muted); }
.guest-main { max-width: 520px; margin: 0 auto; padding: 48px 16px 0; }
.guest-main .brand { padding: 0; margin-bottom: 28px; }
.guest-main h1 { font-size: 2rem; margin: 0 0 16px; }


.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; border: 0; padding: 0; }
.choices legend { padding: 0; margin-bottom: 10px; font-size: 1.05rem; }
.choice { display: flex; flex-direction: column; gap: 10px; padding: 14px; cursor: pointer; font-weight: 500;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.choice-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.mini { display: grid; gap: 5px; height: 76px; padding: 6px; border-radius: 10px; overflow: hidden; }
.mini i { display: block; border-radius: 4px; }
.mini-fields { background: #f4f3ef; border: 1px solid #e4e2dc; grid-template-columns: 28% 1fr 1fr; grid-template-rows: 1fr 1fr; }
.mini-fields i:nth-child(1) { grid-row: 1 / 3; background: #fff; }
.mini-fields i:nth-child(2) { background: #d7f1ee; }
.mini-fields i:nth-child(3) { background: #ffe6d5; }
.mini-fields i:nth-child(4) { background: #ece2ff; }
.mini-night { background: #121019; border: 1px solid #2f2a42; grid-template-columns: repeat(3, 1fr); grid-template-rows: 10px 1fr; }
.mini-night i:nth-child(1) { grid-column: 1 / -1; background: #2a2539; }
.mini-night i:nth-child(2) { background: #c8f560; }
.mini-night i:nth-child(3) { background: #ff7eb6; }
.mini-night i:nth-child(4) { background: #74e4f7; }
.mini-auto { background: linear-gradient(90deg, #f4f3ef 50%, #141318 50%); border: 1px solid var(--line-strong); }
.mini-light { background: #f4f3ef; border: 1px solid #e4e2dc; }
.mini-dark { background: #141318; border: 1px solid #2e2c35; }
.mini-auto, .mini-light, .mini-dark { height: 44px; }


.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  padding: 20px 14px; background: var(--surface); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; color: var(--text);
  text-decoration: none; font-weight: 800; font-size: 18px; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: #ff6b4a; color: #fff;
  display: grid; place-items: center; flex: none; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-heading { margin: 14px 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); }
.nav-link { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-link:hover { background: var(--hover); }
.nav-link[aria-current] { background: var(--soft); color: var(--ink); font-weight: 700; }
.chip { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: var(--soft); color: var(--ink); }
.chip svg.icon { width: 18px; height: 18px; }
.nav-link[aria-current] .chip { background: var(--strong); color: #fff; }
.chip.big { width: 48px; height: 48px; border-radius: 14px; }
.chip.big svg.icon { width: 24px; height: 24px; }
.user-card { margin-top: auto; display: flex; align-items: center; gap: 6px; padding: 10px; border-radius: 14px;
  background: var(--hover); }
.user-card .icon-button:hover { background: var(--surface); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: var(--surface);
  display: grid; place-items: center; font-weight: 700; flex: none; }
.who { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; margin-left: 4px; }
.who strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who span { font-size: 13px; color: var(--muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.content { width: 100%; max-width: 1040px; margin: 0 auto; padding: 36px 40px 24px; flex: 1; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.page-head h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.page-head .chip.big { width: 56px; height: 56px; border-radius: 16px; background: var(--strong); color: #fff; }
.page-head .intro { margin: 4px 0 0; color: var(--muted); }
.page-head.plain h1 { font-size: 40px; }
.page-head.plain .intro { font-size: 17px; }
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .side { position: static; height: auto; padding: 12px 16px; gap: 10px; border-right: 0;
    border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  .side-nav { flex-direction: row; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .nav-heading { display: none; }
  .nav-link { flex: none; padding: 0 12px 0 8px; background: var(--hover); }
  .user-card { margin-top: 0; }
  .content { padding: 24px 16px; }
  .page-head h1 { font-size: 28px; }
  .page-head.plain h1 { font-size: 32px; }
}


.home-group { margin-bottom: 30px; }
.home-group h2 { font-family: var(--font); font-size: 15px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 14px; padding: 20px; min-height: 176px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.tile:hover, .strip:hover, .chip-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.tile-text { display: flex; flex-direction: column; gap: 4px; }
.tile-text strong { font-size: 18px; }
.tile-text .about { font-size: 14px; color: var(--muted); line-height: 1.45; }
.go { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.go svg.icon { width: 18px; height: 18px; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.chip-link { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 16px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.chip-link .chip { width: 36px; height: 36px; border-radius: 10px; }
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 18px 20px; margin-bottom: 12px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text);
  text-decoration: none; }
.strip .tile-text { flex: 1 1 240px; }
.strip .button { background: var(--text); color: var(--surface); }


:root{color-scheme:light;--kind-male-bg:#dfe8ff;--kind-male-ink:#1d47c4;--kind-male-line:#2554d8;
--kind-female-bg:#ffe6d5;--kind-female-ink:#a63a0c;--kind-female-line:#c2410c;
--kind-mixed-bg:#d7f1ee;--kind-mixed-ink:#0b6463;--kind-mixed-line:#0e7a78;
--kind-none-bg:var(--hover);--kind-none-ink:var(--muted);--kind-none-line:var(--line-strong);}
@media (prefers-color-scheme: dark){html.auto{color-scheme:dark;--kind-male-bg:#1a2647;--kind-male-ink:#a5bcff;--kind-male-line:#5b7fe8;
--kind-female-bg:#3d2414;--kind-female-ink:#ffb27f;--kind-female-line:#e0703a;
--kind-mixed-bg:#123634;--kind-mixed-ink:#7fd8d3;--kind-mixed-line:#2fa39e;
--kind-none-bg:var(--hover);--kind-none-ink:var(--muted);--kind-none-line:var(--line-strong);}}
html.dark{color-scheme:dark;--kind-male-bg:#1a2647;--kind-male-ink:#a5bcff;--kind-male-line:#5b7fe8;
--kind-female-bg:#3d2414;--kind-female-ink:#ffb27f;--kind-female-line:#e0703a;
--kind-mixed-bg:#123634;--kind-mixed-ink:#7fd8d3;--kind-mixed-line:#2fa39e;
--kind-none-bg:var(--hover);--kind-none-ink:var(--muted);--kind-none-line:var(--line-strong);}
.kind-male{--kind-bg:var(--kind-male-bg);--kind-ink:var(--kind-male-ink);--kind-line:var(--kind-male-line);}
.kind-female{--kind-bg:var(--kind-female-bg);--kind-ink:var(--kind-female-ink);--kind-line:var(--kind-female-line);}
.kind-mixed{--kind-bg:var(--kind-mixed-bg);--kind-ink:var(--kind-mixed-ink);--kind-line:var(--kind-mixed-line);}
.kind-none{--kind-bg:var(--kind-none-bg);--kind-ink:var(--kind-none-ink);--kind-line:var(--kind-none-line);}

.content:has(.room-plan) { max-width: 1480px; }
.room-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--line-strong); }
.room-tabs a { padding: 10px 16px; margin-bottom: -1px; color: var(--muted); font-weight: 600; text-decoration: none;
  border-bottom: 3px solid transparent; }
.room-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.room-plan { display: grid; gap: 18px; }
.room-plan .notice { margin: 0; }
.room-plan section { margin: 0; }
.room-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.stat { display: grid; gap: 10px; align-content: start; padding: 16px 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stat p, .stat ul { margin: 0; }
.stat-head { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 0.85rem;
  font-weight: 600; }
.stat .stat-value { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.stat .stat-value small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.stat progress { width: 100%; height: 10px; accent-color: var(--accent); }
.kinds, .attention { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; }
.kinds li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.attention li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.attention .count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px;
  border-radius: 99px; background: var(--hover); font-size: 0.8rem; flex: none; }
.attention .gone { color: var(--bad-text); }
.attention .gone .count { background: var(--bad); }
.attention .gone a { color: inherit; }
.attention .count.pending { background: none; border: 1.5px dashed var(--muted); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 0.75rem;
  font-weight: 700; background: var(--hover); color: var(--muted); white-space: nowrap; }
.tag.kind { background: var(--kind-bg); color: var(--kind-ink); }
.tag.fixed { background: var(--text); color: var(--surface); }
.tag svg.icon { width: 13px; height: 13px; stroke-width: 2.5; }
.house { display: grid; gap: 10px; padding: 16px 18px; }
.house-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.house-head h2 { margin: 0; font-size: 1rem; }
.house-floor { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.house-label { font-weight: 700; font-size: 0.85rem; color: var(--muted); }
.house-rooms { display: flex; flex-wrap: wrap; gap: 6px; }
.house-room { display: grid; gap: 4px; min-width: 46px; padding: 5px 8px; border-radius: 8px; color: var(--text);
  text-decoration: none; background: var(--field); border: 1px solid var(--line); border-top: 3px solid var(--kind-line); }
.house-room:hover { background: var(--hover); }
.house-room.locked { box-shadow: inset 0 0 0 1.5px var(--text); }
.house-room strong { font-size: 0.8rem; }
.beds { display: flex; flex-wrap: wrap; gap: 3px; max-width: 64px; }
.beds i { width: 8px; height: 8px; border-radius: 99px; border: 1.5px solid var(--muted); }
.beds i.taken { background: var(--text); border-color: var(--text); }
.beds i.gone { background: var(--bad-text); border-color: var(--bad-text); }
.plan-layout { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 20px; align-items: start; }
.pile { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; display: grid; gap: 12px;
  padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pile h2, .pile p, .pile form { margin: 0; }
.pile h2 { font-size: 1rem; }
.pile-tools { display: grid; gap: 8px; }
.pile-tools[hidden] { display: none; }
.pile .search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--field); color: var(--muted); }
.pile .search input { border: 0; padding: 0; background: none; box-shadow: none; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
button.filter { min-height: 34px; padding: 0 12px; border-radius: 99px; font-size: 0.8rem; font-weight: 600;
  background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); }
button.filter[aria-pressed=true] { background: var(--text); color: var(--surface); border-color: var(--text); }
.people, .guests { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.people li[hidden] { display: none; }
.floors { display: grid; gap: 24px; min-width: 0; }
.floor-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px; padding: 0 4px; }
.floor-head h2 { margin: 0; }
.rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-items: start; }
.room { display: grid; gap: 8px; padding: 10px 12px 12px; background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--kind-line); border-radius: var(--radius-sm); scroll-margin-top: 16px; }
.room.locked { border-color: var(--text); border-width: 2px 2px 2px; border-top: 4px solid var(--kind-line); }
.room header { display: flex; align-items: center; gap: 4px; }
.room .number { font-size: 1.15rem; font-weight: 800; margin-right: auto; }
.room .count { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.room form.lock { margin: 0; }
.room .icon-button { width: 34px; height: 34px; border-radius: 8px; }
.room .icon-button svg.icon { width: 17px; height: 17px; }
.room .icon-button.on { background: var(--text); color: var(--surface); }
.room .tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; }
.room .hint { margin: 0; font-size: 0.8rem; }
.free-beds { display: grid; place-items: center; min-height: 38px; margin: 0; padding: 0 8px; border-radius: 10px;
  border: 1.5px dashed var(--line-strong); color: var(--muted); font-size: 0.85rem; font-weight: 600; text-align: center; }
.free-beds form, .free-beds button { width: 100%; min-height: 36px; }
.person { display: grid; gap: 2px; padding: 6px 10px; border-radius: 10px; background: var(--field);
  border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 0.9rem; overflow-wrap: anywhere; }
a.person { cursor: grab; }
a.person:hover { border-color: var(--line-strong); background: var(--hover); }
.person-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.person-line small { color: var(--muted); font-size: 0.75rem; }
.person .state { margin-left: auto; padding: 0 6px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; }
.person .wish { color: var(--link); font-size: 0.78rem; font-style: italic; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.person.pending { border: 1.5px dashed var(--muted); background: var(--surface); }
.person.pending .state { border: 1px dashed var(--muted); color: var(--muted); }
.person.gone { background: var(--bad); border-color: transparent; color: var(--bad-text); }
.person.gone strong { text-decoration: line-through; }
.person.gone .state { background: var(--surface); color: var(--bad-text); }
.person.picked { outline: 3px solid var(--accent); outline-offset: 1px; }
.dragging [data-action] { transition: outline-color 0.1s; }
[data-action].over { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 900px) {
  .plan-layout { grid-template-columns: minmax(0, 1fr); }
  .pile { position: static; max-height: none; }
  .house-floor { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}


:root{color-scheme:light;--swatch-orange:#ff971a;--swatch-blue:#2ea3f2;--swatch-purple:#8a5cf0;
--swatch-green:#22a565;--swatch-pink:#e0487f;--swatch-grey:#8a8694;}
@media (prefers-color-scheme: dark){html.auto{color-scheme:dark;--swatch-orange:#ffb05a;--swatch-blue:#8fd0fb;--swatch-purple:#c7b2ff;
--swatch-green:#86dfae;--swatch-pink:#ff9ec6;--swatch-grey:#bdb8c8;}}
html.dark{color-scheme:dark;--swatch-orange:#ffb05a;--swatch-blue:#8fd0fb;--swatch-purple:#c7b2ff;
--swatch-green:#86dfae;--swatch-pink:#ff9ec6;--swatch-grey:#bdb8c8;}
.swatch-orange{background:var(--swatch-orange);}
.swatch-blue{background:var(--swatch-blue);}
.swatch-purple{background:var(--swatch-purple);}
.swatch-green{background:var(--swatch-green);}
.swatch-pink{background:var(--swatch-pink);}
.swatch-grey{background:var(--swatch-grey);}

.content:has(.schedule-editor) { max-width: 1320px; }
.schedule-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 20px; border-bottom: 1px solid var(--line-strong); }
.schedule-tabs a { padding: 10px 16px; margin-bottom: -1px; color: var(--muted); font-weight: 600; text-decoration: none;
  border-bottom: 3px solid transparent; }
.schedule-tabs a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.schedule-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 18px; }
.schedule-days { display: flex; flex-wrap: wrap; gap: 6px; }
.schedule-days a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600;
  font-size: 0.9rem; text-decoration: none; }
.schedule-days a:hover { background: var(--hover); }
.schedule-days a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.schedule-days span { min-width: 22px; padding: 0 6px; border-radius: 99px; background: var(--hover); color: var(--muted);
  font-size: 0.75rem; text-align: center; }
.schedule-days a[aria-current] span { background: color-mix(in srgb, var(--accent-text) 25%, transparent);
  color: inherit; }
.schedule-editor { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 20px;
  align-items: start; }
.schedule-editor .card { margin: 0; }
.schedule-editor > div { display: grid; gap: 20px; min-width: 0; }
.schedule-items { display: grid; gap: 6px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.schedule-items h2 { margin: 0 0 6px; font-size: 1rem; }
.schedule-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--text);
  text-decoration: none; }
.schedule-item:hover { background: var(--hover); }
.schedule-item[aria-current] { outline: 2px solid var(--accent); outline-offset: -1px; background: var(--hover); }
.schedule-time { font-weight: 700; font-size: 0.85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.schedule-what { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.schedule-what span { color: var(--muted); font-size: 0.8rem; }
.schedule-state { padding: 1px 8px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; white-space: nowrap; }
.schedule-state.live { background: var(--ok); color: var(--ok-text); }
.schedule-state.draft { border: 1px dashed var(--muted); color: var(--muted); }
.schedule-form fieldset { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.schedule-form fieldset:disabled { opacity: 0.7; }
.schedule-two, .schedule-three { display: grid; gap: 12px; }
.schedule-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.schedule-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.schedule-buttons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.schedule-grid .card { margin: 0; }
.schedule-grid + .card { margin-top: 20px; }
.schedule-option { display: grid; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.schedule-option:first-of-type { border-top: 0; }
.schedule-swatch { width: 28px; height: 8px; border-radius: 99px; }
@media (max-width: 900px) {
  .schedule-editor, .schedule-grid { grid-template-columns: minmax(0, 1fr); }
  .schedule-items { position: static; max-height: none; }
}
@media (max-width: 560px) {
  .schedule-two, .schedule-three { grid-template-columns: minmax(0, 1fr); }
}
