:root {
    color-scheme: light;
    --graphite: #2b2430;
    --graphite-2: #3a3041;
    --milk: #f7f0e7;
    --paper: #fffaf3;
    --paper-strong: #ffffff;
    --line: rgba(55, 42, 61, 0.14);
    --muted: #7b6f7d;
    --text: #2a2430;
    --violet: #80609a;
    --violet-strong: #68467f;
    --gold: #d6ab59;
    --gold-soft: #f4dfad;
    --rose: #c76d87;
    --green: #4d8a6b;
    --red: #b75f61;
    --shadow: 0 4px 14px rgba(43, 36, 48, 0.045);
    --radius-xl: 14px;
    --radius-lg: 12px;
    --radius-md: 10px;
    --sidebar-width: 248px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        linear-gradient(135deg, rgba(255, 250, 243, 0.82), rgba(247, 240, 231, 0.96)),
        radial-gradient(circle at 92% 18%, rgba(128, 96, 154, 0.05), transparent 28%),
        var(--milk);
    font-size: 14px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

code {
    padding: 2px 6px;
    border-radius: 8px;
    color: var(--graphite);
    background: rgba(128, 96, 154, 0.12);
}

[hidden] {
    display: none !important;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    color: #f9f4ec;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 44%),
        linear-gradient(135deg, var(--graphite), var(--graphite-2));
}

.brand,
.login-card__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand {
    margin-bottom: 22px;
}

.brand__logo,
.login-card__logo {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.brand__name {
    font-size: 20px;
    font-weight: 750;
    letter-spacing: 0.02em;
}

.brand__caption {
    margin-top: 2px;
    color: rgba(249, 244, 236, 0.68);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.nav {
    display: grid;
    gap: 6px;
}

.nav__item {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 24px 1fr auto;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: rgba(249, 244, 236, 0.78);
    text-align: left;
    background: rgba(255, 255, 255, 0.035);
    font-size: 14px;
    font-weight: 650;
}

.nav__item--active {
    color: #fff;
    background:
        linear-gradient(90deg, rgba(214, 171, 89, 0.28), rgba(128, 96, 154, 0.24)),
        rgba(255, 255, 255, 0.08);
    border-color: rgba(214, 171, 89, 0.42);
}

.nav__item--disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.nav__icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.nav__badge {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 999px;
    color: rgba(249, 244, 236, 0.92);
    text-align: center;
    font-weight: 750;
    background: rgba(255, 255, 255, 0.14);
}

.sidebar-note {
    margin-top: auto;
    padding: 11px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: 12px;
    color: rgba(249, 244, 236, 0.78);
    background: rgba(255, 255, 255, 0.06);
    font-size: 12px;
    line-height: 1.45;
}

.sidebar-note__dot {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    margin-top: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d6ab59, #c76d87, #80609a);
}

.main {
    min-width: 0;
    padding: 22px;
}

.page-section {
    display: grid;
    gap: 0;
}

.page-section[hidden] {
    display: none !important;
}

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

.eyebrow {
    margin: 0 0 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.12;
    letter-spacing: -0.025em;
    font-weight: 750;
}

h2 {
    margin-bottom: 8px;
    font-size: clamp(19px, 1.6vw, 24px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 750;
}

.user-card {
    padding: 7px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 250, 243, 0.74);
}

.user-card__name {
    padding-left: 8px;
    font-weight: 700;
}

.hero,
.toolbar,
.queue-panel,
.login-card {
    border: 1px solid var(--line);
    background: rgba(255, 250, 243, 0.86);
    box-shadow: var(--shadow);
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
    padding: 16px 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border-radius: var(--radius-xl);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: rgba(55, 42, 61, 0.12);
    opacity: 1;
}

.hero__text {
    max-width: 760px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.hero__counter {
    min-width: 132px;
    height: auto;
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 12px;
    color: var(--graphite);
    text-align: left;
    background: rgba(255, 255, 255, 0.62);
}

.hero__counter strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.hero__counter span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.toolbar {
    margin-bottom: 14px;
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    border-radius: var(--radius-lg);
}

.field {
    display: grid;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field--small {
    max-width: 180px;
}

.input {
    width: 100%;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid rgba(55, 42, 61, 0.18);
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.78);
    outline: none;
}

.input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(128, 96, 154, 0.1);
}

.toggle {
    min-height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(55, 42, 61, 0.14);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.56);
    font-weight: 700;
}

.button {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(104, 70, 127, 0.34);
    border-radius: 8px;
    color: #fff;
    font-weight: 750;
    background: var(--violet-strong);
    box-shadow: none;
}

.button:hover {
    background: #5f3f74;
}

.button:disabled {
    opacity: 0.56;
    cursor: not-allowed;
    transform: none;
}

body.is-loading .button:disabled {
    cursor: wait;
}

.button--ghost {
    min-height: 34px;
    color: var(--violet-strong);
    border-color: rgba(128, 96, 154, 0.18);
    background: rgba(255, 255, 255, 0.58);
    box-shadow: none;
}

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

.button--soft {
    color: var(--violet-strong);
    border-color: rgba(128, 96, 154, 0.22);
    background: rgba(128, 96, 154, 0.08);
    box-shadow: none;
}

.button--danger {
    color: #94464d;
    border-color: rgba(183, 95, 97, 0.22);
    background: rgba(183, 95, 97, 0.09);
    box-shadow: none;
}

.button.child-action-highlight,
.button.group-action-highlight,
.button.recalculation-action-highlight,
.button.child-next-action__button,
.button.group-next-action__button,
.button.analytics-focus__button,
.button.money-next-action__button,
.button.payroll-attention__button,
.button.recalculation-next-action__button {
    border-color: rgba(77, 138, 107, 0.42);
    color: #ffffff;
    background: var(--green);
    box-shadow: 0 8px 18px rgba(77, 138, 107, 0.18);
}

.button.child-action-highlight:hover,
.button.group-action-highlight:hover,
.button.recalculation-action-highlight:hover,
.button.child-next-action__button:hover,
.button.group-next-action__button:hover,
.button.analytics-focus__button:hover,
.button.money-next-action__button:hover,
.button.payroll-attention__button:hover,
.button.recalculation-next-action__button:hover {
    background: #3f775b;
}

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

.stat-card {
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.52);
}

.stat-card span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.stat-card strong {
    color: var(--violet-strong);
    font-size: 20px;
}

.stat-card--warm {
    border-color: rgba(128, 96, 154, 0.18);
    background: rgba(128, 96, 154, 0.06);
}

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

.analytics-kpi {
    min-height: 124px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.66);
}

.analytics-kpi--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--graphite), var(--violet-strong));
}

.analytics-kpi span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.analytics-kpi--primary span,
.analytics-kpi--primary small {
    color: rgba(255, 255, 255, 0.76);
}

.analytics-kpi strong {
    margin: 10px 0 8px;
    color: var(--violet-strong);
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1;
}

.analytics-kpi--primary strong {
    color: #fff;
}

.analytics-kpi small {
    color: var(--muted);
    line-height: 1.35;
}

.analytics-focus {
    margin-bottom: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.68);
}

.analytics-focus--ok {
    border-color: rgba(77, 138, 107, 0.22);
    background: linear-gradient(135deg, rgba(77, 138, 107, 0.08), rgba(255, 255, 255, 0.72));
}

.analytics-focus--warning {
    border-color: rgba(214, 171, 89, 0.32);
    background: linear-gradient(135deg, rgba(244, 223, 173, 0.28), rgba(255, 255, 255, 0.72));
}

.analytics-focus--danger {
    border-color: rgba(183, 95, 97, 0.28);
    background: linear-gradient(135deg, rgba(183, 95, 97, 0.1), rgba(255, 255, 255, 0.72));
}

.analytics-focus__main {
    min-width: 0;
}

.analytics-focus__main strong {
    display: block;
    color: var(--graphite);
    font-size: 18px;
    line-height: 1.25;
}

.analytics-focus__main span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    line-height: 1.45;
}

.analytics-focus__chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.analytics-focus__chip {
    min-width: 104px;
    padding: 8px 10px;
    border: 1px solid rgba(55, 42, 61, 0.09);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.58);
}

.analytics-focus__chip small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.analytics-focus__chip b {
    display: block;
    margin-top: 2px;
    color: var(--violet-strong);
    font-size: 16px;
}

.analytics-focus__button {
    white-space: nowrap;
}

