        :root {
            --bg: #eef3ee;
            --bg-soft: #e4ebe5;
            --panel: rgba(255, 255, 255, 0.88);
            --panel-strong: rgba(255, 255, 255, 0.97);
            --panel-tint: rgba(246, 250, 247, 0.94);
            --text: #101714;
            --muted: #5b6a62;
            --muted-strong: #425048;
            --line: rgba(43, 61, 52, 0.11);
            --line-strong: rgba(43, 61, 52, 0.18);
            --accent: #123d2d;
            --accent-strong: #0a291e;
            --accent-soft: #dcebe4;
            --accent-soft-2: #eef6f1;
            --accent-wash: rgba(18, 61, 45, 0.06);
            --danger: #9f3328;
            --danger-soft: #f4dfdb;
            --warning: #8b5a16;
            --radius-panel: 24px;
            --radius-card: 20px;
            --radius-control: 14px;
            --shadow: 0 16px 38px rgba(16, 24, 20, 0.08);
            --shadow-strong: 0 18px 42px rgba(16, 24, 20, 0.12);
            --shadow-soft: 0 10px 24px rgba(16, 24, 20, 0.05);
            --focus-ring: 0 0 0 4px rgba(18, 61, 45, 0.10);
        }

        * { box-sizing: border-box; }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
            color: var(--text);
            background:
                radial-gradient(circle at top left, rgba(200, 220, 207, 0.85) 0, transparent 28rem),
                radial-gradient(circle at 85% 0%, rgba(224, 233, 227, 0.92) 0, transparent 24rem),
                linear-gradient(135deg, rgba(255, 255, 255, 0.55) 0, transparent 42%),
                linear-gradient(180deg, #f7faf8 0%, #edf2ee 100%);
            min-height: 100vh;
        }

        .wrap {
            width: min(1180px, calc(100% - 32px));
            margin: 24px auto 48px;
        }

        .topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            margin-bottom: 18px;
            padding: 14px 18px;
            border-radius: 22px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(244, 248, 245, 0.76) 100%);
            border: 1px solid rgba(43, 61, 52, 0.07);
            box-shadow: 0 10px 28px rgba(16, 24, 20, 0.05);
            backdrop-filter: blur(18px);
        }

        .topbar-copy {
            min-width: 0;
        }

        .topbar-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .brand {
            font-size: clamp(24px, 2.5vw, 31px);
            margin: 0;
            letter-spacing: -0.03em;
            font-weight: 780;
            line-height: 1.08;
        }

        .subtitle {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 7px;
            margin: 5px 0 0;
            color: var(--muted);
            font-size: 13px;
            max-width: 52ch;
            line-height: 1.45;
        }

        .topbar-divider {
            color: rgba(66, 80, 72, 0.55);
        }

        .topbar-balance {
            display: inline-flex;
            align-items: center;
            min-height: 44px;
            padding: 9px 14px;
            border-radius: 14px;
            background: linear-gradient(180deg, rgba(225, 238, 231, 0.98) 0%, rgba(239, 246, 241, 0.96) 100%);
            border: 1px solid rgba(18, 61, 45, 0.12);
            box-shadow: 0 6px 16px rgba(18, 61, 45, 0.07);
            white-space: nowrap;
        }

        .topbar-balance-copy {
            display: flex;
            align-items: baseline;
            gap: 12px;
        }

        .topbar-balance-label {
            font-size: 11px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--muted);
            font-weight: 700;
            white-space: nowrap;
        }

        .topbar-balance-main {
            display: inline-flex;
            align-items: baseline;
            gap: 8px;
        }

        .topbar-balance-value {
            font-size: 22px;
            line-height: 1;
            letter-spacing: -0.02em;
            color: var(--accent);
        }

        .topbar-balance-hint {
            font-size: 12px;
            letter-spacing: 0.01em;
            text-transform: none;
            font-weight: 600;
            color: var(--muted);
            white-space: nowrap;
        }

        .topbar-balance-due {
            background: linear-gradient(180deg, rgba(225, 238, 231, 0.98) 0%, rgba(239, 246, 241, 0.96) 100%);
            border-color: rgba(18, 61, 45, 0.12);
            box-shadow: 0 10px 22px rgba(18, 61, 45, 0.10);
        }

        .topbar-balance-due .topbar-balance-value,
        .topbar-balance-due .topbar-balance-hint {
            color: var(--accent);
        }

        .topbar-balance-neutral {
            background: linear-gradient(180deg, rgba(243, 245, 241, 0.98) 0%, rgba(251, 252, 250, 0.96) 100%);
            border-color: rgba(43, 61, 52, 0.10);
            box-shadow: 0 8px 18px rgba(16, 24, 20, 0.05);
        }

        .topbar-balance-neutral .topbar-balance-value,
        .topbar-balance-neutral .topbar-balance-hint {
            color: var(--muted-strong);
        }

        .topbar-balance-credit {
            background: linear-gradient(180deg, rgba(244, 233, 224, 0.98) 0%, rgba(251, 244, 238, 0.96) 100%);
            border-color: rgba(139, 90, 22, 0.14);
            box-shadow: 0 10px 22px rgba(139, 90, 22, 0.10);
        }

        .topbar-balance-credit .topbar-balance-value,
        .topbar-balance-credit .topbar-balance-hint {
            color: var(--warning);
        }

        .panel {
            background:
                linear-gradient(180deg, var(--panel-strong) 0%, var(--panel-tint) 100%);
            border: 1px solid rgba(43, 61, 52, 0.08);
            border-radius: var(--radius-panel);
            padding: 22px;
            box-shadow: var(--shadow);
            backdrop-filter: blur(20px);
        }

        .panel-emphasis {
            background:
                linear-gradient(180deg, rgba(241, 248, 243, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
            border-color: rgba(18, 61, 45, 0.11);
            box-shadow: 0 18px 40px rgba(18, 61, 45, 0.08);
        }

        .grid {
            display: grid;
            gap: 22px;
        }

        .grid.cols-2 {
            grid-template-columns: 1.3fr 1fr;
        }

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

        .section-title {
            margin: 0 0 14px;
            font-size: 23px;
            line-height: 1.1;
            letter-spacing: -0.03em;
        }

        .message {
            margin-bottom: 22px;
            padding: 14px 16px;
            border-radius: 14px;
            background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent-soft-2) 100%);
            color: var(--accent);
            border: 1px solid rgba(18, 61, 45, 0.14);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
        }

        .error {
            background: linear-gradient(180deg, #f6e1dd 0%, #fcf1ef 100%);
            border-color: rgba(159, 51, 40, 0.18);
            color: var(--danger);
        }

        form.inline {
            display: inline;
        }

        label {
            display: block;
            font-size: 12px;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 7px;
            font-weight: 700;
        }

        input, textarea, select, button {
            width: 100%;
            border-radius: var(--radius-control);
            border: 1px solid rgba(43, 61, 52, 0.12);
            padding: 12px 14px;
            font: inherit;
            background: rgba(255, 255, 255, 0.95);
            color: var(--text);
            transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
        }

        input::placeholder,
        textarea::placeholder {
            color: #7b8a82;
        }

        input:focus,
        textarea:focus,
        select:focus {
            outline: none;
            border-color: rgba(18, 61, 45, 0.38);
            box-shadow: var(--focus-ring);
            background: white;
        }

        textarea {
            min-height: 168px;
            resize: vertical;
            line-height: 1.5;
        }

        button, .link-button {
            cursor: pointer;
            border: none;
            background: linear-gradient(180deg, #184d39 0%, #103a2b 100%);
            color: white;
            text-decoration: none;
            display: inline-block;
            width: auto;
            padding: 11px 16px;
            font-weight: 700;
            letter-spacing: 0.01em;
            border-radius: 13px;
            box-shadow: 0 12px 26px rgba(18, 61, 45, 0.18);
        }

        button:hover,
        .link-button:hover {
            transform: translateY(-1px);
            box-shadow: 0 16px 30px rgba(18, 61, 45, 0.22);
        }

        .loading-button {
            position: relative;
        }

        .loading-button.is-loading {
            opacity: 0.92;
            pointer-events: none;
            padding-left: 42px;
        }

        .loading-button.is-loading::before {
            content: "";
            position: absolute;
            left: 15px;
            top: 50%;
            width: 15px;
            height: 15px;
            margin-top: -7.5px;
            border-radius: 999px;
            border: 2px solid rgba(255, 255, 255, 0.35);
            border-top-color: rgba(255, 255, 255, 0.95);
            animation: button-spin 0.8s linear infinite;
        }

        @keyframes button-spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        button:focus-visible,
        .link-button:focus-visible,
        .nav-pill:focus-visible,
        .action-card:focus-visible,
        summary:focus-visible,
        a:focus-visible {
            outline: none;
            box-shadow: var(--focus-ring);
        }

        .muted-button {
            background: linear-gradient(180deg, #f7faf7 0%, #e8eee9 100%);
            color: var(--text);
            box-shadow: none;
            border: 1px solid rgba(43, 61, 52, 0.12);
        }

        .muted-button:hover {
            box-shadow: var(--shadow-soft);
        }

        .warning-button {
            background: linear-gradient(180deg, #f1e3cf 0%, #e2ccb0 100%);
            color: #6a4310;
            border: 1px solid rgba(139, 90, 22, 0.12);
            box-shadow: none;
        }

        .warning-button:hover {
            box-shadow: 0 10px 18px rgba(139, 90, 22, 0.10);
        }

        button:disabled,
        .link-button[aria-disabled="true"] {
            cursor: not-allowed;
            opacity: 0.58;
            transform: none;
            box-shadow: none;
        }

        .stack {
            display: grid;
            gap: 14px;
        }

        .stack.tight {
            gap: 10px;
        }

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

        .row.three {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        table {
            width: 100%;
            border-collapse: collapse;
            border-spacing: 0;
            border-radius: 18px;
            overflow: hidden;
        }

        th, td {
            text-align: left;
            vertical-align: top;
            padding: 13px 12px;
            border-top: 1px solid rgba(43, 61, 52, 0.10);
        }

        th {
            color: var(--muted);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            background: rgba(241, 246, 242, 0.92);
        }

        tbody tr {
            transition: background 160ms ease;
        }

        tbody tr:hover {
            background: rgba(244, 248, 245, 0.86);
        }

        .hint {
            color: var(--muted);
            font-size: 14px;
            margin-top: 10px;
            line-height: 1.5;
        }

        .student-card {
            border-top: 1px solid rgba(43, 61, 52, 0.10);
            padding-top: 18px;
            margin-top: 18px;
        }

        .student-card:first-of-type {
            margin-top: 0;
        }

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

        .student-item {
            border: 1px solid rgba(43, 61, 52, 0.10);
            border-radius: var(--radius-card);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 242, 0.94) 100%);
            box-shadow: var(--shadow-soft);
            overflow: hidden;
            transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .student-item:hover {
            border-color: rgba(18, 61, 45, 0.16);
            box-shadow: var(--shadow);
        }

        .student-item[open] {
            border-color: rgba(18, 61, 45, 0.18);
            box-shadow: 0 18px 38px rgba(18, 61, 45, 0.10);
        }

        .student-summary {
            list-style: none;
            cursor: pointer;
            display: grid;
            gap: 12px;
            padding: 18px;
        }

        .student-summary::-webkit-details-marker {
            display: none;
        }

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

        .student-summary-name {
            margin: 0;
            font-size: 20px;
            font-weight: 800;
            letter-spacing: -0.02em;
            line-height: 1.1;
        }

        .student-summary-copy {
            margin: 6px 0 0;
            color: var(--muted);
            font-size: 14px;
        }

        .student-summary-action {
            flex: 0 0 auto;
            color: var(--accent);
            font-size: 13px;
            white-space: nowrap;
            font-weight: 700;
        }

        .student-summary-action-close {
            display: none;
        }

        .student-item.is-expanded .student-summary-action-open {
            display: none;
        }

        .student-item.is-expanded .student-summary-action-close {
            display: inline;
        }

        .logout-button {
            padding: 8px 12px;
            border-radius: 12px;
            font-size: 13px;
            color: var(--muted-strong);
        }

        .student-details {
            height: 0;
            overflow: hidden;
            padding: 0 18px;
            border-top: 1px solid rgba(43, 61, 52, 0);
            transition: height 220ms ease, padding 220ms ease, border-color 220ms ease;
        }

        .student-details-inner {
            opacity: 0;
            transform: translateY(-8px);
            transition: opacity 180ms ease, transform 220ms ease;
        }

        .student-item.is-expanded .student-details {
            padding: 0 18px 18px;
            border-top-color: rgba(43, 61, 52, 0.10);
        }

        .student-item.is-expanded .student-details-inner {
            opacity: 1;
            transform: translateY(0);
        }

        .student-inline-actions {
            position: sticky;
            bottom: 10px;
            z-index: 6;
            margin-top: 18px;
            padding: 12px;
            display: grid;
            grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
            align-items: center;
            gap: 10px;
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 247, 243, 0.94) 100%);
            border: 1px solid rgba(43, 61, 52, 0.08);
            box-shadow: 0 14px 28px rgba(16, 24, 20, 0.08);
            backdrop-filter: blur(12px);
        }

        .student-inline-actions > .link-button,
        .student-inline-actions > button {
            width: 100%;
            justify-content: center;
            text-align: center;
        }

        .student-save-button {
            background: linear-gradient(180deg, #f7faf7 0%, #e8eee9 100%);
            color: var(--muted-strong);
            box-shadow: none;
            border: 1px solid rgba(43, 61, 52, 0.12);
        }

        .student-save-button:hover {
            box-shadow: var(--shadow-soft);
        }

        .student-save-button-dirty {
            background: linear-gradient(180deg, #184d39 0%, #103a2b 100%);
            color: white;
            border: none;
            box-shadow: 0 16px 30px rgba(18, 61, 45, 0.24);
        }

        .student-save-button-dirty:hover {
            box-shadow: 0 18px 34px rgba(18, 61, 45, 0.28);
        }

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

        .icon-copy-button {
            flex: 0 0 42px;
            width: 42px;
            max-width: 42px;
            min-width: 42px;
            height: 42px;
            min-height: 42px;
            padding: 0;
            border-radius: 14px;
            border: 1px solid rgba(18, 61, 45, 0.12);
            background: linear-gradient(180deg, rgba(241, 247, 243, 0.98) 0%, rgba(228, 238, 231, 0.96) 100%);
            color: var(--accent);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            align-self: center;
            transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
        }

        .icon-copy-button:hover {
            transform: translateY(-1px);
            border-color: rgba(18, 61, 45, 0.18);
            box-shadow: 0 8px 16px rgba(18, 61, 45, 0.10);
        }

        .icon-copy-button:active {
            transform: translateY(0);
            box-shadow: inset 0 2px 4px rgba(18, 61, 45, 0.08);
        }

        .icon-copy-button svg {
            width: 18px;
            height: 18px;
            stroke: currentColor;
            stroke-width: 1.8;
            fill: none;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .invite-copy-status {
            display: inline-flex;
            align-items: center;
            min-height: 18px;
            margin-top: 8px;
            font-size: 12px;
            font-weight: 700;
            color: var(--muted);
        }

        .invite-copy-status[data-state="success"] {
            color: #186a44;
        }

        .invite-copy-status[data-state="error"] {
            color: #b14d3b;
        }

        .trainer-config {
            margin-top: 18px;
            padding-top: 18px;
            border-top: 1px solid rgba(43, 61, 52, 0.10);
        }

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

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

        .struggling-task-card {
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 245, 0.94) 100%);
            border: 1px solid rgba(43, 61, 52, 0.10);
            box-shadow: 0 10px 24px rgba(16, 24, 20, 0.05);
            overflow: hidden;
        }

        .struggling-task-summary {
            list-style: none;
            cursor: pointer;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 10px;
            align-items: center;
            padding: 13px 14px;
        }

        .struggling-task-summary::-webkit-details-marker {
            display: none;
        }

        .struggling-task-summary-main {
            min-width: 0;
        }

        .struggling-task-summary-side {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex-wrap: wrap;
            gap: 6px;
        }

        .struggling-task-details {
            padding: 0 16px 16px;
            border-top: 1px solid rgba(43, 61, 52, 0.10);
        }

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

        .struggling-task-kicker {
            font-size: 11px;
            letter-spacing: 0.10em;
            text-transform: uppercase;
            color: var(--muted);
            font-weight: 700;
            margin-bottom: 4px;
        }

        .struggling-task-title {
            margin: 0;
            font-size: 16px;
            line-height: 1.15;
            letter-spacing: -0.02em;
        }

        .struggling-task-copy {
            margin: 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.5;
        }

        .trainer-topic-card {
            padding: 14px;
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(247, 250, 247, 0.98) 0%, rgba(240, 245, 241, 0.92) 100%);
            border: 1px solid rgba(43, 61, 52, 0.10);
        }

        .trainer-topic-title {
            margin: 0 0 12px;
            font-size: 16px;
            letter-spacing: -0.02em;
        }

        .trainer-topic-head {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }

        .trainer-topic-actions {
            gap: 8px;
        }

        .trainer-topic-actions .text-button {
            font-size: 13px;
        }

        .trainer-bulk-actions {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 4px;
            border-radius: 999px;
            background: rgba(239, 245, 240, 0.96);
            border: 1px solid rgba(43, 61, 52, 0.08);
        }

        .trainer-bulk-button {
            width: auto;
            padding: 7px 12px;
            border: 1px solid rgba(18, 61, 45, 0.10);
            border-radius: 999px;
            background: rgba(220, 235, 228, 0.96);
            color: var(--accent);
            box-shadow: none;
            font-size: 13px;
            font-weight: 700;
        }

        .trainer-bulk-button:hover {
            box-shadow: 0 10px 18px rgba(16, 24, 20, 0.06);
        }

        .trainer-bulk-button-muted {
            background: rgba(255, 255, 255, 0.96);
            color: var(--muted-strong);
            border-color: rgba(43, 61, 52, 0.10);
        }

        .trainer-options {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .trainer-option {
            position: relative;
            display: inline-flex;
        }

        .trainer-option input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .trainer-option span {
            display: inline-flex;
            align-items: center;
            min-height: 38px;
            padding: 8px 12px;
            border-radius: 999px;
            border: 1px solid rgba(43, 61, 52, 0.10);
            background: rgba(255, 255, 255, 0.96);
            color: var(--muted-strong);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .trainer-option span:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 18px rgba(16, 24, 20, 0.06);
        }

        .trainer-option input:checked + span {
            color: var(--accent);
            background: rgba(220, 235, 228, 0.96);
            border-color: rgba(18, 61, 45, 0.16);
            box-shadow: 0 10px 20px rgba(18, 61, 45, 0.10);
        }

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

        .invite-field input {
            background: rgba(247, 249, 245, 0.92);
        }

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

        .hero-copy {
            max-width: 720px;
        }

        .hero-quick-nav {
            flex: 0 0 320px;
            display: grid;
            gap: 10px;
            align-self: stretch;
            justify-content: end;
        }

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

        .hero-quick-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 48px;
            padding: 0 18px;
            border-radius: 18px;
            border: 1px solid rgba(43, 61, 52, 0.10);
            background: linear-gradient(180deg, rgba(244, 248, 245, 0.98) 0%, rgba(233, 239, 235, 0.94) 100%);
            color: var(--text);
            text-decoration: none;
            font-size: 15px;
            font-weight: 750;
            letter-spacing: -0.02em;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
            transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
        }

        .hero-quick-link:hover {
            transform: translateY(-1px);
            border-color: rgba(18, 61, 45, 0.18);
            background: linear-gradient(180deg, rgba(240, 246, 242, 0.98) 0%, rgba(225, 235, 229, 0.96) 100%);
            box-shadow: 0 10px 18px rgba(16, 24, 20, 0.06);
            color: var(--accent);
        }

        .hero-quick-link-wide {
            width: 100%;
        }

        .hero-summary {
            align-items: flex-start;
        }

        .summary-points {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 14px;
        }

        .summary-point {
            display: inline-flex;
            align-items: center;
            min-height: 34px;
            padding: 8px 12px;
            border-radius: 999px;
            background: rgba(238, 245, 240, 0.96);
            border: 1px solid rgba(18, 61, 45, 0.08);
            color: var(--muted-strong);
            font-size: 13px;
            line-height: 1.35;
        }

        .page-nav {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 18px;
        }

        .nav-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 9px 13px;
            border-radius: 999px;
            border: 1px solid rgba(43, 61, 52, 0.10);
            background: rgba(255, 255, 255, 0.84);
            color: var(--muted-strong);
            text-decoration: none;
            font-size: 13px;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(16, 24, 20, 0.03);
            transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .nav-pill:hover {
            color: var(--accent);
            border-color: rgba(18, 61, 45, 0.16);
            background: rgba(240, 246, 242, 0.98);
            box-shadow: 0 8px 18px rgba(16, 24, 20, 0.06);
        }

        .nav-pill.active {
            color: var(--accent);
            border-color: rgba(18, 61, 45, 0.18);
            background: linear-gradient(180deg, rgba(225, 238, 231, 0.98) 0%, rgba(239, 246, 241, 0.96) 100%);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 18px rgba(18, 61, 45, 0.08);
        }

        .eyebrow {
            display: inline-block;
            margin-bottom: 8px;
            font-size: 11px;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--muted);
            font-weight: 700;
        }

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

        .stat-card {
            display: block;
            padding: 16px 18px 15px;
            border-radius: var(--radius-card);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 247, 243, 0.94) 100%);
            border: 1px solid rgba(43, 61, 52, 0.10);
            box-shadow: var(--shadow-soft);
            color: var(--text);
            text-decoration: none;
            transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
        }

        .stat-card:hover {
            transform: translateY(-1px);
            border-color: rgba(18, 61, 45, 0.18);
            box-shadow: var(--shadow);
        }

        .stat-card-accent {
            background: linear-gradient(180deg, rgba(233, 243, 237, 0.98) 0%, rgba(247, 251, 248, 0.94) 100%);
            border-color: rgba(18, 61, 45, 0.14);
        }

        .stat-card-muted-accent {
            background: linear-gradient(180deg, rgba(245, 248, 246, 0.98) 0%, rgba(250, 252, 250, 0.94) 100%);
            border-color: rgba(43, 61, 52, 0.10);
        }

        .stat-label {
            font-size: 12px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--muted);
            margin-bottom: 10px;
            font-weight: 700;
        }

        .stat-value {
            font-size: 34px;
            line-height: 0.96;
            font-weight: 800;
            letter-spacing: -0.04em;
        }

        .stat-copy {
            margin: 8px 0 0;
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

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

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

        .trainer-student-card {
            display: grid;
            gap: 12px;
            padding: 18px;
            border-radius: var(--radius-card);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 242, 0.94) 100%);
            border: 1px solid rgba(43, 61, 52, 0.10);
            text-decoration: none;
            color: var(--text);
            box-shadow: var(--shadow-soft);
            transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
        }

        .trainer-student-card:hover {
            transform: translateY(-1px);
            border-color: rgba(18, 61, 45, 0.18);
            background: linear-gradient(180deg, rgba(238, 245, 240, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
            box-shadow: var(--shadow-strong);
        }

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

        .trainer-student-name {
            margin: 0 0 6px;
            font-size: 22px;
            line-height: 1.05;
            letter-spacing: -0.03em;
        }

        .trainer-student-copy {
            margin: 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.5;
        }

        .action-card {
            display: grid;
            gap: 10px;
            padding: 18px;
            border-radius: var(--radius-card);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 246, 242, 0.94) 100%);
            border: 1px solid rgba(43, 61, 52, 0.10);
            text-decoration: none;
            color: var(--text);
            box-shadow: var(--shadow-soft);
            cursor: pointer;
            transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
        }

        .action-card-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
        }

        .action-card:hover {
            transform: translateY(-1px);
            border-color: rgba(18, 61, 45, 0.18);
            background: linear-gradient(180deg, rgba(238, 245, 240, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
            box-shadow: var(--shadow-strong);
        }

        .action-kicker {
            font-size: 11px;
            letter-spacing: 0.10em;
            text-transform: uppercase;
            color: var(--muted);
            font-weight: 700;
        }

        .action-chevron {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border-radius: 999px;
            background: rgba(237, 244, 239, 0.98);
            border: 1px solid rgba(18, 61, 45, 0.10);
            color: var(--accent);
            font-size: 16px;
            line-height: 1;
            transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
        }

        .action-card:hover .action-chevron {
            transform: translateX(2px);
            background: rgba(225, 238, 231, 0.98);
            border-color: rgba(18, 61, 45, 0.16);
        }

        .action-title {
            font-size: 21px;
            line-height: 1.1;
            margin: 0;
            letter-spacing: -0.03em;
        }

        .action-copy {
            color: var(--muted);
            font-size: 14px;
            line-height: 1.5;
            margin: 0;
        }

        .panel-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 16px;
            margin-bottom: 16px;
        }

        .sticky-panel-header {
            position: sticky;
            top: 16px;
            z-index: 20;
            align-items: center;
            padding: 16px 18px;
            margin: -6px -6px 18px;
            border-radius: 20px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 248, 244, 0.94) 100%);
            border: 1px solid rgba(43, 61, 52, 0.08);
            box-shadow: 0 12px 24px rgba(16, 24, 20, 0.08);
            backdrop-filter: blur(14px);
        }

        .sticky-panel-header .panel-copy {
            max-width: 64ch;
        }

        .trainer-save-button-dirty {
            background: linear-gradient(180deg, #184d39 0%, #103a2b 100%);
            color: white;
            box-shadow: 0 16px 30px rgba(18, 61, 45, 0.24);
            border: none;
            animation: trainer-save-glow 1.9s ease-in-out infinite;
        }

        .trainer-save-button-dirty:hover {
            box-shadow: 0 20px 36px rgba(18, 61, 45, 0.30);
        }

        @keyframes trainer-save-glow {
            0%, 100% {
                box-shadow: 0 16px 30px rgba(18, 61, 45, 0.22);
            }
            50% {
                box-shadow: 0 18px 34px rgba(18, 61, 45, 0.30);
            }
        }

        .panel-header .section-title {
            margin-bottom: 4px;
        }

        .panel-copy {
            margin: 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.5;
        }

        .section-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 34px;
            padding: 8px 12px;
            border-radius: 999px;
            background: rgba(231, 241, 234, 0.96);
            border: 1px solid rgba(18, 61, 45, 0.10);
            color: var(--accent);
            font-size: 13px;
            font-weight: 700;
            white-space: nowrap;
        }

        .subpanel {
            padding: 18px;
            border-radius: var(--radius-card);
            background: linear-gradient(180deg, rgba(243, 248, 244, 0.96) 0%, rgba(255, 255, 255, 0.84) 100%);
            border: 1px solid rgba(43, 61, 52, 0.09);
        }

        .subpanel-title {
            margin: 0 0 14px;
            font-size: 18px;
        }

        .student-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 4px;
        }

        .chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 10px;
            border-radius: 999px;
            background: rgba(220, 235, 228, 0.92);
            color: var(--accent);
            font-size: 12px;
            border: 1px solid rgba(18, 61, 45, 0.10);
            font-weight: 700;
        }

        .chip.neutral {
            background: rgba(243, 245, 241, 0.94);
            color: var(--muted);
            border-color: rgba(43, 61, 52, 0.10);
        }

        .catalog-inline-status {
            display: inline-flex;
            align-items: center;
            min-height: 32px;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 13px;
            font-weight: 700;
            color: var(--muted);
            background: rgba(243, 245, 241, 0.94);
            border: 1px solid rgba(43, 61, 52, 0.10);
        }

        .catalog-inline-status:empty {
            display: none;
        }

        .catalog-inline-status-running {
            color: var(--accent);
            background: rgba(220, 235, 228, 0.92);
            border-color: rgba(18, 61, 45, 0.12);
        }

        .catalog-inline-status-done {
            color: var(--accent);
            background: rgba(231, 241, 234, 0.96);
            border-color: rgba(18, 61, 45, 0.12);
        }

        .catalog-inline-status-error {
            color: var(--danger);
            background: rgba(244, 230, 227, 0.96);
            border-color: rgba(159, 51, 40, 0.12);
        }

        .actions-end {
            display: flex;
            justify-content: flex-end;
            align-items: end;
        }

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

        .day-card {
            padding: 16px;
            border-radius: 20px;
            background: rgba(255, 255, 255, 0.78);
            border: 1px solid rgba(43, 61, 52, 0.10);
        }

        .day-card label {
            margin-bottom: 10px;
        }

        .day-card textarea {
            min-height: 140px;
        }

        .table-wrap {
            overflow-x: auto;
            border-radius: 18px;
            border: 1px solid rgba(43, 61, 52, 0.09);
            background: rgba(255, 255, 255, 0.74);
        }

        .payments-focus {
            position: relative;
        }

        .payments-focus-muted {
            background: linear-gradient(180deg, rgba(251, 252, 251, 0.98) 0%, rgba(246, 249, 247, 0.95) 100%);
            border-color: rgba(43, 61, 52, 0.08);
            box-shadow: var(--shadow-soft);
        }

        .payment-review-list {
            display: grid;
            gap: 14px;
        }

        .payment-review-card {
            display: grid;
            gap: 16px;
            padding: 18px;
            border-radius: var(--radius-card);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 246, 0.96) 100%);
            border: 1px solid rgba(18, 61, 45, 0.11);
            box-shadow: 0 12px 28px rgba(16, 24, 20, 0.06);
        }

        .payment-review-top {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 14px;
            align-items: start;
        }

        .payment-review-meta {
            display: grid;
            gap: 5px;
        }

        .payment-review-kicker {
            color: var(--muted);
            font-size: 11px;
            letter-spacing: 0.10em;
            text-transform: uppercase;
            font-weight: 700;
        }

        .payment-review-title {
            margin: 0;
            font-size: 19px;
            letter-spacing: -0.02em;
        }

        .payment-review-note {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.45;
        }

        .payment-review-summary {
            display: grid;
            justify-items: end;
            gap: 6px;
            text-align: right;
        }

        .payment-review-date {
            color: var(--muted);
            font-size: 13px;
            line-height: 1.3;
        }

        .payment-review-amount {
            font-size: 28px;
            line-height: 1;
            letter-spacing: -0.04em;
            font-weight: 800;
            color: var(--accent);
        }

        .payment-review-amount.is-missing {
            font-size: 14px;
            line-height: 1.35;
            letter-spacing: 0;
            color: var(--muted);
            max-width: 16ch;
        }

        .payment-review-raw-wrap {
            display: grid;
            gap: 7px;
        }

        .payment-raw {
            padding: 12px 14px;
            border-radius: 14px;
            background: rgba(240, 245, 241, 0.95);
            border: 1px dashed rgba(43, 61, 52, 0.18);
            color: var(--muted-strong);
            font-size: 14px;
            line-height: 1.5;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .payment-review-fields {
            display: grid;
            gap: 12px;
            grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 160px;
            align-items: end;
        }

        .payment-review-field {
            min-width: 0;
        }

        .checkbox-line {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .checkbox-line input {
            width: 18px;
            height: 18px;
            padding: 0;
            margin: 0;
            flex: 0 0 auto;
        }

        .checkbox-line label {
            margin: 0;
            font-size: 14px;
            letter-spacing: 0;
            text-transform: none;
            color: var(--text);
        }

        .payment-review-footer {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
        }

        .payment-review-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
        }

        .secondary-button {
            background: linear-gradient(180deg, #f7faf7 0%, #e7ede8 100%);
            color: var(--text);
            border: 1px solid rgba(43, 61, 52, 0.12);
            box-shadow: none;
        }

        .secondary-button:hover {
            box-shadow: var(--shadow-soft);
        }

        .payment-history-list {
            display: grid;
            gap: 14px;
        }

        .payment-history-item {
            border: 1px solid rgba(43, 61, 52, 0.10);
            border-radius: var(--radius-card);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(244, 249, 246, 0.96) 100%);
            box-shadow: var(--shadow-soft);
            overflow: hidden;
            transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .payment-history-item:hover {
            border-color: rgba(18, 61, 45, 0.16);
            box-shadow: var(--shadow);
        }

        .payment-history-item[open] {
            border-color: rgba(18, 61, 45, 0.18);
            box-shadow: var(--shadow-strong);
        }

        .payment-history-summary {
            list-style: none;
            cursor: pointer;
            display: grid;
            gap: 14px;
            padding: 18px;
        }

        .payment-history-summary::-webkit-details-marker {
            display: none;
        }

        .payment-history-top {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px;
            align-items: start;
        }

        .payment-history-title {
            margin: 0;
            font-size: 19px;
            line-height: 1.12;
            letter-spacing: -0.02em;
        }

        .payment-history-copy {
            margin: 6px 0 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.45;
        }

        .payment-history-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .payment-history-chevron {
            color: var(--accent);
            font-size: 13px;
            font-weight: 700;
            white-space: nowrap;
        }

        .payment-history-chevron-close {
            display: none;
        }

        .payment-history-item[open] .payment-history-chevron-open {
            display: none;
        }

        .payment-history-item[open] .payment-history-chevron-close {
            display: inline;
        }

        .payment-filter-nav {
            gap: 10px;
        }

        .payment-filter-pill {
            min-width: 132px;
            justify-content: center;
        }

        .payment-filter-pill-pending:not(.active) {
            background: rgba(247, 236, 217, 0.78);
            color: var(--warning);
            border-color: rgba(139, 90, 22, 0.18);
        }

        .payment-filter-pill-assigned:not(.active) {
            background: rgba(220, 235, 228, 0.78);
            color: var(--accent);
            border-color: rgba(18, 61, 45, 0.14);
        }

        .payment-filter-pill-ignored:not(.active) {
            background: rgba(239, 243, 240, 0.92);
            color: var(--muted-strong);
            border-color: rgba(43, 61, 52, 0.10);
        }

        .payment-history-item.pending,
        .payment-history-item-pending {
            border-color: rgba(139, 90, 22, 0.18);
            box-shadow: 0 14px 30px rgba(139, 90, 22, 0.08);
        }

        .payment-history-item.assigned,
        .payment-history-item-assigned {
            border-color: rgba(18, 61, 45, 0.12);
        }

        .payment-history-item.ignored,
        .payment-history-item-ignored {
            opacity: 0.96;
        }

        .payment-status-badge {
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            border: 1px solid rgba(43, 61, 52, 0.10);
        }

        .payment-status-badge.pending {
            background: rgba(247, 236, 217, 0.92);
            color: var(--warning);
            border-color: rgba(139, 90, 22, 0.18);
        }

        .payment-status-badge.assigned {
            background: rgba(220, 235, 228, 0.96);
            color: var(--accent);
            border-color: rgba(18, 61, 45, 0.14);
        }

        .payment-status-badge.ignored {
            background: rgba(239, 243, 240, 0.96);
            color: var(--muted-strong);
            border-color: rgba(43, 61, 52, 0.10);
        }

        .payment-status-badge.other {
            background: rgba(240, 245, 241, 0.96);
            color: var(--muted-strong);
        }

        .payment-history-details {
            padding: 0 18px 18px;
            border-top: 1px solid rgba(43, 61, 52, 0.10);
        }

        .payment-ignore-form {
            margin-top: 10px;
        }

        .today-poll-list {
            display: grid;
            gap: 14px;
        }

        .today-poll-card {
            display: block;
            cursor: pointer;
        }

        .today-poll-input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .today-poll-shell {
            display: grid;
            gap: 12px;
            padding: 18px;
            border-radius: var(--radius-card);
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 246, 242, 0.94) 100%);
            border: 1px solid rgba(43, 61, 52, 0.10);
            box-shadow: var(--shadow-soft);
            transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
        }

        .today-poll-card:hover .today-poll-shell {
            transform: translateY(-1px);
            border-color: rgba(18, 61, 45, 0.18);
            box-shadow: var(--shadow-strong);
        }

        .today-poll-input:checked + .today-poll-shell {
            border-color: rgba(18, 61, 45, 0.30);
            background: linear-gradient(180deg, rgba(220, 235, 228, 0.98) 0%, rgba(239, 246, 241, 0.94) 100%);
            box-shadow: 0 16px 34px rgba(18, 61, 45, 0.14);
        }

        .today-poll-card.is-submitting .today-poll-shell {
            transform: scale(0.985);
            border-color: rgba(18, 61, 45, 0.30);
            background: linear-gradient(180deg, rgba(227, 239, 231, 0.98) 0%, rgba(242, 248, 244, 0.98) 100%);
            box-shadow: 0 18px 38px rgba(18, 61, 45, 0.16);
        }

        .today-poll-card.is-submitting .today-poll-state-idle {
            display: none;
        }

        .today-poll-card.is-submitting .today-poll-state-selected {
            display: inline;
        }

        .today-poll-top {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
            flex-wrap: wrap;
        }

        .today-poll-name {
            margin: 0;
            font-size: 18px;
            font-weight: 800;
            letter-spacing: -0.02em;
        }

        .today-poll-time {
            color: var(--accent);
            font-size: 13px;
            letter-spacing: 0.10em;
            text-transform: uppercase;
            font-weight: 700;
        }

        .today-poll-disabled {
            color: var(--danger);
            font-size: 14px;
        }

        .today-poll-state {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 120px;
            padding: 8px 12px;
            border-radius: 999px;
            border: 1px solid rgba(43, 61, 52, 0.10);
            color: var(--muted);
            background: rgba(244, 247, 244, 0.98);
            font-size: 13px;
            font-weight: 700;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
        }

        .today-poll-input:checked + .today-poll-shell .today-poll-state {
            color: var(--accent);
            border-color: rgba(18, 61, 45, 0.20);
            background: linear-gradient(180deg, rgba(227, 239, 231, 0.98) 0%, rgba(242, 248, 244, 0.98) 100%);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76), 0 8px 16px rgba(18, 61, 45, 0.08);
        }

        .today-poll-card.is-completed {
            cursor: default;
        }

        .today-poll-card.is-completed .today-poll-shell {
            border-color: rgba(18, 61, 45, 0.14);
            background: linear-gradient(180deg, rgba(231, 241, 234, 0.96) 0%, rgba(243, 248, 244, 0.92) 100%);
        }

        .today-poll-card.is-completed .today-poll-state {
            color: var(--accent);
            border-color: rgba(18, 61, 45, 0.16);
            background: linear-gradient(180deg, rgba(227, 239, 231, 0.98) 0%, rgba(242, 248, 244, 0.98) 100%);
        }

        .today-poll-state-idle,
        .today-poll-state-selected {
            display: inline;
        }

        .today-poll-state-selected {
            display: none;
        }

        .today-poll-state-idle {
            color: var(--muted);
        }

        .today-poll-state-selected {
            color: var(--accent);
        }

        .today-poll-input:checked + .today-poll-shell .today-poll-state-idle {
            display: none;
        }

        .today-poll-input:checked + .today-poll-shell .today-poll-state-selected {
            display: inline;
        }

        .empty-state {
            padding: 18px;
            border-radius: 18px;
            background: rgba(241, 246, 242, 0.96);
            border: 1px dashed rgba(43, 61, 52, 0.16);
        }

        .schedule-workspace {
            display: grid;
            gap: 18px;
        }

        .schedule-toolbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            padding: 16px 18px;
            border-radius: var(--radius-card);
            background: linear-gradient(180deg, rgba(235, 244, 238, 0.98) 0%, rgba(249, 251, 248, 0.92) 100%);
            border: 1px solid rgba(43, 61, 52, 0.10);
        }

        .schedule-toolbar-copy {
            max-width: 620px;
        }

        .schedule-toolbar-copy p {
            margin: 6px 0 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.5;
        }

        .message {
            position: sticky;
            top: 18px;
            z-index: 40;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            width: fit-content;
            max-width: min(720px, calc(100vw - 32px));
            margin: 0 0 18px auto;
            padding: 12px 16px;
            border-radius: 18px;
            background: linear-gradient(180deg, rgba(227, 239, 231, 0.98) 0%, rgba(242, 248, 244, 0.96) 100%);
            color: var(--accent);
            border: 1px solid rgba(18, 61, 45, 0.12);
            box-shadow: 0 14px 28px rgba(18, 61, 45, 0.10);
            backdrop-filter: blur(14px);
        }

        .schedule-save-status {
            font-size: 14px;
            color: var(--muted);
            min-height: 21px;
        }

        .schedule-save-status[data-state="saving"] {
            color: var(--accent);
        }

        .schedule-save-status[data-state="error"] {
            color: var(--danger);
        }

        .schedule-layout {
            display: grid;
            gap: 16px;
            grid-template-columns: 280px 1fr;
            align-items: start;
        }

        .student-pool {
            display: grid;
            gap: 14px;
            padding: 16px;
            border-radius: var(--radius-card);
            background: linear-gradient(180deg, rgba(245, 249, 246, 0.98) 0%, rgba(255, 255, 255, 0.88) 100%);
            border: 1px solid rgba(43, 61, 52, 0.10);
            position: sticky;
            top: 18px;
            box-shadow: var(--shadow-soft);
        }

        .student-pool h3 {
            margin: 0;
            font-size: 18px;
        }

        .student-pool p {
            margin: 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.5;
        }

        .student-pool-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .pool-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 12px;
            border-radius: 999px;
            background: white;
            border: 1px solid rgba(43, 61, 52, 0.10);
            cursor: grab;
            user-select: none;
            font-size: 14px;
            font-weight: 700;
            box-shadow: 0 8px 18px rgba(16, 24, 20, 0.05);
        }

        .pool-chip:active {
            cursor: grabbing;
        }

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

        .schedule-column {
            display: grid;
            gap: 12px;
            padding: 14px;
            border-radius: var(--radius-card);
            background: rgba(255, 255, 255, 0.82);
            border: 1px solid rgba(43, 61, 52, 0.10);
            min-height: 220px;
            box-shadow: var(--shadow-soft);
        }

        .schedule-column-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 10px;
        }

        .schedule-column-heading {
            display: grid;
            gap: 6px;
        }

        .schedule-column-header h3 {
            margin: 0;
            font-size: 18px;
            letter-spacing: -0.02em;
        }

        .schedule-column-counter {
            color: var(--muted-strong);
            font-size: 13px;
            font-weight: 700;
        }

        .schedule-day-add {
            width: auto;
            padding: 8px 12px;
            border-radius: 999px;
            background: linear-gradient(180deg, #f7faf7 0%, #e7eee9 100%);
            color: var(--accent);
            border: 1px solid rgba(18, 61, 45, 0.10);
            box-shadow: none;
            font-size: 13px;
            font-weight: 700;
        }

        .schedule-day-add:hover {
            box-shadow: none;
        }

        .schedule-dropzone {
            display: grid;
            gap: 10px;
            min-height: 140px;
            padding: 10px;
            border-radius: 16px;
            border: 1px dashed transparent;
            background: rgba(244, 248, 245, 0.90);
            transition: border-color 160ms ease, background 160ms ease;
        }

        .schedule-dropzone.is-over {
            border-color: rgba(18, 61, 45, 0.22);
            background: rgba(220, 235, 228, 0.92);
        }

        .schedule-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 96px;
            border-radius: 12px;
            border: 1px dashed rgba(43, 61, 52, 0.16);
            color: var(--muted);
            font-size: 14px;
            text-align: center;
            padding: 12px;
        }

        .drop-indicator {
            height: 20px;
            border-radius: 999px;
            border: 1px dashed rgba(18, 61, 45, 0.28);
            background: linear-gradient(180deg, rgba(208, 227, 217, 0.98) 0%, rgba(233, 243, 236, 0.96) 100%);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
        }

        .lesson-card {
            display: grid;
            gap: 10px;
            padding: 12px;
            border-radius: 16px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(241, 246, 242, 0.95) 100%);
            border: 1px solid rgba(43, 61, 52, 0.10);
            box-shadow: 0 12px 24px rgba(16, 24, 20, 0.06);
            cursor: grab;
        }

        .lesson-card.is-compact {
            gap: 0;
            padding: 10px 12px;
        }

        .lesson-card.dragging {
            opacity: 0.55;
        }

        .lesson-card.drop-target {
            border-color: rgba(18, 61, 45, 0.24);
            background: linear-gradient(180deg, rgba(235, 243, 237, 0.98) 0%, rgba(226, 236, 229, 0.94) 100%);
            box-shadow: 0 14px 28px rgba(18, 61, 45, 0.12);
        }

        .lesson-card:active {
            cursor: grabbing;
        }

        .lesson-card-summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            cursor: pointer;
        }

        .lesson-summary-main {
            display: flex;
            align-items: baseline;
            gap: 10px;
            min-width: 0;
            flex-wrap: wrap;
        }

        .lesson-summary-time {
            font-size: 15px;
            font-weight: 800;
            color: var(--accent);
            letter-spacing: -0.02em;
        }

        .lesson-summary-student {
            min-width: 0;
            font-size: 14px;
            font-weight: 700;
            color: var(--text);
        }

        .lesson-summary-side {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            flex-shrink: 0;
        }

        .lesson-summary-price {
            display: inline-flex;
            align-items: center;
            padding: 5px 8px;
            border-radius: 999px;
            background: rgba(243, 245, 241, 0.94);
            border: 1px solid rgba(43, 61, 52, 0.10);
            color: var(--muted-strong);
            font-size: 12px;
            font-weight: 700;
        }

        .lesson-summary-chevron {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 24px;
            height: 24px;
            border-radius: 999px;
            background: rgba(237, 244, 239, 0.98);
            border: 1px solid rgba(18, 61, 45, 0.10);
            color: var(--accent);
            font-size: 16px;
            line-height: 1;
            font-weight: 700;
        }

        .lesson-card-editor {
            display: none;
            gap: 10px;
        }

        .lesson-card.is-expanded .lesson-card-editor {
            display: grid;
        }

        .lesson-card.is-expanded .lesson-card-summary {
            padding-bottom: 8px;
            border-bottom: 1px solid rgba(43, 61, 52, 0.08);
        }

        .lesson-card-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .lesson-handle {
            color: var(--muted-strong);
            font-size: 13px;
            letter-spacing: 0.10em;
            text-transform: uppercase;
            font-weight: 700;
        }

        .lesson-remove {
            width: auto;
            min-width: 32px;
            min-height: 32px;
            padding: 0;
            font-size: 20px;
            background: linear-gradient(180deg, #f4e6e3 0%, #ead8d4 100%);
            color: var(--danger);
            border: 1px solid rgba(159, 51, 40, 0.12);
            box-shadow: none;
            font-weight: 700;
            line-height: 1;
        }

        .lesson-form {
            display: grid;
            gap: 10px;
            grid-template-columns: 118px 1fr;
        }

        .lesson-form input,
        .lesson-form select {
            width: 100%;
            border-radius: 10px;
            border: 1px solid rgba(43, 61, 52, 0.12);
            padding: 10px 12px;
            font: inherit;
            background: rgba(255, 255, 255, 0.97);
            color: var(--text);
        }

        .lesson-form select:focus {
            outline: none;
            border-color: rgba(18, 61, 45, 0.38);
            box-shadow: 0 0 0 4px rgba(18, 61, 45, 0.10);
        }

        .schedule-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
            flex-wrap: wrap;
        }

        .text-button {
            width: auto;
            padding: 0;
            background: none;
            color: var(--accent);
            box-shadow: none;
            border: none;
            font-weight: 700;
        }

        .text-button:hover {
            transform: none;
            box-shadow: none;
            color: var(--accent-strong);
        }

        code {
            background: rgba(228, 236, 231, 0.94);
            border: 1px solid rgba(43, 61, 52, 0.10);
            border-radius: 8px;
            padding: 2px 6px;
            font-size: 0.92em;
        }

        a {
            color: var(--accent);
            text-underline-offset: 0.18em;
        }

        a:hover {
            color: var(--accent-strong);
        }

        @media (max-width: 960px) {
            .wrap {
                width: min(100% - 20px, 1180px);
                margin: 18px auto 34px;
            }

            .grid.cols-2 {
                grid-template-columns: 1fr;
            }

            .row, .row.three {
                grid-template-columns: 1fr;
            }

            .grid.cols-3,
            .stats,
            .action-grid,
            .trainer-student-grid,
            .student-cards-grid,
            .struggling-tasks-grid,
            .trainer-topics-grid,
            .schedule-grid,
            .schedule-board,
            .schedule-layout,
            .payment-review-fields {
                grid-template-columns: 1fr;
            }

            .hero,
            .panel-header,
            .payment-review-top,
            .payment-review-footer {
                display: block;
            }

            .hero-quick-nav {
                width: 100%;
                margin-top: 16px;
            }

            .panel-header .panel-copy,
            .hero-copy .subtitle {
                margin-top: 8px;
            }

            .payment-review-summary {
                justify-items: start;
                text-align: left;
                margin-top: 10px;
            }

            .payment-review-buttons {
                justify-content: stretch;
                margin-top: 12px;
            }

            .payment-review-buttons button {
                width: 100%;
            }

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

            .student-pool {
                position: static;
            }

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

            .student-inline-actions {
                grid-template-columns: 1fr;
            }

            .panel {
                padding: 18px;
                border-radius: 20px;
            }

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

            .subtitle {
                gap: 6px;
            }

            .topbar-divider {
                display: none;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            html {
                scroll-behavior: auto;
            }

            input, textarea, button, .link-button {
                transition: none;
            }
        }
    
