/* Pol D Kp Dienstportal
   Farben aus dem Abzeichen: Anthrazit + Silber, ein Signal-Orange (Zivilschutz) als einziger Akzent. */

@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url(/static/fonts/barlow-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 500; font-display: swap; src: url(/static/fonts/barlow-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 500; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url(/static/fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --anthrazit: #2c2d2f;
  --silber: #b9babd;
  --nebel: #e2e3e4;
  --papier: #f3f4f4;
  --weiss: #ffffff;
  --signal: #d9661a;

  --bg: var(--papier);
  --surface: var(--weiss);
  --surface-2: #ebeced;
  --ink: var(--anthrazit);
  --ink-2: #5c5e62;
  --ink-3: #85878b;
  --line: var(--nebel);
  --accent: var(--signal);
  --accent-ink: #ffffff;

  --ok: #2d7a4c;     --ok-bg: #e3f1e8;
  --info: #2e5d8c;   --info-bg: #e3ecf5;
  --wait: #97620f;   --wait-bg: #f7ecd7;
  --warn: #b0271d;   --warn-bg: #f8e4e2;
  --muted-bg: #ececed;

  --src-zs: var(--anthrazit);
  --src-extern: #3b6a96;
  --src-pflicht: #8f9195;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --radius-lg: 18px;
  --radius: 12px;
  --radius-sm: 8px;
  --rail: 248px;
  --tabbar-h: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f2022;
    --surface: #2a2b2e;
    --surface-2: #34363a;
    --ink: #eceded;
    --ink-2: #b4b6b9;
    --ink-3: #8b8d91;
    --line: #3a3c40;
    --accent: #ee7b2e;
    --ok: #74c393;     --ok-bg: #22382b;
    --info: #8db8e3;   --info-bg: #22303d;
    --wait: #e0b061;   --wait-bg: #3b3222;
    --warn: #f0877e;   --warn-bg: #432624;
    --muted-bg: #34363a;
    --src-zs: #cfd0d2;
    --src-extern: #7fa9d3;
    --src-pflicht: #75777b;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-cond); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .005em; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------------------------ Buttons & Felder */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn-primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink); opacity: .9; }
.btn-danger { color: var(--warn); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; color: var(--ink);
}
.icon-btn:hover { background: var(--surface-2); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field small { color: var(--ink-3); font-size: 13px; }
.field input, .field select, .field textarea, .search input {
  width: 100%; min-height: 46px; padding: 10px 14px; font-size: 16px; /* 16px: kein Auto-Zoom auf iOS */
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.field input:focus, .field select:focus, .search input:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.check { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); }
.form-error { color: var(--warn); background: var(--warn-bg); padding: 10px 12px; border-radius: var(--radius-sm); margin: 0 0 14px; font-size: 15px; }
.form-row { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + var(--safe-t)) 20px calc(24px + var(--safe-b)); }
.login-card { width: min(380px, 100%); text-align: center; }
.login-logo { width: 176px; height: 176px; display: block; margin: 0 auto 18px; }
.login-title { font-size: 40px; font-weight: 700; }
.login-sub { color: var(--ink-2); margin: 4px 0 30px; }
.login-card .field { text-align: left; }

/* ------------------------------------------------------------------ Shell */
.shell { min-height: 100dvh; }
.rail { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  padding: calc(8px + var(--safe-t)) 8px 8px 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-logo { width: 34px; height: 34px; }
.topbar-title { flex: 1; font-size: 24px; }
.content { width: 100%; min-width: 0; padding: 16px 16px calc(var(--tabbar-h) + var(--safe-b) + 24px); max-width: 1180px; margin: 0 auto; outline: none; }

.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 30;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px 6px var(--safe-b);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  display: grid; justify-items: center; gap: 2px; padding: 6px 0 4px; min-height: var(--tabbar-h);
  text-decoration: none; color: var(--ink-3); font-size: 11.5px; font-weight: 600;
}
.tab svg { width: 25px; height: 25px; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] svg { stroke-width: 2.1; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: var(--rail) 1fr; }
  .topbar, .tabbar { display: none; }
  .rail {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh;
    padding: 26px 16px 18px; border-right: 1px solid var(--line); background: var(--surface);
  }
  .rail-brand { display: grid; justify-items: center; text-align: center; gap: 10px; text-decoration: none; margin-bottom: 28px; }
  .rail-brand img { width: 88px; height: 88px; }
  .rail-brand strong { display: block; font-family: var(--font-cond); font-size: 24px; font-weight: 700; }
  .rail-brand small { color: var(--ink-3); font-size: 13px; }
  .nav { display: grid; gap: 2px; }
  .nav a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius);
    text-decoration: none; font-weight: 600; color: var(--ink-2);
  }
  .nav a:hover { background: var(--surface-2); }
  .nav a[aria-current="page"] { background: var(--ink); color: var(--surface); }
  .rail-foot { margin-top: auto; }
  .rail-user {
    width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px; border: 0;
    border-radius: var(--radius); background: transparent; cursor: pointer; text-align: left;
  }
  .rail-user:hover { background: var(--surface-2); }
  .rail-user small { display: block; color: var(--ink-3); font-size: 13px; }
  .content { padding: 30px 36px 48px; }
}