.queue-panel {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.tabs {
    padding: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid var(--line);
}

.tab {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 750;
    font-size: 13px;
    background: transparent;
}

.tab span {
    min-width: 23px;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    color: var(--graphite);
    background: rgba(214, 171, 89, 0.32);
}

.tab--active {
    color: #fff;
    background: var(--graphite);
}

.queue-list {
    padding: 12px;
    gap: 9px;
}

.mode-switch {
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

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

.schedule-attention {
    margin-bottom: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, auto) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.schedule-attention__main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.schedule-attention__main strong {
    color: var(--graphite);
    font-size: 16px;
}

.schedule-attention__main span {
    color: var(--muted);
    line-height: 1.45;
}

.schedule-attention__chips {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.schedule-attention__chip {
    min-width: 92px;
    padding: 7px 8px;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.schedule-attention__chip small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.schedule-attention__chip b {
    color: var(--graphite);
    font-size: 16px;
}

.schedule-attention--ok {
    border-color: rgba(77, 138, 107, 0.24);
    background: linear-gradient(135deg, rgba(77, 138, 107, 0.08), rgba(255, 255, 255, 0.66));
}

.schedule-attention--warning {
    border-color: rgba(214, 171, 89, 0.34);
    background: linear-gradient(135deg, rgba(244, 223, 173, 0.28), rgba(255, 255, 255, 0.66));
}

.schedule-attention--danger {
    border-color: rgba(183, 95, 97, 0.3);
    background: linear-gradient(135deg, rgba(183, 95, 97, 0.09), rgba(255, 255, 255, 0.66));
}

.schedule-attention__button {
    min-width: 140px;
}

.team-attention {
    margin-bottom: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, auto) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.team-attention__main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.team-attention__main strong {
    color: var(--graphite);
    font-size: 16px;
}

.team-attention__main span {
    color: var(--muted);
    line-height: 1.45;
}

.team-attention__chips {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.team-attention__chip {
    min-width: 92px;
    padding: 7px 8px;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.team-attention__chip small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.team-attention__chip b {
    color: var(--graphite);
    font-size: 16px;
}

.team-attention--ok {
    border-color: rgba(77, 138, 107, 0.24);
    background: linear-gradient(135deg, rgba(77, 138, 107, 0.08), rgba(255, 255, 255, 0.66));
}

.team-attention--warning {
    border-color: rgba(214, 171, 89, 0.34);
    background: linear-gradient(135deg, rgba(244, 223, 173, 0.28), rgba(255, 255, 255, 0.66));
}

.team-attention--danger {
    border-color: rgba(183, 95, 97, 0.3);
    background: linear-gradient(135deg, rgba(183, 95, 97, 0.09), rgba(255, 255, 255, 0.66));
}

.team-attention__button {
    min-width: 140px;
}

.team-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.25fr);
    gap: 16px;
    align-items: start;
}

.teacher-card {
    display: grid;
    gap: 14px;
}

.teacher-card > .panel__head {
    margin-bottom: 0;
}

.teacher-card__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.teacher-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.teacher-summary-card {
    min-width: 0;
    min-height: 92px;
    padding: 11px;
    display: grid;
    align-content: space-between;
    gap: 6px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.teacher-summary-card span,
.teacher-summary-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.32;
}

.teacher-summary-card strong {
    color: var(--graphite);
    font-size: 17px;
    line-height: 1.1;
}

.teacher-summary-card--ok {
    border-color: rgba(77, 138, 107, 0.22);
    background: rgba(77, 138, 107, 0.08);
}

.teacher-summary-card--warning {
    border-color: rgba(214, 171, 89, 0.3);
    background: rgba(244, 223, 173, 0.18);
}

.teacher-impact {
    display: grid;
    gap: 12px;
}

.teacher-impact p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.teacher-impact__summary {
    padding: 10px 12px;
    border: 1px solid rgba(214, 171, 89, 0.35);
    border-radius: 8px;
    background: rgba(244, 223, 173, 0.16);
    color: var(--graphite);
    font-weight: 900;
}

.teacher-impact__list {
    max-height: 360px;
    overflow: auto;
    display: grid;
    gap: 8px;
}

.teacher-impact-item {
    padding: 10px 12px;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.teacher-impact-item strong,
.teacher-impact-item small,
.teacher-impact-item__details span {
    display: block;
}

.teacher-impact-item strong {
    color: var(--graphite);
    font-weight: 900;
}

.teacher-impact-item small,
.teacher-impact-item__details {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.35;
}

.teacher-impact-item__muted,
.teacher-impact__more {
    color: var(--purple);
    font-weight: 900;
}

.teacher-card-section {
    padding: 12px;
    display: grid;
    gap: 10px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 250, 243, 0.58);
}

.teacher-card-section__head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.teacher-card-section__head h3 {
    margin: 0;
    color: var(--graphite);
    font-size: 17px;
}

.settings-attention {
    margin-bottom: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, auto) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.settings-attention__main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.settings-attention__main strong {
    color: var(--graphite);
    font-size: 16px;
}

.settings-attention__main span {
    color: var(--muted);
    line-height: 1.45;
}

.settings-attention__chips {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.settings-attention__chip {
    min-width: 92px;
    padding: 7px 8px;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.settings-attention__chip small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.settings-attention__chip b {
    color: var(--graphite);
    font-size: 16px;
}

.settings-attention--ok {
    border-color: rgba(77, 138, 107, 0.24);
    background: linear-gradient(135deg, rgba(77, 138, 107, 0.08), rgba(255, 255, 255, 0.66));
}

.settings-attention--warning {
    border-color: rgba(214, 171, 89, 0.34);
    background: linear-gradient(135deg, rgba(244, 223, 173, 0.28), rgba(255, 255, 255, 0.66));
}

.settings-attention--danger {
    border-color: rgba(183, 95, 97, 0.3);
    background: linear-gradient(135deg, rgba(183, 95, 97, 0.09), rgba(255, 255, 255, 0.66));
}

.settings-attention__button {
    min-width: 140px;
}

.whatsapp-attention {
    margin-bottom: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, auto) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.whatsapp-attention__main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.whatsapp-attention__main strong {
    color: var(--graphite);
    font-size: 16px;
}

.whatsapp-attention__main span {
    color: var(--muted);
    line-height: 1.45;
}

.whatsapp-attention__chips {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.whatsapp-attention__chip {
    min-width: 86px;
    padding: 7px 8px;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.whatsapp-attention__chip small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.whatsapp-attention__chip b {
    color: var(--graphite);
    font-size: 16px;
}

.whatsapp-attention--ok {
    border-color: rgba(77, 138, 107, 0.24);
    background: linear-gradient(135deg, rgba(77, 138, 107, 0.08), rgba(255, 255, 255, 0.66));
}

.whatsapp-attention--warning {
    border-color: rgba(214, 171, 89, 0.34);
    background: linear-gradient(135deg, rgba(244, 223, 173, 0.28), rgba(255, 255, 255, 0.66));
}

.whatsapp-attention--danger {
    border-color: rgba(183, 95, 97, 0.3);
    background: linear-gradient(135deg, rgba(183, 95, 97, 0.09), rgba(255, 255, 255, 0.66));
}

.whatsapp-attention__button {
    min-width: 140px;
}

.schedule-grid-toolbar {
    margin-bottom: 14px;
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    gap: 14px;
    align-items: end;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
}

.schedule-grid-toolbar strong,
.schedule-grid-toolbar span {
    display: block;
}

.schedule-grid-toolbar strong {
    margin-bottom: 4px;
    color: var(--graphite);
    font-weight: 950;
}

.schedule-grid-toolbar span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.schedule-panel {
    overflow: hidden;
}

.room-admin-panel {
    margin-bottom: 18px;
}

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

.room-admin-floor {
    padding: 12px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.56);
}

.room-admin-floor__head {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.room-admin-floor__title {
    margin: 0;
    font-size: 16px;
}

.room-admin-rooms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 8px;
}

.room-admin-room {
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 12px;
    background: rgba(255, 250, 243, 0.72);
}

.room-admin-room__info {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.room-admin-room strong {
    color: var(--graphite);
}

.room-admin-room span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.room-admin-room__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.schedule-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.time-slot {
    min-height: 102px;
    padding: 12px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 14px;
    color: var(--text);
    text-align: left;
    background: rgba(255, 255, 255, 0.62);
}

.time-slot--busy {
    border-color: rgba(128, 96, 154, 0.34);
    background:
        linear-gradient(145deg, rgba(128, 96, 154, 0.11), rgba(214, 171, 89, 0.12)),
        rgba(255, 255, 255, 0.68);
}

.time-slot__time {
    display: block;
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 900;
}

.time-slot__count {
    display: block;
    margin-bottom: 10px;
    color: var(--violet-strong);
    font-size: 21px;
    font-weight: 950;
}

.time-slot__meta {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

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

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

.dashboard-stat {
    min-height: 112px;
    padding: 14px;
    display: grid;
    align-content: space-between;
    gap: 8px;
    border: 1px solid rgba(55, 42, 61, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.dashboard-stat span,
.dashboard-stat small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.dashboard-stat strong {
    color: var(--graphite);
    font-size: 24px;
    line-height: 1;
}

.dashboard-stat--warm {
    border-color: rgba(214, 171, 89, 0.32);
    background: rgba(244, 223, 173, 0.22);
}

.dashboard-stat--danger {
    border-color: rgba(183, 95, 97, 0.26);
    background: rgba(183, 95, 97, 0.09);
}

.dashboard-worklist {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(340px, 1.2fr) minmax(280px, 0.95fr);
    gap: 14px;
    align-items: start;
}

.dashboard-column {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.dashboard-column h2 {
    margin: 0;
    color: var(--graphite);
    font-size: 18px;
}

.dashboard-actions,
.dashboard-lessons {
    display: grid;
    gap: 8px;
}

.dashboard-action,
.dashboard-lesson {
    min-width: 0;
    padding: 12px;
    display: grid;
    gap: 10px;
    border: 1px solid rgba(55, 42, 61, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
}

.dashboard-action {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.dashboard-action .button {
    grid-column: 1 / -1;
    justify-self: start;
}

.dashboard-action strong,
.dashboard-lesson strong {
    display: block;
    color: var(--graphite);
    line-height: 1.25;
}

.dashboard-action span,
.dashboard-lesson span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.dashboard-action b {
    color: var(--violet-strong);
    font-size: 20px;
    white-space: nowrap;
}

.dashboard-action--warning {
    border-color: rgba(214, 171, 89, 0.34);
    background: rgba(244, 223, 173, 0.2);
}

.dashboard-action--danger {
    border-color: rgba(183, 95, 97, 0.28);
    background: rgba(183, 95, 97, 0.08);
}

.dashboard-action--ok {
    border-color: rgba(77, 138, 107, 0.26);
    background: rgba(77, 138, 107, 0.09);
}

.dashboard-lesson {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.status-pill {
    width: max-content;
    max-width: 150px;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--violet-strong);
    background: rgba(128, 96, 154, 0.09);
    font-size: 12px;
    font-weight: 850;
    text-align: center;
}

.status-pill--ok {
    color: var(--green);
    background: rgba(77, 138, 107, 0.11);
}

.status-pill--warning {
    color: #9a7133;
    background: rgba(214, 171, 89, 0.18);
}

.status-pill--danger {
    color: var(--red);
    background: rgba(183, 95, 97, 0.12);
}

.dashboard-readiness {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid rgba(55, 42, 61, 0.11);
    border-radius: 8px;
    background: rgba(255, 250, 243, 0.82);
}

.dashboard-readiness__head {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.dashboard-readiness__head h2 {
    margin: 0;
    color: var(--graphite);
    font-size: 20px;
}

.dashboard-readiness__summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.dashboard-readiness__list {
    display: grid;
    gap: 8px;
}

.dashboard-task-panel {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid rgba(55, 42, 61, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
}

.dashboard-task-panel__head {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.dashboard-task-panel__head h2 {
    margin: 0;
    color: var(--graphite);
    font-size: 20px;
}

.dashboard-task-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-task {
    min-width: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 250, 243, 0.72);
}

.dashboard-task--high {
    border-color: rgba(183, 95, 97, 0.28);
    background: rgba(183, 95, 97, 0.08);
}

.dashboard-task strong {
    display: block;
    color: var(--graphite);
    line-height: 1.25;
}

.dashboard-task span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.dashboard-task__meta {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dashboard-task__meta span {
    width: max-content;
    margin: 0;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(128, 96, 154, 0.08);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.dashboard-task__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero--tasks {
    align-items: stretch;
}

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

.tasks-kpi {
    min-height: 102px;
    padding: 13px;
    display: grid;
    align-content: space-between;
    gap: 7px;
    border: 1px solid rgba(55, 42, 61, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.tasks-kpi span,
.tasks-kpi small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.tasks-kpi strong {
    color: var(--graphite);
    font-size: 24px;
    line-height: 1;
}

.tasks-kpi--ok {
    border-color: rgba(77, 138, 107, 0.22);
    background: rgba(77, 138, 107, 0.08);
}

.tasks-kpi--danger {
    border-color: rgba(183, 95, 97, 0.26);
    background: rgba(183, 95, 97, 0.08);
}

.tasks-board {
    padding: 14px;
    border: 1px solid rgba(55, 42, 61, 0.11);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
}

.tasks-board__head {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.tasks-board__head h2 {
    margin: 0;
    color: var(--graphite);
    font-size: 20px;
}

.tasks-board__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

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

.task-center-item {
    min-width: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 250, 243, 0.68);
}

.task-center-item--generated {
    background: rgba(255, 255, 255, 0.66);
}

.task-center-item--overdue {
    border-color: rgba(183, 95, 97, 0.28);
    background: rgba(183, 95, 97, 0.08);
}

.task-center-item__main {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.task-center-item__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.task-center-item__head strong {
    display: block;
    color: var(--graphite);
    line-height: 1.25;
}

.task-center-item__head span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.task-center-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.task-center-item__meta span {
    width: max-content;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(128, 96, 154, 0.08);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.task-center-item__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.task-center-item__actions .button {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 13px;
}

.readiness-check {
    min-width: 0;
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.readiness-check strong {
    display: block;
    color: var(--graphite);
}

.readiness-check span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.readiness-check b {
    color: var(--violet-strong);
    white-space: nowrap;
}

.readiness-check--ok {
    border-color: rgba(77, 138, 107, 0.2);
}

.readiness-check--warning {
    border-color: rgba(214, 171, 89, 0.32);
    background: rgba(244, 223, 173, 0.14);
}

.readiness-check--danger {
    border-color: rgba(183, 95, 97, 0.25);
    background: rgba(183, 95, 97, 0.07);
}

.schedule-week {
    overflow: auto;
}

.schedule-week__head {
    margin-bottom: 14px;
    min-width: 980px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: end;
}

.schedule-week__head h2 {
    margin: 0;
    color: var(--graphite);
    font-size: 26px;
}

.schedule-week__total {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--violet-strong);
    font-weight: 950;
    background: rgba(214, 171, 89, 0.22);
}

.schedule-week-grid {
    min-width: 980px;
    display: grid;
    grid-template-columns: 100px repeat(var(--week-days, 7), minmax(118px, 1fr));
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.58);
}

.schedule-week-grid__head,
.schedule-week-grid__time,
.schedule-week-cell {
    min-height: 58px;
    padding: 10px;
    border-right: 1px solid rgba(55, 42, 61, 0.1);
    border-bottom: 1px solid rgba(55, 42, 61, 0.1);
}

.schedule-week-grid__head {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--graphite);
    font-weight: 950;
    background: rgba(255, 250, 243, 0.96);
}

.schedule-week-grid__head--today {
    color: var(--violet-strong);
    background: rgba(128, 96, 154, 0.12);
}

.schedule-week-grid__head--selected {
    box-shadow: inset 0 -4px 0 rgba(214, 171, 89, 0.58);
}

.schedule-week-grid__time {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    background: rgba(255, 250, 243, 0.72);
}

.schedule-week-cell {
    display: grid;
    gap: 6px;
    place-items: center;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.schedule-week-cell:hover {
    background: rgba(214, 171, 89, 0.14);
}

.schedule-week-cell--busy {
    color: var(--graphite);
    background:
        linear-gradient(145deg, rgba(128, 96, 154, 0.14), rgba(214, 171, 89, 0.14)),
        rgba(255, 255, 255, 0.74);
}

.schedule-week-cell--start {
    box-shadow: inset 4px 0 0 rgba(128, 96, 154, 0.54);
}

.schedule-week-cell--now {
    background:
        linear-gradient(145deg, rgba(77, 138, 107, 0.16), rgba(214, 171, 89, 0.12)),
        rgba(255, 255, 255, 0.78);
}

.schedule-week-cell--warning {
    background:
        linear-gradient(145deg, rgba(214, 171, 89, 0.22), rgba(128, 96, 154, 0.1)),
        rgba(255, 255, 255, 0.78);
}

.schedule-week-cell--danger {
    box-shadow: inset 4px 0 0 rgba(183, 95, 97, 0.72);
    background:
        linear-gradient(145deg, rgba(183, 95, 97, 0.2), rgba(244, 223, 173, 0.18)),
        rgba(255, 255, 255, 0.78);
}

.time-slot.is-highlighted,
.schedule-week-cell.is-highlighted,
.lesson-chip.is-highlighted,
.room-grid__busy-note.is-highlighted,
.schedule-drawer-lesson.is-highlighted {
    position: relative;
    border-color: rgba(111, 71, 150, 0.72) !important;
    box-shadow: 0 0 0 3px rgba(111, 71, 150, 0.18), 0 12px 26px rgba(111, 71, 150, 0.18);
    animation: scheduleHighlightPulse 1.15s ease-in-out 0s 5;
}

.schedule-drawer-lesson.is-highlighted::after {
    content: "Найдено";
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(111, 71, 150, 0.14);
    color: var(--purple);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@keyframes scheduleHighlightPulse {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1px);
    }
}

.schedule-week-cell__main {
    display: grid;
    gap: 2px;
    place-items: center;
}

.schedule-week-cell strong {
    color: var(--violet-strong);
    font-size: 22px;
    line-height: 1;
}

.schedule-week-cell span {
    font-size: 12px;
    font-weight: 900;
}

.schedule-week-cell small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.schedule-week-cell__free {
    color: rgba(122, 111, 126, 0.54);
}

.schedule-week-cell__indicators {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.schedule-week-cell__indicator {
    min-width: 0;
    padding: 3px 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
}

.schedule-week-cell__indicator b,
.schedule-week-cell__indicator em {
    font-style: normal;
    line-height: 1;
}

.schedule-week-cell__indicator.is-planned {
    color: var(--violet-strong);
    border-color: rgba(128, 96, 154, 0.18);
    background: rgba(128, 96, 154, 0.1);
}

.schedule-week-cell__indicator.is-closed {
    color: #2f6f50;
    border-color: rgba(77, 138, 107, 0.22);
    background: rgba(77, 138, 107, 0.1);
}

.schedule-week-cell__indicator.is-review {
    color: #7a5b1f;
    border-color: rgba(214, 171, 89, 0.3);
    background: rgba(244, 223, 173, 0.24);
}

.schedule-week-cell__indicator.is-danger {
    color: #9b4244;
    border-color: rgba(183, 95, 97, 0.28);
    background: rgba(183, 95, 97, 0.1);
}

.schedule-week-cell__indicator.is-inactive {
    color: rgba(122, 111, 126, 0.94);
    border-color: rgba(122, 111, 126, 0.18);
    background: rgba(122, 111, 126, 0.08);
}

.schedule-rooms {
    overflow: auto;
}

.floor-board {
    margin-bottom: 20px;
    min-width: 820px;
}

.floor-board__title {
    margin: 0 0 10px;
    color: var(--graphite);
    font-size: 22px;
}

.room-grid {
    display: grid;
    grid-template-columns: 96px repeat(var(--room-count, 1), minmax(190px, 1fr));
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.54);
}

.room-grid__head,
.room-grid__time,
.room-grid__cell {
    min-height: 64px;
    padding: 10px;
    border-right: 1px solid rgba(55, 42, 61, 0.09);
    border-bottom: 1px solid rgba(55, 42, 61, 0.09);
}

.room-grid__head {
    color: var(--graphite);
    font-weight: 950;
    background: rgba(214, 171, 89, 0.18);
}

.room-grid__time {
    color: var(--muted);
    font-weight: 950;
    background: rgba(128, 96, 154, 0.08);
}

.room-grid__cell--busy {
    background: rgba(214, 171, 89, 0.08);
}

.room-grid__cell--continuation {
    background: repeating-linear-gradient(
        135deg,
        rgba(128, 96, 154, 0.08),
        rgba(128, 96, 154, 0.08) 8px,
        rgba(214, 171, 89, 0.11) 8px,
        rgba(214, 171, 89, 0.11) 16px
    );
}

.lesson-chip {
    width: 100%;
    padding: 10px;
    position: relative;
    display: grid;
    gap: 5px;
    overflow: hidden;
    border: 1px solid rgba(128, 96, 154, 0.12);
    border-radius: 14px;
    color: var(--graphite);
    text-align: left;
    background: rgba(128, 96, 154, 0.14);
    font-size: 13px;
    line-height: 1.35;
}

.lesson-chip::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: rgba(128, 96, 154, 0.54);
}

.lesson-chip__top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}

.lesson-chip__top strong {
    min-width: 0;
}

.lesson-chip strong {
    color: var(--violet-strong);
}

.lesson-chip.is-closed {
    border-color: rgba(77, 138, 107, 0.24);
    background: rgba(77, 138, 107, 0.13);
}

.lesson-chip.is-closed::before {
    background: var(--green);
}

.lesson-chip.is-review {
    border-color: rgba(214, 171, 89, 0.34);
    background: rgba(214, 171, 89, 0.16);
}

.lesson-chip.is-review::before,
.lesson-chip.is-moved::before {
    background: var(--gold);
}

.lesson-chip.is-inactive {
    border-color: rgba(183, 95, 97, 0.24);
    background: rgba(183, 95, 97, 0.12);
}

.lesson-chip.is-inactive::before {
    background: var(--red);
}

.room-grid__busy-note {
    width: 100%;
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    border: 1px dashed rgba(128, 96, 154, 0.32);
    border-radius: 12px;
    color: var(--muted);
    text-align: left;
    background: rgba(255, 255, 255, 0.42);
    font-size: 12px;
    font-weight: 900;
}

.lesson-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
    max-width: 190px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--violet-strong);
    background: rgba(128, 96, 154, 0.1);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.lesson-status-indicator__icon {
    display: inline-grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--violet-strong);
    font-size: 11px;
    line-height: 1;
}

.lesson-status-indicator--compact {
    flex: 0 0 auto;
    max-width: 128px;
    padding: 3px 7px;
    gap: 4px;
    font-size: 11px;
}

.lesson-status-indicator--compact .lesson-status-indicator__icon {
    width: 15px;
    height: 15px;
    font-size: 9px;
}

.lesson-status-indicator.is-closed {
    color: #2f7154;
    background: rgba(77, 138, 107, 0.13);
}

.lesson-status-indicator.is-closed .lesson-status-indicator__icon {
    background: var(--green);
}

.lesson-status-indicator.is-review,
.lesson-status-indicator.is-moved {
    color: #7a5520;
    background: rgba(214, 171, 89, 0.18);
}

.lesson-status-indicator.is-review .lesson-status-indicator__icon,
.lesson-status-indicator.is-moved .lesson-status-indicator__icon {
    background: var(--gold);
}

.lesson-status-indicator.is-inactive {
    color: #94464d;
    background: rgba(183, 95, 97, 0.13);
}

.lesson-status-indicator.is-inactive .lesson-status-indicator__icon {
    background: var(--red);
}

.analytics-layout {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: minmax(420px, 1.2fr) minmax(320px, 0.8fr);
    gap: 14px;
}

.analytics-layout--wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analytics-loss {
    min-width: 118px;
    padding: 10px 12px;
    border-radius: 18px;
    color: var(--muted);
    text-align: right;
    background: rgba(214, 171, 89, 0.16);
    font-weight: 800;
}

.analytics-loss span {
    display: block;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.analytics-loss strong {
    display: block;
    color: var(--violet-strong);
    font-size: 30px;
    line-height: 1;
}

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

.funnel-item {
    padding: 11px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.funnel-item--danger {
    border-color: rgba(183, 95, 97, 0.22);
    background: rgba(183, 95, 97, 0.08);
}

.funnel-item__step {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--violet), var(--violet-strong));
    font-weight: 950;
}

.funnel-item strong {
    display: block;
    color: var(--graphite);
}

.funnel-item span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.funnel-item b,
.analytics-attention-value {
    color: var(--violet-strong);
    font-size: 22px;
}

.analytics-metric-list {
    display: grid;
    gap: 8px;
}

.analytics-metric {
    position: relative;
    overflow: hidden;
    padding: 11px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
}

.analytics-metric::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    width: var(--metric-width, 0);
    background: linear-gradient(90deg, var(--violet), var(--gold));
    opacity: 0.7;
}

.analytics-metric--warn::before {
    background: linear-gradient(90deg, var(--gold), #c99238);
}

.analytics-metric--danger::before {
    background: linear-gradient(90deg, var(--red), #8f454d);
}

.analytics-metric--ok::before {
    background: linear-gradient(90deg, var(--green), #8fbb9f);
}

.analytics-metric strong {
    display: block;
    color: var(--graphite);
    font-size: 15px;
}

.analytics-metric span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
}

.analytics-metric b {
    color: var(--violet-strong);
    font-size: 20px;
    white-space: nowrap;
}

.analytics-table {
    display: grid;
    gap: 7px;
}

.analytics-table__row {
    padding: 10px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
    border-bottom: 1px solid rgba(55, 42, 61, 0.1);
}

.analytics-table__row:last-child {
    border-bottom: 0;
}

.analytics-table__row span {
    color: var(--graphite);
    font-weight: 750;
}

.analytics-table__row strong {
    color: var(--violet-strong);
    white-space: nowrap;
}

.analytics-table__row small {
    grid-column: 1 / -1;
    color: var(--muted);
    line-height: 1.35;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    justify-content: flex-end;
    background: rgba(31, 25, 35, 0.36);
    backdrop-filter: blur(7px);
}

.drawer {
    width: min(620px, 100%);
    height: 100%;
    overflow: auto;
    padding: 18px;
    background: var(--paper);
    box-shadow: -24px 0 70px rgba(31, 25, 35, 0.22);
}

.drawer__head {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: start;
}

.drawer__title {
    margin: 0;
    font-size: 24px;
}

.drawer__stats {
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.drawer__free {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 18px;
    color: var(--muted);
    background: rgba(214, 171, 89, 0.13);
    line-height: 1.5;
}

.drawer__free-head {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--graphite);
}

.drawer__free-head strong {
    font-weight: 950;
}

.drawer__free-head span {
    color: var(--violet-strong);
    font-weight: 850;
}

.drawer__free-empty {
    color: var(--muted);
}

.drawer-free-floor {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 10px;
    align-items: start;
}

.drawer-free-floor + .drawer-free-floor {
    margin-top: 10px;
}

.drawer-free-floor__name {
    color: var(--muted);
    font-weight: 850;
}

.drawer-free-floor__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.drawer-free-chip {
    padding: 4px 9px;
    border: 1px solid rgba(128, 96, 154, 0.14);
    border-radius: 999px;
    color: var(--graphite);
    background: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.floor-group {
    margin-top: 14px;
}

.floor-group__title {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.room-group {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.58);
}

.room-group__title {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--graphite);
    font-weight: 950;
}

.room-group__title span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.room-group__title strong {
    color: var(--graphite);
}

.room-group__title em {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--violet-strong);
    background: rgba(128, 96, 154, 0.08);
    font-size: 12px;
    font-style: normal;
    font-weight: 850;
}

.schedule-drawer-lesson {
    padding: 14px;
    position: relative;
    overflow: hidden;
    border-color: rgba(55, 42, 61, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 34px rgba(31, 25, 35, 0.07);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.schedule-drawer-lesson::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: rgba(128, 96, 154, 0.46);
}

.schedule-drawer-lesson:hover,
.schedule-drawer-lesson:focus-visible {
    border-color: rgba(128, 96, 154, 0.32);
    box-shadow: 0 18px 42px rgba(31, 25, 35, 0.11);
    transform: translateY(-1px);
    outline: none;
}

.schedule-drawer-lesson.is-closed {
    border-color: rgba(77, 138, 107, 0.25);
    background:
        linear-gradient(90deg, rgba(77, 138, 107, 0.08), rgba(255, 255, 255, 0.86) 42%),
        rgba(255, 255, 255, 0.82);
}

.schedule-drawer-lesson.is-closed::before {
    background: var(--green);
}

.schedule-drawer-lesson.is-review,
.schedule-drawer-lesson.is-moved {
    border-color: rgba(214, 171, 89, 0.32);
    background:
        linear-gradient(90deg, rgba(214, 171, 89, 0.09), rgba(255, 255, 255, 0.86) 42%),
        rgba(255, 255, 255, 0.82);
}

.schedule-drawer-lesson.is-review::before,
.schedule-drawer-lesson.is-moved::before {
    background: var(--gold);
}

.schedule-drawer-lesson.is-inactive {
    border-color: rgba(183, 95, 97, 0.24);
    background:
        linear-gradient(90deg, rgba(183, 95, 97, 0.07), rgba(255, 255, 255, 0.86) 42%),
        rgba(255, 255, 255, 0.82);
}

.schedule-drawer-lesson.is-inactive::before {
    background: var(--red);
}

.schedule-drawer-lesson__head {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.schedule-drawer-lesson__label {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schedule-drawer-lesson__title {
    color: var(--text);
    font-size: 16px;
    font-weight: 950;
    line-height: 1.25;
}

.schedule-drawer-lesson__status,
.schedule-drawer-lesson__notice {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 170px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--violet-strong);
    background: rgba(128, 96, 154, 0.1);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.schedule-drawer-lesson__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.schedule-drawer-lesson__detail {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(55, 42, 61, 0.09);
    border-radius: 14px;
    background: rgba(255, 250, 243, 0.64);
}

.schedule-drawer-lesson__detail span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.schedule-drawer-lesson__detail strong {
    display: block;
    overflow: hidden;
    color: var(--graphite);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.3;
    text-overflow: ellipsis;
}

.schedule-drawer-lesson__notice {
    margin-top: 10px;
    color: #8a5d00;
    background: rgba(214, 171, 89, 0.16);
}

.schedule-drawer-lesson__actions {
    margin-top: 12px;
}

.money-layout {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.4fr);
    gap: 14px;
    align-items: start;
}

.panel {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 250, 243, 0.74);
    box-shadow: var(--shadow);
}

.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-color: rgba(183, 95, 97, 0.28);
    background: rgba(183, 95, 97, 0.07);
}

.muted-text {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.lead-next-step {
    margin: 12px 0;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(128, 96, 154, 0.16);
    border-radius: 16px;
    background: rgba(128, 96, 154, 0.07);
}

.lead-next-step span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lead-next-step strong {
    display: block;
    line-height: 1.3;
    font-size: 16px;
}

.lead-next-step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.lead-next-step--warn {
    border-color: rgba(214, 171, 89, 0.38);
    background: rgba(214, 171, 89, 0.11);
}

.lead-next-step--ok {
    border-color: rgba(77, 138, 107, 0.3);
    background: rgba(77, 138, 107, 0.1);
}

.lead-stage-summary {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.lead-stage-summary__item {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 10px;
    background: rgba(255, 250, 243, 0.72);
}

.lead-stage-summary__item span,
.lead-stage-summary__item small {
    display: block;
}

.lead-stage-summary__item span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
}

.lead-stage-summary__item strong {
    display: block;
    margin: 4px 0 2px;
    color: var(--violet-strong);
    font-size: 22px;
    font-weight: 950;
}

.lead-stage-summary__item small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-list-item {
    display: grid;
    gap: 8px;
}

.lead-list-item__status {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.lead-stage-chip {
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--violet-strong);
    font-size: 11px;
    font-weight: 900;
    background: rgba(128, 96, 154, 0.1);
    white-space: nowrap;
}

.lead-stage-chip--warn {
    color: #8a5d00;
    background: rgba(214, 171, 89, 0.18);
}

.lead-stage-chip--ok {
    color: #2f6b50;
    background: rgba(77, 138, 107, 0.14);
}

.lead-list-item__next {
    padding-top: 7px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid rgba(55, 42, 61, 0.08);
}

.lead-list-item__next span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead-list-item__next strong {
    color: var(--graphite);
    font-size: 13px;
    text-align: right;
}

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

.lead-pipeline__step {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.48);
}

.lead-pipeline__step span {
    width: 24px;
    height: 24px;
    margin-bottom: 7px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    background: rgba(55, 42, 61, 0.08);
}

.lead-pipeline__step strong,
.lead-pipeline__step small {
    display: block;
}

.lead-pipeline__step strong {
    overflow: hidden;
    color: var(--graphite);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lead-pipeline__step small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.lead-pipeline__step.is-active {
    border-color: rgba(214, 171, 89, 0.42);
    background: rgba(214, 171, 89, 0.12);
}

.lead-pipeline__step.is-active span {
    color: #6d4a00;
    background: rgba(214, 171, 89, 0.3);
}

.lead-pipeline__step.is-done {
    border-color: rgba(77, 138, 107, 0.22);
    background: rgba(77, 138, 107, 0.08);
}

.lead-pipeline__step.is-done span {
    color: #ffffff;
    background: #4d8a6b;
}

.panel__head,
.subhead {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.panel__head h2,
.subhead h3 {
    margin-bottom: 0;
}

.child-card {
    display: grid;
    align-self: start;
    align-content: start;
    grid-auto-rows: max-content;
    gap: 18px;
    padding: 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.child-card > .panel__head {
    margin-bottom: 0;
    padding: 0;
    align-items: flex-start;
}

.child-card > .panel__head .eyebrow {
    margin-bottom: 8px;
}

.child-card > .panel__head h2 {
    font-size: 28px;
    line-height: 1.12;
}

.child-card__identity {
    margin-top: -8px;
    display: grid;
    justify-items: start;
    gap: 12px;
}

.child-card__status-pill {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
}

.child-card__identity-meta {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.35;
}

.child-next-action,
.group-next-action {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.child-next-action > div,
.group-next-action > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.child-next-action strong,
.group-next-action strong {
    color: var(--graphite);
    font-size: 16px;
}

.child-next-action span,
.group-next-action span {
    color: var(--muted);
    line-height: 1.45;
}

.child-next-action--ok,
.group-next-action--ok {
    border-color: rgba(77, 138, 107, 0.24);
    background: linear-gradient(135deg, rgba(77, 138, 107, 0.09), rgba(255, 255, 255, 0.66));
}

.child-next-action--warning,
.group-next-action--warning {
    border-color: rgba(214, 171, 89, 0.34);
    background: linear-gradient(135deg, rgba(244, 223, 173, 0.28), rgba(255, 255, 255, 0.66));
}

.child-next-action--danger,
.group-next-action--danger {
    border-color: rgba(183, 95, 97, 0.3);
    background: linear-gradient(135deg, rgba(183, 95, 97, 0.09), rgba(255, 255, 255, 0.66));
}

.child-next-action {
    display: none;
}

.child-work-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 10px;
    background: rgba(255, 250, 243, 0.52);
}

.child-work-summary__card {
    min-width: 0;
    min-height: 132px;
    padding: 20px 22px;
    display: grid;
    align-content: space-between;
    gap: 12px;
    border: 0;
    border-right: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 0;
    background: transparent;
}

.child-work-summary__card:last-child {
    border-right: 0;
}

.child-work-summary__card span,
.child-work-summary__card small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.32;
}

.child-work-summary__card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.child-work-summary__card span b {
    color: var(--purple);
    font-size: 18px;
    line-height: 1;
}

.child-work-summary__card strong {
    color: var(--graphite);
    font-size: 20px;
    line-height: 1.15;
}

.child-work-summary__card--ok {
    background: rgba(77, 138, 107, 0.045);
}

.child-work-summary__card--warning {
    background: rgba(244, 223, 173, 0.13);
}

.child-work-summary__card--danger {
    background: rgba(183, 95, 97, 0.07);
}

.child-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.child-quick-actions__button {
    min-height: 48px;
    justify-content: center;
    gap: 10px;
    border-radius: 8px;
    color: var(--purple);
    background: rgba(255, 255, 255, 0.7);
}

.child-quick-actions__button span {
    font-size: 21px;
    line-height: 1;
}

.child-quick-actions__button--primary {
    color: #ffffff;
    border-color: rgba(128, 96, 154, 0.5);
    background: linear-gradient(135deg, #6f3ea2, #7f57b1);
    box-shadow: 0 16px 30px rgba(128, 96, 154, 0.22);
}

.child-card__top-actions,
.child-card-section__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.child-card__top-actions {
    justify-content: flex-end;
    align-items: center;
}

.child-card-section__actions {
    justify-content: flex-start;
}

.child-card__refresh,
.child-card-refresh-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: var(--purple);
    font-size: 18px;
    line-height: 1;
}

.child-card__whatsapp {
    color: #1f7a4c;
    border-color: rgba(31, 122, 76, 0.24);
    background: rgba(77, 138, 107, 0.1);
}

.child-card-section {
    padding: 0;
    display: grid;
    gap: 0;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
    overflow: hidden;
}

.child-card-section--info {
    background: rgba(255, 255, 255, 0.62);
}

.child-card-section--learning {
    border-color: rgba(128, 96, 154, 0.2);
    background: rgba(255, 255, 255, 0.68);
}

.child-card-section--money {
    border-color: rgba(72, 142, 104, 0.18);
    background: rgba(255, 255, 255, 0.62);
}

.child-card-section--history,
.child-card-section--diagnostic {
    background: rgba(255, 255, 255, 0.62);
}

.child-card-section__head,
.child-card-subsection__head {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
}

.child-card-section__head > div:first-child,
.child-card-subsection__head > h4 {
    grid-column: 1;
    min-width: 0;
}

.child-card-section__head > .child-card-section__actions,
.child-card-section__head > .button:not(.child-card-refresh-button) {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
}

.child-card-section__head > .child-card-refresh-button,
.child-card-subsection__head > .child-card-refresh-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
}

.child-card-section__head > .child-card-disclosure__chevron,
.child-card-subsection__head > .child-card-disclosure__chevron {
    grid-column: 3;
    grid-row: 1;
}

.child-card-section > .compact-list,
.child-card-section > .balance-grid,
.child-card-subsection > .compact-list {
    padding: 16px 20px;
}

.child-card-section--learning > #childProgramBlock {
    padding-top: 18px;
}

.child-card-section__head .eyebrow {
    display: none;
}

.child-card-disclosure__head {
    cursor: pointer;
    user-select: none;
}

.child-card-disclosure__head:focus-visible {
    outline: 2px solid rgba(128, 96, 154, 0.5);
    outline-offset: 4px;
    border-radius: 12px;
}

.child-card-disclosure__chevron {
    width: 28px;
    height: 28px;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--purple);
    font-size: 18px;
    font-weight: 950;
    line-height: 1;
    transition: transform 0.16s ease, background 0.16s ease;
}

.child-card-section.is-collapsed,
.child-card-subsection.is-collapsed {
    gap: 0;
}

.child-card-section.is-collapsed > :not(.child-card-section__head),
.child-card-subsection.is-collapsed > :not(.child-card-subsection__head) {
    display: none;
}

.child-card-section.is-collapsed .child-card-disclosure__chevron,
.child-card-subsection.is-collapsed .child-card-disclosure__chevron {
    transform: rotate(-90deg);
    background: rgba(244, 223, 173, 0.34);
}

.child-card-section__head h3,
.child-card-subsection__head h4 {
    margin: 0;
}

.child-card-section__head h3 {
    color: var(--graphite);
    font-size: 18px;
}

.child-card-section__head h3::before {
    content: '◌';
    margin-right: 12px;
    color: var(--purple);
    font-size: 22px;
    vertical-align: -2px;
}

.child-card-section--learning .child-card-section__head h3::before {
    content: '◇';
}

.child-card-section--money .child-card-section__head h3::before {
    content: '▭';
}

.child-card-section--contacts .child-card-section__head h3::before {
    content: '♙';
}

.child-card-section--diagnostic .child-card-section__head h3::before {
    content: '♡';
}

.child-card-section--history .child-card-section__head h3::before {
    content: '▱';
}

.child-card-subsection {
    padding-top: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(55, 42, 61, 0.1);
}

.child-card-subsection--plain {
    padding-top: 10px;
}

.child-card-subsection__head h4 {
    color: var(--graphite);
    font-size: 15px;
}

.child-card__top-actions .button,
.child-card-section__head > .button,
.child-card-section__actions .button,
.child-card-subsection__head .button {
    min-height: 36px;
    padding-inline: 14px;
    border-radius: 8px;
    font-size: 13px;
}

.child-card__top-actions #editChildButton {
    min-height: 44px;
    padding-inline: 24px;
    color: #ffffff;
    border-color: rgba(128, 96, 154, 0.45);
    background: linear-gradient(135deg, #6f3ea2, #7f57b1);
}

.child-card__top-actions .child-card__refresh,
.child-card-section__head > .child-card-refresh-button,
.child-card-subsection__head > .child-card-refresh-button {
    min-height: 38px;
    padding: 0;
    border-radius: 999px;
}

.child-card-section__head > .button:not(.child-card-refresh-button),
.child-card-section__actions .button,
.child-card-subsection__head .button:not(.child-card-refresh-button) {
    min-width: 0;
    min-height: 34px;
    padding-inline: 12px;
    color: var(--purple);
    background: rgba(255, 255, 255, 0.72);
}

.child-card .lesson-actions .button,
.child-card .payment-actions .button {
    min-height: 30px;
    padding-inline: 9px;
    border-radius: 7px;
    font-size: 12px;
}

.child-card .list-item {
    background: rgba(255, 255, 255, 0.62);
    border-radius: 8px;
}

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

.child-profile-compact__grid div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.child-profile-compact__grid span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.child-profile-compact__grid strong {
    min-width: 0;
    color: var(--graphite);
    font-size: 14px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.child-profile-compact__note {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(55, 42, 61, 0.08);
    color: var(--muted);
    font-weight: 700;
    line-height: 1.4;
}

.child-list-indicators {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.child-list-indicator {
    min-width: 0;
    max-width: 100%;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
}

.child-list-indicator b {
    color: var(--purple);
    font-size: 12px;
    line-height: 1;
}

.child-list-indicator--ok {
    color: #2f6f50;
    border-color: rgba(77, 138, 107, 0.2);
    background: rgba(77, 138, 107, 0.08);
}

.child-list-indicator--warning {
    color: #7a5b1f;
    border-color: rgba(214, 171, 89, 0.26);
    background: rgba(244, 223, 173, 0.18);
}

.child-list-indicator--danger {
    color: #9b4244;
    border-color: rgba(183, 95, 97, 0.24);
    background: rgba(183, 95, 97, 0.08);
}

.list-item__next-action {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(55, 42, 61, 0.08);
    color: var(--violet-strong);
    font-size: 12px;
    font-weight: 750;
}

.child-card .balance-grid {
    margin-bottom: 0;
}

.child-card .empty-state {
    min-height: 88px;
    padding: 16px;
}

.child-activity-feed {
    position: relative;
}

.child-activity-item {
    position: relative;
    min-width: 0;
    padding: 10px 10px 10px 32px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.child-activity-item__dot {
    position: absolute;
    left: 12px;
    top: 16px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--violet-strong);
    box-shadow: 0 0 0 4px rgba(128, 96, 154, 0.1);
}

.child-activity-item__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
}

.child-activity-item__head strong {
    color: var(--graphite);
    line-height: 1.25;
}

.child-activity-item__head span,
.child-activity-item__meta span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.child-activity-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.child-activity-item p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.compact-list {
    display: grid;
    gap: 8px;
}

.list-item {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 10px;
    color: var(--text);
    text-align: left;
    background: rgba(255, 255, 255, 0.52);
}

.list-item--button {
    cursor: pointer;
}

.list-item--button:hover,
.list-item--selected {
    border-color: rgba(128, 96, 154, 0.34);
    background: rgba(128, 96, 154, 0.055);
}

.list-item__head {
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.list-item__title {
    font-size: 14px;
    font-weight: 750;
}

.list-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.balance-grid {
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.balance-card {
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.54);
    border: 1px solid rgba(55, 42, 61, 0.1);
}

.balance-card span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.balance-card strong {
    color: var(--violet-strong);
    font-size: 18px;
}

.money-next-action {
    margin-bottom: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.money-next-action--ok {
    border-color: rgba(77, 138, 107, 0.24);
    background: linear-gradient(135deg, rgba(77, 138, 107, 0.08), rgba(255, 255, 255, 0.66));
}

.money-next-action--warning {
    border-color: rgba(214, 171, 89, 0.34);
    background: linear-gradient(135deg, rgba(244, 223, 173, 0.28), rgba(255, 255, 255, 0.66));
}

.money-next-action--danger {
    border-color: rgba(183, 95, 97, 0.3);
    background: linear-gradient(135deg, rgba(183, 95, 97, 0.09), rgba(255, 255, 255, 0.66));
}

.money-next-action__main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.money-next-action__main strong {
    color: var(--graphite);
    font-size: 16px;
}

.money-next-action__main span {
    color: var(--muted);
    line-height: 1.45;
}

.money-next-action__chips {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.money-next-action__chip {
    min-width: 92px;
    padding: 7px 8px;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.money-next-action__chip small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.money-next-action__chip b {
    color: var(--graphite);
    font-size: 16px;
}

.money-next-action__button {
    min-width: 132px;
}

.payroll-attention {
    margin-bottom: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, auto) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.payroll-attention__main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.payroll-attention__main strong {
    color: var(--graphite);
    font-size: 16px;
}

.payroll-attention__main span {
    color: var(--muted);
    line-height: 1.45;
}

.payroll-attention__chips {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.payroll-attention__chip {
    min-width: 92px;
    padding: 7px 8px;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.payroll-attention__chip small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.payroll-attention__chip b {
    color: var(--graphite);
    font-size: 16px;
}

.payroll-attention--ok {
    border-color: rgba(77, 138, 107, 0.24);
    background: linear-gradient(135deg, rgba(77, 138, 107, 0.08), rgba(255, 255, 255, 0.66));
}

.payroll-attention--warning {
    border-color: rgba(214, 171, 89, 0.34);
    background: linear-gradient(135deg, rgba(244, 223, 173, 0.28), rgba(255, 255, 255, 0.66));
}

.payroll-attention--danger {
    border-color: rgba(183, 95, 97, 0.3);
    background: linear-gradient(135deg, rgba(183, 95, 97, 0.09), rgba(255, 255, 255, 0.66));
}

.payroll-attention__button {
    min-width: 140px;
}

.inline-form {
    margin-bottom: 14px;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    align-items: end;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.42);
}

.inline-form--highlight {
    border-color: rgba(77, 138, 107, 0.38);
    background: rgba(77, 138, 107, 0.09);
    box-shadow: 0 0 0 3px rgba(77, 138, 107, 0.08);
}

.open-charge-list {
    margin-bottom: 14px;
}

.open-charge-item {
    border-left: 4px solid rgba(153, 94, 164, 0.52);
}

.open-charge-item__amount {
    color: var(--violet-strong);
}

.money-month {
    margin-bottom: 10px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
    overflow: hidden;
}

.money-month__summary,
.money-operation__summary {
    cursor: pointer;
    list-style: none;
}

.money-month__summary::-webkit-details-marker,
.money-operation__summary::-webkit-details-marker {
    display: none;
}

.money-month__summary {
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid transparent;
}

.money-month[open] > .money-month__summary {
    border-bottom-color: rgba(55, 42, 61, 0.1);
}

.money-month__summary::before,
.money-operation__summary::before {
    content: "›";
    color: var(--violet-strong);
    font-size: 22px;
    font-weight: 900;
    transition: transform 0.16s ease;
}

.money-month[open] > .money-month__summary::before,
.money-operation[open] > .money-operation__summary::before {
    transform: rotate(90deg);
}

.money-month__summary strong {
    display: block;
    color: var(--graphite);
    font-size: 18px;
}

.money-month__summary span,
.money-month__totals,
.money-operation__summary span {
    color: var(--muted);
    font-size: 13px;
}

.money-month__summary > div:first-child {
    min-width: 180px;
}

.money-month__totals {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
    font-weight: 750;
}

.money-month__body {
    padding: 8px;
    display: grid;
    gap: 8px;
}

.money-operation {
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 12px;
    background: rgba(255, 250, 243, 0.78);
}

.money-operation__summary {
    padding: 10px 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.money-operation__summary strong {
    display: block;
    color: var(--graphite);
    font-size: 17px;
}

.money-operation__body {
    padding: 0 12px 12px 44px;
}

.money-operation__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.money-operation__grid div {
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.62);
}

.money-operation__grid span {
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.money-operation__grid strong {
    color: var(--graphite);
    font-size: 14px;
}

.money-operation__comment {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--muted);
    background: rgba(128, 96, 154, 0.08);
}

.payment-actions,
.lesson-actions {
    margin-top: 9px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lesson-actions {
    align-items: center;
}

.reserve-summary {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
}

.reserve-chip {
    padding: 12px 14px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 16px;
    background: rgba(244, 223, 173, 0.32);
}

.reserve-chip span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reserve-chip strong {
    display: block;
    margin-top: 4px;
    color: var(--violet-strong);
    font-size: 22px;
}

.recalculation-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
    gap: 14px;
    align-items: start;
}

.recalculation-next-action {
    margin: 12px 0;
    padding: 12px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(260px, auto) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.recalculation-next-action__main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.recalculation-next-action__main strong {
    color: var(--graphite);
    font-size: 16px;
}

.recalculation-next-action__main span {
    color: var(--muted);
    line-height: 1.45;
}

.recalculation-next-action__chips {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.recalculation-next-action__chip {
    min-width: 88px;
    padding: 7px 8px;
    display: grid;
    gap: 2px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.58);
}

.recalculation-next-action__chip small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

.recalculation-next-action__chip b {
    color: var(--graphite);
    font-size: 16px;
}

.recalculation-next-action--ok {
    border-color: rgba(77, 138, 107, 0.24);
    background: linear-gradient(135deg, rgba(77, 138, 107, 0.08), rgba(255, 255, 255, 0.66));
}

.recalculation-next-action--warning {
    border-color: rgba(214, 171, 89, 0.34);
    background: linear-gradient(135deg, rgba(244, 223, 173, 0.28), rgba(255, 255, 255, 0.66));
}

.recalculation-next-action--danger {
    border-color: rgba(183, 95, 97, 0.3);
    background: linear-gradient(135deg, rgba(183, 95, 97, 0.09), rgba(255, 255, 255, 0.66));
}

.recalculation-next-action__button {
    min-width: 150px;
}

.recalculation-metrics {
    margin-bottom: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.recalculation-metric {
    padding: 10px 12px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.52);
}

.recalculation-metric span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.recalculation-metric strong {
    display: block;
    margin-top: 4px;
    color: var(--violet-strong);
    font-size: 20px;
}

.recalculation-line-details {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.42);
}

.recalculation-line-details summary {
    cursor: pointer;
    color: var(--violet-strong);
    font-weight: 900;
}

.recalculation-line-details[open] summary {
    margin-bottom: 8px;
}

.status-text {
    font-weight: 900;
}

.status-text--ok {
    color: var(--green);
}

.status-text--warn {
    color: var(--gold);
}

.status-text--danger {
    color: var(--red);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(31, 25, 35, 0.58);
    backdrop-filter: blur(7px);
}

.modal {
    width: min(620px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 0 20px 60px rgba(31, 25, 35, 0.24);
}

.modal--danger {
    border-color: rgba(183, 95, 97, 0.32);
}

.modal__head {
    position: relative;
    padding: 18px 20px 13px;
    border-bottom: 1px solid var(--line);
}

.modal__head::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #d6ab59, #c76d87, #80609a);
}

.modal__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 750;
}

.modal__subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.modal__form {
    padding: 16px 20px 20px;
    display: grid;
    gap: 12px;
}

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

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

.slot-picker {
    grid-column: 1 / -1;
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(126, 96, 155, 0.06);
}

.slot-picker__results {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

.slot-picker__slot {
    padding: 7px 10px;
    border: 1px solid rgba(77, 138, 107, 0.24);
    border-radius: 999px;
    color: var(--green);
    background: rgba(77, 138, 107, 0.1);
    font-weight: 850;
}

.slot-picker__slot--selected {
    color: #fff;
    background: var(--green);
}

.activity-toolbar {
    grid-template-columns: repeat(5, minmax(140px, 1fr)) auto;
}

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

.activity-summary article {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
}

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

.activity-summary span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.activity-summary strong {
    margin-top: 4px;
    font-size: 26px;
}

.activity-list {
    display: grid;
}

.activity-card {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 15px 0;
    border-top: 1px solid var(--line);
}

.activity-card:first-child {
    border-top: 0;
}

.activity-card--failed,
.activity-card--interrupted {
    box-shadow: inset 3px 0 var(--red);
}

.activity-card--partial,
.activity-card--rejected {
    box-shadow: inset 3px 0 var(--gold);
}

.activity-card--running {
    box-shadow: inset 3px 0 var(--violet);
}

.activity-card--completed {
    box-shadow: inset 3px 0 var(--green);
}

.activity-card__time,
.activity-card__meta {
    color: var(--muted);
    font-size: 12px;
}

.activity-card__head,
.activity-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.activity-card__head {
    justify-content: space-between;
}

.activity-card__body p {
    margin: 7px 0;
    color: var(--muted);
}

.activity-detail {
    display: grid;
    gap: 12px;
}

.activity-diff__head,
.activity-diff__row {
    display: grid;
    grid-template-columns: minmax(130px, 0.8fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
}

.activity-diff__head {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.activity-diff__row {
    border-top: 1px solid var(--line);
    overflow-wrap: anywhere;
}

.activity-diff__row span {
    padding: 7px;
    border-radius: 8px;
    background: rgba(126, 96, 155, 0.06);
}

.modal__textarea {
    min-height: 92px;
    padding-top: 10px;
    resize: vertical;
}

.modal__warning {
    padding: 11px 12px;
    border-radius: 12px;
    color: #6f3437;
    background: rgba(183, 95, 97, 0.11);
    border: 1px solid rgba(183, 95, 97, 0.18);
    line-height: 1.45;
    font-weight: 650;
}

.modal__error {
    padding: 12px 14px;
    border-radius: 14px;
    color: #8f2f35;
    background: rgba(216, 61, 74, 0.12);
    border: 1px solid rgba(216, 61, 74, 0.24);
    line-height: 1.45;
    font-weight: 750;
}

.group-student-picker {
    display: grid;
    gap: 12px;
}

.group-student-picker__bar {
    position: sticky;
    top: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding-bottom: 8px;
    background: var(--paper);
}

.group-student-picker__tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.group-student-picker__count {
    min-height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: var(--violet);
    background: rgba(128, 96, 154, 0.1);
    font-weight: 750;
    white-space: nowrap;
}

.group-student-picker__list {
    max-height: min(420px, 50vh);
    overflow: auto;
    display: grid;
    gap: 8px;
    padding-right: 4px;
}

.group-student-picker__item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    cursor: pointer;
}

.group-student-picker__item input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--violet);
}

.group-student-picker__empty {
    padding: 18px;
    border: 1px dashed rgba(55, 42, 61, 0.18);
    border-radius: 10px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.42);
}

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

.payroll-rate-mode__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.54);
    font-weight: 750;
    color: var(--text);
    cursor: pointer;
}

.payroll-rate-mode__option:has(input:checked) {
    border-color: rgba(116, 79, 144, 0.48);
    background: rgba(116, 79, 144, 0.12);
    box-shadow: 0 0 0 3px rgba(116, 79, 144, 0.08);
}

.payroll-rate-preview {
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(128, 96, 154, 0.16);
    background: rgba(128, 96, 154, 0.07);
    color: var(--text);
    font-weight: 700;
    line-height: 1.45;
}

.weekly-grid {
    max-height: 350px;
    margin-bottom: 18px;
    padding-right: 8px;
    display: grid;
    gap: 10px;
    overflow-y: auto;
}

.weekly-grid__day {
    padding-bottom: 9px;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border-bottom: 1px solid rgba(55, 42, 61, 0.1);
}

.weekly-grid__label {
    color: var(--graphite);
    font-weight: 750;
}

.weekly-grid__slots {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.weekly-grid__slot {
    user-select: none;
}

.weekly-grid__empty {
    color: var(--muted);
    font-size: 13px;
    font-style: italic;
}

.modal__actions {
    margin-top: 6px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal__actions .button {
    min-width: 112px;
}

.modal__close {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lesson-detail-modal {
    width: min(920px, 100%);
}

.lesson-detail-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.lesson-detail {
    padding: 16px 20px 20px;
    display: grid;
    gap: 14px;
}

.lesson-card-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.48);
}

.lesson-card-section h3,
.lesson-card-finance h4 {
    margin: 0;
}

.lesson-card-section h3 {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.lesson-detail__row,
.lesson-detail__students {
    padding: 12px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.58);
}

.lesson-detail__row span,
.lesson-detail__students > span,
.lesson-attendance__head {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lesson-detail__row strong {
    font-size: 16px;
    line-height: 1.35;
}

.lesson-detail__students ol {
    margin: 4px 0 0;
    padding-left: 22px;
}

.lesson-detail__students li + li {
    margin-top: 5px;
}

.lesson-detail__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.lesson-detail__danger-actions {
    margin-top: -2px;
    padding-top: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px dashed rgba(183, 95, 97, 0.28);
    color: #8f454d;
    font-size: 12px;
    font-weight: 750;
}

.lesson-detail__empty {
    margin: 0;
    color: var(--muted);
}

.lesson-conduct-modal {
    width: min(860px, 100%);
}

.lesson-conduct {
    grid-template-columns: 1fr;
}

.lesson-attendance {
    display: grid;
    gap: 8px;
}

.lesson-attendance__head,
.lesson-attendance__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    align-items: center;
    gap: 10px;
}

.lesson-attendance__head {
    margin: 0;
}

.lesson-attendance__row {
    padding: 10px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.62);
}

.lesson-card-finance {
    display: grid;
    gap: 12px;
}

.lesson-card-finance__grid,
.lesson-card-finance__subgrid {
    display: grid;
    gap: 10px;
}

.lesson-card-finance__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lesson-card-finance__subgrid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    align-items: start;
}

.lesson-card-finance__row,
.lesson-card-finance__student,
.lesson-card-finance__payroll,
.lesson-card-finance__warning {
    padding: 12px;
    border: 1px solid rgba(55, 42, 61, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.66);
}

.lesson-card-finance__column {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.lesson-card-finance__column h4 {
    color: var(--text);
    font-size: 16px;
    font-weight: 950;
}

.lesson-card-finance__row {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.lesson-card-finance__row span,
.lesson-card-finance__payroll span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.lesson-card-finance__row strong {
    font-size: 18px;
}

.lesson-card-finance__highlight {
    border-color: rgba(214, 171, 89, 0.42);
    background: rgba(214, 171, 89, 0.12);
}

.lesson-card-finance__list {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.lesson-card-finance__student {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.lesson-card-finance__student-name,
.lesson-card-finance__payroll-name {
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.25;
}

.lesson-card-finance__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.lesson-card-finance__metric {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(55, 42, 61, 0.08);
    border-radius: 12px;
    background: rgba(255, 250, 243, 0.72);
}

.lesson-card-finance__metric small {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lesson-card-finance__metric b {
    display: block;
    color: var(--text);
    font-size: 15px;
    line-height: 1.25;
    white-space: nowrap;
}

.lesson-card-finance__metric.status-text--ok b {
    color: var(--green);
}

.lesson-card-finance__metric.status-text--danger b {
    color: var(--red);
}

.lesson-card-finance__payroll {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 10px;
    min-width: 0;
}

.lesson-card-finance__payroll b {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    font-size: 17px;
    white-space: nowrap;
}

.lesson-card-finance__payroll span {
    grid-column: 1;
}

.lesson-card-finance__payroll--warning,
.lesson-card-finance__warning {
    border-color: rgba(214, 171, 89, 0.42);
    background: rgba(214, 171, 89, 0.12);
}

.lesson-card-finance__warning {
    color: #7a5520;
    font-weight: 750;
    line-height: 1.45;
}

.reminder-card {
    padding: 13px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    border: 1px solid rgba(55, 42, 61, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.reminder-card--sent {
    opacity: 0.72;
}

.reminder-card__head {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.reminder-card h3 {
    margin: 0;
    font-size: 17px;
}

.pill {
    padding: 3px 7px;
    border-radius: 999px;
    color: var(--graphite);
    border: 1px solid rgba(55, 42, 61, 0.1);
    background: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 750;
}

.pill--ready {
    color: var(--violet-strong);
    border-color: rgba(128, 96, 154, 0.24);
    background: rgba(128, 96, 154, 0.08);
}

.pill--sent {
    color: #2f7154;
    border-color: rgba(77, 138, 107, 0.24);
    background: rgba(77, 138, 107, 0.09);
}

.pill--excluded {
    color: #94464d;
    border-color: rgba(183, 95, 97, 0.24);
    background: rgba(183, 95, 97, 0.09);
}

.reminder-card__text {
    max-width: 820px;
    margin-bottom: 8px;
    color: #5d5261;
    line-height: 1.55;
}

.reminder-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.reminder-card__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
}

.empty-state {
    min-height: 150px;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.empty-state strong {
    display: block;
    margin-bottom: 8px;
    color: var(--graphite);
    font-size: 18px;
}

.login-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(520px, 100%);
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 20px;
}

.login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #d6ab59, #c76d87, #80609a, #9fbf87);
}

.login-card__brand {
    margin-bottom: 24px;
}

.login-card h1 {
    font-size: 30px;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-card__hint {
    margin: 18px 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 100;
    max-width: min(420px, calc(100vw - 44px));
    padding: 14px 16px;
    border-radius: 18px;
    color: #fff;
    background: var(--graphite);
    box-shadow: var(--shadow);
    font-weight: 800;
}

.toast--error {
    background: #8f454d;
}

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

    .sidebar {
        position: static;
        height: auto;
        padding: 18px;
    }

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

    .sidebar-note {
        display: none;
    }

    .main {
        padding: 18px;
    }

    .stats-grid,
    .analytics-kpi-grid,
    .dashboard-grid,
    .dashboard-task-list,
    .dashboard-worklist,
    .tasks-kpi-grid,
    .child-work-summary,
    .child-quick-actions,
    .schedule-summary,
    .lead-stage-summary,
    .schedule-grid-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .money-layout,
    .analytics-layout,
    .team-layout,
    .inline-form,
    .lesson-card-finance__grid,
    .lesson-card-finance__subgrid {
        grid-template-columns: 1fr;
    }

    .child-card-section__head,
    .child-card-subsection__head {
        align-items: flex-start;
    }

    .child-next-action,
    .group-next-action {
        align-items: stretch;
        flex-direction: column;
    }

    .task-center-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .child-next-action__button,
    .group-next-action__button,
    .task-center-item__actions .button {
        width: 100%;
    }

    .schedule-attention {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .team-attention {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

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

    .settings-attention {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .whatsapp-attention {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .analytics-focus {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .money-next-action {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .payroll-attention {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .recalculation-next-action {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .schedule-attention__chips,
    .team-attention__chips,
    .settings-attention__chips,
    .whatsapp-attention__chips,
    .analytics-focus__chips,
    .money-next-action__chips,
    .payroll-attention__chips,
    .recalculation-next-action__chips {
        justify-content: stretch;
    }

    .schedule-attention__chip,
    .schedule-attention__button,
    .team-attention__chip,
    .team-attention__button,
    .settings-attention__chip,
    .settings-attention__button,
    .whatsapp-attention__chip,
    .whatsapp-attention__button,
    .analytics-focus__chip,
    .analytics-focus__button,
    .money-next-action__chip,
    .money-next-action__button,
    .payroll-attention__chip,
    .payroll-attention__button,
    .recalculation-next-action__chip,
    .recalculation-next-action__button {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .activity-toolbar,
    .activity-summary,
    .activity-card {
        grid-template-columns: 1fr;
    }

    .activity-diff__head,
    .activity-diff__row {
        grid-template-columns: 1fr;
    }

    .activity-diff__head {
        display: none;
    }

    .topbar,
    .hero,
    .reminder-card,
    .tasks-board__head,
    .task-center-item__head {
        grid-template-columns: 1fr;
    }

    .topbar {
        align-items: flex-start;
    }

    .user-card {
        width: 100%;
        justify-content: space-between;
    }

    .hero__counter {
        width: 100%;
    }

    .stats-grid,
    .analytics-kpi-grid,
    .dashboard-grid,
    .dashboard-task-list,
    .dashboard-worklist,
    .tasks-kpi-grid,
    .child-work-summary,
    .child-quick-actions,
    .teacher-summary-grid,
    .schedule-summary,
    .schedule-grid-toolbar,
    .schedule-drawer-lesson__details,
    .drawer__stats,
    .nav,
    .balance-grid {
        grid-template-columns: 1fr;
    }

    .child-profile-compact__grid {
        grid-template-columns: 1fr;
    }

    .drawer-free-floor {
        grid-template-columns: 1fr;
    }

    .lead-next-step {
        grid-template-columns: 1fr;
    }

    .lead-stage-summary,
    .lead-pipeline {
        grid-template-columns: 1fr;
    }

    .lead-list-item__status {
        justify-items: start;
    }

    .lead-list-item__next {
        align-items: flex-start;
        flex-direction: column;
    }

    .lead-list-item__next strong {
        text-align: left;
    }

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

    .schedule-drawer-lesson__head,
    .drawer__free-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .child-card > .panel__head,
    .child-card-section__head,
    .child-card-subsection__head,
    .teacher-card > .panel__head,
    .teacher-card-section__head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .child-card__top-actions,
    .child-card-section__actions,
    .teacher-card__actions,
    .child-card-section__head > .button,
    .child-card-subsection__head .button,
    .teacher-card-section__head .button {
        width: 100%;
        justify-content: stretch;
    }

    .child-card__top-actions .button,
    .child-card-section__actions .button,
    .teacher-card__actions .button,
    .child-card-section__head > .button,
    .child-card-subsection__head .button,
    .teacher-card-section__head .button {
        width: 100%;
    }

    .funnel-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .funnel-item b {
        grid-column: 2;
    }

    .reminder-card__actions {
        min-width: 0;
    }

    .modal__grid {
        grid-template-columns: 1fr;
    }

    .lesson-detail__grid,
    .lesson-attendance__head,
    .lesson-attendance__row,
    .lesson-card-finance__metrics,
    .lesson-card-finance__student,
    .lesson-card-finance__payroll,
    .money-operation__grid {
        grid-template-columns: 1fr;
    }

    .lesson-card-finance__payroll b,
    .lesson-card-finance__payroll span {
        grid-column: auto;
        grid-row: auto;
        justify-self: start;
    }

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

    .money-month__totals {
        justify-content: flex-start;
    }

    .money-operation__summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .money-operation__summary .pill {
        grid-column: 2;
        justify-self: start;
    }

    .money-operation__body {
        padding-left: 12px;
    }

    .modal__actions {
        flex-direction: column-reverse;
    }

    .modal__actions .button {
        width: 100%;
    }
}
