:root {
    --ec-shell-sidebar-start: #0f4f7d;
    --ec-shell-sidebar-end: #08395c;
    --ec-shell-sidebar-panel-strong: rgba(255, 255, 255, 0.16);
    --ec-shell-sidebar-border: rgba(195, 222, 248, 0.18);
    --ec-shell-sidebar-text: #f3f8fd;
    --ec-shell-sidebar-text-soft: rgba(225, 238, 250, 0.78);
    --ec-shell-sidebar-kicker: #ffd27a;
    --ec-shell-workspace: #eef4fb;
    --ec-ui-primary: #2f74b8;
    --ec-ui-primary-soft: rgba(47, 116, 184, 0.18);
    --ec-ui-focus: #5267c6;
    --ec-ui-focus-soft: rgba(82, 103, 198, 0.18);
    --ec-ui-warm: #d17b39;
    --ec-ui-warm-soft: rgba(209, 123, 57, 0.18);
    --ec-ui-ok: #2f9a68;
    --ec-ui-ok-soft: rgba(47, 154, 104, 0.18);
    --ec-ui-risk: #cf6a52;
    --ec-ui-risk-soft: rgba(207, 106, 82, 0.18);
    --ec-ui-neutral: #5d7186;
    --ec-ui-neutral-soft: rgba(93, 113, 134, 0.18);
    --ec-ui-panel-border: rgba(180, 201, 224, 0.52);
    --ec-ui-panel-border-strong: rgba(167, 191, 217, 0.68);
    --ec-ui-panel-shadow: 0 8px 18px rgba(25, 64, 103, 0.05);
    --ec-ui-panel-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(248, 251, 255, 0.985) 100%);
    --ec-ui-field-rest-bg: rgba(242, 248, 255, 0.96);
    --ec-ui-field-rest-border: rgba(173, 198, 226, 0.54);
    --ec-ui-field-rest-shadow: inset 0 0 0 1px rgba(236, 244, 255, 0.9);
    --ec-ui-field-focus-bg: rgba(255, 249, 223, 0.98);
    --ec-ui-field-focus-border: rgba(228, 184, 66, 0.68);
    --ec-ui-field-focus-shadow: inset 0 0 0 1px rgba(244, 206, 96, 0.28), 0 0 0 2px rgba(252, 233, 164, 0.22);
}

.shell-app {
    min-height: 100vh;
    display: flex;
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(243, 173, 61, 0.20) 0%, transparent 18%),
        radial-gradient(circle at top right, rgba(13, 94, 150, 0.12) 0%, transparent 22%),
        radial-gradient(circle at bottom right, rgba(40, 168, 138, 0.11) 0%, transparent 24%),
        linear-gradient(180deg, var(--ec-shell-workspace) 0%, #f7fbff 42%, #eef4fb 100%);
}

[hidden] {
    display: none !important;
}

.shell-sidebar {
    width: 290px;
    min-width: 290px;
    padding: 1rem;
    border-right: 1px solid var(--ec-shell-sidebar-border);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12) 0%, transparent 24%),
        linear-gradient(180deg, var(--ec-shell-sidebar-start) 0%, #0c4670 42%, var(--ec-shell-sidebar-end) 100%);
    box-shadow: 18px 0 42px rgba(12, 42, 69, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: width 0.22s ease, min-width 0.22s ease, padding 0.22s ease, opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.shell-sidebar-peek-zone {
    display: none;
}

.shell-app.is-sidebar-collapsed .shell-sidebar {
    width: 0;
    min-width: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-12px);
    border-right-color: transparent;
    box-shadow: none;
    pointer-events: none;
}

.shell-app.is-sidebar-collapsed .shell-sidebar-peek-zone {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16px;
    padding: 0;
    border: 0;
    background: linear-gradient(90deg, rgba(13, 94, 150, 0.10) 0%, rgba(13, 94, 150, 0.03) 55%, transparent 100%);
    cursor: e-resize;
    z-index: 88;
}

.shell-app.is-sidebar-collapsed .shell-sidebar-peek-zone:focus-visible,
.shell-app.is-sidebar-collapsed .shell-sidebar-peek-zone:hover {
    outline: none;
    background: linear-gradient(90deg, rgba(13, 94, 150, 0.18) 0%, rgba(13, 94, 150, 0.06) 55%, transparent 100%);
}

.shell-app.is-sidebar-collapsed.is-sidebar-peek-visible .shell-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 89;
    width: 290px;
    min-width: 290px;
    padding: 1rem;
    opacity: 1;
    overflow-y: auto;
    transform: translateX(0);
    border-right-color: var(--ec-shell-sidebar-border);
    box-shadow: 22px 0 46px rgba(12, 42, 69, 0.24);
    pointer-events: auto;
}

.shell-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--ec-shell-sidebar-panel-strong) 0%, rgba(255, 210, 122, 0.18) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.shell-sidebar__logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(227, 239, 250, 0.96) 100%);
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(8, 32, 54, 0.28);
}

.shell-sidebar__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shell-sidebar__title {
    margin: 0;
    color: var(--ec-shell-sidebar-text);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.15;
}

.shell-sidebar__subtitle {
    margin: 0.2rem 0 0;
    color: var(--ec-shell-sidebar-text-soft);
    font-size: 0.82rem;
    line-height: 1.45;
}

.shell-nav {
    display: grid;
    gap: 0.4rem;
}

.shell-nav__group-title {
    margin: 0.7rem 0 0.15rem;
    padding: 0 0.65rem;
    color: var(--ec-shell-sidebar-kicker);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shell-nav__item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    width: 100%;
    min-height: 74px;
    padding: 0.9rem 1rem;
    border-radius: 22px;
    color: var(--ec-shell-sidebar-text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
    text-align: left;
}

.shell-nav__item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 210, 122, 0.16) 100%);
    border-color: rgba(255, 210, 122, 0.34);
    transform: translateX(3px);
    box-shadow: 0 14px 28px rgba(8, 31, 51, 0.16);
}

.shell-nav__item:focus-visible {
    outline: none;
    border-color: rgba(255, 210, 122, 0.64);
    box-shadow: 0 0 0 4px rgba(255, 210, 122, 0.18), 0 14px 28px rgba(8, 31, 51, 0.18);
}

.shell-nav__item.is-active {
    background: linear-gradient(135deg, #ffd27a 0%, #f3ad3d 100%);
    border-color: rgba(255, 219, 155, 0.72);
    color: #08395c;
    box-shadow: 0 18px 34px rgba(10, 36, 58, 0.24);
}

.shell-nav__item.is-active .shell-nav__label {
    color: #08395c;
}

.shell-nav__item.is-active .shell-nav__meta {
    color: #6c5322;
}

.shell-nav__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    align-self: center;
    background: linear-gradient(135deg, var(--ec-primary) 0%, var(--ec-secondary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 22px rgba(8, 31, 51, 0.28);
    color: #ffffff;
    font-size: 1.05rem;
}

.shell-nav__item.is-active .shell-nav__icon {
    background: linear-gradient(135deg, #fff5d9 0%, #ffd27a 100%);
    border-color: rgba(120, 74, 10, 0.14);
    color: #08395c;
    box-shadow: 0 12px 24px rgba(210, 145, 25, 0.24);
}

.shell-nav__icon svg,
.context-card__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.shell-nav__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
}

.shell-nav__label {
    display: block;
    font-size: 0.98rem;
    font-weight: 900;
    line-height: 1.15;
    color: var(--ec-shell-sidebar-text);
}

.shell-nav__meta {
    display: block;
    color: var(--ec-shell-sidebar-text-soft);
    font-size: 0.8rem;
    line-height: 1.35;
}

.shell-sidebar__footer {
    margin-top: auto;
    padding: 0.95rem;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(232, 242, 250, 0.88);
    font-size: 0.84rem;
    line-height: 1.55;
}

.shell-sidebar__footer strong {
    color: #fff0c8;
}

.shell-sidebar__help {
    margin-top: 0.55rem;
}

.shell-sidebar__help-button {
    width: 100%;
    display: grid;
    gap: 0.24rem;
    padding: 0.9rem 0.95rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 210, 122, 0.28);
    background: linear-gradient(180deg, rgba(255, 244, 219, 0.98) 0%, rgba(255, 233, 182, 0.98) 100%);
    color: #08395c;
    text-align: left;
    box-shadow: 0 14px 28px rgba(8, 31, 51, 0.18);
    cursor: pointer;
}

.shell-sidebar__help-button:hover,
.shell-sidebar__help-button:focus-visible {
    outline: none;
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(8, 31, 51, 0.22);
}

.shell-sidebar__help-eyebrow {
    color: #9a640f;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shell-sidebar__help-title {
    font-size: 0.95rem;
    line-height: 1.2;
}

.shell-sidebar__help-copy {
    color: #6b5320;
    font-size: 0.78rem;
    line-height: 1.45;
}

.shell-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0.08) 100%);
    transition: width 0.22s ease;
}

.shell-topbar {
    position: relative;
    padding: 1rem 1rem 0;
    backdrop-filter: none;
}

.shell-topbar__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.15rem;
    margin: 0 auto;
    width: min(100%, 1380px);
    border: 1px solid var(--ec-ui-panel-border-strong);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(247, 250, 253, 0.99) 100%);
    box-shadow: 0 10px 22px rgba(25, 64, 103, 0.07);
}

.shell-topbar__left {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
    flex: 1 1 420px;
    min-width: 280px;
}

.shell-topbar__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
    flex-wrap: wrap;
    flex: 0 1 auto;
    margin-left: auto;
}

.shell-topbar__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.shell-topbar__help {
    min-height: 38px;
    padding: 0.62rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(166, 192, 223, 0.78);
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
    color: var(--ec-primary-2);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(25, 64, 103, 0.08);
    cursor: pointer;
}

.shell-topbar__help:focus-visible,
.shell-topbar__help:hover {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.shell-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(13, 94, 150, 0.18);
    border-radius: 14px;
    background: linear-gradient(180deg, #fdfefe 0%, #e8f2fb 100%);
    color: var(--ec-primary);
    display: grid;
    place-items: center;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(25, 64, 103, 0.10);
    cursor: pointer;
}

.shell-toggle:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.shell-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 0.75rem 0.95rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #fdfefe 0%, #eef4fb 100%);
    border: 1px solid rgba(168, 193, 223, 0.54);
    color: var(--ec-text-soft);
    font-size: 0.9rem;
    line-height: 1.2;
}

.shell-breadcrumb strong {
    color: var(--ec-primary-2);
    font-weight: 900;
}

.shell-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.56rem 0.84rem;
    border-radius: 999px;
    border: 1px solid rgba(166, 192, 223, 0.46);
    background: linear-gradient(180deg, rgba(239, 246, 252, 0.98) 0%, rgba(228, 239, 249, 0.98) 100%);
    color: var(--ec-primary-2);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.shell-content {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: 1.1rem 1rem 1.3rem;
    flex: 1;
}

.shell-help-drawer {
    width: 0;
    min-width: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateX(18px);
    border-left: 0 solid transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(247, 251, 255, 0.992) 100%);
    box-shadow: none;
    transition: width 0.22s ease, min-width 0.22s ease, opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.shell-help-drawer.is-open {
    width: min(430px, 92vw);
    min-width: min(430px, 92vw);
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    border-left: 1px solid rgba(186, 206, 228, 0.78);
    box-shadow: -18px 0 36px rgba(25, 64, 103, 0.08);
    display: flex;
    flex-direction: column;
}

.shell-help-drawer__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.1rem 0.95rem;
    border-bottom: 1px solid rgba(212, 225, 239, 0.72);
}

.shell-help-drawer__heading {
    display: grid;
    gap: 0.35rem;
}

.shell-help-drawer__eyebrow {
    color: #c67c12;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.shell-help-drawer__title {
    margin: 0;
    color: var(--ec-primary-2);
    font-size: 1.2rem;
    line-height: 1.18;
    font-weight: 900;
}

.shell-help-drawer__copy {
    margin: 0;
    color: var(--ec-text-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

.shell-help-drawer__close {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(188, 211, 235, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
    color: var(--ec-primary-2);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.shell-help-drawer__close:hover,
.shell-help-drawer__close:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.shell-help-drawer__body {
    display: grid;
    gap: 1rem;
    padding: 1rem 1.1rem 1.25rem;
    overflow-y: auto;
}

.shell-help-intro,
.shell-help-section,
.shell-help-feedback,
.shell-help-search {
    display: grid;
    gap: 0.75rem;
}

.shell-help-intro__actions,
.shell-help-search__secondary,
.shell-help-feedback__actions,
.shell-help-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.shell-help-search__prompt {
    display: grid;
    gap: 0.25rem;
    color: var(--ec-text-soft);
    font-size: 0.82rem;
    line-height: 1.5;
}

.shell-help-search__prompt strong {
    color: var(--ec-primary-2);
    font-size: 0.92rem;
}

.shell-help-search__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    align-items: start;
}

.shell-help-search__intents {
    display: grid;
    gap: 0.6rem;
}

.shell-help-search__intents-label {
    color: #47627f;
    font-size: 0.81rem;
    font-weight: 800;
}

.shell-help-search__intents-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.shell-help-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.shell-help-section__title,
.shell-help-feedback__title {
    margin: 0;
    color: var(--ec-primary-2);
    font-size: 0.94rem;
    font-weight: 900;
}

.shell-help-section__meta {
    color: var(--ec-text-faint);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.shell-help-card-list {
    display: grid;
    gap: 0.8rem;
}

.shell-help-card {
    display: grid;
    gap: 0.72rem;
    padding: 0.9rem 0.95rem;
    border-radius: 18px;
    border: 1px solid rgba(186, 206, 228, 0.88);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(247, 250, 253, 0.99) 100%);
    box-shadow: 0 10px 18px rgba(25, 64, 103, 0.06);
}

.shell-help-card--prompt {
    border-color: rgba(228, 184, 66, 0.36);
    background: linear-gradient(180deg, rgba(255, 249, 223, 0.98) 0%, rgba(255, 245, 209, 0.98) 100%);
}

.shell-help-card--ai {
    border-color: rgba(86, 145, 194, 0.24);
    background: linear-gradient(180deg, rgba(233, 243, 254, 0.98) 0%, rgba(245, 249, 255, 0.98) 100%);
}

.shell-help-card--flow {
    border-color: rgba(92, 177, 129, 0.24);
    background: linear-gradient(180deg, rgba(236, 248, 241, 0.98) 0%, rgba(247, 252, 249, 0.98) 100%);
}

.shell-help-card--ticket {
    border-color: rgba(226, 176, 79, 0.30);
    background: linear-gradient(180deg, rgba(255, 247, 228, 0.98) 0%, rgba(255, 251, 242, 0.98) 100%);
}

.shell-help-card--success {
    border-color: rgba(94, 179, 130, 0.30);
    background: linear-gradient(180deg, rgba(234, 248, 239, 0.98) 0%, rgba(247, 252, 249, 0.98) 100%);
}

.shell-help-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.8rem;
}

.shell-help-card__eyebrow {
    color: #c67c12;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.shell-help-card__title {
    margin: 0.12rem 0 0;
    color: var(--ec-primary-2);
    font-size: 0.96rem;
    line-height: 1.25;
    font-weight: 900;
}

.shell-help-card__copy,
.shell-help-card__warning {
    margin: 0;
    color: var(--ec-text-soft);
    font-size: 0.84rem;
    line-height: 1.6;
}

.shell-help-card__warning {
    color: #8b5a19;
}

.shell-help-card__steps,
.shell-help-card__list {
    margin: 0;
    padding-left: 1rem;
    display: grid;
    gap: 0.4rem;
    color: #48637d;
    font-size: 0.82rem;
    line-height: 1.55;
}

.shell-help-card__steps li {
    display: grid;
    gap: 0.35rem;
}

.shell-help-card__steps li span {
    color: var(--ec-text-soft);
}

.shell-help-card__meta-block {
    display: grid;
    gap: 0.35rem;
}

.shell-help-card__meta-block strong {
    color: var(--ec-primary-2);
    font-size: 0.8rem;
}

.shell-help-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(166, 192, 223, 0.62);
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
    color: #355b82;
    font-size: 0.72rem;
    font-weight: 900;
}

.shell-help-action,
.shell-help-feedback__button {
    min-height: 36px;
    padding: 0.55rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(177, 202, 229, 0.82);
    background: #edf5fd;
    color: #355b82;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 900;
    cursor: pointer;
}

.shell-help-action:hover,
.shell-help-action:focus-visible,
.shell-help-feedback__button:hover,
.shell-help-feedback__button:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.shell-help-feedback__button.is-selected {
    border-color: rgba(86, 145, 194, 0.32);
    background: linear-gradient(180deg, rgba(227, 240, 253, 0.98) 0%, rgba(210, 229, 248, 0.98) 100%);
    color: var(--ec-primary-2);
}

.is-help-target {
    border-radius: 16px;
    box-shadow: 0 0 0 4px rgba(243, 173, 61, 0.18), 0 0 0 1px rgba(243, 173, 61, 0.48);
    animation: helpTargetPulse 1.2s ease;
}

@keyframes helpTargetPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(243, 173, 61, 0.24), 0 0 0 1px rgba(243, 173, 61, 0.4);
    }
    60% {
        box-shadow: 0 0 0 6px rgba(243, 173, 61, 0.12), 0 0 0 1px rgba(243, 173, 61, 0.52);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(243, 173, 61, 0.18), 0 0 0 1px rgba(243, 173, 61, 0.48);
    }
}

.shell-help-empty {
    display: grid;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(188, 211, 235, 0.96);
    background: linear-gradient(180deg, rgba(249, 252, 255, 0.98) 0%, rgba(244, 249, 254, 0.98) 100%);
    color: #5f7a96;
    font-size: 0.82rem;
    line-height: 1.55;
}

.shell-help-empty strong {
    color: var(--ec-primary-2);
}

.shell-help-empty--error {
    border-color: rgba(216, 99, 99, 0.46);
    background: linear-gradient(180deg, rgba(255, 238, 238, 0.98) 0%, rgba(255, 247, 247, 0.98) 100%);
}

.shell-help-ticket__form {
    display: grid;
    gap: 0.8rem;
}

.shell-help-ticket__meta {
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(188, 211, 235, 0.78);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(243, 248, 253, 0.98) 100%);
    color: #5f7a96;
    font-size: 0.8rem;
    line-height: 1.5;
}

.shell-help-ticket__meta strong {
    color: var(--ec-primary-2);
}

.shell-help-ticket__field {
    display: grid;
    gap: 0.35rem;
}

.shell-help-ticket__field > span {
    color: var(--ec-primary-2);
    font-size: 0.8rem;
    font-weight: 800;
}

.shell-help-ticket__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
}

.shell-help-ticket__hint {
    margin: 0;
    color: #5f7a96;
    font-size: 0.79rem;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .shell-help-ticket__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.shell-app.is-help-open .shell-sidebar-peek-zone {
    display: none !important;
}

.shell-section {
    display: grid;
    gap: 1rem;
}

.shell-hero {
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--ec-ui-panel-border-strong);
    border-radius: 28px;
    background: var(--ec-ui-panel-surface);
    box-shadow: 0 10px 24px rgba(25, 64, 103, 0.07);
}

.shell-hero__eyebrow {
    color: #c67c12;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.shell-hero__title {
    margin: 0.4rem 0 0.3rem;
    color: var(--ec-primary-2);
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    line-height: 1.1;
    font-weight: 900;
}

.shell-hero__copy {
    margin: 0;
    color: var(--ec-text-soft);
    line-height: 1.7;
    max-width: 68ch;
}

.shell-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.shell-card {
    min-height: 112px;
    padding: 0.72rem 0.8rem;
    border: 1px solid var(--ec-ui-panel-border);
    border-radius: 18px;
    background: var(--ec-ui-panel-surface);
    box-shadow: 0 3px 8px rgba(25, 64, 103, 0.035);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.shell-card::before {
    content: "";
    position: absolute;
    top: 0.58rem;
    left: 1.05rem;
    right: 1.05rem;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(13, 94, 150, 0.24) 0%, rgba(243, 173, 61, 0.16) 52%, rgba(40, 168, 138, 0.08) 100%);
}

.shell-card.is-primary {
    border-color: rgba(92, 150, 211, 0.2);
    background: linear-gradient(180deg, rgba(225, 240, 255, 0.98) 0%, rgba(242, 248, 255, 0.98) 100%);
}

.shell-card.is-primary::before {
    background: linear-gradient(90deg, rgba(13, 94, 150, 0.34) 0%, rgba(121, 174, 225, 0.22) 100%);
}

.shell-card.is-ok {
    border-color: rgba(92, 177, 129, 0.2);
    background: linear-gradient(180deg, rgba(234, 248, 239, 0.98) 0%, rgba(246, 252, 248, 0.98) 100%);
}

.shell-card.is-ok::before {
    background: linear-gradient(90deg, rgba(31, 145, 101, 0.32) 0%, rgba(109, 194, 149, 0.2) 100%);
}

.shell-card.is-warm {
    border-color: rgba(225, 160, 58, 0.24);
    background: linear-gradient(180deg, rgba(255, 238, 210, 0.98) 0%, rgba(255, 248, 234, 0.98) 100%);
}

.shell-card.is-warm::before {
    background: linear-gradient(90deg, rgba(224, 142, 27, 0.34) 0%, rgba(243, 173, 61, 0.22) 100%);
}

.shell-card.is-focus {
    border-color: rgba(72, 158, 163, 0.2);
    background: linear-gradient(180deg, rgba(228, 246, 246, 0.98) 0%, rgba(244, 251, 251, 0.98) 100%);
}

.shell-card.is-focus::before {
    background: linear-gradient(90deg, rgba(26, 129, 133, 0.3) 0%, rgba(96, 184, 184, 0.2) 100%);
}

.shell-card.is-danger {
    border-color: rgba(216, 99, 99, 0.22);
    background: linear-gradient(180deg, rgba(255, 235, 236, 0.98) 0%, rgba(255, 246, 246, 0.98) 100%);
}

.shell-card.is-danger::before {
    background: linear-gradient(90deg, rgba(196, 65, 65, 0.34) 0%, rgba(231, 127, 127, 0.2) 100%);
}

.shell-card.is-neutral {
    border-color: rgba(192, 206, 223, 0.5);
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(251, 253, 255, 0.98) 100%);
}

.shell-card.is-neutral::before {
    background: linear-gradient(90deg, rgba(156, 172, 191, 0.22) 0%, rgba(209, 220, 232, 0.14) 100%);
}

.shell-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(25, 64, 103, 0.06);
}

.shell-card__title {
    margin: 0;
    color: var(--ec-primary-2);
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1.3;
}

.shell-card__copy {
    margin: 0.42rem 0 0;
    color: var(--ec-text-soft);
    line-height: 1.48;
    font-size: 0.84rem;
    max-width: 34ch;
}

.shell-footer {
    margin-top: auto;
    padding: 0 1rem 1rem;
}

.shell-footer__inner {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: 1rem 1.2rem;
    border-top: 1px solid rgba(172, 197, 225, 0.86);
    color: var(--ec-text-faint);
    font-size: 0.84rem;
    text-align: center;
}

.attendance-module {
    gap: 1.1rem;
}

.attendance-hero {
    display: grid;
    gap: 1rem;
}

.attendance-course-picker {
    display: grid;
    gap: 0.35rem;
    max-width: 440px;
}

.attendance-course-picker__label {
    color: var(--ec-primary-2);
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.attendance-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.attendance-kpi-card {
    min-height: 130px;
    padding: 0.88rem 0.94rem;
    border-radius: 24px;
    border: 1px solid var(--ec-ui-panel-border-strong);
    background: var(--ec-ui-panel-surface);
    box-shadow: 0 9px 20px rgba(25, 64, 103, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.attendance-kpi-card__value {
    color: var(--ec-primary-2);
    font-size: clamp(1.65rem, 2.8vw, 2.25rem);
    font-weight: 900;
    line-height: 1;
}

.attendance-kpi-card__label {
    color: var(--ec-primary-2);
    font-size: 0.95rem;
    font-weight: 900;
}

.attendance-kpi-card__meta {
    color: var(--ec-text-soft);
    font-size: 0.84rem;
    line-height: 1.5;
}

.attendance-kpi-card.is-primary {
    border-color: rgba(92, 150, 211, 0.28);
    background: linear-gradient(180deg, rgba(225, 240, 255, 0.98) 0%, rgba(242, 248, 255, 0.98) 100%);
}

.attendance-kpi-card.is-ok {
    border-color: rgba(92, 177, 129, 0.28);
    background: linear-gradient(180deg, rgba(234, 248, 239, 0.98) 0%, rgba(246, 252, 248, 0.98) 100%);
}

.attendance-kpi-card.is-warn {
    border-color: rgba(225, 160, 58, 0.34);
    background: linear-gradient(180deg, rgba(255, 238, 210, 0.98) 0%, rgba(255, 248, 234, 0.98) 100%);
}

.attendance-kpi-card.is-danger {
    border-color: rgba(216, 99, 99, 0.32);
    background: linear-gradient(180deg, rgba(255, 235, 236, 0.98) 0%, rgba(255, 246, 246, 0.98) 100%);
}

.attendance-kpi-card.is-neutral {
    border-color: #dbe4ef;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(251, 253, 255, 0.98) 100%);
}

.attendance-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 1rem;
    align-items: start;
}

.attendance-main,
.attendance-aside {
    min-width: 0;
}

.attendance-aside {
    display: grid;
    gap: 1rem;
}

.attendance-card {
    min-height: 0;
}

.attendance-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.84rem;
}

.attendance-card__eyebrow {
    color: var(--ec-text-faint);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.attendance-card__title {
    margin: 0.3rem 0 0;
    color: var(--ec-primary-2);
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 900;
}

.attendance-card__copy {
    margin: 0.35rem 0 0;
    color: var(--ec-text-soft);
    line-height: 1.6;
}

.attendance-card__actions {
    display: grid;
    justify-items: end;
    gap: 0.65rem;
}

.attendance-card__footer {
    display: grid;
    gap: 0.95rem;
    margin-top: 0.84rem;
    padding-top: 0.84rem;
    border-top: 1px solid rgba(190, 211, 234, 0.56);
}

.attendance-card__actions--footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
}

.attendance-save-button {
    min-height: 44px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(13, 94, 150, 0.24);
    border-radius: 16px;
    background: linear-gradient(180deg, #1772b1 0%, #0d5e96 100%);
    color: #ffffff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(13, 94, 150, 0.18);
}

.attendance-save-button:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring), 0 10px 22px rgba(13, 94, 150, 0.18);
}

.attendance-save-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    border: 1px solid #d7e3f1;
    background: #f7fafd;
    color: var(--ec-text-soft);
    font-size: 0.81rem;
    font-weight: 800;
    text-align: center;
}

.attendance-save-status.is-ok {
    border-color: #cce2d5;
    background: #eff8f2;
    color: #2f6b4d;
}

.attendance-save-status.is-warn {
    border-color: #eadfb8;
    background: #fff9ea;
    color: #8a6b1a;
}

.attendance-save-status.is-neutral {
    border-color: #dbe7f5;
    background: #f8fbff;
    color: #5f7a96;
}

.attendance-progress {
    display: grid;
    gap: 0.55rem;
}

.attendance-progress__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--ec-text-soft);
    font-size: 0.88rem;
}

.attendance-progress__label strong {
    color: var(--ec-primary-2);
}

.attendance-progress__bar {
    height: 12px;
    border-radius: 999px;
    background: #e9f0f7;
    overflow: hidden;
}

.attendance-progress__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #3ba3c8 0%, #0d5e96 100%);
}

.attendance-roster {
    display: grid;
    gap: 0.85rem;
}

.attendance-student {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 392px);
    align-items: center;
    gap: 0.7rem;
    padding: 0.64rem 0.76rem;
    border-radius: 18px;
    border: 1px solid rgba(190, 211, 234, 0.56);
    background: var(--ec-ui-panel-surface);
    box-shadow: 0 4px 10px rgba(25, 64, 103, 0.03);
}

.attendance-student__main {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.attendance-student__photo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    padding: 0;
    border: 1px solid rgba(211, 166, 63, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    overflow: hidden;
    flex: 0 0 auto;
    cursor: zoom-in;
    box-shadow: 0 12px 22px rgba(84, 126, 170, 0.14);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.attendance-student__photo:hover {
    transform: scale(1.12);
    border-color: rgba(213, 142, 36, 0.34);
    box-shadow: 0 18px 30px rgba(84, 126, 170, 0.20);
}

.attendance-student__photo:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring), 0 18px 30px rgba(25, 64, 103, 0.18);
}

.attendance-student__photo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.attendance-student__copy {
    min-width: 0;
    display: grid;
    gap: 0.08rem;
}

.attendance-student__name {
    margin: 0;
    color: #24415f;
    font-size: 0.95rem;
    line-height: 1.25;
    font-weight: 900;
}