/* ------------------------------------------------------------------ Allgemeine Bausteine */
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.view-head h2 { font-size: 34px; font-weight: 700; }
.view-head p { margin: 4px 0 0; color: var(--ink-2); }
@media (max-width: 899px) { .view-head h2 { display: none; } .view-head { margin-bottom: 12px; } .view-head.m-hide { display: none; } }

.banner { padding: 10px 14px; border-radius: var(--radius); background: var(--wait-bg); color: var(--wait); margin-bottom: 14px; font-size: 15px; }
.banner.is-error { background: var(--warn-bg); color: var(--warn); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 4px; margin-bottom: 12px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer;
  font-weight: 600; font-size: 14.5px; color: var(--ink-2);
}
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }
.chip[aria-pressed="true"] .dot { box-shadow: 0 0 0 1.5px var(--surface); }

.segmented { display: inline-flex; padding: 3px; background: var(--surface-2); border-radius: 11px; gap: 2px; }
.segmented button { border: 0; background: transparent; padding: 7px 14px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.group { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; }
.group + .group, .group-title + .group { margin-top: 0; }
.group-title { font-family: var(--font-cond); font-size: 20px; font-weight: 600; margin: 22px 4px 8px; color: var(--ink-2); }
.group-title:first-child { margin-top: 4px; }
.row {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 0; background: transparent;
  text-align: left; cursor: pointer; text-decoration: none; min-height: 60px;
}
.row + .row { border-top: 1px solid var(--line); }
.row:hover { background: var(--surface-2); }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 600; display: block; overflow: hidden; text-overflow: ellipsis; }
.row-sub { color: var(--ink-2); font-size: 14.5px; display: block; }
.row > svg.chev { color: var(--ink-3); width: 18px; height: 18px; }

.tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--muted-bg); color: var(--ink-2); white-space: nowrap; }
.tag.leitung { background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.tag.reserve { background: transparent; border: 1px dashed var(--ink-3); }
.tag.abgesagt { background: var(--warn-bg); color: var(--warn); }
.tag.prov { background: var(--wait-bg); color: var(--wait); }

.empty { text-align: center; padding: 42px 20px; color: var(--ink-2); }
.empty img { width: 84px; opacity: .55; margin-bottom: 10px; }
.empty h3 { font-size: 24px; color: var(--ink); margin-bottom: 6px; }
.loading { padding: 40px 0; text-align: center; color: var(--ink-3); }

/* ------------------------------------------------------------------ Datumsstempel (Wiedererkennung: Ring wie beim Abzeichen) */
.stamp {
  flex: none; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  border: 2px solid var(--silber); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 5px var(--ink);
  background: var(--ink); color: var(--surface);
}
.stamp b { font-family: var(--font-cond); font-weight: 700; font-size: 25px; line-height: .95; }
.stamp small { font-size: 10.5px; font-weight: 600; opacity: .8; line-height: 1.1; }
.stamp.is-past { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 5px var(--silber); }
.stamp.is-cancelled { opacity: .45; }
.stamp.is-reserve { background: var(--surface); color: var(--ink); }

/* ------------------------------------------------------------------ Meine Dienste */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-align: left; cursor: default; }
button.stat { cursor: pointer; }
button.stat[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stat b { display: block; font-family: var(--font-cond); font-size: 34px; font-weight: 700; line-height: 1; }
.stat span { font-size: 14px; color: var(--ink-2); }
.stat.is-alert b { color: var(--warn); }
@media (max-width: 899px) {
  .stats { grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
  .stat { padding: 9px 8px; border-radius: 10px; }
  .stat b { font-size: 26px; }
  .stat span { font-size: 12px; line-height: 1.25; display: block; }
  .stats-label { font-size: 16px; margin-bottom: 6px; }
}
.stats-label { font-family: var(--font-cond); font-size: 18px; color: var(--ink-2); margin: 0 2px 8px; }
.duty-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.cancelled .row-title { text-decoration: line-through; color: var(--ink-3); }

.eo-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.eo-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.eo-ok { background: var(--ok-bg); color: var(--ok); }
.eo-info { background: var(--info-bg); color: var(--info); }
.eo-wait { background: var(--wait-bg); color: var(--wait); }
.eo-warn { background: var(--warn-bg); color: var(--warn); }
.eo-muted { background: var(--muted-bg); color: var(--ink-2); }

.eo-steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: 10px; }
.row-main .eo-steps { max-width: 340px; }
.eo-step { font-size: 12.5px; color: var(--ink-3); }
.eo-step::before { content: ""; display: block; height: 5px; border-radius: 3px; background: var(--line); margin-bottom: 5px; }
.eo-step.done { color: var(--ink-2); }
.eo-step.done::before { background: var(--ok); }
.eo-step b { display: block; color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ Kalender */
.cal-bar { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 8px; }
.cal-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; }
@media (max-width: 899px) { .cal-wrap { padding: 8px 6px; } }
.fc {
  --fc-border-color: var(--line);
  --fc-page-bg-color: var(--surface);
  --fc-neutral-bg-color: var(--surface-2);
  --fc-today-bg-color: color-mix(in srgb, var(--accent) 9%, transparent);
  --fc-list-event-hover-bg-color: var(--surface-2);
  --fc-event-border-color: transparent;
  --fc-button-bg-color: var(--surface);
  --fc-button-border-color: var(--line);
  --fc-button-text-color: var(--ink);
  --fc-button-hover-bg-color: var(--surface-2);
  --fc-button-hover-border-color: var(--line);
  --fc-button-active-bg-color: var(--ink);
  --fc-button-active-border-color: var(--ink);
  font-size: 14.5px;
}
.fc .fc-toolbar-title { font-family: var(--font-cond); font-size: 26px; font-weight: 600; }
.fc .fc-button { border-radius: 10px; font-weight: 600; padding: .4em .8em; box-shadow: none !important; text-transform: none; }
.fc .fc-button-primary:not(:disabled).fc-button-active { color: var(--surface); }
.fc .fc-button-primary:disabled { opacity: .45; background: var(--surface); color: var(--ink); }
.fc .fc-col-header-cell-cushion, .fc .fc-daygrid-day-number { text-decoration: none; color: var(--ink-2); font-weight: 600; }
.fc .fc-day-today .fc-daygrid-day-number { color: var(--accent); }
.fc-event { cursor: pointer; }
.fc .fc-daygrid-event { border-radius: 6px; padding: 1px 4px; font-weight: 600; font-size: 13px; }
.fc .fc-list-day-cushion { background: var(--surface-2); }
.fc .fc-list-day-text, .fc .fc-list-day-side-text { font-family: var(--font-cond); font-size: 17px; font-weight: 600; text-decoration: none; color: var(--ink); }
.fc .fc-list-event-title a { text-decoration: none; font-weight: 600; }
.fc .fc-list-empty { background: var(--surface); color: var(--ink-2); }
.fc-event.src-zs { --fc-event-bg-color: var(--src-zs); --fc-event-text-color: var(--surface); }
.fc-event.src-extern { --fc-event-bg-color: var(--src-extern); --fc-event-text-color: #fff; }
.fc-event.src-pflicht { --fc-event-bg-color: var(--src-pflicht); --fc-event-text-color: #fff; }
.fc-event.is-cancelled { opacity: .5; text-decoration: line-through; }
.fc-event.is-tentative { background-image: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.18) 6px 12px); }
.fc-daygrid-event.is-mine { box-shadow: inset 4px 0 0 var(--accent); padding-left: 7px; }
.fc-list-event.is-mine .fc-list-event-title a::after { content: "Du"; margin-left: 8px; font-size: 12px; padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); color: var(--accent); }
.fc .fc-list-event-dot { border-color: var(--fc-event-bg-color); }
@media (max-width: 899px) {
  .fc .fc-toolbar { gap: 6px; }
  .fc .fc-toolbar-title { font-size: 22px; }
  .fc .fc-toolbar.fc-header-toolbar { margin-bottom: .7em; padding: 0 4px; }
  .fc .fc-list-event td { padding: 11px 10px; }
  .fc .fc-list-event-time { width: 1%; white-space: nowrap; color: var(--ink-2); font-variant-numeric: tabular-nums; }
}

