/* John Ross Robertson Child Centre. Apple HIG: clarity, large targets, grouped surfaces. */
:root {
  --bg: #f5f5f7;
  --sidebar: #ececef;
  --card: #ffffff;
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --teal: #1a7a86;
  --teal-press: #146772;
  --teal-soft: rgba(26, 122, 134, 0.12);
  --red: #ff3b30;
  --green-soft: #e8f6ef;
  --green-ink: #0d6b3d;
  --red-soft: #fdeceb;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(26, 122, 134, 0.45); outline-offset: 2px; }

.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.nav {
  background: var(--sidebar);
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 4px 8px 16px;
  color: var(--ink);
  text-decoration: none;
}
.brand img { width: 54px; height: auto; background: white; border-radius: 10px; }
.brand strong { display: block; font-size: 14px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.2; }
.brand small { display: block; color: var(--secondary); font-size: 12px; margin-top: 2px; }
.nav a.item {
  color: var(--ink);
  text-decoration: none;
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
}
.nav a.item:hover { background: rgba(0, 0, 0, 0.04); }
.nav a.item.on { background: var(--teal-soft); color: var(--teal); }
.nav .count {
  display: inline-block;
  min-width: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
.sibling-card { margin-bottom: 16px; }
.sibling-card h2 { margin: 0 0 8px; color: var(--ink); font-size: 20px; letter-spacing: -0.02em; }
.sibling-card ul { margin: 12px 0 16px; padding-left: 18px; }
.sibling-card li { margin: 8px 0; }
.nav .spacer { flex: 1; }
.nav form { margin: 8px 0 0; }
.nav button.linkish, a.quiet {
  background: transparent;
  color: var(--secondary);
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: left;
  width: 100%;
  border-radius: 10px;
}
.nav button.linkish:hover, a.quiet:hover { background: rgba(0, 0, 0, 0.04); }

main { padding: 32px 36px 72px; max-width: 1080px; min-width: 0; }
h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  line-height: 1.1;
}
h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--secondary);
  margin: 28px 4px 8px;
}
.lede { color: var(--secondary); margin: 0 0 20px; font-size: 15px; max-width: 62ch; }
.flash, .error {
  padding: 12px 14px;
  border-radius: 12px;
  margin: 0 0 16px;
}
.flash { background: var(--green-soft); color: var(--green-ink); }
.error { background: var(--red-soft); color: #9b1c14; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.card, .panel, table, form.box {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.card { padding: 22px 24px; color: inherit; text-decoration: none; display: block; }
.card:hover { box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 12px 28px rgba(0,0,0,0.06); }
.card .k { color: var(--secondary); font-size: 13px; font-weight: 500; }
.card .v { font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 650; letter-spacing: -0.03em; margin-top: 4px; }
.card .meta, .muted { color: var(--secondary); }
.nums { display: flex; gap: 16px; margin-top: 12px; }
.nums div { font-variant-numeric: tabular-nums; font-weight: 600; }
.nums span { display: block; color: var(--secondary); font-size: 11px; font-weight: 500; }
.small { font-size: 13px; }

table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--secondary); font-weight: 600; background: #fafafa; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 16px; }
.tabs a, .badge {
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--card);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}
.tabs a.on { background: var(--teal); color: white; }
.badge.sibling { background: #e7f4f6; color: var(--teal); }
.badge.staff { background: #ece8f8; color: #3d348b; }
.badge.general { background: #f2f2f4; color: var(--secondary); }
.badge.warn { background: #fff4e5; color: #8a4b08; }

.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--secondary); margin: 20px 0 8px; }
form label:first-of-type,
.two > div > label:first-child { margin-top: 0; }
main > form,
.two > form,
form.box,
.panel {
  background: var(--card);
  padding: 28px 28px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin: 8px 0 28px;
}
main > form > p,
.two > form > p,
form.box > p { margin: 24px 0 0; }
form h2:first-child { margin-top: 0; }
.pair { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pair input { width: 140px; max-width: 160px; flex: 0 0 140px; }
section.card form { margin-top: 8px; }
.row-actions form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.row-actions input { width: 140px; max-width: 180px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="url"], input[type="file"], select, textarea {
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px;
  padding: 11px 12px;
  min-height: 44px;
}
.login-wrap input, .login-wrap select { max-width: 100%; }
#due-fields[hidden], #born-fields[hidden], #sibling-fields[hidden] { display: none; }
#apply-form .step[hidden] { display: none; }
#apply-form h2 { margin: 0 0 8px; font-size: 22px; }
.wizard-progress { margin: 0 0 8px; color: var(--secondary); font-size: 13px; font-weight: 600; }
.wizard-error { margin: 0 0 12px; color: #9b1c14; }
.wizard-error[hidden] { display: none; }
.wizard-nav { display: flex; gap: 8px; margin-top: 8px; }
#wizard-back[hidden], #wizard-next[hidden], #wizard-submit[hidden] { display: none; }
#apply-form .choices { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
#apply-form .choices button {
  width: 100%;
  justify-content: flex-start;
  background: #f2f2f4;
  color: var(--ink);
}
#apply-form .choices button.on,
#apply-form .choices button.on:hover { background: var(--teal); color: #fff; }
.review { list-style: none; padding: 0; margin: 8px 0 0; }
.review li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.address-field { position: relative; }
.address-list {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 240px;
  overflow: auto;
}
.address-list[hidden] { display: none; }
.address-list button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 44px;
}
.address-list button.on,
.address-list button:hover { background: #f2f2f4; }
.address-split { display: grid; grid-template-columns: 96px 1fr; gap: 0 12px; }
textarea { max-width: 100%; min-height: 88px; }
button, .button {
  background: var(--teal);
  color: white;
  border: 0;
  border-radius: 10px;
  min-height: 44px;
  padding: 0 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}
button:hover, .button:hover { background: var(--teal-press); }
button.secondary, .button.secondary { background: #e5e5ea; color: var(--ink); }
button.secondary:hover, .button.secondary:hover { background: #d8d8de; }
button.danger { background: var(--red); }
button.danger:hover { background: #e0342a; }
.stack { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; align-items: start; }
.login-wrap { max-width: 420px; margin: 8vh auto; }
.login-wrap .panel { padding: 28px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--ink); font-weight: 500; min-height: 44px; }
.banner {
  background: #fff8eb;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 14px;
}
footer.note { margin-top: 28px; color: var(--secondary); font-size: 12px; }
code { font-size: 0.92em; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .nav {
    position: static;
    height: auto;
    overflow: visible;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand { padding-bottom: 8px; width: 100%; }
  .nav .spacer { display: none; }
  .nav form { margin: 0; }
  .two { grid-template-columns: 1fr; }
  main { padding: 20px 16px 64px; }
  h1 { font-size: 28px; }
  table { display: block; overflow-x: auto; }
}
.pair input { width: 140px; max-width: 160px; flex: 0 0 140px; }
form.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(520px, 100%);
  margin: 18px 0 20px;
  padding: 6px 14px 6px 14px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 30px rgba(28, 28, 30, 0.06);
}
form.search label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
form.search .search-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--secondary);
}
form.search input[type="search"] {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
}
form.search input[type="search"]:focus { outline: none; }
form.search input[type="search"]::-webkit-search-decoration,
form.search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
form.search button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(26, 122, 134, 0.92);
  box-shadow: none;
}
form.search .search-clear {
  color: var(--secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 8px;
  background: transparent;
  min-height: 0;
}
form.search .search-clear:hover { background: transparent; color: var(--ink); }
form.search .search-clear[hidden] { display: none; }
table.board tbody tr[hidden] { display: none; }
.row-cat[hidden] { display: none; }
@media (max-width: 860px) {
  form.search { width: 100%; }
}
main.wide { max-width: none; padding-bottom: 16px; }
main.wide .page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}
main.wide .page-head .lede { margin-bottom: 0; }
main.wide .tally {
  margin: 0;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
main.wide .toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0 14px;
}
main.wide .toolbar form.search { flex: 1; width: auto; max-width: 720px; margin: 0; }
main.wide .actions { display: flex; gap: 8px; margin: 0; }
.board-wrap {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: auto;
  max-height: calc(100vh - 268px);
  min-width: 0;
  max-width: 100%;
}
table.board { width: 100%; table-layout: fixed; border-radius: 0; box-shadow: none; overflow: visible; }
table.board th, table.board td { padding: 10px 12px; }
table.board th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fafafa;
}
table.board td.phone, table.board td.when, table.board td.days, table.board td.tier, table.board td.next {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.board td.who { white-space: normal; overflow: visible; }
table.board td.who a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
form.invite {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 8px 0 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
form.invite select, form.invite input[type="date"] { width: auto; max-width: 180px; min-height: 32px; }
form.invite button { min-height: 32px; padding: 0 10px; font-size: 13px; }
table.board td.mail { max-width: 220px; }
table.board td.mail a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
table.board td.notes { color: var(--secondary); font-size: 13px; }
button.note-open {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--secondary);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}
button.note-open:hover { background: transparent; color: var(--ink); }
button.note-open span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-line;
}
button.note-open small { display: block; margin-top: 2px; color: var(--teal); font-size: 11px; font-weight: 600; }
#note-sheet {
  position: fixed;
  top: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100vw - 32px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
#note-sheet[hidden] { display: none; }
#note-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
#note-sheet header strong { display: block; font-size: 17px; }
#note-sheet header span { display: block; color: var(--secondary); font-size: 13px; }
#note-close { background: #e5e5ea; color: var(--ink); min-height: 36px; border-radius: 999px; }
#note-history { flex: 1; overflow: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: #f5f5f7; }
#note-history article { background: #fff; border-radius: 12px; padding: 12px 14px; }
#note-history time, #note-history span { display: block; color: var(--secondary); font-size: 12px; }
#note-history strong { display: block; margin-top: 4px; }
#note-history p { margin: 6px 0 0; white-space: pre-wrap; }
#note-history em { display: block; margin-top: 6px; color: var(--teal); font-style: normal; font-size: 13px; }
#note-form { margin: 0; padding: 12px 14px 14px; border-top: 1px solid var(--line); background: #fff; }
#note-form textarea { width: 100%; min-height: 72px; margin: 0; }
#note-result { min-height: 1.2em; margin: 8px 0; color: var(--secondary); }
table.board tbody tr:hover td { background: rgba(26, 122, 134, 0.045); }
@media (max-width: 860px) {
  main.wide .page-head, main.wide .toolbar { display: block; }
  main.wide .toolbar form.search { max-width: none; margin: 0 0 12px; }
  main.wide .actions { margin-top: 8px; }
  .board-wrap { max-height: none; }
  table.board { display: table; table-layout: fixed; width: 100%; }
  table.board .desk { display: none; }
  table.board th, table.board td { padding: 8px 6px; }
  table.board .num { width: 8% !important; }
  table.board .who { width: 26% !important; }
  table.board .phone { width: 28% !important; }
  table.board .when { width: 14% !important; }
  table.board .notes { width: 24% !important; }
}
.ask { position: fixed; right: 24px; bottom: 24px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; }
#ask-open {
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 17px;
  box-shadow: 0 8px 28px rgba(26, 122, 134, 0.28);
}
#ask-open[hidden] { display: none; }
#ask-form {
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100vw - 32px));
  height: min(680px, calc(100vh - 120px));
  margin: 0 0 12px;
  padding: 0;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}