.attendance-student__meta {
    color: #6f88a3;
    font-size: 0.84rem;
    line-height: 1.45;
}

.attendance-inline-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.attendance-inline-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #d7e3f1;
    background: #f4f8fc;
    color: var(--ec-text-soft);
    font-size: 0.74rem;
    font-weight: 800;
}

.attendance-inline-pill.is-status {
    border-color: #c7daf0;
    background: #eaf4ff;
    color: var(--ec-primary-2);
}

.attendance-mark-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.38rem;
}

.attendance-mark {
    display: grid;
    gap: 0.08rem;
    justify-items: center;
    min-height: 48px;
    padding: 0.45rem 0.2rem;
    border-radius: 14px;
    border: 1px solid rgba(190, 211, 234, 0.9);
    background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
    color: var(--ec-text-soft);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.attendance-mark:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(25, 64, 103, 0.08);
}

.attendance-mark:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.attendance-mark.is-active {
    border-color: rgba(213, 142, 36, 0.28);
    box-shadow: 0 14px 28px rgba(84, 126, 170, 0.14);
}

.attendance-mark__short {
    font-size: 0.84rem;
    font-weight: 900;
    line-height: 1;
}

.attendance-mark__label {
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.attendance-mark.is-present.is-active,
.attendance-legend-item__chip.is-present,
.attendance-mark.is-present:hover {
    background: #eff8f2;
    color: #2f6b4d;
    border-color: #cce2d5;
}

.attendance-mark.is-late.is-active,
.attendance-legend-item__chip.is-late,
.attendance-mark.is-late:hover {
    background: #fff9ea;
    color: #8a6b1a;
    border-color: #eadfb8;
}

.attendance-mark.is-absent.is-active,
.attendance-legend-item__chip.is-absent,
.attendance-mark.is-absent:hover {
    background: #fff1f2;
    color: #8a3944;
    border-color: #eccfd2;
}

.attendance-mark.is-evasion.is-active,
.attendance-legend-item__chip.is-evasion,
.attendance-mark.is-evasion:hover {
    background: #f6efff;
    color: #5f4792;
    border-color: #d9cdf0;
}

.attendance-mark.is-other-teacher.is-active,
.attendance-legend-item__chip.is-other-teacher,
.attendance-mark.is-other-teacher:hover {
    background: #eef7ff;
    color: #245884;
    border-color: #c7daf0;
}

.attendance-legend {
    display: grid;
    gap: 0.65rem;
}

.attendance-legend-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: #5f7a96;
    font-size: 0.87rem;
}

.attendance-legend-item__chip {
    min-width: 46px;
    min-height: 34px;
    padding: 0.3rem 0.55rem;
    border-radius: 12px;
    border: 1px solid #dbe7f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
    background: #f7fbff;
    color: #5f7a96;
}

.attendance-side-list {
    display: grid;
    gap: 0.8rem;
}

.attendance-side-item {
    display: grid;
    gap: 0.55rem;
    padding: 0.95rem;
    border-radius: 18px;
    border: 1px solid #dbe7f5;
    background: rgba(249, 252, 255, 0.96);
}

.attendance-side-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.attendance-side-item__title {
    margin: 0;
    color: #24415f;
    font-size: 0.95rem;
    line-height: 1.3;
    font-weight: 900;
}

.attendance-side-item__meta {
    margin: 0.2rem 0 0;
    color: #6f88a3;
    font-size: 0.8rem;
    line-height: 1.45;
}

.attendance-side-item__copy {
    margin: 0;
    color: #5f7a96;
    font-size: 0.84rem;
    line-height: 1.55;
}

.attendance-side-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid #dbe7f5;
    background: #f7fbff;
    color: #5f7a96;
    font-size: 0.74rem;
    font-weight: 900;
    white-space: nowrap;
}

.attendance-side-badge.is-ok {
    border-color: #cce2d5;
    background: #eff8f2;
    color: #2f6b4d;
}

.attendance-side-badge.is-warn {
    border-color: #eadfb8;
    background: #fff9ea;
    color: #8a6b1a;
}

.attendance-side-badge.is-danger {
    border-color: #eccfd2;
    background: #fff1f2;
    color: #8a3944;
}

.attendance-side-badge.is-neutral {
    border-color: #dbe7f5;
    background: #f7fbff;
    color: #5f7a96;
}

.attendance-photo-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.attendance-photo-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(16, 39, 62, 0.56);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}

.attendance-photo-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 760px);
    padding: 1rem;
    border-radius: 30px;
    border: 1px solid rgba(188, 211, 235, 0.86);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 249, 252, 0.99) 100%);
    box-shadow: 0 24px 60px rgba(16, 39, 62, 0.24);
}

.attendance-photo-modal__close {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.6rem 0.9rem;
    border-radius: 14px;
    border: 1px solid #d5e4f6;
    background: #ffffff;
    color: var(--ec-primary-2);
    font-size: 0.82rem;
    font-weight: 900;
    cursor: pointer;
}

.attendance-photo-modal__close:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.attendance-photo-modal__frame {
    margin-top: 0.75rem;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #eef6ff 0%, #dcecff 100%);
}

.attendance-photo-modal__image {
    display: block;
    width: 100%;
    max-height: 78vh;
    object-fit: contain;
}

.attendance-photo-modal__caption {
    display: grid;
    gap: 0.2rem;
    margin-top: 0.9rem;
    color: #5f7a96;
    font-size: 0.88rem;
}

.attendance-photo-modal__caption strong {
    color: #24415f;
    font-size: 1rem;
}

.app-dialog-shell {
    position: fixed;
    inset: 0;
    z-index: 1305;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.app-dialog-shell__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(10, 30, 49, 0.58);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.app-dialog-shell__dialog {
    position: relative;
    z-index: 1;
    width: min(92vw, 520px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: 0.9rem;
    padding: 1.05rem 1.08rem 1rem;
    max-height: min(88vh, 820px);
    border-radius: 28px;
    border: 1px solid var(--ec-ui-panel-border-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(243, 248, 252, 0.99) 100%);
    box-shadow: 0 22px 48px rgba(16, 39, 62, 0.18);
    overflow: hidden;
}

.app-dialog-shell__dialog--warn {
    border-color: rgba(217, 154, 37, 0.34);
    box-shadow: 0 28px 64px rgba(112, 75, 12, 0.18);
}

.app-dialog-shell__dialog--danger {
    border-color: rgba(183, 75, 75, 0.34);
    box-shadow: 0 28px 64px rgba(116, 31, 31, 0.18);
}

.app-dialog-shell__dialog--success {
    border-color: rgba(67, 143, 96, 0.34);
    box-shadow: 0 28px 64px rgba(36, 101, 70, 0.18);
}

.app-dialog-shell__eyebrow {
    color: #c67c12;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.app-dialog-shell__title {
    margin: 0;
    color: var(--ec-primary-2);
    font-size: 1.22rem;
    line-height: 1.3;
}

.app-dialog-shell__message {
    margin: 0;
    color: #4f6783;
    font-size: 0.92rem;
    line-height: 1.65;
}

.app-dialog-shell__content {
    display: grid;
    gap: 1rem;
    color: #4f6783;
    min-height: 0;
    overflow-y: auto;
    padding-right: 0.25rem;
    overscroll-behavior: contain;
}

.app-dialog-shell__content::-webkit-scrollbar {
    width: 10px;
}

.app-dialog-shell__content::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(119, 152, 188, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.95);
}

.app-dialog-shell__content::-webkit-scrollbar-track {
    background: transparent;
}

.app-dialog-shell__dialog--help {
    width: min(92vw, 760px);
}

.app-dialog-shell__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-dialog-shell__button {
    min-height: 44px;
    padding: 0.7rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(166, 192, 223, 0.56);
    font: inherit;
    font-size: 0.84rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.app-dialog-shell__button:hover {
    transform: translateY(-1px);
}

.app-dialog-shell__button:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.app-dialog-shell__button--primary {
    border-color: rgba(13, 94, 150, 0.26);
    background: linear-gradient(180deg, #1772b1 0%, #0d5e96 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(13, 94, 150, 0.18);
}

.app-dialog-shell__button--secondary {
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
    color: var(--ec-primary-2);
    box-shadow: 0 10px 24px rgba(25, 64, 103, 0.08);
}

@media (max-width: 1180px) {
    .shell-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attendance-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .attendance-layout {
        grid-template-columns: 1fr;
    }

    .attendance-student {
        grid-template-columns: 1fr;
    }

    .app-dialog-shell__actions {
        width: 100%;
    }

    .app-dialog-shell__button {
        flex: 1 1 180px;
    }

    .app-dialog-shell__dialog--help {
        width: min(94vw, 760px);
    }
}

@media (max-width: 980px) {
    .shell-sidebar-peek-zone {
        display: none !important;
    }

    .shell-sidebar {
        width: 100%;
        min-width: 0;
        border-right: none;
        border-bottom: 1px solid rgba(191, 214, 240, 0.72);
        box-shadow: none;
    }

    .shell-app {
        flex-direction: column;
    }

    .attendance-mark-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .app-dialog-shell {
        padding: 0.8rem;
    }

    .app-dialog-shell__dialog,
    .app-dialog-shell__dialog--help {
        width: min(96vw, 760px);
        max-height: min(90vh, 860px);
        padding: 1rem 0.95rem 0.95rem;
        border-radius: 24px;
    }

    .app-dialog-shell__content {
        padding-right: 0.1rem;
    }

    .shell-card-grid {
        grid-template-columns: 1fr;
    }

    .shell-topbar__inner {
        padding: 0.9rem;
        align-items: stretch;
    }

    .shell-topbar__left,
    .shell-topbar__right {
        width: 100%;
        min-width: 0;
    }

    .shell-topbar__right {
        justify-content: flex-start;
    }

    .shell-breadcrumb {
        width: 100%;
    }

    .shell-hero,
    .shell-card {
        border-radius: 22px;
    }

    .attendance-kpi-grid,
    .attendance-mark-grid {
        grid-template-columns: 1fr;
    }

    .attendance-card__actions,
    .attendance-card__actions--footer {
        width: 100%;
        justify-items: stretch;
    }

    .attendance-save-button,
    .attendance-save-status {
        width: 100%;
    }

    .attendance-student__main,
    .attendance-side-item__top,
    .attendance-progress__label {
        flex-direction: column;
        align-items: flex-start;
    }

    .attendance-photo-modal__dialog {
        padding: 0.85rem;
        border-radius: 24px;
    }

    .workspace-collection__meta,
    .workspace-collection__pager {
        width: 100%;
    }

    .workspace-registry__head {
        display: none;
    }

    .workspace-registry__row,
    .workspace-registry__cells,
    .workspace-registry__aside {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .workspace-registry__row {
        gap: 0.7rem;
    }

    .workspace-registry__cell {
        padding-top: 0.15rem;
        border-top: 1px solid rgba(227, 236, 246, 0.9);
    }

    .workspace-registry__cell:first-child {
        border-top: none;
        padding-top: 0;
    }

    .workspace-registry__cell::before {
        content: attr(data-label);
        color: #6b8199;
        font-size: 0.7rem;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .workspace-registry__badges,
    .workspace-registry__actions,
    .workspace-switcher__tabs {
        justify-content: flex-start;
    }

    .help-sheet__section {
        padding: 0.82rem 0.86rem;
    }
}

.session-tools {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin: 0 auto 1rem;
    width: min(100%, 1380px);
}

.session-tool-button {
    min-height: 42px;
    padding: 0.72rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(166, 192, 223, 0.72);
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
    color: var(--ec-primary-2);
    font-size: 0.84rem;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(25, 64, 103, 0.08);
    cursor: pointer;
}

.session-tool-button:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.session-tool-button.is-secondary {
    border-color: rgba(217, 154, 37, 0.30);
    background: linear-gradient(180deg, rgba(255, 244, 217, 0.98) 0%, rgba(255, 231, 192, 0.98) 100%);
    color: #7f5010;
}

.help-sheet {
    display: grid;
    gap: 0.85rem;
    text-align: left;
}

.help-sheet__intro {
    margin: 0;
    color: #47627f;
    line-height: 1.6;
}

.help-sheet__section {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(188, 211, 235, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(245, 249, 253, 0.99) 100%);
}

.help-sheet__title {
    margin: 0;
    color: var(--ec-primary-2);
    font-size: 0.98rem;
}

.help-sheet__list {
    margin: 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 0.3rem;
    color: #4b6580;
    line-height: 1.55;
}

.shell-scrolltop {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    z-index: 80;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(13, 94, 150, 0.22);
    border-radius: 999px;
    background: linear-gradient(180deg, #1772b1 0%, #0d5e96 100%);
    color: #ffffff;
    font: inherit;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 18px 30px rgba(13, 94, 150, 0.22);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.shell-scrolltop:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 34px rgba(13, 94, 150, 0.26);
}

.shell-scrolltop:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring), 0 18px 30px rgba(13, 94, 150, 0.22);
}

.context-selector {
    width: min(100%, 1180px);
    padding: 1.35rem;
    border-radius: 30px;
    border: 1px solid rgba(184, 205, 228, 0.92);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 249, 252, 0.99) 100%);
    box-shadow: 0 28px 60px rgba(25, 64, 103, 0.12);
}

.context-selector__hero {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

.context-selector__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.context-selector__logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
    padding: 0.55rem;
    box-shadow: 0 18px 40px rgba(25, 64, 103, 0.16);
}

.context-selector__eyebrow,
.super-admin-panel__eyebrow {
    color: #c67c12;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.context-selector__title,
.super-admin-panel__title,
.context-card__title,
.super-admin-item__title {
    margin: 0.2rem 0 0;
    color: var(--ec-primary-2);
}

.context-card__role {
    margin-top: 0.28rem;
    color: var(--ec-primary-2);
    font-size: 0.9rem;
    font-weight: 800;
}

.context-selector__copy,
.context-selector__helper,
.super-admin-panel__copy,
.super-admin-item__detail,
.context-card__copy,
.context-card__meta,
.super-admin-item__meta {
    margin: 0;
    color: var(--ec-text-soft);
    line-height: 1.6;
}

.context-selector__helper {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(217, 154, 37, 0.30);
    background: linear-gradient(180deg, rgba(255, 244, 217, 0.98) 0%, rgba(255, 235, 188, 0.98) 100%);
    color: #7f5010;
    font-weight: 700;
}

.context-selector__search {
    display: grid;
    gap: 0.45rem;
}

.context-selector__search-label {
    color: var(--ec-primary-2);
    font-size: 0.88rem;
    font-weight: 800;
}

.context-selector__search-input {
    max-width: 460px;
}

.context-selector__search-status,
.context-selector__empty {
    color: var(--ec-text-soft);
    font-size: 0.9rem;
}

.context-selector__empty {
    margin-top: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px dashed rgba(141, 174, 204, 0.85);
    background: rgba(246, 250, 255, 0.92);
}

.context-selector__list,
.super-admin-kpi-grid,
.super-admin-panel-grid {
    display: grid;
    gap: 1rem;
}

.context-selector__list {
    max-height: min(60vh, 660px);
    overflow-y: auto;
    padding-right: 0.18rem;
    align-content: start;
}

.context-selector__list::-webkit-scrollbar {
    width: 12px;
}

.context-selector__list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 3px solid rgba(245, 249, 253, 0.95);
    background: rgba(92, 138, 181, 0.38);
}

.context-selector__list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(230, 238, 247, 0.85);
}

.context-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.62rem;
    width: 100%;
    padding: 0.6rem 0.68rem;
    border-radius: 14px;
    border: 1px solid rgba(186, 206, 228, 0.90);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 249, 252, 0.99) 100%);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.context-row:hover {
    border-color: rgba(13, 94, 150, 0.28);
    box-shadow: 0 12px 24px rgba(25, 64, 103, 0.08);
}

.context-row:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.context-row__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--ec-primary) 0%, var(--ec-secondary) 100%);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 8px 14px rgba(25, 64, 103, 0.12);
}

.context-row__content {
    display: grid;
    gap: 0.18rem;
    min-width: 0;
}

.context-row__headline {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.8rem;
    min-width: 0;
}

.context-card__title {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.2;
}

.context-card__copy {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    font-size: 0.74rem;
    line-height: 1.28;
}

.context-card__meta,
.context-row__badges,
.super-admin-item__badges,
.context-selector__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.context-row__badges {
    justify-content: flex-end;
    gap: 0.36rem;
}

.context-row__arrow {
    width: 20px;
    height: 20px;
    color: var(--ec-primary-2);
    opacity: 0.72;
    flex: 0 0 auto;
}

.context-row__arrow svg {
    width: 100%;
    height: 100%;
}

.context-selector__pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.8rem;
    margin-top: 0.9rem;
}

.context-selector__pager-status {
    min-width: 120px;
    color: var(--ec-text-soft);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.super-admin-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.context-card__badge,
.super-admin-badge {
    min-height: 26px;
    padding: 0.3rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(177, 202, 229, 0.82);
    background: #edf5fd;
    color: #355b82;
    font-size: 0.69rem;
    font-weight: 900;
}

.context-row__icon.is-warm,
.super-admin-banner.is-warm,
.super-admin-kpi.is-warm,
.super-admin-badge.is-warm {
    background: linear-gradient(180deg, rgba(255, 238, 214, 0.98) 0%, rgba(255, 225, 184, 0.98) 100%);
    color: #7b4a0f;
    border-color: rgba(217, 154, 37, 0.28);
}

.context-row__icon.is-focus,
.super-admin-banner.is-focus,
.super-admin-kpi.is-focus,
.super-admin-badge.is-focus {
    background: linear-gradient(180deg, rgba(255, 243, 201, 0.98) 0%, rgba(255, 228, 158, 0.98) 100%);
    color: #77520d;
    border-color: rgba(236, 181, 62, 0.30);
}

.context-row__icon.is-primary,
.super-admin-kpi.is-primary,
.super-admin-badge.is-primary {
    background: linear-gradient(180deg, rgba(227, 240, 253, 0.98) 0%, rgba(210, 229, 248, 0.98) 100%);
    color: var(--ec-primary-2);
    border-color: rgba(86, 145, 194, 0.26);
}

.context-row__icon.is-ok {
    background: linear-gradient(180deg, rgba(232, 247, 239, 0.98) 0%, rgba(214, 240, 224, 0.98) 100%);
    color: #276849;
    border-color: rgba(67, 160, 108, 0.28);
}

.context-row__icon.is-neutral {
    background: linear-gradient(180deg, rgba(241, 245, 250, 0.98) 0%, rgba(226, 234, 244, 0.98) 100%);
    color: #355b82;
    border-color: rgba(128, 158, 188, 0.26);
}

.super-admin-banner.is-danger,
.super-admin-kpi.is-danger,
.super-admin-badge.is-danger {
    background: linear-gradient(180deg, rgba(254, 238, 238, 0.98) 0%, rgba(251, 222, 222, 0.98) 100%);
    color: #9a3131;
    border-color: rgba(210, 80, 80, 0.28);
}

.super-admin-badge.is-ok {
    background: linear-gradient(180deg, rgba(232, 247, 239, 0.98) 0%, rgba(214, 240, 224, 0.98) 100%);
    color: #276849;
    border-color: rgba(67, 160, 108, 0.28);
}

.super-admin-banner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 0.9rem 1rem;
    margin-top: 1.2rem;
    border: 1px solid rgba(184, 205, 228, 0.88);
    border-radius: 18px;
    box-shadow: 0 10px 22px rgba(25, 64, 103, 0.07);
}

.super-admin-kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    margin-top: 0.8rem;
}

.super-admin-panel-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 0.85rem;
}

.super-admin-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.8rem;
    margin-top: 0.85rem;
}

.super-admin-kpi,
.super-admin-panel,
.super-admin-action {
    border: 1px solid rgba(184, 205, 228, 0.9);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 249, 252, 0.99) 100%);
    box-shadow: 0 12px 24px rgba(25, 64, 103, 0.08);
}

.super-admin-kpi {
    padding: 0.82rem 0.86rem;
}

button.super-admin-kpi {
    width: 100%;
    appearance: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.super-admin-kpi.is-actionable:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(25, 64, 103, 0.12);
}

.super-admin-kpi.is-actionable:focus-visible {
    outline: 3px solid rgba(13, 94, 150, 0.24);
    outline-offset: 3px;
}

.super-admin-kpi__value {
    color: var(--ec-primary-2);
    font-size: 1.45rem;
    font-weight: 900;
}

.super-admin-kpi__label {
    color: var(--ec-primary);
    font-weight: 900;
    font-size: 0.8rem;
}

.super-admin-kpi__meta {
    color: var(--ec-text-soft);
    font-size: 0.74rem;
    line-height: 1.4;
}

.super-admin-panel {
    padding: 0.88rem 0.92rem;
}

.super-admin-action {
    padding: 0.88rem 0.92rem;
}

.workspace-block {
    margin-top: 0.82rem;
    padding: 0.88rem 0.92rem;
    border: 1px solid rgba(184, 205, 228, 0.9);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 249, 252, 0.99) 100%);
    box-shadow: 0 12px 24px rgba(25, 64, 103, 0.08);
}

.workspace-block__head {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.95rem;
}

.workspace-launcher {
    display: grid;
    gap: 1rem;
}

.workspace-launcher__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.workspace-launcher__detail {
    display: grid;
    gap: 1rem;
}

.workspace-launcher__detail--visible {
    display: grid;
}

.workspace-launcher__view {
    display: grid;
    gap: 1rem;
}

.workspace-launcher__view-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.05rem;
    border: 1px solid rgba(188, 211, 235, 0.9);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(250, 253, 255, 0.98) 0%, rgba(241, 247, 252, 0.99) 100%);
}

.workspace-launcher__view-head--compact {
    padding: 0.85rem 0.95rem;
    gap: 0.65rem;
}

.workspace-launcher__back {
    min-width: 112px;
}

.workspace-launcher-card {
    appearance: none;
    display: grid;
    gap: 0.28rem;
    min-height: 88px;
    padding: 0.72rem 0.8rem;
    text-align: left;
    border: 1px solid rgba(186, 208, 232, 0.92);
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
    box-shadow: 0 10px 18px rgba(25, 64, 103, 0.07);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.workspace-launcher-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(25, 64, 103, 0.12);
}

.workspace-launcher-card:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.workspace-launcher-card__eyebrow {
    color: var(--ec-primary-2);
    font-size: 0.71rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.workspace-launcher-card__title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.workspace-launcher-card__title {
    margin: 0;
    color: var(--ec-primary-2);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.28;
}

.workspace-launcher-card__count {
    min-width: 34px;
    min-height: 34px;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: rgba(13, 94, 150, 0.1);
    color: var(--ec-primary-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 900;
}

.workspace-launcher-card__copy {
    margin: 0;
    color: #526b84;
    font-size: 0.72rem;
    line-height: 1.33;
}

.workspace-launcher-card__quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.workspace-launcher-card__meta {
    margin-top: auto;
    color: #6b8199;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.workspace-switcher {
    display: grid;
    gap: 0.95rem;
}

.workspace-switcher__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.workspace-switcher__tabs--block {
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(212, 225, 239, 0.54);
}

.workspace-switcher__tab {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0.52rem 0.82rem;
    border: 1px solid rgba(177, 202, 229, 0.54);
    border-radius: 999px;
    background: #edf5fd;
    color: #355b82;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.workspace-switcher__tab:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(25, 64, 103, 0.06);
}

.workspace-switcher__tab:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.workspace-switcher__tab.is-active {
    border-color: rgba(86, 145, 194, 0.2);
    background: linear-gradient(180deg, rgba(227, 240, 253, 0.98) 0%, rgba(210, 229, 248, 0.98) 100%);
    color: var(--ec-primary-2);
}

.workspace-switcher__tab-count {
    min-width: 26px;
    min-height: 26px;
    padding: 0 0.45rem;
    border-radius: 999px;
    background: rgba(13, 94, 150, 0.12);
    color: var(--ec-primary-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.74rem;
    font-weight: 900;
}

.workspace-switcher__content,
.workspace-switcher__panel {
    display: grid;
    gap: 1rem;
}

.workspace-collection {
    display: grid;
    gap: 0.72rem;
}

.teacher-academic-view .workspace-shell__panel,
.teacher-planner-view .workspace-shell__panel,
.teacher-support-shell .workspace-shell__panel,
.teacher-coordination-shell .workspace-shell__panel,
.teacher-written-tests-shell .workspace-shell__panel {
    border: 1px solid var(--ec-ui-panel-border);
    border-radius: 22px;
    background: var(--ec-ui-panel-surface);
    box-shadow: var(--ec-ui-panel-shadow);
}

.workspace-collection__head {
    display: grid;
    gap: 0.85rem;
}

.workspace-collection__head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.workspace-collection__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.workspace-collection__search,
.workspace-collection__filter {
    display: grid;
    gap: 0.3rem;
}

.workspace-collection__search {
    flex: 1 1 260px;
}

.workspace-collection__filter {
    flex: 0 1 220px;
}

.workspace-collection__search span,
.workspace-collection__filter span {
    color: var(--ec-primary-2);
    font-size: 0.78rem;
    font-weight: 900;
}

.workspace-collection__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    color: var(--ec-text-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.workspace-collection__pager {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.workspace-collection__pager .session-tool-button {
    min-height: 38px;
    padding: 0.58rem 0.8rem;
}

.workspace-collection__empty {
    padding: 1rem;
    border: 1px dashed rgba(188, 211, 235, 0.9);
    border-radius: 18px;
    background: #f7fbff;
    color: #5f7a96;
    font-size: 0.84rem;
    font-weight: 800;
}

.workspace-collection__empty-copy {
    display: block;
}

.workspace-collection__empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.85rem;
}

.workspace-registry {
    display: grid;
    gap: 0.42rem;
}

.workspace-registry__head {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr) minmax(180px, 0.9fr);
    gap: 0.5rem;
    padding: 0 0.2rem;
    color: #6b8199;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.workspace-registry__body {
    display: grid;
    gap: 0.42rem;
}

.workspace-registry__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
    gap: 0.52rem;
    padding: 0.56rem 0.62rem;
    border-radius: 14px;
    border: 1px solid rgba(192, 213, 235, 0.9);
    background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
}

.workspace-registry__cells {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.48rem;
}

.workspace-registry__cell {
    display: grid;
    gap: 0.18rem;
}

.workspace-registry__cell strong {
    color: var(--ec-primary-2);
    font-size: 0.76rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.workspace-registry__cell span {
    color: #5f7a96;
    font-size: 0.68rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.workspace-registry__aside {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 0.4rem;
}

.workspace-registry__badges,
.workspace-registry__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.32rem;
}

.super-admin-panel__body {
    display: grid;
    gap: 0.65rem;
}

.super-admin-item {
    display: grid;
    gap: 0.45rem;
    padding: 0.62rem 0.68rem;
    border-radius: 14px;
    border: 1px solid rgba(192, 213, 235, 0.90);
    background: linear-gradient(180deg, #ffffff 0%, #f7fafd 100%);
}

.super-admin-item__action {
    appearance: none;
    border: 1px solid rgba(177, 202, 229, 0.82);
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
    background: #edf5fd;
    color: #355b82;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.super-admin-item__action:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(25, 64, 103, 0.10);
}

.super-admin-item__action:focus-visible {
    outline: 3px solid rgba(13, 94, 150, 0.22);
    outline-offset: 2px;
}

.super-admin-item__action.is-primary {
    border-color: rgba(86, 145, 194, 0.26);
    background: linear-gradient(180deg, rgba(227, 240, 253, 0.98) 0%, rgba(210, 229, 248, 0.98) 100%);
    color: var(--ec-primary-2);
}

.super-admin-item__action.is-warm {
    border-color: rgba(217, 154, 37, 0.28);
    background: linear-gradient(180deg, rgba(255, 238, 214, 0.98) 0%, rgba(255, 225, 184, 0.98) 100%);
    color: #7b4a0f;
}

.super-admin-item__action.is-danger {
    border-color: rgba(210, 80, 80, 0.28);
    background: linear-gradient(180deg, rgba(254, 238, 238, 0.98) 0%, rgba(251, 222, 222, 0.98) 100%);
    color: #9a3131;
}

.super-admin-item__action.is-ok {
    border-color: rgba(58, 140, 92, 0.24);
    background: linear-gradient(180deg, rgba(232, 247, 239, 0.98) 0%, rgba(214, 240, 224, 0.98) 100%);
    color: #246546;
}

.super-admin-action__head {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 0.95rem;
}

.super-admin-form {
    display: grid;
    gap: 0.9rem;
}

.super-admin-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.super-admin-form__field {
    display: grid;
    gap: 0.35rem;
}

.super-admin-form__field--color {
    gap: 0.5rem;
}

.super-admin-form__field.is-invalid .super-admin-form__label,
.super-admin-form__check.is-invalid {
    color: #a33232;
}

.super-admin-form__field--full,
.super-admin-form__heading {
    grid-column: 1 / -1;
}

.super-admin-form__label {
    color: var(--ec-primary-2);
    font-size: 0.82rem;
    font-weight: 900;
}

.super-admin-form__label-row,
.workspace-title-row,
.workspace-collection__search-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.super-admin-form__hint {
    color: var(--ec-text-soft);
    font-size: 0.76rem;
    line-height: 1.5;
}

.super-admin-form__check-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.inline-help {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.inline-help__trigger {
    width: 22px;
    height: 22px;
    border: 1px solid rgba(144, 173, 206, 0.9);
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
    color: var(--ec-primary-2);
    font: inherit;
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(25, 64, 103, 0.08);
}

.inline-help.is-compact .inline-help__trigger {
    width: 20px;
    height: 20px;
    font-size: 0.72rem;
}

.inline-help__trigger:focus-visible,
.inline-help__trigger:hover {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.inline-help__bubble {
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    min-width: 220px;
    max-width: min(320px, 70vw);
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(184, 205, 228, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 249, 252, 0.99) 100%);
    color: #4b6580;
    font-size: 0.78rem;
    line-height: 1.55;
    box-shadow: 0 18px 36px rgba(25, 64, 103, 0.16);
    z-index: 50;
}

.super-admin-form__control {
    min-height: 44px;
    width: 100%;
    padding: 0.78rem 0.9rem;
    border: 1px solid rgba(188, 211, 235, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--ec-primary-2);
    font-size: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.super-admin-form__control[type="color"] {
    min-height: 52px;
    padding: 0.35rem;
    cursor: pointer;
}

.super-admin-color-field {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(188, 211, 235, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(244, 248, 252, 0.99) 100%);
    box-shadow: 0 12px 24px rgba(25, 64, 103, 0.06);
}

.super-admin-form__control--color,
.super-admin-form__control[type="color"].super-admin-form__control--color {
    min-height: 72px;
    height: 72px;
    padding: 0.2rem;
    border-radius: 20px;
    border: 1px solid rgba(160, 188, 218, 0.94);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(25, 64, 103, 0.08);
}

.super-admin-color-field__meta {
    display: grid;
    gap: 0.2rem;
}

.super-admin-color-field__hex {
    color: var(--ec-primary-2);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.super-admin-color-field__copy {
    color: var(--ec-text-soft);
    font-size: 0.76rem;
    line-height: 1.55;
}

.super-admin-form__control[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.super-admin-form__control[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 12px;
}

.super-admin-palette-preview {
    --preview-primary: #0d5e96;
    --preview-primary-dark: #083b61;
    --preview-primary-soft: #dbeeff;
    --preview-secondary: #28a88a;
    --preview-accent: #f3ad3d;
    --preview-accent-soft: #fff1d4;
    --preview-text: #1f2937;
    --preview-text-soft: #5b6f86;
    --preview-surface: #eef4fb;
    --preview-border: #cfe1f2;
    --preview-sidebar-start: #0f4f7d;
    --preview-sidebar-end: #08395c;
    --preview-sidebar-text: #f3f8fd;
    --preview-sidebar-kicker: #ffd27a;
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border-radius: 26px;
    border: 1px solid rgba(188, 211, 235, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(244, 248, 252, 0.99) 100%);
    box-shadow: 0 18px 36px rgba(25, 64, 103, 0.1);
}

.super-admin-palette-preview__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.8fr);
    gap: 0.9rem;
}

.super-admin-palette-preview__frame {
    display: grid;
    grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1fr);
    min-height: 210px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--preview-border);
    background: linear-gradient(180deg, var(--preview-surface) 0%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.super-admin-palette-preview__sidebar {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    padding: 1rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12) 0%, transparent 26%),
        linear-gradient(180deg, var(--preview-sidebar-start) 0%, var(--preview-sidebar-end) 100%);
    color: var(--preview-sidebar-text);
}

.super-admin-palette-preview__kicker {
    color: var(--preview-sidebar-kicker);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.super-admin-palette-preview__title {
    font-size: 1.02rem;
    line-height: 1.2;
}

.super-admin-palette-preview__muted {
    color: rgba(243, 248, 253, 0.76);
    font-size: 0.82rem;
}

.super-admin-palette-preview__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 210, 122, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--preview-sidebar-text);
    font-size: 0.76rem;
    font-weight: 800;
}

.super-admin-palette-preview__content {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    padding: 1rem 1.1rem;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.74) 0%, transparent 28%),
        linear-gradient(180deg, var(--preview-primary-soft) 0%, #ffffff 78%);
    color: var(--preview-text);
}

.super-admin-palette-preview__badge {
    display: inline-flex;
    width: fit-content;
    padding: 0.38rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--preview-accent-soft) 0%, #fff8e7 100%);
    border: 1px solid rgba(214, 170, 77, 0.24);
    color: #7a4f11;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.super-admin-palette-preview__headline {
    color: var(--preview-primary-dark);
    font-size: 1rem;
    line-height: 1.25;
}

.super-admin-palette-preview__copy {
    margin: 0;
    color: var(--preview-text-soft);
    font-size: 0.82rem;
    line-height: 1.6;
}

.super-admin-palette-preview__cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.super-admin-palette-preview__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 0.68rem 0.9rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 900;
}

