/* IMA Schelling Group look & feel – colours/type taken from imaschelling.com (Lato, logo red #e53534, dark #1a171b) */
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap;
  src: url("fonts/lato-Regular.woff2") format("woff2"), url("https://www.imaschelling.com/_assets/vite/assets/lato-v17-latin-ext_latin-regular-GAITDyQJ.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap;
  src: url("fonts/lato-Bold.woff2") format("woff2"), url("https://www.imaschelling.com/_assets/vite/assets/lato-v17-latin-ext_latin-700-C_mCopxe.woff2") format("woff2"); }

:root {
  --bg: #ffffff; --soft: #f6f7f9; --card: #ffffff;
  --ink: #2b2b2e; --navy: #1a171b; --muted: #65666b;
  --teal: #333333; --pink: #da2e30; --pink-bright: #e53534; --pink-tint: #fdeaea; --green: #1f9d6b;
  --line: #c8c7cb; --line-soft: #e9ecef;
  --radius: 10px; --pill: 50rem;
  --shadow: 0 0 25px 0 rgba(0, 0, 0, .12);
  --head: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--body); }
body { user-select: none; -webkit-user-select: none;
  background: radial-gradient(900px 500px at 8% -5%, var(--pink-tint), transparent 70%), var(--bg) no-repeat; }
input, textarea { user-select: text; -webkit-user-select: text; }
h1, h2, h3 { font-family: var(--head); color: var(--navy); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px 48px; }

