:root {
    --bg: #f3f6f8;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-contrast: #102433;
    --border: rgba(16, 36, 51, 0.1);
    --text: #102433;
    --muted: #5f7283;
    --brand: #0f5f8c;
    --brand-strong: #0a4566;
    --teal: #1f8a8a;
    --blue: #3c76d2;
    --amber: #b56e12;
    --rose: #ad4f67;
    --violet: #6c5bd4;
    --green: #2c7a57;
    --slate: #49687b;
    --shadow: 0 28px 60px rgba(16, 36, 51, 0.12);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(15, 95, 140, 0.18), transparent 26rem),
        radial-gradient(circle at bottom right, rgba(31, 138, 138, 0.14), transparent 22rem),
        linear-gradient(180deg, #f6f8fa 0%, #eef3f6 100%);
    overflow-x: hidden;
}

html {
    -webkit-text-size-adjust: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
}

.auth-shell {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    display: flex;
    width: 100%;
}

.auth-layout,
.selection-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 28px;
    align-items: stretch;
    padding: 40px;
    min-height: 100vh;
}

.auth-layout {
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: clamp(24px, 5vw, 56px);
    min-height: 100vh;
    min-height: 100dvh;
    height: 100%;
}

.auth-panel,
.selection-hero,
.selection-card,
.dashboard-card,
.kpi-card,
.sidebar,
.topbar,
.auth-brand-card,
.auth-form-shell,
.context-pill,
.module-card,
.quick-link,
.stack-item,
.mini-stat {
    background: var(--surface);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.auth-panel,
.selection-hero {
    border-radius: var(--radius-lg);
    padding: 40px;
}

.auth-panel--brand,
.selection-hero {
    background:
        linear-gradient(135deg, rgba(16, 36, 51, 0.96), rgba(15, 95, 140, 0.9)),
        linear-gradient(135deg, #102433, #0f5f8c);
    color: #f7fbff;
    position: relative;
    overflow: hidden;
}

.auth-panel--brand::after,
.selection-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -30% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.auth-kicker,
.page-kicker,
.section-heading__kicker,
.sidebar__eyebrow {
    margin: 0 0 8px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7dd3d8;
}

.auth-panel--form {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
}

.auth-form-shell {
    width: 100%;
    max-width: 460px;
    border-radius: 8px;
    padding: 34px;
    background: rgba(255, 255, 255, 0.94);
}

.auth-form-shell--simple {
    padding: clamp(28px, 4vw, 40px);
    box-shadow: 0 24px 54px rgba(16, 36, 51, 0.13);
}

.auth-form-shell__header--center {
    text-align: center;
    margin-bottom: 28px;
}

.auth-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--teal));
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 16px 26px rgba(15, 95, 140, 0.22);
}

.auth-panel h1,
.selection-hero h1,
.page-hero h1,
.auth-form-shell h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    line-height: 1.05;
}

.auth-form-shell h1 {
    margin: 0;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: clamp(2rem, 7vw, 2.65rem);
    line-height: 1.05;
}

.auth-panel h1,
.selection-hero h1 {
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    max-width: 12ch;
}

.auth-copy,
.selection-hero p,
.page-hero p,
.auth-form-shell__header p {
    color: inherit;
    opacity: 0.92;
    font-size: 1.02rem;
    line-height: 1.65;
}

.auth-form-shell__header--center p {
    margin: 10px 0 0;
    color: var(--muted);
    opacity: 1;
}

.auth-highlights {
    display: grid;
    gap: 14px;
    margin: 34px 0;
}

