/* Chrysalis: jewel tones with vibrant gold. Mobile-first.
   Rules: big tap targets, one thing per screen, plain words.
   Palette (owner's design, 2026-11-14): night indigo, royal indigo, electric blue, aqua, violet, bright pink,
   vibrant gold, lavender white; plus amber and teal from the butterfly inspiration photo.
   Safety colour stays true red and is never replaced by pink or gold. Gold is decoration only (not text on white). */

:root {
  --night: #1B1446; --royal: #3A1C7A; --blue: #3D7BFF; --aqua: #22D3EE; --violet: #8A4FFF;
  --pink: #FF4FA3; --gold: #FFC21A; --amber: #FF8A1F; --teal: #14B8A6; --lavender: #F7F4FF;
  --ink: #170F36;
  --muted: #625a85;
  --line: #e6e0f5;
  --card: #ffffff;
  --bg: #F7F4FF;
  --accent: #4B2BD6;
  --accent-ink: #ffffff;
  --accent-soft: #efe9ff;
  --red: #b3261e;
  --red-soft: #fdeeee;
  --warn: #8a5300;
  --warn-soft: #fff4d6;
  --good: #1e7f5c;
  --grad: linear-gradient(90deg, #4F2BD9 0%, #9333EA 55%, #DB2777 100%);
  --hero: linear-gradient(160deg, #1B1446 0%, #3A1C7A 48%, #6B1F7E 100%);
  --gold-grad: linear-gradient(90deg, #FFC21A, #FF8A1F);
  --radius: 16px;
  --nav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eeeafe; --muted: #b3a9da; --line: #342a63; --card: #1e1745; --bg: #120d2e;
    --accent: #a78bfa; --accent-ink: #120d2e; --accent-soft: #2a2160;
    --red: #ff8a80; --red-soft: #3a1620; --warn: #ffc21a; --warn-soft: #3a2e10; --good: #5eead4;
  }
}
:root[data-theme="dark"] {
  --ink: #eeeafe; --muted: #b3a9da; --line: #342a63; --card: #1e1745; --bg: #120d2e;
  --accent: #a78bfa; --accent-ink: #120d2e; --accent-soft: #2a2160;
  --red: #ff8a80; --red-soft: #3a1620; --warn: #ffc21a; --warn-soft: #3a2e10; --good: #5eead4;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--accent); }
h1 { font-size: 24px; margin: 0 0 4px; line-height: 1.25; }
h2 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Layout */
.topbar {
  position: sticky; top: 0; z-index: 10; background: var(--card); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
}
.topbar .brand { font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
.topbar .signout { font-size: 15px; color: var(--muted); text-decoration: none; padding: 8px 4px; }
.page { max-width: 640px; margin: 0 auto; padding: 20px 16px calc(var(--nav-h) + 32px); }

/* Bottom menu: the same everywhere (Home · Schedule · Log · Report · More) */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: var(--nav-h); text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 600;
}
.bottomnav a svg { width: 24px; height: 24px; }
.bottomnav a[aria-current="page"] { color: var(--accent); }
.bottomnav a.report { color: var(--red); }

/* Big action buttons */
.actions { display: grid; gap: 10px; margin: 16px 0 24px; }
.action {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
}
.action:active { transform: scale(.99); }
.action .icon {
  flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.action .icon svg { width: 24px; height: 24px; }
.action .label { font-size: 18px; font-weight: 700; display: block; }
.action .hint { font-size: 14px; color: var(--muted); display: block; }
.action.urgent .icon { background: var(--red-soft); color: var(--red); }
.action .chev { margin-left: auto; color: var(--muted); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 12px 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid2 .card { margin: 0; }
.count { font-size: 28px; font-weight: 700; line-height: 1.1; }
.empty { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.notice { border-radius: 10px; padding: 12px 14px; background: var(--warn-soft); color: var(--ink); font-size: 15px; margin: 12px 0; }
.notice.red { background: var(--red-soft); }

/* Forms */
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=email], input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px;
  padding: 12px 20px; border: 0; border-radius: 12px; font: inherit; font-weight: 700; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
}
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login .card { width: 100%; max-width: 400px; padding: 28px 24px; }

/* Flash messages */
.flash { border-radius: 10px; padding: 12px 14px; margin: 0 0 12px; background: var(--accent-soft); }
.flash.error { background: var(--red-soft); color: var(--red); }

.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--accent); font-weight: 600; min-height: 44px; }

@media (min-width: 720px) {
  .page { padding-top: 32px; }
}

/* Demo badge, week card, lists */
.demo-tag { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--warn); background: var(--warn-soft); padding: 2px 8px; border-radius: 999px; margin-right: auto; margin-left: 8px; }
.weekcard { display: block; text-decoration: none; color: var(--ink); }
.weekcard .hours { display: flex; align-items: baseline; gap: 6px; }
.bar { height: 10px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; margin: 8px 0 4px; }
.bar span { display: block; height: 100%; background: var(--accent); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list a, .list .row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 2px; text-decoration: none; color: var(--ink); }
.list .listbtn { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 2px; width: 100%; background: none; border: 0; font: inherit; color: var(--ink); text-align: left; cursor: pointer; justify-content: space-between; }
.list .sub { display: block; font-size: 14px; color: var(--muted); }
.list .chev { margin-left: auto; color: var(--muted); }
.avatar { flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; }
.inactive { opacity: .55; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 600; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; }
.chips input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips input:focus-visible + span { outline: 3px solid var(--accent-soft); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; }
.check input { width: 22px; height: 22px; }
.temp { font: 700 26px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .06em; background: var(--accent-soft); border-radius: 10px; padding: 14px; text-align: center; margin: 10px 0; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.flash.ok { background: var(--accent-soft); color: var(--ink); }

/* Schedule */
.weeknav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; text-align: center; }
.weeknav .btn { min-width: 52px; padding: 0 14px; font-size: 22px; }
.weeknav .sub { display: block; font-size: 14px; color: var(--muted); }
.btn.small-btn { min-height: 44px; padding: 8px 14px; font-size: 15px; }
.list .row .btn.small-btn, .list .row > a.btn { margin-left: auto; }
.list .row.wrap { flex-wrap: wrap; }
.list .day { flex: 0 0 52px; }
.btnpair { display: flex; gap: 8px; margin-left: auto; }
.pill.warn { background: var(--warn-soft); color: var(--warn); margin-left: auto; }
.list .row .pill { margin-left: auto; }
.card.attention { border-color: var(--warn); }
.dayblock h2 { margin-bottom: 4px; }
.shiftrow { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.shiftrow:first-of-type { border-top: 0; }
.shiftname { flex: 1; min-width: 0; }
.shiftname .sub { display: block; font-size: 13px; color: var(--muted); }
.spots { display: flex; gap: 6px; }
.spot { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 6px 10px;
  border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.spot.open { background: var(--red-soft); color: var(--red); border: 1px dashed var(--red); }
.bar.over span { background: var(--red); }
.over-text { color: var(--red); font-weight: 600; }
.good-text { color: var(--good); font-weight: 600; }
.gridday { border: 0; padding: 0; margin: 0 0 14px; }
.gridday legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.list.pick label.row { margin: 0; font-weight: 400; cursor: pointer; }
.list.pick input[type=radio] { width: 22px; height: 22px; flex: 0 0 22px; }
.spot > span { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.spot-times { font-size: 11px; font-weight: 500; color: var(--muted); }
.spot.optional { background: transparent; color: var(--muted); border: 1px dashed var(--line); font-weight: 500; }
.timepair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.timepair label { margin-top: 8px; }

/* Daily Log */
textarea { resize: vertical; }
.chips.tabs { margin: 8px 0 4px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chips span.danger { color: var(--red); border-color: var(--red); }
.chips input:checked + span.danger { background: var(--red); color: #fff; border-color: var(--red); }
.btn.danger { background: var(--red); color: #fff; }
.checkgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.checkgrid .btn { min-height: 56px; font-size: 15px; padding: 8px; }
.list.compact .row { min-height: 44px; }
.entries li { padding: 10px 0; }
.entry { display: flex; gap: 12px; }
.entry .time { flex: 0 0 72px; font-weight: 700; font-size: 15px; }
.entry .body { flex: 1; min-width: 0; }
.entry .pill { margin-right: 4px; }
.pill.danger { background: var(--red-soft); color: var(--red); }
li.corrected .body > div:first-of-type { text-decoration: line-through; color: var(--muted); }
li.flagged, .card.flagged { border-left: 4px solid var(--red); padding-left: 10px; }
.steps { padding-left: 22px; margin: 0; }
.steps li { margin-bottom: 8px; }
[hidden] { display: none !important; }
.list a.inline { display: inline; min-height: 0; padding: 0; color: var(--accent); }

/* Appointments & Tasks */
.tick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--accent); background: transparent; cursor: pointer; flex: 0 0 30px; }
.tick:hover { background: var(--accent-soft); }
.bigfacts > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.bigfacts > div:last-child { border-bottom: 0; }
.bigfacts .label { display: block; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bigfacts b { font-size: 19px; display: block; }
.bigfacts .btn { margin: 8px 0; }
.pre { white-space: pre-line; display: block; }
.dash-items { list-style: none; padding: 0; margin: 6px 0 0; font-size: 14px; }
.dash-items li { padding: 4px 0; border-top: 1px solid var(--line); }
.dash-items a { color: var(--ink); text-decoration: none; }

/* Incident report */
.irform h3, .awol-section h3 { font-size: 16px; margin: 18px 0 6px; }
.typelist { display: grid; gap: 2px; }
.typeitem .check { margin: 0; min-height: 40px; font-weight: 500; }
.chips.subs { margin: 0 0 8px 32px; }
.question { padding: 8px 0; border-top: 1px solid var(--line); }
.question p { margin: 0 0 6px; }
.question input[type=text] { margin-top: 6px; }
.inline-chips { display: inline-flex; gap: 6px; }
.personrow { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
@media (min-width: 560px) { .personrow { grid-template-columns: 2fr 1fr 2fr; } }
.logrow { border-top: 1px solid var(--line); padding: 10px 0; }
.logrow summary { cursor: pointer; min-height: 32px; }
.stickybar { position: sticky; bottom: calc(var(--nav-h) + 8px); display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
  background: var(--bg); padding: 10px 0; z-index: 5; }
.awol-section { border-left: 4px solid var(--red); }
.callrow { font-size: 14px; padding: 6px 0; border-top: 1px solid var(--line); }
details summary { cursor: pointer; padding: 8px 0; }

/* Shift + emergency */
.btn.big { min-height: 72px; font-size: 22px; }
.handover { padding: 10px 0; border-top: 1px solid var(--line); }
.handover:first-of-type { border-top: 0; padding-top: 0; }
.sos { font-size: 13px; font-weight: 800; color: #fff; background: var(--red); padding: 6px 10px; border-radius: 999px; text-decoration: none; }
.topbar .brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topbar .sos { flex: 0 0 auto; }
.guide summary { min-height: 32px; display: flex; align-items: center; }
.guide .steps { margin-top: 10px; }

/* Tap-to-call buttons */
.calls { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 8px; }
.callbtn { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; }
.callbtn .callicon { flex: 0 0 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.callbtn .callicon svg { width: 20px; height: 20px; }
.callbtn .sub { display: block; font-size: 13px; color: var(--muted); }
.callbtn.urgent { background: var(--red); border-color: var(--red); color: #fff; }
.callbtn.urgent .sub { color: #fde; }
.callbtn.urgent .callicon { background: rgba(255,255,255,.2); color: #fff; }
.callpanel { border-left: 4px solid var(--accent); }
.intakerow { padding: 4px 0; border-top: 1px solid var(--line); }
.intakerow input[type=text] { min-height: 40px; padding: 8px 12px; margin: 0 0 6px; font-size: 15px; }
.goalrow { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .goalrow { grid-template-columns: 1fr 1.6fr 2fr 1fr; } }
.pair { display: grid; grid-template-columns: 1fr; gap: 4px 12px; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair label { margin-top: 6px; }
.chips.phrases { margin-bottom: 8px; }
button.chip.phrase { font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; min-height: 40px; padding: 6px 12px; }
button.chip.phrase:active { background: var(--accent-soft); }

/* Groceries + allowances */
.addrow { display: flex; gap: 8px; }
.addrow input { flex: 1; }
.linkbtn { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: 8px; min-height: 44px; }
li.voided .row { text-decoration: line-through; opacity: .6; }
.address-card { border-left: 4px solid var(--red); }
.address-card .address { font-size: 22px; font-weight: 700; margin: 0; line-height: 1.3; }

/* Youth photo, IDs, files */
.youthhead { display: flex; align-items: center; gap: 14px; }
.youthphoto { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line); }
.awolphoto { width: 140px; height: 140px; border-radius: 12px; }
.avatar.big { flex: 0 0 72px; height: 72px; font-size: 22px; }
.idnum { font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.filegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.fileitem img, .filetile { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.fileitem .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.fileactions { display: flex; gap: 4px; flex-wrap: wrap; }

/* Receipts */
.receiptrow { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.receiptthumb { flex: 0 0 72px; }
.receiptthumb img, .receiptthumb .filetile { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.decide { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.decide select { width: auto; min-height: 44px; padding: 6px 10px; }
.btnpair select { width: auto; min-height: 44px; padding: 6px 10px; }
.inline-details { width: 100%; }
.inline-details input { margin: 6px 0; }


/* ---------- Chrysalis theme ---------- */
.serif { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; }
h1 { color: var(--ink); letter-spacing: -.01em; }
h2 { color: var(--accent); opacity: .85; }
.topbar { background: var(--hero); border-bottom: 0; color: #fff; box-shadow: 0 2px 12px rgba(27, 20, 70, .25); }
.topbar .brand { color: #fff; display: flex; align-items: center; gap: 8px; font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 21px; font-weight: 700; }
.topbar .brand img { width: 28px; height: 28px; border-radius: 8px; flex: 0 0 28px; }
.demo-tag { background: var(--gold); color: #3a2a00; }
.topbar .sos { background: #d32f2f; box-shadow: 0 0 0 2px rgba(255, 255, 255, .25); }
.btn { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(124, 58, 237, .25); }
.btn.ghost { background: var(--card); color: var(--accent); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: #c62828; box-shadow: 0 4px 14px rgba(198, 40, 40, .3); }
.card { border-color: var(--line); box-shadow: 0 1px 2px rgba(27, 20, 70, .04), 0 6px 18px rgba(27, 20, 70, .05); }
.bar { background: var(--accent-soft); }
.bar span { background: var(--gold-grad); }
.bar.over span { background: var(--red); }
.chips input:checked + span, .chip.on { background: var(--grad); border-color: transparent; color: #fff; }
.bottomnav a[aria-current="page"] { color: var(--accent); position: relative; }
.bottomnav a[aria-current="page"]::before { content: ""; position: absolute; top: 6px; width: 24px; height: 4px; border-radius: 4px; background: var(--gold-grad); }
.bottomnav a.report { color: var(--red); }
.avatar { background: var(--hero); color: #fff; }
.pill { background: var(--accent-soft); color: var(--accent); }
.tick { border-color: var(--violet); }
.tick:hover { background: var(--accent-soft); }

/* Each home button gets its own jewel colour */
.action .icon.c-aqua { background: linear-gradient(135deg, #22D3EE, #3D7BFF); color: #fff; }
.action .icon.c-violet { background: linear-gradient(135deg, #8A4FFF, #4B2BD6); color: #fff; }
.action .icon.c-blue { background: linear-gradient(135deg, #3D7BFF, #14B8A6); color: #fff; }
.action .icon.c-red { background: linear-gradient(135deg, #ef4444, #b3261e); color: #fff; }
.action .icon.c-gold { background: linear-gradient(135deg, #FFC21A, #FF8A1F); color: #3a2a00; }
.action { border-color: var(--line); box-shadow: 0 1px 2px rgba(27, 20, 70, .04), 0 6px 16px rgba(27, 20, 70, .05); }
.grid2 .card { border-top: 4px solid var(--violet); }
.grid2 .card.k-today { border-top-color: var(--blue); }
.grid2 .card.k-overdue { border-top-color: var(--red); }
.grid2 .card.k-upcoming { border-top-color: var(--violet); }
.grid2 .card.k-needs_assignment { border-top-color: var(--gold); }

/* Sign-in: the chrysalis opens */
body.welcome { background: var(--lavender); }
.welcome-hero { position: relative; background: var(--hero); color: #fff; text-align: center; padding: 34px 16px 52px;
  border-radius: 0 0 50% 50% / 0 0 36px 36px; overflow: hidden; }
.welcome-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 25%, rgba(176, 79, 216, .45), transparent 55%); }
.welcome-art { position: relative; width: 320px; max-width: 100%; height: 196px; margin: 0 auto; }
.welcome-art svg { position: absolute; }
.welcome-art .chrysalis { left: calc(50% - 112px); top: 0; width: 176px; height: 192px; }
/* The butterfly comes out of the chrysalis (once), then keeps flying: flap-flap-glide, bobbing and drifting. */
.welcome-art .bf-emerge { position: absolute; left: calc(50% + 16px); top: 40px; width: 158px; height: 110px;
  animation: emerge 2.6s cubic-bezier(.2, .8, .3, 1) .3s both; }
.welcome-art .bf-fly { width: 100%; height: 100%; animation: fly 16s ease-in-out 2.9s infinite; }
.welcome-art .butterfly { position: static; display: block; width: 100%; height: 100%; }
/* Both wings hinge on the body's centre line (x = 121 in the drawing), so they fold toward the body and open
   again, like a real butterfly, instead of sliding sideways. */
.welcome-art .butterfly .wing-l, .welcome-art .butterfly .wing-r {
  transform-box: view-box; transform-origin: 121px 80px;
  animation: flap 4.2s cubic-bezier(.42, 0, .58, 1) 2.9s infinite; }
.welcome-art .sparkle { animation: twinkle 2.6s ease-in-out infinite; }
.welcome-art .sparkle.s2 { animation-delay: .9s; }
.welcome-art .sparkle.s3 { animation-delay: 1.7s; }
.welcome-title { position: relative; margin: 14px 0 0; font-size: 48px; line-height: 1.1; color: #fff; font-weight: 700;
  letter-spacing: .01em; -webkit-text-stroke: .6px #FFC21A; paint-order: stroke fill;
  text-shadow: 0 2px 0 rgba(17, 24, 39, .55), 0 6px 18px rgba(17, 8, 40, .45); }
.welcome-title::after { content: ""; display: block; width: 64px; height: 3px; margin: 8px auto 0; border-radius: 3px; background: var(--gold-grad); }
.welcome-form { max-width: 420px; margin: 0 auto; padding: 26px 22px 40px; }
.welcome-form h2 { font-size: 24px; letter-spacing: 0; text-transform: none; color: var(--royal); opacity: 1; margin: 0 0 6px; }
.welcome-form .foot { text-align: center; color: var(--muted); font-size: 15px; margin-top: 14px; }
.welcome-form .btn { min-height: 56px; font-size: 19px; }
@keyframes emerge {
  0% { opacity: 0; transform: translate(-118px, 52px) scale(.18) rotate(-25deg); }
  35% { opacity: 1; transform: translate(-96px, 30px) scale(.45) rotate(-12deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes flap {   /* like a monarch resting on a flower: wings rise and nearly meet, pause, open, rest open */
  0%, 100% { transform: scaleX(1) scaleY(1); }
  28% { transform: scaleX(.16) scaleY(1.06); }
  40% { transform: scaleX(.16) scaleY(1.06); }
  70% { transform: scaleX(1) scaleY(1); }
}
@keyframes fly {      /* resting: the gentlest sway */
  0%, 100% { transform: translate(0, 0) rotate(-1deg); }
  50% { transform: translate(2px, -3px) rotate(1deg); }
}
@keyframes twinkle { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) {
  .welcome-art .bf-emerge, .welcome-art .bf-fly, .welcome-art .butterfly .wing-l, .welcome-art .butterfly .wing-r, .welcome-art .sparkle { animation: none; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.welcome { background: var(--bg); }
  :root:not([data-theme="light"]) .welcome-form h2 { color: #eeeafe; }
}
.pill.court { background: #ede7ff; color: #4B2BD6; border: 1px solid #c9bafc; }
.courtrow { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
input[type=search] { width: 100%; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.contact { padding: 10px 0; border-top: 1px solid var(--line); }
.contactgroup h2 + .contact { border-top: 0; padding-top: 0; }
.contactbtns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* Calendar */
.calcard { padding: 12px; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calhead { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.calday { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 48px; padding: 6px 0 4px;
  border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.calday.out { color: var(--muted); opacity: .5; }
.calday.today .num { background: var(--gold); color: #3a2a00; border-radius: 999px; padding: 0 7px; }
.calday.chosen { background: var(--accent-soft); outline: 2px solid var(--violet); }
.dots { display: flex; gap: 2px; margin-top: 4px; min-height: 6px; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.dot.appt { background: var(--blue); } .dot.court { background: var(--violet); } .dot.task { background: var(--gold); }
.dot.shift { background: var(--teal); } .dot.open { background: var(--red); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 10px 0 0; color: var(--muted); }
.legend .dot { margin-right: -6px; }

/* Cleaning + maintenance */
.cleanlist li.isdone b { color: var(--muted); }
.tick.done { display: grid; place-items: center; background: var(--grad); border: 0; color: #fff; font-weight: 800; font-size: 15px; }
.photobtn { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: 14px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer; min-height: 40px; }
.photobtn.req { border-color: var(--warn); color: var(--warn); }
.weekgrid { display: grid; grid-template-columns: minmax(84px, 1fr) repeat(7, 27px); gap: 3px; align-items: center; font-size: 12px; }
.cleanweek { padding-left: 12px; padding-right: 12px; }
.weekgrid .wd { text-align: center; font-weight: 700; color: var(--muted); }
.weekgrid .wlabel { padding: 4px 0; line-height: 1.2; }
.wcell { height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft); font-weight: 700; font-size: 11px; }
.wcell.ok { background: #dcfce7; color: #166534; font-size: 10px; letter-spacing: -.02em; }
.wcell.miss { background: var(--red-soft); color: var(--red); }
.wcell.na { background: transparent; color: var(--line); }
.wcell a { text-decoration: none; font-size: 9px; }
.jobrow { padding: 8px 0; border-top: 1px solid var(--line); }
.jobrow .chips span { min-height: 36px; padding: 4px 10px; font-size: 13px; }

/* Sharper text everywhere */
label { color: var(--ink); font-weight: 650; }
.welcome-form h2 { font-weight: 750; letter-spacing: -.01em; }
.topbar .brand { letter-spacing: .01em; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.muted, .sub, .empty { color: var(--muted); }

/* Voice typing */
.micwrap { position: relative; }
.micwrap textarea { padding-bottom: 46px; }
.micbtn { position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--accent);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.micbtn.on { background: #c62828; color: #fff; border-color: #c62828; animation: micpulse 1.4s ease-in-out infinite; }
@keyframes micpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, .45); } 50% { box-shadow: 0 0 0 8px rgba(198, 40, 40, 0); } }
@media (prefers-reduced-motion: reduce) { .micbtn.on { animation: none; } }
.micnote { margin: 4px 0 0; font-size: 13px; color: var(--red); }

/* Schedule views */
.viewtabs { margin: 6px 0 2px; }
.whorow { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.dayshift h2 + .whorow { border-top: 0; }
.whorow .sub { display: block; font-size: 13px; color: var(--muted); }
.whorow.open b { color: var(--red); }
.avatar.open { background: var(--red-soft); color: var(--red); }
.avatar.optional { background: var(--accent-soft); color: var(--muted); }
.glancegrid { display: grid; grid-template-columns: 46px repeat(7, minmax(0, 1fr)); gap: 3px; font-size: 10.5px; align-items: stretch; }
.gday { text-align: center; color: var(--muted); text-decoration: none; font-size: 11px; line-height: 1.2; }
.gday b { color: var(--ink); font-size: 13px; }
.glabel { font-weight: 700; color: var(--accent); display: flex; align-items: center; font-size: 9.5px; line-height: 1.15; }
.gcell { background: var(--accent-soft); border-radius: 6px; min-height: 38px; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 2px; padding: 3px 2px; min-width: 0; }
.gcell i { display: block; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 10px; line-height: 1.15; }
.gcell i, .mline i { font-style: normal; font-weight: 700; color: var(--ink); }
i.gap { color: var(--red) !important; font-style: normal; font-weight: 800; }
.monthcard { padding: 10px 8px; }
.monthgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.mhead { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); }
.mday { display: flex; flex-direction: column; align-items: stretch; min-height: 74px; padding: 3px 2px; border-radius: 8px; background: var(--accent-soft);
  text-decoration: none; color: var(--ink); font-size: 9.5px; line-height: 1.25; overflow: hidden; }
.mday .num { font-weight: 800; font-size: 12px; text-align: center; }
.mday.out { opacity: .45; }
.mday.today { outline: 2px solid var(--gold); background: #fff8e1; }
.mline { display: flex; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid rgba(75, 43, 214, .12); padding-top: 1px; min-height: 13px; }
.mline .blank { color: var(--muted); }
.lineup { background: var(--accent-soft); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.ltime { display: inline-block; min-width: 92px; }

.mline i { display: block; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 8.5px; }
.mday { min-height: 96px; }
.monthlist { padding: 4px 14px; }
.mlrow { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.monthlist .mlrow:first-child { border-top: 0; }
.mlrow.today { background: #fff8e1; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.mldate { flex: 0 0 38px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.mldate span { font-size: 20px; font-weight: 800; }
.mldate b { font-size: 12px; color: var(--muted); }
.mlshifts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mlshift { display: flex; gap: 8px; font-size: 14px; align-items: baseline; }
.mltime { flex: 0 0 82px; font-size: 12px; white-space: nowrap; font-weight: 700; color: var(--accent); }
.mlwho { flex: 1; min-width: 0; }
.mlwho .nm + .nm::before { content: " · "; color: var(--muted); }
.nm.gap { color: var(--red); font-weight: 700; }

.glancegrid2 { display: grid; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); gap: 3px; font-size: 12px; }
.ghead { font-size: 10.5px; font-weight: 800; color: var(--accent); text-align: center; padding-bottom: 2px; }
.gday2 { display: flex; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); font-size: 12px; }
.gday2 b { color: var(--muted); font-size: 11px; }
.gcell2 { background: var(--accent-soft); border-radius: 6px; padding: 4px 6px; display: flex; flex-direction: column; justify-content: center; min-height: 40px; min-width: 0; }
.gcell2 i { font-style: normal; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }

/* Week at a glance: times down the left (pinned), days across the top, full first names */
.glancescroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; padding: 0 6px 4px; }
.glancegrid3 { display: grid; grid-template-columns: 58px repeat(7, minmax(64px, 1fr)); gap: 3px; min-width: max-content; }
.gcorner, .gtime { position: sticky; left: 0; z-index: 1; background: var(--card); }
.gtime { display: flex; align-items: center; font-size: 11px; font-weight: 800; color: var(--accent); line-height: 1.2; padding-right: 4px; }
.gdayh { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1.1; padding-bottom: 2px; }
.gdayh b { font-size: 11px; color: var(--muted); }
.gdayh span { font-size: 15px; font-weight: 800; }
.gcell3 { background: var(--accent-soft); border-radius: 6px; padding: 4px 5px; display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
.gcell3 i { font-style: normal; font-weight: 700; font-size: 12px; color: var(--ink); white-space: nowrap; line-height: 1.3; }
@media (min-width: 560px) { .swipehint { display: none; } }

.docstatus { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.docstatus.valid { background: #dcfce7; color: #166534; }
.docstatus.soon { background: var(--warn-soft); color: var(--warn); }
.docstatus.expired, .docstatus.missing { background: var(--red-soft); color: var(--red); }
.docstatus.none { background: var(--accent-soft); color: var(--muted); }
.warn-text { color: var(--warn); font-weight: 700; }

/* Youth files: folders */
.jumpbar { margin: 4px 0 8px; }
.jumpbar .chip { min-height: 38px; padding: 6px 12px; font-size: 14px; }
.addfiles > summary { list-style: none; cursor: pointer; }
.addfiles > summary::-webkit-details-marker { display: none; }
.addfiles[open] > summary { margin-bottom: 4px; }
.folder { border-top: 1px solid var(--line); padding: 4px 0; }
.folder > summary { display: grid; grid-template-columns: 26px 1fr; column-gap: 8px; align-items: center; cursor: pointer; padding: 8px 0; list-style: none; }
.folder > summary::-webkit-details-marker { display: none; }
.folder > summary .sub { grid-column: 2; font-size: 12.5px; color: var(--muted); }
.foldericon { font-size: 20px; grid-row: span 2; }
.youthphoto.small { width: 40px; height: 40px; flex: 0 0 40px; border-width: 1px; }

.youthpart { padding: 10px 0; border-top: 1px solid var(--line); }
#youthpart h2 + p + .youthpart { border-top: 0; padding-top: 0; }
button.chip.phrase.later { color: var(--warn); border-color: var(--warn-soft); }

.filelink { display: inline-block; margin: -6px 0 8px 52px; font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }

/* Notes to the house parent */
.topiclist { display: grid; gap: 6px; }
.topic { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-weight: 400; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.topic input { margin-top: 4px; width: 18px; height: 18px; }
.topic .sub { display: block; font-size: 13px; color: var(--muted); }
.topic:has(input:checked) { border-color: var(--violet); background: var(--accent-soft); }
.notebox { padding: 10px 0; border-top: 1px solid var(--line); }
.notebox:first-of-type { border-top: 0; }
.reply { margin: 6px 0 0; padding: 8px 10px; background: var(--accent-soft); border-radius: 8px; font-size: 14px; }
.sendnote { margin: 0 0 16px; }

/* Confidentiality */
.confidential { text-align: center; font-size: 12px; color: var(--muted); margin: 28px 0 0; }
.agreement { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.agreement .card { max-width: 560px; width: 100%; padding: 24px 22px; }
.agreement ul { padding-left: 20px; margin: 6px 0 12px; }
.agreement li { margin-bottom: 6px; }
.agreement h2 { margin-top: 16px; }
.agreecheck { align-items: flex-start; font-weight: 700; background: var(--accent-soft); padding: 10px 12px; border-radius: 10px; }
.agreecheck input { margin-top: 3px; flex: 0 0 22px; }

/* Staff home: your shift */
.shiftcard { display: block; text-decoration: none; color: var(--ink); border-top: 4px solid var(--gold); }
.shiftcard .big { font-size: 22px; font-weight: 800; margin: 0; }
.shiftcard .sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.nextcheck { margin: 8px 0 0; padding: 8px 10px; background: var(--accent-soft); border-radius: 8px; font-size: 15px; }
.calmline { text-align: center; margin: 4px 0 12px; }

.safetyrow > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.safetyrow > summary::-webkit-details-marker { display: none; }
.safetyrow > summary .sub { display: block; font-size: 13px; color: var(--muted); }
.safetyrow.due { border-left: 4px solid var(--red); }
.statusform select { width: auto; min-height: 40px; padding: 4px 8px; font-size: 14px; }
.nowrap { white-space: nowrap; }
.topbar .helpbtn { margin-left: auto; margin-right: 6px; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; font-size: 17px;
  color: #fff; border: 2px solid rgba(255,255,255,.75); }
.topbar .bell { position: relative; margin-left: 0; margin-right: 10px; font-size: 20px; text-decoration: none; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.topbar .bell + .sos { margin-left: 0; }
.bellcount { position: absolute; top: 2px; right: 0; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 5px; line-height: 1.3; }
.tstable { width: 100%; border-collapse: collapse; margin: 8px 0; }
.tstable th, .tstable td { padding: 4px; text-align: left; font-size: 14px; }
.tstable input { min-height: 40px; padding: 6px 8px; }
.chip.on { background: var(--accent); color: #fff; }

/* --- Round 2 phone fixes (2026-11-15) --- */
/* Date/time side by side: columns may shrink below the input's built-in width (no sideways scroll at 360px). */
.timepair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.timepair input, .timepair select { min-width: 0; width: 100%; }
/* Dark mode: the phone's own controls (tick boxes, date pickers) follow the theme. */
:root { color-scheme: light; accent-color: var(--accent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }
:root[data-theme="dark"] { color-scheme: dark; }
/* Top bar: every button at least 44px, so it's easy to hit at night. */
.topbar .helpbtn { width: 44px; height: 44px; flex: 0 0 44px; margin-right: 2px; }
.topbar .bell { min-width: 44px; min-height: 44px; margin-right: 4px; }
.topbar .sos { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; font-size: 14px; }
@media (max-width: 400px) {
  .topbar .brand { font-size: 18px; gap: 6px; }
  .topbar .demo-tag { display: none; }
}
/* Small tap targets */
.micbtn { min-height: 44px; }
details > summary { min-height: 44px; }
.howto { display: inline-block; padding: 12px 0; }
/* Cleaning jobs: full-size chips; Remove on its own line so it isn't hit by mistake. */
.jobrow .chips span { min-height: 44px; padding: 8px 12px; font-size: 15px; }
.jobrow .removechip { display: block; margin-top: 6px; }
/* Inputs under 16px make iPhones zoom in. */
.intakerow input[type=text], .statusform select { font-size: 16px; }

/* --- Youth profile (record page) --- */
.profilecard { display: flex; gap: 16px; align-items: center; background: var(--hero); color: #fff; border-radius: var(--radius);
  padding: 18px; margin: 6px 0 12px; box-shadow: 0 10px 30px rgba(27, 20, 70, .18); }
.profilephoto { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.85); }
.profilephoto.initials { display: grid; place-items: center; background: var(--grad); font-size: 30px; font-weight: 800; letter-spacing: .02em; }
.profilemain { min-width: 0; }
.profilemain h1 { margin: 0 0 2px; color: #fff; font-size: 24px; line-height: 1.15; }
.profileline { margin: 2px 0; font-size: 15px; }
.profilecard .profileline.muted { color: rgba(255,255,255,.78); }
.profiletags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.tag.red { background: #ff5a6e; border-color: #ff5a6e; }
.actionpills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.pill-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.pill-btn.primary { background: var(--grad); color: #fff; border-color: transparent; }
.facts { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 6px 0 0; }
@media (min-width: 620px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.fact dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; }
.fact dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.peoplegrid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 8px 0; }
@media (min-width: 620px) { .peoplegrid { grid-template-columns: 1fr 1fr; } }
.personcard { position: relative; display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; background: var(--card); min-width: 0; overflow-wrap: anywhere; }
.personcard.self { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--accent-soft); border: 0; margin-bottom: 8px; }
.personcard .role { align-self: flex-start; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.personcard.self .role { background: var(--card); }
.personcard .name { font-size: 16px; }
.personcard a { text-decoration: none; font-size: 14.5px; }
.personcard .editlink { position: absolute; top: 10px; right: 12px; }
.emptyfolders { margin: 10px 0 0; }
.customrow { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
@media (min-width: 620px) { .customrow { grid-template-columns: 1fr 1.6fr auto; align-items: start; } }
.customrow textarea, .customrow input[type=text] { margin: 0; }
.lockbox { margin: 0; white-space: nowrap; }
.factlink { display: block; margin-top: 2px; text-decoration: none; }
.privatebox { margin-top: 14px; padding: 12px; border-radius: 14px; border: 1px dashed var(--accent); background: var(--card); }
.privatebox h3 { margin: 0 0 6px; font-size: 14px; }
.privatebox .fact { background: var(--warn-soft); }