.super-admin-palette-preview__cta--primary {
    background: linear-gradient(135deg, var(--preview-primary) 0%, var(--preview-secondary) 100%);
    color: #ffffff;
}

.super-admin-palette-preview__cta--secondary {
    background: linear-gradient(180deg, var(--preview-accent-soft) 0%, #fff8eb 100%);
    border: 1px solid rgba(214, 170, 77, 0.22);
    color: #805316;
}

.super-admin-palette-preview__panel {
    display: grid;
    align-content: start;
    gap: 0.55rem;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid var(--preview-border);
    background: linear-gradient(180deg, #ffffff 0%, var(--preview-primary-soft) 100%);
}

.super-admin-palette-preview__panel-title {
    color: var(--preview-primary-dark);
    font-size: 0.95rem;
    font-weight: 900;
}

.super-admin-palette-preview__panel-copy {
    color: var(--preview-text-soft);
    font-size: 0.8rem;
    line-height: 1.6;
}

.super-admin-palette-preview__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.super-admin-palette-preview__button {
    justify-self: start;
    min-height: 42px;
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(186, 206, 228, 0.9);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 249, 252, 0.99) 100%);
    color: var(--preview-primary-dark);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(25, 64, 103, 0.08);
}

.super-admin-palette-preview__button:hover {
    transform: translateY(-1px);
    border-color: rgba(150, 185, 223, 0.94);
}

.super-admin-palette-preview__button--ghost {
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.99) 0%, rgba(239, 245, 251, 0.98) 100%);
    color: var(--preview-text);
    border-color: rgba(169, 192, 215, 0.95);
    box-shadow: none;
}

.super-admin-palette-preview__chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
}

.super-admin-palette-preview__chip {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    padding: 0.72rem 0.8rem;
    border-radius: 18px;
    border: 1px solid rgba(188, 211, 235, 0.88);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 249, 252, 0.99) 100%);
}

.super-admin-palette-preview__swatch {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 14px rgba(25, 64, 103, 0.12);
    background: var(--preview-primary);
}

.super-admin-palette-preview__chip-label {
    display: block;
    color: var(--preview-text-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.super-admin-palette-preview__chip strong {
    color: var(--preview-text);
    font-size: 0.86rem;
    font-weight: 900;
}

@media (max-width: 860px) {
    .super-admin-palette-preview__hero,
    .super-admin-palette-preview__frame {
        grid-template-columns: 1fr;
    }

    .super-admin-color-field {
        grid-template-columns: 1fr;
    }

    .super-admin-form__control--color,
    .super-admin-form__control[type="color"].super-admin-form__control--color {
        width: 100%;
    }
}

.super-admin-form__control--textarea {
    min-height: 110px;
    resize: vertical;
    padding-top: 0.85rem;
}

.super-admin-search-select {
    position: relative;
    display: grid;
    gap: 0.45rem;
    --ec-select-accent: var(--ec-ui-primary);
    --ec-select-accent-soft: var(--ec-ui-primary-soft);
    --ec-select-surface: rgba(244, 249, 255, 0.99);
    --ec-select-panel: rgba(251, 253, 255, 0.99);
    --ec-select-text: #285680;
}

.super-admin-search-select--focus {
    --ec-select-accent: var(--ec-ui-focus);
    --ec-select-accent-soft: var(--ec-ui-focus-soft);
    --ec-select-surface: rgba(246, 247, 255, 0.99);
    --ec-select-panel: rgba(250, 251, 255, 0.99);
    --ec-select-text: #4458ab;
}

.super-admin-search-select--warm {
    --ec-select-accent: var(--ec-ui-warm);
    --ec-select-accent-soft: var(--ec-ui-warm-soft);
    --ec-select-surface: rgba(255, 249, 242, 0.99);
    --ec-select-panel: rgba(255, 252, 248, 0.99);
    --ec-select-text: #9d5d2f;
}

.super-admin-search-select--ok {
    --ec-select-accent: var(--ec-ui-ok);
    --ec-select-accent-soft: var(--ec-ui-ok-soft);
    --ec-select-surface: rgba(245, 252, 248, 0.99);
    --ec-select-panel: rgba(249, 255, 252, 0.99);
    --ec-select-text: #237851;
}

.super-admin-search-select--risk {
    --ec-select-accent: var(--ec-ui-risk);
    --ec-select-accent-soft: var(--ec-ui-risk-soft);
    --ec-select-surface: rgba(255, 247, 245, 0.99);
    --ec-select-panel: rgba(255, 251, 250, 0.99);
    --ec-select-text: #a4503f;
}

.super-admin-search-select--neutral {
    --ec-select-accent: var(--ec-ui-neutral);
    --ec-select-accent-soft: var(--ec-ui-neutral-soft);
    --ec-select-surface: rgba(247, 249, 252, 0.99);
    --ec-select-panel: rgba(252, 253, 255, 0.99);
    --ec-select-text: #516477;
}

.super-admin-search-select__control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
    padding: 0.2rem;
    border: 1px solid color-mix(in srgb, var(--ec-select-accent-soft) 62%, rgba(147, 170, 194, 0.35));
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, var(--ec-select-surface) 100%);
    box-shadow: 0 4px 10px rgba(25, 64, 103, 0.035);
}

.super-admin-search-select__input {
    border-color: rgba(177, 202, 229, 0.54);
    background: linear-gradient(180deg, #ffffff 0%, var(--ec-select-surface) 100%);
    box-shadow: inset 2px 0 0 var(--ec-select-accent-soft), 0 3px 8px rgba(25, 64, 103, 0.025);
}

.super-admin-search-select__input:focus {
    border-color: var(--ec-select-accent);
    box-shadow: inset 2px 0 0 var(--ec-select-accent), 0 0 0 3px var(--ec-select-accent-soft), 0 7px 16px rgba(25, 64, 103, 0.05);
}

.super-admin-search-select__input::-webkit-search-cancel-button {
    appearance: none;
}

.super-admin-search-select__toggle {
    min-height: 34px;
    padding: 0.46rem 0.72rem;
    border: 1px solid color-mix(in srgb, var(--ec-select-accent-soft) 66%, rgba(147, 170, 194, 0.28));
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, var(--ec-select-surface) 100%);
    color: var(--ec-select-text);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.super-admin-search-select__toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 14px rgba(25, 64, 103, 0.06), inset 0 0 0 1px var(--ec-select-accent-soft);
}

.super-admin-search-select__toggle:focus-visible {
    outline: none;
    border-color: var(--ec-select-accent);
    box-shadow: 0 0 0 4px var(--ec-select-accent-soft);
}

.super-admin-search-select__panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    gap: 0.42rem;
    padding: 0.48rem;
    border: 1px solid color-mix(in srgb, var(--ec-select-accent-soft) 66%, rgba(147, 170, 194, 0.32));
    border-top: 1px solid color-mix(in srgb, var(--ec-select-accent) 34%, rgba(147, 170, 194, 0.2));
    border-radius: 14px;
    background: linear-gradient(180deg, var(--ec-select-panel) 0%, #ffffff 100%);
    box-shadow: 0 10px 20px rgba(19, 55, 90, 0.08);
}

.super-admin-search-select__status {
    color: var(--ec-select-text);
    font-size: 0.68rem;
    font-weight: 700;
}

.super-admin-search-select__list {
    display: grid;
    gap: 0.22rem;
    max-height: 17rem;
    overflow: auto;
    padding-right: 0.15rem;
}

.super-admin-search-select__option {
    display: grid;
    gap: 0.08rem;
    width: 100%;
    padding: 0.46rem 0.58rem 0.46rem 0.68rem;
    border: 1px solid rgba(188, 211, 235, 0.5);
    border-left: 2px solid var(--ec-select-accent-soft);
    border-radius: 10px;
    background: linear-gradient(180deg, #ffffff 0%, var(--ec-select-surface) 100%);
    text-align: left;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.super-admin-search-select__option:hover {
    transform: translateY(-1px);
    border-color: var(--ec-select-accent-soft);
    box-shadow: 0 8px 16px rgba(19, 55, 90, 0.05);
}

.super-admin-search-select__option:focus-visible {
    outline: none;
    border-color: var(--ec-select-accent);
    box-shadow: 0 0 0 4px var(--ec-select-accent-soft);
}

.super-admin-search-select__option.is-selected {
    border-color: var(--ec-select-accent-soft);
    border-left-color: var(--ec-select-accent);
    background: linear-gradient(180deg, #ffffff 0%, var(--ec-select-surface) 100%);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ec-select-accent-soft) 80%, rgba(255,255,255,0.2));
}

.super-admin-search-select__option-title {
    color: var(--ec-select-text);
    font-size: 0.73rem;
    font-weight: 700;
    line-height: 1.28;
}

.super-admin-search-select__option-meta {
    color: #5f7a96;
    font-size: 0.66rem;
    line-height: 1.28;
}

.super-admin-search-select__native {
    position: absolute;
    inset: 0;
    width: 0;
    height: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.super-admin-search-results {
    display: grid;
    gap: 0.85rem;
    padding: 0.95rem;
    border: 1px solid rgba(188, 211, 235, 0.86);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.98) 0%, rgba(243, 248, 252, 0.99) 100%);
}

.super-admin-search-results__hint {
    margin: 0;
    color: #5f7891;
    font-size: 0.82rem;
    line-height: 1.6;
}

.super-admin-search-results__selection,
.super-admin-search-results__list {
    display: grid;
    gap: 0.7rem;
}

.super-admin-search-results__selected {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(13, 94, 150, 0.18);
    background: linear-gradient(180deg, rgba(227, 241, 252, 0.92) 0%, rgba(242, 248, 253, 0.98) 100%);
}

.super-admin-search-results__selected strong,
.super-admin-search-results__item strong {
    display: block;
    color: var(--ec-primary-2);
    font-size: 0.94rem;
    line-height: 1.4;
}

.super-admin-search-results__selected span,
.super-admin-search-results__item span {
    display: block;
    color: #5f7891;
    font-size: 0.79rem;
    line-height: 1.55;
}

.super-admin-search-results__item {
    appearance: none;
    width: 100%;
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 0.95rem;
    text-align: left;
    border: 1px solid rgba(186, 208, 232, 0.86);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9fd 100%);
    box-shadow: 0 12px 24px rgba(25, 64, 103, 0.06);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.super-admin-search-results__item:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(25, 64, 103, 0.1);
}

.super-admin-search-results__item:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.super-admin-search-results__item.is-selected {
    border-color: rgba(13, 94, 150, 0.26);
    background: linear-gradient(180deg, rgba(227, 241, 252, 0.95) 0%, rgba(242, 248, 253, 0.98) 100%);
}

.super-admin-search-results__empty-state {
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px dashed rgba(180, 201, 224, 0.96);
    background: rgba(247, 250, 253, 0.96);
    color: #6b8199;
    font-size: 0.82rem;
    line-height: 1.6;
}

.super-admin-form__control:focus {
    outline: none;
    border-color: rgba(13, 94, 150, 0.52);
    box-shadow: 0 0 0 4px rgba(13, 94, 150, 0.14);
}

.super-admin-form__control.is-invalid {
    border-color: rgba(179, 54, 54, 0.55);
    background: #fff7f7;
    box-shadow: 0 0 0 4px rgba(179, 54, 54, 0.12);
}

.super-admin-form__field-message {
    color: #a33232;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.5;
}

.super-admin-check-card:focus-within {
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.super-admin-form__heading {
    padding-top: 0.2rem;
    color: #c67c12;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.super-admin-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.65rem;
}

.super-admin-checklist {
    display: grid;
    gap: 0.55rem;
}

.super-admin-checklist__toolbar {
    display: grid;
    gap: 0.35rem;
}

.super-admin-checklist__status {
    color: #5f7a96;
    font-size: 0.72rem;
    font-weight: 800;
}

.super-admin-check-grid--compact {
    grid-template-columns: 1fr;
    max-height: 260px;
    overflow: auto;
    padding-right: 0.18rem;
}

.super-admin-check-card {
    display: grid;
    gap: 0.2rem;
    padding: 0.78rem 0.85rem;
    border-radius: 18px;
    border: 1px solid rgba(188, 211, 235, 0.94);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 248, 252, 0.98) 100%);
    cursor: pointer;
}

.super-admin-check-card.is-compact {
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.58rem;
    row-gap: 0.08rem;
    align-items: start;
    padding: 0.48rem 0.56rem;
    border-radius: 14px;
}

.super-admin-check-card input {
    inline-size: 1.05rem;
    block-size: 1.05rem;
    margin: 0 0 0.2rem;
    accent-color: var(--ec-primary-2);
    flex-shrink: 0;
}

.super-admin-check-card.is-compact input {
    margin: 0.12rem 0 0;
    grid-row: 1 / span 2;
}

.super-admin-check-card__title {
    color: var(--ec-primary-2);
    font-size: 0.86rem;
    font-weight: 900;
}

.super-admin-check-card__meta {
    color: var(--ec-text-soft);
    font-size: 0.75rem;
    line-height: 1.4;
}

.super-admin-check-card.is-compact .super-admin-check-card__title {
    font-size: 0.76rem;
    line-height: 1.2;
}

.super-admin-check-card.is-compact .super-admin-check-card__meta {
    font-size: 0.68rem;
    line-height: 1.25;
}

.super-admin-schedule-grid {
    display: grid;
    gap: 0.75rem;
}

.super-admin-schedule-grid__summary {
    color: var(--ec-text-soft);
    font-size: 0.8rem;
    font-weight: 700;
}

.super-admin-schedule-grid__viewport {
    overflow: auto;
    border: 1px solid rgba(188, 211, 235, 0.94);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
}

.super-admin-schedule-grid__table {
    inline-size: 100%;
    border-collapse: collapse;
    min-inline-size: 620px;
}

.super-admin-schedule-grid__table th,
.super-admin-schedule-grid__table td {
    border-bottom: 1px solid rgba(216, 228, 241, 0.92);
    border-right: 1px solid rgba(229, 237, 246, 0.96);
    padding: 0.55rem 0.5rem;
    text-align: center;
    vertical-align: middle;
}

.super-admin-schedule-grid__table thead th {
    background: rgba(240, 246, 252, 0.96);
    color: var(--ec-primary-2);
    font-size: 0.77rem;
    font-weight: 900;
}

.super-admin-schedule-grid__table th:first-child {
    min-inline-size: 200px;
    text-align: left;
}

.super-admin-schedule-grid__row-title {
    display: block;
    color: var(--ec-primary-2);
    font-size: 0.84rem;
    font-weight: 900;
}

.super-admin-schedule-grid__row-meta {
    display: block;
    margin-top: 0.14rem;
    color: var(--ec-text-soft);
    font-size: 0.74rem;
    line-height: 1.35;
}

.super-admin-schedule-grid__cell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 100%;
    min-block-size: 30px;
    cursor: pointer;
}

.super-admin-schedule-grid__cell input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.super-admin-schedule-grid__check {
    inline-size: 18px;
    block-size: 18px;
    border-radius: 999px;
    border: 1.6px solid rgba(121, 159, 203, 0.95);
    background: rgba(255, 255, 255, 0.98);
    transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.super-admin-schedule-grid__cell:hover .super-admin-schedule-grid__check {
    transform: scale(1.04);
    box-shadow: 0 0 0 3px rgba(61, 128, 194, 0.08);
}

.super-admin-schedule-grid__cell input:checked + .super-admin-schedule-grid__check {
    background: linear-gradient(180deg, rgba(61, 128, 194, 0.96) 0%, rgba(44, 98, 168, 0.96) 100%);
    border-color: rgba(44, 98, 168, 0.96);
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.96);
}

.super-admin-schedule-grid__table tr[hidden] {
    display: none;
}

.school-schedule-summary-card,
.school-schedule-toolbar-card,
.school-schedule-matrix-card,
.school-schedule-conflicts-card {
    display: grid;
    gap: 0.9rem;
}

.school-schedule-toolbar-card {
    position: relative;
    z-index: 3;
    overflow: visible;
}

.school-schedule-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.school-schedule-summary-chip {
    display: grid;
    gap: 0.12rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(184, 205, 228, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
}

.school-schedule-summary-chip strong {
    color: var(--ec-primary-2);
    font-size: 1.05rem;
    font-weight: 900;
}

.school-schedule-summary-chip span {
    color: var(--ec-text-soft);
    font-size: 0.8rem;
}

.school-schedule-toolbar {
    display: grid;
    gap: 0.9rem;
}

.school-schedule-toolbar__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.school-schedule-toolbar__modes,
.school-schedule-toolbar__actions,
.school-schedule-inline-summary {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.school-schedule-view-toggle {
    appearance: none;
    border: 1px solid rgba(177, 202, 229, 0.82);
    border-radius: 999px;
    padding: 0.62rem 0.95rem;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(237, 245, 253, 0.98) 100%);
    color: #436582;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.school-schedule-view-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(25, 64, 103, 0.1);
}

.school-schedule-view-toggle:focus-visible {
    outline: none;
    border-color: rgba(13, 94, 150, 0.52);
    box-shadow: 0 0 0 4px rgba(13, 94, 150, 0.14);
}

.school-schedule-view-toggle.is-active {
    border-color: rgba(86, 145, 194, 0.28);
    background: linear-gradient(180deg, rgba(227, 240, 253, 0.98) 0%, rgba(210, 229, 248, 0.98) 100%);
    color: var(--ec-primary-2);
}

.school-schedule-toolbar__filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.school-schedule-filter {
    display: grid;
    gap: 0.3rem;
    position: relative;
    align-content: start;
    z-index: 1;
}

.school-schedule-filter .super-admin-form__label-row {
    display: grid;
    align-items: start;
    gap: 0.18rem;
}

.school-schedule-filter:focus-within {
    z-index: 25;
}

.school-schedule-filter .super-admin-search-select__panel {
    min-inline-size: 100%;
    max-inline-size: min(420px, calc(100vw - 3rem));
}

.school-schedule-filter .super-admin-form__hint {
    min-height: 2.4em;
}

.school-schedule-matrix-wrap {
    display: grid;
    gap: 0.8rem;
}

.school-schedule-table-wrap {
    overflow: auto;
    border: 1px solid rgba(188, 211, 235, 0.94);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
}

.school-schedule-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

.school-schedule-table th,
.school-schedule-table td {
    border-bottom: 1px solid rgba(213, 226, 240, 0.94);
    border-right: 1px solid rgba(227, 236, 245, 0.96);
    padding: 0.5rem;
    text-align: center;
    vertical-align: top;
}

.school-schedule-table thead th {
    background: rgba(240, 246, 252, 0.96);
    color: var(--ec-primary-2);
    font-size: 0.78rem;
    font-weight: 900;
}

.school-schedule-table__slot-head,
.school-schedule-table__slot {
    min-width: 180px;
    text-align: left !important;
    background: rgba(248, 251, 254, 0.98);
}

.school-schedule-table__slot strong {
    display: block;
    color: var(--ec-primary-2);
    font-size: 0.83rem;
    font-weight: 900;
}

.school-schedule-table__slot span {
    display: block;
    margin-top: 0.16rem;
    color: var(--ec-text-soft);
    font-size: 0.74rem;
}

.school-schedule-table__cell {
    min-width: 140px;
    background: rgba(255, 255, 255, 0.98);
}

.school-schedule-table__cell.is-conflict {
    background: rgba(255, 242, 242, 0.98);
}

.school-schedule-entry {
    display: grid;
    gap: 0.1rem;
    padding: 0.38rem 0.42rem;
    border: 1px solid rgba(184, 205, 228, 0.9);
    border-radius: 12px;
    background: rgba(247, 250, 253, 0.98);
    text-align: left;
}

.school-schedule-entry + .school-schedule-entry {
    margin-top: 0.3rem;
}

.school-schedule-entry strong {
    color: var(--ec-primary-2);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
}

.school-schedule-entry span {
    color: var(--ec-text-soft);
    font-size: 0.7rem;
    line-height: 1.25;
}

.school-schedule-entry__action {
    justify-self: start;
    margin-top: 0.15rem;
    appearance: none;
    border: 1px solid rgba(177, 202, 229, 0.82);
    border-radius: 999px;
    padding: 0.24rem 0.55rem;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(237, 245, 253, 0.98) 100%);
    color: #355b82;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.school-schedule-entry__action:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(25, 64, 103, 0.08);
}

.school-schedule-entry__action:focus-visible {
    outline: none;
    border-color: rgba(13, 94, 150, 0.52);
    box-shadow: 0 0 0 4px rgba(13, 94, 150, 0.14);
}

.school-schedule-entry.is-conflict {
    border-color: rgba(212, 92, 92, 0.55);
    background: rgba(255, 245, 245, 0.98);
}

.school-schedule-cell__empty,
.school-schedule-empty {
    color: var(--ec-text-soft);
    font-size: 0.82rem;
}

.school-schedule-cell__empty-wrap {
    display: grid;
    gap: 0.35rem;
    justify-items: center;
    align-content: center;
    min-height: 68px;
}

.school-schedule-cell__action {
    appearance: none;
    border: 1px solid rgba(177, 202, 229, 0.82);
    border-radius: 999px;
    padding: 0.24rem 0.55rem;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(237, 245, 253, 0.98) 100%);
    color: #355b82;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.school-schedule-cell__action:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 14px rgba(25, 64, 103, 0.08);
}

.school-schedule-cell__action:focus-visible {
    outline: none;
    border-color: rgba(13, 94, 150, 0.52);
    box-shadow: 0 0 0 4px rgba(13, 94, 150, 0.14);
}

.school-schedule-empty {
    padding: 1rem 1.1rem;
    border: 1px dashed rgba(188, 211, 235, 0.96);
    border-radius: 18px;
    background: rgba(251, 253, 255, 0.98);
    display: grid;
    gap: 0.4rem;
}

.school-schedule-empty__title {
    color: var(--ec-primary-2);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.35;
}

.school-schedule-empty__copy {
    color: var(--ec-text-soft);
    font-size: 0.82rem;
    line-height: 1.55;
}

.school-schedule-empty__actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
}

.school-schedule-empty.is-soft {
    padding: 0.85rem 0;
    border: 0;
    background: transparent;
}

.school-schedule-conflicts-list {
    display: grid;
    gap: 0.75rem;
}

.school-schedule-conflict {
    display: grid;
    gap: 0.14rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(232, 179, 179, 0.85);
    border-radius: 16px;
    background: rgba(255, 247, 247, 0.98);
}

.school-schedule-conflict strong {
    color: #9f2f2f;
    font-size: 0.85rem;
}

.school-schedule-conflict span,
.school-schedule-conflict__meta {
    color: #7a5960;
    font-size: 0.76rem;
    line-height: 1.35;
}

@media (max-width: 720px) {
    .school-schedule-toolbar__filters {
        grid-template-columns: 1fr;
    }

    .school-schedule-table {
        min-width: 720px;
    }
}

.super-admin-form__check {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.3rem 0;
    color: var(--ec-primary-2);
    font-weight: 800;
}

.super-admin-form__check input[type="checkbox"] {
    inline-size: 1.05rem;
    block-size: 1.05rem;
    margin: 0;
    accent-color: var(--ec-primary-2);
    flex-shrink: 0;
}

.super-admin-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.super-admin-form__status {
    min-height: 20px;
    color: var(--ec-text-soft);
    font-size: 0.82rem;
    font-weight: 800;
}

.super-admin-form__status.is-error {
    color: #a33232;
}

.super-admin-form__status.is-success {
    color: #2f6b4d;
}

.super-admin-form__submit {
    min-height: 44px;
    padding: 0.8rem 1.05rem;
    border: 1px solid rgba(13, 94, 150, 0.26);
    border-radius: 16px;
    background: linear-gradient(180deg, #1772b1 0%, #0d5e96 100%);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(13, 94, 150, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

.super-admin-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(13, 94, 150, 0.22);
}

.super-admin-form__submit:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring), 0 16px 28px rgba(13, 94, 150, 0.18);
}

