:root { color-scheme: light; font-family: system-ui, sans-serif; color: #20332d; background: #f5f7f6; letter-spacing: 0; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.topbar { min-height: 76px; padding: 16px 24px; background: #fff; border-bottom: 1px solid #d3dfdb; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #17342d; font-weight: 750; font-size: 23px; text-decoration: none; }
.brand img { border-radius: 6px; }
.environment { color: #785500; background: #fff1c8; padding: 5px 8px; font-size: 12px; border-radius: 4px; margin-left: auto; }
main { max-width: 1080px; margin: 0 auto; padding: 40px 24px; min-height: calc(100vh - 150px); }
main.narrow { max-width: 520px; padding-top: 72px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 24px; }
h2 { font-size: 20px; line-height: 1.3; margin: 0 0 20px; }
p { line-height: 1.6; }
.eyebrow { color: #52695f; margin: 0 0 8px; }
.muted, dt { color: #53695f; font-size: 14px; }
.notice { padding: 16px 18px; border-left: 4px solid #b47c0d; background: #fff5d9; line-height: 1.6; }
.notice p { margin-bottom: 0; }
.notice.is-success { border-left-color: #267451; background: #e7f4ed; }
.status-pill { display: inline-flex; align-items: center; width: fit-content; min-height: 25px; padding: 3px 8px; border-radius: 4px; background: #e8f2ed; color: #225d48; font-size: 10px; font-weight: 750; }
.status-pill.is-good { background: #dcefe4; color: #17543d; }
.status-pill.is-warning { background: #fff0c7; color: #76570a; }
section { padding: 28px 0; border-top: 1px solid #ccd9d3; }
.summary { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 28px; }
dd { margin: 6px 0 0; font-weight: 650; }
label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 7px; }
input, select, button { font: inherit; min-height: 46px; border-radius: 6px; }
input, select { width: 100%; min-width: 0; border: 1px solid #98aea5; background: white; padding: 10px 12px; color: inherit; }
textarea { width: 100%; min-width: 0; resize: vertical; border: 1px solid #98aea5; border-radius: 6px; background: white; padding: 10px 12px; color: inherit; font: inherit; }
button { padding: 10px 16px; cursor: pointer; border: 1px solid transparent; font-weight: 650; }
a.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid transparent; border-radius: 6px; font-weight: 650; text-decoration: none; }
button:disabled { cursor: not-allowed; opacity: .6; }
[aria-busy="true"] button:disabled, button[aria-busy="true"]:disabled { cursor: progress; }
.primary { background: #173e33; color: white; }
.secondary { background: white; color: #173e33; border-color: #9db3a9; }
.danger { color: #953d33; }
button:hover:not(:disabled) { filter: brightness(.94); }
:focus-visible { outline: 3px solid #287cab; outline-offset: 3px; }
.invite-form { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(170px, 1fr) minmax(140px, 1fr); gap: 16px; align-items: end; }
.invite-form > button { grid-column: 1 / -1; justify-self: start; }
.invite-send-option { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 0; }
.invite-send-option input { width: 20px; min-height: 20px; flex: 0 0 20px; }
.subject-field { grid-column: 1 / -1; margin: 0; padding: 18px; border: 1px solid #c9d8d1; border-radius: 6px; }
.subject-field legend { padding: 0 7px; font-weight: 700; }
.subject-field > p { margin: 0 0 14px; color: #53695f; font-size: 13px; }
.subject-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 300px; overflow: auto; }
.subject-options label { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px; border: 1px solid #d3dfdb; border-radius: 5px; background: white; }
.subject-options input { width: 20px; min-height: 20px; flex: 0 0 20px; }
.subject-options strong, .subject-options small { display: block; }
.subject-options small { margin-top: 3px; color: #53695f; font-weight: 450; }
.invite-result { margin-top: 24px; }
.invite-result > .button { margin-top: 12px; }
.bulk-preview-form { display: flex; gap: 14px; align-items: end; max-width: 620px; }
.bulk-preview-form > div { flex: 1; }
.bulk-candidates { margin: 18px 0; border-top: 1px solid #d3dfdb; }
.bulk-candidates label { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 0; border-bottom: 1px solid #d3dfdb; }
.bulk-candidates input { width: 20px; min-height: 20px; flex: 0 0 20px; }
.bulk-candidates span, .bulk-candidates small { display: block; }
.bulk-candidates small { margin-top: 4px; color: #53695f; font-weight: 450; }
.bulk-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.bulk-toolbar label { display: flex; align-items: center; gap: 9px; margin: 0; }
.bulk-toolbar input { width: 20px; min-height: 20px; }
.bulk-send-option { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.bulk-send-option input { width: 20px; min-height: 20px; flex: 0 0 20px; }
.bulk-result-row { padding: 14px 0; border-bottom: 1px solid #d3dfdb; }
.bulk-result-row strong, .bulk-result-row small { display: block; }
.bulk-result-row small { margin: 4px 0 10px; color: #53695f; }
.bulk-result-row .button { margin-right: 8px; margin-bottom: 8px; }
.link-row { display: flex; gap: 12px; }
.link-row button { flex-shrink: 0; }
.records { list-style: none; padding: 0; margin: 0; }
.records li { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid #d3dfdb; }
.records li > div { min-width: 0; }
.records strong { overflow-wrap: anywhere; font-size: 15px; }
.records li > div > span { display: block; color: #53695f; font-size: 14px; margin-top: 5px; }
.records li > div > small { display: block; margin-top: 5px; color: #6b7c74; }
.records button { flex-shrink: 0; }
.record-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.access-review .status-pill { flex: 0 0 auto; }
.message { padding: 14px 16px; border-left: 4px solid #287cab; background: #e4f0f7; overflow-wrap: anywhere; }
#login button { width: 100%; }
.login-option { padding: 22px 0; }
.login-option h2 { font-size: 17px; margin-bottom: 14px; }
#emailLogin button { width: 100%; margin-top: 12px; }
#guardianInvite { margin-top: 14px; }
#guardianInvite button { width: 100%; }
.invitation-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.invitation-metrics button { display: grid; gap: 3px; min-height: 62px; padding: 9px; border: 1px solid #b9cbc3; border-radius: 5px; background: white; color: #28483c; text-align: left; }
.invitation-metrics button[aria-pressed="true"] { border-color: #174b3b; box-shadow: inset 0 -3px #174b3b; }
.invitation-metrics strong { font-size: 18px; }
.invitation-metrics span { font-size: 11px; }
.pilot-funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 18px 0 24px; }
.pilot-funnel div { padding: 12px; border: 1px solid #cad8d2; background: white; }
.pilot-funnel dt { color: #587066; font-size: 11px; }
.pilot-funnel dd { margin: 5px 0 0; font-size: 20px; font-weight: 800; }
.audit-log { margin-top: 22px; border-top: 1px solid #cad8d2; }
.audit-log ol { margin: 0; padding: 0; list-style: none; }
.audit-log li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #dce5e1; font-size: 12px; }
.audit-log li span, .audit-log li small { display: block; }
.remember-row { display: flex; align-items: center; gap: 10px; margin: 14px 0; font-weight: 650; }
.remember-row input { width: 20px; min-height: 20px; flex: 0 0 20px; margin: 0; }
#choose button { margin-top: 20px; }
dialog { border: 1px solid #bccfc5; border-radius: 8px; max-width: 460px; width: calc(100% - 32px); padding: 24px; color: inherit; }
dialog::backdrop { background: #0007; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; }
#editAccess { max-width: 680px; }
.access-edit-form { display: grid; gap: 18px; }
.access-edit-form h2, .access-edit-form p { margin: 0; }
.role-options { margin: 0; padding: 0; border: 0; }
.role-options legend { margin-bottom: 10px; font-weight: 700; }
.role-options label { display: inline-flex; align-items: center; gap: 8px; margin: 0 18px 8px 0; }
.role-options input { width: 20px; min-height: 20px; margin: 0; }
.access-edit-form .subject-field { padding: 14px; }
footer { padding: 24px; color: #667b70; text-align: center; font-size: 12px; }
footer a { color: inherit; }
.legal-page { max-width: 760px; background: white; }
.legal-page h1 { margin-bottom: 8px; }
.legal-page h2 { margin: 34px 0 10px; }
.legal-page p, .legal-page li { line-height: 1.7; }
.legal-page li + li { margin-top: 8px; }
.legal-updated { margin: 0 0 28px; color: #53695f; font-size: 14px; }
.public-topbar { flex-wrap: nowrap; }
.public-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.public-nav > a:not(.button) { color: #35584c; font-size: 14px; font-weight: 650; text-decoration: none; }
.home-main { max-width: none; min-height: 0; margin: 0; padding: 0; }
.home-main section { border-top: 0; }
.home-intro { display: flex; min-height: 0; flex-direction: column; align-items: flex-start; justify-content: center; max-width: 1080px; margin: 0 auto; padding: 38px 24px 30px; }
.home-mark { width: 84px; height: 84px; margin-bottom: 18px; border-radius: 7px; }
.home-intro h1 { margin-bottom: 12px; color: #17342d; font-size: 46px; }
.home-lead { max-width: 760px; margin: 0; color: #355047; font-size: 20px; line-height: 1.45; }
.home-position { max-width: 760px; margin: 14px 0 0; color: #52695f; font-size: 15px; }
.home-actions { display: flex; gap: 12px; margin-top: 22px; }
.home-access-note { margin: 12px 0 0; color: #667b70; font-size: 12px; }
.home-band { background: #fff; }
.home-google { background: #edf4f1; }
.home-inner { max-width: 1080px; margin: 0 auto; padding: 64px 24px; }
.home-inner > h2 { max-width: 700px; margin-bottom: 30px; font-size: 30px; }
.home-inner > p { max-width: 820px; }
.home-section-lead { margin: -10px 0 32px; color: #4b6359; font-size: 18px; }
.home-product { background: #eef4f1; }
.home-product-context { margin: 0 0 16px; color: #4b6359; }
.product-review-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 32px; font-weight: 650; }
.product-review-links a { color: #274c41; text-underline-offset: 3px; }
.showcase-tour { display: flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 10px 0; overflow-x: auto; border-top: 1px solid #bfcfc8; border-bottom: 1px solid #bfcfc8; scrollbar-width: thin; }
.showcase-tour strong { margin-right: auto; white-space: nowrap; }
.showcase-tour a { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 38px; padding: 6px 10px; color: #274c41; font-weight: 700; text-decoration: none; }
.showcase-tour a:hover { background: #fff; }
.showcase-tour a span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid #8da99e; border-radius: 50%; font-size: 12px; }
.showcase-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; margin: 0; padding: 40px 0; border-bottom: 1px solid #bfcfc8; scroll-margin-top: 30px; }
.showcase-row > .showcase-copy { grid-column: 1; grid-row: 1; }
.showcase-row > a, .showcase-row > .showcase-phones { grid-column: 2; grid-row: 1; }
.showcase-copy h3 { margin: 0 0 12px; color: #20332d; font-size: 22px; font-weight: 700; line-height: 1.35; }
.showcase-copy p { margin: 0; color: #4b6359; font-size: 16px; line-height: 1.6; }
.showcase-copy p + p { margin-top: 12px; }
.showcase-row > a { display: block; overflow: hidden; border: 1px solid #aebfb7; border-radius: 6px; background: #fff; }
.showcase-main > a, .showcase-members > a { aspect-ratio: 1280 / 900; }
.showcase-step > a { aspect-ratio: 4 / 3; }
.showcase-row > a img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.showcase-workflow, .showcase-grid { display: block; }
.showcase-phones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.showcase-phone { min-width: 0; margin: 0; }
.showcase-phone > a { display: block; }
.showcase-phone img { display: block; width: 100%; height: auto; border: 1px solid #aebfb7; border-radius: 8px; background: #fff; }
.showcase-phone figcaption { margin-top: 12px; color: #4b6359; font-size: 14px; line-height: 1.5; }
.showcase-note { margin: 42px 0 0; color: #667b70; font-size: 12px; }
.home-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 42px; border-top: 1px solid #bfcfc8; border-bottom: 1px solid #bfcfc8; }
.home-capabilities p { min-width: 0; margin: 0; padding: 22px 24px 22px 0; }
.home-capabilities p + p { padding-left: 24px; border-left: 1px solid #bfcfc8; }
.home-capabilities strong, .home-capabilities span { display: block; }
.home-capabilities strong { margin-bottom: 6px; }
.home-capabilities span { color: #4b6359; }
.home-more-link { margin: 18px 0 0; font-weight: 700; }
.home-band.home-scoutnet { background: #173e33; color: #fff; }
.home-scoutnet .eyebrow, .home-scoutnet .home-section-lead { color: #c6ddd4; }
.integration-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 18px; margin: 38px 0; padding: 24px 0; border-top: 1px solid #53776b; border-bottom: 1px solid #53776b; }
.integration-flow div { min-width: 0; }
.integration-flow strong, .integration-flow span { display: block; }
.integration-flow strong { margin-bottom: 6px; font-size: 17px; }
.integration-flow div span { color: #c6ddd4; font-size: 14px; line-height: 1.5; }
.flow-arrow { color: #8db7a7; font-size: 25px; }
.home-comparison { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid #53776b; }
.home-comparison > div { padding: 8px 32px 32px 0; }
.home-comparison > div + div { padding-left: 32px; border-left: 1px solid #53776b; }
.home-comparison h3 { margin: 8px 0 10px; font-size: 21px; }
.home-comparison p { color: #d4e4de; }
.comparison-label { margin: 0; color: #8fc8b2 !important; font-size: 13px; font-weight: 750; }
.home-google code { padding: 2px 5px; border: 1px solid #c5d4ce; border-radius: 3px; background: #fff; }
.compact-home-section { padding-top: 46px; padding-bottom: 46px; }
.compact-home-section > h2 { margin-bottom: 18px; }
.home-contact .home-inner { padding-top: 48px; padding-bottom: 48px; }
.technology-page > h2 { margin-top: 38px; }
.technology-page .guide-safety { margin-top: 42px; }
.guide-page { max-width: 760px; background: white; }
.guide-page h1 { margin-bottom: 10px; }
.guide-intro { max-width: 640px; margin: 0 0 34px; color: #435b51; font-size: 18px; }
.guide-steps { margin: 0 0 32px; padding: 0; list-style: none; counter-reset: guide-step; }
.guide-steps li { position: relative; padding: 24px 0 24px 58px; border-top: 1px solid #ccd9d3; counter-increment: guide-step; }
.guide-steps li::before { content: counter(guide-step); position: absolute; top: 22px; left: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e2f0ea; color: #173e33; font-weight: 750; }
.guide-steps h2, .guide-safety h2 { margin: 0 0 8px; }
.guide-steps p, .guide-safety p { margin: 0; }
.guide-safety { margin-bottom: 28px; padding: 22px; border: 1px solid #c6d8d0; border-left: 4px solid #287cab; background: #eef5f3; }

.guide-start { max-width: 860px; }
.guide-start .guide-intro { max-width: 720px; margin-bottom: 24px; }
.guide-path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 24px; padding: 14px 16px; border-radius: 10px; background: #eaf3ef; font-size: 14px; }
.guide-path a { color: #173e33; font-weight: 700; }
.guide-path span { color: #617b70; }
.guide-flow { list-style: none; counter-reset: guide-flow; padding: 0; margin: 0 0 28px; }
.guide-flow li { counter-increment: guide-flow; position: relative; margin: 0 0 14px; padding: 22px 24px 22px 72px; border: 1px solid #c6d8d0; border-radius: 12px; background: #fff; scroll-margin-top: 24px; }
.guide-flow li::before { content: counter(guide-flow); position: absolute; top: 22px; left: 22px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #173e33; color: #fff; font-weight: 750; }
.guide-flow h2 { margin: 0 0 8px; }
.guide-flow p { margin: 0 0 12px; line-height: 1.55; }
.guide-flow .guide-done { color: #405b50; }
.guide-action { display: inline-block; margin-top: 4px; padding: 10px 14px; border-radius: 7px; background: #173e33; color: #fff; font-weight: 700; text-decoration: none; }
.guide-action:hover, .guide-action:focus-visible { background: #245b49; color: #fff; }
.guide-role-note { margin: 0 0 22px; padding: 18px 22px; border-left: 4px solid #287cab; background: #eef5f8; }
.guide-role-note h2 { margin: 0 0 8px; }
.guide-role-note p, .guide-help-link { margin: 0; line-height: 1.55; }
.guide-help-link { margin-bottom: 30px; }
.guide-sheet-help { margin: 22px 0; padding: 22px; border: 1px solid #c6d8d0; border-radius: 12px; background: #f7faf8; }
.guide-sheet-help > h2 { margin: 0 0 10px; }
.guide-sheet-help > p { margin: 0 0 14px; line-height: 1.55; }
.guide-sheet-steps { margin: 0 0 18px; padding-left: 24px; }
.guide-sheet-steps li { margin: 0 0 12px; padding-left: 4px; line-height: 1.55; }
.guide-sheet-help details { margin-top: 10px; padding: 12px 16px; border: 1px solid #c6d8d0; border-radius: 8px; background: #fff; }
.guide-sheet-help details > summary { cursor: pointer; font-weight: 700; color: #173e33; }
.guide-sheet-help details p { margin: 12px 0 0; line-height: 1.55; }
@media (max-width: 640px) { .guide-sheet-help { padding: 16px; } }
.guide-reference { border-top: 1px solid #ccd9d3; padding-top: 18px; }
.guide-reference > summary { color: #1c5547; font-weight: 700; cursor: pointer; }
.guide-reference-body { padding-top: 20px; }
.guide-reference .guide-steps p + p, .guide-reference .guide-safety p + p { margin-top: 12px; }
.guide-reference-intro { margin: 0 0 22px; color: #435b51; }
.guide-topics-title { margin: 0 0 14px; }
.guide-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-topics details { min-width: 0; padding: 16px 18px; border: 1px solid #c6d8d0; border-radius: 10px; background: #f7faf8; }
.guide-topics summary { color: #173e33; font-weight: 700; cursor: pointer; }
.guide-topics p { margin: 12px 0 0; line-height: 1.55; }
.guide-reference-body > .guide-safety { margin: 20px 0 0; }
@media (max-width: 640px) { .guide-topics { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  .guide-path { font-size: 13px; }
  .guide-flow li { padding: 18px 16px 18px 58px; }
  .guide-flow li::before { top: 18px; left: 14px; width: 30px; height: 30px; }
}

.skip { position: fixed; top: 8px; left: 16px; z-index: 5; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; background: white; }
.skip:focus { width: auto; height: auto; padding: 12px; overflow: visible; clip: auto; clip-path: none; }
@media (max-width: 640px) {
  .invitation-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-log li { grid-template-columns: 1fr; gap: 3px; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .brand { font-size: 21px; gap: 8px; }
  .environment { font-size: 11px; }
  main, main.narrow { padding: 28px 16px; }
  h1 { font-size: 26px; }
  .legal-page { background: transparent; }
  .public-topbar { align-items: center; }
  .public-nav { gap: 8px; }
  .public-nav > a:not(.button) { display: none; }
  .public-nav .button { min-height: 42px; padding: 8px 12px; }
  .home-intro { min-height: auto; padding: 54px 16px 48px; }
  .home-mark { width: 88px; height: 88px; margin-bottom: 22px; }
  .home-intro h1 { font-size: 38px; }
  .home-lead { font-size: 18px; }
  .home-position, .home-section-lead { font-size: 16px; }
  .home-actions { width: 100%; flex-direction: column; }
  .home-actions .button { width: 100%; }
  .home-inner { padding: 46px 16px; }
  .home-inner > h2 { font-size: 25px; }
  .integration-flow { grid-template-columns: 1fr; gap: 14px; }
  .flow-arrow { transform: rotate(90deg); }
  .home-comparison { grid-template-columns: 1fr; }
  .home-comparison > div, .home-comparison > div + div { padding: 24px 0; border-left: 0; }
  .home-comparison > div + div { border-top: 1px solid #53776b; }
  .showcase-tour { align-items: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .showcase-tour strong { grid-column: 1 / -1; margin: 0 0 2px; }
  .showcase-tour a { min-width: 0; }
  .showcase-row { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .showcase-row > .showcase-copy, .showcase-row > a, .showcase-row > .showcase-phones { grid-column: 1; grid-row: auto; }
  .showcase-row > .showcase-copy { order: -1; }
  .showcase-copy h3 { font-size: 21px; }
  .showcase-phones { grid-template-columns: 1fr; gap: 28px; }
  .showcase-phone { width: 100%; max-width: 390px; }
  .home-capabilities { grid-template-columns: 1fr; }
  .home-capabilities p, .home-capabilities p + p { padding: 18px 0; border-left: 0; }
  .home-capabilities p + p { border-top: 1px solid #bfcfc8; }
  .guide-page { background: transparent; }
  .guide-intro { font-size: 16px; }
  .guide-steps li { padding-left: 48px; }
  .invite-form { grid-template-columns: 1fr; }
  .subject-options { grid-template-columns: 1fr; }
  .invite-form > button { width: 100%; }
  .records li { align-items: flex-start; flex-direction: column; gap: 12px; }
  .record-actions { width: 100%; justify-content: flex-start; }
  .bulk-toolbar { align-items: flex-start; flex-direction: column; }
  .link-row { flex-direction: column; }
  .bulk-preview-form { align-items: stretch; flex-direction: column; }
  .bulk-preview-form button, #guardianBulkCreate > button { width: 100%; }
  .bulk-result-row .button { width: 100%; margin-right: 0; }
  .dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .dialog-actions button { width: 100%; }
}
.access-tabs { display: flex; gap: 2px; max-width: 850px; margin: 26px 0 10px; padding-bottom: 1px; overflow-x: auto; border-bottom: 1px solid #cad8d2; }
.access-tabs button { flex: 0 0 auto; min-height: 46px; padding: 9px 15px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #486359; font-weight: 700; }
.access-tabs button[aria-selected="true"] { border-bottom-color: #246f5a; color: #17342d; }
.access-tabs button span { display: inline-flex; min-width: 19px; height: 19px; align-items: center; justify-content: center; margin-left: 4px; border-radius: 50%; background: #fff0c7; color: #76570a; font-size: 10px; }
.desktop-recommended { color: #587066; font-size: 12px; font-weight: 650; }

/* Password forms remain usable with touch keyboards and password managers. */
#passwordLogin, #guardianInvite, #passwordResetStart, #passwordResetFinish { display: grid; gap: 10px; }
#passwordLogin button, #passwordResetStart button, #passwordResetFinish button { justify-self: start; min-height: 44px; }
.login-option details summary { padding: 12px 0; cursor: pointer; }
.login-option details form { padding-bottom: 16px; }

/* Action results stay visible without taking the user away from the form. */
.action-feedback:not([hidden]) {
  position: static; grid-column: 1 / -1; flex-basis: 100%;
  width: 100%; max-width: 100%; box-sizing: border-box;
  display: flex; align-items: flex-start; gap: 12px;
  margin: 12px 0; padding: 16px; overflow: auto; overscroll-behavior: contain;
  background: #e4f0f7; color: #17342d; border: 1px solid #aacbdc;
  border-left: 4px solid #287cab; border-radius: 8px;
  box-shadow: 0 4px 24px #17342d26; overflow-wrap: anywhere;
}
.action-feedback > span { flex: 1; min-width: 0; }
.action-feedback .feedback-close {
  flex: 0 0 44px; min-width: 44px; min-height: 44px; padding: 4px;
  border: 1px solid currentColor; background: transparent; color: inherit;
  border-radius: 6px; font-size: 24px; line-height: 1;
}
.action-feedback[data-tone="error"], .action-feedback[data-tone="warning"] { background: #fff5d6; border-color: #b88000; }
.action-feedback[data-tone="success"] { background: #e5f2ea; border-color: #367957; }
@media print { .action-feedback { display: none !important; } }

label.invite-send-option { display: flex; align-items: center; gap: 10px; }
label.invite-send-option input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; padding: 0; margin: 0; flex: 0 0 20px; }
/* Keep the complete material list visible in the public product tour. */
.showcase-material > a { aspect-ratio: auto; }
.showcase-material > a img { height: auto; }

/* Staff support keeps controls readable on both phone and desktop. */
.staff-page main { width: min(960px, calc(100% - 32px)); margin: 24px auto; }
.staff-page .topbar { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px; align-items: center; justify-content: space-between; }
.staff-page .topbar button { max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.staff-page .support-member { padding: 20px 0; border-bottom: 1px solid #ccd8d2; overflow-wrap: anywhere; }
.staff-page fieldset { min-width: 0; margin: 16px 0; }
.staff-page fieldset label { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.staff-page fieldset input[type="checkbox"] { width: 20px; height: 20px; min-height: 20px; flex: 0 0 20px; padding: 0; margin: 0; }
.staff-page textarea { min-height: 110px; }

@media (max-width: 600px) {
  .access-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 4px; }
  .access-tabs button { min-width: 0; white-space: normal; padding: 10px 6px; }
}

.guide-role-note ol { line-height: 1.5; }
.guide-role-note li + li { margin-top: 10px; }

.department-invite-dialog {
  width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px);
  padding: 24px; border: 1px solid #cad8d2; border-radius: 10px;
  background: #fff; color: #17342d; box-shadow: 0 20px 60px #17342d40;
}
.department-invite-dialog::backdrop { background: #102d2880; }
.department-invite-dialog h2 { margin: 0 0 12px; }
.department-invite-dialog p { overflow-wrap: anywhere; }
.department-invite-dialog .department-invite-choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.department-invite-dialog .department-invite-choices[hidden] { display: none; }
.department-invite-dialog #departmentInviteResult { margin: 18px 0; padding: 16px; background: #eef6f1; border-radius: 6px; }
.department-invite-dialog #departmentInviteResult[hidden] { display: none; }
.department-invite-dialog #departmentInviteResult input { width: 100%; box-sizing: border-box; margin: 6px 0 12px; }
.department-invite-dialog #closeDepartmentInvite { margin-top: 12px; }
@media (max-width: 600px) { .department-invite-dialog .department-invite-choices { display: grid; } }