/* ------------------------------------------------------------------ Kontakte */
.search { position: relative; margin-bottom: 12px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); width: 20px; height: 20px; }
.search input { padding-left: 42px; border-radius: 999px; }
.sticky-tools { position: sticky; top: calc(51px + var(--safe-t)); z-index: 10; background: var(--bg); padding-top: 4px; margin-top: -4px; }
@media (min-width: 900px) { .sticky-tools { top: 0; } }
.avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2); font-family: var(--font-cond); font-weight: 700; font-size: 17px;
  border: 1.5px solid var(--silber);
}
.avatar.kader { background: var(--ink); color: var(--surface); }
.call-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); text-decoration: none; }
.call-btn svg { width: 19px; height: 19px; }
.contacts-grid { display: grid; gap: 14px; }
@media (min-width: 1100px) { .contacts-grid.two { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ------------------------------------------------------------------ Sheet (Bottom Sheet mobil, Dialog am PC) */
.sheet {
  border: 0; padding: 0; margin: 0; color: var(--ink); background: var(--surface);
  width: 100%; max-width: 100%; max-height: 92dvh; inset: auto 0 0 0;
  border-radius: 22px 22px 0 0; box-shadow: 0 -8px 40px rgba(0,0,0,.25);
}
.sheet[open] { animation: sheet-up .26s cubic-bezier(.2,.8,.25,1); }
.sheet::backdrop { background: rgba(20,20,22,.45); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 8px auto 0; }
.sheet-close { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--surface-2); width: 36px; height: 36px; }
.sheet-close svg { width: 18px; height: 18px; }
.sheet-body { padding: 10px 18px calc(24px + var(--safe-b)); overflow-y: auto; max-height: calc(92dvh - 14px); -webkit-overflow-scrolling: touch; }
@media (min-width: 760px) {
  .sheet { inset: 0; margin: auto; width: min(640px, calc(100% - 48px)); max-height: min(86dvh, 900px); border-radius: var(--radius-lg); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
  .sheet-grip { display: none; }
  .sheet-body { padding: 26px 28px 28px; max-height: min(86dvh, 900px); }
  .sheet[open] { animation-name: sheet-fade; }
  @keyframes sheet-fade { from { transform: scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
}
.sh-kicker { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 44px 10px 0; }
.sh-title { font-size: 32px; font-weight: 700; margin-right: 40px; }
.sh-when { font-size: 17px; font-weight: 600; margin: 8px 0 2px; }
.sh-sub { color: var(--ink-2); margin: 0; }
.sh-section { margin-top: 22px; }
.sh-section > h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink-2); }
.sh-note { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--wait-bg); color: var(--wait); margin-top: 10px; font-size: 15px; }
.sh-note.warn { background: var(--warn-bg); color: var(--warn); }
.sh-note.info { background: var(--surface-2); color: var(--ink-2); }
.sh-hint { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }

.people { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.people li + li { border-top: 1px solid var(--line); }
.people .row { min-height: 50px; padding: 9px 12px; }
.people .avatar { width: 34px; height: 34px; font-size: 14px; }
.people .struck .row-title { text-decoration: line-through; color: var(--ink-3); }
.people .is-me { background: color-mix(in srgb, var(--accent) 7%, transparent); }

.dl { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.dl dt, .dl dd { margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); }
.dl dt { font-weight: 600; color: var(--ink-2); font-size: 14.5px; background: var(--surface-2); }
.dl dd { white-space: pre-line; overflow-wrap: anywhere; }
.dl dt:first-of-type, .dl dd:first-of-type { border-top: 0; }
@media (max-width: 480px) {
  .dl { grid-template-columns: 1fr; }
  .dl dt { border-top: 1px solid var(--line); padding-bottom: 2px; background: transparent; font-size: 13.5px; }
  .dl dd { border-top: 0; padding-top: 0; }
}
details.more { margin-top: 10px; }
details.more summary { cursor: pointer; color: var(--ink-2); font-weight: 600; padding: 6px 0; }

.shift-switch { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.shift-switch button { flex: none; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 8px 12px; cursor: pointer; }
.shift-switch button[aria-current="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.shift-switch b { display: block; font-size: 14.5px; }
.shift-switch small { color: var(--ink-2); font-size: 13px; }

.actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 18px 0 4px; }
.action { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: var(--radius); background: var(--surface-2); text-decoration: none; font-weight: 600; font-size: 13.5px; border: 0; cursor: pointer; }
.action svg { width: 24px; height: 24px; }
.action.primary { background: var(--ink); color: var(--surface); }
.contact-head { display: flex; align-items: center; gap: 14px; margin-right: 40px; }
.contact-head .avatar { width: 62px; height: 62px; font-size: 24px; }
.masked { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.reveal { border: 0; background: transparent; color: var(--ink-2); cursor: pointer; padding: 0 0 0 8px; vertical-align: middle; }
.reveal svg { width: 18px; height: 18px; }

.user-card { display: flex; align-items: center; gap: 12px; padding: 4px 0 14px; margin-right: 44px; }
.menu-list { display: grid; gap: 8px; }
.menu-list .btn { justify-content: flex-start; }
.meta-line { color: var(--ink-3); font-size: 13.5px; margin-top: 14px; }
.secret { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 18px; background: var(--surface-2); padding: 12px; border-radius: var(--radius-sm); user-select: all; word-break: break-all; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); transform: translateX(-50%);
  background: var(--ink); color: var(--surface); padding: 11px 18px; border-radius: 999px; z-index: 100;
  font-weight: 600; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100% - 32px);
}
@media (min-width: 900px) { .toast { bottom: 28px; } }