.super-admin-form__submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

.button-primary,
.button-secondary {
    min-height: 40px;
    padding: 0.72rem 1rem;
    border-radius: 14px;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button-primary {
    border: 1px solid rgba(13, 94, 150, 0.3);
    background: linear-gradient(180deg, #1772b1 0%, #0d5e96 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(13, 94, 150, 0.18);
}

.button-secondary {
    border: 1px solid rgba(31, 41, 55, 0.14);
    background: rgba(255, 255, 255, 0.92);
    color: #1f2937;
}

.button-primary:hover,
.button-secondary:hover {
    transform: translateY(-1px);
}

.teacher-academic-shell {
    gap: 1rem;
}

.teacher-academic-view .shell-hero {
    padding: 0.9rem 1rem;
    border-radius: 20px;
    border-color: rgba(186, 206, 228, 0.72);
    box-shadow: 0 10px 22px rgba(25, 64, 103, 0.06);
}

.teacher-academic-view .shell-hero__title {
    margin: 0.22rem 0 0.18rem;
    font-size: clamp(1.28rem, 2vw, 1.8rem);
}

.teacher-academic-view .shell-hero__copy {
    font-size: 0.86rem;
    line-height: 1.45;
    max-width: none;
}

.teacher-academic-view .shell-card-grid {
    gap: 0.8rem;
}

.teacher-academic-view .shell-card {
    min-height: auto;
    padding: 0.95rem 1rem;
    border-radius: 22px;
}

.teacher-academic-view__summary .shell-card {
    padding: 0.78rem 0.86rem;
    border-radius: 18px;
    border-color: rgba(186, 206, 228, 0.68);
    box-shadow: 0 8px 18px rgba(25, 64, 103, 0.05);
}

.teacher-academic-view__summary .shell-card::before {
    left: 0.82rem;
    right: 0.82rem;
    height: 2px;
}

.teacher-academic-view .shell-card__title {
    font-size: 0.94rem;
}

.teacher-academic-view .shell-card__copy {
    font-size: 0.78rem;
    line-height: 1.45;
}

.teacher-academic-view__summary .shell-card__title {
    font-size: 0.86rem;
}

.teacher-academic-view__summary .shell-card__copy {
    font-size: 0.74rem;
    line-height: 1.38;
}

.teacher-academic-view .workspace-shell__panel {
    padding: 1.06rem 1.14rem 1rem;
    border-radius: 22px;
}

.teacher-academic-view .workspace-shell__title {
    font-size: 1.02rem;
}

.teacher-academic-panel__title {
    font-weight: 600;
}

.teacher-academic-view .workspace-shell__copy {
    font-size: 0.82rem;
    line-height: 1.5;
}

.teacher-academic-panel--sheet {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.teacher-academic-panel--sheet .workspace-shell__eyebrow {
    margin-bottom: 0.18rem;
}

.teacher-academic-panel--sheet .workspace-shell__copy {
    margin-bottom: 0.55rem;
}

.teacher-academic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.teacher-academic-pill {
    min-width: 220px;
    padding: 0.82rem 0.9rem;
    border: 1px solid rgba(13, 94, 150, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    display: grid;
    gap: 0.28rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.teacher-academic-pill strong {
    font-size: 0.92rem;
    color: var(--ec-text);
}

.teacher-academic-pill span {
    font-size: 0.8rem;
    color: var(--ec-text-soft);
}

.teacher-academic-pill.is-active {
    border-color: rgba(13, 94, 150, 0.22);
    box-shadow: 0 9px 18px rgba(13, 94, 150, 0.08);
    transform: translateY(-1px);
}

.teacher-academic-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0 0.2rem;
}

.teacher-academic-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.teacher-academic-select {
    display: grid;
    gap: 0.35rem;
    --ec-field-accent: var(--ec-ui-primary);
    --ec-field-accent-soft: var(--ec-ui-primary-soft);
}

.teacher-academic-select__label {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--ec-text);
}

.teacher-academic-select__label::before,
.school-schedule-filter .super-admin-form__label::before {
    content: "";
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--ec-field-accent) 0%, rgba(255, 255, 255, 0.92) 100%);
    box-shadow: 0 0 0 4px var(--ec-field-accent-soft);
    flex: 0 0 auto;
}

.teacher-academic-select--primary,
.school-schedule-filter--primary {
    --ec-field-accent: var(--ec-ui-primary);
    --ec-field-accent-soft: var(--ec-ui-primary-soft);
}

.teacher-academic-select--focus,
.school-schedule-filter--focus {
    --ec-field-accent: var(--ec-ui-focus);
    --ec-field-accent-soft: var(--ec-ui-focus-soft);
}

.teacher-academic-select--warm,
.school-schedule-filter--warm {
    --ec-field-accent: var(--ec-ui-warm);
    --ec-field-accent-soft: var(--ec-ui-warm-soft);
}

.teacher-academic-select--ok,
.school-schedule-filter--ok {
    --ec-field-accent: var(--ec-ui-ok);
    --ec-field-accent-soft: var(--ec-ui-ok-soft);
}

.teacher-academic-select--risk,
.school-schedule-filter--risk {
    --ec-field-accent: var(--ec-ui-risk);
    --ec-field-accent-soft: var(--ec-ui-risk-soft);
}

.teacher-academic-select--neutral,
.school-schedule-filter--neutral {
    --ec-field-accent: var(--ec-ui-neutral);
    --ec-field-accent-soft: var(--ec-ui-neutral-soft);
}

.school-schedule-filter .super-admin-form__label {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
}

.teacher-academic-period-tip {
    margin-top: 0.7rem;
    padding: 0.72rem 0.88rem;
    border-radius: 14px;
    border: 1px solid rgba(186, 206, 228, 0.76);
    background: rgba(247, 250, 253, 0.96);
    color: var(--ec-text-soft);
    font-size: 0.8rem;
    line-height: 1.45;
}

.teacher-academic-period-tip.is-readonly {
    border-color: rgba(243, 173, 61, 0.34);
    background: rgba(255, 248, 236, 0.96);
    color: #8b5a11;
}

.teacher-academic-toolbar > div {
    display: grid;
    gap: 0.25rem;
}

.teacher-academic-toolbar span {
    color: var(--ec-text-soft);
    font-size: 0.84rem;
}

.teacher-academic-activities .shell-card.is-selected {
    border-color: rgba(13, 94, 150, 0.36);
    box-shadow: 0 14px 26px rgba(13, 94, 150, 0.12);
}

.teacher-academic-activities .shell-card.is-archived {
    border-color: rgba(154, 168, 184, 0.52);
    background: linear-gradient(180deg, rgba(249, 250, 252, 0.99) 0%, rgba(241, 245, 249, 0.98) 100%);
    box-shadow: 0 10px 22px rgba(81, 101, 124, 0.08);
}

.teacher-academic-activity-list {
    display: grid;
    gap: 0.55rem;
}

.teacher-academic-activity-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.78rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(186, 206, 228, 0.86);
    background: rgba(255, 255, 255, 0.96);
}

.teacher-academic-activity-row.is-actionable {
    cursor: pointer;
}

.teacher-academic-activity-row.is-actionable:hover {
    border-color: rgba(13, 94, 150, 0.22);
    box-shadow: 0 8px 16px rgba(13, 94, 150, 0.06);
}

.teacher-academic-activity-row.is-selected {
    border-color: rgba(13, 94, 150, 0.3);
    box-shadow: 0 10px 20px rgba(13, 94, 150, 0.08);
}

.teacher-academic-activity-row.is-reorderable {
    user-select: none;
}

.teacher-academic-activity-row.is-dragging {
    opacity: 0.62;
    box-shadow: 0 14px 24px rgba(13, 94, 150, 0.1);
}

.teacher-academic-activity-row.is-drop-before {
    box-shadow: inset 0 3px 0 rgba(13, 94, 150, 0.38);
}

.teacher-academic-activity-row.is-drop-after {
    box-shadow: inset 0 -3px 0 rgba(13, 94, 150, 0.38);
}

.teacher-academic-activity-row.is-archived {
    opacity: 0.78;
    background: rgba(247, 249, 252, 0.95);
}

.teacher-academic-activity-row.is-empty {
    display: block;
    color: var(--ec-text-soft);
}

.teacher-academic-activity-row__main {
    display: grid;
    gap: 0.16rem;
    min-width: 0;
}

.teacher-academic-activity-row__handle {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 12px;
    border: 1px solid rgba(186, 206, 228, 0.72);
    background: rgba(244, 249, 255, 0.96);
    display: grid;
    grid-template-columns: repeat(2, 4px);
    gap: 0.18rem 0.22rem;
    align-content: center;
    justify-content: center;
    cursor: grab;
    padding: 0;
}

.teacher-academic-activity-row__handle span {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: rgba(13, 94, 150, 0.46);
}

.teacher-academic-activity-row__handle:active {
    cursor: grabbing;
}

.teacher-academic-activity-row__handle:hover,
.teacher-academic-activity-row__handle:focus-visible {
    border-color: rgba(13, 94, 150, 0.26);
    background: rgba(249, 252, 255, 0.98);
    outline: none;
}

.teacher-academic-activity-row__main strong {
    font-size: 0.88rem;
    color: var(--ec-text);
    line-height: 1.15;
}

.teacher-academic-activity-row__main span {
    font-size: 0.78rem;
    color: var(--ec-text-soft);
    line-height: 1.4;
}

.teacher-academic-activity-row__actions {
    display: flex;
    align-items: center;
    gap: 0.48rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.teacher-academic-editor,
.teacher-note-detail {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(169, 198, 228, 0.46);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.96) 0%, rgba(238, 245, 252, 0.96) 100%);
    display: grid;
    gap: 0.8rem;
}

.teacher-academic-editor h3,
.teacher-note-detail__header strong {
    margin: 0;
    color: var(--ec-text);
}

.teacher-academic-editor__summary {
    display: grid;
    gap: 0.18rem;
    padding: 0.78rem 0.86rem;
    border-radius: 14px;
    border: 1px solid rgba(186, 206, 228, 0.78);
    background: rgba(248, 251, 255, 0.96);
}

.teacher-academic-editor__summary strong {
    color: var(--ec-primary-2);
    font-size: 0.9rem;
    font-weight: 900;
}

.teacher-academic-editor__summary span {
    color: var(--ec-text-soft);
    font-size: 0.8rem;
    line-height: 1.45;
}

.teacher-academic-editor__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
}

.teacher-academic-editor label,
.teacher-note-detail label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--ec-text-soft);
}

.teacher-academic-editor input,
.teacher-academic-editor select,
.teacher-academic-editor textarea,
.teacher-note-detail textarea,
.teacher-note-input {
    width: 100%;
    border: 1px solid var(--ec-ui-field-rest-border);
    border-radius: 12px;
    background: var(--ec-ui-field-rest-bg);
    padding: 0.72rem 0.82rem;
    font-size: 0.88rem;
    color: var(--ec-text);
    box-shadow: var(--ec-ui-field-rest-shadow);
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease,
        color 0.16s ease;
}

.teacher-academic-editor input:focus,
.teacher-academic-editor select:focus,
.teacher-academic-editor textarea:focus,
.teacher-note-detail textarea:focus,
.teacher-note-input:focus {
    outline: none;
    border-color: var(--ec-ui-field-focus-border);
    background: var(--ec-ui-field-focus-bg);
    box-shadow: var(--ec-ui-field-focus-shadow);
}

.teacher-academic-editor textarea,
.teacher-note-detail textarea {
    min-height: 100px;
    resize: vertical;
    overflow-y: hidden;
}

.teacher-academic-checkbox {
    display: flex !important;
    align-items: center;
    gap: 0.55rem;
}

.teacher-planner-shell {
    gap: 1rem;
}

.teacher-planner-view .workspace-shell__panel {
    padding: 1.06rem 1.14rem 1rem;
    border-radius: 22px;
}

.teacher-planner-panel {
    display: grid;
    gap: 0.9rem;
}

.teacher-planner-panel--toolbar {
    gap: 1rem;
}

.teacher-planner-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.teacher-planner-head__copy {
    display: grid;
    gap: 0.25rem;
}

.teacher-planner-head__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: rgba(13, 94, 150, 0.08);
    color: var(--ec-primary-2);
    font-size: 0.78rem;
    font-weight: 900;
}

.teacher-planner-feedback {
    margin: 0 0 1rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    font-size: 0.94rem;
    border: 1px solid rgba(14, 116, 144, 0.15);
    background: rgba(237, 248, 251, 0.9);
    color: #0f3b4b;
}

.teacher-planner-feedback.is-success {
    background: rgba(232, 248, 242, 0.95);
    border-color: rgba(34, 136, 104, 0.18);
    color: #13513f;
}

.teacher-planner-feedback.is-info {
    background: rgba(234, 244, 255, 0.94);
    border-color: rgba(59, 130, 246, 0.18);
    color: #18406c;
}

.teacher-planner-form__assistant + .teacher-planner-feedback {
    margin-top: -0.2rem;
}

.teacher-planner-form,
.teacher-planner-form--modal {
    display: grid;
    gap: 1rem;
}

.teacher-planner-form__assistant {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: center;
    padding: 0.8rem 0.92rem;
    border-radius: 18px;
    border: 1px solid var(--ec-ui-panel-border);
    background: rgba(250, 252, 255, 0.98);
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.04);
}

.teacher-planner-form__assistant-copy {
    display: grid;
    gap: 0.22rem;
}

.teacher-planner-form__assistant-copy strong {
    color: var(--ec-primary-2);
    font-size: 0.9rem;
    font-weight: 900;
}

.teacher-planner-form__assistant-copy span {
    color: var(--ec-text-soft);
    font-size: 0.82rem;
    line-height: 1.45;
}

.teacher-planner-form__assistant-button {
    white-space: nowrap;
}

@media (max-width: 780px) {
    .teacher-planner-form__assistant {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .teacher-planner-form__assistant-button {
        width: 100%;
    }
}

.teacher-planner-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
}

.teacher-planner-selector-grid--compact .teacher-academic-select {
    min-width: 0;
}

.teacher-planner-selector-grid label {
    display: grid;
    gap: 0.4rem;
    color: #334155;
    font-size: 0.92rem;
}

.teacher-planner-selector-grid select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.72rem 0.85rem;
    font: inherit;
    color: #0f172a;
}

.teacher-planner-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.teacher-planner-stat-strip--compact {
    margin-top: 0.15rem;
}

.teacher-planner-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.38rem;
    padding: 0.5rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(186, 206, 228, 0.52);
    background: rgba(248, 251, 255, 0.96);
    min-width: 0;
}

.teacher-planner-stat strong {
    color: var(--ec-primary-2);
    font-size: 0.88rem;
    font-weight: 900;
}

.teacher-planner-stat span {
    color: var(--ec-text-soft);
    font-size: 0.74rem;
    line-height: 1.2;
}

.teacher-planner-toolbar-actions {
    align-items: center;
}

.teacher-planner-summary-list {
    display: grid;
    gap: 0.65rem;
}

.teacher-planner-summary-row {
    display: grid;
    grid-template-columns: minmax(140px, 180px) minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(219, 228, 239, 0.78);
}

.teacher-planner-summary-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.teacher-planner-summary-row strong {
    color: var(--ec-primary-2);
    font-size: 0.82rem;
    font-weight: 900;
}

.teacher-planner-summary-row span {
    color: var(--ec-text);
    font-size: 0.85rem;
    line-height: 1.5;
}

.teacher-planner-text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.teacher-planner-text-card {
    display: grid;
    gap: 0.35rem;
    padding: 0.85rem 0.92rem;
    border-radius: 16px;
    border: 1px solid rgba(186, 206, 228, 0.52);
    background: rgba(250, 252, 255, 0.96);
}

.teacher-planner-text-card strong {
    color: var(--ec-primary-2);
    font-size: 0.8rem;
    font-weight: 900;
}

.teacher-planner-text-card p {
    margin: 0;
    color: var(--ec-text-soft);
    font-size: 0.82rem;
    line-height: 1.55;
}

.teacher-planner-form__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.teacher-planner-form label,
.teacher-planner-component-card label {
    display: grid;
    gap: 0.4rem;
    font-size: 0.92rem;
    color: #334155;
}

.teacher-planner-form input,
.teacher-planner-form select,
.teacher-planner-form textarea,
.teacher-planner-component-card textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--ec-ui-field-rest-border);
    background: var(--ec-ui-field-rest-bg);
    padding: 0.72rem 0.85rem;
    font: inherit;
    color: #0f172a;
    box-shadow: var(--ec-ui-field-rest-shadow);
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        box-shadow 0.16s ease,
        color 0.16s ease;
}

.teacher-planner-form input:focus,
.teacher-planner-form select:focus,
.teacher-planner-form textarea:focus,
.teacher-planner-component-card textarea:focus {
    outline: none;
    border-color: var(--ec-ui-field-focus-border);
    background: var(--ec-ui-field-focus-bg);
    box-shadow: var(--ec-ui-field-focus-shadow);
}

.teacher-planner-form textarea,
.teacher-planner-component-card textarea {
    min-height: 88px;
    resize: vertical;
    overflow-y: hidden;
}

.teacher-planner-ai-panel {
    display: grid;
    gap: 0.72rem;
    padding: 0.8rem 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(169, 198, 228, 0.42);
    background: linear-gradient(180deg, rgba(241, 248, 255, 0.98) 0%, rgba(249, 252, 255, 0.98) 100%);
    box-shadow: inset 0 0 0 1px rgba(233, 243, 255, 0.78);
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.teacher-planner-ai-panel.is-suggested {
    border-color: rgba(223, 191, 113, 0.46);
    background: linear-gradient(180deg, rgba(255, 248, 223, 0.98) 0%, rgba(255, 252, 241, 0.98) 100%);
    box-shadow: inset 0 0 0 1px rgba(247, 228, 164, 0.7);
}

.teacher-planner-ai-panel.is-error {
    border-color: rgba(226, 176, 186, 0.42);
    background: linear-gradient(180deg, rgba(255, 243, 246, 0.98) 0%, rgba(255, 249, 250, 0.98) 100%);
}

.teacher-planner-ai-panel__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: start;
}

.teacher-planner-ai-panel__copy {
    display: grid;
    gap: 0.18rem;
}

.teacher-planner-ai-panel__copy strong {
    color: var(--ec-primary-2);
    font-size: 0.89rem;
    font-weight: 900;
}

.teacher-planner-ai-panel__copy span {
    color: var(--ec-text-soft);
    font-size: 0.8rem;
    line-height: 1.45;
}

.teacher-planner-ai-panel__button {
    white-space: nowrap;
}

.teacher-planner-ai-panel__status {
    padding: 0.52rem 0.68rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(178, 198, 219, 0.38);
    color: #49627b;
    font-size: 0.79rem;
    line-height: 1.45;
}

.teacher-planner-ai-panel__list {
    display: grid;
    gap: 0.62rem;
}

.teacher-planner-ai-panel__empty {
    padding: 0.72rem 0.8rem;
    border-radius: 14px;
    border: 1px dashed rgba(176, 198, 221, 0.48);
    background: rgba(255, 255, 255, 0.68);
    color: #62788f;
    font-size: 0.8rem;
    line-height: 1.5;
}

.teacher-planner-ai-card {
    display: grid;
    gap: 0.6rem;
    padding: 0.72rem 0.8rem;
    border-radius: 16px;
    border: 1px solid rgba(179, 201, 224, 0.52);
    background: rgba(255, 255, 255, 0.78);
}

.teacher-planner-ai-card__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.teacher-planner-ai-card__head strong {
    color: #173f63;
    font-size: 0.86rem;
    font-weight: 900;
}

.teacher-planner-ai-card__apply {
    min-height: 34px;
    padding: 0.44rem 0.68rem;
}

.teacher-planner-ai-card__body {
    display: grid;
    gap: 0.55rem;
}

.teacher-planner-ai-card__field {
    display: grid;
    gap: 0.18rem;
}

.teacher-planner-ai-card__field span {
    color: #688099;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.teacher-planner-ai-card__field p {
    margin: 0;
    color: #284862;
    font-size: 0.83rem;
    line-height: 1.5;
}

@media (max-width: 780px) {
    .teacher-planner-ai-panel__head {
        grid-template-columns: 1fr;
    }
}

.teacher-planner-section {
    display: grid;
    gap: 0;
    border: 1px solid rgba(186, 206, 228, 0.78);
    border-radius: 18px;
    background: rgba(250, 252, 255, 0.96);
    overflow: hidden;
}

.teacher-planner-section summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    cursor: pointer;
    color: var(--ec-primary-2);
    font-weight: 900;
}

.teacher-planner-section summary::-webkit-details-marker {
    display: none;
}

.teacher-planner-section summary small {
    color: var(--ec-text-soft);
    font-size: 0.76rem;
    font-weight: 800;
}

.teacher-planner-section__body {
    display: grid;
    gap: 0.8rem;
    padding: 0 1rem 1rem;
}

.teacher-planner-block {
    display: grid;
    gap: 0.75rem;
}

.teacher-planner-block h3,
.teacher-planner-section__body h3 {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.teacher-planner-block p,
.teacher-planner-section__body p {
    margin: 0;
    color: #475569;
    font-size: 0.93rem;
}

.teacher-planner-search {
    display: grid;
    gap: 0.35rem;
    color: #334155;
    font-size: 0.86rem;
}

.teacher-planner-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
    gap: 0.75rem;
    align-items: end;
}

.teacher-planner-search span {
    font-weight: 800;
    color: var(--ec-primary-2);
}

.teacher-planner-search input,
.teacher-planner-search select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.98);
    padding: 0.68rem 0.8rem;
    font: inherit;
    color: #0f172a;
}

@media (max-width: 720px) {
    .teacher-planner-search-row {
        grid-template-columns: 1fr;
    }
}

.teacher-planner-chip-grid,
.teacher-planner-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.75rem;
}

.teacher-planner-chip,
.teacher-planner-week,
.teacher-planner-dba-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.88);
    padding: 0.8rem 0.9rem;
}

.teacher-planner-chip span,
.teacher-planner-week span,
.teacher-planner-dba-item span {
    display: grid;
    gap: 0.2rem;
}

.teacher-planner-chip small,
.teacher-planner-week small,
.teacher-planner-dba-item small {
    color: #64748b;
}

.teacher-planner-dba-list {
    display: grid;
    gap: 0.65rem;
    max-height: 320px;
    overflow: auto;
    padding-right: 0.2rem;
}

.teacher-planner-reference-picker {
    display: grid;
    gap: 0.8rem;
}

.teacher-planner-reference-picker__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
    justify-content: space-between;
}

.teacher-planner-reference-picker__copy {
    display: grid;
    gap: 0.16rem;
}

.teacher-planner-reference-picker__copy strong {
    color: var(--ec-primary-2);
    font-size: 0.88rem;
}

.teacher-planner-reference-picker__copy span {
    color: #64748b;
    font-size: 0.79rem;
}

.teacher-planner-reference-picker__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.72rem 0.82rem;
    border-radius: 16px;
    border: 1px dashed rgba(177, 196, 216, 0.42);
    background: rgba(248, 251, 255, 0.88);
}

.teacher-planner-reference-picker__empty {
    color: #64748b;
    font-size: 0.82rem;
}

.teacher-planner-reference-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.36rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 0.76rem;
    font-weight: 700;
}

.teacher-planner-reference-chip__scope {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.teacher-planner-reference-chip.is-base {
    border-color: rgba(37, 99, 235, 0.22);
    background: rgba(239, 246, 255, 0.98);
}

.teacher-planner-reference-chip.is-transversal {
    border-color: rgba(22, 163, 74, 0.22);
    background: rgba(240, 253, 244, 0.98);
}

.teacher-planner-reference-chip--muted {
    color: #475569;
    background: rgba(241, 245, 249, 0.96);
}

.teacher-planner-reference-picker__selection {
    display: none;
}

.teacher-planner-reference-modal__dialog {
    width: min(1080px, 100%);
    border-color: rgba(96, 165, 250, 0.16);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

.teacher-planner-reference-modal__content {
    gap: 0.95rem;
}

.teacher-planner-reference-modal__helper {
    font-size: 0.82rem;
    color: #64748b;
}

.teacher-planner-reference-modal__list {
    max-height: min(58vh, 620px);
}

.teacher-planner-reference-option {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    border-radius: 18px;
    border: 1px solid rgba(183, 202, 223, 0.36);
    background: rgba(255, 255, 255, 0.95);
    padding: 0.78rem 0.84rem;
}

.teacher-planner-reference-option.is-base {
    border-color: rgba(147, 197, 253, 0.45);
    background: rgba(248, 252, 255, 0.96);
}

.teacher-planner-reference-option.is-transversal {
    border-color: rgba(134, 239, 172, 0.45);
    background: rgba(247, 254, 250, 0.96);
}

.teacher-planner-reference-option__body {
    display: grid;
    gap: 0.32rem;
}

.teacher-planner-reference-option__body strong {
    color: #0f172a;
    font-size: 0.88rem;
}

.teacher-planner-reference-option__body small {
    color: #64748b;
    font-size: 0.76rem;
}

.teacher-planner-reference-option__scope {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    padding: 0.14rem 0.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #334155;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.teacher-planner-reference-option__detail {
    display: grid;
    gap: 0.12rem;
    color: #334155;
    font-size: 0.77rem;
}

.teacher-planner-reference-option__detail b {
    color: var(--ec-primary-2);
}

.teacher-planner-component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.85rem;
}

.teacher-planner-component-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(186, 206, 228, 0.78);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
}

.teacher-planner-component-card h4 {
    margin: 0;
    color: var(--ec-primary-2);
    font-size: 0.86rem;
    font-weight: 900;
}

.teacher-planner-usage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.65rem;
}

.teacher-planner-usage-row {
    display: grid;
    gap: 0.16rem;
    padding: 0.8rem 0.86rem;
    border-radius: 16px;
    border: 1px solid rgba(186, 206, 228, 0.78);
    background: rgba(248, 251, 255, 0.96);
}

.teacher-planner-usage-row strong {
    color: var(--ec-primary-2);
    font-size: 0.84rem;
    font-weight: 900;
}

.teacher-planner-usage-row span,
.teacher-planner-usage-row small {
    color: var(--ec-text-soft);
    line-height: 1.4;
}

.teacher-planner-usage-row span {
    font-size: 0.78rem;
}

.teacher-planner-usage-row small {
    font-size: 0.74rem;
}

.teacher-planner-list-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.teacher-planner-list-toolbar .teacher-planner-search {
    flex: 1 1 280px;
}

.teacher-planner-list-toolbar .button-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.teacher-planner-list-toolbar .button-primary svg {
    width: 1rem;
    height: 1rem;
}

.teacher-planner-activity-list {
    gap: 0.65rem;
}

.teacher-planner-activity-row {
    align-items: center;
}

.teacher-planner-inline-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(186, 206, 228, 0.86);
    background: #fff;
    color: var(--ec-primary-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.teacher-planner-inline-icon:hover {
    transform: translateY(-1px);
    border-color: rgba(13, 94, 150, 0.36);
    box-shadow: 0 10px 18px rgba(25, 64, 103, 0.08);
}

.teacher-planner-inline-icon svg {
    width: 0.95rem;
    height: 0.95rem;
}

.teacher-planner-inline-icon.is-danger {
    color: #b45309;
    border-color: rgba(245, 158, 11, 0.28);
}

.teacher-planner-empty {
    border-radius: 14px;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.96);
    border: 1px dashed rgba(148, 163, 184, 0.45);
    color: #64748b;
}

.teacher-planner-base-modal__dialog {
    width: min(1120px, calc(100vw - 2rem));
}

.teacher-planner-modal__dialog {
    width: min(980px, calc(100vw - 2rem));
}

.teacher-academic-sheet {
    display: grid;
    gap: 0.72rem;
}

.teacher-academic-sheet__header {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(182, 204, 227, 0.84);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.995) 0%, rgba(246, 249, 252, 0.99) 100%);
    box-shadow: 0 10px 22px rgba(25, 64, 103, 0.06);
}

.teacher-academic-sheet__header-main,
.teacher-academic-sheet__header-side {
    display: grid;
    gap: 0.22rem;
}

.teacher-academic-sheet__header-side {
    justify-items: end;
}

.teacher-academic-sheet__eyebrow {
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c67c12;
}

.teacher-academic-sheet__title {
    font-size: 1.05rem;
    line-height: 1.12;
    color: var(--ec-primary-2);
}

.teacher-academic-sheet__context {
    font-size: 0.82rem;
    color: var(--ec-text-soft);
}

.teacher-academic-sheet__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.42rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(13, 94, 150, 0.14);
    background: rgba(244, 249, 255, 0.96);
    color: var(--ec-primary-2);
    font-size: 0.8rem;
    font-weight: 800;
}

.teacher-academic-sheet__meta,
.teacher-note-detail__copy {
    font-size: 0.82rem;
    color: var(--ec-text-soft);
}

