/* The source logo has a white canvas. Blend it only onto light brand surfaces. */
.access-logo, .login-logo, .brand-logo, .report-logo,
.identity-brand img, .card-public-brand img, .card-public-status > img,
.public-form-brand img, .public-form-status > img {
  mix-blend-mode: multiply;
  object-fit: contain;
  background: transparent;
}

.portal-entry, .portal-login {
  --entry-blue: #183dcc;
  --entry-green: #126b4d;
  background: #f8fafb;
  border-top: 5px solid #183dcc;
  color: #172827;
}
.portal-entry { min-height: 100svh; max-width: none; gap: 28px; padding: 32px 24px; place-content: start center; }
.portal-entry > * { width: min(100%, 820px); margin-inline: auto; }
.portal-entry .access-intro { display: flex; flex-direction: column; gap: 12px; text-align: center; padding: 0; border: 0; margin-bottom: 0; }
.portal-entry .access-logo { width: 156px; height: 101px; max-height: none; }
.portal-entry .access-intro h1 { font-size: 28px; line-height: 1.2; }
.portal-entry .access-intro p { font-size: 16px; }
.portal-entry .access-options { gap: 16px; grid-template-columns: repeat(2,minmax(0,1fr)); }
.portal-entry .access-option {
  display: grid; align-items: center;
  grid-template-columns: 48px minmax(0, 1fr) 20px;
  min-height: 158px; padding: 24px 20px; gap: 14px;
  border: 1px solid #d4dddf; border-top: 1px solid #d4dddf;
  border-left: 4px solid var(--entry-blue); box-shadow: none;
}
.portal-entry .access-option.parent { border-left-color: var(--entry-green); }
.portal-entry .access-option strong { font-size: 21px; line-height: 1.2; }
.portal-entry .access-option p { color: #566664; font-size: 14px; }
.portal-entry .access-option.student .access-option-mark { border-radius: 8px; background: #e9eeff; color: var(--entry-blue); }
.portal-entry .parent .access-option-mark { background: #e1f4e9; color: var(--entry-green); }
.portal-entry .access-option-mark svg { width: 25px; height: 25px; }
.portal-entry .access-option-arrow svg { width: 20px; height: 20px; }
.portal-entry .access-option-arrow { position: static; display: block; line-height: 0; }
.access-option-cta { font-size: 13px; font-weight: 750; color: var(--entry-blue); margin-top: 4px; }
.parent .access-option-cta { color: var(--entry-green); }
.portal-entry .access-option:hover { border-color: var(--entry-blue); background: #f1f5ff; transform: translateY(-2px); }
.portal-entry .access-option.parent:hover { border-color: var(--entry-green); background: #f0faf4; }
.portal-entry .card-lookup { padding: 24px 0; border-color: #dce4e5; scroll-margin-top: 24px; }
.portal-entry .card-lookup-heading { gap: 12px; margin-bottom: 18px; }
.portal-entry .card-lookup-heading > svg { color: #776000; width: 28px; height: 28px; }
.portal-entry .card-lookup-heading > div { flex: 1; min-width: 0; }
.portal-entry .card-lookup-heading h2 { font-size: 21px; }
.portal-entry .card-lookup-heading p { font-size: 14px; color: #566664; }
.card-lookup-badge { border-radius: 4px; padding: 5px 8px; background: #fff1b2; color: #655000; font-size: 12px; font-weight: 750; white-space: nowrap; }
.portal-entry .card-lookup-form { gap: 12px; }
.portal-entry .card-lookup-form .button { background: #183dcc; min-height: 50px; min-width: 165px; }
.portal-entry .card-lookup input, .portal-login .field input { min-height: 50px; font-size: 16px; border: 1px solid #bac9c9; background: #fff; border-radius: 6px; padding: 12px 14px; width: 100%; }
.portal-entry .card-lookup-help { font-size: 13px; margin-top: 12px !important; }
.portal-entry .access-footer { display: grid; justify-items: center; gap: 12px; }
.portal-entry .access-install-button { width: auto; min-width: 0; background: transparent; border-color: #c8d4d5; color: #334e4b; }
.portal-entry .access-privacy { font-size: 12px; margin: 0; }

.portal-login { min-height: 100svh; padding: 28px 24px 40px; display: grid; align-content: start; justify-items: center; }
.portal-login::before { display: none; }
.portal-login .login-card { width: min(100%, 432px); max-width: 432px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: #f8fafb; display: grid; gap: 22px; text-align: left; }
.portal-login .login-back { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; color: #455e59; font-size: 13px; }
.portal-login .login-back svg { width: 16px; height: 16px; }
.portal-login .login-brand { justify-self: center; display: block; }
.portal-login .login-logo { width: 146px; height: auto; max-width: none; }
.portal-login .login-heading { gap: 10px; }
.portal-login .login-heading h1 { font-size: 28px; line-height: 1.2; margin: 0; }
.portal-login .login-heading p { font-size: 15px; color: #526660; line-height: 1.55; }
.portal-role-label { display: inline-flex; align-items: center; gap: 7px; color: #183dcc; font-size: 12px; font-weight: 750; }
.portal-role-label svg { width: 19px; height: 19px; }
.login-parent { border-top-color: #126b4d; }
.login-parent .portal-role-label { color: #126b4d; }
.login-teacher { border-top-color: #9a3d53; }
.login-teacher .portal-role-label { color: #9a3d53; }
.login-coordinator { border-top-color: #0f766e; }
.login-coordinator .portal-role-label { color: #0f766e; }
.portal-login .login-form { gap: 18px; }
.portal-login .field { gap: 7px; }
.portal-login .field > span:first-child { font-size: 13px; color: #28473f; font-weight: 700; }
.login-secret { display: flex; position: relative; }
.portal-login .login-secret input { padding-right: 54px; }
.secret-toggle { position: absolute; right: 3px; top: 3px; bottom: 3px; width: 44px; border: 0; border-radius: 4px; background: transparent; color: #466158; display: grid; place-items: center; cursor: pointer; }
.secret-toggle svg { width: 20px; height: 20px; }
.secret-toggle:hover { background: #edf3f2; }
.portal-login .login-field-help { font-size: 12px; color: #53665f; margin: -9px 0 0; line-height: 1.5; }
.portal-login .login-submit { width: 100%; min-height: 50px; justify-content: space-between; padding-inline: 17px; font-size: 15px; }
.portal-login .login-submit svg { width: 18px; height: 18px; }
.portal-login .role-teacher .button.primary { background: #9a3d53; border-color: #9a3d53; }
.login-feedback[hidden] { display: none; }
.login-access-help { border-block: 1px solid #dce4e5; padding-block: 17px; font-size: 13px; }
.login-access-help summary { cursor: pointer; font-weight: 750; color: #2d4941; line-height: 1.6; }
.login-access-help p { margin: 12px 0 !important; color: #526660; line-height: 1.6; }
.login-access-help a { display: inline-flex; gap: 8px; align-items: center; color: #183dcc; font-weight: 750; text-underline-offset: 4px; min-height: 32px; }
.login-access-help a svg { width: 16px; height: 16px; }
.portal-login .install-login { background: transparent; justify-self: center; border: 0; color: #4b6259; font-size: 13px; min-height: 40px; }
.portal-login .login-trust { display: flex; justify-content: center; gap: 7px; align-items: center; margin: 0; color: #526660; font-size: 12px; }
.portal-login .login-trust svg { width: 14px; height: 14px; }

.student-welcome { display: flex; align-items: center; gap: 18px; padding: 10px 0 24px; border-bottom: 1px solid #d9e3e3; margin-bottom: 16px; }
.student-welcome-copy { min-width: 0; flex: 1; }
.student-welcome h1 { font-size: 28px; line-height: 1.25; margin: 5px 0 8px; overflow-wrap: anywhere; }
.student-welcome .profile-meta { color: #516660; font-size: 13px; }
.student-welcome .student-card-shortcut { border-color: #183dcc; color: #183dcc; background: #fff; flex-shrink: 0; }
.student-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-block: 1px solid #dce4e5; margin-bottom: 24px; }
.student-shortcuts button { background: transparent; border: 0; padding: 16px 14px; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; color: #284d45; font: inherit; font-size: 13px; min-height: 54px; }
.student-shortcuts button + button { border-left: 1px solid #dce4e5; }
.student-shortcuts button:hover { background: #edf5f2; }
.student-shortcuts svg { width: 20px; height: 20px; flex-shrink: 0; color: #126b4d; }
.student-shortcuts svg:last-child { margin-left: auto; width: 15px; color: #6c8179; }
.student-shortcuts button:nth-child(2) > svg:first-child { color: #183dcc; }
.student-shortcuts button:nth-child(3) > svg:first-child { color: #9a3d53; }

.card-public-shell { background: #f8fafb; border-top: 5px solid #183dcc; padding: 24px; }
.card-public-brand { margin-bottom: 24px; gap: 14px; }
.card-public-brand img { width: 85px; height: 55px; border-radius: 0; padding: 0; }
.card-brand-link { display: flex; flex-shrink: 0; }
.card-home-link { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 13px; color: #37594b; text-decoration: none; min-height: 44px; }
.card-home-link svg { width: 16px; height: 16px; }
.card-public-card { border: 1px solid #cbd8d5; border-radius: 8px; box-shadow: 0 8px 24px rgba(19,55,41,.06); }
.card-public-top { background: #edf5f1; color: #264d3e; font-size: 10px; padding: 14px 18px; }
.card-public-top .is-active { background: #cdeed9; color: #165337; }
.card-live-dot { background: #168257; box-shadow: none; flex-shrink: 0; }
.card-public-photo { border: 1px solid #d5e1dd; border-radius: 8px; box-shadow: none; background: #edf2f6; color: #234a6a; }
.card-public-person h1 { font-size: 28px; line-height: 1.2; }
.card-public-grid { gap: 18px 20px; }
.card-public-grid div { border: 0; border-radius: 0; padding: 0; }
.card-public-grid strong { font-size: 15px; overflow-wrap: anywhere; }
.card-public-document { border: 0; border-top: 1px solid #e3e9e6; border-radius: 0; padding: 14px 0 0; background: transparent; }
.card-public-footer { background: #f0f4fd; color: #24427b; padding: 18px 24px; }
.card-public-check { background: transparent; color: #183dcc; width: 26px; height: 28px; flex-shrink: 0; }
.card-public-check svg { width: 24px; height: 24px; }
.card-public-footer strong { font-size: 14px; line-height: 1.4; }
.card-public-footer span { opacity: 1; margin-top: 3px; }
.card-public-status { border: 0; border-radius: 0; box-shadow: none; background: transparent; padding: 24px 0; margin: 6vh auto; }
.card-public-status > img { width: 130px; }
.card-public-status h1 { font-size: 26px; line-height: 1.25; }
.card-public-status p { line-height: 1.6; }
.card-public-install { display: flex; justify-content: center; margin: 20px auto; }
.card-access-panel { border-radius: 8px; box-shadow: none; }
.card-access-panel h2 { font-size: 23px; }
.identity-card { border-radius: 8px; border-width: 1px; box-shadow: 0 8px 24px rgba(19,55,41,.08); }
.identity-brand img { border-radius: 0; padding: 0; }
.identity-data h2 { font-size: 32px; line-height: 1.15; overflow-wrap: anywhere; }
.identity-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 24px; }
.identity-title h1 { font-size: 26px; margin: 0 0 8px; }
.identity-title p { font-size: 14px; color: #526660; margin: 0; }
.identity-card::before { display: none; }
.identity-ribbon { background: #edf5f1; color: #264d3e; }
.identity-ribbon span { color: #264d3e; }
.identity-head { padding: 16px 22px; }
.identity-brand img { width: 70px; height: 46px; flex-shrink: 0; }
.identity-state.active { background: #cdeed9; color: #165337; }
.identity-main { display: block; padding: 22px; }
.identity-person { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 22px; align-items: center; }
.identity-photo-wrap { grid-row: auto; }
.avatar.identity-photo { width: 112px; height: 138px; border-radius: 8px; border: 1px solid #d5e1dd; box-shadow: none; font-size: 30px; }
.identity-data { text-align: left; }
.identity-data h2 { margin: 6px 0 10px; font-size: 28px; }
.identity-code { padding: 0; color: #50656b; background: transparent; font-size: 13px; }
.identity-fields { gap: 16px; margin-top: 24px; text-align: left; }
.identity-fields div { border: 0; border-radius: 0; padding: 0; }
.identity-bottom { border: 0; border-top: 1px solid #dce4e5; border-radius: 0; padding: 18px 0 0; margin: 0 22px 22px; background: transparent; }
.identity-qr { border: 0; border-radius: 0; width: 184px; height: 184px; }
.identity-qr img { width: 168px; height: 168px; }
.identity-qr-copy strong { font-size: 18px; }
.identity-qr-copy span { font-size: 12px; color: #536a61; font-weight: 500; }
.identity-qr-copy small { font-size: 12px; max-width: 200px; }
.identity-url { background: #f0f4fd; color: #24427b; font-size: 10px; font-weight: 500; }
.identity-security-panel .security-kicker { background: transparent; color: #536a61; padding: 0; }
.identity-security-panel { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.identity-security-panel h3 { font-size: 23px; line-height: 1.25; }
.identity-security-panel p { font-size: 14px; line-height: 1.6; color: #526660; }
.identity-security-panel .identity-private-note { font-size: 12px; }

.portal-entry :focus-visible, .portal-login :focus-visible,
.student-shortcuts :focus-visible, .student-welcome :focus-visible,
.card-public-shell :focus-visible { outline: 3px solid #245ce4; outline-offset: 4px; }

@media (max-width: 700px) {
  .portal-entry { padding: 22px 20px 28px; gap: 22px; }
  .portal-entry .access-intro { gap: 8px; }
  .portal-entry .access-logo { width: 120px; height: 78px; margin: 0; }
  .portal-entry .access-intro h1 { font-size: 24px; }
  .portal-entry .access-intro p { font-size: 14px; }
  .portal-entry .access-options { gap: 12px; grid-template-columns: 1fr; }
  .portal-entry .access-option { min-height: 112px; padding: 16px 14px; grid-template-columns: 40px minmax(0,1fr) 18px; gap: 12px; }
  .portal-entry .access-option-mark { height: 40px; width: 40px; }
  .portal-entry .access-option strong { font-size: 18px; }
  .portal-entry .access-option p { font-size: 12px; line-height: 1.4; }
  .portal-entry .access-option-cta { margin-top: 2px; font-size: 12px; }
  .portal-entry .card-lookup { padding: 20px 0; }
  .portal-entry .card-lookup-heading { gap: 9px; margin-bottom: 16px; }
  .portal-entry .card-lookup-heading h2 { font-size: 19px; }
  .portal-entry .card-lookup-heading p { font-size: 12px; }
  .portal-entry .card-lookup-badge { font-size: 11px; padding: 4px 6px; }
  .portal-entry .access-install-button { font-size: 12px; }
  .portal-login { padding: 16px 24px 32px; }
  .portal-login .login-card { gap: 22px; }
  .portal-login .login-logo { width: 122px; }
  .portal-login .login-heading h1 { font-size: 26px; }
  .student-welcome { flex-wrap: wrap; gap: 12px; padding-top: 2px; }
  .student-welcome h1 { font-size: 24px; }
  .student-welcome .avatar.large { width: 52px; height: 52px; }
  .student-welcome .student-card-shortcut { width: 100%; justify-content: center; }
  .student-shortcuts { grid-template-columns: 1fr; margin-bottom: 20px; }
  .student-shortcuts button { padding: 13px 2px; min-height: 48px; }
  .student-shortcuts button + button { border-left: 0; border-top: 1px solid #e4ece8; }
  .card-public-shell { padding: 20px 16px; }
  .card-public-brand { gap: 10px; margin-bottom: 20px; }
  .card-public-brand img { width: 70px; height: 46px; }
  .card-public-brand strong { font-size: 16px; }
  .card-public-person { grid-template-columns: 84px minmax(0,1fr); gap: 16px; padding: 20px 18px; }
  .card-public-photo { width: 84px; height: 106px; }
  .card-public-person h1 { font-size: 23px; }
  .card-public-person p { font-size: 12px; }
  .card-public-footer { padding: 16px 18px; }
  .card-public-status { margin-top: 4vh; }
  .card-public-retry { flex-direction: column; }
  .card-access-panel { padding: 22px 18px; }
  .identity-data h2 { font-size: 26px; }
  .identity-title { align-items: flex-start; flex-direction: column; }
  .identity-title h1 { font-size: 24px; }
  .identity-title .button { min-height: 44px; }
  .identity-ribbon { flex-direction: row; align-items: center; gap: 8px; padding: 12px 16px; }
  .identity-ribbon strong { font-size: 9px; }
  .identity-head { padding: 14px 16px; gap: 10px; }
  .identity-brand { gap: 8px; }
  .identity-brand img { width: 50px; height: 34px; }
  .identity-state { font-size: 10px; padding: 6px 8px; }
  .identity-main { padding: 18px 16px; }
  .identity-person { grid-template-columns: 78px minmax(0,1fr); gap: 14px; }
  .avatar.identity-photo { width: 78px; height: 100px; font-size: 26px; }
  .identity-data h2 { font-size: 22px; }
  .identity-fields { margin-top: 20px; }
  .identity-bottom { margin: 0 16px 18px; gap: 8px; flex-direction: row; text-align: left; }
  .identity-qr-copy { justify-items: start; }
  .identity-qr-copy strong { font-size: 16px; }
  .identity-qr { width: 150px; height: 150px; padding: 8px; }
  .identity-qr img { width: 134px; height: 134px; }
}
@media (prefers-reduced-motion: reduce) {
  .portal-entry .access-option, .portal-entry .access-option-arrow { transition: none; transform: none; }
  .card-public-seal.is-waiting { animation: none; }
}
.service-overview-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.service-overview-filters .field { min-width: 0; }
.service-overview-filters select { width: 100%; }
.service-student-table .row-actions { flex-wrap: wrap; }