#ask-form[hidden] { display: none; }
#ask-form header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
#ask-form header strong { display: block; font-size: 17px; letter-spacing: -0.02em; }
#ask-form header span { display: block; color: var(--secondary); font-size: 13px; margin-top: 2px; }
#ask-close {
  background: #e5e5ea;
  color: var(--ink);
  min-height: 36px;
  border-radius: 999px;
  padding: 0 14px;
}
#ask-log {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  margin: 0;
  max-height: none;
  background: #f5f5f7;
}
#ask-log p { margin: 0; max-width: 85%; white-space: pre-wrap; }
#ask-log .hint { max-width: none; color: var(--secondary); font-size: 15px; }
#ask-log .mine {
  align-self: flex-end;
  background: var(--teal);
  color: white;
  border-radius: 18px 18px 6px 18px;
  padding: 12px 14px;
}
#ask-log .answer {
  align-self: flex-start;
  background: white;
  color: var(--ink);
  border-radius: 18px 18px 18px 6px;
  padding: 12px 14px;
}
.composer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--line);
}
.composer input {
  flex: 1;
  min-height: 44px;
  border-radius: 22px;
  background: #f2f2f7;
  border: 0;
  padding: 0 16px;
}
.composer button { border-radius: 22px; min-height: 44px; padding: 0 16px; }
/* Parent application. Apple grouped card, Google filled fields and address suggestions. */
.apply-page { background: #f2f2f7; }
.apply-page main { max-width: none; padding: 28px 20px 48px; }
.apply-page .login-wrap { max-width: 440px; width: 100%; margin: 0 auto; }
.apply-page .login-wrap .panel {
  padding: 22px 22px 20px;
  border-radius: 22px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 16px 40px rgba(0, 0, 0, 0.06);
}
.apply-page .steps-bar { display: flex; gap: 6px; margin: 0 0 14px; }
.apply-page .steps-bar span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #e5e5ea;
}
.apply-page .steps-bar span.on { background: #1a7a86; }
.apply-page .wizard-progress {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #6e6e73;
}
.apply-page h1 {
  font-size: 32px;
  letter-spacing: -0.035em;
  margin: 0 0 6px;
}
.apply-page .lede { font-size: 15px; margin-bottom: 18px; }
.apply-page #apply-form .step h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.apply-page #apply-form label {
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3a3a3c;
}
.apply-page #apply-form input,
.apply-page #apply-form select {
  width: 100%;
  max-width: none;
  min-height: 52px;
  font-size: 16px;
  line-height: 1.3;
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  background: #f2f2f7;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.apply-page #apply-form input:focus,
.apply-page #apply-form select:focus {
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 2px #1a7a86;
}
.apply-page .wizard-nav { display: flex; gap: 10px; margin-top: 22px; }
.apply-page .wizard-nav button {
  flex: 1;
  justify-content: center;
  min-height: 52px;
  border-radius: 14px;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.apply-page #wizard-back { flex: 0.7; }
.apply-page #apply-form .choices { gap: 10px; }
.apply-page #apply-form .choices button {
  min-height: 56px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  padding: 0 16px;
  background: #f2f2f7;
  color: #1d1d1f;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.apply-page #apply-form .choices button.on,
.apply-page #apply-form .choices button.on:hover {
  background: #1a7a86;
  color: #fff;
  box-shadow: none;
}
.apply-page .care-note {
  margin: 16px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: #e7f4f6;
  color: #146772;
  font-size: 15px;
  font-weight: 600;
}
.apply-page .review { margin-top: 4px; }
.apply-page .review li {
  display: grid;
  grid-template-columns: minmax(88px, 34%) 1fr;
  gap: 4px 16px;
  align-items: start;
  padding: 12px 0;
  font-size: 15px;
}
.apply-page .review .k { color: #6e6e73; }
.apply-page .review .v { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.apply-page .address-list {
  z-index: 30;
  padding: 6px;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
}
.apply-page .address-list button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  height: auto;
  min-height: 52px;
  padding: 10px 12px;
  white-space: normal;
  background: transparent;
  color: #1d1d1f;
}
.apply-page .address-list button strong { font-size: 15px; font-weight: 650; }
.apply-page .address-list button small { color: #6e6e73; font-size: 13px; font-weight: 500; }
.apply-page .address-list button.on,
.apply-page .address-list button:hover { background: #f2f2f7; }
.apply-page .small.muted { font-size: 13px; line-height: 1.4; }
@media (max-width: 860px) {
  .apply-page .nav {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.9fr;
    align-items: center;
    gap: 6px;
    padding: 10px 12px 8px;
  }
  .apply-page .brand {
    grid-column: 1 / -1;
    width: 100%;
    flex: none;
    padding: 0 0 2px;
  }
  .apply-page .brand img { width: 40px; }
  .apply-page .brand strong { font-size: 16px; line-height: 1.15; }
  .apply-page .nav a.item {
    text-align: center;
    white-space: nowrap;
    padding: 8px 4px;
    font-size: 13px;
  }
  .apply-page main { padding: 8px 16px 160px; }
  .apply-page #apply-form input,
  .apply-page #apply-form select { scroll-margin-bottom: 150px; }
  .apply-page .login-wrap .panel {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 8px 0 0;
  }
  .apply-page h1 { font-size: 28px; }
  .apply-page .wizard-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(242, 242, 247, 0.92);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .apply-page .address-split { grid-template-columns: 88px 1fr; }
}
@media (max-width: 380px) {
  .apply-page .review li { grid-template-columns: 1fr; gap: 2px; }
  .apply-page .review .v { text-align: left; }
  .apply-page .nav a.item { font-size: 12px; }
}

@media (max-width: 860px) {
  .ask { right: 16px; left: auto; bottom: 16px; }
  #ask-form {
    position: fixed;
    inset: 12px;
    width: auto;
    height: auto;
    margin: 0;
  }
}