.teacher-academic-sheet__header .teacher-academic-sheet__meta {
    max-width: 360px;
    text-align: right;
    font-size: 0.74rem;
    line-height: 1.35;
    color: #526377;
}

.teacher-academic-sheet__table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(186, 206, 228, 0.72);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(25, 64, 103, 0.05);
}

.teacher-academic-sheet__scrollbar-shell {
    position: fixed;
    left: 0;
    bottom: 16px;
    z-index: 96;
    margin: 0;
    pointer-events: none;
    width: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.teacher-academic-sheet__scrollbar-shell.is-visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.teacher-academic-sheet__scrollbar {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    pointer-events: auto;
    border-radius: 999px;
    border: 1px solid rgba(186, 206, 228, 0.82);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 18px rgba(25, 64, 103, 0.08);
}

.teacher-academic-sheet__scrollbar-track {
    height: 1px;
}

.teacher-academic-sheet__scrollbar::-webkit-scrollbar {
    height: 11px;
}

.teacher-academic-sheet__scrollbar::-webkit-scrollbar-thumb {
    background: rgba(78, 120, 165, 0.62);
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.82);
}

.teacher-academic-sheet__scrollbar::-webkit-scrollbar-track {
    background: rgba(232, 240, 248, 0.9);
    border-radius: 999px;
}

@media (max-width: 720px) {
    .teacher-academic-sheet__scrollbar-shell {
        bottom: 10px;
    }
}

.teacher-academic-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1180px;
    table-layout: fixed;
    font-family: "Segoe UI Variable Text", "Segoe UI", Tahoma, sans-serif;
}

.teacher-academic-col--index {
    width: 34px;
}

.teacher-academic-col--student {
    width: 246px;
}

.teacher-academic-col--activity {
    width: 92px;
}

.teacher-academic-col--average,
.teacher-academic-col--final {
    width: 48px;
}

.teacher-academic-col--empty {
    width: 94px;
}

.teacher-academic-table th,
.teacher-academic-table td {
    padding: 0.34rem 0.32rem;
    border-bottom: 1px solid rgba(95, 117, 143, 0.12);
    text-align: center;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.96);
    font-size: 0.76rem;
}

.teacher-academic-table th {
    font-weight: 700;
}

.teacher-academic-table td strong,
.teacher-academic-table td span {
    display: block;
}

.teacher-academic-table td strong {
    font-weight: 700;
}

.teacher-academic-table td span {
    color: var(--ec-text-soft);
    font-size: 0.72rem;
}

.teacher-note-input {
    display: block;
    max-width: 42px;
    text-align: center;
    padding: 0.2rem 0.16rem;
    font-weight: 500;
    font-size: 0.74rem;
    border-radius: 9px;
    margin: 0 auto;
}

.teacher-note-flag {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.teacher-note-flag.is-implicit {
    background: rgba(243, 173, 61, 0.16);
    color: #8f5c08;
}

.teacher-note-flag.is-explicit {
    background: rgba(40, 168, 138, 0.16);
    color: #0f6b58;
}

.teacher-note-detail__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.teacher-academic-table--sheet thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(246, 249, 253, 0.99) 0%, rgba(238, 244, 250, 0.99) 100%);
    text-align: center;
    vertical-align: middle;
    padding-top: 0.46rem;
    padding-bottom: 0.46rem;
}

.teacher-academic-table__sticky-col {
    position: sticky;
    left: 0;
    z-index: 3;
    background: rgba(255, 255, 255, 0.98) !important;
}

.teacher-academic-table__index-col {
    width: 34px;
    min-width: 34px;
    text-align: center !important;
    font-weight: 800;
}

.teacher-academic-table__student-col {
    left: 34px;
    min-width: 238px;
    max-width: 254px;
    width: 246px;
    text-align: left !important;
}

.teacher-academic-table--sheet thead .teacher-academic-table__index-col,
.teacher-academic-table--sheet thead .teacher-academic-table__student-col {
    background: linear-gradient(180deg, rgba(66, 123, 186, 0.98) 0%, rgba(51, 104, 163, 0.99) 100%) !important;
    color: #ffffff;
}

.teacher-academic-table__component-head {
    min-width: 118px;
}

.teacher-academic-table__component-head-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
}

.teacher-academic-table__component-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ec-text);
    line-height: 1.1;
}

.teacher-academic-table__component-action,
.teacher-academic-table__activity-action {
    width: 16px;
    height: 16px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(66, 123, 186, 0.12);
    color: #427bba;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.teacher-academic-table__component-action:hover,
.teacher-academic-table__activity-action:hover {
    background: rgba(66, 123, 186, 0.2);
    color: #255d9a;
    transform: translateY(-1px);
}

.teacher-academic-table__component-action svg,
.teacher-academic-table__activity-action svg {
    width: 10px;
    height: 10px;
    display: block;
}

.teacher-academic-table__activity-action.is-danger {
    background: rgba(220, 75, 75, 0.1);
    color: #d14949;
}

.teacher-academic-table__activity-action.is-danger:hover {
    background: rgba(220, 75, 75, 0.18);
    color: #b22d2d;
}

.teacher-academic-table__component-meta,
.teacher-academic-table__activity-meta {
    font-size: 0.58rem;
    color: #5f6f82;
    line-height: 1.15;
}

.teacher-academic-table__activity-head,
.teacher-academic-table__empty-head,
.teacher-academic-table__final-head {
    min-width: 48px;
}

.teacher-academic-table__average-head {
    min-width: 48px;
    width: 48px;
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    padding-left: 0.08rem !important;
    padding-right: 0.08rem !important;
}

.teacher-academic-table__activity-name {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--ec-text);
    line-height: 1.1;
}

.teacher-academic-table__activity-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    margin-top: 0.12rem;
}

.teacher-academic-table__note-cell {
    min-width: 92px;
    text-align: center;
    border-right: 1px solid rgba(131, 150, 171, 0.5);
}

.teacher-academic-table__note-cell-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    width: 100%;
}

.teacher-academic-table__note-cell.is-open {
    background: rgba(13, 94, 150, 0.06);
}

.teacher-note-cell__actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.14rem;
    margin-top: 0;
}

.teacher-note-icon {
    width: 17px;
    height: 17px;
    border-radius: 999px;
    border: 1px solid rgba(31, 41, 55, 0.1);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ec-text-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
    font-size: 0.72rem;
    padding: 0;
    line-height: 1;
}

.teacher-note-icon:hover {
    transform: translateY(-1px);
    background: rgba(240, 245, 251, 0.96);
}

.teacher-note-icon svg {
    display: block;
    width: 11px;
    height: 11px;
}

.teacher-note-icon--star {
    color: #5ca887;
    border-color: rgba(92, 168, 135, 0.24);
    background: rgba(92, 168, 135, 0.08);
}

.teacher-note-icon--star.has-content {
    color: #2e8b67;
    border-color: rgba(46, 139, 103, 0.34);
    background: rgba(46, 139, 103, 0.16);
}

.teacher-note-icon--comment {
    color: #c89234;
    border-color: rgba(200, 146, 52, 0.24);
    background: rgba(243, 185, 86, 0.1);
}

.teacher-note-icon--comment.has-content {
    color: #b56e12;
    border-color: rgba(181, 110, 18, 0.34);
    background: rgba(243, 161, 50, 0.18);
}

.teacher-note-input.is-low {
    border-color: rgba(196, 72, 72, 0.34);
    background: rgba(255, 246, 246, 0.98);
    color: #9a2222;
}

.teacher-note-input.is-readonly {
    background: rgba(243, 246, 250, 0.98);
    color: var(--ec-text-soft);
    cursor: not-allowed;
}

.teacher-academic-average,
.teacher-academic-final {
    min-width: 48px;
    text-align: center !important;
}

.teacher-academic-average {
    min-width: 48px;
    width: 48px;
    padding-left: 0.08rem !important;
    padding-right: 0.08rem !important;
}

.teacher-academic-final,
.teacher-academic-table__final-head {
    min-width: 46px;
    width: 46px;
}

.teacher-academic-average strong,
.teacher-academic-final strong {
    font-size: 0.78rem;
    font-weight: 700;
}

.teacher-academic-average span,
.teacher-academic-final span {
    font-size: 0.62rem !important;
    line-height: 1.1;
}

.teacher-academic-average.is-low strong,
.teacher-academic-final.is-low strong {
    color: #ad2929;
}

.teacher-academic-average.is-mid strong,
.teacher-academic-final.is-mid strong {
    color: #94610a;
}

.teacher-academic-average.is-high strong,
.teacher-academic-final.is-high strong {
    color: #0f6b58;
}

.teacher-academic-table__empty-cell {
    min-width: 92px;
    text-align: center !important;
    color: var(--ec-text-soft);
    font-size: 0.76rem;
    background: rgba(248, 250, 252, 0.96) !important;
}

.teacher-academic-student {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 0.38rem;
}

.teacher-academic-student__avatar {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(166, 192, 223, 0.82);
    box-shadow: 0 4px 10px rgba(25, 64, 103, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 241, 248, 0.98) 100%);
    padding: 0;
    cursor: zoom-in;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.teacher-academic-student__avatar:hover,
.teacher-academic-student__avatar:focus-visible {
    outline: none;
    transform: translateY(-1px) scale(1.04);
    border-color: rgba(13, 94, 150, 0.34);
    box-shadow: 0 8px 16px rgba(25, 64, 103, 0.14);
}

.teacher-academic-student__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.teacher-academic-student__name {
    display: grid;
    gap: 0.04rem;
    min-width: 0;
}

.teacher-academic-student strong {
    line-height: 1.08;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teacher-academic-student__surname {
    font-size: 0.73rem !important;
    line-height: 1.06;
    color: #253447 !important;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 960px) {
    .teacher-academic-table__student-col {
        min-width: 180px;
        max-width: 210px;
        width: 180px;
    }

    .teacher-academic-student strong,
    .teacher-academic-student__surname {
        white-space: normal;
    }

    .teacher-academic-table__note-cell-inner {
        display: inline-grid;
        gap: 0.14rem;
    }

    .teacher-note-cell__actions {
        justify-content: center;
    }
}

.teacher-academic-table__activity-head,
.teacher-academic-table__average-head,
.teacher-academic-table__empty-head {
    border-right: 1px solid rgba(131, 150, 171, 0.5);
}

.teacher-academic-table__component-head,
.teacher-academic-table__group-end {
    border-right: 2px solid rgba(138, 158, 181, 0.42) !important;
}

.teacher-academic-table__final-head,
.teacher-academic-final {
    border-left: 2px solid rgba(138, 158, 181, 0.42) !important;
}

.teacher-academic-table--sheet thead .teacher-academic-table__final-head {
    position: sticky;
    right: 0;
    z-index: 4;
}

.teacher-academic-final {
    position: sticky;
    right: 0;
    z-index: 2;
    background: rgba(255, 255, 255, 0.98) !important;
}

.teacher-note-modal {
    position: fixed;
    inset: 0;
    z-index: 1180;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.teacher-note-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(16, 24, 40, 0.28);
    backdrop-filter: blur(2px);
}

.teacher-note-modal__dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(88vh, 860px);
    overflow: auto;
    border-radius: 24px;
    border: 1px solid rgba(173, 194, 216, 0.42);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
    display: grid;
    gap: 1rem;
    padding: 1.3rem 1.4rem 1.4rem;
}

.teacher-note-modal__close-icon {
    margin-left: auto;
    inline-size: 2.55rem;
    block-size: 2.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(190, 209, 230, 0.5);
    background: rgba(255, 255, 255, 0.92);
    color: #475569;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.teacher-note-modal__close-icon:hover {
    border-color: rgba(96, 165, 250, 0.28);
    background: rgba(248, 250, 252, 0.98);
    color: #1e3a8a;
}

.teacher-note-modal__close-icon:focus-visible {
    outline: none;
    border-color: var(--ec-focus);
    box-shadow: 0 0 0 4px var(--ec-focus-ring);
}

.teacher-note-modal__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.teacher-note-modal__eyebrow {
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: var(--ec-primary);
    text-transform: uppercase;
}

.teacher-note-modal__title {
    margin: 0.18rem 0 0;
    font-size: 1.18rem;
    color: var(--ec-text);
}

.teacher-note-modal__meta,
.teacher-note-modal__hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--ec-text-soft);
}

.teacher-note-modal__summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.teacher-note-modal__content {
    display: grid;
    gap: 0.9rem;
}

textarea[data-ec-autosize] {
    resize: none;
    overflow: hidden;
}

.teacher-note-modal__content label {
    display: grid;
    gap: 0.36rem;
    color: var(--ec-text-soft);
    font-size: 0.82rem;
}

.teacher-note-modal__content textarea {
    width: 100%;
    min-height: 120px;
    resize: vertical;
    border: 1px solid rgba(31, 41, 55, 0.12);
    border-radius: 16px;
    background: rgba(250, 252, 255, 0.98);
    padding: 0.9rem 0.95rem;
    color: var(--ec-text);
    font-size: 0.9rem;
}

.teacher-note-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.school-setup-guide-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 240px) auto;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 1rem 1.12rem;
    border: 1px solid rgba(137, 177, 216, 0.36);
    border-radius: 24px;
    background:
        radial-gradient(circle at 8% 12%, rgba(14, 116, 144, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(240, 249, 255, 0.98), rgba(255, 251, 235, 0.92));
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.school-setup-guide-strip__eyebrow {
    display: block;
    margin-bottom: 0.18rem;
    color: #b7791f;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.school-setup-guide-strip strong {
    display: block;
    color: var(--ec-primary);
    font-size: 1.05rem;
}

.school-setup-guide-strip p {
    margin: 0.24rem 0 0;
    color: var(--ec-text-soft);
    font-size: 0.9rem;
}

.school-setup-guide-strip__progress {
    display: grid;
    gap: 0.42rem;
    color: var(--ec-primary);
    font-weight: 900;
}

.school-setup-guide-strip__progress div,
.school-setup-guide-modal__bar,
.school-setup-guide-step__bar {
    overflow: hidden;
    height: 0.46rem;
    border-radius: 999px;
    background: rgba(188, 215, 238, 0.48);
}

.school-setup-guide-strip__progress i,
.school-setup-guide-modal__bar i,
.school-setup-guide-step__bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ef4444, #f59e0b 36%, #22c55e 76%);
}

.school-setup-guide-modal__dialog {
    width: min(980px, 100%);
    gap: 1rem;
}

.school-setup-guide-modal__hero {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
    border: 1px solid rgba(173, 194, 216, 0.38);
    border-radius: 22px;
    background:
        radial-gradient(circle at 12% 22%, rgba(59, 130, 246, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(236, 253, 245, 0.82));
}

.school-setup-guide-modal__percent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.2rem;
    margin-right: 0.65rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(219, 234, 254, 0.85);
    color: var(--ec-primary);
    font-size: 1.2rem;
    font-weight: 900;
}

.school-setup-guide-modal__hero p {
    display: inline;
    margin: 0;
    color: var(--ec-text-soft);
}

.school-setup-guide-modal__next,
.school-setup-guide-step {
    border: 1px solid rgba(173, 194, 216, 0.42);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.school-setup-guide-modal__next {
    display: grid;
    gap: 0.44rem;
    padding: 0.95rem;
}

.school-setup-guide-modal__next span,
.school-setup-guide-step__action span {
    color: #b7791f;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.school-setup-guide-modal__next strong {
    color: var(--ec-primary);
    font-size: 1rem;
}

.school-setup-guide-modal__next p {
    margin: 0;
    color: var(--ec-text-soft);
}

.school-setup-guide-modal__steps {
    display: grid;
    gap: 0.72rem;
}

.school-setup-guide-step {
    display: grid;
    gap: 0.72rem;
    padding: 0.95rem;
}

.school-setup-guide-step.is-complete {
    background: linear-gradient(135deg, rgba(240, 253, 244, 0.96), rgba(255, 255, 255, 0.98));
}

.school-setup-guide-step__head,
.school-setup-guide-step__action {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
}

.school-setup-guide-step__head strong {
    color: var(--ec-primary);
}

.school-setup-guide-step__head p {
    margin: 0.22rem 0 0;
    color: var(--ec-text-soft);
    font-size: 0.86rem;
}

.school-setup-guide-step__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.school-setup-guide-step__checks span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.56rem;
    font-size: 0.76rem;
    font-weight: 800;
}

.school-setup-guide-step__checks .is-ok {
    background: rgba(220, 252, 231, 0.9);
    color: #166534;
}

.school-setup-guide-step__checks .is-pending {
    background: rgba(255, 247, 237, 0.95);
    color: #9a3412;
}

.school-setup-guide-step__action {
    align-items: center;
}

@media (max-width: 820px) {
    .school-setup-guide-strip {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .school-setup-guide-modal__dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px;
        padding: 1rem;
    }

    .school-setup-guide-step__head,
    .school-setup-guide-step__action {
        display: grid;
    }

    .school-setup-guide-step__action .super-admin-item__action,
    .school-setup-guide-modal__next .super-admin-item__action {
        width: 100%;
        justify-content: center;
    }
}

.teacher-support-shell .workspace-shell__panel {
    position: relative;
    gap: 1rem;
    border: 1px solid var(--ec-ui-panel-border);
    border-radius: 24px;
    background: var(--ec-ui-panel-surface);
    box-shadow: 0 8px 16px rgba(13, 94, 150, 0.04);
    overflow: visible;
    padding: 1.1rem 1.16rem 1rem;
}

.teacher-support-shell .workspace-shell__panel > .workspace-shell__eyebrow {
    margin-top: 0.08rem;
}

.teacher-support-shell .workspace-shell__panel::before {
    content: "";
    position: absolute;
    inset: 0.72rem 1rem auto 1rem;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(47, 116, 184, 0.32), rgba(114, 166, 218, 0.2));
}

.teacher-support-shell .workspace-shell__panel:nth-of-type(4n+2)::before {
    background: linear-gradient(90deg, rgba(55, 153, 103, 0.34), rgba(139, 202, 168, 0.22));
}

.teacher-support-shell .workspace-shell__panel:nth-of-type(4n+3)::before {
    background: linear-gradient(90deg, rgba(212, 119, 68, 0.34), rgba(239, 180, 128, 0.22));
}

.teacher-support-shell .workspace-shell__panel:nth-of-type(4n+4)::before {
    background: linear-gradient(90deg, rgba(86, 105, 198, 0.34), rgba(150, 163, 229, 0.22));
}

.teacher-support-summary .shell-card__copy strong {
    font-size: 1.15rem;
    color: var(--ec-primary-dark);
}

.teacher-support-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.95rem 0.85rem;
    align-items: end;
    margin-bottom: 0.46rem;
}

.teacher-support-list,
.teacher-support-stack {
    display: grid;
    gap: 0.9rem;
}

.teacher-support-list--compact {
    gap: 0.82rem;
}

.teacher-support-item {
    --teacher-item-accent: rgba(47, 116, 184, 0.85);
    --teacher-item-accent-soft: rgba(114, 166, 218, 0.3);
    --teacher-item-surface-top: rgba(255, 255, 255, 0.98);
    --teacher-item-surface-bottom: rgba(247, 251, 255, 0.98);
    position: relative;
    border: 1px solid rgba(173, 194, 216, 0.34);
    border-left: 2px solid var(--teacher-item-accent-soft);
    border-radius: 16px;
    background: linear-gradient(180deg, var(--teacher-item-surface-top) 0%, var(--teacher-item-surface-bottom) 100%);
    padding: 0.8rem 0.88rem;
    display: grid;
    gap: 0.5rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 5px 10px rgba(13, 94, 150, 0.03);
    overflow: hidden;
}

.teacher-support-item::before {
    content: "";
    position: absolute;
    inset: 0.62rem 0.88rem auto 0.88rem;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--teacher-item-accent), rgba(255, 255, 255, 0.18));
}

.teacher-support-item.is-latest,
.teacher-support-item.is-latest-flash {
    border-color: rgba(13, 94, 150, 0.28);
    box-shadow: 0 0 0 2px rgba(198, 226, 255, 0.7);
}

.teacher-support-item.is-active {
    border-color: rgba(13, 94, 150, 0.28);
    box-shadow: 0 0 0 2px rgba(198, 226, 255, 0.7), 0 16px 30px rgba(13, 94, 150, 0.09);
}

.teacher-support-item--student {
    --teacher-item-accent: rgba(45, 117, 191, 0.92);
    --teacher-item-accent-soft: rgba(114, 166, 218, 0.34);
    --teacher-item-surface-top: rgba(244, 249, 255, 0.99);
    --teacher-item-surface-bottom: rgba(250, 252, 255, 0.98);
    gap: 0.72rem;
}

.teacher-support-item--compact {
    --teacher-item-accent: rgba(56, 154, 103, 0.9);
    --teacher-item-accent-soft: rgba(123, 195, 157, 0.3);
    --teacher-item-surface-top: rgba(247, 252, 248, 0.99);
    --teacher-item-surface-bottom: rgba(252, 255, 253, 0.98);
    padding: 0.78rem 0.88rem;
    gap: 0.46rem;
}

.teacher-report-analysis-card {
    --teacher-item-accent: rgba(82, 103, 198, 0.92);
    --teacher-item-accent-soft: rgba(150, 163, 229, 0.28);
    --teacher-item-surface-top: rgba(246, 248, 255, 0.99);
    --teacher-item-surface-bottom: rgba(251, 252, 255, 0.98);
}

.teacher-written-tests-capture-item,
.teacher-report-batch-row {
    --teacher-item-accent: rgba(212, 119, 68, 0.92);
    --teacher-item-accent-soft: rgba(239, 180, 128, 0.3);
    --teacher-item-surface-top: rgba(255, 249, 243, 0.99);
    --teacher-item-surface-bottom: rgba(255, 252, 248, 0.98);
}

.teacher-support-list > .teacher-support-item:nth-child(4n+2),
.teacher-support-stack > .teacher-support-item:nth-child(4n+2) {
    --teacher-item-accent: rgba(56, 154, 103, 0.9);
    --teacher-item-accent-soft: rgba(123, 195, 157, 0.3);
    --teacher-item-surface-top: rgba(247, 252, 248, 0.99);
    --teacher-item-surface-bottom: rgba(252, 255, 253, 0.98);
}

.teacher-support-list > .teacher-support-item:nth-child(4n+3),
.teacher-support-stack > .teacher-support-item:nth-child(4n+3) {
    --teacher-item-accent: rgba(212, 119, 68, 0.92);
    --teacher-item-accent-soft: rgba(239, 180, 128, 0.3);
    --teacher-item-surface-top: rgba(255, 249, 243, 0.99);
    --teacher-item-surface-bottom: rgba(255, 252, 248, 0.98);
}

.teacher-support-list > .teacher-support-item:nth-child(4n+4),
.teacher-support-stack > .teacher-support-item:nth-child(4n+4) {
    --teacher-item-accent: rgba(82, 103, 198, 0.92);
    --teacher-item-accent-soft: rgba(150, 163, 229, 0.28);
    --teacher-item-surface-top: rgba(246, 248, 255, 0.99);
    --teacher-item-surface-bottom: rgba(251, 252, 255, 0.98);
}

.teacher-support-list > .teacher-report-analysis-card,
.teacher-support-stack > .teacher-report-analysis-card {
    --teacher-item-accent: rgba(82, 103, 198, 0.92);
    --teacher-item-accent-soft: rgba(150, 163, 229, 0.28);
    --teacher-item-surface-top: rgba(246, 248, 255, 0.99);
    --teacher-item-surface-bottom: rgba(251, 252, 255, 0.98);
}

.teacher-support-list > .teacher-written-tests-capture-item,
.teacher-support-stack > .teacher-written-tests-capture-item,
.teacher-support-list > .teacher-report-batch-row,
.teacher-support-stack > .teacher-report-batch-row {
    --teacher-item-accent: rgba(212, 119, 68, 0.92);
    --teacher-item-accent-soft: rgba(239, 180, 128, 0.3);
    --teacher-item-surface-top: rgba(255, 249, 243, 0.99);
    --teacher-item-surface-bottom: rgba(255, 252, 248, 0.98);
}

.teacher-support-item--compact .teacher-observer-detail-list {
    margin-top: 0.15rem;
}

.teacher-support-item__student {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.teacher-support-item__student img {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(13, 94, 150, 0.14);
    background: #fff;
}

.teacher-support-item__student-copy {
    display: grid;
    gap: 0.14rem;
}

.teacher-support-item__student-copy strong {
    color: var(--ec-primary-dark);
    font-size: 0.96rem;
}

.teacher-support-item__student-copy span {
    color: rgba(57, 79, 104, 0.92);
    font-size: 0.82rem;
}

.teacher-support-item__head {
    display: flex;
    justify-content: space-between;
    gap: 0.9rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.teacher-support-item__head strong {
    color: var(--ec-primary-dark);
    font-size: 0.9rem;
    font-weight: 800;
}

.teacher-support-item__head span,
.teacher-support-item__meta span {
    color: rgba(57, 79, 104, 0.92);
    font-size: 0.79rem;
}

.teacher-support-item__meta {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.teacher-support-item__meta span {
    border: 1px solid rgba(174, 194, 216, 0.34);
    background: rgba(237, 245, 255, 0.92);
    border-radius: 999px;
    padding: 0.18rem 0.48rem;
    box-shadow: inset 2px 0 0 var(--teacher-item-accent-soft);
}

.teacher-support-item__copy {
    color: rgba(37, 56, 76, 0.94);
    font-size: 0.87rem;
    line-height: 1.46;
}

.teacher-support-item__copy--soft {
    color: var(--ec-text-soft);
    font-size: 0.74rem;
}

.teacher-support-item--clickable {
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.teacher-support-item--clickable:hover,
.teacher-support-item--clickable:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(13, 94, 150, 0.24);
    box-shadow: 0 14px 28px rgba(13, 94, 150, 0.08);
    outline: none;
}

.teacher-support-empty {
    border: 1px dashed rgba(13, 94, 150, 0.2);
    border-left: 4px solid rgba(114, 166, 218, 0.34);
    border-radius: 18px;
    background: rgba(247, 251, 255, 0.94);
    color: rgba(71, 92, 115, 0.9);
    padding: 1rem 1.1rem;
    margin-top: 0.42rem;
}

.teacher-support-empty--compact {
    padding: 0.8rem 0.95rem;
    font-size: 0.88rem;
}

.workspace-shell__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.72rem;
    align-items: center;
    margin-top: 0.42rem;
    margin-bottom: 0.18rem;
}

.teacher-report-workflow__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.72rem;
}

.teacher-report-workflow__step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.12rem 0.56rem;
    align-items: center;
    text-align: left;
    border: 1px solid rgba(173, 194, 216, 0.42);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(255, 255, 255, 0.98));
    color: var(--ec-primary-dark);
    padding: 0.72rem 0.78rem;
    box-shadow: 0 7px 16px rgba(13, 94, 150, 0.04);
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.teacher-report-workflow__step span {
    grid-row: span 2;
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    background: rgba(226, 241, 255, 0.96);
    border: 1px solid rgba(13, 94, 150, 0.12);
}

.teacher-report-workflow__step strong {
    font-size: 0.88rem;
}

.teacher-report-workflow__step small {
    color: rgba(57, 79, 104, 0.82);
    font-weight: 700;
}

.teacher-report-workflow__step:hover,
.teacher-report-workflow__step:focus-visible,
.teacher-report-workflow__step.is-active {
    transform: translateY(-1px);
    border-color: rgba(13, 94, 150, 0.26);
    background: linear-gradient(180deg, rgba(237, 247, 255, 0.99), rgba(250, 253, 255, 0.99));
    box-shadow: 0 12px 24px rgba(13, 94, 150, 0.08);
    outline: none;
}

.teacher-report-workflow__step.is-active span {
    background: rgba(255, 244, 208, 0.98);
    border-color: rgba(225, 161, 44, 0.28);
}

.teacher-report-batch-history {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.3rem;
}

.teacher-report-batch-summary {
    margin-top: 0.18rem;
}

.teacher-report-batch-row__main {
    gap: 0.55rem;
}

.teacher-support-form {
    display: grid;
    gap: 1rem;
}

.teacher-support-form label {
    display: grid;
    gap: 0.45rem;
}

.teacher-support-form label > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    font-weight: 800;
    color: #214a71;
}

.teacher-support-form label > span:first-child::before {
    content: "";
    width: 0.68rem;
    height: 0.68rem;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--ec-ui-primary) 0%, rgba(255, 255, 255, 0.9) 100%);
    box-shadow: 0 0 0 4px rgba(47, 116, 184, 0.12);
    flex: 0 0 auto;
}

.teacher-support-form input,
.teacher-support-form select,
.teacher-support-form textarea {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--ec-ui-field-rest-border);
    background: var(--ec-ui-field-rest-bg);
    padding: 0.72rem 0.85rem;
    color: var(--ec-text);
    font: inherit;
    box-shadow: var(--ec-ui-field-rest-shadow);
}

