/* Atlantic Splash: the staff side (the owner's admin on staff.html).
   Built on the tokens and parts of site.css (colors, .btn, .pill, .field, .box, .av, .modal). Phone first. */
.staff { --st-field: #c9d9e6; --st-tint: #eaf3fa; --st-row: #f7fbfe; --st-okline: #bfe6cf; --st-waitline: #f1d98a; --st-ink-ok: #0c5a31; }

/* ---------- frame ---------- */
.st-app { position: relative; display: grid; min-height: calc(100vh - 70px); }
.st-side { display: none; }
.st-main { min-width: 0; padding: 20px 16px 40px; }
/* st-w: computers only; st-n: phones and tablets only */
@media (min-width: 1000px) { .st-n { display: none !important; } }
@media (max-width: 999px) {
  .st-w { display: none !important; }
  body.st-on { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
  body.st-on .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 1000px) {
  body.st-on .toast { left: auto; right: 28px; bottom: 28px; max-width: 440px; text-align: left; transform: translateY(10px); }
  body.st-on .toast.on { transform: translateY(0); }
}

/* side menu (computers) */
.st-school { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; color: var(--navy); }
.st-school svg { width: 40px; height: 40px; flex: none; }
.st-school b { display: block; font-weight: 800; font-size: 16px; line-height: 1.15; letter-spacing: -0.2px; }
.st-school small { display: block; font-weight: 600; font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ocean); }
.st-nav { display: grid; gap: 4px; }
.st-nav a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; white-space: nowrap; border-radius: 14px; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.st-nav a svg { width: 20px; height: 20px; flex: none; }
.st-nav a:hover { background: rgba(255,255,255,.75); color: var(--navy); }
.st-nav a[aria-current="page"] { background: #fff; color: var(--navy); box-shadow: 0 0 0 1px var(--line), 0 6px 16px -12px rgba(8,43,103,.45); }
.st-nav a[aria-current="page"] svg { color: var(--act); }
.st-count { margin-left: auto; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--act); color: #fff; font-weight: 700; font-size: 12.5px; line-height: 22px; text-align: center; }
.st-me { display: flex; align-items: center; gap: 12px; margin-top: auto; padding: 16px 6px 2px; border-top: 1px solid var(--line); }
.st-me .av { width: 38px; height: 38px; font-size: 12.5px; }
.st-mew { display: grid; justify-items: start; min-width: 0; line-height: 1.3; }
.st-mew b { color: var(--navy); font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.st-out { padding: 2px 0; border: 0; background: none; color: var(--act); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.st-out:hover { text-decoration: underline; text-underline-offset: 3px; }

/* tab bar and the KM menu (phones) */
.st-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: #fff; box-shadow: 0 -1px 0 var(--line), 0 -14px 30px -24px rgba(8,43,103,.55); }
.st-tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 2px 4px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 12px; line-height: 1.2; text-decoration: none; }
.st-tabbar a svg { width: 24px; height: 24px; }
.st-tabbar a[aria-current="page"] { color: var(--act); }
.st-tabbar .st-count { position: absolute; top: 1px; left: calc(50% + 6px); min-width: 20px; height: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; margin: 0; }
.st-mebox { position: absolute; top: 20px; right: 16px; z-index: 6; }
.st-mebtn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; background: var(--act); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
.st-mebtn .av { width: 40px; height: 40px; font-size: 13px; }
.st-pop { position: absolute; top: calc(100% + 8px); right: 0; width: 220px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgba(8,43,103,.5); }
.st-pop p { padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.st-pop a, .st-pop button { display: block; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none; color: var(--navy); font-weight: 600; font-size: 15px; line-height: 44px; text-align: left; text-decoration: none; cursor: pointer; }
.st-pop a:hover, .st-pop button:hover { background: var(--soft); }

@media (min-width: 1000px) {
  .st-app { grid-template-columns: 240px minmax(0, 1fr); background: linear-gradient(90deg, var(--soft) 0 239px, var(--line) 239px 240px, transparent 240px); }
  .st-side { position: sticky; top: 70px; align-self: start; display: flex; flex-direction: column; height: calc(100vh - 70px); padding: 26px 14px 16px; background: var(--soft); box-shadow: inset -1px 0 0 var(--line); overflow-y: auto; }
  .st-main { padding: 34px clamp(24px, 2.6vw, 44px) 64px; }
  .st-main > * { max-width: 1240px; }
  .st-tabbar, .st-mebox { display: none; }
}

/* ---------- view head ---------- */
.st-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; }
.st-ttl { min-width: 0; }
.st-head h1 { font-weight: 800; font-size: clamp(27px, 2.7vw, 36px); line-height: 1.12; letter-spacing: -0.8px; color: var(--navy); }
.st-head h1:focus { outline: none; }
.st-sub { margin-top: 6px; max-width: 64ch; color: var(--muted); font-size: 15.5px; line-height: 1.5; }
.st-hacts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 999px) { .st-head { padding-right: 52px; } .st-head .st-sub { margin-right: -52px; } }

.btn .ic { width: 13px; height: 13px; flex: none; }
.btn.st-ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--st-field); }
.btn.st-ghost:hover { background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--act); }
.pill .ic { width: 10px; height: 10px; flex: none; }
.st-h2 { font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--navy); }
.st-h2:focus { outline: none; }