.auth-highlight {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.auth-highlight__dot {
    width: 11px;
    height: 11px;
    margin-top: 8px;
    border-radius: 50%;
    background: #7dd3d8;
    box-shadow: 0 0 0 8px rgba(125, 211, 216, 0.12);
}

.auth-brand-card {
    border-radius: var(--radius-md);
    padding: 22px;
}

.auth-brand-card span,
.auth-footer span,
.context-pill__label,
.mini-stat span {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.auth-brand-card strong,
.context-pill strong,
.mini-stat strong,
.stack-item__value,
.user-chip__name {
    display: block;
    margin: 8px 0 6px;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 1.2rem;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.field {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.field span {
    font-size: 0.95rem;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(16, 36, 51, 0.12);
    border-radius: 8px;
    padding: 14px 16px;
    font: inherit;
    color: var(--text);
    background: #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field select {
    width: 100%;
    border: 1px solid rgba(16, 36, 51, 0.12);
    border-radius: 8px;
    padding: 14px 16px;
    font: inherit;
    color: var(--text);
    background: #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(15, 95, 140, 0.56);
    box-shadow: 0 0 0 4px rgba(15, 95, 140, 0.12);
    transform: translateY(-1px);
}

.field select:focus {
    outline: none;
    border-color: rgba(15, 95, 140, 0.56);
    box-shadow: 0 0 0 4px rgba(15, 95, 140, 0.12);
    transform: translateY(-1px);
}

.field__error,
.form-alert {
    color: #9b2743;
    font-size: 0.92rem;
}

.form-alert {
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(155, 39, 67, 0.08);
    border: 1px solid rgba(155, 39, 67, 0.16);
    margin-bottom: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 8px;
    min-height: 40px;
    padding: 10px 15px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary {
    color: #f5fbff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 18px 28px rgba(15, 95, 140, 0.24);
}

.button--ghost {
    color: var(--brand-strong);
    background: rgba(15, 95, 140, 0.08);
    border: 1px solid rgba(15, 95, 140, 0.14);
}

.button--full {
    width: 100%;
}

.button--small {
    min-height: 32px;
    padding: 7px 11px;
    font-size: 0.86rem;
}

.auth-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.auth-footer--center {
    justify-content: center;
    text-align: center;
}

.auth-footer a,
.topbar__link,
.sidebar__secondary {
    color: var(--brand-strong);
    font-weight: 700;
}

.sidebar__secondary {
    display: inline-flex;
    margin-top: 8px;
    font-size: 0.9rem;
}

.module-card strong,
.quick-link,
.stack-item strong {
    line-height: 1.25;
}

.module-card p,
.stack-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.mini-stat strong {
    font-size: 1rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.mini-stat span {
    line-height: 1.25;
}

.topbar__link {
    font-size: 0.9rem;
}

.topbar__actions .button {
    min-height: 36px;
    padding: 8px 12px;
}

.hero-actions .button {
    min-height: 38px;
}

.app-layout {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    gap: 14px;
    padding: 14px;
    position: relative;
}

.app-overlay {
    display: none;
}

.sidebar-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sidebar {
    float: left;
    flex: 0 0 248px;
    width: 248px;
    border-radius: 18px;
    padding: 18px 16px;
    background:
        linear-gradient(180deg, rgba(16, 36, 51, 0.98), rgba(18, 53, 76, 0.92));
    color: #f2f8fb;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.sidebar__mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar__logo {
    display: block;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 1.38rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.sidebar__brand p,
.sidebar__footer p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.sidebar__brand p,
.sidebar__footer p,
.sidebar__secondary {
    color: rgba(242, 248, 251, 0.76);
}

.sidebar__nav {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 8px;
    color: rgba(242, 248, 251, 0.82);
    font-size: 0.94rem;
    font-weight: 650;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
    min-width: 0;
}

.sidebar__link:hover,
.sidebar__link.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateX(2px);
}

.sidebar__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
    font-weight: 700;
    flex: 0 0 auto;
}

.sidebar__footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    font-weight: 700;
}

.app-layout__main {
    display: grid;
    grid-template-rows: auto 1fr;
    flex: 1 1 auto;
    overflow: hidden;
    gap: 12px;
    min-width: 0;
}

.topbar {
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.topbar__context,
.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.topbar__school-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.topbar__school-form select {
    min-height: 34px;
    max-width: 320px;
    border: 1px solid rgba(16, 36, 51, 0.12);
    border-radius: 8px;
    padding: 7px 10px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.94);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.topbar__context {
    flex: 1 1 auto;
}

.topbar__actions {
    justify-content: flex-end;
}

.context-pill,
.user-chip {
    border-radius: 8px;
    padding: 9px 11px;
}

.context-pill {
    min-width: 0;
    max-width: 420px;
}

.context-pill__label,
.user-chip__name {
    line-height: 1.2;
}

.context-pill strong,
.user-chip__name {
    margin: 4px 0 2px;
    font-size: 1rem;
}

.user-chip__meta {
    color: var(--muted);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.topbar__logout {
    margin: 0;
}

.topbar__menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(15, 95, 140, 0.08);
    border: 1px solid rgba(15, 95, 140, 0.12);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.topbar__menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-strong);
}

.app-content {
    display: grid;
    gap: 14px;
    padding: 4px 2px 18px;
    min-width: 0;
}

.page-hero {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: end;
    padding: 4px 4px 0;
    min-width: 0;
}

.page-hero h1 {
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    overflow-wrap: anywhere;
}

.page-hero p {
    margin: 8px 0 0;
    max-width: 68ch;
    color: var(--muted);
    line-height: 1.5;
}

.hero-actions,
.quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.kpi-grid,
.dashboard-grid,
.module-grid,
.selection-grid,
.mini-stats,
.module-filters,
.module-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.kpi-grid {
    align-items: stretch;
}

.kpi-grid > .kpi-card {
    display: inline-block;
    vertical-align: top;
    flex: 1 1 180px;
    width: 24%;
    min-width: 0;
}

.kpi-card {
    border-radius: 12px;
    padding: 14px 15px;
}

.kpi-card__label,
.kpi-card__caption {
    display: block;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
}

.kpi-card__value {
    display: block;
    margin: 6px 0 5px;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    line-height: 1;
}

.kpi-card--teal { border-top: 4px solid var(--teal); }
.kpi-card--blue { border-top: 4px solid var(--blue); }
.kpi-card--amber { border-top: 4px solid var(--amber); }
.kpi-card--rose { border-top: 4px solid var(--rose); }
.kpi-card--violet { border-top: 4px solid var(--violet); }
.kpi-card--green { border-top: 4px solid var(--green); }
.kpi-card--slate { border-top: 4px solid var(--slate); }

.dashboard-grid {
    align-items: stretch;
}

.dashboard-grid > .dashboard-card {
    flex: 1 1 0;
}

.dashboard-grid > .dashboard-card:first-child {
    flex-grow: 1.45;
}

.dashboard-grid > .dashboard-card:last-child {
    flex: 0.95 1 300px;
}

.dashboard-card {
    border-radius: 14px;
    padding: 18px;
    min-width: 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 10px;
    margin-bottom: 12px;
}

.section-heading h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 1.18rem;
    line-height: 1.2;
}

.module-grid {
    align-items: stretch;
}

.module-card {
    display: grid;
    flex: 1 1 calc(50% - 6px);
    width: calc(50% - 6px);
    gap: 8px;
    border-radius: 10px;
    padding: 14px;
    transition: transform 160ms ease, box-shadow 160ms ease;
    min-width: 0;
}

.module-card:hover,
.quick-link:hover,
.selection-card:hover {
    transform: translateY(-2px);
}

.module-card__badge {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
}

.module-card--teal .module-card__badge { background: var(--teal); }
.module-card--blue .module-card__badge { background: var(--blue); }
.module-card--amber .module-card__badge { background: var(--amber); }
.module-card--rose .module-card__badge { background: var(--rose); }
.module-card--violet .module-card__badge { background: var(--violet); }
.module-card--green .module-card__badge { background: var(--green); }
.module-card--slate .module-card__badge { background: var(--slate); }

.stack-list {
    display: grid;
    gap: 10px;
}

.stack-item {
    border-radius: 10px;
    padding: 13px 14px;
    min-width: 0;
}

.stack-item p {
    margin-bottom: 0;
    color: var(--muted);
}

.quick-link {
    border-radius: 8px;
    padding: 11px 14px;
    font-weight: 700;
}

.selection-layout {
    grid-template-columns: 1fr;
    min-height: auto;
}

.selection-grid {
    align-items: stretch;
}

.selection-grid > .selection-card {
    flex: 1 1 280px;
}

.selection-card {
    border-radius: 24px;
    padding: 24px;
    min-width: 0;
}

.selection-card__header,
.selection-card__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.selection-card__meta {
    display: grid;
    margin: 18px 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
}

.selection-card__tag,
.selection-card__active,
.message-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.82rem;
    font-weight: 700;
}

.selection-card__tag {
    background: rgba(15, 95, 140, 0.1);
    color: var(--brand-strong);
}

.selection-card__active {
    background: rgba(44, 122, 87, 0.12);
    color: var(--green);
}

.mini-stats {
    align-items: stretch;
}

.mini-stat {
    flex: 1 1 120px;
    width: calc((100% - 24px) / 3);
}

.mini-stat {
    border-radius: 10px;
    padding: 13px;
}

.message-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.message-chip {
    background: rgba(15, 95, 140, 0.08);
    color: var(--brand-strong);
}

.module-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.module-filters {
    align-items: end;
}

.module-filters > .field {
    flex: 1 1 180px;
}

.module-filters > .button {
    flex: 0 1 150px;
}

.module-actions {
    justify-content: end;
}

.field--compact input {
    background: rgba(255, 255, 255, 0.95);
}

.table-card {
    border: 1px solid rgba(16, 36, 51, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    overflow: hidden;
}

.table-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px 10px;
}

.table-card__header h3 {
    margin: 0;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 1.05rem;
}

.table-card__caption {
    max-width: 30ch;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.responsive-card-list {
    display: none;
}

.data-table th,
.data-table td {
    padding: 11px 16px;
    text-align: left;
    border-top: 1px solid rgba(16, 36, 51, 0.08);
    vertical-align: top;
}

.data-table th {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(15, 95, 140, 0.03);
}

.data-table td {
    font-size: 0.9rem;
    line-height: 1.45;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.status-pill--teal {
    color: var(--teal);
    background: rgba(31, 138, 138, 0.12);
}

.status-pill--blue {
    color: var(--blue);
    background: rgba(60, 118, 210, 0.12);
}

.status-pill--amber {
    color: var(--amber);
    background: rgba(181, 110, 18, 0.12);
}

.status-pill--slate {
    color: var(--slate);
    background: rgba(73, 104, 123, 0.12);
}

.status-pill--green {
    color: var(--green);
    background: rgba(44, 122, 87, 0.12);
}

.status-pill--violet {
    color: var(--violet);
    background: rgba(108, 91, 212, 0.12);
}

.matrix-card .table-scroll {
    overflow-x: auto;
}

.matrix-table {
    min-width: 920px;
}

.matrix-table th,
.matrix-table td {
    text-align: center;
}

.matrix-table th:first-child,
.matrix-table td:first-child,
.matrix-table th:nth-child(2),
.matrix-table td:nth-child(2) {
    text-align: left;
}

.matrix-cell {
    min-width: 68px;
    font-size: 0.76rem;
    font-weight: 800;
}

.matrix-cell--ok {
    color: var(--teal);
    background: rgba(31, 138, 138, 0.12);
}

.matrix-cell--missing {
    color: #9f1d28;
    background: rgba(185, 28, 28, 0.16);
}

.matrix-cell__link {
    display: flex;
    min-height: 32px;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.matrix-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 0.86rem;
}

.matrix-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.matrix-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
}

.matrix-dot--ok {
    background: var(--teal);
}

.matrix-dot--missing {
    background: #b91c1c;
}

.note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
}

.note-meta div {
    min-width: 120px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(15, 95, 140, 0.05);
}

.note-meta dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.note-meta dd {
    margin: 2px 0 0;
    font-size: 0.86rem;
}

.note-create-form {
    margin-top: 14px;
}

.note-prefill-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.note-prefill-grid div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(16, 36, 51, 0.08);
    border-radius: 8px;
    background: rgba(31, 138, 138, 0.06);
}

.note-prefill-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.note-prefill-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
}