.teacher-support-form input:focus,
.teacher-support-form select:focus,
.teacher-support-form textarea:focus {
    border-color: var(--ec-ui-field-focus-border);
    background: var(--ec-ui-field-focus-bg);
    box-shadow: var(--ec-ui-field-focus-shadow);
    outline: none;
}

.teacher-support-form textarea {
    min-height: 110px;
    resize: vertical;
}

.teacher-report-analysis-card {
    gap: 1rem;
}

.teacher-report-analysis-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.9rem;
    align-items: stretch;
}

.teacher-report-analysis-grid label:last-child:nth-child(odd) {
    grid-column: span 2;
}

.teacher-report-analysis-field {
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 0.45rem;
    min-height: 100%;
    border: 1px solid rgba(13, 94, 150, 0.13);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(251, 253, 255, 0.99), rgba(245, 249, 255, 0.98));
    padding: 0.9rem 0.95rem 0.95rem;
    box-shadow: 0 14px 28px rgba(13, 94, 150, 0.05);
    overflow: hidden;
}

.teacher-report-analysis-field::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: rgba(61, 125, 194, 0.55);
}

.teacher-report-analysis-field__title {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    width: fit-content;
    margin: 0;
    color: #153f65;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.3;
    padding: 0.24rem 0.62rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(13, 94, 150, 0.08);
}

.teacher-report-analysis-field__title::before {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.88;
    flex: 0 0 auto;
}

.teacher-report-analysis-field__hint {
    display: block;
    min-height: 2.45em;
    color: rgba(77, 101, 125, 0.94);
    font-size: 0.75rem;
    line-height: 1.45;
    padding: 0.42rem 0.55rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px dashed rgba(13, 94, 150, 0.12);
}

.teacher-report-analysis-field__control {
    align-self: stretch;
    min-height: 132px;
    border-radius: 14px;
    border-color: rgba(13, 94, 150, 0.12);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    line-height: 1.62;
}

.teacher-report-analysis-field__control--input {
    min-height: auto;
}

.teacher-report-analysis-field--summary {
    background: linear-gradient(180deg, rgba(240, 247, 255, 0.99), rgba(247, 251, 255, 0.98));
}

.teacher-report-analysis-field--summary::before,
.teacher-report-analysis-field--academic::before {
    background: linear-gradient(90deg, rgba(45, 117, 191, 0.32), rgba(114, 166, 218, 0.22));
}

.teacher-report-analysis-field--signals {
    background: linear-gradient(180deg, rgba(255, 247, 240, 0.99), rgba(255, 251, 247, 0.98));
}

.teacher-report-analysis-field--signals::before,
.teacher-report-analysis-field--alerts::before {
    background: linear-gradient(90deg, rgba(213, 113, 69, 0.34), rgba(234, 165, 118, 0.24));
}

.teacher-report-analysis-field--family {
    background: linear-gradient(180deg, rgba(247, 252, 241, 0.99), rgba(251, 255, 248, 0.98));
}

.teacher-report-analysis-field--family::before,
.teacher-report-analysis-field--strengths::before {
    background: linear-gradient(90deg, rgba(56, 154, 103, 0.34), rgba(123, 195, 157, 0.22));
}

.teacher-report-analysis-field--guidance {
    background: linear-gradient(180deg, rgba(246, 248, 255, 0.99), rgba(250, 252, 255, 0.98));
}

.teacher-report-analysis-field--guidance::before,
.teacher-report-analysis-field--focus::before,
.teacher-report-analysis-field--recommendations::before {
    background: linear-gradient(90deg, rgba(82, 103, 198, 0.34), rgba(131, 150, 224, 0.24));
}

.teacher-report-analysis-field--risk {
    background: linear-gradient(180deg, rgba(255, 249, 236, 0.99), rgba(255, 252, 244, 0.98));
}

.teacher-report-analysis-field--risk::before {
    background: linear-gradient(90deg, rgba(225, 161, 44, 0.34), rgba(243, 196, 99, 0.24));
}

.teacher-report-analysis-field--strengths,
.teacher-report-analysis-field--recommendations,
.teacher-report-analysis-field--alerts {
    grid-column: span 1;
}

.teacher-report-batch-summary,
.teacher-report-batch-row__status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.teacher-support-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border-radius: 999px;
    padding: 0.24rem 0.54rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid rgba(13, 94, 150, 0.1);
    background: rgba(241, 247, 253, 0.96);
    color: rgba(37, 56, 76, 0.92);
}

.teacher-support-chip.is-ok {
    background: rgba(226, 248, 236, 0.96);
    border-color: rgba(47, 151, 91, 0.22);
    color: #1e6b42;
}

.teacher-support-chip.is-primary {
    background: rgba(229, 241, 255, 0.96);
    border-color: rgba(13, 94, 150, 0.22);
    color: #0e5f97;
}

.teacher-support-chip.is-focus {
    background: rgba(255, 243, 222, 0.98);
    border-color: rgba(228, 165, 44, 0.28);
    color: #9b6407;
}

.teacher-support-chip.is-warm {
    background: rgba(255, 234, 229, 0.98);
    border-color: rgba(205, 107, 78, 0.28);
    color: #995039;
}

.teacher-support-chip.is-neutral {
    background: rgba(244, 247, 250, 0.96);
    border-color: rgba(132, 154, 178, 0.22);
    color: rgba(69, 88, 111, 0.95);
}

.teacher-report-batch-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
    align-items: start;
}

.teacher-report-batch-row__toggle {
    display: grid;
    justify-items: center;
    gap: 0.35rem;
    color: rgba(57, 79, 104, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
}

.teacher-report-batch-row__toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--ec-primary);
}

.teacher-report-batch-row__main {
    display: grid;
    gap: 0.45rem;
}

.teacher-observer-student-quick,
.teacher-observer-student-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.9rem;
    align-items: center;
    border: 1px solid rgba(13, 94, 150, 0.1);
    border-radius: 18px;
    background: rgba(247, 250, 255, 0.96);
    padding: 0.8rem 0.92rem;
}

.teacher-observer-student-quick img,
.teacher-observer-student-card img {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(13, 94, 150, 0.14);
    background: #fff;
}

.teacher-observer-student-quick__copy,
.teacher-observer-student-card__copy,
.teacher-observer-student-card__stats {
    display: grid;
    gap: 0.2rem;
}

.teacher-observer-student-quick__copy strong,
.teacher-observer-student-card__copy strong {
    color: var(--ec-primary-dark);
    font-size: 1rem;
}

.teacher-observer-student-quick__copy span,
.teacher-observer-student-card__copy span,
.teacher-observer-student-quick__meta span,
.teacher-observer-student-card__stats span {
    color: rgba(57, 79, 104, 0.92);
    font-size: 0.82rem;
}

.teacher-observer-student-quick__meta,
.teacher-observer-student-card__stats {
    justify-items: end;
}

.teacher-observer-detail-hero {
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(13, 94, 150, 0.14);
    border-radius: 18px;
    background: rgba(246, 250, 255, 0.96);
    padding: 1rem 1.05rem;
}

.teacher-observer-detail-hero__meta {
    display: grid;
    gap: 0.35rem;
}

.teacher-observer-detail-hero__meta strong {
    color: var(--ec-primary-dark);
    font-size: 1rem;
}

.teacher-observer-detail-hero__meta span {
    color: var(--ec-text-soft);
    font-size: 0.84rem;
}

.teacher-observer-visibility {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.teacher-observer-visibility-chip {
    border: 1px solid rgba(116, 135, 156, 0.22);
    border-radius: 999px;
    background: rgba(244, 247, 251, 0.96);
    color: #476072;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.28rem 0.62rem;
}

.teacher-observer-visibility-chip.is-active.is-primary {
    background: rgba(223, 238, 255, 0.98);
    border-color: rgba(72, 131, 198, 0.35);
    color: #154f82;
}

.teacher-observer-visibility-chip.is-active.is-focus {
    background: rgba(233, 245, 255, 0.98);
    border-color: rgba(41, 125, 197, 0.34);
    color: #12578f;
}

.teacher-observer-visibility-chip.is-active.is-warm {
    background: rgba(255, 242, 221, 0.98);
    border-color: rgba(214, 149, 49, 0.34);
    color: #8c5700;
}

.teacher-observer-visibility-chip.is-active.is-ok {
    background: rgba(228, 247, 236, 0.98);
    border-color: rgba(61, 154, 97, 0.3);
    color: #236e42;
}

.teacher-observer-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.9rem;
}

.teacher-observer-detail-card {
    display: grid;
    gap: 0.65rem;
    border: 1px solid rgba(13, 94, 150, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 1.05rem;
}

.teacher-observer-detail-card h3 {
    color: var(--ec-primary-dark);
    font-size: 0.96rem;
    margin: 0;
}

.teacher-observer-detail-card__content {
    color: rgba(37, 56, 76, 0.94);
    font-size: 0.92rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.teacher-observer-detail-card__hint {
    color: var(--ec-text-soft);
    font-size: 0.8rem;
    line-height: 1.5;
}

.teacher-observer-detail-form {
    display: grid;
    gap: 0.75rem;
}

.teacher-observer-detail-card--soft {
    background: rgba(248, 251, 255, 0.96);
}

.teacher-observer-detail-card--ia {
    background: linear-gradient(180deg, rgba(240, 245, 255, 0.98), rgba(248, 250, 255, 0.98));
    border-color: rgba(99, 102, 241, 0.18);
}

.teacher-observer-detail-card--pink {
    background: linear-gradient(180deg, rgba(255, 239, 246, 0.98), rgba(255, 247, 250, 0.98));
    border-color: rgba(204, 110, 158, 0.24);
}

.teacher-observer-detail-card--green {
    background: linear-gradient(180deg, rgba(240, 247, 240, 0.98), rgba(248, 252, 248, 0.98));
    border-color: rgba(85, 150, 108, 0.24);
}

.teacher-observer-detail-card--blue {
    background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(247, 251, 255, 0.98));
    border-color: rgba(92, 147, 214, 0.18);
}

.teacher-observer-timeline,
.teacher-observer-detail-list,
.teacher-observer-detail-signatures {
    display: grid;
    gap: 0.75rem;
}

.teacher-observer-timeline__item,
.teacher-observer-detail-list__item,
.teacher-observer-detail-signature {
    display: grid;
    gap: 0.35rem;
    border: 1px solid rgba(13, 94, 150, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    padding: 0.8rem 0.9rem;
}

.teacher-observer-timeline__item strong,
.teacher-observer-detail-list__item strong,
.teacher-observer-detail-signature__head strong {
    color: var(--ec-primary-dark);
    font-size: 0.9rem;
}

.teacher-observer-timeline__item span,
.teacher-observer-detail-list__item span,
.teacher-observer-detail-signature__head span,
.teacher-observer-detail-signature small {
    color: var(--ec-text-soft);
    font-size: 0.81rem;
    line-height: 1.45;
}

.teacher-observer-timeline__item p,
.teacher-observer-detail-list__item p {
    margin: 0;
    color: rgba(37, 56, 76, 0.94);
    line-height: 1.58;
}

.teacher-observer-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
}

.teacher-observer-detail-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    border: 1px solid rgba(116, 135, 156, 0.18);
    background: rgba(248, 251, 255, 0.94);
    color: #5b6e84;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 0.18rem 0.5rem;
}

.teacher-observer-detail-tag.is-primary {
    background: rgba(223, 238, 255, 0.98);
    border-color: rgba(72, 131, 198, 0.28);
    color: #154f82;
}

.teacher-observer-detail-tag.is-warm {
    background: rgba(255, 244, 224, 0.98);
    border-color: rgba(214, 149, 49, 0.24);
    color: #8c5700;
}

.teacher-observer-detail-tag.is-focus {
    background: rgba(233, 245, 255, 0.98);
    border-color: rgba(41, 125, 197, 0.28);
    color: #12578f;
}

.teacher-observer-detail-tag.is-neutral {
    background: rgba(245, 248, 251, 0.98);
    border-color: rgba(116, 135, 156, 0.22);
    color: #486173;
}

.teacher-observer-detail-evidences {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
}

.teacher-observer-detail-evidence {
    display: grid;
    gap: 0.4rem;
    border: 1px solid rgba(13, 94, 150, 0.12);
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.96);
    padding: 0.75rem;
}

.teacher-observer-detail-evidence img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
}

.teacher-observer-detail-evidence__file,
.teacher-observer-detail-signature__empty {
    display: grid;
    place-items: center;
    min-height: 110px;
    border: 1px dashed rgba(13, 94, 150, 0.18);
    border-radius: 10px;
    background: #fff;
    color: var(--ec-text-soft);
    text-align: center;
    padding: 0.75rem;
}

.teacher-observer-detail-evidence strong,
.teacher-observer-detail-evidence span,
.teacher-observer-detail-evidence p {
    margin: 0;
    color: rgba(37, 56, 76, 0.94);
    line-height: 1.5;
}

.teacher-observer-detail-signature img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(13, 94, 150, 0.12);
    background: #fff;
    padding: 0.5rem;
}

.teacher-observer-modal__dialog {
    width: min(1080px, 100%);
}

.teacher-observer-screen-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.teacher-observer-form {
    gap: 1.1rem;
}

.teacher-observer-section {
    display: grid;
    gap: 0.9rem;
    border: 1px solid rgba(13, 94, 150, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 1.05rem;
}

.teacher-observer-section__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.teacher-observer-section__head strong {
    display: block;
    color: var(--ec-primary-dark);
    font-size: 0.96rem;
}

.teacher-observer-section__head span {
    color: var(--ec-text-soft);
    font-size: 0.82rem;
}

.teacher-observer-ai-status {
    border-radius: 14px;
    padding: 0.8rem 0.9rem;
    font-size: 0.86rem;
    line-height: 1.5;
}

.teacher-observer-ai-status.is-info {
    background: rgba(232, 243, 255, 0.96);
    border: 1px solid rgba(13, 94, 150, 0.16);
    color: var(--ec-primary-dark);
}

.teacher-observer-ai-status.is-success {
    background: rgba(237, 252, 244, 0.98);
    border: 1px solid rgba(28, 137, 75, 0.18);
    color: #166534;
}

.teacher-observer-ai-status.is-error {
    background: rgba(255, 241, 242, 0.98);
    border: 1px solid rgba(220, 38, 38, 0.16);
    color: #b91c1c;
}

.teacher-observer-ai-field {
    display: grid;
    gap: 0.45rem;
}

.teacher-observer-ai-field__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.teacher-observer-ai-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.6rem;
}

.teacher-observer-ai-flags span {
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 999px;
    background: rgba(255, 248, 230, 0.98);
    color: #9a6700;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.22rem 0.55rem;
}

.teacher-observer-evidence-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.7rem;
}

.teacher-observer-file-native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.teacher-observer-file-picker {
    display: grid;
    align-content: start;
    gap: 0.55rem;
}

.teacher-observer-file-picker__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    cursor: pointer;
}

.teacher-observer-file-picker__status {
    font-size: 0.82rem;
    color: var(--ec-text-soft);
    line-height: 1.45;
    min-height: 1.25rem;
}

.teacher-observer-evidence-grid {
    align-items: start;
}

.teacher-observer-evidence-field {
    align-content: start;
}

.teacher-observer-evidence-field--files {
    display: grid;
    gap: 0.45rem;
}

.teacher-observer-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.8rem;
    margin-top: 0.35rem;
}

.teacher-observer-detail-form--compact {
    margin-top: 0.35rem;
}

.teacher-observer-commitment-actions {
    flex-wrap: wrap;
    gap: 0.45rem;
}

.teacher-observer-toggle-field {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.teacher-observer-toggle-field__label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ec-primary-dark);
}

.teacher-observer-toggle-field__help {
    color: var(--ec-text-soft);
    font-size: 0.8rem;
    line-height: 1.5;
}

.teacher-observer-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.7rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(13, 94, 150, 0.14);
    background: rgba(255, 255, 255, 0.96);
    color: var(--ec-text);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.teacher-observer-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(13, 94, 150, 0.08);
}

.teacher-observer-toggle.is-active.is-primary {
    background: rgba(223, 238, 255, 0.98);
    border-color: rgba(72, 131, 198, 0.35);
    color: #154f82;
}

.teacher-observer-toggle.is-active.is-warm {
    background: rgba(255, 242, 221, 0.98);
    border-color: rgba(214, 149, 49, 0.34);
    color: #8c5700;
}

.teacher-observer-toggle.is-active.is-focus {
    background: rgba(233, 245, 255, 0.98);
    border-color: rgba(41, 125, 197, 0.34);
    color: #12578f;
}

.teacher-observer-toggle.is-active.is-ok,
.teacher-observer-toggle--static.is-ok {
    background: rgba(228, 247, 236, 0.98);
    border-color: rgba(61, 154, 97, 0.3);
    color: #236e42;
}

.teacher-observer-toggle.is-active.is-neutral {
    background: rgba(239, 244, 249, 0.98);
    border-color: rgba(116, 135, 156, 0.26);
    color: #33516d;
}

.teacher-observer-toggle--static {
    pointer-events: none;
}

.teacher-observer-stored-signature {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(13, 94, 150, 0.1);
    border-radius: 18px;
    background: rgba(248, 251, 255, 0.94);
    padding: 0.95rem;
}

.teacher-observer-stored-signature--empty {
    grid-template-columns: 1fr;
}

.teacher-observer-stored-signature--compact {
    grid-template-columns: minmax(140px, 200px) minmax(0, 1fr);
}

.teacher-observer-stored-signature__preview {
    min-height: 138px;
    display: grid;
    align-items: center;
    justify-items: center;
    border-radius: 14px;
    border: 1px dashed rgba(13, 94, 150, 0.18);
    background: #fff;
    padding: 0.9rem;
}

.teacher-observer-stored-signature__preview img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.teacher-observer-stored-signature__side {
    display: grid;
    gap: 0.45rem;
    align-content: start;
}

.teacher-observer-stored-signature__side strong {
    color: var(--ec-primary-dark);
}

.teacher-observer-stored-signature__side span,
.teacher-observer-stored-signature__side small {
    color: var(--ec-text-soft);
    line-height: 1.45;
}

.teacher-observer-stored-signature__side .button-secondary.is-pressed {
    background: rgba(228, 247, 236, 0.98);
    border-color: rgba(61, 154, 97, 0.3);
    color: #236e42;
}

@media (max-width: 820px) {
    .teacher-observer-stored-signature {
        grid-template-columns: 1fr;
    }
}

.teacher-observer-evidence-item {
    border: 1px solid rgba(13, 94, 150, 0.12);
    border-radius: 14px;
    background: rgba(248, 251, 255, 0.96);
    padding: 0.55rem;
    display: grid;
    gap: 0.4rem;
}

.teacher-observer-evidence-item img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 10px;
}

.teacher-observer-evidence-item figcaption,
.teacher-observer-evidence-item span,
.teacher-observer-evidence-item strong {
    font-size: 0.78rem;
    color: rgba(37, 56, 76, 0.94);
    word-break: break-word;
}

.teacher-observer-evidence-item.is-file {
    align-content: start;
    min-height: 96px;
}

.teacher-observer-signatures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

.teacher-observer-signature-card {
    display: grid;
    gap: 0.75rem;
    border: 1px solid rgba(13, 94, 150, 0.1);
    border-radius: 16px;
    background: rgba(248, 251, 255, 0.94);
    padding: 0.9rem;
}

.teacher-observer-signature-card--wide {
    grid-column: 1 / -1;
}

.teacher-observer-signature-card__head {
    display: grid;
    gap: 0.2rem;
}

.teacher-observer-signature-card__head strong {
    color: var(--ec-primary-dark);
    font-size: 0.9rem;
}

.teacher-observer-signature-card__head span {
    color: var(--ec-text-soft);
    font-size: 0.79rem;
}

.teacher-observer-signature-pad {
    display: grid;
    gap: 0.55rem;
}

.teacher-observer-signature-card .teacher-observer-toggle-field {
    margin-top: -0.05rem;
}

.teacher-observer-log-field {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(92, 147, 214, 0.18);
    background: linear-gradient(180deg, rgba(239, 247, 255, 0.98), rgba(247, 251, 255, 0.98));
}

.teacher-observer-log-field span {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1b527f;
}

.teacher-observer-log-field small {
    color: var(--ec-text-soft);
    line-height: 1.45;
}

.teacher-observer-action-field {
    display: grid;
    gap: 0.45rem;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(13, 94, 150, 0.14);
}

.teacher-observer-action-field span {
    font-size: 0.9rem;
    font-weight: 700;
}

.teacher-observer-action-field small {
    color: var(--ec-text-soft);
    line-height: 1.45;
}

.teacher-observer-action-field textarea,
.teacher-observer-ai-field textarea,
.teacher-observer-log-field textarea,
.teacher-support-form textarea[data-teacher-observer-autosize] {
    min-height: 120px;
    resize: none;
    line-height: 1.6;
}

.teacher-observer-action-field--teacher {
    background: linear-gradient(180deg, rgba(255, 242, 242, 0.98), rgba(255, 248, 248, 0.98));
    border-color: rgba(214, 94, 94, 0.22);
}

.teacher-observer-action-field--teacher span {
    color: #9b2f2f;
}

.teacher-observer-action-field--coordination {
    background: linear-gradient(180deg, rgba(255, 239, 246, 0.98), rgba(255, 247, 250, 0.98));
    border-color: rgba(204, 110, 158, 0.24);
}

.teacher-observer-action-field--coordination span {
    color: #8d3d67;
}

.teacher-observer-action-field--orientation {
    background: linear-gradient(180deg, rgba(240, 247, 240, 0.98), rgba(248, 252, 248, 0.98));
    border-color: rgba(85, 150, 108, 0.24);
}

.teacher-observer-action-field--orientation span {
    color: #2d6940;
}

.teacher-observer-ai-field {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: linear-gradient(180deg, rgba(240, 245, 255, 0.98), rgba(248, 250, 255, 0.98));
}

.teacher-observer-ai-field__head span:first-child {
    font-size: 0.92rem;
    font-weight: 700;
    color: #3247ab;
}

.teacher-support-summary .shell-card.is-actionable {
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.teacher-support-summary .shell-card.is-actionable:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(13, 94, 150, 0.08);
}

.teacher-support-summary .shell-card.is-selected {
    border-color: rgba(13, 94, 150, 0.28);
    box-shadow: 0 0 0 2px rgba(13, 94, 150, 0.08);
}

.teacher-observer-signature-pad canvas {
    width: 100%;
    height: 150px;
    border-radius: 14px;
    border: 2px dashed rgba(13, 94, 150, 0.18);
    background: #fff;
    touch-action: none;
}

.teacher-observer-signature-actions {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.teacher-coordination-shell .workspace-shell__panel {
    position: relative;
    gap: 1rem;
    padding: 1.1rem 1.16rem 1rem;
    overflow: visible;
}

.teacher-coordination-shell .workspace-shell__panel::before,
.teacher-written-tests-shell .workspace-shell__panel::before {
    content: "";
    position: absolute;
    inset: 0.72rem 1rem auto 1rem;
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(73, 152, 206, 0.28), rgba(160, 203, 235, 0.18));
}

.teacher-written-tests-shell .workspace-shell__panel {
    position: relative;
    padding: 1.12rem 1.18rem 1rem;
    overflow: visible;
}

.teacher-coordination-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.teacher-coordination-nav__button {
    border: 1px solid rgba(178, 198, 220, 0.52);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--ec-primary-dark);
    font-size: 0.83rem;
    font-weight: 800;
    padding: 0.52rem 0.9rem;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.teacher-coordination-nav__button:hover {
    border-color: rgba(13, 94, 150, 0.28);
    box-shadow: 0 10px 22px rgba(13, 94, 150, 0.08);
}

.teacher-coordination-nav__button.is-active {
    background: rgba(233, 244, 255, 0.98);
    border-color: rgba(128, 174, 219, 0.48);
    color: #154f82;
}

.teacher-written-tests-toolbar,
.teacher-support-toolbar {
    gap: 0.72rem;
}

.teacher-coordination-toolbar {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.teacher-support-shell input:not([type]),
.teacher-support-shell input[type="text"],
.teacher-support-shell input[type="search"],
.teacher-support-shell input[type="date"],
.teacher-support-shell input[type="time"],
.teacher-support-shell input[type="number"],
.teacher-support-shell select,
.teacher-support-shell textarea,
.teacher-academic-view input:not([type]),
.teacher-academic-view input[type="text"],
.teacher-academic-view input[type="search"],
.teacher-academic-view input[type="date"],
.teacher-academic-view input[type="time"],
.teacher-academic-view input[type="number"],
.teacher-academic-view select,
.teacher-academic-view textarea,
.teacher-note-modal input:not([type]),
.teacher-note-modal input[type="text"],
.teacher-note-modal input[type="search"],
.teacher-note-modal input[type="date"],
.teacher-note-modal input[type="time"],
.teacher-note-modal input[type="number"],
.teacher-note-modal select,
.teacher-note-modal textarea {
    width: 100%;
    border: 1px solid rgba(141, 166, 193, 0.42);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.98));
    color: #20384f;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.38;
    padding: 0.68rem 0.78rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 6px 14px rgba(25, 64, 103, 0.035);
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.teacher-support-shell textarea,
.teacher-academic-view textarea,
.teacher-note-modal textarea {
    min-height: 7rem;
    resize: vertical;
}

.teacher-support-shell select,
.teacher-academic-view select,
.teacher-note-modal select {
    min-height: 2.72rem;
}

.teacher-support-shell input:focus,
.teacher-support-shell select:focus,
.teacher-support-shell textarea:focus,
.teacher-academic-view input:focus,
.teacher-academic-view select:focus,
.teacher-academic-view textarea:focus,
.teacher-note-modal input:focus,
.teacher-note-modal select:focus,
.teacher-note-modal textarea:focus {
    outline: none;
    border-color: rgba(13, 94, 150, 0.55);
    box-shadow: 0 0 0 4px rgba(13, 94, 150, 0.1), 0 10px 22px rgba(13, 94, 150, 0.06);
    background: #ffffff;
}

.teacher-support-shell input::placeholder,
.teacher-support-shell textarea::placeholder,
.teacher-academic-view input::placeholder,
.teacher-academic-view textarea::placeholder,
.teacher-note-modal input::placeholder,
.teacher-note-modal textarea::placeholder {
    color: rgba(60, 79, 99, 0.52);
}

.teacher-coordination-filter-head,
.teacher-coordination-executive__head,
.teacher-coordination-report-hub__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.teacher-coordination-filter-head {
    padding: 0.96rem 1rem;
    border: 1px solid rgba(13, 94, 150, 0.12);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(243, 249, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.teacher-coordination-filter-head span,
.teacher-coordination-executive__head span {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(36, 78, 117, 0.68);
}

.teacher-coordination-filter-head strong,
.teacher-coordination-executive__head strong,
.teacher-coordination-report-hub__head strong {
    display: block;
    color: #123e66;
    font-weight: 900;
}

.teacher-coordination-filter-head p,
.teacher-coordination-priority-item p {
    margin: 0.2rem 0 0;
    color: rgba(55, 73, 93, 0.76);
    font-size: 0.86rem;
    line-height: 1.45;
}

.teacher-coordination-filter-actions,
.teacher-coordination-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.teacher-coordination-quick-actions button,
.teacher-coordination-report-hub__link {
    border: 1px solid rgba(141, 166, 193, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #17466f;
    font-size: 0.8rem;
    font-weight: 850;
    padding: 0.46rem 0.76rem;
}

.teacher-coordination-quick-actions button:hover,
.teacher-coordination-report-hub__link:hover {
    border-color: rgba(13, 94, 150, 0.28);
    box-shadow: 0 10px 22px rgba(13, 94, 150, 0.08);
}

.teacher-coordination-filter-advanced {
    display: grid;
    gap: 0.72rem;
    padding: 0.84rem;
    border-radius: 20px;
    background: rgba(247, 250, 253, 0.82);
    border: 1px dashed rgba(13, 94, 150, 0.14);
}

.teacher-coordination-executive {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(230px, 0.8fr));
    gap: 0.9rem;
}

.teacher-coordination-executive__card,
.teacher-coordination-report-hub__card {
    display: grid;
    gap: 0.78rem;
    padding: 1rem;
    border: 1px solid rgba(13, 94, 150, 0.12);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96));
    box-shadow: 0 16px 32px rgba(13, 94, 150, 0.06);
}

.teacher-coordination-executive__card--wide {
    min-height: 100%;
}

.teacher-coordination-priority-list {
    display: grid;
    gap: 0.62rem;
}

.teacher-coordination-priority-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 0.8rem;
    padding: 0.76rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(184, 202, 222, 0.42);
    cursor: pointer;
}

.teacher-coordination-priority-item:hover {
    border-color: rgba(13, 94, 150, 0.24);
    box-shadow: 0 12px 24px rgba(13, 94, 150, 0.07);
}

.teacher-coordination-priority-item__main {
    display: grid;
    gap: 0.18rem;
}

