/* AAR System Parent Console. Uses the palette from style.css. Phone first: parents mostly open this on a phone. */

.pc { --pc-ok: #0C6B39; --pc-ok-bg: #E3F7EA; --pc-bad: #B32626; --pc-bad-bg: #FDECEC; --pc-info: #1660D1; --pc-info-bg: #E9F1FF;
  --pc-hol: #8A5A00; --pc-hol-bg: #FFF1D6; --pc-mut: #55708F; --pc-mut-bg: #EEF1F5; background: var(--bg); min-height: 100svh; }
.pc-wrap { width: min(760px, 100% - 32px); margin-inline: auto; }
:where(.pc) a { color: inherit; }

/* ---------- the sign-in page: logo, colour, one centred box ---------- */
.pc-auth {
  background:
    linear-gradient(90deg, #0D3F8C, #1660D1 40%, #3F9BFF 70%, #17B05F) top / 100% 6px no-repeat,
    radial-gradient(900px 480px at 50% -8%, rgba(63, 155, 255, .34), transparent 70%),
    radial-gradient(420px 360px at 12% 24%, rgba(23, 176, 95, .20), transparent 70%),
    radial-gradient(420px 360px at 88% 20%, rgba(242, 169, 0, .22), transparent 70%),
    radial-gradient(560px 340px at 6% 100%, rgba(23, 176, 95, .18), transparent 70%),
    radial-gradient(560px 340px at 96% 92%, rgba(63, 155, 255, .20), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(22, 96, 209, .13) 1px, transparent 0) 0 0 / 26px 26px,
    var(--bg);
  display: flex; flex-direction: column;
}
.pc-top { padding: 14px 0; }
.pc-top-in { width: min(1120px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pc-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.pc-brand-dark { color: var(--navy); }
.pc-short { display: none; }
.pc-top-link { white-space: nowrap; font-weight: 700; font-size: .92rem; color: var(--blue); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .8); }
.pc-top-link:hover { border-color: var(--blue); }

.pc-auth-main { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 16px 40px; }
.pc-logo { width: 128px; margin: 6px 0 14px; }
.pc-logo img { width: 100%; height: auto; filter: drop-shadow(0 16px 30px rgba(22, 96, 209, .35)); }
.pc-eyebrow { margin: 0 0 6px; font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); }
.pc-title { margin: 0; font-size: clamp(2rem, 6.4vw, 3.3rem); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; color: var(--navy); max-width: 16ch; }
.pc-lede { max-width: 30rem; margin: 14px auto 0; font-size: 1.08rem; color: var(--muted); }

.pc-card { width: min(420px, 100%); margin-top: 26px; padding: 0; overflow: hidden; text-align: left; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: 0 22px 60px rgba(15, 52, 110, .20), 0 2px 8px rgba(15, 52, 110, .06); }
.pc-card-head { display: flex; align-items: center; gap: 12px; padding: 16px 24px; color: #fff; background: linear-gradient(100deg, var(--navy), var(--blue) 70%, var(--blue-2)); }
.pc-card-head h2 { margin: 0; font-size: 1.3rem; color: #fff; }
.pc-card-head p { margin: 0; font-size: .86rem; opacity: .88; }
.pc-card-ico { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .2); }
.pc-card-body { padding: 22px 24px 20px; }
.pc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.pc-field > label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.pc-input { display: flex; align-items: center; background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.pc-input:hover { border-color: #b9cdea; }
.pc-input:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(22, 96, 209, .14); }
.pc-input input { flex: 1; min-width: 0; padding: 12px 14px; border: 0; background: transparent; font: inherit; color: var(--ink); outline: none; }
.pc-input-prefix .pc-prefix { padding: 0 4px 0 14px; font-weight: 700; color: var(--muted); }
.pc-input-prefix input { padding-left: 8px; }
.pc-eye { display: grid; place-items: center; width: 44px; height: 44px; margin-right: 2px; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 10px; }
.pc-eye:hover, .pc-eye[aria-pressed="true"] { color: var(--blue); }
.pc-err { margin: 0; font-size: .85rem; font-weight: 600; color: #B32626; }
.pc-err:empty { display: none; }
.pc-formerr { margin: 0 0 14px; padding: 11px 13px; border-radius: 12px; background: #FDECEC; border: 1px solid #F3C4C4; color: #8F1F1F; font-weight: 600; font-size: .95rem; }
.pc-formok { margin: 0 0 14px; padding: 11px 13px; border-radius: 12px; background: var(--ok-bg); border: 1px solid var(--ok-line); color: var(--ok); font-weight: 600; font-size: .95rem; }
.pc-links { display: flex; justify-content: center; margin-top: 12px; }
.pc-link { padding: 4px 6px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; text-decoration: none; }
.pc-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.pc-hint { margin: 6px 0 0; font-size: .85rem; line-height: 1.5; color: var(--muted); }

.pc-perks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 560px; }
.pc-perk { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 9px; border-radius: 999px; font-weight: 700; font-size: .92rem; border: 1px solid transparent; }
.pc-perk span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; }
.pc-perk-green { background: var(--pc-ok-bg); color: var(--pc-ok); border-color: #BFE8CF; }
.pc-perk-green span { color: var(--pc-ok); }
.pc-perk-blue { background: var(--pc-info-bg); color: var(--pc-info); border-color: #C9DCFB; }
.pc-perk-blue span { color: var(--pc-info); }
.pc-perk-amber { background: var(--pc-hol-bg); color: var(--pc-hol); border-color: #F1D88F; }
.pc-perk-amber span { color: var(--pc-hol); }

.pc-foot { padding: 18px 0 22px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.pc-foot-in { width: min(1120px, 100% - 32px); margin-inline: auto; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.pc-foot a { color: var(--blue); text-decoration: none; font-weight: 600; }

/* ---------- signed in ---------- */
.pc-in { padding-bottom: 84px; }
.pc-band { position: sticky; top: 0; z-index: 30; background: linear-gradient(100deg, var(--navy), var(--blue)); box-shadow: 0 6px 20px rgba(13, 63, 140, .25); border-bottom: 3px solid var(--blue-2); }
.pc-band-in { display: flex; align-items: center; gap: 14px; min-height: 62px; }
.pc-band .pc-brand > span { display: flex; flex-direction: column; line-height: 1.15; }
.pc-brand .brand-text { white-space: nowrap; }
.pc-band .pc-brand b { font-size: 1.05rem; letter-spacing: -.01em; }
.pc-band .pc-brand small { font-size: .74rem; opacity: .85; letter-spacing: .06em; }
.pc-nav { display: none; margin-left: auto; gap: 4px; }
.pc-nav a { padding: 8px 14px; border-radius: 999px; color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 700; font-size: .94rem; }
.pc-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.pc-nav a.on { background: #fff; color: var(--navy); }
.pc-avatar { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--navy); font-weight: 800; font-size: .9rem; text-decoration: none; flex: none; }
.pc-main { padding: 22px 0 28px; display: flex; flex-direction: column; gap: 18px; }

.pc-tabbar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.pc-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 12px; color: var(--muted); font-size: .72rem; font-weight: 700; text-decoration: none; }
.pc-tabbar a.on { color: var(--blue); background: var(--tint); }

.pc-nudge { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--pc-hol-bg); border: 1px solid #F1D88F; color: #6B4A00; }
.pc-nudge p { margin: 0; flex: 1; font-size: .94rem; line-height: 1.5; }
.pc-nudge a { font-weight: 800; }
.pc-nudge-ico { color: var(--pc-hol); margin-top: 1px; }
.pc-nudge-x { display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: none; color: var(--pc-hol); cursor: pointer; border-radius: 8px; }
.pc-nudge-x:hover { background: rgba(138, 90, 0, .12); }

.pc-hello .pc-kicker { margin: 0 0 2px; font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.pc-hello h1 { margin: 0; font-size: clamp(1.6rem, 5vw, 2.2rem); letter-spacing: -.025em; color: var(--navy); line-height: 1.15; }
.pc-sub { margin: 4px 0 0; color: var(--muted); }
.pc-hello-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.pc-monthnav { display: flex; gap: 8px; }
.pc-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--navy); text-decoration: none; }
a.pc-arrow:hover { border-color: var(--blue); color: var(--blue); }
.pc-arrow-off { opacity: .4; }

/* today: one big coloured card */
.pc-today { display: flex; align-items: center; gap: 16px; padding: 22px 20px; border-radius: 22px; color: #fff; box-shadow: 0 16px 36px rgba(15, 52, 110, .22); }
.pc-today-ico { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 18px; background: rgba(255, 255, 255, .22); }
.pc-today h2 { margin: 2px 0; font-size: clamp(1.6rem, 6vw, 2.1rem); letter-spacing: -.02em; line-height: 1.1; }
.pc-today p { margin: 0; }
.pc-today-date { font-size: .84rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.pc-today-detail { margin-top: 4px !important; font-size: 1rem; opacity: .95; }
.pc-today.pc-ok { background: linear-gradient(135deg, #17A860, #0C6B39); }
.pc-today.pc-bad { background: linear-gradient(135deg, #E04B4B, #A32626); }
.pc-today.pc-info { background: linear-gradient(135deg, #3F9BFF, #1660D1); }
.pc-today.pc-hol { background: linear-gradient(135deg, #F2A900, #B87400); }
.pc-today.pc-mut { background: linear-gradient(135deg, #7C93B1, #4B6483); }

.pc-panel { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 2px 8px rgba(15, 52, 110, .05); }
.pc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pc-panel-head h2 { margin: 0; font-size: 1.1rem; color: var(--navy); }
.pc-mt { margin-top: 20px; }
.pc-more { display: inline-flex; align-items: center; gap: 2px; font-weight: 700; font-size: .9rem; color: var(--blue); text-decoration: none; }
.pc-empty-note { margin: 0; color: var(--muted); }
.pc-center { text-align: center; }

.pc-month { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pc-ring { position: relative; width: 112px; height: 112px; flex: none; }
.pc-ring svg { display: block; width: 100%; height: 100%; }
.pc-ring-bg { fill: none; stroke: var(--pc-mut-bg); stroke-width: 9; }
.pc-ring-fg { fill: none; stroke-width: 9; stroke-linecap: round; stroke: var(--pc-ok); }
.pc-ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: var(--navy); }
.pc-ring.pc-lv-warn .pc-ring-fg { stroke: #F2A900; }
.pc-ring.pc-lv-bad .pc-ring-fg { stroke: #E04B4B; }
.pc-ring.pc-lv-mut .pc-ring-fg { stroke: #7C93B1; }
.pc-nums { flex: 1 1 150px; min-width: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pc-n { padding: 10px 12px; border-radius: 14px; }
.pc-n dt { font-size: .78rem; font-weight: 700; opacity: .85; }
.pc-n dd { margin: 0; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pc-n-ok { background: var(--pc-ok-bg); color: var(--pc-ok); }
.pc-n-info { background: var(--pc-info-bg); color: var(--pc-info); }
.pc-n-bad { background: var(--pc-bad-bg); color: var(--pc-bad); }
.pc-n-mut { background: var(--pc-mut-bg); color: var(--pc-mut); }
.pc-low { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--pc-hol-bg); color: var(--pc-hol); font-weight: 600; font-size: .94rem; }

.pc-holiday { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--pc-hol-bg); border: 1px solid #F1D88F; color: #6B4A00; }
.pc-holiday-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--pc-hol); flex: none; }
.pc-holiday p { margin: 0; }
.pc-holiday-k { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pc-holiday h3 { margin: 1px 0 1px; font-size: 1.15rem; }

.pc-news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pc-news-list li { display: flex; align-items: flex-start; gap: 12px; }
.pc-news-list strong { display: block; color: var(--ink); }
.pc-news-list small { color: var(--muted); }
.pc-pill { display: inline-block; flex: none; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pc-pill-notice { background: var(--pc-info-bg); color: var(--pc-info); }
.pc-pill-holiday { background: var(--pc-hol-bg); color: var(--pc-hol); }
.pc-pill-school { background: var(--pc-ok-bg); color: var(--pc-ok); }

.pc-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pc-chipn { padding: 12px 8px; border-radius: 16px; text-align: center; background: var(--pc-mut-bg); color: var(--pc-mut); }
.pc-chipn b { display: block; font-size: 1.4rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pc-chipn span { font-size: .74rem; font-weight: 700; }
.pc-chipn-ok, .pc-chipn.pc-lv-ok { background: var(--pc-ok-bg); color: var(--pc-ok); }
.pc-chipn-info { background: var(--pc-info-bg); color: var(--pc-info); }
.pc-chipn-bad, .pc-chipn.pc-lv-bad { background: var(--pc-bad-bg); color: var(--pc-bad); }
.pc-chipn.pc-lv-warn { background: var(--pc-hol-bg); color: var(--pc-hol); }

.pc-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.pc-cal-h { text-align: center; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 2px; }
.pc-day { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; padding: 6px 7px; display: flex; flex-direction: column; justify-content: space-between; font-weight: 700; font-size: .95rem; background: transparent; color: var(--muted); }
.pc-day i { align-self: flex-end; font-style: normal; font-size: .7rem; font-weight: 800; opacity: .9; line-height: 1; }
.pc-day-blank { background: transparent; }
.pc-day-present { background: var(--pc-ok-bg); color: var(--pc-ok); }
.pc-day-absent { background: #E04B4B; color: #fff; }
.pc-day-duty { background: var(--pc-info); color: #fff; }
.pc-day-off { background: var(--pc-mut-bg); color: #8DA0B9; }
.pc-day-notyet { background: #fff; color: var(--muted); border: 1.5px dashed #B6C5DA; }
.pc-day-before { background: transparent; color: #B6C5DA; }
.pc-day-future { background: transparent; color: #8DA0B9; border: 1.5px solid var(--line); }
.pc-day-today { box-shadow: 0 0 0 3px var(--blue-2); }
.pc-legend { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: .86rem; color: var(--muted); }
.pc-legend li { display: inline-flex; align-items: center; gap: 7px; }
.pc-sw { display: inline-block; width: 16px; height: 16px; border-radius: 5px; }
.pc-daylist { margin: 0; font-weight: 700; color: var(--pc-bad); line-height: 1.8; }
.pc-offlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pc-offlist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--pc-mut-bg); }
.pc-offlist span { color: var(--pc-mut); text-align: right; }
.pc-actions { margin: 0; display: flex; justify-content: center; }

.pc-cards { display: flex; flex-direction: column; gap: 14px; }
.pc-note { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 2px 8px rgba(15, 52, 110, .05); }
.pc-note-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-note-top small { color: var(--muted); }
.pc-note h2 { margin: 10px 0 4px; font-size: 1.2rem; color: var(--navy); }
.pc-note-days { display: flex; align-items: center; gap: 6px; margin: 4px 0; font-weight: 700; color: var(--pc-hol); }
.pc-note-body { margin: 8px 0 0; color: var(--ink); line-height: 1.65; white-space: pre-line; }

.pc-facts { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pc-facts div { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pc-facts div:last-child { border: 0; padding-bottom: 0; }
.pc-facts dt { color: var(--muted); font-weight: 600; }
.pc-facts dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }

/* the captcha picture (same box as the school dashboard) */
.captcha-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.captcha-row img { display: block; }
[data-captcha-input] { text-transform: uppercase; letter-spacing: .2em; font-weight: 700; }
.captcha-pic { display: block; width: 180px; height: 60px; border: 1.5px solid var(--line); border-radius: 10px; background: #EEF4FC; overflow: hidden; }
.captcha-pic img { width: 100%; height: 100%; }
.captcha-pic img[hidden] { display: none; }
.captcha-pic.is-loading { background: linear-gradient(100deg, #EEF4FC 30%, #FAFCFF 50%, #EEF4FC 70%); background-size: 200% 100%; animation: cap-shimmer 1.1s linear infinite; }
@keyframes cap-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.pdlg .field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.pdlg .field label { font-weight: 700; font-size: .92rem; }
.pdlg .field input { width: 100%; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; }
.pdlg .field input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(22, 96, 209, .14); }
.btn-ghost.btn-lg { background: var(--surface); }

@media (min-width: 760px) {
  .pc-nav { display: flex; }
  .pc-tabbar { display: none; }
  .pc-in { padding-bottom: 24px; }
  .pc-avatar { margin-left: 0; }
  .pc-main { padding-top: 30px; }
}
@media (max-width: 480px) { .pc-long { display: none; } .pc-short { display: inline; } .pc-top-link { padding: 7px 12px; font-size: .86rem; } }
/* Phones: phones are tall and narrow (a Pixel 9 Pro is 427 px wide, many are 360), so the sign-in page gets a small logo and a tight
   heading and the whole form fits in the first screen; on short screens the introduction line goes too. */
@media (max-width: 480px) {
  .pc-top { padding-top: calc(8px + env(safe-area-inset-top)); padding-bottom: 6px; }
  .pc-auth-main { padding: 0 16px 28px; }
  .pc-logo { width: 84px; margin: 2px 0 8px; }
  .pc-logo img { filter: drop-shadow(0 10px 18px rgba(22, 96, 209, .32)); }
  .pc-eyebrow { margin-bottom: 4px; font-size: .7rem; }
  .pc-title { max-width: none; font-size: clamp(1.45rem, 6.6vw, 1.85rem); }
  .pc-lede { margin-top: 8px; font-size: .95rem; line-height: 1.45; }
  .pc-card { margin-top: 16px; }
  .pc-card-head { gap: 10px; padding: 12px 16px; }
  .pc-card-head h2 { font-size: 1.15rem; }
  .pc-card-ico { width: 36px; height: 36px; }
  .pc-card-body { padding: 16px 16px 14px; }
  .pc-field { margin-bottom: 12px; }
  .pc-input input { padding: 12px 14px; }
  .pc-perks { margin-top: 16px; gap: 8px; }
  .pc-perk { padding: 6px 12px 6px 7px; font-size: .85rem; }
  .pc-perk span { width: 26px; height: 26px; }
  .pc-main { padding-top: 16px; gap: 14px; }
}
@media (max-width: 480px) and (max-height: 760px) { .pc-lede { display: none; } .pc-logo { width: 68px; } }
@media (max-width: 480px) {
  .pc-month { flex-wrap: nowrap; gap: 14px; }
  .pc-ring { width: 96px; height: 96px; }
  .pc-ring strong { font-size: 1.3rem; }
  .pc-n { padding: 8px 10px; }
  .pc-n dd { font-size: 1.25rem; }
  .pc-card { border-radius: 18px; }
  .pc-today { padding: 18px 16px; }
  .pc-strip { gap: 6px; }
  .pc-day { padding: 4px 5px; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .captcha-pic.is-loading { animation: none; } }

/* ---------- it should feel like an app, not a website ---------- */
/* On a phone, and in the installed app, the page scrolls with no scrollbar on the side (it still scrolls everywhere as before). */
@media (pointer: coarse), (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  html, body, .pdlg, .pc-main { scrollbar-width: none; -ms-overflow-style: none; }
  html::-webkit-scrollbar, body::-webkit-scrollbar, .pdlg::-webkit-scrollbar, .pc-main::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
.pc { -webkit-tap-highlight-color: transparent; }
.pc a, .pc button, .pc summary { touch-action: manipulation; }
.pc-band { padding-top: env(safe-area-inset-top); }
.pc-top { padding-top: calc(14px + env(safe-area-inset-top)); }
.pc-install { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pc-install-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border: 0; border-radius: 999px; font: inherit; font-weight: 800; color: #fff; cursor: pointer;
  background: linear-gradient(100deg, var(--navy), var(--blue)); box-shadow: 0 10px 24px rgba(22, 96, 209, .3); }
.pc-install-ios { margin: 0; padding: 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--navy); font-size: .92rem; }
.pc-offline { justify-content: center; }
.pc-title-sm { font-size: clamp(1.8rem, 6vw, 2.4rem); }
.pc-offline-actions { margin: 22px 0 0; }

/* ---------- the sign-in page: the main site's top bar, card and fields, but FLAT (no glow, no gradient button) ---------- */
.pc-signin .topbar .brand-sub { display: inline; }                  /* the main site shortens the brand on phones to fit TWO buttons; here there is only the brand */
.pc-signin .auth { background: none; }
.pc-signin .auth-card { box-shadow: 0 1px 3px rgba(15, 52, 110, .08), 0 8px 24px rgba(15, 52, 110, .06); }
.pc-signin .btn-primary { background: var(--blue); box-shadow: none; }
.pc-signin .btn-primary:hover { background: var(--navy); transform: none; box-shadow: none; }
@media (max-width: 560px) { .pc-signin .auth-card { padding: 26px 22px; } }
.pc-signin .auth-switch .pc-link { padding: 0; }
.pc-signin .pc-install { margin-top: 20px; }

/* ---------- motion: pages ease in, the ring sweeps round, tabs answer your finger ---------- */
@keyframes pc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pc-pop { 0% { transform: scale(.82); } 55% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes pc-pill { from { background-color: transparent; } }
@keyframes pc-sweep { from { stroke-dasharray: 0 213.6; } }
@media (prefers-reduced-motion: no-preference) {
  .pc-main > *, .pc-signin .auth-card { animation: pc-rise .44s cubic-bezier(.2, .7, .2, 1) both; }
  .pc-main > :nth-child(2) { animation-delay: .06s; }
  .pc-main > :nth-child(3) { animation-delay: .12s; }
  .pc-main > :nth-child(4) { animation-delay: .18s; }
  .pc-main > :nth-child(5) { animation-delay: .24s; }
  .pc-main > :nth-child(n+6) { animation-delay: .30s; }
  .pc-ring-fg { animation: pc-sweep .9s .25s cubic-bezier(.3, .7, .2, 1) both; }
  .pc-tabbar a { transition: transform .14s ease, background-color .2s ease, color .2s ease; }
  .pc-tabbar a:active { transform: scale(.9); }
  .pc-tabbar a.on { animation: pc-pill .3s ease both; }
  .pc-tabbar a.on svg { animation: pc-pop .42s cubic-bezier(.3, 1.4, .5, 1) both; }
  .pc-arrow, .pc-perk, .pc-more { transition: transform .14s ease; }
  a.pc-arrow:active { transform: scale(.9); }
}