.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 3px;
    margin-bottom: 12px;
    border: 1px solid rgba(16, 36, 51, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.admin-subnav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 5px 8px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-subnav__link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 8px;
    background: rgba(15, 95, 140, 0.08);
    color: var(--brand-strong);
    font-size: 0.62rem;
}

.admin-subnav__link:hover,
.admin-subnav__link.is-active {
    color: var(--brand-strong);
    background: rgba(15, 95, 140, 0.08);
}

.admin-form,
.admin-form-grid {
    display: grid;
    gap: 12px;
}

.admin-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-form-grid--single,
.field--wide {
    grid-template-columns: 1fr;
}

.field--wide {
    grid-column: 1 / -1;
}

.admin-form-actions,
.admin-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.admin-form-actions {
    margin-top: 4px;
}

.admin-list-shell {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(16, 36, 51, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
}

.admin-list-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.admin-list-head h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 1.2rem;
    line-height: 1.15;
}

.admin-list-head p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.admin-list-head__kicker {
    margin: 0 0 4px !important;
    color: var(--brand-strong) !important;
    font-size: 0.72rem !important;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-list-head__summary {
    display: grid;
    min-width: 150px;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid rgba(15, 95, 140, 0.14);
    border-radius: 8px;
    background: rgba(15, 95, 140, 0.06);
}

.admin-list-head__summary span,
.admin-list-head__summary small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-list-head__summary strong {
    color: var(--brand-strong);
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 1.6rem;
    line-height: 1;
}

.admin-role-summary,
.admin-role-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-role-summary .status-pill,
.admin-role-pills .status-pill {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 0.72rem;
}

.admin-compact-filters {
    gap: 8px;
    padding-top: 2px;
}

.admin-compact-filters > .field {
    flex: 1 1 150px;
}

.admin-compact-filters > .admin-compact-filters__search {
    flex: 1.8 1 260px;
}

.admin-compact-filters .field span {
    margin-bottom: 4px;
    font-size: 0.78rem;
}

.admin-compact-filters input,
.admin-compact-filters select {
    min-height: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.admin-compact-filters__actions {
    flex: 0 1 180px;
    gap: 6px;
}

.admin-grid-card {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
}

.admin-grid-card .table-card__header {
    padding: 12px 14px 8px;
}

.admin-grid-card .data-table {
    min-width: 900px;
}

.admin-grid-card .data-table th,
.admin-grid-card .data-table td {
    padding: 9px 12px;
}

.admin-grid-card .data-table td {
    font-size: 0.86rem;
}

.admin-action-menu {
    position: relative;
    min-width: 116px;
}

.admin-action-menu summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid rgba(15, 95, 140, 0.18);
    border-radius: 8px;
    color: var(--brand-strong);
    background: rgba(15, 95, 140, 0.06);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
    list-style: none;
}

.admin-action-menu summary::-webkit-details-marker {
    display: none;
}

.admin-action-menu__panel {
    display: grid;
    gap: 6px;
    margin-top: 6px;
    min-width: 132px;
}

.admin-action-menu__panel .button,
.admin-action-menu__panel form,
.admin-action-menu__panel button {
    width: 100%;
}

.admin-divider {
    width: 100%;
    margin: 18px 0;
    border: 0;
    border-top: 1px solid rgba(16, 36, 51, 0.1);
}

.admin-note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 8px;
    color: var(--muted);
    background: rgba(15, 95, 140, 0.06);
}

.admin-profile {
    display: grid;
    gap: 12px;
}