.teacher-coordination-priority-item__main strong {
    color: #143f65;
    font-size: 0.94rem;
}

.teacher-coordination-priority-item__main span,
.teacher-coordination-report-hub__head span {
    color: rgba(55, 73, 93, 0.68);
    font-size: 0.78rem;
    font-weight: 760;
}

.teacher-coordination-next-action {
    display: grid;
    gap: 0.18rem;
    padding: 0.62rem 0.72rem;
    border-radius: 16px;
    background: rgba(238, 246, 255, 0.78);
    border: 1px solid rgba(13, 94, 150, 0.1);
}

.teacher-coordination-next-action strong {
    color: #164c7a;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.teacher-coordination-next-action span {
    color: rgba(45, 63, 82, 0.82);
    font-size: 0.86rem;
    line-height: 1.42;
}

.teacher-coordination-report-hub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.85rem;
}

.teacher-coordination-report-hub__head b {
    display: inline-grid;
    place-items: center;
    min-width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(13, 94, 150, 0.1);
    color: #154f82;
    font-weight: 950;
}

.teacher-coordination-report-hub__links {
    display: grid;
    gap: 0.5rem;
}

.teacher-coordination-report-hub__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    border-radius: 16px;
    text-align: left;
}

.teacher-coordination-alert-board,
.teacher-coordination-dossier-list,
.teacher-coordination-alert-list,
.teacher-coordination-dossier-grid {
    display: grid;
    gap: 0.86rem;
}

.teacher-coordination-alert-board {
    padding: 0.9rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 250, 239, 0.96), rgba(240, 248, 255, 0.96));
    border: 1px solid rgba(197, 148, 54, 0.18);
}

.teacher-analytics-panel {
    display: grid;
    gap: 0.95rem;
    padding: 1rem;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(47, 116, 184, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(245, 251, 255, 0.98), rgba(255, 252, 244, 0.96));
    border: 1px solid rgba(103, 149, 190, 0.22);
    box-shadow: 0 18px 38px rgba(31, 79, 123, 0.07);
}

.teacher-analytics-panel--empty {
    background: linear-gradient(135deg, rgba(247, 251, 255, 0.98), rgba(251, 253, 255, 0.96));
}

.teacher-analytics-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.teacher-analytics-panel__head h3 {
    margin: 0.2rem 0 0;
    color: #123e66;
    font-size: 1.08rem;
}

.teacher-analytics-panel__head p {
    margin: 0.25rem 0 0;
    color: rgba(44, 63, 82, 0.78);
    font-size: 0.9rem;
    line-height: 1.46;
}

.teacher-analytics-engine {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    background: rgba(13, 94, 150, 0.1);
    color: #12466f;
    font-size: 0.76rem;
    font-weight: 900;
    white-space: nowrap;
}

.teacher-analytics-insights {
    display: grid;
    gap: 0.55rem;
}

.teacher-analytics-insights article {
    padding: 0.72rem 0.85rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(141, 166, 193, 0.22);
    color: rgba(37, 59, 82, 0.9);
    font-size: 0.88rem;
    line-height: 1.45;
}

.teacher-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.86rem;
}

.teacher-analytics-card {
    display: grid;
    gap: 0.78rem;
    padding: 0.92rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(156, 184, 213, 0.34);
    box-shadow: 0 12px 24px rgba(28, 74, 118, 0.05);
}

.teacher-analytics-bars {
    display: grid;
    gap: 0.66rem;
}

.teacher-analytics-bar {
    display: grid;
    gap: 0.32rem;
}

.teacher-analytics-bar__label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.8rem;
}

.teacher-analytics-bar__label strong {
    color: #143f63;
    font-size: 0.86rem;
}

.teacher-analytics-bar__label span {
    color: rgba(57, 79, 104, 0.72);
    font-size: 0.75rem;
    text-align: right;
}

.teacher-analytics-bar__track {
    height: 0.72rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(197, 216, 235, 0.48);
}

.teacher-analytics-bar__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2f74b8 0%, #d17b39 100%);
    box-shadow: 0 6px 14px rgba(47, 116, 184, 0.18);
}

.teacher-analytics-risk {
    display: grid;
    gap: 0.7rem;
    padding: 0.9rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(141, 166, 193, 0.18);
}

.teacher-coordination-alert-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: start;
    padding: 0.92rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(184, 202, 222, 0.42);
    box-shadow: 0 14px 28px rgba(29, 76, 120, 0.055);
}

.teacher-coordination-alert-item__main {
    display: grid;
    gap: 0.55rem;
}

.teacher-coordination-alert-item__main > strong {
    color: #123e66;
    font-size: 0.98rem;
}

.teacher-coordination-alert-item__main p {
    margin: 0;
    color: rgba(44, 63, 82, 0.82);
    font-size: 0.9rem;
    line-height: 1.48;
}

.teacher-coordination-alert-item__actions {
    display: flex;
    justify-content: flex-end;
}

.teacher-coordination-dossier {
    gap: 1rem;
}

.teacher-coordination-dossier__head,
.teacher-coordination-dossier-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.teacher-coordination-dossier-hero {
    padding: 1rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(234, 247, 255, 0.98), rgba(255, 253, 245, 0.98));
    border: 1px solid rgba(13, 94, 150, 0.14);
}

.teacher-coordination-dossier-hero .teacher-support-item__student img {
    width: 4.5rem;
    height: 4.5rem;
}

.teacher-coordination-dossier-hero__meta {
    display: grid;
    gap: 0.45rem;
    text-align: right;
}

.teacher-coordination-dossier-hero__meta strong {
    color: #113f68;
    font-size: 1.05rem;
    font-weight: 950;
}

.teacher-coordination-dossier-hero__meta span {
    color: rgba(49, 68, 88, 0.72);
    font-size: 0.86rem;
}

.teacher-coordination-dossier-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.teacher-coordination-dossier-listing {
    margin: 0;
    padding-left: 1.05rem;
    color: rgba(40, 58, 78, 0.86);
    font-size: 0.9rem;
    line-height: 1.55;
}

.teacher-observer-package-card {
    display: grid;
    gap: 0.9rem;
}

.teacher-observer-package-form {
    display: grid;
    gap: 0.9rem;
}

.teacher-observer-package-cases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.55rem;
    max-height: 18rem;
    overflow: auto;
    padding: 0.2rem;
}

.teacher-observer-package-case {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.65rem;
    align-items: start;
    padding: 0.7rem;
    border: 1px solid rgba(141, 166, 193, 0.26);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
}

.teacher-observer-package-case input {
    margin-top: 0.15rem;
}

.teacher-observer-package-case span {
    display: grid;
    gap: 0.2rem;
}

.teacher-observer-package-case strong {
    color: #0d3e66;
    font-size: 0.88rem;
    font-weight: 950;
}

.teacher-observer-package-case small {
    color: rgba(48, 67, 86, 0.68);
    font-weight: 750;
}

.teacher-observer-package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.teacher-observer-package-grid--wide {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.teacher-observer-package-commitment {
    padding: 0.75rem;
    border: 1px dashed rgba(13, 94, 150, 0.26);
    border-radius: 18px;
    background: rgba(244, 250, 255, 0.72);
}

.teacher-observer-package-commitment summary {
    cursor: pointer;
    color: #0d3e66;
    font-weight: 950;
}

.teacher-observer-package-commitment[open] {
    display: grid;
    gap: 0.75rem;
}

.shortcut-help {
    display: grid;
    gap: 0.8rem;
}

.shortcut-help__intro {
    margin: 0;
    color: rgba(48, 67, 86, 0.72);
}

.shortcut-help__grid {
    display: grid;
    gap: 0.48rem;
}

.shortcut-help__row {
    display: grid;
    grid-template-columns: minmax(92px, auto) 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.5rem 0.62rem;
    border-radius: 14px;
    background: rgba(244, 249, 253, 0.96);
    border: 1px solid rgba(141, 166, 193, 0.22);
}

.shortcut-help__row kbd {
    display: inline-flex;
    justify-content: center;
    border: 1px solid rgba(97, 126, 154, 0.35);
    border-bottom-width: 3px;
    border-radius: 10px;
    background: #fff;
    color: #173f66;
    font-weight: 900;
    padding: 0.32rem 0.5rem;
}

.teacher-observer-detail-card input:not([type]),
.teacher-observer-detail-card input[type="text"],
.teacher-observer-detail-card input[type="search"],
.teacher-observer-detail-card input[type="date"],
.teacher-observer-detail-card input[type="time"],
.teacher-observer-detail-card input[type="number"],
.teacher-observer-detail-card select,
.teacher-observer-detail-card textarea {
    width: 100%;
    border: 1px solid rgba(141, 166, 193, 0.42);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(247, 251, 255, 0.98));
    color: #20384f;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.42;
    padding: 0.68rem 0.78rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86), 0 6px 14px rgba(25, 64, 103, 0.035);
}

.teacher-observer-detail-card input:focus,
.teacher-observer-detail-card select:focus,
.teacher-observer-detail-card textarea:focus {
    outline: none;
    border-color: rgba(13, 94, 150, 0.55);
    box-shadow: 0 0 0 4px rgba(13, 94, 150, 0.1), 0 10px 22px rgba(13, 94, 150, 0.06);
    background: #fff;
}

@media (max-width: 980px) {
    .teacher-coordination-executive {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .teacher-coordination-filter-head,
    .teacher-coordination-executive__head,
    .teacher-coordination-report-hub__head,
    .teacher-coordination-priority-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .teacher-coordination-filter-head,
    .teacher-coordination-executive__head,
    .teacher-coordination-report-hub__head {
        display: grid;
    }

    .teacher-coordination-filter-actions,
    .teacher-coordination-quick-actions {
        justify-content: stretch;
    }

    .teacher-coordination-filter-actions > *,
    .teacher-coordination-quick-actions button {
        width: 100%;
    }

    .teacher-coordination-alert-item,
    .teacher-coordination-dossier__head,
    .teacher-coordination-dossier-hero {
        display: grid;
        grid-template-columns: 1fr;
    }

    .teacher-coordination-dossier-hero__meta {
        text-align: left;
    }
}

@media print {
    body:has(.teacher-coordination-dossier) .shell-sidebar,
    body:has(.teacher-coordination-dossier) .shell-topbar,
    body:has(.teacher-coordination-dossier) .teacher-coordination-nav,
    body:has(.teacher-coordination-dossier) .workspace-shell__actions,
    body:has(.teacher-coordination-dossier) .ui-lock-overlay {
        display: none !important;
    }

    body:has(.teacher-coordination-dossier) {
        background: #fff !important;
    }

    body:has(.teacher-coordination-dossier) .workspace-shell__panel,
    body:has(.teacher-coordination-dossier) .teacher-observer-detail-card {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

.teacher-observer-witness {
    display: grid;
    gap: 0.65rem;
}

.ui-lock-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 42% 34%, rgba(243, 173, 61, 0.16) 0%, transparent 26%),
        radial-gradient(circle at 58% 70%, rgba(40, 168, 138, 0.14) 0%, transparent 28%),
        rgba(239, 246, 253, 0.82);
    backdrop-filter: blur(4px);
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.ui-lock-overlay.is-visible {
    display: flex;
}

.ui-lock-overlay__panel {
    min-width: min(360px, 100%);
    padding: 1.45rem 1.55rem;
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 251, 255, 0.98) 100%);
    border: 1px solid rgba(13, 94, 150, 0.18);
    box-shadow: 0 32px 70px rgba(13, 94, 150, 0.22);
    display: grid;
    justify-items: center;
    gap: 0.72rem;
}

.ui-lock-overlay__brand {
    width: 86px;
    height: 86px;
    position: relative;
    display: grid;
    place-items: center;
}

.ui-lock-overlay__brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px rgba(13, 94, 150, 0.14);
}

.ui-lock-overlay__brand::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    border: 4px solid rgba(13, 94, 150, 0.10);
    border-top-color: rgba(13, 94, 150, 0.92);
    border-right-color: rgba(243, 173, 61, 0.88);
    animation: ec-spin 0.9s linear infinite;
}

.ui-lock-overlay__orbit {
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #28a88a;
    box-shadow: 0 0 0 5px rgba(40, 168, 138, 0.14);
    animation: ec-orbit 1.25s ease-in-out infinite;
}

.ui-lock-overlay__orbit--one {
    top: 2px;
    left: 38px;
}

.ui-lock-overlay__orbit--two {
    right: 7px;
    top: 50px;
    background: #f3ad3d;
    box-shadow: 0 0 0 5px rgba(243, 173, 61, 0.14);
    animation-delay: 0.18s;
}

.ui-lock-overlay__orbit--three {
    left: 9px;
    bottom: 15px;
    background: #0d5e96;
    box-shadow: 0 0 0 5px rgba(13, 94, 150, 0.14);
    animation-delay: 0.34s;
}

.ui-lock-overlay__message {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--ec-text);
    text-align: center;
}

.ui-lock-overlay__hint {
    margin: -0.22rem 0 0;
    color: var(--ec-text-soft);
    font-size: 0.8rem;
    font-weight: 700;
    text-align: center;
}

button.is-operation-busy,
input[type="submit"].is-operation-busy,
input[type="button"].is-operation-busy {
    position: relative;
    cursor: wait !important;
    opacity: 0.78;
}

button.is-operation-busy::after,
input[type="submit"].is-operation-busy::after,
input[type="button"].is-operation-busy::after {
    content: "";
    display: inline-block;
    width: 0.9em;
    height: 0.9em;
    margin-left: 0.55rem;
    border-radius: 999px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    vertical-align: -0.1em;
    animation: ec-spin 0.72s linear infinite;
}

form.is-operation-busy {
    cursor: wait;
}

form.is-operation-busy :is(input, select, textarea, button) {
    pointer-events: none;
}

@keyframes ec-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ec-orbit {
    0%, 100% {
        transform: scale(0.72);
        opacity: 0.62;
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
    }
}

@media (max-width: 720px) {
    .session-tools {
        justify-content: stretch;
        flex-direction: column;
    }

    .session-tool-button {
        width: 100%;
    }

    .super-admin-form__grid {
        grid-template-columns: 1fr;
    }

    .super-admin-form__footer {
        align-items: stretch;
    }

    .super-admin-form__submit {
        width: 100%;
    }

    .super-admin-search-select__control {
        grid-template-columns: 1fr;
    }

    .super-admin-search-select__toggle {
        width: 100%;
    }

    .teacher-academic-toolbar,
    .teacher-note-detail__header,
    .teacher-academic-sheet__header,
    .teacher-note-modal__header,
    .teacher-note-modal__summary,
    .teacher-observer-section__head,
    .teacher-observer-student-quick,
    .teacher-observer-student-card {
        flex-direction: column;
    }

    .teacher-academic-selector-grid,
    .teacher-academic-activity-row {
        grid-template-columns: 1fr;
    }

    .teacher-academic-activity-row__actions {
        justify-content: flex-start;
    }

    .teacher-academic-pill {
        min-width: 100%;
    }

    .teacher-note-modal__dialog {
        padding: 1rem;
    }

    .teacher-observer-student-quick,
    .teacher-observer-student-card {
        grid-template-columns: 1fr;
    }

    .teacher-observer-student-quick__meta,
    .teacher-observer-student-card__stats {
        justify-items: start;
    }

    .teacher-planner-head {
        align-items: stretch;
    }

    .teacher-planner-head__badge {
        justify-content: flex-start;
    }

    .teacher-planner-summary-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .teacher-planner-list-toolbar {
        align-items: stretch;
    }

    .teacher-planner-list-toolbar .button-primary {
        width: 100%;
        justify-content: center;
    }

    .context-row {
        grid-template-columns: auto 1fr;
        align-items: flex-start;
    }

    .context-row__badges,
    .context-row__arrow,
    .context-selector__pager {
        grid-column: 1 / -1;
    }

    .context-row__badges {
        justify-content: flex-start;
        margin-left: calc(36px + 0.78rem);
    }

    .context-selector__pager {
        justify-content: stretch;
        flex-direction: column;
        align-items: stretch;
    }

.context-selector__pager-status {
        text-align: left;
    }
}

.teacher-written-tests-shell .workspace-shell {
    gap: 0.85rem;
}

.teacher-written-tests-toolbar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.95rem 0.85rem;
    align-items: end;
}

.teacher-written-tests-resource-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.78rem 0 0.46rem;
}

.teacher-written-tests-resource {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(60, 121, 191, 0.18);
    background: rgba(236, 244, 255, 0.8);
    color: #1f4f82;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
}

.teacher-written-tests-resource:hover {
    background: rgba(223, 237, 255, 0.95);
}

.teacher-written-tests-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.teacher-written-tests-header__actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.teacher-written-tests-editor {
    gap: 0.85rem;
}

.teacher-written-tests-form {
    display: grid;
    gap: 0.85rem;
}

.teacher-written-tests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.teacher-written-tests-grid--metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.teacher-written-tests-form__stack {
    display: grid;
    gap: 0.85rem;
}

.teacher-written-tests-file {
    display: grid;
    gap: 0.45rem;
    padding: 0.85rem 0.95rem;
    border: 1px dashed rgba(60, 121, 191, 0.28);
    border-radius: 16px;
    background: rgba(246, 251, 255, 0.78);
}

.teacher-written-tests-file input[type="file"] {
    display: block;
    width: 100%;
}

.teacher-curricular-resources {
    display: grid;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(60, 121, 191, 0.18);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(237, 249, 244, 0.95), rgba(247, 251, 255, 0.92));
}

.teacher-curricular-resources__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.9rem;
}

.teacher-curricular-resources__head div {
    display: grid;
    gap: 0.25rem;
}

.teacher-curricular-resources__head strong {
    color: #073b63;
    font-weight: 900;
}

.teacher-curricular-resources__head span,
.teacher-curricular-resources__item span,
.teacher-curricular-resources__item small {
    color: #587392;
    font-size: 0.82rem;
    line-height: 1.35;
}

.teacher-curricular-resources__upload {
    display: grid;
    grid-template-columns: minmax(140px, 0.7fr) minmax(180px, 1fr) minmax(220px, 1.2fr);
    gap: 0.75rem;
    align-items: end;
}

.teacher-curricular-resources__upload label,
.teacher-curricular-resources__description {
    display: grid;
    gap: 0.35rem;
}

.teacher-curricular-resources__description {
    grid-column: 1 / -2;
}

.teacher-curricular-resources__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.65rem;
}

.teacher-curricular-resources__item {
    display: grid;
    gap: 0.3rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(60, 121, 191, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
}

@media (max-width: 780px) {
    .teacher-curricular-resources__head,
    .teacher-curricular-resources__upload {
        grid-template-columns: 1fr;
    }

    .teacher-curricular-resources__head {
        display: grid;
    }

    .teacher-curricular-resources__description {
        grid-column: auto;
    }
}

.teacher-written-tests-context-media {
    display: grid;
    gap: 0.7rem;
    padding: 0.8rem 0.9rem;
    border: 1px dashed rgba(60, 121, 191, 0.28);
    border-radius: 16px;
    background: rgba(246, 251, 255, 0.72);
}

.teacher-written-tests-context-media__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.7rem;
}

.teacher-written-tests-context-media__actions small {
    color: #6280a3;
    font-size: 0.78rem;
    line-height: 1.35;
}

.teacher-written-tests-context-media__upload {
    cursor: pointer;
}

.teacher-written-tests-context-media__upload input[type="file"] {
    display: none;
}

.teacher-written-tests-context-media__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.7rem;
}

.teacher-written-tests-context-media__item {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0.6rem;
    border: 1px solid rgba(59, 122, 191, 0.14);
    border-radius: 14px;
    background: #fff;
}

.teacher-written-tests-context-media__item img,
.teacher-written-tests-context-media__placeholder {
    width: 100%;
    min-height: 7.5rem;
    max-height: 12rem;
    object-fit: contain;
    border-radius: 10px;
    background: #f3f8fe;
}

.teacher-written-tests-context-media__placeholder {
    display: grid;
    place-items: center;
    color: #6b86a6;
    font-size: 0.82rem;
    font-weight: 700;
}

.teacher-written-tests-context-media__item figcaption {
    display: grid;
    gap: 0.15rem;
    color: #163d67;
    font-size: 0.78rem;
    font-weight: 700;
}

.teacher-written-tests-context-media__item figcaption small {
    color: #6b86a6;
    font-size: 0.72rem;
    font-weight: 600;
}

.teacher-written-tests-toggle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.teacher-written-tests-toggle {
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(44, 100, 168, 0.12);
    background: rgba(248, 251, 255, 0.94);
}

.teacher-written-tests-toggle small {
    color: #6280a3;
    font-size: 0.77rem;
    line-height: 1.35;
}

.teacher-written-tests-checklists {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.teacher-written-tests-checklist {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 122, 191, 0.14);
    background: rgba(252, 253, 255, 0.96);
}

.teacher-written-tests-checklist__head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
}

.teacher-written-tests-checklist__head h3 {
    margin: 0;
    font-size: 1rem;
    color: #11345c;
}

.teacher-written-tests-checklist__head p {
    margin: 0.25rem 0 0;
    color: #6782a2;
    font-size: 0.82rem;
    line-height: 1.45;
}

.teacher-written-tests-checklist__list {
    display: grid;
    gap: 0.55rem;
    max-height: 19rem;
    overflow: auto;
    padding-right: 0.15rem;
}

.teacher-written-tests-checklist__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(59, 122, 191, 0.12);
    background: rgba(247, 250, 255, 0.85);
    cursor: pointer;
}

.teacher-written-tests-checklist__item span {
    display: grid;
    gap: 0.18rem;
}

.teacher-written-tests-checklist__item strong {
    color: #163d67;
    font-size: 0.88rem;
}

.teacher-written-tests-checklist__item small {
    color: #6b86a6;
    font-size: 0.76rem;
    line-height: 1.4;
}

.teacher-written-tests-ai {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid rgba(50, 126, 114, 0.16);
    background: linear-gradient(135deg, rgba(236, 250, 246, 0.96), rgba(248, 254, 252, 0.98));
}

.teacher-written-tests-ai h3 {
    margin: 0;
    color: #174f47;
    font-size: 1rem;
}

.teacher-written-tests-ai p {
    margin: 0.28rem 0 0;
    color: #53786f;
    font-size: 0.83rem;
    line-height: 1.5;
}

.teacher-written-tests-question-list {
    display: grid;
    gap: 0.9rem;
}

.teacher-written-tests-question {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 122, 191, 0.14);
    background: rgba(251, 253, 255, 0.98);
}

.teacher-written-tests-question--read {
    gap: 0.7rem;
}

.teacher-written-tests-question__head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
}

.teacher-written-tests-question__head strong {
    display: block;
    color: #143960;
}

.teacher-written-tests-question__head span {
    color: #6c87a6;
    font-size: 0.78rem;
}

.teacher-written-tests-question__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.teacher-written-tests-question__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.85rem;
    align-items: start;
}

.teacher-written-tests-question__grid > label {
    display: grid;
    grid-template-rows: minmax(1.75rem, auto) 4.35rem minmax(2.25rem, auto);
    gap: 0.45rem;
    align-content: start;
    min-height: 8.9rem;
}

.teacher-written-tests-question__grid > label > span:first-child {
    min-height: 1.75rem;
    align-items: center;
}

.teacher-written-tests-question__grid input,
.teacher-written-tests-question__grid select {
    min-height: 4.35rem;
}

.teacher-written-tests-question__grid small {
    align-self: start;
    min-height: 2.25rem;
    color: #5e7897;
    font-size: 0.82rem;
    line-height: 1.35;
}

.teacher-written-tests-options {
    display: grid;
    gap: 0.7rem;
}

.teacher-written-tests-option {
    display: grid;
    gap: 0.3rem;
}

.teacher-written-tests-option > span {
    color: #5d7a9a;
    font-size: 0.78rem;
    font-weight: 600;
}

.teacher-written-tests-option__control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
}

.teacher-written-tests-option__answer {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.5rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 122, 191, 0.14);
    background: rgba(246, 250, 255, 0.88);
    color: #335a85;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.teacher-written-tests-option-read {
    display: grid;
    gap: 0.45rem;
}

.teacher-written-tests-option-read div {
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 122, 191, 0.1);
    background: rgba(247, 250, 255, 0.78);
    color: #284d76;
    font-size: 0.84rem;
    line-height: 1.5;
}

.teacher-written-tests-option-read div.is-correct {
    border-color: rgba(43, 142, 81, 0.2);
    background: rgba(236, 249, 241, 0.92);
    color: #1f6d3d;
}

.teacher-written-tests-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
}

.teacher-written-tests-detail-grid--review-top {
    grid-template-columns: minmax(320px, 0.92fr) minmax(380px, 1.08fr);
    align-items: start;
}

.teacher-written-tests-detail-grid--review-top > .teacher-support-item,
.teacher-written-tests-detail-grid--review-form > .teacher-support-item {
    min-width: 0;
    align-self: start;
}

.teacher-written-tests-reference-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.22rem;
}

.teacher-written-tests-statusbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.1rem;
}

.teacher-written-tests-shell .workspace-shell__eyebrow {
    padding-left: 0.14rem;
}

.teacher-written-tests-shell .teacher-written-tests-header {
    padding-left: 0.14rem;
}

.teacher-written-tests-shell .teacher-support-list,
.teacher-written-tests-shell .teacher-support-stack {
    gap: 1.06rem;
}

.teacher-written-tests-shell .teacher-report-analysis-card {
    padding: 1.18rem 1.24rem 1.14rem;
    gap: 0.94rem;
}

.teacher-written-tests-shell .teacher-report-analysis-card .workspace-shell__actions {
    margin-top: 0.68rem;
    margin-bottom: 0.18rem;
}

.teacher-written-tests-shell .teacher-report-analysis-card .teacher-support-empty--compact {
    margin-top: 0.76rem;
    padding: 0.96rem 1.02rem;
}

.teacher-written-tests-shell .teacher-support-item {
    padding: 1.04rem 1.08rem;
}

.teacher-written-tests-list {
    margin-top: 0.54rem;
}

.teacher-written-tests-list > .teacher-support-item {
    gap: 0.82rem;
    padding-top: 1.08rem;
    padding-bottom: 1.04rem;
}

.teacher-written-tests-list > .teacher-support-item .teacher-support-item__meta {
    gap: 0.62rem;
}

.teacher-written-tests-list > .teacher-support-item .teacher-support-item__copy {
    line-height: 1.56;
}

.teacher-written-tests-list .teacher-support-item__copy {
    margin-top: 0.15rem;
}

.teacher-written-tests-section-nav {
    margin-top: 0.22rem;
}

.teacher-written-tests-capture-list {
    max-height: 36rem;
    overflow: auto;
    padding-right: 0.2rem;
    gap: 0.42rem;
}

.teacher-written-tests-review-panel--captures .teacher-written-tests-capture-list {
    max-height: 31rem;
    gap: 0.38rem;
    padding-top: 0.18rem;
    padding-bottom: 0.12rem;
}

.teacher-written-tests-capture-item.is-active {
    border-color: rgba(43, 122, 191, 0.24);
    background: rgba(239, 247, 255, 0.96);
    box-shadow: inset 0 0 0 1px rgba(59, 122, 191, 0.12);
}

.teacher-written-tests-review-panel .teacher-support-item__head,
.teacher-written-tests-capture-item .teacher-support-item__head {
    align-items: flex-start;
}

.teacher-written-tests-review-panel--preview .teacher-support-item__head span {
    display: inline-block;
    max-width: min(100%, 18rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teacher-written-tests-capture-item {
    gap: 0.34rem;
    padding: 0.6rem 0.72rem;
    min-height: 4rem;
}

.teacher-written-tests-capture-item .teacher-support-item__head strong {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.24;
    font-size: 0.86rem;
}

.teacher-written-tests-capture-item .teacher-support-chip {
    flex: 0 0 auto;
    padding: 0.18rem 0.42rem;
    font-size: 0.68rem;
    line-height: 1.08;
}

.teacher-written-tests-capture-item .teacher-support-item__meta {
    gap: 0.28rem;
    font-size: 0.71rem;
    line-height: 1.16;
}

.teacher-written-tests-capture-item .teacher-support-item__copy {
    margin-top: 0.02rem;
    font-size: 0.71rem;
    line-height: 1.16;
}

.teacher-written-tests-capture-item--review {
    padding: 0.54rem 0.7rem;
    gap: 0.24rem;
    min-height: 3.55rem;
}

.teacher-written-tests-capture-item--review .teacher-support-item__head {
    flex-wrap: nowrap;
    gap: 0.42rem;
}

.teacher-written-tests-capture-item--review .teacher-support-item__head strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
    line-height: 1.24;
}

.teacher-written-tests-capture-item--review .teacher-support-chip {
    padding: 0.18rem 0.42rem;
    font-size: 0.68rem;
    line-height: 1.1;
}

.teacher-written-tests-capture-item__summary {
    color: var(--ec-text-soft);
    font-size: 0.7rem;
    line-height: 1.22;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teacher-written-tests-capture-preview {
    display: block;
    width: 100%;
    max-height: 38rem;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(59, 122, 191, 0.12);
    background: rgba(247, 250, 255, 0.76);
}

.teacher-written-tests-response-stack {
    display: grid;
    gap: 0.9rem;
}

.teacher-written-tests-response-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(59, 122, 191, 0.14);
    background: rgba(252, 253, 255, 0.98);
}

.teacher-written-tests-response-card__head {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    align-items: flex-start;
}

.teacher-written-tests-response-card__head strong {
    display: block;
    color: #163b63;
}

.teacher-written-tests-response-card__head span {
    color: #6c87a6;
    font-size: 0.78rem;
}

.teacher-written-tests-answer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.6rem;
}