/* ---------- queue tabs ---------- */
.st-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 18px; padding: 4px; border-radius: 14px; background: var(--st-tint); }
.st-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 6px; border: 0; border-radius: 11px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; }
.st-tabs button b { font-weight: 700; }
.st-tabs button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(8,43,103,.14); }
@media (min-width: 1000px) {
  .st-tabs { display: flex; gap: 4px; margin-top: 22px; padding: 0; border-radius: 0; background: none; box-shadow: inset 0 -1px 0 var(--line); }
  .st-tabs button { min-height: 44px; padding: 0 14px; border-radius: 0; font-size: 15px; box-shadow: inset 0 -3px 0 transparent; }
  .st-tabs button:hover { color: var(--navy); }
  .st-tabs button[aria-pressed="true"] { background: none; box-shadow: inset 0 -3px 0 var(--act); }
}

/* ---------- search and filters ---------- */
.st-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 14px; }
.st-ftog { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 1.5px solid var(--st-field); border-radius: 12px; background: #fff; color: var(--navy); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.st-ftog .ic { width: 15px; height: 15px; }
.st-ftog[aria-expanded="true"] { border-color: var(--act); color: var(--act); }
.st-ftog b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--act); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.st-fbox { grid-column: 1 / -1; display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.st-fbox.open { display: grid; }
.st-tools-q .st-sel-session { grid-column: 1 / -1; }
.st-search { position: relative; display: block; }
.st-search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.st-search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border: 1.5px solid var(--st-field); border-radius: 12px; background: #fff; font-size: 15px; }
.st-search input::placeholder { color: #6b7d95; }
.st-sel { display: block; min-width: 0; }
.st-sel select { width: 100%; height: 44px; padding: 0 34px 0 13px; border: 1.5px solid var(--st-field); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%234a5d78' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 13px center / 10px 6px; color: var(--ink); font-weight: 600; font-size: 14.5px; text-overflow: ellipsis; appearance: none; -webkit-appearance: none; cursor: pointer; }
.st-sel.on select { border-color: var(--act); color: var(--act); box-shadow: inset 0 0 0 1px var(--act); }
.st-search input:focus, .st-sel select:focus { border-color: var(--act); outline: 3px solid rgba(8,127,229,.2); outline-offset: 0; }
.st-clear { justify-self: start; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--act); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.st-clear:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) {
  .st-tools { display: flex; flex-wrap: wrap; align-items: center; margin-top: 16px; }
  .st-ftog { display: none; }
  .st-fbox, .st-fbox.open { display: contents; }
  .st-search { flex: 1 1 260px; max-width: 360px; }
  .st-sel select { width: auto; max-width: 300px; }
}

/* ---------- tables (wide screens) and cards (phones, tablets) ---------- */
.st-tw { display: none; }
@media (min-width: 1280px) { .st-tw { display: block; } .st-tn { display: none !important; } }
.st-tbl { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14.5px; }
.st-tbl th { padding: 10px 9px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: 13px; text-align: left; white-space: nowrap; }
.st-tbl td { padding: 12px 9px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.st-tbl .num { text-align: right; }
.st-tbl tbody tr:hover td { background: var(--st-row); }
.st-tbl tr.st-picked td { background: #f1f8ff; }
.st-tbl tr.st-done.accepted td { background: var(--ok-bg); }
.st-tbl tr.st-done.declined td { background: #f3f6f9; }
.st-tbl tr.st-done.declined .st-kid, .st-tbl tr.st-done.declined .st-tm { color: var(--muted); }
.st-tbl tr.st-new td { background: #f2fbf6; }
.st-tbl .st-cb { width: 44px; }
.st-tbl input[type="checkbox"], .st-tbl input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--act); cursor: pointer; vertical-align: middle; }
.st-tbl .st-acts { text-align: right; white-space: nowrap; }
.st-tbl .st-acts .btn + .btn { margin-left: 8px; }
.st-nw { white-space: nowrap; }
.st-kid { display: block; font-weight: 700; font-size: 15.5px; line-height: 1.3; color: var(--navy); overflow-wrap: break-word; }
.st-age { display: block; margin-top: 1px; color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: break-word; }
.st-tbl .st-age { white-space: nowrap; }
.st-par { font-weight: 600; color: var(--ink); }
.st-tm { font-weight: 700; color: var(--ink); white-space: nowrap; }
.st-tm small, .st-t small, .st-cal th small.ap { margin-left: 1px; font-weight: 600; font-size: 12px; color: var(--muted); }
.st-who { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.st-who .av { width: 28px; height: 28px; font-size: 10.5px; }
.st-money { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.st-amt b { font-weight: 700; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-pr { display: block; white-space: nowrap; color: var(--muted); }
.st-pr b { color: var(--ink); font-weight: 700; }
.st-did { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-weight: 600; font-size: 14px; }
.st-did.ok { color: var(--ok); }
.st-did .ic { width: 12px; height: 12px; }
.st-qtbl .st-acts { width: 1%; }

.st-cards { display: grid; gap: 12px; margin-top: 14px; list-style: none; }
@media (min-width: 640px) { .st-cards { grid-template-columns: 1fr 1fr; } }
.st-card { min-width: 0; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1.5px var(--line), 0 12px 28px -26px rgba(8,43,103,.6); }
.st-card.st-done.accepted { background: var(--ok-bg); box-shadow: 0 0 0 1.5px var(--st-okline); }
.st-card.st-done.declined { background: #f3f6f9; }
.st-card.st-new { box-shadow: 0 0 0 2px var(--ok); }
.st-ctop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.st-ctop > span:first-child { min-width: 0; }
.st-card .st-kid { font-size: 17px; }
.st-line { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.st-line b { color: var(--ink); font-weight: 700; }
.st-line .st-pr { display: inline; }
.st-card .st-pills { margin-top: 10px; }
.st-card .st-did { margin-top: 10px; }
.st-cacts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 14px; }
.st-cacts .btn { width: 100%; min-height: 44px; }
.st-camt { margin-top: 8px; color: var(--muted); font-size: 14px; }
.st-camt b { margin-right: 8px; color: var(--ink); font-weight: 700; font-size: 15.5px; }
.st-card .btn.st-wide { width: 100%; min-height: 44px; margin-top: 14px; }
.st-date { color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }

.st-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 16px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.st-foot b { color: var(--ink); font-weight: 700; }
.st-foot p:focus { outline: none; }
.st-foot .st-clash { color: var(--warn); font-weight: 600; }
.st-foot .st-fcsv { margin-top: 6px; }
.st-empty { display: grid; justify-items: center; gap: 10px; margin-top: 18px; padding: 30px 22px; border-radius: 18px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); text-align: center; }
.st-empty b { color: var(--navy); font-size: 17px; }

/* ---------- calendar ---------- */
.st-cbar { display: grid; gap: 12px; margin-top: 18px; }
.st-csel select { max-width: none; }
.st-weeks { display: flex; flex-wrap: wrap; gap: 6px; }
.st-weeks button { width: 44px; height: 42px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--st-field); color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; }
.st-weeks button:hover { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--act); }
.st-weeks button[aria-pressed="true"] { background: var(--act); color: #fff; box-shadow: none; }
.st-wdate { color: var(--navy); font-weight: 600; font-size: 15px; }
@media (min-width: 1000px) {
  .st-cbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 20px; }
  .st-weeks button { width: 40px; height: 38px; font-size: 14.5px; }
}
.st-calbox { margin-top: 18px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1.5px var(--line); overflow: hidden; }
.st-cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.st-cal col.st-ct { width: 96px; }
.st-cal thead th { padding: 12px 14px; background: var(--soft); color: var(--navy); font-weight: 600; font-size: 15px; text-align: left; vertical-align: middle; }
.st-cal thead th + th { border-left: 1px solid var(--line); }
.st-cal thead th small { display: block; margin-top: 4px; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.st-cal thead .st-who { max-width: 100%; }
.st-cal thead .st-who > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.st-cal tbody th { padding: 0 12px; border-top: 1px solid var(--line); background: #fbfdff; color: var(--muted); font-weight: 600; font-size: 14px; text-align: left; white-space: nowrap; }
.st-cal tbody th small { margin-left: 1px; font-size: 12px; }
.st-cal td { height: 58px; padding: 6px 8px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.st-slot { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-width: 0; height: 44px; padding: 0 12px; border: 0; border-radius: 11px; font-weight: 700; font-size: 14.5px; line-height: 1.2; text-align: left; }
.st-slot > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-slot em { flex: none; font-style: normal; font-weight: 600; font-size: 12px; opacity: .9; white-space: nowrap; }
button.st-slot { cursor: pointer; }
.st-slot.ok { background: var(--ok-bg); color: var(--st-ink-ok); box-shadow: inset 0 0 0 1px var(--st-okline); }
.st-slot.wait { background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px var(--st-waitline); }
.st-slot.free { background: #fff; color: var(--muted); font-weight: 600; font-size: 13.5px; box-shadow: inset 0 0 0 1.5px #d6e3ed; }
button.st-slot.ok:hover { box-shadow: inset 0 0 0 1.5px var(--ok); }
button.st-slot.wait:hover { box-shadow: inset 0 0 0 1.5px var(--warn); }
.st-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; list-style: none; color: var(--muted); font-size: 14px; }
.st-legend li { display: inline-flex; align-items: center; gap: 8px; }
.st-legend i { width: 14px; height: 14px; border-radius: 4px; }
.st-legend i.ok { background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--st-okline); }
.st-legend i.wait { background: var(--warn-bg); box-shadow: inset 0 0 0 1px var(--st-waitline); }
.st-legend i.free { background: #fff; box-shadow: inset 0 0 0 1.5px #c9d9e6; }
/* one instructor at a time on phones */
.st-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin-top: 16px; padding: 4px; border-radius: 14px; background: var(--st-tint); }
.st-seg button { min-height: 42px; border: 0; border-radius: 11px; background: none; color: var(--muted); font-weight: 600; font-size: 15px; cursor: pointer; }
.st-seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(8,43,103,.14); }
.st-pwho { margin-top: 12px; color: var(--muted); font-weight: 600; font-size: 14px; }
.st-day { display: grid; gap: 8px; margin-top: 10px; list-style: none; }
.st-day li { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: center; gap: 10px; }
.st-t { color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.st-day .st-slot { height: 48px; }

/* the details window */
.st-modal .dlg { width: min(520px, 100%); }
.st-modal .dlg h2:focus { outline: none; }
.st-modal .kick { margin-bottom: 4px; }
.st-dsub { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.st-mb { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.st-mbh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.st-mbh p b { margin-right: 8px; color: var(--navy); font-weight: 700; font-size: 18px; }
.st-mbh p span { color: var(--muted); font-size: 14.5px; }
.st-dl { display: grid; gap: 6px; margin-top: 10px; font-size: 14.5px; }
.st-dl div { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
.st-dl dt { color: var(--muted); }
.st-dl dd { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.st-dl a { font-weight: 600; }
.st-mact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; margin-top: 12px; }
.st-mact .btn { width: 100%; min-height: 44px; }
@media (max-width: 520px) {
  .st-modal { padding: 10px; }
  .st-modal .dlg { padding: 22px 16px 18px; }
  .st-mb { padding: 12px 14px; }
  .st-dl { font-size: 14px; }
  .st-dl div { grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
}

/* ---------- sessions and prices ---------- */
.st-lh { margin-top: 30px; }
.st-stbl .avs .av { width: 28px; height: 28px; font-size: 10.5px; }
.st-saved { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px 14px; align-items: center; margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: var(--ok-bg); box-shadow: inset 0 0 0 1px var(--st-okline); }
.st-saved:focus:not(:focus-visible) { outline: none; }
.st-si { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #fff; }
.st-si .ic { width: 16px; height: 14px; }
.st-saved b { display: block; color: var(--st-ink-ok); font-weight: 700; line-height: 1.35; }
.st-saved p { margin-top: 3px; color: #2c6e48; font-size: 14.5px; line-height: 1.45; }
.st-saved .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 760px) { .st-saved { grid-template-columns: 40px minmax(0, 1fr) auto; } .st-saved .btn { grid-column: auto; } }

.st-form { margin-top: 24px; }
.st-fgrid { display: grid; gap: 16px; margin-top: 14px; }
@media (min-width: 760px) { .st-fgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.st-pnl { container-type: inline-size; display: grid; gap: 14px; align-content: start; min-width: 0; padding: 20px; }
.st-pnl h3 { font-weight: 700; font-size: 17px; color: var(--navy); }
.st-two { display: grid; gap: 12px; }
@container (min-width: 290px) { .st-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.st-two .field, .st-pnl .field input, .st-pnl .field select { min-width: 0; }
.st-pnl .field select { appearance: none; -webkit-appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%234a5d78' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 10px 6px; cursor: pointer; }
.st-pnl .field label small { display: block; }
.st-ro { display: flex; align-items: center; min-height: 50px; padding: 10px 14px; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--navy); font-weight: 600; font-size: 15.5px; }
.st-dollar { position: relative; display: block; }
.st-dollar > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.st-dollar input { padding-left: 30px; }
.st-insts { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.st-insts legend { margin-bottom: 8px; padding: 0; color: var(--navy); font-weight: 600; font-size: 14.5px; }
.st-insts .check { align-items: center; }
.st-insts .check input { margin-top: 0; }
.st-insts .err { color: var(--bad); font-size: 14px; font-weight: 500; }
.st-note { color: var(--muted); font-size: 14px; }
.st-tiers { display: grid; }
.st-tier { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 14.5px; }
.st-tier b { margin-right: auto; color: var(--navy); font-weight: 700; }
.st-tier span { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.st-tier small { margin-left: 3px; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.st-frow { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }

/* ---------- payments ---------- */
.st-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 20px; padding: 18px 20px; border-radius: 18px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.st-total span { color: var(--muted); font-weight: 600; }
.st-total b { color: var(--navy); font-weight: 800; font-size: clamp(30px, 4vw, 40px); line-height: 1; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; }
.st-pay .st-kid { font-size: 19px; }

/* ---------- login ---------- */
.st-login { display: grid; place-items: center; min-height: calc(100vh - 70px); padding: 40px 16px 64px; background: linear-gradient(180deg, var(--soft), #fff 70%); }
.st-lcard { width: min(440px, 100%); padding: 30px 26px 28px; }
.st-lcard > svg { width: 60px; height: 60px; }
.st-lcard .h2 { margin-top: 16px; }
.st-lcard .h2:focus { outline: none; }
.st-lcard .form { margin-top: 22px; }
.st-lcard .btn { width: 100%; margin-top: 4px; }
@media (max-width: 640px) { .st-login { align-items: start; padding-top: 32px; } }

@media (prefers-reduced-motion: reduce) {
  .st-tbl td, .st-card, .st-slot { transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .st-tbl td, .st-card { transition: background-color .25s ease; }
}