.admin-profile__hero,
.admin-info-card,
.admin-worker-form {
    border: 1px solid rgba(16, 36, 51, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
}

.admin-profile__hero {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 16px;
}

.admin-profile__identity {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.admin-profile__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 8px;
    background: var(--brand-strong);
    color: #fff;
    font-weight: 900;
    font-size: 1.1rem;
}

.admin-profile__identity h2 {
    margin: 2px 0 0;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.admin-profile__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.admin-profile__meta span,
.admin-link-card__meta span:not(.status-pill) {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(15, 95, 140, 0.07);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-profile__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.admin-info-card {
    padding: 14px;
}

.admin-info-card--wide,
.admin-info-card--note {
    grid-column: 1 / -1;
}

.admin-info-card--links {
    grid-column: span 2;
}

.admin-info-card--security {
    grid-column: span 1;
}

.section-heading--compact {
    margin-bottom: 10px;
}

.section-heading--compact h3,
.admin-form-section h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1rem;
}

.admin-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.admin-facts--single {
    grid-template-columns: 1fr;
}

.admin-facts dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-facts dd {
    margin: 4px 0 0;
    color: var(--ink);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.admin-link-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
}

.admin-link-card {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(16, 36, 51, 0.08);
    border-radius: 8px;
    background: rgba(15, 95, 140, 0.04);
}

.admin-link-card strong,
.admin-link-card span {
    display: block;
}

.admin-link-card strong {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.admin-security-form {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(16, 36, 51, 0.08);
}

.admin-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
    line-height: 1.35;
}

.admin-check input {
    margin-top: 3px;
}

.admin-security-actions {
    display: grid;
    gap: 8px;
}

.admin-security-actions .button {
    width: 100%;
}

.mandatory-password-page {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 4px 0 18px;
}

.mandatory-password-card {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 620px;
    padding: 24px;
    border: 1px solid rgba(16, 36, 51, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 44px rgba(16, 36, 51, 0.11);
}

.mandatory-password-card__header {
    text-align: center;
}

.mandatory-password-card__header .auth-mark {
    margin-bottom: 12px;
}

.mandatory-password-card__header h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
    font-size: 1.55rem;
    line-height: 1.15;
}

.mandatory-password-card__header p:last-child {
    max-width: 46ch;
    margin: 8px auto 0;
    color: var(--muted);
    line-height: 1.45;
}

.mandatory-password-fields {
    display: grid;
    gap: 13px;
}

.mandatory-password-field {
    gap: 6px;
}

.mandatory-password-field input[type="password"] {
    min-height: 44px;
    padding: 10px 12px;
}

.mandatory-password-help {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.mandatory-password-help ul {
    margin: 6px 0 0;
    padding-left: 18px;
}

.mandatory-password-help li + li {
    margin-top: 3px;
}

.admin-link-card > div > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.admin-link-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-link-card p {
    margin: 0;
    color: var(--muted);
}

.admin-worker-form {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.admin-form-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-form-section {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(16, 36, 51, 0.08);
    border-radius: 8px;
    background: rgba(248, 252, 253, 0.78);
}

.admin-form-section:last-child {
    grid-column: 1 / -1;
}

.admin-form-actions--footer {
    justify-content: flex-end;
}

.admin-kpi-grid {
    margin-bottom: 14px;
}

.student-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.student-filters > .field {
    flex: 1 1 180px;
}

.student-filters__actions {
    display: flex;
    flex: 1 1 260px;
    gap: 10px;
}

.student-filters__actions > * {
    flex: 1 1 0;
}

.dashboard-grid--students,
.dashboard-grid--detail {
    align-items: flex-start;
}

.dashboard-grid--students > .dashboard-card:first-child,
.dashboard-grid--detail > .dashboard-card:first-child {
    flex: 1.5 1 520px;
}

.dashboard-grid--students > .dashboard-card:last-child,
.dashboard-grid--detail > .dashboard-card:last-child {
    flex: 0.85 1 300px;
}

.data-table__sub {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

.student-cards {
    display: none;
}

.student-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(16, 36, 51, 0.08);
}

.student-card__header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.student-card__header span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

.student-card__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.student-card__meta dt,
.detail-grid dt {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.student-card__meta dd,
.detail-grid dd {
    margin: 6px 0 0;
    font-weight: 600;
}

.pagination-bar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: 12px;
    flex-wrap: wrap;
}

.pagination-bar__meta {
    color: var(--muted);
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.timeline-list {
    display: grid;
    gap: 12px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.timeline-item__marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-top: 5px;
    background: rgba(15, 95, 140, 0.18);
    box-shadow: inset 0 0 0 5px var(--brand);
}

.timeline-item--annotation .timeline-item__marker {
    box-shadow: inset 0 0 0 5px var(--amber);
    background: rgba(181, 110, 18, 0.16);
}

.timeline-item__body {
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(16, 36, 51, 0.08);
}

.timeline-item__body strong,
.empty-state h3 {
    display: block;
    margin: 0 0 6px;
    font-family: "Plus Jakarta Sans", "IBM Plex Sans", sans-serif;
}

.timeline-item__body span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.timeline-item__body p,
.empty-state p {
    margin: 0;
    color: var(--muted);
}

.empty-state {
    padding: 18px;
    border-radius: 12px;
    background: rgba(15, 95, 140, 0.05);
    border: 1px dashed rgba(15, 95, 140, 0.2);
}

@media (max-width: 1180px) {
    .app-layout {
        flex-direction: column;
        gap: 14px;
        padding: 14px;
    }

    .topbar__menu-button {
        display: inline-flex;
    }

    .sidebar {
        float: none;
        flex: none;
        position: fixed;
        top: 12px;
        bottom: 12px;
        left: 12px;
        width: min(300px, calc(100vw - 24px));
        z-index: 30;
        padding: 18px;
        transform: translateX(calc(-100% - 24px));
        transition: transform 200ms ease;
        overflow-y: auto;
    }

    .sidebar__mobile-bar {
        display: flex;
    }

    .app-overlay {
        position: fixed;
        inset: 0;
        background: rgba(16, 36, 51, 0.42);
        z-index: 20;
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease;
    }

    .sidebar-toggle:checked ~ .app-layout .sidebar {
        transform: translateX(0);
    }

    .sidebar-toggle:checked ~ .app-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .dashboard-grid,
    .kpi-grid,
    .selection-grid,
    .mini-stats {
        align-items: stretch;
    }

    .kpi-grid > .kpi-card,
    .selection-grid > .selection-card,
    .mini-stat {
        flex-basis: calc(50% - 6px);
        width: 48%;
    }

    .module-card {
        width: calc(50% - 6px);
    }

    .module-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-actions {
        justify-content: start;
    }

    .topbar__actions {
        justify-content: flex-start;
    }

    .student-filters {
        align-items: end;
    }

    .admin-profile__grid,
    .admin-form-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-info-card--wide,
    .admin-info-card--links,
    .admin-info-card--security,
    .admin-info-card--note,
    .admin-form-section:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .note-prefill-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-layout,
    .selection-layout {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .app-layout {
        padding: 12px;
    }

    .auth-layout {
        min-height: 100svh;
    }

    .page-hero,
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-grid {
        flex-direction: column;
    }

    .module-filters,
    .module-actions {
        flex-direction: column;
    }

    .student-filters,
    .student-filters__actions,
    .detail-grid,
    .admin-form-grid,
    .admin-profile__hero,
    .admin-profile__identity,
    .admin-profile__meta,
    .admin-form-actions--footer {
        flex-direction: column;
    }

    .module-actions > * {
        width: 100%;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-profile__grid,
    .admin-form-sections,
    .admin-facts {
        grid-template-columns: 1fr;
    }

    .admin-profile__hero,
    .admin-profile__identity {
        align-items: flex-start;
    }

    .admin-profile__status,
    .admin-profile__status .status-pill,
    .admin-form-actions--footer > * {
        width: 100%;
    }

    .table-card__header,
    .section-heading,
    .admin-list-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-list-head__summary {
        min-width: 0;
    }

    .topbar__actions,
    .topbar__context {
        width: 100%;
    }

    .context-pill,
    .user-chip {
        width: 100%;
    }

    .auth-panel,
    .selection-hero,
    .dashboard-card,
    .kpi-card,
    .topbar,
    .auth-form-shell {
        padding: 16px;
    }

    .auth-panel--form {
        padding: 0;
    }

    .auth-footer {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-grid > .dashboard-card,
    .dashboard-grid > .dashboard-card:first-child,
    .dashboard-grid > .dashboard-card:last-child,
    .dashboard-grid--students > .dashboard-card:first-child,
    .dashboard-grid--students > .dashboard-card:last-child,
    .dashboard-grid--detail > .dashboard-card:first-child,
    .dashboard-grid--detail > .dashboard-card:last-child,
    .kpi-grid > .kpi-card,
    .module-card,
    .selection-grid > .selection-card,
    .mini-stat,
    .module-filters > .field,
    .module-filters > .button,
    .student-filters > .field,
    .student-filters__actions {
        flex: 1 1 auto;
        width: 100%;
    }

    .kpi-grid > .kpi-card {
        width: 48%;
    }
}

@media (max-width: 640px) {
    .auth-layout,
    .selection-layout,
    .app-layout {
        padding: 10px;
    }

    .auth-layout {
        align-items: center;
    }

    .auth-panel,
    .selection-hero,
    .auth-form-shell,
    .dashboard-card,
    .kpi-card,
    .selection-card,
    .topbar {
        padding: 14px;
        border-radius: 8px;
    }

    .auth-panel--form {
        padding: 0;
    }

    .auth-form-shell--simple {
        padding: 24px 20px;
    }

    .mandatory-password-card {
        padding: 18px;
    }

    .mandatory-password-card__header h2 {
        font-size: 1.35rem;
    }

    .auth-mark {
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
    }

    .auth-form-shell__header--center {
        margin-bottom: 24px;
    }

    .app-content {
        gap: 12px;
        padding-bottom: 14px;
    }

    .auth-panel h1,
    .selection-hero h1 {
        font-size: clamp(1.9rem, 9vw, 2.7rem);
    }

    .page-hero h1 {
        font-size: clamp(1.45rem, 7vw, 1.9rem);
    }

    .quick-links,
    .hero-actions,
    .admin-form-actions,
    .admin-inline-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kpi-grid,
    .module-grid,
    .selection-grid,
    .mini-stats {
        flex-direction: column;
    }

    .kpi-grid > .kpi-card,
    .module-card,
    .selection-grid > .selection-card,
    .mini-stat {
        width: 100%;
    }

    .note-prefill-grid {
        grid-template-columns: 1fr;
    }

    .quick-links > *,
    .hero-actions > *,
    .admin-form-actions > *,
    .admin-inline-actions > * {
        width: 100%;
    }

    .admin-inline-actions form,
    .admin-inline-actions button {
        width: 100%;
    }

    .table-card--students {
        display: none;
    }

    .student-cards {
        display: grid;
        gap: 14px;
    }

    .table-scroll {
        overflow-x: visible;
    }

    .student-card__header,
    .pagination-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .data-table,
    .data-table thead,
    .data-table tbody,
    .data-table th,
    .data-table td,
    .data-table tr {
        display: block;
        min-width: 0;
    }

    .data-table {
        min-width: 0;
    }

    .data-table thead {
        display: none;
    }

    .data-table tr {
        padding: 12px 14px;
        border-top: 1px solid rgba(16, 36, 51, 0.08);
    }

    .admin-grid-card .data-table tr {
        padding: 10px 12px;
    }

    .data-table td {
        border-top: 0;
        padding: 8px 0;
    }

    .admin-grid-card .data-table td {
        padding: 6px 0;
    }

    .data-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .data-table tr {
        margin: 10px;
        border: 1px solid rgba(16, 36, 51, 0.08);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.82);
    }

    .admin-grid-card .data-table tr {
        margin: 8px;
        border-radius: 8px;
    }

    .admin-action-menu,
    .admin-action-menu summary,
    .admin-action-menu__panel {
        width: 100%;
    }

    .admin-role-summary {
        gap: 5px;
    }

    .sidebar {
        width: min(290px, calc(100vw - 20px));
        left: 10px;
        right: 10px;
        bottom: 10px;
        top: 10px;
    }
}

/* Selector moderno de plataforma y establecimiento */
.auth-shell--selection {
    background: #eef3f7;
}

.access-picker {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1180px;
    min-height: 100vh;
    padding: 54px 28px;
}

.access-picker__header {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.access-picker__eyebrow {
    color: #0f6b78;
    font-size: .78rem;
    font-weight: 800;
    margin: 0 0 9px;
    text-transform: uppercase;
}

.access-picker__header h1 {
    color: #14283a;
    font-size: 2.35rem;
    line-height: 1.12;
    margin: 0;
}

.access-picker__header p:not(.access-picker__eyebrow) {
    color: #617487;
    margin: 10px 0 0;
}

.access-picker__user {
    background: #fff;
    border: 1px solid #dce5ec;
    border-radius: 8px;
    min-width: 210px;
    padding: 12px 15px;
}

.access-picker__user span,
.access-picker__user strong {
    display: block;
}

.access-picker__user span {
    color: #718293;
    font-size: .75rem;
    margin-bottom: 3px;
}

.access-picker__user strong {
    color: #23384a;
    font-size: .9rem;
}

.access-picker__back {
    background: #fff;
    border: 1px solid #d5e0e8;
    border-radius: 7px;
    color: #21516e;
    font-size: .84rem;
    font-weight: 700;
    padding: 10px 14px;
    text-decoration: none;
}

.access-picker__grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.access-option {
    background: #fff;
    border: 1px solid #dce5ec;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(25, 55, 75, .07);
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 26px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.access-option:hover {
    border-color: #9fc3d5;
    box-shadow: 0 16px 36px rgba(25, 55, 75, .11);
    transform: translateY(-2px);
}

.access-option--utp {
    border-top: 4px solid #16836c;
}

.access-option--school {
    min-height: 275px;
}

.access-option__top {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.access-option__icon {
    align-items: center;
    background: #e8f2f7;
    border-radius: 7px;
    color: #125777;
    display: inline-flex;
    font-size: .95rem;
    font-weight: 800;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.access-option--utp .access-option__icon {
    background: #e3f3ee;
    color: #12644f;
}

.access-option__badge {
    background: #f0f4f7;
    border-radius: 999px;
    color: #52687a;
    font-size: .72rem;
    font-weight: 800;
    padding: 6px 9px;
}

.access-option h2 {
    color: #172c3d;
    font-size: 1.35rem;
    margin: 25px 0 8px;
}

.access-option > p {
    color: #65788a;
    line-height: 1.55;
    margin: 0;
}

.access-option__detail {
    align-items: center;
    border-top: 1px solid #e9eef2;
    display: flex;
    gap: 10px;
    margin: 22px 0;
    padding-top: 16px;
}

.access-option__detail strong {
    color: #173f59;
}

.access-option__detail span {
    color: #718293;
    font-size: .82rem;
}

.access-option button {
    align-items: center;
    background: #155f83;
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: .9rem;
    font-weight: 800;
    justify-content: space-between;
    margin-top: auto;
    padding: 12px 15px;
    width: 100%;
}

.access-option--utp button {
    background: #14705b;
}

@media (max-width: 760px) {
    .access-picker {
        padding: 28px 16px;
    }

    .access-picker__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .access-picker__header h1 {
        font-size: 1.85rem;
    }

    .access-picker__grid {
        grid-template-columns: 1fr;
    }

    .access-picker__user {
        box-sizing: border-box;
        width: 100%;
    }
}

/* UTP Comunal como producto independiente */
.utp-product {
    background: #f2f5f7;
    color: #1b2b36;
    min-height: 100vh;
}

.utp-shell {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    min-height: 100vh;
}

.utp-sidebar {
    background: #123f46;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 24px 16px;
}

.utp-brand {
    align-items: center;
    display: flex;
    gap: 11px;
    padding: 0 8px 25px;
}

.utp-brand__mark {
    align-items: center;
    background: #d9f0e9;
    border-radius: 7px;
    color: #155b50;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 900;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.utp-brand strong,
.utp-brand small {
    display: block;
}

.utp-brand strong {
    font-size: .98rem;
}

.utp-brand small {
    color: #a9cbc9;
    font-size: .7rem;
    margin-top: 2px;
}

.utp-sidebar__nav {
    display: grid;
    gap: 4px;
}

.utp-sidebar__nav a {
    align-items: center;
    border-radius: 6px;
    color: #c9dcdb;
    display: flex;
    font-size: .84rem;
    font-weight: 650;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
}

.utp-sidebar__nav a span {
    color: #77aaa6;
    font-size: .65rem;
    font-weight: 800;
}

.utp-sidebar__nav a:hover,
.utp-sidebar__nav a.is-active {
    background: #1c5359;
    color: #fff;
}

.utp-sidebar__footer {
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: grid;
    gap: 5px;
    margin-top: auto;
    padding-top: 16px;
}

.utp-sidebar__footer a,
.utp-sidebar__footer button {
    background: transparent;
    border: 0;
    color: #b8d2d0;
    cursor: pointer;
    display: block;
    font: inherit;
    font-size: .78rem;
    padding: 7px 9px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.utp-workspace {
    min-width: 0;
}

.utp-topbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #dfe7e9;
    display: flex;
    justify-content: space-between;
    min-height: 66px;
    padding: 0 28px;
}

.utp-topbar strong,
.utp-topbar small,
.utp-topbar__user span {
    display: block;
}

.utp-topbar > div > small {
    color: #7b8b94;
    font-size: .67rem;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.utp-topbar > div > strong {
    color: #1b343c;
    font-size: .95rem;
}

.utp-topbar__user {
    text-align: right;
}

.utp-topbar__user span {
    color: #304952;
    font-size: .8rem;
    font-weight: 750;
}

.utp-topbar__user small {
    color: #7a8c94;
    font-size: .68rem;
}

.utp-main {
    margin: 0 auto;
    max-width: 1440px;
    padding: 26px 28px 42px;
}

.utp-notice {
    background: #e7f4ef;
    border: 1px solid #bbdcd0;
    border-radius: 6px;
    color: #175f4c;
    margin-bottom: 16px;
    padding: 10px 13px;
}

.utp-welcome {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 22px;
}

.utp-welcome p,
.utp-surface__head p {
    color: #16806a;
    font-size: .7rem;
    font-weight: 850;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.utp-welcome h1 {
    color: #16313a;
    font-size: 1.72rem;
    margin: 0 0 8px;
}

.utp-welcome > div > span {
    color: #687c85;
    font-size: .9rem;
}

.utp-welcome__actions {
    display: flex;
    gap: 8px;
}

.utp-welcome__actions a,
.utp-surface__head a {
    border: 1px solid #cbd9dc;
    border-radius: 6px;
    color: #24545f;
    font-size: .78rem;
    font-weight: 800;
    padding: 9px 12px;
    text-decoration: none;
}

.utp-welcome__actions a.is-primary {
    background: #15715e;
    border-color: #15715e;
    color: #fff;
}

.utp-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 16px;
}

.utp-summary article {
    background: #fff;
    border: 1px solid #dfe7e9;
    border-radius: 7px;
    padding: 16px;
}

.utp-summary span,
.utp-summary small,
.utp-summary strong {
    display: block;
}

.utp-summary span {
    color: #647881;
    font-size: .76rem;
    font-weight: 700;
}

.utp-summary strong {
    color: #173a43;
    font-size: 1.65rem;
    margin: 8px 0 5px;
}

.utp-summary small {
    color: #84939a;
    font-size: .7rem;
}

.utp-dashboard-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
    margin-bottom: 16px;
}

.utp-surface {
    background: #fff;
    border: 1px solid #dfe7e9;
    border-radius: 7px;
    min-width: 0;
    padding: 19px;
}

.utp-surface__head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 17px;
}

.utp-surface__head h2 {
    color: #203a43;
    font-size: .98rem;
    margin: 0;
}

.utp-surface__head > span {
    color: #7f9097;
    font-size: .72rem;
}

.utp-level-chart {
    display: grid;
    gap: 13px;
}

.utp-level-chart__item {
    align-items: center;
    display: grid;
    gap: 11px;
    grid-template-columns: 78px minmax(80px, 1fr) 42px;
}

.utp-level-chart__item > span,
.utp-level-chart__item > strong {
    color: #536871;
    font-size: .72rem;
}

.utp-level-chart__item > strong {
    text-align: right;
}

.utp-level-chart__track {
    background: #e8eeef;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.utp-level-chart__track i {
    background: #1b8a72;
    border-radius: inherit;
    display: block;
    height: 100%;
    min-width: 0;
}

.utp-coverage {
    text-align: center;
}

.utp-coverage__donut {
    align-items: center;
    background: conic-gradient(#1b8a72 calc(var(--coverage) * 1%), #e5ecec 0);
    border-radius: 50%;
    display: flex;
    height: 154px;
    justify-content: center;
    margin: 7px auto 15px;
    position: relative;
    width: 154px;
}

.utp-coverage__donut::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 112px;
    position: absolute;
    width: 112px;
}

.utp-coverage__donut div {
    position: relative;
    z-index: 1;
}

.utp-coverage__donut strong,
.utp-coverage__donut span {
    display: block;
}

.utp-coverage__donut strong {
    color: #173f46;
    font-size: 1.55rem;
}

.utp-coverage__donut span,
.utp-coverage > p {
    color: #75878e;
    font-size: .72rem;
}

.utp-active-row {
    align-items: center;
    border-top: 1px solid #e8edef;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(70px, .65fr));
    padding: 12px 0;
}

.utp-active-row strong,
.utp-active-row span {
    display: block;
}

.utp-active-row strong {
    color: #27424a;
    font-size: .78rem;
}

.utp-active-row span {
    color: #84939a;
    font-size: .68rem;
    margin-top: 3px;
}

.utp-content-row {
    align-items: center;
    border-top: 1px solid #e8edef;
    display: flex;
    gap: 10px;
    padding: 11px 0;
}

.utp-content-row > span {
    background: #e9f3f0;
    border-radius: 5px;
    color: #176350;
    font-size: .65rem;
    font-weight: 800;
    padding: 5px 7px;
}

.utp-content-row strong,
.utp-content-row small {
    display: block;
}

.utp-content-row strong {
    color: #304950;
    font-size: .76rem;
}

.utp-content-row small {
    color: #829198;
    font-size: .67rem;
    margin-top: 2px;
}

.utp-empty {
    background: #f6f8f8;
    border: 1px dashed #ccd8da;
    border-radius: 6px;
    padding: 22px;
    text-align: center;
}

.utp-empty strong,
.utp-empty span {
    display: block;
}

.utp-empty strong {
    color: #3b535a;
    font-size: .82rem;
}

.utp-empty span {
    color: #84939a;
    font-size: .72rem;
    margin-top: 4px;
}

@media (max-width: 1050px) {
    .utp-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .utp-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .utp-shell {
        grid-template-columns: 1fr;
        max-width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }

    .utp-sidebar {
        box-sizing: border-box;
        max-width: 100vw;
        min-width: 0;
        overflow: hidden;
        padding: 13px;
        width: 100%;
    }

    .utp-brand {
        padding-bottom: 12px;
    }

    .utp-sidebar__nav {
        display: flex;
        max-width: 100%;
        overflow-x: auto;
    }

    .utp-sidebar__nav a {
        flex: 0 0 auto;
    }

    .utp-sidebar__footer {
        display: none;
    }

    .utp-topbar {
        box-sizing: border-box;
        max-width: 100%;
        padding: 0 16px;
    }

    .utp-main {
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
        padding: 20px 14px 32px;
    }

    .utp-welcome {
        align-items: flex-start;
        flex-direction: column;
    }

    .utp-welcome h1 {
        font-size: 1.4rem;
    }

    .utp-summary {
        grid-template-columns: 1fr 1fr;
    }

    .utp-active-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 460px) {
    .utp-summary {
        grid-template-columns: 1fr;
    }

    .utp-level-chart__item {
        grid-template-columns: 68px minmax(60px, 1fr) 38px;
    }
}

/* Habilitacion y rendicion de evaluaciones */
.utp-enable-form {
    margin-bottom: 16px;
}

.utp-form--inline {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.utp-form--inline p {
    margin: 0;
}

.utp-command {
    background: #15715e;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    min-height: 39px;
    padding: 9px 13px;
}

.utp-application-row {
    align-items: center;
    border-top: 1px solid #e5ecee;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(220px, 1.5fr) 90px minmax(260px, 1fr);
    padding: 15px 0;
}

.utp-application-row__main strong,
.utp-application-row__main small,
.utp-application-row__school,
.utp-application-row__progress strong,
.utp-application-row__progress span {
    display: block;
}

.utp-application-row__school {
    color: #17806a;
    font-size: .67rem;
    font-weight: 850;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.utp-application-row__main strong {
    color: #2a444c;
    font-size: .82rem;
}

.utp-application-row__main small,
.utp-application-row__progress span {
    color: #7b8d94;
    font-size: .68rem;
    margin-top: 3px;
}

.utp-application-row__progress strong {
    color: #23434b;
}

.utp-application-row__link {
    display: grid;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.utp-application-row__link input {
    background: #f6f8f8;
    border: 1px solid #d8e1e3;
    border-radius: 5px;
    box-sizing: border-box;
    color: #65787f;
    font-size: .66rem;
    min-width: 0;
    padding: 8px;
    width: 100%;
}

.utp-application-row__link a {
    align-items: center;
    background: #e5f2ee;
    border-radius: 5px;
    color: #17644f;
    display: inline-flex;
    font-size: .7rem;
    font-weight: 800;
    padding: 8px 10px;
    text-decoration: none;
}

.student-assessment {
    background: #eef3f4;
    color: #20363e;
    min-height: 100vh;
}

.student-access,
.assessment-player,
.assessment-result {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1040px;
    min-height: 100vh;
    padding: 38px 24px 50px;
}

.student-access__brand {
    color: #14705b;
    display: block;
    font-size: .75rem;
    font-weight: 900;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.student-access__header {
    background: #164b51;
    border-radius: 8px;
    color: #fff;
    padding: 28px;
}

.student-access__header p {
    color: #a9d0cc;
    font-size: .75rem;
    font-weight: 800;
    margin: 0 0 7px;
    text-transform: uppercase;
}

.student-access__header h1 {
    font-size: 1.65rem;
    margin: 0 0 8px;
}

.student-access__header span:not(.student-access__brand) {
    color: #c8dedd;
    font-size: .82rem;
}

.student-access__intro {
    margin: 28px 0 16px;
}

.student-access__intro h2 {
    font-size: 1.15rem;
    margin: 0 0 6px;
}

.student-access__intro p {
    color: #6c7e85;
    font-size: .82rem;
    margin: 0;
}

.student-roster {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-card {
    align-items: center;
    background: #fff;
    border: 1px solid #dce5e7;
    border-radius: 7px;
    display: grid;
    gap: 11px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    padding: 13px;
}

.student-card > span {
    align-items: center;
    background: #e4f1ed;
    border-radius: 50%;
    color: #176451;
    display: flex;
    font-size: .73rem;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.student-card strong,
.student-card small {
    display: block;
}

.student-card strong {
    color: #2a424a;
    font-size: .82rem;
}

.student-card small {
    color: #809096;
    font-size: .68rem;
    margin-top: 3px;
}

.student-card button {
    background: #166f5c;
    border: 0;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .7rem;
    font-weight: 800;
    padding: 8px 10px;
}

.student-card__complete {
    background: #e6edef !important;
    border-radius: 5px !important;
    color: #64777d !important;
    display: inline-flex !important;
    font-size: .7rem !important;
    font-weight: 800 !important;
    height: auto !important;
    justify-content: center !important;
    padding: 8px 10px !important;
    width: auto !important;
}

.assessment-player__header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.assessment-player__header > div > span {
    color: #16715e;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.assessment-player__header h1 {
    font-size: 1.35rem;
    margin: 5px 0;
}

.assessment-player__header p {
    color: #6e8188;
    font-size: .78rem;
    margin: 0;
}

.assessment-timer {
    background: #fff;
    border: 1px solid #d6e1e3;
    border-radius: 7px;
    min-width: 120px;
    padding: 11px 14px;
    text-align: center;
}

.assessment-timer small,
.assessment-timer strong {
    display: block;
}

.assessment-timer small {
    color: #75878e;
    font-size: .63rem;
}

.assessment-timer strong {
    color: #164b51;
    font-size: 1.25rem;
    margin-top: 3px;
}

.assessment-timer.is-urgent {
    border-color: #d99881;
}

.assessment-timer.is-urgent strong {
    color: #b54d2e;
}

.assessment-questions {
    display: grid;
    gap: 13px;
}

.assessment-question {
    align-items: flex-start;
    background: #fff;
    border: 1px solid #dce5e7;
    border-radius: 7px;
    display: grid;
    gap: 14px;
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 19px;
}

.assessment-question__number {
    align-items: center;
    background: #184f55;
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: .75rem;
    font-weight: 850;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.assessment-question h2 {
    color: #273f47;
    font-size: .98rem;
    line-height: 1.45;
    margin: 4px 0 14px;
}

.assessment-alternatives {
    display: grid;
    gap: 8px;
}

.assessment-alternatives label {
    align-items: center;
    background: #f7f9f9;
    border: 1px solid #e1e8ea;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    gap: 9px;
    padding: 10px 12px;
}

.assessment-alternatives label:has(input:checked) {
    background: #e5f3ee;
    border-color: #77b6a3;
}

.assessment-alternatives span {
    color: #425961;
    font-size: .82rem;
}

.assessment-submit {
    align-items: center;
    background: #fff;
    border: 1px solid #dce5e7;
    border-radius: 7px;
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding: 15px;
}

.assessment-submit span {
    color: #71848b;
    font-size: .75rem;
}

.assessment-submit button,
.assessment-result a {
    background: #14705b;
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .8rem;
    font-weight: 850;
    padding: 10px 14px;
    text-decoration: none;
}

.assessment-result {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.assessment-result > p {
    color: #71838a;
}

.assessment-result h1 {
    color: #213d45;
    font-size: 1.6rem;
    max-width: 620px;
}

.assessment-result__score {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e3e5;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    height: 170px;
    justify-content: center;
    margin: 20px;
    width: 170px;
}

.assessment-result__score strong {
    color: #156b58;
    font-size: 2.2rem;
}

.assessment-result__score span {
    color: #6e8188;
    font-size: .8rem;
    font-weight: 800;
}

@media (max-width: 900px) {
    .utp-form--inline,
    .utp-application-row {
        grid-template-columns: 1fr 1fr;
    }

    .utp-application-row__link {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .utp-form--inline,
    .utp-application-row,
    .student-roster {
        grid-template-columns: 1fr;
    }

    .utp-application-row__link {
        grid-column: auto;
    }

    .student-access,
    .assessment-player,
    .assessment-result {
        padding: 20px 13px 35px;
    }

    .student-access__header {
        padding: 20px;
    }

    .student-access__header h1 {
        font-size: 1.3rem;
    }

    .assessment-player__header,
    .assessment-submit {
        align-items: flex-start;
        flex-direction: column;
    }

    .assessment-timer {
        box-sizing: border-box;
        width: 100%;
    }
}


/* asistencia-module */
.attendance-filter .module-filters,
.attendance-picker .module-filters {
    align-items: end;
}

.attendance-chart {
    display: grid;
    gap: 14px;
}

.attendance-chart__row {
    display: grid;
    grid-template-columns: 42px minmax(160px, 1fr) 64px;
    gap: 12px;
    align-items: center;
}

.attendance-chart__label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.attendance-chart__track {
    height: 18px;
    overflow: hidden;
    border-radius: 5px;
    background: #e8eef0;
}

.attendance-chart__bar {
    display: block;
    min-width: 0;
    height: 100%;
    border-radius: inherit;
    background: #16856b;
}

.attendance-chart__bar.is-low {
    background: #c55037;
}

.attendance-toolbar {
    position: sticky;
    top: 10px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(16, 36, 51, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(16, 36, 51, 0.1);
}

.attendance-toolbar > div:first-child {
    display: grid;
    gap: 3px;
}

.attendance-toolbar span {
    color: var(--muted);
    font-size: 0.86rem;
}

.attendance-toolbar__actions {
    display: flex;
    gap: 8px;
}

.attendance-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.attendance-student {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 36, 51, 0.1);
    border-radius: 7px;
    background: #ffffff;
    cursor: pointer;
}

.attendance-student:hover {
    border-color: rgba(22, 133, 107, 0.45);
}

.attendance-student input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.attendance-student__status {
    width: 22px;
    height: 22px;
    border: 2px solid #8ca09d;
    border-radius: 5px;
    background: #eff7f4;
}

.attendance-student__identity {
    display: grid;
    min-width: 0;
}

.attendance-student__identity strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendance-student__identity small,
.attendance-student__label {
    color: var(--muted);
}

.attendance-student__label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.attendance-student.is-absent {
    border-color: #d58b7c;
    background: #fff3f0;
}

.attendance-student.is-absent .attendance-student__status {
    border-color: #b9432e;
    background: #b9432e;
    box-shadow: inset 0 0 0 4px #fff3f0;
}

.attendance-student.is-absent .attendance-student__label {
    color: #a63826;
}

.attendance-save-mobile {
    display: none;
}

@media (max-width: 820px) {
    .attendance-list {
        grid-template-columns: 1fr;
    }

    .attendance-toolbar {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .attendance-toolbar__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .attendance-toolbar__actions {
        grid-template-columns: 1fr;
    }

    .attendance-toolbar__actions .button--primary {
        display: none;
    }

    .attendance-save-mobile {
        position: sticky;
        bottom: 10px;
        z-index: 5;
        display: block;
        margin-top: 12px;
    }

    .attendance-save-mobile .button {
        width: 100%;
        box-shadow: 0 8px 20px rgba(16, 36, 51, 0.18);
    }

    .attendance-chart__row {
        grid-template-columns: 36px minmax(100px, 1fr) 52px;
        gap: 8px;
    }
}



/* asistencia-calendar-v2 */
.attendance-filter .module-filters,
.attendance-picker .module-filters {
    align-items: end;
}

.attendance-analytics {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
    gap: 14px;
}

.attendance-bars-card,
.attendance-donut-card {
    min-width: 0;
}

.attendance-bars {
    display: grid;
    grid-template-columns: repeat(12, minmax(34px, 1fr));
    gap: 8px;
    align-items: end;
    height: 290px;
    padding-top: 14px;
}

.attendance-bars__item {
    display: grid;
    grid-template-rows: 24px 1fr 22px;
    gap: 6px;
    align-items: end;
    height: 100%;
    text-align: center;
}

.attendance-bars__item strong {
    font-size: 0.72rem;
}

.attendance-bars__item > span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.attendance-bars__track {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 5px 5px 2px 2px;
    background:
        linear-gradient(to top, rgba(16, 36, 51, 0.08) 1px, transparent 1px) 0 0 / 100% 25%,
        #edf2f3;
}

.attendance-bars__fill {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 0;
    border-radius: 5px 5px 0 0;
    background: #16856b;
}

.attendance-bars__fill.is-low {
    background: #c55037;
}

.attendance-donut-card {
    display: flex;
    flex-direction: column;
}

.attendance-donut {
    position: relative;
    width: min(220px, 72vw);
    aspect-ratio: 1;
    margin: 8px auto 18px;
    border-radius: 50%;
    background: conic-gradient(#16856b calc(var(--attendance-value) * 3.6deg), #dbe4e6 0);
}

.attendance-donut::after {
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    background: #ffffff;
    content: "";
}

.attendance-donut__center {
    position: absolute;
    inset: 25%;
    z-index: 1;
    display: grid;
    place-content: center;
    text-align: center;
}

.attendance-donut__center strong {
    color: #12392f;
    font-size: 2rem;
}

.attendance-donut__center span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.attendance-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    color: var(--muted);
    font-size: 0.82rem;
}

.attendance-legend span {
    display: flex;
    gap: 6px;
    align-items: center;
}

.attendance-legend i {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.attendance-legend .is-present {
    background: #16856b;
}

.attendance-legend .is-absent {
    background: #dbe4e6;
}

.attendance-calendar-summary {
    display: grid;
    gap: 8px;
    margin: 20px 0 0;
}

.attendance-calendar-summary div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(16, 36, 51, 0.08);
}

.attendance-calendar-summary dt {
    color: var(--muted);
}

.attendance-calendar-summary dd {
    margin: 0;
    font-weight: 800;
}

.attendance-chart {
    display: grid;
    gap: 14px;
}

.attendance-chart__row {
    display: grid;
    grid-template-columns: 42px minmax(160px, 1fr) 64px;
    gap: 12px;
    align-items: center;
}

.attendance-chart__label {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.attendance-chart__track {
    height: 18px;
    overflow: hidden;
    border-radius: 5px;
    background: #e8eef0;
}

.attendance-chart__bar {
    display: block;
    min-width: 0;
    height: 100%;
    border-radius: inherit;
    background: #16856b;
}

.attendance-chart__bar.is-low {
    background: #c55037;
}

.attendance-toolbar {
    position: sticky;
    top: 10px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(16, 36, 51, 0.12);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(16, 36, 51, 0.1);
}

.attendance-toolbar > div:first-child {
    display: grid;
    gap: 3px;
}

.attendance-toolbar span {
    color: var(--muted);
    font-size: 0.86rem;
}

.attendance-toolbar__actions {
    display: flex;
    gap: 8px;
}

.attendance-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.attendance-student {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid rgba(16, 36, 51, 0.1);
    border-radius: 7px;
    background: #ffffff;
    cursor: pointer;
}

.attendance-student:hover {
    border-color: rgba(22, 133, 107, 0.45);
}

.attendance-student input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.attendance-student__status {
    width: 22px;
    height: 22px;
    border: 2px solid #8ca09d;
    border-radius: 5px;
    background: #eff7f4;
}

.attendance-student__identity {
    display: grid;
    min-width: 0;
}

.attendance-student__identity strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attendance-student__identity small,
.attendance-student__label {
    color: var(--muted);
}

.attendance-student__label {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.attendance-student.is-absent {
    border-color: #d58b7c;
    background: #fff3f0;
}

.attendance-student.is-absent .attendance-student__status {
    border-color: #b9432e;
    background: #b9432e;
    box-shadow: inset 0 0 0 4px #fff3f0;
}

.attendance-student.is-absent .attendance-student__label {
    color: #a63826;
}

.attendance-save-mobile {
    display: none;
}

@media (max-width: 820px) {
    .attendance-analytics {
        grid-template-columns: 1fr;
    }

    .attendance-bars {
        overflow-x: auto;
        grid-template-columns: repeat(12, minmax(48px, 1fr));
        padding-bottom: 8px;
    }

    .attendance-list {
        grid-template-columns: 1fr;
    }

    .attendance-toolbar {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .attendance-toolbar__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .attendance-bars {
        height: 240px;
    }

    .attendance-toolbar__actions {
        grid-template-columns: 1fr;
    }

    .attendance-toolbar__actions .button--primary {
        display: none;
    }

    .attendance-save-mobile {
        position: sticky;
        bottom: 10px;
        z-index: 5;
        display: block;
        margin-top: 12px;
    }

    .attendance-save-mobile .button {
        width: 100%;
        box-shadow: 0 8px 20px rgba(16, 36, 51, 0.18);
    }

    .attendance-chart__row {
        grid-template-columns: 36px minmax(100px, 1fr) 52px;
        gap: 8px;
    }
}
/* UTP Comunal */
.utp-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.utp-nav a,
.utp-actions a {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f3f69;
    padding: 9px 12px;
    text-decoration: none;
    background: #fff;
}

.utp-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.utp-metric,
.utp-panel {
    border: 1px solid #dbe3ea;
    border-radius: 8px;
    background: #fff;
}

.utp-metric {
    padding: 16px;
    border-top: 4px solid #2563eb;
}

.utp-metric--green { border-top-color: #15803d; }
.utp-metric--amber { border-top-color: #b45309; }
.utp-metric--teal { border-top-color: #0f766e; }
.utp-metric span,
.utp-list-item small {
    display: block;
    color: #64748b;
    font-size: .82rem;
}
.utp-metric strong { display: block; margin-top: 5px; font-size: 1.65rem; color: #172033; }

.utp-grid,
.utp-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.utp-split { grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); }
.utp-panel { padding: 16px; }
.utp-panel__head,
.utp-row,
.utp-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.utp-panel__head { margin-bottom: 14px; }
.utp-panel__head h2 { margin: 0; font-size: 1rem; }
.utp-row,
.utp-list-item { border-top: 1px solid #edf1f5; padding: 11px 0; }
.utp-list-item > div:last-child { display: flex; align-items: center; gap: 8px; }
.utp-status { border-radius: 999px; background: #e8eef5; color: #334155; padding: 4px 8px; font-size: .76rem; }
.utp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.utp-form p { margin: 0 0 12px; }
.utp-form label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 5px; }
.utp-form input:not([type="checkbox"]),
.utp-form select,
.utp-form textarea { width: 100%; box-sizing: border-box; }
.utp-form .errorlist { color: #b91c1c; font-size: .8rem; padding-left: 18px; }

@media (max-width: 980px) {
    .utp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .utp-grid,
    .utp-split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .utp-metrics { grid-template-columns: 1fr; }
    .utp-list-item { align-items: flex-start; flex-direction: column; }
}