.teacher-written-tests-answer-choice {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    border: 1px solid rgba(59, 122, 191, 0.12);
    background: rgba(247, 250, 255, 0.86);
    cursor: pointer;
}

.teacher-written-tests-answer-choice span {
    color: #234a73;
    font-size: 0.84rem;
    line-height: 1.45;
}

.teacher-written-tests-ai-analysis {
    display: grid;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(50, 126, 114, 0.16);
    background: linear-gradient(135deg, rgba(236, 250, 246, 0.96), rgba(248, 254, 252, 0.98));
}

.teacher-written-tests-ai-analysis strong {
    color: #174f47;
}

.teacher-written-tests-ai-analysis p,
.teacher-written-tests-ai-analysis ul {
    margin: 0.28rem 0 0;
    color: #53786f;
    font-size: 0.83rem;
    line-height: 1.5;
}

.teacher-written-tests-ai-analysis ul {
    padding-left: 1rem;
}

.teacher-written-tests-analytics-list {
    max-height: 38rem;
    overflow: auto;
    padding-right: 0.2rem;
}

@media (max-width: 900px) {
    .teacher-written-tests-header,
    .teacher-written-tests-ai {
        flex-direction: column;
        align-items: stretch;
    }

    .teacher-written-tests-option__control {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .teacher-written-tests-detail-grid--review-top {
        grid-template-columns: 1fr;
    }
}

/* Global mobile shell pass for web, APK webview and offline desktop shells. */
@media (max-width: 980px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body {
        min-width: 0;
        overflow-x: hidden;
        overscroll-behavior-y: contain;
    }

    .shell-app {
        min-height: 100dvh;
    }

    .shell-main,
    .shell-content,
    .workspace-shell,
    .workspace-switcher__content,
    .workspace-switcher__panel,
    .workspace-collection,
    .teacher-academic-view,
    .teacher-planner-view,
    .teacher-support-shell,
    .teacher-coordination-shell,
    .teacher-written-tests-shell,
    .super-admin-panel,
    .super-admin-action,
    .attendance-module {
        min-width: 0;
    }

    .shell-sidebar {
        max-height: min(72vh, 680px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0.85rem;
    }

    .shell-sidebar__brand {
        padding: 0.72rem;
        border-radius: 18px;
    }

    .shell-sidebar__logo {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .shell-nav {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        align-items: stretch;
    }

    .shell-nav__group-title {
        grid-column: 1 / -1;
        margin-top: 0.45rem;
    }

    .shell-nav__item {
        min-height: 62px;
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 0.68rem;
        padding: 0.68rem 0.72rem;
        border-radius: 18px;
    }

    .shell-nav__icon {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .shell-nav__label {
        font-size: 0.9rem;
    }

    .shell-nav__meta {
        font-size: 0.74rem;
    }

    .shell-sidebar__footer {
        display: none;
    }

    .shell-content {
        width: 100%;
        padding: 0.9rem;
    }

    .shell-topbar {
        padding: 0.75rem 0.75rem 0;
    }

    .shell-help-drawer.is-open {
        position: fixed;
        inset: 0;
        z-index: 250;
        width: 100vw;
        min-width: 0;
        max-width: 100vw;
        height: 100dvh;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .shell-help-drawer__body {
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .context-selector {
        width: 100%;
        max-height: 100dvh;
        overflow-y: auto;
    }

    .context-row {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: flex-start;
    }

    .context-row__badges,
    .context-row__arrow {
        grid-column: 2;
        justify-content: flex-start;
    }

    .super-admin-kpi-grid,
    .super-admin-panel-grid,
    .super-admin-action-grid,
    .teacher-coordination-executive,
    .teacher-coordination-report-hub,
    .teacher-coordination-dossier-grid,
    .teacher-report-analysis-grid,
    .teacher-written-tests-toolbar,
    .teacher-written-tests-detail-grid,
    .teacher-written-tests-detail-grid--review-top,
    .teacher-written-tests-answer-grid,
    .attendance-kpi-grid,
    .attendance-layout,
    .teacher-analytics-grid {
        grid-template-columns: 1fr;
    }

    .teacher-report-analysis-grid label:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .workspace-collection__toolbar,
    .workspace-collection__meta,
    .workspace-collection__pager,
    .workspace-collection__head-actions,
    .teacher-written-tests-header,
    .teacher-written-tests-ai,
    .teacher-written-tests-response-card__head,
    .teacher-coordination-filter-head,
    .teacher-coordination-executive__head,
    .teacher-coordination-report-hub__head,
    .teacher-coordination-dossier__head,
    .teacher-coordination-dossier-hero,
    .teacher-analytics-panel__head,
    .attendance-card__head,
    .attendance-side-item__top,
    .super-admin-banner {
        align-items: stretch;
        flex-direction: column;
        justify-content: flex-start;
    }

    .workspace-collection__toolbar,
    .workspace-collection__meta,
    .workspace-collection__pager {
        display: grid;
        grid-template-columns: 1fr;
    }

    .workspace-collection__search,
    .workspace-collection__filter {
        flex: 1 1 auto;
        width: 100%;
    }

    .teacher-coordination-nav,
    .workspace-switcher__tabs,
    .teacher-coordination-quick-actions,
    .teacher-report-workflow__steps,
    .teacher-written-tests-resource-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
    }

    .teacher-coordination-nav__button,
    .workspace-switcher__tab,
    .teacher-coordination-quick-actions button,
    .teacher-report-workflow__step,
    .teacher-written-tests-resource {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
    }

    .teacher-report-workflow__step {
        min-width: min(78vw, 280px);
    }

    .teacher-coordination-filter-actions,
    .workspace-shell__actions,
    .teacher-support-item__meta,
    .teacher-observer-detail-tags,
    .super-admin-item__badges,
    .super-admin-item__actions,
    .workspace-registry__badges,
    .workspace-registry__actions {
        justify-content: flex-start;
    }

    .teacher-coordination-alert-item,
    .teacher-coordination-priority-item,
    .teacher-report-batch-row,
    .teacher-observer-detail-hero,
    .teacher-observer-detail-grid,
    .teacher-observer-detail-form,
    .teacher-written-tests-response-card__head {
        grid-template-columns: 1fr;
    }

    .teacher-coordination-alert-item__actions,
    .attendance-card__actions,
    .teacher-coordination-dossier-hero__meta {
        justify-content: flex-start;
        justify-items: stretch;
        text-align: left;
    }

    .teacher-analytics-bar__label {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.18rem;
    }

    .teacher-analytics-bar__label span {
        text-align: left;
    }
}

@media (max-width: 720px) {
    .shell-topbar__inner,
    .shell-hero,
    .shell-card,
    .context-selector,
    .teacher-academic-view .workspace-shell__panel,
    .teacher-planner-view .workspace-shell__panel,
    .teacher-support-shell .workspace-shell__panel,
    .teacher-coordination-shell .workspace-shell__panel,
    .teacher-written-tests-shell .workspace-shell__panel,
    .teacher-analytics-panel,
    .teacher-coordination-alert-board,
    .teacher-coordination-dossier-hero,
    .teacher-observer-detail-card,
    .app-dialog-shell__dialog,
    .app-dialog-shell__dialog--help {
        border-radius: 20px;
    }

    .shell-topbar__inner,
    .shell-hero,
    .context-selector,
    .teacher-academic-view .workspace-shell__panel,
    .teacher-planner-view .workspace-shell__panel,
    .teacher-support-shell .workspace-shell__panel,
    .teacher-coordination-shell .workspace-shell__panel,
    .teacher-written-tests-shell .workspace-shell__panel,
    .teacher-analytics-panel,
    .teacher-coordination-alert-board,
    .teacher-coordination-dossier-hero,
    .teacher-observer-detail-card {
        padding: 0.88rem;
    }

    .shell-content {
        padding: 0.72rem;
    }

    .shell-topbar {
        padding: 0.62rem 0.62rem 0;
    }

    .shell-topbar__inner,
    .shell-topbar__left,
    .shell-topbar__right,
    .shell-topbar__actions {
        width: 100%;
        min-width: 0;
    }

    .shell-topbar__actions {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: stretch;
    }

    .shell-toggle,
    .shell-topbar__help {
        min-height: 44px;
    }

    .shell-topbar__help {
        width: 100%;
        white-space: normal;
    }

    .shell-breadcrumb,
    .shell-pill {
        width: 100%;
        white-space: normal;
    }

    .shell-hero__title {
        font-size: clamp(1.32rem, 8vw, 1.85rem);
    }

    .shell-hero__copy,
    .shell-card__copy,
    .workspace-collection__empty,
    .teacher-support-item__copy,
    .teacher-coordination-alert-item__main p,
    .teacher-analytics-panel__head p {
        line-height: 1.52;
    }

    .shell-card-grid,
    .teacher-support-summary,
    .super-admin-kpi-grid,
    .super-admin-panel-grid,
    .super-admin-action-grid,
    .workspace-registry__row,
    .workspace-registry__cells,
    .workspace-registry__aside,
    .super-admin-form__grid,
    .shell-help-ticket__grid,
    .teacher-academic-selector-grid,
    .teacher-academic-activity-row,
    .teacher-support-toolbar,
    .teacher-coordination-toolbar,
    .teacher-report-analysis-grid,
    .teacher-analytics-insights,
    .teacher-analytics-grid,
    .teacher-written-tests-answer-grid,
    .attendance-kpi-grid,
    .attendance-mark-grid,
    .attendance-student,
    .teacher-observer-detail-grid,
    .teacher-coordination-dossier-grid {
        grid-template-columns: 1fr;
    }

    .workspace-registry__head {
        display: none;
    }

    .workspace-registry__row,
    .super-admin-item,
    .teacher-support-item,
    .teacher-coordination-alert-item,
    .teacher-coordination-priority-item,
    .teacher-analytics-card,
    .teacher-report-analysis-field,
    .teacher-written-tests-response-card,
    .attendance-kpi-card {
        border-radius: 17px;
    }

    .teacher-support-item__student {
        grid-template-columns: 46px minmax(0, 1fr);
        align-items: start;
    }

    .teacher-support-item__student img {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    .teacher-support-item__head,
    .teacher-written-tests-response-card__head,
    .teacher-note-modal__header,
    .teacher-note-modal__summary {
        flex-direction: column;
        align-items: stretch;
    }

    .teacher-support-item__meta,
    .teacher-observer-detail-tags,
    .workspace-registry__badges,
    .workspace-registry__actions,
    .super-admin-item__badges,
    .super-admin-item__actions {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.12rem;
        -webkit-overflow-scrolling: touch;
    }

    .teacher-support-item__meta span,
    .teacher-observer-detail-tag,
    .workspace-registry__badges > *,
    .workspace-registry__actions > *,
    .super-admin-item__badges > *,
    .super-admin-item__actions > * {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .shell-help-drawer__header,
    .shell-help-drawer__body {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .shell-help-intro__actions,
    .shell-help-search__secondary,
    .shell-help-feedback__actions,
    .shell-help-card__actions,
    .app-dialog-shell__actions,
    .attendance-card__actions,
    .attendance-card__actions--footer,
    .workspace-shell__actions,
    .workspace-collection__empty-actions,
    .teacher-coordination-filter-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .button-primary,
    .button-secondary,
    .session-tool-button,
    .super-admin-form__submit,
    .super-admin-item__action,
    .shell-help-action,
    .shell-help-feedback__button,
    .app-dialog-shell__button,
    .attendance-save-button,
    .teacher-coordination-alert-item__actions > *,
    .workspace-shell__actions > *,
    .workspace-collection__empty-actions > *,
    .teacher-coordination-filter-actions > * {
        width: 100%;
        min-height: 44px;
    }

    .super-admin-form__control,
    .context-selector__search-input,
    .shell-help-search__form input,
    .shell-help-ticket__field input,
    .shell-help-ticket__field select,
    .shell-help-ticket__field textarea,
    .teacher-support-form input,
    .teacher-support-form select,
    .teacher-support-form textarea,
    .teacher-support-shell input:not([type]),
    .teacher-support-shell input[type="text"],
    .teacher-support-shell input[type="search"],
    .teacher-support-shell input[type="date"],
    .teacher-support-shell input[type="time"],
    .teacher-support-shell input[type="number"],
    .teacher-support-shell select,
    .teacher-support-shell textarea,
    .teacher-academic-view input:not([type]),
    .teacher-academic-view input[type="text"],
    .teacher-academic-view input[type="search"],
    .teacher-academic-view input[type="date"],
    .teacher-academic-view input[type="time"],
    .teacher-academic-view input[type="number"],
    .teacher-academic-view select,
    .teacher-academic-view textarea,
    .teacher-note-modal input,
    .teacher-note-modal select,
    .teacher-note-modal textarea,
    .teacher-observer-detail-card input,
    .teacher-observer-detail-card select,
    .teacher-observer-detail-card textarea {
        min-height: 44px;
        font-size: 16px;
    }

    .teacher-support-form textarea,
    .teacher-support-shell textarea,
    .teacher-academic-view textarea,
    .teacher-note-modal textarea,
    .teacher-observer-detail-card textarea,
    .shell-help-ticket__field textarea {
        min-height: 132px;
    }

    .app-dialog-shell {
        padding: 0.55rem;
    }

    .app-dialog-shell__dialog,
    .app-dialog-shell__dialog--help {
        width: 100%;
        max-height: 92dvh;
    }

    .attendance-photo-modal__dialog,
    .teacher-note-modal__dialog {
        width: min(100%, 96vw);
        max-height: 92dvh;
        overflow-y: auto;
    }

    .shell-scrolltop {
        right: calc(0.85rem + env(safe-area-inset-right, 0px));
        bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 540px) {
    .shell-content {
        padding: 0.55rem;
    }

    .shell-topbar {
        padding: 0.5rem 0.5rem 0;
    }

    .shell-topbar__inner,
    .shell-hero,
    .context-selector,
    .teacher-academic-view .workspace-shell__panel,
    .teacher-planner-view .workspace-shell__panel,
    .teacher-support-shell .workspace-shell__panel,
    .teacher-coordination-shell .workspace-shell__panel,
    .teacher-written-tests-shell .workspace-shell__panel,
    .teacher-analytics-panel,
    .teacher-coordination-alert-board,
    .teacher-observer-detail-card {
        padding: 0.76rem;
        border-radius: 18px;
    }

    .shell-sidebar {
        max-height: 80dvh;
        padding: 0.68rem;
    }

    .shell-nav {
        grid-template-columns: 1fr;
    }

    .shell-nav__item {
        min-height: 58px;
    }

    .shell-card {
        min-height: 0;
        padding: 0.68rem 0.72rem;
    }

    .context-selector__brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .context-selector__logo {
        width: 58px;
        height: 58px;
    }

    .context-row {
        grid-template-columns: 1fr;
    }

    .context-row__badges,
    .context-row__arrow {
        grid-column: auto;
    }

    .teacher-coordination-dossier-hero .teacher-support-item__student img {
        width: 3.5rem;
        height: 3.5rem;
    }

    .teacher-support-item__student {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 0.58rem;
    }

    .teacher-support-item__student img {
        width: 42px;
        height: 42px;
    }

    .teacher-analytics-engine {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .teacher-report-workflow__step {
        min-width: min(86vw, 280px);
    }

    .shortcut-help__row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

@media (hover: none) and (pointer: coarse) {
    .shell-card:hover,
    .super-admin-item__action:hover,
    .teacher-support-item--clickable:hover,
    .teacher-coordination-priority-item:hover,
    .teacher-report-workflow__step:hover,
    .teacher-coordination-quick-actions button:hover,
    .teacher-coordination-report-hub__link:hover {
        transform: none;
    }

    button,
    [role="button"],
    input,
    select,
    textarea {
        touch-action: manipulation;
    }
}

.teacher-lms-layout {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
}

.teacher-lms-sidebar {
    align-self: start;
    display: grid;
    gap: 0.72rem;
}

.teacher-lms-classroom {
    background: linear-gradient(135deg, rgba(235, 248, 255, 0.95), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(14, 116, 144, 0.18);
    border-radius: 1rem;
    color: #123047;
    cursor: pointer;
    display: grid;
    gap: 0.25rem;
    padding: 0.82rem 0.92rem;
    text-align: left;
}

.teacher-lms-classroom.is-active {
    background: linear-gradient(135deg, #0f5f7a, #1686a7);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 18px 36px rgba(14, 116, 144, 0.18);
}

.teacher-lms-classroom span {
    font-size: 0.82rem;
    opacity: 0.78;
}

.teacher-lms-main,
.teacher-lms-activity-list,
.teacher-lms-material-list,
.teacher-lms-submission-list,
.teacher-lms-form {
    display: grid;
    gap: 1rem;
}

.teacher-lms-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: flex-end;
}

.teacher-lms-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-lms-form__wide,
.teacher-lms-form__checks,
.teacher-lms-form__actions {
    grid-column: 1 / -1;
}

.teacher-lms-form__checks {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.teacher-lms-form__checks label {
    align-items: center;
    background: rgba(236, 253, 245, 0.78);
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: 0.85rem;
    display: flex;
    gap: 0.52rem;
    padding: 0.7rem 0.8rem;
}

.teacher-lms-activity {
    align-items: start;
    background: #fff;
    border: 1px solid rgba(15, 91, 184, 0.12);
    border-radius: 1rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1rem;
}

.teacher-lms-activity p {
    color: #42576d;
    margin: 0.35rem 0 0;
}

.teacher-lms-material {
    align-items: center;
    background: linear-gradient(135deg, rgba(240, 253, 250, 0.9), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(13, 148, 136, 0.16);
    border-radius: 0.95rem;
    display: grid;
    gap: 0.35rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 0.82rem 0.9rem;
}

.teacher-lms-material span {
    color: #486173;
    font-size: 0.82rem;
    font-weight: 800;
}

.teacher-lms-material a {
    color: #0f766e;
    font-weight: 900;
    text-decoration: none;
}

.teacher-lms-activity__stats {
    display: grid;
    gap: 0.45rem;
    justify-items: end;
}

.button-secondary--compact {
    min-height: 0;
    padding: 0.42rem 0.7rem;
}

.teacher-lms-activity__stats span {
    background: rgba(15, 91, 184, 0.08);
    border-radius: 999px;
    color: #17426f;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.35rem 0.62rem;
    white-space: nowrap;
}

.teacher-lms-submissions {
    border-color: rgba(15, 91, 184, 0.16);
}

.teacher-lms-submission {
    background: #fff;
    border: 1px solid rgba(15, 91, 184, 0.12);
    border-radius: 1rem;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: minmax(210px, 0.9fr) minmax(220px, 1fr) minmax(92px, 0.34fr) minmax(150px, 0.5fr);
    padding: 1rem;
}

.teacher-lms-submission__student {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.teacher-lms-submission__student img,
.teacher-lms-submission__avatar {
    align-items: center;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
    border: 1px solid rgba(15, 91, 184, 0.16);
    border-radius: 999px;
    color: #0f5f7a;
    display: inline-flex;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    object-fit: cover;
    width: 42px;
}

.teacher-lms-submission__student span,
.teacher-lms-submission__answer {
    color: #486173;
    font-size: 0.86rem;
}

.teacher-lms-submission__answer p {
    margin: 0;
}

@media (max-width: 980px) {
    .teacher-lms-layout,
    .teacher-lms-form,
    .teacher-lms-form__checks,
    .teacher-lms-activity,
    .teacher-lms-material,
    .teacher-lms-submission {
        grid-template-columns: 1fr;
    }

    .teacher-lms-activity__stats,
    .teacher-lms-hero-actions {
        justify-items: start;
        justify-content: flex-start;
    }
}

.teacher-maturity-panel {
    background:
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.18), transparent 32%),
        linear-gradient(135deg, #f8fbff 0%, #eef8f4 100%);
    border: 1px solid rgba(15, 91, 184, 0.14);
    border-radius: 1.4rem;
    box-shadow: 0 18px 48px rgba(15, 91, 184, 0.1);
    display: grid;
    gap: 1rem;
    margin: 1.2rem 0;
    padding: 1.15rem;
}

.teacher-maturity-panel--compact {
    margin-top: 0;
}

.teacher-maturity-panel__head,
.teacher-maturity-card__head {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.teacher-maturity-panel__head h3 {
    color: #0b3158;
    font-size: clamp(1.35rem, 2vw, 2rem);
    margin: 0.15rem 0;
}

.teacher-maturity-panel__head p,
.teacher-maturity-card p,
.teacher-maturity-blockers small {
    color: #4b6478;
    margin: 0;
}

.teacher-maturity-score {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(15, 91, 184, 0.14);
    border-radius: 1.15rem;
    display: grid;
    justify-items: center;
    min-width: 112px;
    padding: 0.75rem;
}

.teacher-maturity-score strong {
    color: #0f5bb8;
    font-size: 2rem;
    line-height: 1;
}

.teacher-maturity-score span {
    color: #607486;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.teacher-maturity-overall,
.teacher-maturity-card__bar {
    background: rgba(15, 91, 184, 0.11);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.teacher-maturity-overall span,
.teacher-maturity-card__bar span {
    background: linear-gradient(90deg, #ef4444, #f59e0b 42%, #16a34a);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.teacher-maturity-counts {
    margin: 0;
}

.teacher-maturity-blockers {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 1.1rem;
    display: grid;
    gap: 0.65rem;
    padding: 0.9rem;
}

.teacher-maturity-blockers > strong {
    color: #8a4b09;
}

.teacher-maturity-blockers article {
    align-items: flex-start;
    display: flex;
    gap: 0.7rem;
}

.teacher-maturity-status {
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 0.28rem 0.45rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.teacher-maturity-status.is-missing {
    background: #fee2e2;
    color: #991b1b;
}

.teacher-maturity-status.is-warning {
    background: #fef3c7;
    color: #92400e;
}

.teacher-maturity-grid,
.teacher-analytics-chart-specs {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.teacher-maturity-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 91, 184, 0.12);
    border-radius: 1.05rem;
    display: grid;
    gap: 0.7rem;
    padding: 0.9rem;
}

.teacher-maturity-card__head strong {
    color: #113a5e;
}

.teacher-maturity-card__head span {
    color: #0f5bb8;
    font-weight: 900;
}

.teacher-maturity-card ul {
    display: grid;
    gap: 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.teacher-maturity-card li {
    align-items: center;
    color: #41576a;
    display: grid;
    gap: 0.45rem;
    grid-template-columns: 48px 1fr auto;
}

.teacher-maturity-card li span {
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
    padding: 0.22rem 0.35rem;
    text-align: center;
}

.teacher-maturity-card li.is-ok span {
    background: #dcfce7;
    color: #166534;
}

.teacher-maturity-card li.is-warning span {
    background: #fef3c7;
    color: #92400e;
}

.teacher-maturity-card li.is-missing span {
    background: #fee2e2;
    color: #991b1b;
}

.teacher-maturity-card li b {
    font-size: 0.82rem;
}

.teacher-maturity-card li em {
    color: #607486;
    font-size: 0.72rem;
    font-style: normal;
}

.teacher-analytics-card--chart {
    min-height: 230px;
}

.teacher-analytics-mini-chart {
    align-items: end;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(26px, 1fr));
    min-height: 150px;
}

.teacher-analytics-mini-chart__bar {
    align-items: center;
    display: grid;
    gap: 0.35rem;
    grid-template-rows: 1fr auto;
    height: 100%;
    min-width: 0;
}

.teacher-analytics-mini-chart__bar span {
    align-self: end;
    background: linear-gradient(180deg, #0f5bb8, #16a34a);
    border-radius: 0.6rem 0.6rem 0.2rem 0.2rem;
    box-shadow: 0 8px 18px rgba(15, 91, 184, 0.18);
    display: block;
    min-height: 8px;
    width: 100%;
}

.teacher-analytics-mini-chart__bar small {
    color: #50687c;
    font-size: 0.68rem;
    font-weight: 800;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .teacher-maturity-panel__head,
    .teacher-maturity-card__head {
        align-items: stretch;
        flex-direction: column;
    }

    .teacher-maturity-score {
        justify-items: start;
        min-width: 0;
    }

    .teacher-maturity-card li {
        grid-template-columns: 48px 1fr;
    }

    .teacher-maturity-card li em {
        grid-column: 2;
    }
}

.portal-shell {
    display: grid;
    gap: 1rem;
}

.portal-hero {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.portal-hero h2,
.portal-panel h3,
.portal-student-card h3 {
    color: #073b63;
    margin: 0;
}

.portal-hero p,
.portal-panel p,
.portal-student-card p,
.portal-student-card small {
    color: #50687c;
}

.portal-hero__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.portal-metric-grid,
.portal-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.portal-metric {
    background: linear-gradient(135deg, #f8fbff, #eef7ff);
    border: 1px solid #c6def8;
    border-radius: 1rem;
    box-shadow: 0 14px 26px rgba(15, 91, 184, 0.08);
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem;
}

.portal-metric strong {
    color: #073b63;
    font-size: 1.65rem;
}

.portal-metric span {
    color: #113a5e;
    font-weight: 900;
}

.portal-metric small {
    color: #5f7890;
    font-weight: 700;
}

.portal-metric.is-ok {
    background: linear-gradient(135deg, #f0fdf4, #ecfeff);
    border-color: #bbf7d0;
}

.portal-metric.is-warning {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border-color: #fed7aa;
}

.portal-metric.is-danger {
    background: linear-gradient(135deg, #fff1f2, #fee2e2);
    border-color: #fecdd3;
}

.portal-student-card,
.portal-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #cfe0f2;
    border-radius: 1.15rem;
    box-shadow: 0 18px 34px rgba(15, 91, 184, 0.08);
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
}

.portal-student-card__head {
    align-items: center;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: auto 1fr;
}

.portal-student-card__photo {
    align-items: center;
    background: linear-gradient(135deg, #e0f2fe, #fff7ed);
    border: 1px solid #b8d7f7;
    border-radius: 1.1rem;
    display: grid;
    font-weight: 900;
    height: 72px;
    justify-items: center;
    overflow: hidden;
    width: 72px;
}

.portal-student-card__photo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.portal-student-card__signals {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
}

.portal-signal {
    background: #f8fbff;
    border: 1px solid #d6e7f7;
    border-radius: 0.85rem;
    display: grid;
    gap: 0.15rem;
    padding: 0.55rem;
}

.portal-signal strong {
    color: #073b63;
}

.portal-signal small {
    color: #5f7890;
    font-weight: 800;
}

.portal-signal.is-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.portal-signal.is-warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.portal-signal.is-danger {
    background: #fff1f2;
    border-color: #fecdd3;
}

.portal-student-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.portal-student-card__details {
    background: #f8fbff;
    border: 1px dashed #bdd7f4;
    border-radius: 0.95rem;
    display: grid;
    gap: 0.35rem;
    padding: 0.8rem;
}

.portal-stack {
    display: grid;
    gap: 0.9rem;
}

.portal-list {
    display: grid;
    gap: 0.55rem;
}

.portal-list__row {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #d7e8f7;
    border-radius: 0.8rem;
    display: grid;
    gap: 0.3rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 0.7rem;
}

.portal-list__row strong {
    color: #113a5e;
}

.portal-list__row span {
    color: #0f5bb8;
    font-weight: 900;
}

.portal-list__row small {
    color: #607486;
    grid-column: 1 / -1;
}

.portal-inline-empty {
    background: #f8fbff;
    border: 1px dashed #bdd7f4;
    border-radius: 0.9rem;
    color: #607486;
    font-weight: 800;
    padding: 0.85rem;
}

.portal-qr-card {
    justify-items: start;
}

.portal-qr {
    background: #ffffff;
    border: 1px solid #cfe0f2;
    border-radius: 1rem;
    padding: 0.8rem;
}

.portal-qr img {
    display: block;
    height: min(60vw, 260px);
    max-width: 100%;
    object-fit: contain;
    width: min(60vw, 260px);
}

@media (max-width: 720px) {
    .portal-hero,
    .portal-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .portal-student-card__head {
        align-items: start;
        grid-template-columns: 56px 1fr;
    }

    .portal-student-card__photo {
        border-radius: 0.9rem;
        height: 56px;
        width: 56px;
    }

    .portal-list__row {
        grid-template-columns: 1fr;
    }
}