/* header: white bar, logo left, hairline */
header.top { display: flex; align-items: center; gap: 16px; padding: 0 24px; min-height: 72px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(6px); }
header.top .logo { height: 52px; width: auto; display: block; }
header.top h1 { font-size: 1.05rem; margin: 0 0 0 8px; padding-left: 16px; border-left: 1px solid var(--line); flex: 1; font-weight: 700; color: var(--navy); }
.clock { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; line-height: 1.2; font-size: .85rem; }
.clock.tappable { cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; }
.clock b { display: block; font-family: var(--head); font-size: 1.3rem; color: var(--navy); }
.lang { display: flex; border: 1px solid var(--line); border-radius: var(--pill); overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--teal); padding: 9px 14px; font: 700 .85rem var(--body); min-height: 44px; }
.lang button.on { background: var(--teal); color: #fff; }

button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }   /* the hidden attribute must win over display rules such as .btn */
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; border: 2px solid var(--teal); background: #fff; color: var(--teal); border-radius: var(--pill); padding: 10px 26px; min-height: 48px; font-weight: 500; transition: all .2s ease-in-out; }
.btn:hover { background: var(--teal); color: #fff; }
.btn.primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.primary:hover { background: var(--pink-bright); border-color: var(--pink-bright); }
.btn.ok { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.ok:hover { background: #033b4e; }
.btn.danger { border-color: var(--line); color: var(--pink); }
.btn.danger:hover { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.big { min-height: 60px; font-size: 1.15rem; padding: 12px 36px; font-weight: 600; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; }
.iconbtn { border: 0; background: transparent; color: var(--teal); font-size: 1.7rem; min-width: 48px; min-height: 48px; border-radius: var(--pill); }

.eyebrow { color: var(--pink-bright); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .85rem; margin: 0 0 10px; }
.center { text-align: center; padding: 10vh 20px 0; }
.center h2 { font-size: 2.1rem; line-height: 1.15; margin: 0 0 10px; }
.center p { color: var(--muted); margin: 0 0 28px; }

.sites { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding-top: 32px; }
.sites h2 { grid-column: 1 / -1; text-align: left; margin: 0; font-size: 2.2rem; line-height: 1.15; }
.sites h2::before { content: attr(data-eyebrow); display: block; font: 600 .85rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--pink-bright); margin-bottom: 8px; }
.site-tile { border: 1px solid var(--line-soft); border-radius: var(--radius); min-height: 26vh; background: var(--card); color: var(--navy); box-shadow: var(--shadow); font: 700 2rem var(--head); position: relative; transition: all .2s ease-in-out; }
.site-tile::after { content: "›"; position: absolute; right: 24px; bottom: 14px; color: var(--pink); font-size: 2.4rem; line-height: 1; }
.site-tile:hover { border-color: var(--pink); }
.site-tile:active { transform: scale(.98); }

.section-title { margin: 30px 0 12px; font: 600 .85rem var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--pink-bright); }
.list { display: grid; gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.06); padding: 14px 20px; display: flex; align-items: center; gap: 16px; }
.card .who { flex: 1; min-width: 0; }
.card .name { font: 700 1.2rem var(--head); color: var(--navy); overflow: hidden; text-overflow: ellipsis; }
.card .meta { color: var(--muted); font-size: .9rem; }
.card .time { font: 700 1.1rem var(--head); font-variant-numeric: tabular-nums; color: var(--teal); min-width: 74px; text-align: right; }
.card.present { border-left: 6px solid var(--green); }
.card.done { opacity: .7; padding: 10px 20px; box-shadow: none; }
.card.col { flex-direction: column; align-items: stretch; }
.tag { display: inline-block; font-size: .72rem; border: 1px solid var(--pink); color: var(--pink); border-radius: var(--pill); padding: 0 9px; margin-left: 8px; vertical-align: middle; font-weight: 600; }
.empty { color: var(--muted); padding: 10px 4px; }
.banner { background: var(--pink-tint); color: var(--pink); border-radius: var(--radius); padding: 10px 16px; margin-top: 16px; font-weight: 500; }
.fab { margin-top: 26px; width: 100%; }

#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 14px 22px; border-radius: var(--pill); display: none; align-items: center; gap: 16px; z-index: 50; box-shadow: var(--shadow); max-width: 90vw; font-weight: 500; }
#toast.show { display: flex; }
#toast button { background: transparent; border: 1px solid #fff; color: #fff; border-radius: var(--pill); padding: 6px 16px; font-weight: 600; min-height: 40px; }

dialog { border: 0; border-radius: var(--radius); padding: 28px; width: min(560px, 92vw); background: #fff; color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); }
dialog::backdrop { background: rgba(9, 34, 51, .55); }
dialog h2 { margin: 0 0 14px; font-size: 1.5rem; }
label { display: block; font-weight: 600; margin: 14px 0 6px; font-size: .9rem; color: var(--navy); }
input, select { width: 100%; font: inherit; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 52px; }
input:focus, select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: var(--teal); }
.actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.err { color: var(--pink); min-height: 1.4em; margin-top: 10px; font-weight: 500; }
.ok-msg { color: var(--green); min-height: 1.4em; margin-top: 10px; font-weight: 500; }

/* admin */
.tabs { display: flex; gap: 8px; margin: 22px 0; border-bottom: 1px solid var(--line-soft); }
.tabs button { border: 0; background: transparent; color: var(--teal); padding: 12px 20px; font: 600 .95rem var(--body); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--pink); border-bottom-color: var(--pink); }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; }
.filters label { margin: 0 0 4px; }
.presets { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.presets .btn { min-height: 42px; padding: 6px 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 20px 0; }
.stat { background: #fff; border: 1px solid var(--line-soft); border-top: 3px solid var(--pink); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.05); padding: 12px 16px; }
.stat b { display: block; font: 700 1.7rem var(--head); color: var(--navy); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .8rem; }
.tablewrap { overflow: hidden; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { padding: 8px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line-soft); overflow-wrap: anywhere; }
td.nw, th.nw { white-space: nowrap; overflow-wrap: normal; }
td small { display: block; color: var(--muted); font-size: .78rem; }
td .btn { margin-bottom: 4px; }
th { color: var(--teal); font: 700 .75rem var(--body); text-transform: uppercase; letter-spacing: .06em; background: var(--soft); }
tr:last-child td { border-bottom: 0; }

td select { min-height: 40px; padding: 6px 10px; width: auto; }
td .btn { min-height: 38px; padding: 4px 16px; margin-right: 4px; font-size: .85rem; }
.pill { border-radius: var(--pill); padding: 2px 12px; font-size: .78rem; font-weight: 700; background: var(--soft); border: 1px solid var(--line-soft); color: var(--teal); }
.pill.checked_in { color: #fff; background: var(--green); border-color: var(--green); }
.pill.no_logoff, .pill.no_show { color: var(--pink); background: var(--pink-tint); border-color: var(--pink-tint); }
.pill.cancelled { color: var(--muted); }
.login-form, .reg-form { max-width: 420px; margin: 0 auto; text-align: left; }
.login-actions { display: grid; gap: 12px; margin-top: 18px; }
.inline-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; }

@media (max-width: 700px) {
  .sites { grid-template-columns: 1fr; } .site-tile { min-height: 18vh; }
  header.top h1 { display: none; } .clock { display: none; }
}

.sigpad { display: block; width: 100%; height: 220px; background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); touch-action: none; cursor: crosshair; }
#w-sig { height: 160px; }
.sigwrap { position: relative; }
.sighint { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; color: var(--line); font: 600 1.3rem var(--head); pointer-events: none; }
.sig-notice { margin: 0 0 12px; }
#w-sigbox { margin-top: 6px; } #w-sigbox .btn { margin-top: 8px; min-height: 40px; padding: 4px 18px; }
.sigimg { width: 100%; border: 1px solid var(--line-soft); border-radius: var(--radius); background: #fff; }

.sigthumb { display: block; height: 38px; width: auto; max-width: 120px; object-fit: contain; background: #fff; border: 1px solid var(--line-soft); border-radius: 6px; cursor: zoom-in; }
@media print { .exportbox, header.top, .tabs, .filters, .presets, .lang, #logout, .sigthumb + * { display: none !important; } body { background: #fff; } .tablewrap { box-shadow: none; border: 0; } }

.wrap.wide { max-width: 1500px; }

.exportbox { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 14px 0 0; padding: 12px 16px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.exportbox > b { align-self: center; color: var(--navy); font-family: var(--head); }
.exportbox label { margin: 0 0 4px; }
.exportbox .btn { min-height: 42px; padding: 6px 20px; }
.exportbox .meta { flex: 1 1 220px; align-self: center; margin: 0; font-size: .8rem; }
@media (max-width: 900px) { table { font-size: .82rem; } th, td { padding: 6px 6px; } .sigthumb { height: 30px; max-width: 90px; } th { letter-spacing: 0; font-size: .68rem; } }
html, body { overflow-x: hidden; }
.pill { white-space: nowrap; display: inline-block; }
td .btn { white-space: nowrap; padding: 4px 12px; }
th { overflow-wrap: normal; hyphens: none; }

.consent { display: flex; gap: 12px; align-items: center; margin-top: 14px; font-weight: 600; color: var(--navy); }
.consent input { width: 28px; height: 28px; min-height: 0; flex: none; accent-color: var(--pink); }
.consent-text { white-space: pre-wrap; max-height: 28vh; overflow-y: auto; padding: 12px 14px; background: var(--soft); border-radius: var(--radius); color: var(--navy); }
textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); resize: vertical; }
.presets .spacer { flex: 1; }

/* sign-in dialogs: text left, form right (no scrolling needed to read the text) */
dialog.wide { width: min(1180px, 96vw); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.split .col-text .sig-notice { font-size: 1.05rem; }
.split .consent-text { max-height: 78vh; }
.split .col-text .consent { margin-top: 18px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 8px; } .split .consent-text { max-height: 30vh; } }
.split:has(.col-text[hidden]) { grid-template-columns: 1fr; }

/* emergency exit plan */
.eplan { margin: 0 0 14px; }
.eplan-img { display: block; width: 100%; max-height: 28vh; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); cursor: zoom-in; }
.eplan small { display: block; margin: 4px 0 0; }
dialog.zoom { width: 96vw; max-width: 96vw; padding: 14px; }
dialog.zoom img { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
.eplan-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.eplan-admin .card { display: block; }
.eplan-admin img { display: block; width: 100%; max-height: 220px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0; }
#sign .sigwrap { margin-top: 14px; }

/* three columns: text | emergency plan | form; one checkbox below text + plan */
dialog.wide { width: min(1500px, 97vw); }
.split3 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-areas: "text plan form" "accept accept form"; gap: 20px 28px; align-items: start; }
.split3.noplan { grid-template-columns: 1fr 1fr; grid-template-areas: "text form" "accept form"; }
.split3 .col-text { grid-area: text; } .split3 .col-plan { grid-area: plan; } .split3 .col-form { grid-area: form; } .split3 .col-accept { grid-area: accept; margin-top: 0; }
.split3 .sig-notice { font-size: 1.05rem; }
.split3 .consent-text { max-height: 74vh; }
.split3 .eplan-img { max-height: 62vh; }
@media (max-width: 980px) { .split3, .split3.noplan { grid-template-columns: 1fr; grid-template-areas: "text" "plan" "accept" "form"; } .split3 .consent-text { max-height: 30vh; } .split3 .eplan-img { max-height: 30vh; } }

/* compact sign-in / walk-in dialogs: everything fits on a tablet screen without scrolling the page */
dialog.wide { padding: 16px 24px; max-height: 98vh; overflow: hidden; }
dialog.wide .split3 { gap: 8px 28px; }
dialog.wide label { margin: 8px 0 4px; font-size: .85rem; }
dialog.wide .col-accept { margin-top: 0; }
dialog.wide .col-form h2 { margin: 0 0 4px; font-size: 1.3rem; }
dialog.wide input { min-height: 42px; padding: 8px 14px; }
dialog.wide .sigpad { height: clamp(110px, 17vh, 190px); }
dialog.wide #sign .sigwrap { margin-top: 8px; }
dialog.wide .err { min-height: 1.1em; margin-top: 4px; }
dialog.wide .actions { margin-top: 8px; }
dialog.wide .btn { min-height: 44px; padding: 8px 22px; }
.split3 .sig-notice { font-size: .85rem; line-height: 1.35; }
.split3 .consent-text { max-height: 56vh; padding: 10px 12px; }
.split3 .eplan-img { max-height: 48vh; }
.split3 .consent { font-size: .9rem; }
@media (max-width: 980px) { .split3 .consent-text { max-height: 30vh; } .split3 .eplan-img { max-height: 30vh; } dialog.wide { overflow-y: auto; } }

/* documentation tab */
.docs { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; margin-top: 8px; }
.docs-toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 110px); overflow-y: auto; }
.docs-toc a { padding: 8px 12px; border-radius: 10px; color: var(--navy); text-decoration: none; font-weight: 500; font-size: .92rem; }
.docs-toc a:hover { background: var(--soft); color: var(--pink); }
.docs-body { max-width: 860px; line-height: 1.55; color: var(--ink); }
.docs-body section { margin-bottom: 36px; scroll-margin-top: 88px; }
.docs-body h3 { font: 700 1.5rem var(--head); color: var(--navy); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.docs-body h4 { font: 700 1.05rem var(--head); color: var(--navy); margin: 20px 0 6px; }
.docs-body p, .docs-body li { font-size: .95rem; }
.docs-body li { margin: 4px 0; }
.docs-body code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .85em; color: var(--navy); }
.doc-table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .92rem; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.doc-table th { background: var(--soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
@media (max-width: 820px) { .docs { grid-template-columns: 1fr; } .docs-toc { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; } }
@media print { .docs-toc { display: none; } .docs { display: block; } }

/* screensaver */
#saver { outline: none; position: fixed; inset: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; display: none; align-items: center; justify-content: center; }
#saver[open] { display: flex; }
#saver::backdrop { background: #fff; }
#saver img { position: relative; z-index: 1; width: min(55vw, 80vh); height: auto; pointer-events: none; }
#saver canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#saver.night { background: #000; }
#saver.night::backdrop { background: #000; }
#saver.night img, #saver.night canvas { display: none; }

/* screensaver selection (admin) */
.saver-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.saver-card { display: flex; flex-direction: column; gap: 10px; padding: 10px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; font: inherit; color: var(--navy); text-align: left; transition: border-color .15s, box-shadow .15s; }
.saver-card:hover { border-color: var(--teal); }
.saver-card.on { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(224, 20, 80, .15); }
.saver-prev { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: #fff; }
.saver-prev canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.saver-prev img { position: relative; width: 52%; height: auto; }
.saver-card b { padding: 0 4px 2px; }

/* ---------- pre-registration role + special requests (Sonderwünsche) ---------- */
.form-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.wish-form { border: 1px dashed var(--line); border-radius: var(--radius); margin: 16px 0 0; padding: 10px 16px 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; align-items: end; }
.wish-form legend { font: 600 .85rem var(--body); color: var(--pink-bright); text-transform: uppercase; letter-spacing: .06em; padding: 0 6px; }
.wish-form .meta { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .85rem; }
.wish-form label.check { display: flex; gap: 10px; align-items: center; min-height: 44px; margin: 0; font-weight: 600; cursor: pointer; }
.wish-form label.check input { width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; }
.wishes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.wishes li { display: flex; gap: 8px; align-items: flex-start; }
.wishes label { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-weight: 400; cursor: pointer; }
.wishes input[type=checkbox] { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; margin: 1px 0 0; }
.wishes .done { color: var(--muted); text-decoration: line-through; }
.wishes small { display: block; color: var(--muted); font-size: .75rem; text-decoration: none; }
.wishes li.open b { color: var(--navy); }
.pill.open { color: #fff; background: #d97706; border-color: #d97706; }
tr.has-open td:first-child { box-shadow: inset 5px 0 0 #d97706; }
tr.has-open { background: #fff8ec; }
.stat.open { border-top-color: #d97706; }
.wish-table input[type=text] { min-height: 38px; padding: 4px 8px; }
.wish-table td.order .btn { min-width: 40px; padding: 4px 10px; }
tr.inactive td { color: var(--muted); }
@media (max-width: 760px) {
  .tabs button { padding: 12px 12px; }
  .wrap { padding: 0 16px 40px; }
  header.top { flex-wrap: wrap; gap: 8px 10px; padding: 6px 16px; }
  header.top .logo { height: 40px; } header.top #logout { margin-left: auto; }
  .lang button { padding: 9px 11px; }
  /* tables of pre-registrations and request fields become cards on phones */
}
/* the tab bar scrolls sideways instead of running off the screen */
.tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tabs button { white-space: nowrap; flex: none; }
/* request fields: cards up to tablet width (label inputs need room) */
@media (max-width: 1000px) {
  .wish-table thead { display: none; }
  .wish-table tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .wish-table tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
  .wish-table td { display: block; border: 0; padding: 3px 0; white-space: normal; }
  .wish-table td[data-l]::before { content: attr(data-l); display: block; color: var(--teal); font: 700 .68rem var(--body); text-transform: uppercase; letter-spacing: .05em; }
}
/* pre-registration list: cards on phones and tablets */
@media (max-width: 900px) {
  .plan-table thead { display: none; }
  .plan-table tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
  .plan-table tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
  .plan-table td { display: block; border: 0; padding: 3px 0; white-space: normal; }
  .plan-table td[data-l]::before { content: attr(data-l); display: block; color: var(--teal); font: 700 .68rem var(--body); text-transform: uppercase; letter-spacing: .05em; }
  tr.has-open td:first-child { box-shadow: none; }
  tr.has-open { box-shadow: inset 5px 0 0 #d97706; }
}
/* several participants of one appointment */
.people-form { border: 1px dashed var(--line); border-radius: var(--radius); margin: 16px 0 0; padding: 10px 16px 14px; }
.people-form legend { font: 600 .85rem var(--body); color: var(--pink-bright); text-transform: uppercase; letter-spacing: .06em; padding: 0 6px; }
.people-form > .meta { margin: 0 0 4px; color: var(--muted); font-size: .85rem; }
.person-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 8px; }
.person-row label { margin-top: 6px; }
.person-row .pp-del { min-height: 52px; min-width: 52px; padding: 0; }
#p-addrow { margin-top: 6px; }
ul.people { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
ul.people li small { display: block; }
.group-box { border: 2px solid var(--line-soft); border-left: 6px solid var(--teal); border-radius: var(--radius); padding: 8px 10px 10px; display: grid; gap: 8px; background: var(--soft); }
.group-head { font: 700 .8rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--teal); padding: 2px 4px; }
@media (max-width: 600px) { .person-row { grid-template-columns: 1fr auto; } .person-row > div:nth-child(2) { grid-column: 1; grid-row: 2; } .person-row .pp-del { grid-column: 2; grid-row: 1 / span 2; align-self: center; } }
/* text requests (notes): full width, several lines, resizable; shown with line breaks */
.wish-form .wish-wide { grid-column: 1 / -1; }
.wish-form textarea { width: 100%; min-height: 110px; resize: vertical; font: inherit; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.wish-note { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 600; color: var(--navy); max-height: 12em; overflow-y: auto; }
.wishes .done .wish-note { color: var(--muted); }
