:root {
    --bg: #efefef;
    --panel: #ffffff;
    --panel-soft: #f6f6f6;
    --ink: #101010;
    --muted: #6f6f76;
    --line: #e4e4e7;
    --dark: #050505;
    --accent: #141414;
    --success: #1e8e5a;
    --error: #b93838;
    --shadow: 0 24px 60px rgba(15, 15, 15, 0.08);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: radial-gradient(circle at top left, #f7f7f7 0%, var(--bg) 48%, #e8e8e8 100%);
    color: var(--ink);
    font-family: "Roboto", sans-serif;
}

body.modal-open {
    overflow: hidden;
}

/* ── modal overlay ────────────────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 60;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-y: auto;
}

.modal.is-visible {
    display: flex;
}

.modal-dialog {
    background: #fff;
    border-radius: 16px;
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    padding: 28px;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    padding: 0 4px;
    line-height: 1;
}

.modal-close:hover {
    color: #111;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.button--primary {
    background: #111;
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.button--primary:hover {
    background: #333;
}

.button--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

button,
input,
select {
    font: inherit;
}

.shell {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
    min-height: 100vh;
}

.sidebar {
    background: var(--dark);
    color: #fff;
    border-radius: 28px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 26px 46px rgba(0, 0, 0, 0.18);
    position: sticky;
    top: 28px;
    height: calc(100vh - 56px);
    z-index: 25;
    overflow: visible;
}

.sidebar__brand {
    display: grid;
    gap: 12px;
    justify-items: center;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #000;
    font-family: "Roboto", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.brand-copy {
    text-align: center;
    display: grid;
    gap: 2px;
}

.brand-copy strong,
.brand-copy span {
    font-size: 0.8rem;
}

.sidebar__nav {
    display: grid;
    gap: 12px;
}

.sidebar__link,
.sidebar__logout {
    width: 100%;
    min-height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    position: relative;
    color: rgba(255, 255, 255, 0.78);
    transition: 0.2s ease;
    overflow: visible;
}

.sidebar__link span:last-child,
.sidebar__logout span:last-child {
    position: absolute;
    left: calc(100% + 18px);
    background: #fff;
    color: #000;
    padding: 10px 14px;
    border-radius: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    box-shadow: var(--shadow);
    z-index: 30;
}

.sidebar__link:hover span:last-child,
.sidebar__logout:hover span:last-child,
.sidebar__link.is-active span:last-child {
    opacity: 1;
}

.sidebar__link.is-active,
.sidebar__link:hover,
.sidebar__logout:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar__icon {
    width: 22px;
    height: 22px;
    display: inline-block;
    position: relative;
}

.sidebar__icon::before,
.sidebar__icon::after {
    content: "";
    position: absolute;
}

.sidebar__icon--home::before {
    inset: 2px 4px 8px;
    border: 2px solid currentColor;
    border-top: none;
    border-radius: 2px;
}

.sidebar__icon--home::after {
    left: 2px;
    right: 2px;
    top: 1px;
    height: 12px;
    background: currentColor;
    clip-path: polygon(50% 0, 100% 50%, 88% 50%, 88% 100%, 12% 100%, 12% 50%, 0 50%);
}

.sidebar__icon--users::before,
.sidebar__icon--profile::before {
    top: 2px;
    left: 5px;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.sidebar__icon--users::after,
.sidebar__icon--profile::after {
    left: 2px;
    right: 2px;
    bottom: 1px;
    height: 9px;
    border: 2px solid currentColor;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    border-bottom: none;
}

.sidebar__icon--logout::before {
    left: 1px;
    top: 4px;
    width: 10px;
    height: 14px;
    border: 2px solid currentColor;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.sidebar__icon--logout::after {
    right: 1px;
    top: 9px;
    width: 12px;
    height: 4px;
    background: currentColor;
    clip-path: polygon(0 0, 72% 0, 72% -10%, 100% 50%, 72% 110%, 72% 100%, 0 100%);
}

.shell__content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 38px;
    padding: 28px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
}

.topbar__left,
.topbar__right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.topbar__menu {
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 0;
}

.topbar__menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: #000;
    margin: 5px auto;
}

.topbar__eyebrow,
.section-kicker {
    margin: 0 0 6px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    font-weight: 700;
}

.topbar h1,
.section-head h3,
.hero-card__copy h2 {
    margin: 0;
    font-family: "Roboto", sans-serif;
}

.topbar__subtitle {
    margin: 6px 0 0;
    color: var(--muted);
}

.search {
    width: 280px;
    padding: 0 16px;
    height: 50px;
    border-radius: 16px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search__icon {
    width: 16px;
    height: 16px;
    border: 2px solid #111;
    border-radius: 50%;
    position: relative;
}

.search__icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    background: #111;
    right: -6px;
    bottom: -2px;
    transform: rotate(45deg);
    border-radius: 999px;
}

.search input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
}

.profile-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 8px 10px 8px 8px;
    border-radius: 18px;
    min-width: 220px;
}

.profile-chip__avatar,
.user-row__avatar,
.profile-hero__avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: #111;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.profile-chip strong,
.user-row__copy strong,
.profile-hero strong,
.mini-stat strong,
.meta-row strong {
    display: block;
}

.profile-chip span,
.user-row__copy span,
.meta-row span,
.mini-stat span,
.quick-link span,
.empty-copy,
.api-note {
    color: var(--muted);
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #fff;
}

.notice--success {
    border-left: 6px solid var(--success);
}

.notice--error {
    border-left: 6px solid var(--error);
}

.notice__dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 999px;
    background: currentColor;
}

.page {
    min-height: 0;
}

.home-grid,
.users-grid,
.profile-grid {
    display: grid;
    gap: 20px;
}

.schools-home {
    display: grid;
    gap: 20px;
}

.home-grid {
    grid-template-columns: 1.45fr 1fr;
}

.hero-card,
.list-card,
.profile-card,
.stats-panel {
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow);
}

.hero-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.hero-card__copy {
    max-width: 420px;
}

.hero-card__copy p:last-child {
    color: var(--muted);
    line-height: 1.6;
}

.hero-card__illustration {
    width: 220px;
    height: 180px;
    position: relative;
}

.illustration-head,
.illustration-body,
.illustration-hand {
    position: absolute;
    background: #111;
}

.illustration-head {
    width: 54px;
    height: 54px;
    border-radius: 24px;
    top: 10px;
    left: 74px;
}

.illustration-body {
    width: 92px;
    height: 104px;
    border-radius: 24px 24px 12px 12px;
    bottom: 12px;
    left: 56px;
}

.illustration-hand {
    width: 14px;
    height: 86px;
    border-radius: 999px;
    right: 42px;
    top: 44px;
    transform: rotate(-24deg);
}

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

.schools-home .stats-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-stat {
    background: var(--panel-soft);
    border-radius: 22px;
    padding: 20px;
}

.mini-stat strong {
    font-family: "Roboto", sans-serif;
    font-size: 2rem;
}

.list-card {
    display: grid;
    gap: 18px;
}

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

.quick-links,
.user-list,
.profile-meta {
    display: grid;
    gap: 14px;
}

.school-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.school-cards--wide {
    grid-template-columns: repeat(auto-fit, minmax(360px, 420px));
    justify-content: start;
}

.school-card-item,
.school-card-empty {
    background: var(--panel-soft);
    border-radius: 22px;
    padding: 18px;
}

.school-card-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "main status"
        "footer footer";
    gap: 16px;
    align-items: start;
    min-height: 188px;
    position: relative;
}

.school-card-item__main {
    grid-area: main;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
}

.school-card-item__badge {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 700;
}

.school-card-item__copy {
    display: grid;
    gap: 4px;
}

.school-card-item__meta {
    white-space: nowrap;
}

.school-card-item__status {
    grid-area: status;
    min-width: 112px;
    align-self: start;
    justify-self: end;
}

.school-card-item__status .status-pill {
    justify-self: end;
    margin-top: 2px;
}

.grade-cut-card-item {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "main"
        "status"
        "footer";
    min-height: 208px;
    align-items: stretch;
}

.grade-cut-card-item .school-card-item__main {
    width: 100%;
    align-items: start;
}

.grade-cut-card-item .school-card-item__status {
    grid-area: status;
    display: flex;
    width: 100%;
    justify-self: start;
    min-width: 0;
    padding-top: 2px;
}

.grade-cut-card-item .school-card-item__status .status-pill {
    display: inline-flex;
    justify-self: start;
    margin-top: 0;
    white-space: normal;
    line-height: 1.3;
    max-width: 280px;
    text-align: center;
    overflow-wrap: anywhere;
}

.grade-cut-card-item .school-card-item__footer {
    padding-top: 16px;
}

.school-card-item__footer {
    grid-area: footer;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    display: grid;
    gap: 10px;
}

.inline-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: nowrap;
}

.header-actions--exports {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header-actions .button {
    white-space: nowrap;
}

.table-filter {
    min-width: 320px;
    display: grid;
    gap: 6px;
}

.table-filter span {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.table-filter input {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    background: #fff;
}

.school-card-item__copy span,
.school-card-empty {
    color: var(--muted);
}

.quick-link,
.user-row,
.meta-row {
    background: var(--panel-soft);
    border-radius: 20px;
    padding: 18px 20px;
}

.user-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
}

.status-pill {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    text-transform: capitalize;
    font-weight: 700;
    background: #ececec;
}

.status-pill--active {
    background: rgba(30, 142, 90, 0.14);
    color: var(--success);
}

.status-pill--inactive,
.status-pill--blocked {
    background: rgba(185, 56, 56, 0.12);
    color: var(--error);
}

.button {
    border: none;
    border-radius: 16px;
    min-height: 48px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.button--primary {
    background: #111;
    color: #fff;
}

.button--ghost {
    background: #fff;
    color: #111;
}

.button--sm {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    font-size: 0.92rem;
}

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

.table-shell {
    overflow: auto;
}

.table-tools {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
}

.table th {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.students-table td {
    vertical-align: top;
}

.table-person {
    display: grid;
    gap: 4px;
}

.table-person span,
.table-muted {
    color: var(--muted);
}

.subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subject-tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
    font-size: 0.86rem;
}

.subject-tag--success {
    background: rgba(40, 167, 69, 0.12);
    border-color: rgba(40, 167, 69, 0.2);
    color: #18834a;
}

.subject-tag--danger {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.2);
    color: #bf2f3f;
}

.quantity-field {
    display: grid;
    grid-template-columns: 56px minmax(72px, 1fr) 64px;
    gap: 0.55rem;
    align-items: center;
}

.quantity-field input {
    text-align: center;
}

.participation-help {
    font-size: 0.95rem;
    line-height: 1.5;
}

.participation-card {
    max-width: 420px;
}

.header-actions--exports {
    margin-top: 12px;
    justify-content: flex-start;
}

.question-cards {
    display: grid;
    gap: 16px;
}

.exam-question-card h3 {
    margin: 0;
}

.exam-options {
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

.exam-options span {
    background: var(--panel-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px 12px;
}

.inline-actions--table {
    min-width: 180px;
}

.table-empty {
    margin-top: 12px;
}

.modal-card--evaluation {
    width: min(760px, 100%);
}

.evaluation-scale {
    display: grid;
    gap: 14px;
}

.evaluation-scale--compact {
    gap: 12px;
}

.evaluation-scale__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto;
    gap: 16px;
    align-items: end;
    background: var(--panel-soft);
    border-radius: 20px;
    padding: 18px;
}

.evaluation-scale--compact .evaluation-scale__row {
    padding: 14px 16px;
    border-radius: 18px;
}

.evaluation-scale__copy {
    display: grid;
    gap: 4px;
}

.evaluation-scale__row strong {
    display: block;
}

.evaluation-scale__row span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

.evaluation-scale__actions {
    display: flex;
    align-items: end;
    min-height: 100%;
}

.evaluation-scale__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.evaluation-summary {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: start;
}

.evaluation-summary__total {
    background: var(--panel-soft);
    border-radius: 20px;
    padding: 18px;
}

.evaluation-summary__total strong {
    display: block;
    font-size: 2rem;
}

.evaluation-summary__total span {
    color: var(--muted);
}

.evaluation-summary__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.assessment-scale-note {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 20px;
    background: rgba(17, 17, 17, 0.025);
}

.assessment-scale-note__head {
    display: grid;
    gap: 0.2rem;
}

.assessment-scale-note__head strong {
    font-size: 0.98rem;
}

.assessment-scale-note__head span {
    color: var(--muted);
    font-size: 0.92rem;
}

.assessment-scale-note__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-start;
}

.assessment-section {
    display: grid;
    gap: 12px;
}

.assessment-section + .assessment-section {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 4px;
}

.mini-stat--inline {
    min-width: 180px;
}

.profile-grid {
    grid-template-columns: 1.15fr 0.85fr;
}

.profile-card {
    display: grid;
    gap: 20px;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--panel-soft);
    border-radius: 24px;
    padding: 16px;
}

.profile-form {
    display: grid;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    font-weight: 700;
}

.field-help {
    color: var(--muted);
    font-size: 0.86rem;
}

.field input,
.field select {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 16px;
    background: #fff;
    outline: none;
}

.check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.check-option {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--panel-soft);
    border-radius: 14px;
    padding: 12px 14px;
}

.check-option input {
    width: 18px;
    height: 18px;
}

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

.api-note {
    background: var(--panel-soft);
    border-radius: 18px;
    padding: 18px;
}

.modal-shell {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    display: grid;
    align-items: center;
    justify-items: center;
    padding: 24px;
    z-index: 60;
    overflow-y: auto;
}

.modal-shell[hidden] {
    display: none;
}

#subjectFeedbackModal,
#subjectConfirmModal,
#examFeedbackModal,
#examConfirmModal,
#assessmentFeedbackModal,
#participationFeedbackModal {
    z-index: 80;
}

.modal-card {
    width: min(680px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #fff;
    border-radius: 30px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.modal-card--confirm,
.modal-card--feedback {
    width: min(420px, 100%);
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.feedback-card {
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.feedback-card::before {
    content: "";
    display: block;
    height: 150px;
    background: #87c72c;
}

.feedback-card--error::before,
.feedback-card--warning::before {
    background: #ff4d3a;
}

.feedback-card__icon {
    width: 88px;
    height: 88px;
    margin: -108px auto 18px;
    border-radius: 28px;
    background: #fff;
    color: #87c72c;
    display: grid;
    place-items: center;
    font-size: 2.7rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.feedback-card--error .feedback-card__icon,
.feedback-card--warning .feedback-card__icon {
    color: #ff4d3a;
}

.feedback-card h3 {
    margin: 0;
    padding: 0 28px;
    font-size: 1.55rem;
}

.feedback-card p {
    margin: 14px auto 0;
    padding: 0 28px;
    max-width: 320px;
    color: var(--muted);
    line-height: 1.5;
}

.feedback-card__actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 24px 28px 28px;
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 0.92rem;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-shell {
    width: min(1080px, 100%);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 38px;
    box-shadow: var(--shadow);
    padding: 28px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
}

.auth-panel,
.auth-form-card {
    background: #fff;
    border-radius: 30px;
    padding: 28px;
}

.auth-panel {
    background: #111;
    color: #fff;
    display: grid;
    align-content: space-between;
    min-height: 520px;
}

.auth-panel h1,
.auth-form-card h2 {
    margin: 0;
    font-family: "Roboto", sans-serif;
}

.auth-panel p,
.auth-form-card p {
    color: rgba(255, 255, 255, 0.72);
}

.auth-figure {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    min-height: 260px;
    position: relative;
    overflow: hidden;
}

.auth-figure::before,
.auth-figure::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: #fff;
}

.auth-figure::before {
    width: 140px;
    height: 140px;
    left: 42px;
    top: 54px;
}

.auth-figure::after {
    width: 180px;
    height: 28px;
    left: 34px;
    bottom: 54px;
}

.auth-form-card {
    display: grid;
    gap: 20px;
    align-content: center;
}

.auth-form-card p {
    color: var(--muted);
}

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

.login-feedback {
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--panel-soft);
}

.login-feedback--error {
    border-left: 5px solid var(--error);
}

.login-feedback--success {
    border-left: 5px solid var(--success);
}

@media (max-width: 1080px) {
    .home-grid,
    .profile-grid,
    .auth-shell {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .shell {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .sidebar {
        position: fixed;
        left: 18px;
        top: 18px;
        bottom: 18px;
        width: 96px;
        transform: translateX(-140%);
        transition: transform 0.2s ease;
        z-index: 20;
        height: auto;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

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

    .topbar__menu {
        display: inline-block;
    }

    .topbar__right {
        flex-wrap: wrap;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .schools-home .stats-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .evaluation-scale__row {
        grid-template-columns: 1fr;
    }

    .evaluation-scale__footer {
        flex-direction: column;
        align-items: stretch;
    }

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

    .search {
        width: 100%;
    }

    .profile-chip {
        min-width: 0;
        width: 100%;
    }

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

    .table-tools {
        flex-direction: column;
        align-items: stretch;
    }
}
