﻿.coach-shell {
            --v2-bg: #eef5f1;
            --v2-sf: #ffffff;
            --v2-sf2: #f4faf6;
            --v2-bd: #d3e4d9;
            --v2-ac: #1f6d4d;
            --v2-tx: #173a2c;
            --v2-tx2: #4d685c;
            --v2-tx3: #6f8a7e;
        }

        .coach-shell {
            display: grid;
            grid-template-columns: 260px minmax(0, 1fr);
            gap: 12px;
            align-items: start;
            margin-top: 12px;
        }

.coach-side {
            position: sticky;
            top: 64px;
            display: grid;
            gap: 10px;
        }

.coach-side-workspace[hidden] {
            display: none !important;
        }

.portal-mobile-help-link {
            display: none;
        }

        .coach-side-card {
            border: 1px solid var(--v2-bd);
            border-radius: 14px;
            background: var(--v2-sf2);
            padding: 14px;
            box-shadow: none;
        }

        .coach-side-title {
            margin: 0;
            font-size: .70rem;
            text-transform: uppercase;
            letter-spacing: .9px;
            color: var(--v2-tx3);
            font-weight: 700;
        }

        .coach-side-main {
            margin: 6px 0 0;
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--v2-tx);
        }

        .coach-side-sub {
            margin-top: 3px;
            color: var(--v2-tx2);
            font-size: .85rem;
        }

        .coach-side-menu {
            display: grid;
            gap: 6px;
            margin-top: 8px;
        }

        .coach-side-group {
            display: grid;
            gap: 6px;
        }

        .side-menu-parent {
            justify-content: space-between;
        }

        .side-menu-label {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .side-menu-caret {
            font-size: .8rem;
            color: currentColor;
            transition: transform .18s ease;
        }

        .coach-side-submenu {
            display: none;
            gap: 6px;
            padding: 4px 0 2px 12px;
            border-left: 1px dashed var(--v2-bd);
        }

        .coach-side-group.open .coach-side-submenu {
            display: grid;
        }

        .coach-side-group.open .side-menu-caret {
            transform: rotate(180deg);
        }

        .coach-side-submenu .side-menu-btn {
            min-height: 38px;
            padding: 8px 10px;
            font-size: .92rem;
            background: rgba(255, 255, 255, .36);
        }

        .side-menu-btn {
            border: 1px solid transparent;
            background: transparent;
            color: var(--v2-tx2);
            border-radius: 10px;
            padding: 9px 10px;
            text-align: left;
            font-size: .94rem;
            font-weight: 500;
            cursor: pointer;
            text-decoration: none;
            transition: all .15s ease;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .side-menu-btn:hover {
            color: var(--v2-tx);
            background: var(--v2-sf2);
            transform: none;
        }

        .side-menu-btn.active {
            color: #fff;
            background: var(--v2-ac);
            border-color: var(--v2-ac);
            box-shadow: none;
        }

        .side-ico {
            width: 16px;
            text-align: center;
            font-size: 13px;
            opacity: .88;
        }

        .coach-main {
            min-width: 0;
        }

        .coach-mobile-menu-backdrop,
.coach-mobile-menu-btn {
            display: none;
        }

        .coach-mobile-menu-btn {
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 44px;
            padding: 0 16px;
            border-radius: 999px;
            border: 1px solid rgba(31, 61, 99, .18);
            background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,239,230,.98));
            color: var(--v2-tx);
            box-shadow: 0 10px 18px rgba(31,49,72,.08);
        }

        .coach-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .coach-top {
            background: linear-gradient(120deg, #174632, #1f6d4d);
            border: 1px solid #2b7a5a;
            border-radius: 14px;
            padding: 14px;
            color: #fff;
            margin-top: 12px;
        }

        .coach-top-bar {
            display: flex;
            justify-content: space-between;
            gap: 14px;
            align-items: flex-start;
            flex-wrap: wrap;
        }

        .coach-top-copy {
            min-width: 0;
        }

        .coach-top h2 {
            margin: 0;
            font-size: 1.18rem;
        }

        .coach-top p {
            margin: 6px 0 0;
            color: #d9efe3;
            font-size: .9rem;
            max-width: 760px;
        }

        .coach-select-row {
            margin-top: 12px;
            display: grid;
            grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
            gap: 12px;
            align-items: end;
        }

        .coach-select-row label {
            margin: 0;
            color: #e8f6ef;
            font-size: .86rem;
            font-weight: 700;
            letter-spacing: .2px;
        }

        .coach-select-row select {
            width: 100%;
            margin-top: 6px;
            min-height: 48px;
            padding: 0 14px;
            background: #fff;
            color: #173a2c;
            border: 1px solid rgba(255, 255, 255, .18);
            border-radius: 12px;
            box-shadow: 0 10px 18px rgba(10, 31, 22, .10);
        }

        .quick-nav {
            margin-top: 12px;
            display: none;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 8px;
        }

        .quick-btn {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            text-decoration: none;
            background: rgba(255, 255, 255, .14);
            color: #fff;
            border: 1px solid rgba(255, 255, 255, .25);
            border-radius: 10px;
            padding: 10px;
            font-weight: 700;
            cursor: pointer;
        }

        .quick-btn:hover {
            background: rgba(255, 255, 255, .24);
        }

        .quick-btn.active {
            background: #ffffff;
            color: #1a5a41;
            border-color: #ffffff;
        }

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

        .coach-overview-toolbar {
            display: grid;
            grid-template-columns: 1.2fr repeat(4, minmax(140px, .7fr));
            gap: 10px;
            align-items: end;
            margin-top: 14px;
        }

        .coach-overview-head {
            display: flex;
            justify-content: space-between;
            gap: 16px;
            align-items: flex-start;
            flex-wrap: wrap;
            margin-bottom: 6px;
        }

        .coach-overview-kicker {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            border-radius: 999px;
            padding: 5px 10px;
            background: #eaf5ef;
            color: #1f6d4d;
            border: 1px solid #c7ddcf;
            font-size: .76rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .5px;
        }

        .coach-overview-head h3 {
            margin: 8px 0 6px;
        }

        .coach-overview-head p {
            margin: 0;
            color: #4f6a5e;
            max-width: 720px;
        }

        .coach-overview-toolbar label {
            margin: 0;
            font-size: .88rem;
            color: var(--v2-tx2);
            font-weight: 600;
        }

        .coach-overview-toolbar input,
        .coach-overview-toolbar select {
            width: 100%;
            margin-top: 5px;
            border: 1px solid #bfd7c8;
            border-radius: 10px;
            padding: 9px 10px;
            background: #fff;
            color: var(--v2-tx);
        }

        .coach-overview-summary-card {
            border: 1px solid #d6e5db;
            border-radius: 12px;
            background: #f8fcfa;
            padding: 12px;
        }

        .coach-overview-summary-card span {
            display: block;
            color: var(--v2-tx3);
            font-size: .8rem;
            text-transform: uppercase;
            letter-spacing: .5px;
            font-weight: 700;
        }

        .coach-overview-summary-card strong {
            display: block;
            margin-top: 6px;
            color: var(--v2-tx);
            font-size: 1.5rem;
            font-weight: 800;
        }

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

        #sectionOverview {
            background: linear-gradient(180deg, #eef4f1 0%, #e7efeb 100%);
            border: 1px solid #cfded5;
            border-radius: 18px;
            padding: 14px;
        }

        .coach-compare-card {
            position: relative;
            border: 1px solid #b9d1c2;
            border-radius: 16px;
            background:
                radial-gradient(circle at top left, rgba(242, 140, 40, .10), transparent 30%),
                radial-gradient(circle at bottom right, rgba(79, 156, 255, .10), transparent 32%),
                linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
            padding: 14px;
            box-shadow: 0 14px 28px rgba(24, 78, 53, .10);
            overflow: hidden;
            transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
        }

        .coach-compare-card::before {
            content: "";
            position: absolute;
            inset: 14px auto auto 14px;
            width: 10px;
            height: 10px;
            border-radius: 999px;
            background: linear-gradient(135deg, rgba(242, 140, 40, .95) 0%, rgba(255, 179, 92, .95) 100%);
            box-shadow: 0 0 0 5px rgba(242, 140, 40, .10);
            opacity: .78;
        }

        .coach-compare-card.is-selected {
            border-color: #7fb39a;
            background:
                radial-gradient(circle at top left, rgba(242, 140, 40, .18), transparent 34%),
                radial-gradient(circle at bottom right, rgba(79, 156, 255, .12), transparent 34%),
                linear-gradient(180deg, #ffffff 0%, #fbfefd 100%);
            box-shadow: 0 18px 34px rgba(24, 78, 53, .12), 0 0 0 1px rgba(242, 140, 40, .22);
            transform: translateY(-2px);
        }

        .coach-compare-card.is-selected::before {
            width: 12px;
            height: 12px;
            box-shadow: 0 0 0 6px rgba(242, 140, 40, .12);
            opacity: 1;
        }

        .coach-compare-top {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            align-items: flex-start;
        }

        .coach-compare-top h4 {
            margin: 8px 0 0;
            font-size: 1.08rem;
            color: var(--v2-tx);
        }

        .coach-compare-tags {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .coach-compare-tags span {
            border: 1px solid #cfe0d7;
            border-radius: 999px;
            padding: 4px 9px;
            background: linear-gradient(180deg, #f4faf7 0%, #edf7f2 100%);
            color: #28513e;
            font-size: .77rem;
            font-weight: 700;
        }

        .coach-compare-tags span:first-child {
            background: linear-gradient(180deg, #fff6eb 0%, #ffeeda 100%);
            border-color: #f3c792;
            color: #8d520f;
        }

        .coach-compare-metrics {
            display: grid;
            gap: 8px;
            margin-top: 10px;
        }

        .coach-compare-metrics {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .coach-compare-metric {
            border: 1px solid #d6e4db;
            border-radius: 11px;
            background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(244, 250, 247, .96) 100%);
            padding: 10px;
        }

        .coach-compare-metric span {
            display: block;
            color: var(--v2-tx3);
            font-size: .76rem;
            text-transform: uppercase;
            letter-spacing: .45px;
            font-weight: 700;
            word-break: keep-all;
            overflow-wrap: normal;
            hyphens: none;
            line-height: 1.28;
        }

        .coach-compare-metric strong {
            display: block;
            margin-top: 4px;
            color: var(--v2-tx);
            font-size: 1.18rem;
            font-weight: 800;
        }

        .coach-compare-note {
            margin-top: 12px;
            padding: 10px 11px;
            border: 1px dashed #c9ddd1;
            border-radius: 11px;
            background: linear-gradient(180deg, #fbfefd 0%, #f6fbf8 100%);
            color: var(--v2-tx2);
            font-size: .88rem;
        }

        .coach-compare-note strong {
            color: var(--v2-tx);
            margin: 0 4px;
        }

        .coach-compare-note em {
            color: #255341;
            font-style: normal;
            font-weight: 700;
            margin-left: 4px;
        }

        .coach-compare-extra {
            margin-top: 12px;
            border: 1px dashed #c9ddd1;
            border-radius: 13px;
            background: linear-gradient(180deg, #fcfefd 0%, #f7fbf9 100%);
            overflow: hidden;
        }

        .coach-compare-extra-summary {
            list-style: none;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding: 10px 12px;
            cursor: pointer;
            font-size: .88rem;
            font-weight: 800;
            color: var(--v2-tx);
        }

        .coach-compare-extra-summary::-webkit-details-marker {
            display: none;
        }

        .coach-compare-extra-summary::after {
            content: "+";
            margin-left: auto;
            font-size: 1rem;
            color: #5f7b70;
        }

        .coach-compare-extra[open] .coach-compare-extra-summary::after {
            content: "-";
        }

        .coach-compare-extra-body {
            padding: 0 12px 10px;
        }

        .coach-compare-extra-pill {
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            font-size: .76rem;
            font-weight: 800;
            border: 1px solid #dbe5df;
            background: rgba(255, 255, 255, .86);
            color: #365268;
        }

        .coach-compare-extra-pill.is-critical {
            border-color: #efc0c0;
            color: #8a3737;
            background: #fff7f7;
        }

        .coach-compare-extra-pill.is-attention {
            border-color: #efcb97;
            color: #8d5a12;
            background: #fff7ea;
        }

        .coach-compare-extra-pill.is-monitor {
            border-color: #bfd1f4;
            color: #2d5c97;
            background: #f2f7ff;
        }

        .coach-compare-extra-pill.is-stable {
            border-color: #bfdcc8;
            color: #2b6b47;
            background: #eef8f1;
        }

        .coach-compare-actions {
            margin-top: 10px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .coach-overview-quick-form {
            margin: 0;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .coach-intervention-card {
            margin-top: 12px;
            border-radius: 13px;
            padding: 12px;
            border: 1px solid #dbe5df;
            background: linear-gradient(180deg, #fbfefd 0%, #f6fbf8 100%);
        }

        .coach-intervention-card.is-critical {
            border-color: #efc0c0;
            background: linear-gradient(180deg, #fff7f7 0%, #fdefef 100%);
        }

        .coach-intervention-card.is-attention {
            border-color: #efcb97;
            background: linear-gradient(180deg, #fff8ee 0%, #fff2df 100%);
        }

        .coach-intervention-card.is-monitor {
            border-color: #bfd1f4;
            background: linear-gradient(180deg, #f5f9ff 0%, #edf4ff 100%);
        }

        .coach-intervention-card.is-stable {
            border-color: #bfdcc8;
            background: linear-gradient(180deg, #f3fbf5 0%, #ebf7ef 100%);
        }

        .coach-intervention-top {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
        }

        .coach-intervention-label,
        .coach-intervention-action {
            display: inline-flex;
            align-items: center;
            min-height: 28px;
            padding: 0 10px;
            border-radius: 999px;
            font-size: .78rem;
            font-weight: 800;
        }

        .coach-intervention-label {
            background: rgba(255, 255, 255, .82);
            border: 1px solid rgba(31, 60, 83, .08);
            color: #1f3c53;
        }

        .coach-intervention-action {
            background: rgba(255, 255, 255, .72);
            border: 1px solid rgba(31, 60, 83, .08);
            color: #4d657b;
        }

        .coach-intervention-reason,
        .coach-intervention-text {
            margin: 9px 0 0;
            color: var(--v2-tx2);
            font-size: .86rem;
            line-height: 1.5;
        }

        .coach-intervention-reason {
            font-weight: 700;
            color: var(--v2-tx);
        }

        .coach-quick-action-btn {
            background: linear-gradient(135deg, #fef5e6 0%, #ffe1b8 100%) !important;
            border-color: #efbb73 !important;
            color: #8a520f !important;
        }

        .coach-quick-action-status {
            min-height: 20px;
            color: #41617a;
            font-size: .77rem;
            font-weight: 700;
        }

        .coach-quick-action-status.is-success {
            color: #2b6b47;
        }

        .coach-quick-action-status.is-error {
            color: #8a3737;
        }

        .coach-quick-message-panel {
            max-width: 640px;
        }

        .coach-quick-message-sub {
            margin: 4px 0 0;
            color: #5a7568;
            font-size: .88rem;
            font-weight: 700;
        }

        .coach-quick-message-form {
            display: grid;
            gap: 12px;
        }

        .coach-quick-message-form label {
            margin: 0;
        }

        .coach-quick-message-form textarea,
        .coach-quick-message-form input {
            margin-top: 6px;
        }

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

        .coach-quick-message-status {
            min-height: 22px;
            color: #41617a;
            font-size: .82rem;
            font-weight: 700;
        }

        .coach-quick-message-status.is-success {
            color: #2b6b47;
        }

        .coach-quick-message-status.is-error {
            color: #8a3737;
        }

        .coach-parent-invite-target {
            margin: 0 0 8px;
            color: #1e4068;
            font-weight: 700;
        }

        .coach-parent-invite-target strong {
            color: inherit;
        }

        .coach-invite-ops-card {
            display: grid;
            gap: 18px;
        }

        .coach-invite-ops-head,
        .coach-single-invite-head,
        .coach-invite-list-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 14px;
        }

        .coach-invite-ops-head h4,
        .coach-single-invite-head h5,
        .coach-invite-list-head h5 {
            margin: 4px 0 4px;
            color: #102f55;
        }

        .coach-section-eyebrow {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            padding: 5px 10px;
            border-radius: 999px;
            background: #eef6ff;
            border: 1px solid #cfe1f8;
            color: #1d538b;
            font-size: .72rem;
            font-weight: 900;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

        .coach-invite-link {
            display: inline-block;
            min-width: 0;
            word-break: break-word;
            overflow-wrap: anywhere;
        }

        .coach-invite-link-stack {
            display: grid;
            gap: 10px;
        }

        .coach-bulk-invite-card {
            padding: 18px;
            border-radius: 16px;
            border: 1px solid rgba(240, 176, 97, 0.52);
            background:
                linear-gradient(135deg, rgba(255, 247, 235, 0.95) 0%, rgba(240, 248, 255, 0.92) 100%);
            box-shadow: 0 14px 30px rgba(21, 54, 92, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78);
        }

        .coach-bulk-invite-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }

        .coach-bulk-invite-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 0.78rem;
            font-weight: 800;
            color: #92520d;
            background: rgba(255, 216, 160, 0.78);
            border: 1px solid rgba(228, 164, 83, 0.45);
            white-space: nowrap;
        }

        .coach-bulk-invite-code-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .coach-bulk-invite-code {
            font-size: 1.05rem;
            color: #15365c;
            letter-spacing: 0.02em;
        }

        .coach-bulk-invite-link-box {
            display: grid;
            gap: 4px;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.82);
            border: 1px solid rgba(213, 226, 238, 0.96);
        }

        .coach-invite-success-card {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 18px;
            align-items: center;
            padding: 18px;
            border-radius: 18px;
            border: 1px solid rgba(74, 163, 111, 0.34);
            background:
                linear-gradient(135deg, rgba(237, 250, 241, 0.96) 0%, rgba(255, 248, 238, 0.96) 100%);
            box-shadow: 0 18px 36px rgba(24, 78, 53, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.84);
        }

        .coach-invite-success-copy {
            display: grid;
            gap: 6px;
        }

        .coach-invite-success-badge {
            width: fit-content;
            display: inline-flex;
            align-items: center;
            padding: 5px 10px;
            border-radius: 999px;
            border: 1px solid rgba(64, 143, 94, 0.32);
            background: #e8f8ee;
            color: #1f6a3b;
            font-size: .74rem;
            font-weight: 900;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

        .coach-invite-success-copy h5 {
            margin: 0;
            color: #12345d;
            font-size: 1.08rem;
        }

        .coach-invite-success-copy p {
            margin: 0;
            color: #345777;
            line-height: 1.45;
        }

        .coach-invite-success-code {
            display: grid;
            gap: 8px;
            justify-items: center;
            min-width: 220px;
            padding: 14px;
            border-radius: 16px;
            border: 1px solid rgba(240, 176, 97, 0.5);
            background: rgba(255, 255, 255, 0.86);
        }

        .coach-invite-success-code > span {
            color: #7b8fa4;
            font-size: .72rem;
            font-weight: 900;
            letter-spacing: .05em;
            text-transform: uppercase;
        }

        .coach-invite-success-code > strong {
            color: #0d315d;
            font-size: clamp(1.65rem, 3vw, 2.35rem);
            line-height: 1;
            letter-spacing: .04em;
        }

        .coach-invite-success-copy-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 7px;
            min-height: 40px;
            padding: 0 14px;
            border: 0;
            border-radius: 999px;
            background: #f47b20;
            color: #fff;
            font-weight: 900;
            cursor: pointer;
            box-shadow: 0 10px 20px rgba(244, 123, 32, 0.24);
        }

        .coach-invite-success-copy-btn svg {
            width: 17px;
            height: 17px;
            fill: none;
            stroke: currentColor;
            stroke-width: 2;
            stroke-linecap: round;
            stroke-linejoin: round;
        }

        .coach-single-invite-section {
            display: grid;
            gap: 14px;
            padding-top: 18px;
            border-top: 1px solid #e1ebf5;
        }

        .coach-student-invite-form {
            display: grid;
            gap: 12px;
        }

        #sectionStudentOps input,
        #sectionStudentOps select,
        #sectionStudentOps textarea {
            border-color: #8ca3bd;
        }

        #sectionStudentOps input:focus,
        #sectionStudentOps select:focus,
        #sectionStudentOps textarea:focus {
            border-color: #1f3f66;
            box-shadow: 0 0 0 3px rgba(31, 63, 102, 0.12);
            outline: none;
        }

        .coach-student-invite-form .login-subpanel {
            border-radius: 14px;
            border: 1px solid #dbe7f4;
            background: #f8fbff;
            box-shadow: none;
        }

        .coach-parent-first-panel {
            margin: 0;
        }

        .coach-student-invite-step {
            display: grid;
            gap: 12px;
            padding: 16px;
            border-radius: 14px;
            border: 1px solid #dbe7f4;
            background: #ffffff;
        }

        .coach-student-invite-step .login-subpanel-head {
            margin-bottom: 2px;
        }

        .coach-shared-parent-check {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            width: fit-content;
            max-width: 100%;
            padding: 9px 11px;
            border-radius: 12px;
            border: 1px solid #bfd7c8;
            background: #ffffff;
            color: #244663;
            font-weight: 800;
        }

        .coach-shared-parent-check input {
            width: auto !important;
            margin: 0 !important;
        }

        .coach-parent-email-note {
            display: block;
            margin-top: 6px;
            padding: 7px 9px;
            border-radius: 10px;
            font-size: .82rem;
            font-weight: 800;
        }

        .coach-parent-email-note.is-checking {
            background: #f2f7ff;
            border: 1px solid #cfe0f5;
            color: #244663;
        }

        .coach-parent-email-note.is-ok {
            background: #eaf8f0;
            border: 1px solid rgba(45, 131, 88, 0.28);
            color: #21613d;
        }

        .coach-parent-email-note.is-error {
            background: #fff0f0;
            border: 1px solid rgba(154, 49, 49, 0.22);
            color: #9a3131;
        }

        .coach-single-invite-section .coach-lock-note {
            display: inline-flex;
            width: fit-content;
            max-width: 100%;
            margin: 0;
        }

        .coach-invite-list-head {
            padding-top: 16px;
            border-top: 1px solid #e1ebf5;
        }

        .coach-invite-code-card {
            display: grid;
            gap: 10px;
            min-width: 260px;
            max-width: 380px;
        }

        .coach-invite-code-top {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .coach-invite-code-top strong {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            padding: 7px 10px;
            border-radius: 10px;
            background: #f2f7ff;
            border: 1px solid #cfe0f5;
            color: #0d315d;
            font-size: .95rem;
            letter-spacing: .02em;
        }

        .coach-invite-url-row {
            display: grid;
            gap: 4px;
            padding: 9px 10px;
            border-radius: 12px;
            border: 1px solid #dce8f4;
            background: #f9fbfe;
            color: #244663;
            font-size: .86rem;
        }

        .coach-invite-url-row > span:first-child {
            color: #6b8196;
            font-size: .72rem;
            font-weight: 900;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

        .coach-invite-status-chip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: fit-content;
            min-width: 76px;
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid #cfe0f5;
            background: #f2f7ff;
            color: #244663;
            font-size: .78rem;
            font-weight: 900;
            text-transform: capitalize;
        }

        .coach-invite-status-chip.is-active {
            border-color: rgba(45, 131, 88, 0.28);
            background: #eaf8f0;
            color: #21613d;
        }

        .coach-invite-status-chip.is-used {
            border-color: rgba(37, 99, 235, 0.25);
            background: #edf4ff;
            color: #1d4f9a;
        }

        .coach-invite-status-chip.is-cancelled,
        .coach-invite-status-chip.is-expired {
            border-color: rgba(154, 49, 49, 0.22);
            background: #fff0f0;
            color: #9a3131;
        }

        .coach-invite-mobile-toggle {
            display: none;
        }

        .coach-invite-student-cell {
            display: grid;
            gap: 4px;
            min-width: 220px;
        }

        .coach-invite-student-cell strong {
            color: #16365f;
        }

        .coach-invite-used-note {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            max-width: 100%;
            padding: 5px 9px;
            border-radius: 999px;
            background: #eef8f1;
            border: 1px solid #bde1c7;
            color: #22613c;
            font-size: .78rem;
            font-weight: 800;
            white-space: nowrap;
        }

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

        .coach-inline-actions form {
            margin: 0;
        }

        .btn-mini-danger {
            color: #9a3131;
            border-color: rgba(191, 90, 90, 0.32);
            background: rgba(255, 238, 238, 0.86);
        }

        .btn-mini-danger:hover {
            background: rgba(255, 224, 224, 0.96);
            border-color: rgba(191, 90, 90, 0.42);
        }

        .coach-invite-table td form {
            margin: 0;
        }

        .coach-compare-trends {
            margin-top: 0;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .coach-trend-chip {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            padding: 5px 10px;
            font-size: .79rem;
            font-weight: 700;
            border: 1px solid var(--tone-neutral-bd);
            background: var(--tone-neutral-bg);
            color: var(--tone-neutral-tx);
        }

        .coach-trend-chip.up {
            background: var(--tone-success-bg);
            border-color: var(--tone-success-bd);
            color: var(--tone-success-tx);
        }

        .coach-trend-chip.down {
            background: var(--tone-danger-bg);
            border-color: var(--tone-danger-bd);
            color: var(--tone-danger-tx);
        }

        .coach-trend-chip.flat {
            background: var(--tone-neutral-bg);
            border-color: var(--tone-neutral-bd);
            color: var(--tone-neutral-tx);
        }

        .coach-compare-card .filter-btn.active {
            background: linear-gradient(135deg, #fff0dc 0%, #ffdcae 100%);
            border-color: #f0b86d;
            color: #8f4f0d;
        }

        .coach-compare-card .filter-btn {
            background: linear-gradient(180deg, #f6faff 0%, #eef5ff 100%);
            border-color: #cfdcf0;
            color: #274768;
        }

        .school-schedule-summary-table-wrap {
            border: 1px solid #dce9e1;
            border-radius: 14px;
            background: #fff;
            overflow: auto;
        }

        .school-schedule-summary-table {
            width: 100%;
            min-width: 900px;
            border-collapse: collapse;
            table-layout: fixed;
        }

        .school-schedule-summary-table th,
        .school-schedule-summary-table td {
            border-right: 1px solid #e8f0eb;
            border-bottom: 1px solid #e8f0eb;
            padding: 10px 8px;
            text-align: center;
            vertical-align: middle;
        }

        .school-schedule-summary-table tr > *:last-child {
            border-right: 0;
        }

        .school-schedule-summary-table th {
            background: #f6fbf8;
            color: #214a38;
            font-size: .84rem;
            font-weight: 800;
            white-space: nowrap;
        }

        .school-schedule-summary-table .schedule-summary-day {
            min-width: 110px;
            text-align: left;
            font-weight: 800;
            color: #214a38;
            background: #f9fcfa;
        }

        .schedule-summary-cell {
            display: grid;
            gap: 4px;
            min-height: 56px;
            align-content: center;
        }

        .schedule-summary-cell strong {
            color: #17324d;
            font-size: 1rem;
        }

        .schedule-summary-cell span {
            color: #5d7387;
            font-size: .84rem;
        }

        .schedule-empty {
            color: #7d8f9f;
            font-size: .9rem;
        }

        @media (hover:hover) and (pointer:fine) {
            .coach-compare-card:hover {
                transform: translateY(-4px);
                border-color: #9fc2b1;
                box-shadow: 0 20px 34px rgba(24, 78, 53, .14);
            }

            .coach-compare-card.is-selected:hover {
                box-shadow: 0 22px 38px rgba(24, 78, 53, .16), 0 0 0 1px rgba(242, 140, 40, .26);
            }
        }

        .coach-top.is-overview-focus {
            border-radius: 18px 18px 0 0;
            border-bottom-color: transparent;
            box-shadow: none;
            padding-bottom: 12px;
            margin-bottom: 0;
        }

        .coach-top.is-overview-focus .quick-nav {
            margin-bottom: 0;
        }

        .coach-sections.single #sectionOverview.active {
            margin-top: -1px;
            border-top: 0;
            border-radius: 0 0 18px 18px;
            box-shadow: 0 18px 36px rgba(16, 39, 26, .12);
        }

        @media (max-width: 820px) {
            .coach-invite-ops-head,
            .coach-bulk-invite-head,
            .coach-single-invite-head,
            .coach-invite-list-head {
                display: grid;
            }

            .coach-bulk-invite-card {
                padding: 14px;
                border-radius: 14px;
            }

            .coach-invite-success-card {
                grid-template-columns: 1fr;
                padding: 14px;
            }

            .coach-invite-success-code {
                width: 100%;
                min-width: 0;
            }

            .coach-invite-code-card,
            .coach-invite-student-cell {
                max-width: none;
                min-width: 0;
            }

            .coach-school-schedule-table-wrap {
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
            }

            .coach-school-schedule-table {
                min-width: 760px;
            }

            .coach-school-schedule-table th,
            .coach-school-schedule-table td {
                padding: 8px 6px;
                font-size: 0.82rem;
            }

            .coach-school-schedule-table .schedule-summary-day {
                min-width: 92px;
                position: sticky;
                left: 0;
                z-index: 2;
                box-shadow: 1px 0 0 rgba(220, 233, 225, 0.95);
            }

            .coach-school-schedule-table thead th:first-child {
                position: sticky;
                left: 0;
                z-index: 3;
            }

            .coach-school-schedule-table .schedule-summary-cell {
                min-height: 44px;
                gap: 2px;
            }

            .coach-school-schedule-table .schedule-summary-cell strong {
                font-size: 0.9rem;
            }

            #sectionStudentOps .coach-invite-table-wrap {
                overflow: visible;
            }

            #sectionStudentOps .coach-invite-table,
            #sectionStudentOps .coach-invite-table tbody,
            #sectionStudentOps .coach-invite-table tr,
            #sectionStudentOps .coach-invite-table td {
                display: block;
                width: 100%;
            }

            #sectionStudentOps .coach-invite-table thead {
                display: none;
            }

            #sectionStudentOps .coach-invite-table tbody {
                display: grid;
                gap: 14px;
            }

            #sectionStudentOps .coach-invite-table tr {
                border: 1px solid #d7e5db;
                border-radius: 18px;
                background: #ffffff;
                padding: 14px;
                box-shadow: 0 12px 24px rgba(22, 57, 38, .08);
            }

            #sectionStudentOps .coach-invite-table tr[data-invite-row]:not(.is-open) {
                padding: 10px;
            }

            #sectionStudentOps .coach-invite-table td {
                border: 0;
                padding: 0;
            }

            #sectionStudentOps .coach-invite-table tr[data-invite-row]:not(.is-open) td:not(:first-child),
            #sectionStudentOps .coach-invite-table tr[data-invite-row]:not(.is-open) td:first-child > .coach-invite-code-card,
            #sectionStudentOps .coach-invite-table tr[data-invite-row]:not(.is-open) td:first-child > strong,
            #sectionStudentOps .coach-invite-table tr[data-invite-row]:not(.is-open) td:first-child > br,
            #sectionStudentOps .coach-invite-table tr[data-invite-row]:not(.is-open) td:first-child > .coach-invite-link {
                display: none;
            }

            #sectionStudentOps .coach-invite-table tr[data-invite-row]:not(.is-open) td:first-child::before {
                display: none;
            }

            .coach-invite-mobile-toggle {
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 10px;
                border: 1px solid #cfe0f5;
                border-radius: 14px;
                background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
                color: #0d315d;
                padding: 12px 14px;
                font-weight: 900;
                text-align: left;
                cursor: pointer;
            }

            .coach-invite-mobile-toggle::after {
                content: "Detay";
                flex: 0 0 auto;
                padding: 5px 9px;
                border-radius: 999px;
                background: #fff4e5;
                color: #99570f;
                border: 1px solid #f0c184;
                font-size: .75rem;
            }

            #sectionStudentOps .coach-invite-table tr.is-open .coach-invite-mobile-toggle::after {
                content: "Kapat";
            }

            .coach-invite-mobile-toggle span,
            .coach-invite-mobile-toggle small {
                min-width: 0;
            }

            .coach-invite-mobile-toggle small {
                color: #4b6b8f;
                font-size: .78rem;
                font-weight: 800;
                white-space: nowrap;
            }

            #sectionStudentOps .coach-invite-table td + td {
                margin-top: 12px;
                padding-top: 12px;
                border-top: 1px solid #e6efe9;
            }

            #sectionStudentOps .coach-invite-table td::before {
                content: attr(data-label);
                display: block;
                margin-bottom: 6px;
                color: #5d7669;
                font-size: .76rem;
                font-weight: 800;
                text-transform: uppercase;
                letter-spacing: .04em;
            }

            #sectionStudentOps .coach-invite-table td[colspan]::before {
                display: none;
            }

            #sectionStudentOps .coach-invite-table .btn-mini {
                width: 100%;
                justify-content: center;
                margin-top: 8px;
            }

            #sectionStudentOps .coach-invite-table td[data-label="İşlem"] .btn-mini,
            #sectionStudentOps .coach-invite-table td[data-label="Islem"] .btn-mini {
                margin-top: 0;
            }
        }

        @media (max-width: 640px) {
            .coach-school-schedule-table-wrap {
                margin-inline: -2px;
                border-radius: 12px;
            }

            .coach-school-schedule-table {
                min-width: 680px;
            }

            .coach-school-schedule-table th,
            .coach-school-schedule-table td {
                padding: 7px 5px;
                font-size: 0.76rem;
            }

            .coach-school-schedule-table .schedule-summary-day {
                min-width: 82px;
                padding-left: 8px;
            }

            .coach-school-schedule-table .schedule-summary-cell {
                min-height: 40px;
                gap: 1px;
            }

            .coach-school-schedule-table .schedule-summary-cell strong {
                font-size: 0.82rem;
                line-height: 1.15;
            }

            .coach-school-schedule-table .schedule-summary-cell span,
            .coach-school-schedule-table .schedule-empty {
                font-size: 0.74rem;
            }
        }

        .coach-sections.single #sectionOverview.active .coach-overview-head {
            padding-bottom: 6px;
            border-bottom: 1px solid #deebe3;
        }

        #sectionWeeklyTask.task-card {
            max-width: 100%;
            width: 100%;
            margin: 0;
            border: 2px solid #263f36;
            border-radius: 14px;
            background: #ffffff;
            box-shadow: 0 12px 28px rgba(24, 78, 53, .10);
        }

        #sectionWeeklyTask .task-head {
            margin: -14px -14px 12px -14px;
            padding: 10px 12px;
            border-radius: 14px 14px 0 0;
            border-bottom: 1px solid #d9e9df;
            background: linear-gradient(120deg, #eef7f1, #f7fcf9);
        }

        #sectionWeeklyTask .task-head h3 {
            margin: 0;
            font-size: 1.28rem;
        }

        #sectionWeeklyTask .task-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        #sectionWeeklyTask .task-grid.task-grid--scope {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            align-items: start;
        }

        #sectionWeeklyTask .task-grid.task-grid--scope.task-grid--scope-compact {
            grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
            align-items: start;
        }

        #sectionWeeklyTask label {
            margin-bottom: 6px;
        }

        #sectionWeeklyTask .coach-inline-check {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            margin: 4px 0 8px;
            font-weight: 700;
            color: #355246;
        }

#sectionWeeklyTask .coach-inline-check input {
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Modern student invite workspace */
#sectionStudentOps {
    --invite-ink: #16283d;
    --invite-muted: #5e6f82;
    --invite-line: #c7d5e3;
    --invite-surface: #ffffff;
    --invite-soft: #f6f8fb;
    --invite-green: #1f7a54;
    --invite-blue: #255f9f;
    --invite-orange: #d96f18;
}

#sectionStudentOps.coach-section {
    background: linear-gradient(180deg, #f6f8fb 0%, #eef3f6 100%);
    border-color: #d8e1ea;
}

#sectionStudentOps .coach-student-ops-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

#sectionStudentOps .coach-student-ops-heading h3 {
    margin: 0;
    color: var(--invite-ink);
}

#sectionStudentOps .admin-subtabs {
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    padding: 4px;
    border: 1px solid var(--invite-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 24px rgba(22, 40, 61, .06);
}

#sectionStudentOps .admin-subtab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    border-radius: 6px;
    border-color: transparent;
    background: transparent;
    color: var(--invite-muted);
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
    box-shadow: none;
}

#sectionStudentOps .admin-subtab-btn.active {
    background: #17385f;
    border-color: #17385f;
    color: #fff;
    box-shadow: 0 8px 16px rgba(23, 56, 95, .18);
}

#sectionStudentOps .coach-invite-ops-card {
    padding: 18px;
    border-radius: 8px !important;
    border-color: var(--invite-line);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 18px 36px rgba(22, 40, 61, .08) !important;
}

#sectionStudentOps .coach-invite-ops-head {
    align-items: center;
    padding: 2px 2px 16px;
    border-bottom: 1px solid var(--invite-line);
}

#sectionStudentOps .coach-invite-ops-head h4,
#sectionStudentOps .coach-single-invite-head h5,
#sectionStudentOps .coach-invite-list-head h5,
#sectionStudentOps .coach-bulk-invite-head h5 {
    margin: 6px 0 4px;
    color: var(--invite-ink);
    letter-spacing: 0;
}

#sectionStudentOps .coach-section-eyebrow {
    border-radius: 6px;
    background: #eef6f2;
    border-color: #cfe4d8;
    color: #1f6d4d;
    letter-spacing: 0;
}

#sectionStudentOps .coach-invite-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 8px;
    min-width: min(100%, 330px);
}

#sectionStudentOps .coach-invite-metrics span {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--invite-line);
    border-radius: 8px;
    background: var(--invite-soft);
    color: var(--invite-muted);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1.25;
}

#sectionStudentOps .coach-invite-metrics strong {
    color: var(--invite-ink);
    font-size: 1.1rem;
    font-family: var(--portal-number-font);
    font-variant-numeric: tabular-nums;
}

#sectionStudentOps .coach-bulk-invite-card,
#sectionStudentOps .coach-single-invite-section,
#sectionStudentOps .coach-import-invite-section,
#sectionStudentOps .coach-invite-list-head {
    border-radius: 8px;
    border: 1px solid var(--invite-line);
    background: var(--invite-surface);
    box-shadow: 0 12px 24px rgba(22, 40, 61, .05);
}

#sectionStudentOps .coach-bulk-invite-card {
    padding: 16px;
}

#sectionStudentOps .coach-single-invite-section,
#sectionStudentOps .coach-import-invite-section,
#sectionStudentOps .coach-invite-list-head {
    padding: 16px;
    border-top: 1px solid var(--invite-line);
}

#sectionStudentOps .coach-invite-mode-pane:not(.is-active),
#sectionStudentOps [data-invite-mode-pane][hidden] {
    display: none !important;
}

#sectionStudentOps .coach-invite-mode-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 4px;
    border: 1px solid var(--invite-line);
    border-radius: 8px;
    background: var(--invite-soft);
}

#sectionStudentOps .coach-invite-capacity {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #cfe0d6;
    border-radius: 6px;
    background: #f3faf6;
    color: #315c49;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}

#sectionStudentOps .coach-invite-capacity strong {
    color: var(--invite-ink);
}

#sectionStudentOps .coach-invite-capacity small {
    color: var(--invite-muted);
    font-size: .7rem;
}

#sectionStudentOps .coach-invite-mode-tabs {
    margin-bottom: 16px;
}

#sectionStudentOps .coach-invite-mode-tabs button {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--invite-muted);
    font-size: .82rem;
    font-weight: 800;
}

#sectionStudentOps .coach-invite-mode-tabs button.active {
    border-color: #17385f;
    background: #17385f;
    color: #fff;
}

#sectionStudentOps .coach-import-invite-section {
    padding: 16px;
}

#sectionStudentOps .coach-import-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

#sectionStudentOps .coach-import-steps article,
#sectionStudentOps .coach-import-preview,
#sectionStudentOps .coach-import-delivery {
    border: 1px solid var(--invite-line);
    border-radius: 8px;
    background: var(--invite-soft);
    padding: 14px;
}

#sectionStudentOps .coach-import-steps strong {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--invite-ink);
}

#sectionStudentOps .coach-import-steps strong span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #17385f;
    color: #fff;
}

#sectionStudentOps .coach-import-steps p,
#sectionStudentOps .coach-import-delivery p {
    color: var(--invite-muted);
    font-size: .82rem;
    line-height: 1.45;
}

#sectionStudentOps .coach-import-steps form {
    display: grid;
    gap: 8px;
}

#sectionStudentOps .coach-import-steps input[type="file"] {
    width: 100%;
    min-height: 42px;
    padding: 7px;
    font-size: .78rem;
}

#sectionStudentOps .coach-import-preview,
#sectionStudentOps .coach-import-delivery {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

#sectionStudentOps .coach-import-preview > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--invite-ink);
}

#sectionStudentOps .coach-import-preview table {
    width: 100%;
    min-width: 720px;
}

#sectionStudentOps .coach-import-preview th,
#sectionStudentOps .coach-import-preview td {
    padding: 9px 10px;
    border-bottom: 1px solid var(--invite-line);
    text-align: left;
    font-size: .78rem;
}

#sectionStudentOps .coach-import-alert {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #efc0c0;
    border-radius: 8px;
    background: #fff0f0;
    color: #9a3131;
    font-size: .82rem;
}

#sectionStudentOps .coach-import-delivery-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

#sectionStudentOps .coach-import-delivery-metrics span {
    display: grid;
    gap: 2px;
    padding: 9px;
    border: 1px solid var(--invite-line);
    border-radius: 6px;
    background: var(--invite-surface);
    color: var(--invite-muted);
    font-size: .76rem;
    font-weight: 800;
}

#sectionStudentOps .coach-import-delivery-metrics strong {
    color: var(--invite-ink);
    font-size: 1.1rem;
}

#sectionStudentOps .coach-bulk-invite-head {
    align-items: center;
}

#sectionStudentOps .coach-bulk-invite-badge,
#sectionStudentOps .coach-invite-status-chip,
#sectionStudentOps .coach-invite-used-note {
    border-radius: 6px;
    letter-spacing: 0;
}

#sectionStudentOps .coach-bulk-invite-badge {
    color: #8a4a0c;
    background: #fff4e6;
    border-color: #f2c891;
}

#sectionStudentOps .coach-bulk-invite-code,
#sectionStudentOps .coach-invite-code-top strong {
    letter-spacing: 0;
}

#sectionStudentOps .coach-bulk-invite-link-box,
#sectionStudentOps .coach-invite-url-row,
#sectionStudentOps .coach-invite-code-top strong {
    border-radius: 8px;
    background: #f8fafc;
    border-color: var(--invite-line);
}

#sectionStudentOps .coach-invite-success-card {
    grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
    border-radius: 8px;
    border-color: #b9ddc7;
    background: #f2faf5;
    box-shadow: 0 14px 28px rgba(31, 122, 84, .1);
}

#sectionStudentOps .coach-invite-success-badge {
    border-radius: 6px;
    letter-spacing: 0;
}

#sectionStudentOps .coach-invite-success-code {
    border-radius: 8px;
    border-color: #cfdde8;
}

#sectionStudentOps .coach-invite-success-code > span,
#sectionStudentOps .coach-invite-url-row > span:first-child {
    letter-spacing: 0;
}

#sectionStudentOps .coach-invite-success-code > strong {
    font-size: 2rem;
    letter-spacing: 0;
}

#sectionStudentOps .coach-invite-success-copy-btn,
#sectionStudentOps .btn-mini,
#sectionStudentOps .coach-student-invite-form button[type="submit"],
#sectionStudentOps .coach-bulk-invite-card button[type="submit"] {
    border-radius: 6px !important;
    letter-spacing: 0;
}

#sectionStudentOps .coach-student-invite-form .login-subpanel,
#sectionStudentOps .coach-student-invite-step {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #b9cadd;
    background:
        linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(248,250,252,.98) 100%);
    padding: 18px;
    box-shadow: 0 14px 28px rgba(22, 40, 61, .06);
}

#sectionStudentOps .coach-student-invite-form .login-subpanel::before,
#sectionStudentOps .coach-student-invite-step::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #17385f 0%, #1f7a54 58%, #d96f18 100%);
}

#sectionStudentOps .coach-student-invite-form .coach-lock-fieldset {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

#sectionStudentOps .coach-parent-first-panel,
#sectionStudentOps .coach-student-invite-step {
    min-width: 0;
    height: 100%;
}

#sectionStudentOps .coach-parent-first-panel {
    display: flex;
    flex-direction: column;
}

#sectionStudentOps .login-subpanel-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 6px 10px;
    align-items: start;
    min-height: 76px;
    margin-bottom: 12px;
}

#sectionStudentOps .login-subpanel-head span {
    grid-column: 2;
    color: var(--invite-muted);
    line-height: 1.45;
    max-width: 620px;
}

#sectionStudentOps .coach-student-invite-form .task-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    margin-bottom: 12px;
    align-items: start;
}

#sectionStudentOps .coach-student-invite-form label {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin: 0;
    color: var(--invite-ink);
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .01em;
}

#sectionStudentOps .coach-student-invite-form label > input,
#sectionStudentOps .coach-student-invite-form label > select,
#sectionStudentOps .coach-student-invite-form label > textarea {
    margin-top: 0;
}

#sectionStudentOps .login-subpanel-head strong {
    display: inline-flex;
    align-items: center;
    grid-column: 1 / -1;
    gap: 8px;
    color: var(--invite-ink);
    font-size: .98rem;
}

#sectionStudentOps .coach-invite-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #17385f;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
}

#sectionStudentOps input,
#sectionStudentOps select,
#sectionStudentOps textarea {
    border-radius: 8px !important;
    border-color: #b7c8da;
    background: #fff;
    min-height: 42px;
    padding: 9px 13px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.82);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

#sectionStudentOps input:hover,
#sectionStudentOps select:hover,
#sectionStudentOps textarea:hover {
    border-color: #98abc0;
}

#sectionStudentOps .coach-student-invite-form label.coach-shared-parent-check {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    border-radius: 8px;
    margin-top: 4px;
    padding: 9px 12px;
    border-color: #b5d0bf;
    background: #fbfefc;
    color: var(--invite-ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: 0;
}

#sectionStudentOps .coach-student-invite-form .coach-shared-parent-check input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-height: 0;
    padding: 0;
    margin: 0 !important;
    flex: 0 0 16px;
}

#sectionStudentOps .coach-student-invite-form .coach-shared-parent-check span {
    min-width: 0;
    line-height: 1.25;
    white-space: normal;
}

#sectionStudentOps .coach-student-invite-step > label {
    margin-bottom: 12px;
}

#sectionStudentOps .coach-student-invite-step .task-grid:last-child {
    max-width: none;
}

#sectionStudentOps .coach-student-invite-form button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: end;
    min-height: 46px;
    padding-inline: 22px;
    background: linear-gradient(135deg, #17385f 0%, #245d8f 100%);
    border: 1px solid rgba(23, 56, 95, .18);
    box-shadow: 0 12px 22px rgba(23, 56, 95, .16);
}

#sectionStudentOps .coach-invite-table-wrap {
    margin-top: 12px !important;
    border-radius: 8px !important;
    border: 1px solid var(--invite-line);
    background: #fff;
    overflow: hidden;
}

#sectionStudentOps .coach-invite-table {
    table-layout: fixed;
}

#sectionStudentOps .coach-invite-table thead th {
    padding: 12px 14px;
    background: #f1f5f9;
    color: #43576c;
    font-size: .78rem;
    letter-spacing: 0;
    text-transform: uppercase;
}

#sectionStudentOps .coach-invite-table td {
    padding: 14px;
    color: var(--invite-ink);
    vertical-align: top;
}

#sectionStudentOps .coach-invite-table tbody tr + tr td {
    border-top: 1px solid #b7c8da;
}

#sectionStudentOps .coach-invite-table th:nth-child(1),
#sectionStudentOps .coach-invite-table td:nth-child(1) {
    width: 34%;
}

#sectionStudentOps .coach-invite-table th:nth-child(2),
#sectionStudentOps .coach-invite-table td:nth-child(2) {
    width: 112px;
}

#sectionStudentOps .coach-invite-table th:nth-child(3),
#sectionStudentOps .coach-invite-table td:nth-child(3) {
    width: 29%;
}

#sectionStudentOps .coach-invite-table th:nth-child(4),
#sectionStudentOps .coach-invite-table td:nth-child(4) {
    width: 128px;
}

#sectionStudentOps .coach-invite-table th:nth-child(5),
#sectionStudentOps .coach-invite-table td:nth-child(5) {
    width: 96px;
}

#sectionStudentOps .coach-invite-table .coach-inline-actions {
    align-items: center;
}

#sectionStudentOps .coach-invite-table td[data-label="İşlem"] .coach-inline-actions,
#sectionStudentOps .coach-invite-table td[data-label="Islem"] .coach-inline-actions {
    justify-content: flex-start;
}

#sectionStudentOps .coach-inline-actions .btn-mini:not(.btn-mini-danger),
#sectionStudentOps .coach-invite-success-copy-btn {
    background: linear-gradient(135deg, #17385f 0%, #245d8f 100%);
    border: 1px solid rgba(23, 56, 95, .18);
    color: #fff;
    box-shadow: 0 8px 16px rgba(23, 56, 95, .14);
}

#sectionStudentOps .coach-invite-table tbody tr:hover td {
    background: #f8fafc;
}

#sectionStudentOps .coach-invite-status-chip.is-active {
    background: #eaf8f0;
    border-color: #b9ddc7;
    color: var(--invite-green);
}

#sectionStudentOps .coach-invite-status-chip.is-used {
    background: #edf4ff;
    border-color: #bfd6f5;
    color: var(--invite-blue);
}

#sectionStudentOps .coach-invite-status-chip.is-cancelled,
#sectionStudentOps .coach-invite-status-chip.is-expired {
    background: #fff0f0;
    border-color: #efc0c0;
    color: #9a3131;
}

@media (max-width: 820px) {
    #sectionStudentOps .admin-subtabs,
    #sectionStudentOps .coach-invite-metrics {
        width: 100%;
    }

    #sectionStudentOps .admin-subtabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    #sectionStudentOps .coach-invite-metrics {
        grid-template-columns: 1fr;
    }

    #sectionStudentOps .coach-invite-ops-card,
    #sectionStudentOps .coach-bulk-invite-card,
    #sectionStudentOps .coach-single-invite-section,
    #sectionStudentOps .coach-import-invite-section,
    #sectionStudentOps .coach-invite-list-head {
        padding: 14px;
    }

    #sectionStudentOps .coach-student-invite-form .coach-lock-fieldset,
    #sectionStudentOps .coach-student-invite-form .task-grid {
        grid-template-columns: 1fr;
    }

    #sectionStudentOps .coach-student-invite-form .login-subpanel,
    #sectionStudentOps .coach-student-invite-step {
        padding: 14px;
    }

    #sectionStudentOps .login-subpanel-head {
        grid-template-columns: 1fr;
    }

    #sectionStudentOps .login-subpanel-head span {
        grid-column: auto;
    }

    #sectionStudentOps .coach-student-invite-step .task-grid:last-child {
        max-width: none;
    }

    #sectionStudentOps .coach-student-invite-form button[type="submit"] {
        width: 100%;
        justify-self: stretch;
    }

    #sectionStudentOps .coach-invite-success-card {
        grid-template-columns: 1fr;
    }

    #sectionStudentOps .coach-invite-mode-tabs,
    #sectionStudentOps .coach-import-steps {
        grid-template-columns: 1fr;
    }

    #sectionStudentOps .coach-student-ops-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    #sectionStudentOps .coach-invite-capacity {
        justify-self: start;
        min-height: 34px;
        padding: 7px 9px;
    }

    #sectionStudentOps .coach-import-delivery-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #sectionStudentOps .coach-invite-table tr {
        border-radius: 8px;
    }

    #sectionStudentOps .coach-invite-mobile-toggle {
        border-radius: 8px;
        background: #f8fafc;
    }

    #sectionStudentOps .coach-invite-mobile-toggle::after {
        border-radius: 6px;
        letter-spacing: 0;
    }
}

:root[data-theme="dark"] #sectionStudentOps {
    --invite-ink: #eef4ff;
    --invite-muted: #a9bad2;
    --invite-line: #465f7f;
    --invite-surface: #101b2d;
    --invite-soft: #15243a;
}

:root[data-theme="dark"] #sectionStudentOps.coach-section {
    background: #0f1726;
    border-color: var(--invite-line);
}

:root[data-theme="dark"] #sectionStudentOps .admin-subtabs,
:root[data-theme="dark"] #sectionStudentOps .coach-invite-ops-card,
:root[data-theme="dark"] #sectionStudentOps .coach-bulk-invite-card,
:root[data-theme="dark"] #sectionStudentOps .coach-single-invite-section,
:root[data-theme="dark"] #sectionStudentOps .coach-import-invite-section,
:root[data-theme="dark"] #sectionStudentOps .coach-invite-list-head,
:root[data-theme="dark"] #sectionStudentOps .coach-invite-table-wrap {
    background: var(--invite-surface);
    border-color: var(--invite-line);
}

:root[data-theme="dark"] #sectionStudentOps .coach-invite-metrics span,
:root[data-theme="dark"] #sectionStudentOps .coach-invite-mode-tabs,
:root[data-theme="dark"] #sectionStudentOps .coach-import-steps article,
:root[data-theme="dark"] #sectionStudentOps .coach-import-preview,
:root[data-theme="dark"] #sectionStudentOps .coach-import-delivery,
:root[data-theme="dark"] #sectionStudentOps .coach-import-delivery-metrics span,
:root[data-theme="dark"] #sectionStudentOps .coach-student-invite-form .login-subpanel,
:root[data-theme="dark"] #sectionStudentOps .coach-student-invite-step,
:root[data-theme="dark"] #sectionStudentOps .coach-bulk-invite-link-box,
:root[data-theme="dark"] #sectionStudentOps .coach-invite-url-row,
:root[data-theme="dark"] #sectionStudentOps .coach-invite-code-top strong {
    background: var(--invite-soft);
    border-color: var(--invite-line);
}

:root[data-theme="dark"] #sectionStudentOps .coach-invite-capacity {
    background: #15243a;
    border-color: var(--invite-line);
    color: #b9ddc7;
}

:root[data-theme="dark"] #sectionStudentOps .coach-invite-table thead th {
    background: #172842;
    color: #dce9ff;
}

:root[data-theme="dark"] #sectionStudentOps .coach-invite-table tbody tr:hover td {
    background: #172842;
}

:root[data-theme="dark"] #sectionStudentOps .coach-invite-success-card {
    background: rgba(31, 94, 58, .24);
    border-color: rgba(81, 196, 128, .34);
}

#sectionWeeklyTask [hidden] {
    display: none !important;
}

#sectionWeeklyTask .coach-task-type-prompt {
    position: relative;
    display: grid;
    gap: 6px;
}

#sectionWeeklyTask .coach-task-type-prompt.is-pending {
    z-index: 1;
}

#sectionWeeklyTask .coach-task-type-bubble {
    position: absolute;
    left: 0;
    top: -12px;
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: min(220px, 100%);
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 247, 236, .98), rgba(255, 239, 216, .98));
    border: 1px solid rgba(216, 145, 38, .38);
    color: #9a5d10;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: 0 8px 18px rgba(185, 123, 31, .12);
    opacity: 1;
    transform: translateY(0);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}

#sectionWeeklyTask .coach-task-type-bubble.is-fading {
    opacity: 0;
    transform: translateY(-6px);
}

:root[data-theme="dark"] #sectionWeeklyTask .coach-task-type-prompt {
    z-index: 1;
}

:root[data-theme="dark"] #sectionWeeklyTask .coach-task-type-bubble {
    background: linear-gradient(180deg, rgba(66, 47, 20, .96), rgba(52, 38, 17, .98));
    border-color: rgba(255, 189, 99, .38);
    color: #ffd59d;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
}

        #sectionWeeklyTask input,
        #sectionWeeklyTask select,
        #sectionWeeklyTask textarea {
            border: 2px solid #263f36;
            border-radius: 10px;
            padding: 8px 9px;
            margin-top: 4px;
            background: #fff;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 1px 2px rgba(46, 79, 63, 0.1);
            width: 100%;
            max-width: 100%;
            box-sizing: border-box;
        }

        #sectionWeeklyTask input:focus,
        #sectionWeeklyTask select:focus,
        #sectionWeeklyTask textarea:focus {
            border-color: #2f4138;
            box-shadow: 0 0 0 3px rgba(47, 65, 56, 0.12);
            outline: none;
        }

        #sectionWeeklyTask textarea {
            min-height: 72px;
        }

        #sectionWeeklyTask button[type="submit"] {
            margin-top: 6px;
            padding: 10px 14px;
            border-radius: 10px;
            font-weight: 700;
            background: #1d9a5f;
        }

        #sectionWeeklyTask .task-submit-row {
            margin-top: 8px;
            display: flex;
            justify-content: flex-end;
        }

        #sectionWeeklyTask .task-submit-btn {
            min-width: 160px;
            background: var(--v2-ac);
            border: 1px solid var(--v2-ac);
            color: #fff;
            border-radius: 10px;
            padding: 10px 16px;
            font-weight: 700;
        }

#sectionWeeklyTask .task-submit-btn:hover {
    filter: brightness(.94);
}

#sectionWeeklyTask .task-submit-btn.secondary {
    background: linear-gradient(180deg,#f7f9fd 0%,#edf3fb 100%);
    border-color:#d4deed;
    color:#315178;
    box-shadow:0 6px 14px rgba(31,61,99,.08);
}

#sectionWeeklyTask .task-submit-btn.secondary:hover {
    background: linear-gradient(180deg,#f9fbff 0%,#eef4fb 100%);
    border-color:#becfe5;
    color:#1f3d63;
}

        .coach-sections .coach-section {
            display: block;
        }

        .coach-sections.all-mode {
            grid-template-columns: 1fr;
        }

        .coach-sections.all-mode #sectionNotifications,
        .coach-sections.all-mode #sectionWeeklyTask,
        .coach-sections.all-mode #sectionStudentOps,
        .coach-sections.all-mode #sectionTemplates,
        .coach-sections.all-mode #sectionSchoolSchedule,
        .coach-sections.all-mode #sectionDailyQuestion,
        .coach-sections.all-mode #sectionExamAnalytics,
        .coach-sections.all-mode #sectionDetailedAnalytics {
            grid-column: 1;
            grid-row: auto;
        }

        .coach-sections.all-mode #sectionTemplates,
        .coach-sections.all-mode #sectionDetailedAnalytics {
            display: none;
        }

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

        .coach-template-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .coach-template-picker-form {
            display: grid;
            gap: 8px;
            min-width: min(420px, 100%);
        }

        .coach-template-rename-form {
            margin-top: 12px;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 10px;
            align-items: end;
        }

        .coach-template-rename-form label {
            display: grid;
            gap: 6px;
        }

        .coach-template-rename-form input {
            min-height: 42px;
            padding: 10px 12px;
            border: 1px solid #cfe0d5;
            border-radius: 12px;
            background: #fff;
            color: inherit;
        }

        .coach-curriculum-manager .admin-empty-state {
            border: 1px dashed #cfe0d5;
            border-radius: 16px;
            padding: 16px 18px;
            color: #5e756a;
            background: #f8fcf9;
        }

        .coach-curriculum-manager .admin-lesson-feedback {
            min-height: 40px;
            padding: 10px 14px;
            border-radius: 14px;
            border: 1px solid #cfe0d5;
            background: #eff8f2;
            color: #1f5f45;
            font-weight: 700;
        }

        .coach-curriculum-manager .admin-lesson-feedback.is-error {
            border-color: #e4baba;
            background: #fff1f1;
            color: #8f3b3b;
        }

        .coach-curriculum-manager .admin-lesson-stack {
            display: grid;
            gap: 12px;
        }

        .coach-curriculum-manager .admin-lesson-card,
        .coach-curriculum-manager .admin-lesson-topic,
        .coach-curriculum-manager .admin-lesson-create-card {
            border: 1px solid #d5e3d9;
            border-radius: 18px;
            background: linear-gradient(180deg, #ffffff, #f7fbf8);
            overflow: hidden;
        }

        .coach-curriculum-manager .admin-lesson-card-head,
        .coach-curriculum-manager .admin-lesson-topic-head {
            width: 100%;
            border: 0;
            background: transparent;
            padding: 16px 18px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            cursor: pointer;
        }

        .coach-curriculum-manager .admin-lesson-card-copy,
        .coach-curriculum-manager .admin-lesson-topic-copy {
            display: grid;
            gap: 4px;
            text-align: left;
        }

        .coach-curriculum-manager .admin-lesson-card-copy strong,
        .coach-curriculum-manager .admin-lesson-topic-copy strong,
        .coach-curriculum-manager .admin-lesson-subtopic-copy strong,
        .coach-curriculum-manager .admin-lesson-create-head strong {
            color: #173a2c;
        }

        .coach-curriculum-manager .admin-lesson-card-copy span,
        .coach-curriculum-manager .admin-lesson-topic-copy span,
        .coach-curriculum-manager .admin-lesson-create-head span,
        .coach-curriculum-manager .admin-topic-chevron {
            color: #5c7669;
            font-size: .86rem;
        }

        .coach-curriculum-manager .admin-lesson-card-actions,
        .coach-curriculum-manager .admin-lesson-topic-actions,
        .coach-curriculum-manager .admin-lesson-subtopic-actions {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .coach-curriculum-manager .admin-lesson-state,
        .coach-curriculum-manager .admin-lesson-delete,
        .coach-curriculum-manager .admin-inline-create button {
            border-radius: 999px;
            min-height: 34px;
            padding: 0 14px;
            font-weight: 800;
            cursor: pointer;
        }

        .coach-curriculum-manager .admin-lesson-state {
            border: 1px solid #cbdccc;
            background: #edf6f0;
            color: #245a3f;
        }

        .coach-curriculum-manager .admin-lesson-state.is-active {
            background: #e3f6ea;
            border-color: #b6dec3;
            color: #15623e;
        }

        .coach-curriculum-manager .admin-lesson-state.is-passive {
            background: #fde8e8;
            border-color: #e9baba;
            color: #7b3e3e;
        }

        .coach-curriculum-manager .admin-lesson-delete {
            border: 1px solid #ebc4c4;
            background: #fff5f5;
            color: #9a4646;
        }

        .coach-curriculum-manager .admin-lesson-toggle {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #d0ded4;
            background: #fff;
            color: #173a2c;
            font-size: 1.1rem;
            font-weight: 800;
        }

        .coach-curriculum-manager .admin-lesson-card-body {
            padding: 0 18px 18px;
            border-top: 1px solid #e2ece6;
        }

        .coach-curriculum-manager .admin-lesson-topic-list {
            display: grid;
            gap: 12px;
            padding-top: 14px;
        }

        .coach-curriculum-manager .admin-lesson-subtopics {
            display: grid;
            gap: 10px;
            padding: 0 16px 16px;
        }

        .coach-curriculum-manager .admin-lesson-subtopic {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 14px;
            border: 1px solid #dde9e1;
            border-radius: 14px;
            background: #f9fcfa;
        }

        .coach-curriculum-manager .admin-inline-create {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 10px;
        }

        .coach-curriculum-manager .admin-inline-create input,
        .coach-curriculum-manager .admin-inline-input {
            min-height: 42px;
            padding: 10px 12px;
            border: 1px solid #cfe0d5;
            border-radius: 12px;
            background: #fff;
            color: inherit;
        }

        .coach-curriculum-manager .admin-inline-create--topic,
        .coach-curriculum-manager .admin-inline-create--lesson {
            margin-top: 4px;
        }

        .coach-curriculum-manager .admin-lesson-create-card {
            padding: 16px;
        }

        .coach-curriculum-manager .admin-lesson-create-head {
            display: grid;
            gap: 4px;
            margin-bottom: 12px;
        }

        .admin-subtabs {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 14px;
        }

        .admin-subtab-btn {
            border: 1px solid #bfd7c8;
            background: #f7fbf8;
            color: #285845;
            border-radius: 12px;
            padding: 10px 14px;
            font-weight: 700;
            cursor: pointer;
            box-shadow: none;
        }

        .admin-subtab-btn.active {
            background: linear-gradient(135deg, #214f8a, #365e97);
            color: #fff;
            border-color: #365e97;
        }

        .user-tab-pane {
            display: none;
        }

        .user-tab-pane.active {
            display: block;
        }

        .coach-student-accordion {
            display: grid;
            gap: 12px;
        }

        .coach-student-item {
            border: 1px solid #d8e6dd;
            border-radius: 14px;
            background: #fbfefc;
            overflow: hidden;
        }

        .coach-student-item > summary {
            list-style: none;
            cursor: pointer;
            padding: 14px 16px;
            background: #f2f8f4;
        }

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

        .coach-student-item[open] > summary {
            border-bottom: 1px solid #e2ece6;
            background: #eef6f1;
        }

        .coach-student-item-top {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            align-items: center;
            flex-wrap: wrap;
        }

        .coach-student-item-name {
            display: block;
            color: #1d4335;
            font-weight: 800;
            font-size: 1rem;
        }

        .coach-student-item-name strong {
            color: #6b7f74;
            font-size: .92rem;
            margin-left: 6px;
        }

        .coach-student-item-mail {
            display: block;
            color: #5e756a;
            font-size: .9rem;
            margin-top: 4px;
        }

        .coach-student-card-preview {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
            gap: 10px;
            margin-top: 10px;
            padding-top: 10px;
            border-top: 1px solid #dcebe3;
            color: #49685b;
            font-size: .86rem;
        }

        .coach-student-card-preview span {
            min-width: 0;
            overflow-wrap: anywhere;
        }

        .coach-student-card-preview strong {
            display: inline-flex;
            margin-right: 6px;
            color: #1d4335;
            font-weight: 900;
        }

        .coach-student-item-badges {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .coach-student-chip {
            border: 1px solid #cfe0d6;
            border-radius: 999px;
            padding: 5px 10px;
            background: #f6fbf8;
            color: #28513e;
            font-size: .82rem;
            font-weight: 700;
        }

        .coach-student-chip.neutral {
            background: #fff4e8;
            border-color: #f1cfaa;
            color: #895215;
        }

        .coach-student-item-body {
            padding: 14px 16px 16px;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            gap: 12px;
            align-items: start;
        }

        .coach-student-profile-board {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
            gap: 12px;
        }

        .coach-student-info-panel,
        .coach-student-edit-form {
            min-width: 0;
            border: 1px solid #d5e6dc;
            border-radius: 12px;
            background: #ffffff;
            padding: 12px;
        }

        .coach-student-panel-label {
            display: inline-flex;
            width: fit-content;
            margin-bottom: 8px;
            color: #6c8177;
            font-size: .72rem;
            font-weight: 900;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

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

        .coach-student-info-panel dt {
            margin: 0 0 3px;
            color: #6c8177;
            font-size: .75rem;
            font-weight: 900;
            text-transform: uppercase;
        }

        .coach-student-info-panel dd {
            margin: 0;
            color: #173a2c;
            font-size: .92rem;
            font-weight: 800;
            overflow-wrap: anywhere;
        }

        .coach-student-parent-list {
            display: grid;
            gap: 8px;
        }

        .coach-student-parent-card {
            display: grid;
            gap: 3px;
            padding: 9px 10px;
            border: 1px solid #dbe9e1;
            border-radius: 10px;
            background: #f8fcfa;
        }

        .coach-student-parent-card strong {
            color: #173a2c;
            font-size: .92rem;
        }

        .coach-student-parent-card span {
            color: #526d61;
            font-size: .84rem;
            overflow-wrap: anywhere;
        }

        .coach-student-table-wrap {
            overflow-x: auto;
            border: 1px solid #c9dccc;
            border-radius: 14px;
            background: #ffffff;
            box-shadow: 0 14px 34px rgba(28, 67, 50, .07);
        }

        .coach-student-table {
            width: 100%;
            min-width: 1120px;
            border-collapse: separate;
            border-spacing: 0;
            table-layout: fixed;
        }

        .coach-student-col-student {
            width: 19%;
        }

        .coach-student-col-parent {
            width: 22%;
        }

        .coach-student-col-education {
            width: 12%;
        }

        .coach-student-col-edit {
            width: 47%;
        }

        .coach-student-table th,
        .coach-student-table td {
            padding: 12px 16px;
            border-bottom: 1px solid #d7e5dc;
            vertical-align: top;
            text-align: left;
        }

        .coach-student-table th {
            background: #f3f8f5;
            color: #365b49;
            font-size: .76rem;
            font-weight: 900;
            letter-spacing: .04em;
            text-transform: uppercase;
        }

        .coach-student-table tbody tr {
            background: #ffffff;
            transition: background .18s ease, box-shadow .18s ease;
        }

        .coach-student-table tbody tr:nth-child(even) {
            background: #f8fbf9;
        }

        .coach-student-table tbody tr:hover {
            background: #eef7f2;
            box-shadow: inset 3px 0 0 #2f6fae;
        }

        .coach-student-table tbody tr:last-child td {
            border-bottom: 0;
        }

        .coach-student-table-main {
            display: grid;
            gap: 5px;
            min-width: 180px;
        }

        .coach-student-table-main strong {
            color: #0f3326;
            font-size: .98rem;
            line-height: 1.25;
        }

        .coach-student-table-main strong span {
            color: #648071;
            font-size: .84rem;
            font-weight: 800;
        }

        .coach-student-table-main small {
            color: #526d61;
            overflow-wrap: anywhere;
        }

        .coach-student-muted-mail {
            color: #7a8d84;
            font-weight: 700;
        }

        .coach-student-parent-list.compact {
            gap: 6px;
            max-width: none;
        }

        .coach-student-parent-list.compact .coach-student-parent-card {
            padding: 9px 10px;
            background: #f8fcfa;
        }

        .coach-student-edit-form {
            display: grid;
            gap: 10px;
            min-width: 0;
        }

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

        .coach-student-edit-head strong {
            display: block;
            color: #173a2c;
        }

        .coach-student-edit-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }

        .coach-student-table .coach-student-edit-form {
            border: 0;
            background: transparent;
            padding: 0;
            display: flex;
            align-items: end;
            gap: 8px;
            flex: 1 1 auto;
            min-width: 0;
        }

        .coach-student-table .coach-student-edit-grid {
            flex: 1 1 auto;
            min-width: 0;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            align-items: end;
        }

        .coach-student-table .coach-student-edit-form label {
            display: grid;
            gap: 5px;
            font-size: .72rem;
            letter-spacing: .03em;
            text-transform: uppercase;
        }

        .coach-student-table .coach-student-edit-form select {
            width: 100%;
            min-height: 36px;
            padding: 7px 30px 7px 10px;
            border-radius: 9px;
            font-size: .86rem;
        }

        .coach-student-row-actions,
        .coach-student-detach-form {
            display: inline-flex;
            gap: 7px;
            align-items: center;
            margin-top: 0;
            vertical-align: top;
            flex: 0 0 auto;
        }

        .coach-student-detach-form {
            margin-left: 0;
        }

        .coach-student-table td[data-label="Düzenle"] {
            display: flex;
            gap: 7px;
            align-items: end;
            justify-content: flex-end;
            flex-wrap: nowrap;
        }

        .coach-student-item-actions {
            display: flex;
            justify-content: flex-end;
            gap: 8px;
            margin-top: 2px;
        }

        .coach-student-item-body > form:last-child {
            display: flex;
            justify-content: flex-start;
            align-items: flex-start;
            margin-top: 2px;
        }

        @media (max-width: 980px) {
            .coach-template-grid {
                grid-template-columns: 1fr;
            }

            .coach-template-picker-form {
                min-width: 0;
            }

            .coach-curriculum-manager .admin-lesson-card-head,
            .coach-curriculum-manager .admin-lesson-topic-head,
            .coach-curriculum-manager .admin-lesson-subtopic {
                flex-direction: column;
                align-items: flex-start;
            }

            .coach-curriculum-manager .admin-lesson-card-actions,
            .coach-curriculum-manager .admin-lesson-topic-actions,
            .coach-curriculum-manager .admin-lesson-subtopic-actions {
                width: 100%;
                justify-content: flex-start;
            }
        }

        @media (max-width: 640px) {
            .coach-curriculum-manager .admin-inline-create {
                grid-template-columns: 1fr;
            }

            .coach-curriculum-manager .admin-inline-create button {
                width: 100%;
            }

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

        :root[data-theme="dark"] .coach-curriculum-manager .admin-empty-state {
            background: #10192a;
            border-color: #223654;
            color: #aac2e8;
        }

        :root[data-theme="dark"] .coach-template-rename-form input {
            background: #0f1726;
            border-color: #2b3f5f;
            color: #eef4ff;
        }

        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-feedback {
            background: #13233b;
            border-color: #2d496d;
            color: #dbe8ff;
        }

        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-feedback.is-error {
            background: #3a1d23;
            border-color: #7e404b;
            color: #ffc8d0;
        }

        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-card,
        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-topic,
        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-create-card {
            background: linear-gradient(180deg, #141d2f, #101929);
            border-color: #263c5f;
        }

        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-card-copy strong,
        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-topic-copy strong,
        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-subtopic-copy strong,
        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-create-head strong {
            color: #eef4ff;
        }

        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-card-copy span,
        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-topic-copy span,
        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-create-head span,
        :root[data-theme="dark"] .coach-curriculum-manager .admin-topic-chevron {
            color: #aac2e8;
        }

        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-card-body {
            border-top-color: #21334f;
        }

        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-subtopic {
            background: #10192a;
            border-color: #223654;
        }

        :root[data-theme="dark"] .coach-curriculum-manager .admin-inline-create input,
        :root[data-theme="dark"] .coach-curriculum-manager .admin-inline-input {
            background: #0f1726;
            border-color: #2b3f5f;
            color: #eef4ff;
        }

        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-toggle {
            background: #10192a;
            border-color: #223654;
            color: #e6f0ff;
        }

        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-delete {
            background: #3a1d23;
            border-color: #7e404b;
            color: #ffc8d0;
        }

        :root[data-theme="dark"] .coach-curriculum-manager .admin-lesson-state {
            background: #172842;
            border-color: #31537e;
            color: #d5e4ff;
        }

        .coach-icon-btn {
            display: inline-flex;
            align-items: center;
            border: 1px solid #bfd7c8;
            justify-content: center;
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: #f4faf6;
            color: #25503d;
            padding: 0;
            font-weight: 700;
            cursor: pointer;
            flex: 0 0 36px;
        }

        .coach-icon-btn:hover {
            background: #eaf5ef;
        }

        .coach-icon-btn.danger {
            border-color: #efb3b3;
            background: linear-gradient(180deg, #fff1f0 0%, #ffe4e2 100%);
            color: #a22f2f;
            box-shadow: inset 0 0 0 1px rgba(162, 47, 47, .06);
        }

        .coach-icon-btn.danger:hover {
            background: linear-gradient(180deg, #ffe7e5 0%, #ffd9d5 100%);
        }

        .coach-icon-btn.ghost {
            border-color: #c9d8ea;
            background: #f4f8fd;
            color: #2f5f98;
        }

        .coach-icon-btn.ghost:hover {
            background: #eaf2fc;
        }

        .coach-icon-btn svg {
            width: 16px;
            height: 16px;
            display: block;
        }

        .coach-confirm-panel {
            width: min(420px, 92vw);
        }

        .coach-confirm-actions {
            display: flex;
            justify-content: flex-end;
            gap: 10px;
            padding: 0 18px 18px;
        }

        .coach-confirm-btn {
            width: auto;
            min-width: 92px;
            padding: 0 14px;
            flex: 0 0 auto;
        }

        .coach-sections.single .coach-section {
            display: none;
        }

.coach-sections.single .coach-section.active {
    display: block;
}

.coach-sections.single #sectionTemplates.active {
    width: 100%;
    max-width: none;
}

.coach-demo-tour-launch {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 160;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px 0 12px;
    border: 1px solid rgba(31, 109, 77, .22);
    border-radius: 999px;
    background: linear-gradient(135deg, #163b73, #1f6d4d);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(15, 42, 74, .24);
    cursor: pointer;
}
.coach-demo-tour-launch span {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .22);
}
.coach-demo-tour-layer {
    position: fixed;
    inset: 0;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}
.coach-demo-tour-layer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
body.coach-demo-tour-open {
    overflow: hidden;
}
body.coach-demo-tour-open .coach-offer-float {
    display: none;
}
.coach-demo-tour-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 17, 33, .58);
}
.coach-demo-tour-spotlight {
    position: fixed;
    z-index: 902;
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, .92);
    box-shadow:
        0 0 0 9999px rgba(6, 17, 33, .58),
        0 20px 50px rgba(7, 18, 36, .34),
        inset 0 0 0 1px rgba(31, 109, 77, .18);
    pointer-events: none;
    transition: top .28s ease, left .28s ease, width .28s ease, height .28s ease;
    opacity: 0;
}
.coach-demo-tour-card {
    position: fixed;
    z-index: 903;
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,250,255,.98));
    color: #12345f;
    padding: 18px;
    box-shadow: 0 28px 70px rgba(6, 17, 33, .36);
    transition: top .28s ease, left .28s ease, opacity .12s ease;
    opacity: 0;
    pointer-events: none;
}
.coach-demo-tour-layer.is-ready .coach-demo-tour-spotlight,
.coach-demo-tour-layer.is-ready .coach-demo-tour-card {
    opacity: 1;
}
.coach-demo-tour-layer.is-ready .coach-demo-tour-card {
    pointer-events: auto;
}
.coach-demo-tour-top,
.coach-demo-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.coach-demo-tour-top span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e9f3ff;
    color: #28518e;
    font-size: .78rem;
    font-weight: 900;
}
.coach-demo-tour-top button {
    width: 34px;
    height: 34px;
    border: 1px solid #d7e3ef;
    border-radius: 999px;
    background: #fff;
    color: #173a2c;
    font-size: 1.2rem;
    cursor: pointer;
}
.coach-demo-tour-card h3 {
    margin: 16px 0 8px;
    color: #12345f;
    font-size: 1.32rem;
    line-height: 1.15;
}
.coach-demo-tour-card p {
    margin: 0;
    color: #557092;
    line-height: 1.6;
}
.coach-demo-tour-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 16px 0;
}
.coach-demo-tour-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #c9d8e8;
    transition: width .18s ease, background .18s ease;
}
.coach-demo-tour-dots span.active {
    width: 26px;
    background: linear-gradient(135deg, #163b73, #f18b2b);
}
.coach-demo-tour-actions {
    justify-content: flex-end;
    position: sticky;
    bottom: -18px;
    margin: 16px -18px -18px;
    padding: 12px 18px 18px;
    background: linear-gradient(180deg, rgba(246,250,255,.72), rgba(246,250,255,.98) 45%);
    border-radius: 0 0 18px 18px;
}
.coach-demo-tour-primary,
.coach-demo-tour-secondary {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
}
.coach-demo-tour-primary {
    border: 1px solid #1f6d4d;
    background: #1f6d4d;
    color: #fff;
}
.coach-demo-tour-secondary {
    border: 1px solid #d7e3ef;
    background: #fff;
    color: #315276;
}
.coach-demo-tour-secondary:disabled {
    opacity: .45;
    cursor: not-allowed;
}

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

        @media (max-width: 980px) {
            .coach-student-edit-grid {
                grid-template-columns: 1fr;
            }

            .coach-student-table,
            .coach-student-table colgroup,
            .coach-student-table tbody,
            .coach-student-table tr,
            .coach-student-table td {
                display: block;
                min-width: 0;
                width: 100%;
            }

            .coach-student-table thead {
                display: none;
            }

            .coach-student-table col {
                display: none;
            }

            .coach-student-table tr {
                border-bottom: 1px solid #d7e5dc;
            }

            .coach-student-table td {
                display: grid;
                grid-template-columns: 110px minmax(0, 1fr);
                gap: 10px;
                border-bottom: 1px solid #edf3ef;
            }

            .coach-student-table td::before {
                content: attr(data-label);
                color: #60796d;
                font-size: .76rem;
                font-weight: 900;
                text-transform: uppercase;
            }

            .coach-student-table .coach-student-edit-grid {
                grid-template-columns: 1fr;
            }

            .coach-student-table .coach-student-edit-form,
            .coach-student-table td[data-label="Düzenle"] {
                display: grid;
                grid-template-columns: 1fr;
                align-items: stretch;
                justify-content: stretch;
            }

            .coach-student-row-actions,
            .coach-student-detach-form {
                margin-top: 4px;
            }

            .coach-student-parent-list.compact {
                max-width: none;
            }

            .coach-student-profile-board {
                grid-template-columns: 1fr;
            }

            .coach-student-item-body {
                grid-template-columns: 1fr;
            }
        }

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

        .daily-kpi-box {
            border: 1px solid var(--v2-bd);
            border-radius: 12px;
            padding: 14px;
            background: var(--v2-sf);
        }

        .daily-kpi-box span {
            font-size: .86rem;
            color: var(--v2-tx3);
            display: block;
            letter-spacing: .8px;
            text-transform: uppercase;
            font-weight: 700;
        }

        .daily-kpi-box strong {
            font-family: "DM Mono", "Consolas", "Courier New", monospace;
            font-size: 2.25rem;
            line-height: 1;
            color: var(--v2-tx);
            display: block;
            margin-top: 8px;
            font-variant-numeric: tabular-nums;
        }

        #sectionDetailedAnalytics .daily-kpi-box span {
            font-family: "DM Mono", "Consolas", "Courier New", monospace;
        }

        #sectionDetailedAnalytics .exam-sum-box {
            border: 1px solid var(--v2-bd);
            border-radius: 12px;
            padding: 14px 14px;
            background: var(--v2-sf);
            transition: border-color .2s ease;
            min-width: 0;
        }

        #sectionDetailedAnalytics .exam-sum-box:hover {
            border-color: #3a4363;
        }

        #sectionDetailedAnalytics .exam-sum-box span {
            font-size: .68rem;
            color: var(--v2-tx3);
            display: block;
            letter-spacing: .8px;
            text-transform: uppercase;
            font-weight: 700;
        }

        #sectionDetailedAnalytics .exam-sum-box strong {
            font-family: "DM Mono", "Consolas", "Courier New", monospace;
            font-size: 1.75rem;
            line-height: 1;
            color: var(--v2-tx);
            display: block;
            margin-top: 8px;
            letter-spacing: .4px;
        }

        #sectionDetailedAnalytics .exam-summary-grid {
            grid-template-columns: .88fr .98fr 1.18fr .88fr;
            gap: 8px;
        }

        #sectionDetailedAnalytics .exam-sum-box span {
            letter-spacing: .5px;
            font-size: .66rem;
            line-height: 1.2;
        }

        #sectionDetailedAnalytics .analysis-week-label {
            font-family: "Nunito", "DM Sans", "Segoe UI", sans-serif;
            font-size: 1.65rem;
            line-height: 1;
            letter-spacing: .3px;
            color: var(--v2-tx);
            font-weight: 800;
        }

        #sectionDetailedAnalytics .analysis-row-week-nav {
            align-items: center;
        }

        #sectionDetailedAnalytics .analysis-week-nav {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-left: auto;
        }

        #sectionDetailedAnalytics .analysis-week-arrow {
            width: 38px;
            height: 38px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            border: 1px solid #c8dbc8;
            background: linear-gradient(180deg, #ffffff 0%, #eef7f1 100%);
            color: #1c4f39;
            text-decoration: none;
            box-shadow: 0 8px 16px rgba(20, 55, 109, 0.08);
        }

        #sectionDetailedAnalytics .analysis-week-arrow:hover {
            transform: translateY(-1px);
            border-color: #b5cfba;
            background: linear-gradient(180deg, #ffffff 0%, #e7f3eb 100%);
        }

        #sectionDetailedAnalytics .exam-sum-box .dyb-three-line {
            font-size: 1.7rem !important;
            letter-spacing: 0 !important;
            line-height: 1;
        }

        #sectionDetailedAnalytics .exam-sum-box .dyb-three-line i {
            display: inline;
        }

        .dyb-three-line {
            display: block;
            white-space: nowrap;
            line-height: 1.05;
            font-size: 2.25rem !important;
            letter-spacing: .1px !important;
        }

        .dyb-three-line i {
            font-style: normal;
            display: inline;
        }

        #sectionDailyQuestion .daily-kpi-grid {
            grid-template-columns: .8fr .92fr 1.72fr .8fr;
            gap: 8px;
        }

        #sectionDailyQuestion .daily-kpi-box {
            min-width: 0;
            padding: 12px;
            overflow: hidden;
        }

        #sectionDailyQuestion .daily-kpi-box span {
            font-size: .76rem;
            letter-spacing: .5px;
        }

        #sectionDailyQuestion .daily-kpi-box strong {
            font-size: 1.95rem;
        }

        #sectionDailyQuestion .daily-kpi-box.dyb-box {
            padding-left: 10px;
            padding-right: 10px;
        }

        #sectionDailyQuestion .daily-kpi-box .dyb-three-line {
            font-size: clamp(1.0rem, 1.55vw, 1.62rem) !important;
            line-height: 1;
            letter-spacing: -0.2px !important;
            white-space: nowrap;
            display: inline-flex;
            align-items: baseline;
            gap: 0;
            max-width: 100%;
            overflow: hidden;
            font-family: "DM Mono", "Consolas", "Courier New", monospace;
            font-weight: 800;
        }

        #sectionDailyQuestion .daily-kpi-box.dyb-box .dyb-three-line {
            font-size: 1.52rem !important;
            max-width: 100%;
            overflow: hidden;
            text-overflow: clip;
        }

        #sectionDailyQuestion .daily-kpi-box .dyb-three-line i {
            display: inline;
            font-style: normal;
            flex: 0 0 auto;
        }

        #sectionDailyQuestion .daily-kpi-box .dyb-sep {
            display: inline-block;
            font-style: normal;
            opacity: 1;
            margin: 0 !important;
            padding: 0 !important;
            line-height: 1 !important;
            flex: 0 0 auto;
        }

        #sectionDetailedAnalytics .weekly-summary-card .analysis-row strong {
            font-family: "Nunito", "DM Sans", "Segoe UI", sans-serif;
            font-weight: 800;
        }

        #sectionDetailedAnalytics .coach-month-compare-wrap {
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px dashed #cfe0d2;
        }

        #sectionDetailedAnalytics .coach-month-compare-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 12px;
        }

        #sectionDetailedAnalytics .coach-month-compare-head strong {
            font-size: 1rem;
            color: var(--v2-tx);
        }

        #sectionDetailedAnalytics .coach-month-compare-head span {
            font-size: .78rem;
            color: var(--v2-tx2);
        }

        #sectionDetailedAnalytics .coach-month-compare-grid {
            display: grid;
            gap: 12px;
        }

        #sectionDetailedAnalytics .coach-month-compare-card {
            padding: 14px;
            border-radius: 18px;
            border: 1px solid #d7e6da;
            background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
            box-shadow: 0 10px 20px rgba(20, 55, 109, 0.05);
        }

        #sectionDetailedAnalytics .coach-month-compare-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 10px;
            margin-bottom: 12px;
        }

        #sectionDetailedAnalytics .coach-month-compare-top strong,
        #sectionDetailedAnalytics .coach-month-compare-metrics strong {
            font-family: "Nunito", "DM Sans", "Segoe UI", sans-serif;
            font-weight: 800;
            color: var(--v2-tx);
        }

        #sectionDetailedAnalytics .coach-month-compare-top span {
            display: block;
            font-size: .78rem;
            color: var(--v2-tx2);
        }

        #sectionDetailedAnalytics .coach-month-compare-trend {
            display: inline-flex;
            align-items: center;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: .76rem;
            font-weight: 700;
            white-space: nowrap;
            background: #eef2ef;
            color: #52715e;
        }

        #sectionDetailedAnalytics .coach-month-compare-trend.up {
            background: #e6f6eb;
            color: #167347;
        }

        #sectionDetailedAnalytics .coach-month-compare-trend.down {
            background: #fff0ef;
            color: #b34b43;
        }

        #sectionDetailedAnalytics .coach-month-compare-metrics {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
            gap: 10px;
        }

        #sectionDetailedAnalytics .coach-month-compare-metrics div {
            min-width: 0;
            padding: 10px 12px;
            border-radius: 14px;
            background: #fff;
            border: 1px solid #e0ece3;
        }

        #sectionDetailedAnalytics .coach-month-compare-metrics span {
            display: block;
            margin-bottom: 4px;
            font-size: .72rem;
            letter-spacing: .04em;
            text-transform: uppercase;
            color: var(--v2-tx2);
        }

        #sectionDetailedAnalytics .coach-month-compare-empty {
            margin: 0;
            color: var(--v2-tx2);
            font-size: .9rem;
        }

        .analysis-tabbar {
            display: inline-flex;
            gap: 4px;
            padding: 4px;
            border: 1px solid var(--v2-bd);
            border-radius: 12px;
            background: var(--v2-sf);
            margin: 0 0 12px;
        }

        .analysis-tab {
            border: 0;
            background: transparent;
            color: var(--v2-tx2);
            border-radius: 9px;
            padding: 7px 14px;
            font-weight: 500;
            cursor: pointer;
        }

        .analysis-tab.active {
            background: var(--v2-ac);
            color: #fff;
            font-weight: 700;
            border-color: var(--v2-ac);
        }

        .analysis-pane {
            display: none;
        }

        .analysis-pane.active {
            display: block;
        }

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

        .exam-row-mini {
            border: 1px solid #deebe2;
            border-radius: 10px;
            padding: 8px 10px;
            background: #fbfefc;
        }

        .exam-row-mini-top {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }

        .exam-row-mini-meta {
            margin-top: 4px;
            color: #506a5f;
            font-size: .88rem;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .exam-row-mini-note {
            margin-top: 4px;
            color: #446156;
            font-size: .84rem;
        }

        .exam-row-mini.clickable {
            cursor: pointer;
            transition: border-color .16s ease, box-shadow .16s ease, transform .14s ease;
        }

        .exam-row-mini.clickable:hover {
            border-color: #7cb093;
            box-shadow: 0 8px 18px rgba(24, 78, 53, .10);
            transform: translateY(-1px);
        }

        .exam-row-mini.active {
            border-color: #1f6d4d;
            box-shadow: 0 0 0 2px rgba(31, 109, 77, .15);
        }

        .exam-row-mini-detail {
            margin-top: 8px;
            border-top: 1px dashed #d3e4d9;
            padding-top: 8px;
            display: grid;
            gap: 8px;
        }

        .daily-log-accordion {
            position: relative;
        }

        .daily-log-accordion summary {
            list-style: none;
            cursor: pointer;
            display: block;
            padding-right: 48px;
        }

        .daily-log-accordion summary::-webkit-details-marker {
            display: none;
        }

        .daily-log-accordion summary::after {
            content: '+';
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            width: 26px;
            height: 26px;
            border-radius: 999px;
            border: 1px solid #d0e0d7;
            color: #28513e;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            background: #f7fbf8;
        }

        .daily-log-accordion[open] summary::after {
            content: '-';
        }

        .daily-log-accordion-body {
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px dashed #dbe7e0;
            display: grid;
            gap: 10px;
        }

        .daily-log-item-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
            gap: 10px;
            justify-content: start;
        }

        .daily-log-item-row {
            border: 1px solid #cfe1d6;
            border-radius: 12px;
            background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
            padding: 12px;
            display: grid;
            gap: 10px;
            align-content: start;
            min-width: 0;
            box-shadow: inset 0 4px 0 0 #ff9f43, 0 8px 18px rgba(24, 44, 32, 0.06);
        }

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

        .daily-log-subject-chip {
            display: inline-flex;
            align-items: center;
            padding: 5px 10px;
            border-radius: 999px;
            background: #fff2e5;
            color: #a45900;
            border: 1px solid #f2c18e;
            font-size: .78rem;
            font-weight: 800;
            line-height: 1.2;
            min-width: 0;
            max-width: 100%;
            white-space: normal;
            overflow-wrap: anywhere;
        }

        .daily-log-item-row.subject-turkce,
        .daily-log-item-row.subject-turkce-dil-bilgisi {
            box-shadow: inset 0 4px 0 0 #ff8a1f, 0 8px 18px rgba(24, 44, 32, 0.06);
        }

        .daily-log-item-row.subject-matematik {
            box-shadow: inset 0 4px 0 0 #ff8a1f, 0 8px 18px rgba(24, 44, 32, 0.06);
        }

        .daily-log-item-row.subject-fen-bilimleri {
            box-shadow: inset 0 4px 0 0 #18a36f, 0 8px 18px rgba(24, 44, 32, 0.06);
        }

        .daily-log-item-row.subject-ingilizce {
            box-shadow: inset 0 4px 0 0 #5c7cff, 0 8px 18px rgba(24, 44, 32, 0.06);
        }

        .daily-log-item-row.subject-t-c-inkilap-tarihi-ve-ataturkculuk,
        .daily-log-item-row.subject-inkilap-tarihi {
            box-shadow: inset 0 4px 0 0 #de5968, 0 8px 18px rgba(24, 44, 32, 0.06);
        }

        .daily-log-item-row.subject-din-kulturu-ve-ahlak-bilgisi,
        .daily-log-item-row.subject-din-kulturu-a-bilgisi {
            box-shadow: inset 0 4px 0 0 #9a7c2d, 0 8px 18px rgba(24, 44, 32, 0.06);
        }

        .daily-log-success-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 10px;
            border-radius: 999px;
            background: #fff7ed;
            color: #9b5a13;
            border: 1px solid #f1c48f;
            font-size: .82rem;
            font-weight: 800;
            white-space: nowrap;
            align-self: start;
        }

        .daily-log-topic-title {
            color: #18324a;
            font-size: 1.02rem;
            font-weight: 800;
            line-height: 1.35;
        }

        .daily-log-item-stats-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 8px;
        }

        .daily-log-stat-card {
            border: 1px solid #d7e1ec;
            border-radius: 10px;
            background: #ffffff;
            padding: 8px 10px;
            display: grid;
            gap: 3px;
            min-height: 62px;
        }

        .daily-log-stat-card span {
            color: #6a7280;
            font-size: .76rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: .03em;
        }

        .daily-log-stat-card strong {
            color: #15324a;
            font-size: 1rem;
            line-height: 1;
        }

        .daily-log-stat-card.is-good {
            background: #eaf9f1;
            border-color: #bde5ce;
        }

        .daily-log-stat-card.is-good strong {
            color: #1f6d4d;
        }

        .daily-log-stat-card.is-warn {
            background: #fff0ef;
            border-color: #f1c6c2;
        }

        .daily-log-stat-card.is-warn strong {
            color: #9c3434;
        }

        .daily-log-stat-card.is-muted {
            background: #eef3fb;
            border-color: #cfd9ea;
        }

        .daily-log-stat-card.is-muted strong {
            color: #31527b;
        }

        .daily-log-empty,
        .daily-log-note {
            margin: 0;
            color: #4f6a5e;
        }

        .exam-mini-lesson-grid {
            display: grid;
            gap: 6px;
            grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        }

        .exam-mini-lesson-item {
            border: 1px solid #dce9e1;
            border-left: 4px solid #4f9e73;
            border-radius: 9px;
            padding: 6px 8px;
            background: #fff;
        }

        .exam-mini-lesson-item strong {
            color: #264f3d;
            display: block;
            margin-bottom: 3px;
        }

        .exam-mini-lesson-item span {
            display: block;
            color: #5f776b;
            font-size: .8rem;
        }

        .exam-months {
            display: grid;
            gap: 10px;
            margin-top: 10px;
        }

        .exam-month-group {
            border: 1px solid #d6e6dc;
            border-radius: 12px;
            background: #fbfefc;
            overflow: hidden;
        }

        .exam-month-head {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 14px;
            align-items: center;
            padding: 10px 12px;
            border-bottom: 1px solid #e3eee8;
            background: #f2f8f4;
            color: #2a5642;
        }

        .exam-month-head strong {
            font-size: 1rem;
            color: #173f2f;
        }

        .exam-card-list {
            display: grid;
            gap: 8px;
            padding: 10px;
        }

        .exam-card {
            border: 1px solid #dbe9e1;
            border-radius: 10px;
            background: #fff;
        }

        .exam-card>summary {
            list-style: none;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            gap: 10px;
            align-items: center;
            padding: 10px 12px;
        }

        .exam-card>summary::-webkit-details-marker {
            display: none;
        }

        .exam-card-summary {
            display: grid;
            gap: 2px;
        }

        .exam-card-summary strong {
            color: #1a4533;
        }

        .exam-card-summary span {
            color: #5f776b;
            font-size: .82rem;
        }

        .exam-card-badges {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .exam-card-badges span {
            border: 1px solid #cfe1d6;
            border-radius: 999px;
            padding: 4px 10px;
            font-size: .8rem;
            font-weight: 700;
            color: #24543f;
            background: #f1f9f4;
        }

        .exam-card-content {
            border-top: 1px solid #e5efe9;
            padding: 14px;
            display: grid;
            gap: 12px;
            background:
                radial-gradient(circle at top right, rgba(242, 176, 78, 0.10), transparent 34%),
                linear-gradient(180deg, rgba(251, 254, 252, 0.98), rgba(244, 250, 246, 0.98));
        }

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

        .exam-card-score {
            border: 1px solid #dce9e1;
            border-radius: 14px;
            padding: 12px 13px;
            background: rgba(255, 255, 255, 0.88);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
        }

        .exam-card-score--primary {
            background:
                radial-gradient(circle at top right, rgba(84, 137, 220, 0.10), transparent 38%),
                rgba(255, 255, 255, 0.92);
        }

        .exam-card-score span {
            display: block;
            font-size: .72rem;
            font-weight: 800;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: #6a8176;
        }

        .exam-card-score strong {
            display: block;
            margin-top: 7px;
            color: #173b2d;
            font-size: 1.2rem;
            line-height: 1.05;
        }

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

        .exam-lesson-item {
            --lesson-accent: #e28f2f;
            --lesson-surface: #fff5ea;
            --lesson-tint: #ffeed6;
            position: relative;
            border: 1px solid #dbe6f2;
            border-radius: 16px;
            padding: 8px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
            box-shadow: 0 12px 24px rgba(21, 53, 91, 0.08);
        }

        .exam-lesson-item:nth-child(6n+1) {
            --lesson-accent: #df9840;
            --lesson-surface: #fff4e8;
            --lesson-tint: #fff0df;
        }

        .exam-lesson-item:nth-child(6n+2) {
            --lesson-accent: #3eaf72;
            --lesson-surface: #ecfbf1;
            --lesson-tint: #dcf5e5;
        }

        .exam-lesson-item:nth-child(6n+3) {
            --lesson-accent: #4f8fe5;
            --lesson-surface: #eef5ff;
            --lesson-tint: #ddeafd;
        }

        .exam-lesson-item:nth-child(6n+4) {
            --lesson-accent: #d25d88;
            --lesson-surface: #fff0f5;
            --lesson-tint: #ffe0ea;
        }

        .exam-lesson-item:nth-child(6n+5) {
            --lesson-accent: #8d66d6;
            --lesson-surface: #f5f0ff;
            --lesson-tint: #e8deff;
        }

        .exam-lesson-item:nth-child(6n+6) {
            --lesson-accent: #33a6b4;
            --lesson-surface: #ebfbfc;
            --lesson-tint: #d8f3f6;
        }

        .exam-lesson-head {
            display: inline-flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 12px;
            border: 1px solid color-mix(in srgb, var(--lesson-accent) 42%, #ffffff 58%);
            background: linear-gradient(180deg, var(--lesson-surface) 0%, var(--lesson-tint) 100%);
            width: fit-content;
            max-width: 100%;
        }

        .exam-lesson-head strong {
            display: block;
            color: #1e3553;
            font-size: .84rem;
            line-height: 1.25;
        }

        .exam-lesson-net-panel {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 10px;
            padding: 8px 4px 0;
            border-top: 1px solid color-mix(in srgb, var(--lesson-accent) 24%, #dbe5f1 76%);
        }

        .exam-lesson-net-label {
            color: #6f88a4;
            font-size: .72rem;
            font-weight: 800;
            letter-spacing: .12em;
        }

        .exam-lesson-net-value {
            color: var(--lesson-accent);
            font-size: 1.3rem;
            font-weight: 900;
            line-height: 1;
        }

        .dyb-line {
            margin-top: 0;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 6px;
        }

        .exam-lesson-metrics {
            margin-top: 2px;
        }

        .dyb-line span {
            border-radius: 9px;
            padding: 4px 4px;
            font-size: .76rem;
            font-weight: 700;
            border: 1px solid transparent;
            text-align: center;
            min-height: 44px;
            display: grid;
            justify-items: center;
            align-content: center;
            line-height: 1.1;
        }

        .dyb-line span small {
            font-size: .62rem;
            letter-spacing: .1em;
            opacity: .82;
        }

        .dyb-line span b {
            font-size: .98rem;
            line-height: 1;
        }

        .dyb-good {
            color: #1f7a4f;
            background: #e9f7ef;
            border-color: #bfe2cd;
        }

        .dyb-bad {
            color: #a73e3e;
            background: #ffefef;
            border-color: #efc2c2;
        }

        .dyb-blank {
            color: #5e6f67;
            background: #f1f4f2;
            border-color: #d3ddd7;
        }

.perfect-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 16px;
    height: 16px;
    color: #d32f2f;
    font-size: .76rem;
    line-height: 1;
    pointer-events: none;
}

        .exam-note {
            border: 1px dashed #d8e6dd;
            border-radius: 14px;
            padding: 10px 12px;
            color: #496457;
            background: rgba(255, 255, 255, 0.62);
            font-size: .88rem;
        }

        .exam-note strong {
            display: block;
            margin-bottom: 5px;
            color: #244738;
            font-size: .74rem;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

        .exam-note span {
            display: block;
            line-height: 1.45;
        }

        @media (max-width: 1180px) {
            .exam-lesson-list {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }
        }

        @media (max-width: 820px) {
            .exam-lesson-list {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        .exam-trend-kpis {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 8px;
            margin: 8px 0 10px;
        }

        .exam-trend-kpi {
            border: 1px solid #d6e5db;
            border-radius: 10px;
            background: #fbfefc;
            padding: 9px 10px;
        }

        .exam-trend-kpi span {
            display: block;
            color: #5d776a;
            font-size: .78rem;
            text-transform: uppercase;
            letter-spacing: .4px;
        }

        .exam-trend-kpi strong {
            display: block;
            margin-top: 4px;
            color: #153b2d;
            font-size: 1.15rem;
        }

        .exam-trend-kpi em {
            display: block;
            margin-top: 4px;
            font-style: normal;
            font-size: .8rem;
            font-weight: 700;
        }

        .exam-trend-kpi em.up {
            color: #1f7a4f;
        }

        .exam-trend-kpi em.down {
            color: #a73e3e;
        }

        .exam-trend-kpi em.flat {
            color: #587065;
        }

        .exam-threshold-panel {
            border: 1px solid #d6e5db;
            border-radius: 10px;
            background: #f8fcf9;
            padding: 9px 10px;
            margin-bottom: 10px;
        }

        .exam-threshold-panel h5 {
            margin: 0 0 6px;
            font-size: .92rem;
            color: #1a4533;
        }

        .exam-threshold-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }

        .exam-threshold-grid label {
            font-size: .8rem;
            color: #4f6a5e;
            display: grid;
            gap: 4px;
        }

        .exam-threshold-grid input {
            width: 100%;
            min-width: 0;
            padding: 6px 8px;
            border: 1px solid #cddfd4;
            border-radius: 8px;
            background: #fff;
            color: #214a38;
        }

        .exam-threshold-actions {
            margin-top: 8px;
            display: flex;
            gap: 8px;
            align-items: center;
            flex-wrap: wrap;
        }

        .exam-threshold-btn {
            border: 1px solid #1f7f52;
            background: #1f7f52;
            color: #fff;
            border-radius: 8px;
            padding: 6px 10px;
            font-size: .8rem;
            font-weight: 700;
            cursor: pointer;
        }

        .exam-threshold-btn.secondary {
            background: #edf6f0;
            color: #21503d;
            border-color: #c9ddcf;
        }

        .exam-threshold-status {
            font-size: .8rem;
            color: #4f6a5e;
        }

        .exam-table em.up,
        .exam-row-mini-meta .up {
            color: #1f7a4f;
            font-style: normal;
            font-weight: 700;
        }

        .exam-table em.down,
        .exam-row-mini-meta .down {
            color: #a73e3e;
            font-style: normal;
            font-weight: 700;
        }

        .exam-table em.flat,
        .exam-row-mini-meta .flat {
            color: #5f776b;
            font-style: normal;
            font-weight: 700;
        }

        .exam-trend-card {
            border: 1px solid #d6e5db;
            border-radius: 12px;
            background: #fff;
            padding: 10px;
            margin-bottom: 10px;
        }

        .exam-trend-head {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 8px;
        }

        .exam-trend-legend {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            color: #5a7467;
            font-size: .82rem;
        }

        .exam-trend-legend i {
            display: inline-block;
            width: 12px;
            height: 3px;
            border-radius: 999px;
            margin-right: 4px;
            vertical-align: middle;
        }

        .exam-trend-svg {
            width: 100%;
            height: 180px;
            border: 1px solid #e2ede6;
            border-radius: 10px;
            background: linear-gradient(180deg, #f9fdfb 0%, #f2f9f5 100%);
        }

        .exam-trend-axis {
            display: flex;
            justify-content: space-between;
            gap: 6px;
            margin-top: 6px;
            color: #607b6d;
            font-size: .74rem;
        }

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

        .exam-subject-delta {
            border: 1px solid #dce9e1;
            border-radius: 10px;
            background: #fbfefc;
            padding: 8px 9px;
        }

        .exam-subject-delta strong {
            display: block;
            color: #1b4634;
            font-size: .9rem;
        }

        .exam-subject-delta span {
            display: block;
            margin-top: 2px;
            color: #5f776b;
            font-size: .8rem;
        }

        .exam-subject-delta em {
            display: inline-block;
            margin-top: 4px;
            font-style: normal;
            font-size: .8rem;
            font-weight: 700;
        }

        .exam-subject-delta em.up {
            color: #1f7a4f;
        }

        .exam-subject-delta em.down {
            color: #a73e3e;
        }

        .exam-subject-delta em.flat {
            color: #5f776b;
        }

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

        .analysis-card {
            border: 1px solid #d6e5db;
            border-radius: 10px;
            padding: 10px;
            background: #fbfefc;
        }

        .analysis-card h4 {
            margin: 0 0 8px;
            font-size: 1rem;
            color: #193f30;
        }

        .analysis-row {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            padding: 8px 10px;
            border-bottom: 1px solid #cfded5;
            font-size: .92rem;
            border-radius: 8px;
        }

        .analysis-row:last-child {
            border-bottom: none;
        }

        .analysis-row:nth-child(even) {
            background: #f7fbf8;
        }

        .risk-head {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 8px;
        }

        .risk-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 999px;
            padding: 4px 10px;
            font-size: .8rem;
            font-weight: 700;
            border: 1px solid var(--tone-neutral-bd);
            background: var(--tone-neutral-bg);
            color: var(--tone-neutral-tx);
        }

        .risk-badge.low {
            background: var(--tone-success-bg);
            border-color: var(--tone-success-bd);
            color: var(--tone-success-tx);
        }

        .risk-badge.medium {
            background: var(--tone-warning-bg);
            border-color: var(--tone-warning-bd);
            color: var(--tone-warning-tx);
        }

        .risk-badge.flat {
            background: #eef4f8;
            border-color: #c9d7e2;
            color: #406079;
        }

        .risk-badge.high {
            background: var(--tone-danger-bg);
            border-color: var(--tone-danger-bd);
            color: var(--tone-danger-tx);
        }

        .risk-progress {
            width: 100%;
            height: 8px;
            border-radius: 999px;
            background: #e9f1ec;
            overflow: hidden;
            margin: 6px 0 10px;
        }

        .risk-progress>span {
            display: block;
            height: 100%;
            background: linear-gradient(90deg, #2ea06b, #f0b24a, #d35454);
        }

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

        .insight-item {
            border: 1px solid #d9e8df;
            border-left: 4px solid #4b9a71;
            border-radius: 10px;
            padding: 8px 10px;
            background: #fff;
        }

        .insight-item.warning {
            border-left-color: #d08b2f;
        }

        .insight-item.neutral {
            border-left-color: #7d8f85;
        }

        .insight-item h5 {
            margin: 0 0 4px;
            font-size: .94rem;
            color: #193f30;
        }

        .insight-item p {
            margin: 0;
            color: #4f6a5e;
            font-size: .86rem;
        }

        .insight-tip {
            margin-top: 6px;
            font-size: .82rem;
            color: #255341;
            background: #f3faf6;
            border: 1px solid #d8e8df;
            border-radius: 8px;
            padding: 6px 8px;
        }

        .week-status {
            margin: 10px 0 0;
            border: 1px solid #d8e7de;
            border-left: 4px solid #d6a14a;
            border-radius: 10px;
            background: #fff8ee;
            color: #73511f;
            padding: 9px 10px;
            font-size: .9rem;
        }

        .week-chart {
            margin-top: 10px;
            border: 1px solid #d6e5db;
            border-radius: 12px;
            background: #fff;
            padding: 12px;
        }

        .week-chart h4 {
            margin: 0 0 10px;
            font-size: 1rem;
            color: #193f30;
        }

        .week-chart-layout {
            display: grid;
            grid-template-columns: 1.55fr .9fr;
            gap: 12px;
            align-items: stretch;
        }

        .week-bars {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 8px;
            align-items: end;
            min-height: 240px;
        }

        .week-bar {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            border: 0;
            background: transparent;
            cursor: pointer;
            padding: 0;
            transition: transform .18s ease;
        }

        .week-bar:hover {
            transform: translateY(-2px);
        }

        .week-bar.active .week-bar-track {
            border-color: #76b592;
            box-shadow: 0 0 0 2px rgba(71, 147, 104, .15), 0 10px 22px rgba(30, 115, 77, .20);
        }

        .week-bar-track {
            width: 100%;
            height: 200px;
            border: 1px solid #d6e6dc;
            border-radius: 10px;
            background: linear-gradient(180deg, #f7fcf9 0%, #eef7f2 100%);
            display: flex;
            align-items: flex-end;
            overflow: hidden;
            padding: 2px;
        }

        .week-bar-fill {
            width: 100%;
            background: linear-gradient(180deg, #35b9cf 0%, #1f8ca4 55%, #1d6f89 100%);
            border-radius: 8px 8px 6px 6px;
            min-height: 4px;
            transition: height .28s ease;
        }

        .week-bar-label {
            font-size: .78rem;
            color: #4f6a5e;
        }

        .week-bar-value {
            font-size: .84rem;
            font-weight: 700;
            color: #1b4b38;
        }

        .day-detail {
            border: 1px solid #dbe9e1;
            border-radius: 10px;
            background: #fbfefc;
            padding: 10px;
            min-height: 240px;
        }

        .day-detail.updating {
            animation: dayPanelPulse .28s ease;
        }

        .day-detail h5 {
            margin: 0 0 8px;
            color: #1a4533;
            font-size: .95rem;
        }

        .day-detail-top {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 8px;
            color: #406152;
            font-size: .84rem;
        }

        .day-detail-list {
            display: grid;
            gap: 6px;
            max-height: 208px;
            overflow-y: auto;
            padding-right: 4px;
        }

        .day-detail-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 8px;
            border: 1px solid #e1ece5;
            border-radius: 8px;
            padding: 7px 8px;
            background: #fff;
            font-size: .86rem;
            animation: dayItemIn .22s ease;
        }

        .day-detail-item-right {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }

        .day-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            border-radius: 999px;
            padding: 2px 7px;
            font-size: .75rem;
            font-weight: 700;
            border: 1px solid transparent;
        }

        .day-chip.good {
            color: var(--tone-success-tx);
            background: var(--tone-success-bg);
            border-color: var(--tone-success-bd);
        }

        .day-chip.bad {
            color: var(--tone-danger-tx);
            background: var(--tone-danger-bg);
            border-color: var(--tone-danger-bd);
        }

        .day-chip.blank {
            color: var(--tone-neutral-tx);
            background: var(--tone-neutral-bg);
            border-color: var(--tone-neutral-bd);
        }

        .day-chip.solved {
            color: var(--tone-info-tx);
            background: var(--tone-info-bg);
            border-color: var(--tone-info-bd);
        }

        .day-empty {
            color: #5c7569;
            font-size: .84rem;
            margin: 0;
        }

        .daily-mini-grid {
            margin-top: 10px;
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
        }

        .daily-mini-card {
            border: 1px solid #dbe9e1;
            border-radius: 10px;
            padding: 9px 10px;
            background: #fff;
        }

        .daily-mini-top {
            display: flex;
            justify-content: space-between;
            gap: 8px;
            align-items: center;
        }

        .daily-mini-top strong {
            color: #173f2f;
        }

        .daily-mini-total {
            color: #24543f;
            font-weight: 700;
            font-size: .85rem;
        }

        .daily-mini-metrics {
            margin-top: 5px;
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
        }

        .daily-mini-metrics span {
            border-radius: 999px;
            padding: 2px 8px;
            font-size: .77rem;
            font-weight: 700;
            border: 1px solid transparent;
        }

        .daily-mini-good {
            color: #1f7a4f;
            background: #e9f7ef;
            border-color: #bfe2cd;
        }

        .daily-mini-bad {
            color: #a73e3e;
            background: #ffefef;
            border-color: #efc2c2;
        }

        .daily-mini-blank {
            color: #5e6f67;
            background: #f1f4f2;
            border-color: #d3ddd7;
        }

        #sectionDailyQuestion .daily-detail-table-wrap,
        #sectionDetailedAnalytics .daily-detail-table-wrap {
            max-height: 340px;
            overflow-x: auto;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-x pan-y;
        }

        #sectionDetailedAnalytics .daily-detail-table,
        #sectionDailyQuestion .daily-detail-table {
            min-width: 820px;
        }

        #sectionDetailedAnalytics .daily-detail-table th,
        #sectionDetailedAnalytics .daily-detail-table td,
        #sectionDailyQuestion .daily-detail-table th,
        #sectionDailyQuestion .daily-detail-table td {
            white-space: nowrap;
        }

        #sectionDetailedAnalytics .daily-detail-table th:first-child,
        #sectionDetailedAnalytics .daily-detail-table td:first-child,
        #sectionDailyQuestion .daily-detail-table th:first-child,
        #sectionDailyQuestion .daily-detail-table td:first-child {
            width: 108px;
            min-width: 108px;
        }

        #sectionDetailedAnalytics .daily-detail-table th:nth-child(2),
        #sectionDetailedAnalytics .daily-detail-table td:nth-child(2),
        #sectionDailyQuestion .daily-detail-table th:nth-child(2),
        #sectionDailyQuestion .daily-detail-table td:nth-child(2) {
            width: 164px;
            min-width: 164px;
            white-space: normal;
        }

        #sectionDetailedAnalytics .daily-detail-table th:nth-child(3),
        #sectionDetailedAnalytics .daily-detail-table td:nth-child(3),
        #sectionDailyQuestion .daily-detail-table th:nth-child(3),
        #sectionDailyQuestion .daily-detail-table td:nth-child(3) {
            min-width: 210px;
            white-space: normal;
        }

        #sectionDetailedAnalytics .daily-detail-table th:nth-child(4),
        #sectionDetailedAnalytics .daily-detail-table td:nth-child(4),
        #sectionDetailedAnalytics .daily-detail-table th:nth-child(5),
        #sectionDetailedAnalytics .daily-detail-table td:nth-child(5),
        #sectionDetailedAnalytics .daily-detail-table th:nth-child(6),
        #sectionDetailedAnalytics .daily-detail-table td:nth-child(6),
        #sectionDetailedAnalytics .daily-detail-table th:nth-child(7),
        #sectionDetailedAnalytics .daily-detail-table td:nth-child(7),
        #sectionDailyQuestion .daily-detail-table th:nth-child(4),
        #sectionDailyQuestion .daily-detail-table td:nth-child(4),
        #sectionDailyQuestion .daily-detail-table th:nth-child(5),
        #sectionDailyQuestion .daily-detail-table td:nth-child(5),
        #sectionDailyQuestion .daily-detail-table th:nth-child(6),
        #sectionDailyQuestion .daily-detail-table td:nth-child(6),
        #sectionDailyQuestion .daily-detail-table th:nth-child(7),
        #sectionDailyQuestion .daily-detail-table td:nth-child(7) {
            width: 72px;
            min-width: 72px;
            text-align: center;
        }

        .school-week-grid {
            display: grid;
            gap: 10px;
        }

        .school-week-day {
            border: 1px solid #dce9e1;
            border-radius: 10px;
            background: #fbfefc;
            overflow: hidden;
        }

        .school-week-day-head {
            background: #f3f9f5;
            border-bottom: 1px solid #e2ede6;
            padding: 9px 10px;
            font-weight: 700;
            color: #214a38;
        }

        .school-week-day-body {
            padding: 10px;
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .school-week-pill {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            border: 1px solid #d4e6db;
            border-radius: 999px;
            padding: 4px 10px;
            background: #f4fbf7;
            color: #214a38;
            font-size: .84rem;
        }

        .school-week-empty {
            color: #5c7769;
            font-size: .9rem;
        }

        @keyframes dayPanelPulse {
            0% {
                transform: translateY(2px);
                opacity: .65;
            }

            100% {
                transform: translateY(0);
                opacity: 1;
            }
        }

        @keyframes dayItemIn {
            0% {
                transform: translateX(5px);
                opacity: .3;
            }

            100% {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes replyIn {
            0% {
                opacity: .2;
                transform: translateY(-4px);
            }

            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .notif-list {
            display: grid;
            gap: 8px;
            max-height: 620px;
            overflow: auto;
        }

        .notif-item {
            border: 1px solid #c7ddcf;
            border-left: 4px solid #3a8f66;
            border-radius: 12px;
            padding: 11px;
            background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
            box-shadow: 0 6px 16px rgba(24, 78, 53, .08);
        }

        .notif-item.unread {
            border-color: #8ec4a8;
            border-left-color: #1f8f55;
            background: linear-gradient(180deg, #f6fff9 0%, #eef9f2 100%);
            box-shadow: 0 8px 20px rgba(26, 97, 62, .12);
        }

        .notif-item.notif-focus {
            border-color: #5e8fd6;
            box-shadow: 0 0 0 3px rgba(94, 143, 214, .18), 0 10px 24px rgba(34, 71, 128, .14);
        }

        .notif-meta {
            color: #4f6a5e;
            font-size: .84rem;
            margin-top: 5px;
        }

        .tag {
            display: inline-flex;
            padding: 3px 9px;
            border-radius: 999px;
            font-size: .75rem;
            background: var(--tone-status-bg);
            border: 1px solid var(--tone-status-bd);
            color: var(--tone-status-tx);
            font-weight: 700;
        }

        .notif-item[data-notif-type="student_followup"] {
            border-left-color: #2c9f6b;
        }

        .notif-item[data-notif-type="student_question"] {
            border-left-color: #248454;
        }

        .notif-item[data-notif-type="mock_exam"] {
            border-left-color: #3e9c66;
        }

        .notif-item[data-notif-type="task_submitted"] {
            border-left-color: #5a9f43;
        }

        .notif-item[data-notif-type="daily_log"] {
            border-left-color: #5a8c35;
        }

        .filter-row {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            margin: 8px 0 10px;
        }

        .filter-btn {
            border: 1px solid var(--tone-neutral-bd);
            background: var(--tone-neutral-bg);
            color: var(--tone-neutral-tx);
            border-radius: 999px;
            padding: 5px 10px;
            cursor: pointer;
            font-size: .84rem;
        }

        .filter-btn.active {
            background: var(--tone-status-bg);
            color: var(--tone-status-tx);
            border-color: var(--tone-status-bd);
        }

        .coach-student-filters {
            display: grid;
            grid-template-columns: minmax(240px, 560px);
            gap: 10px;
            align-items: end;
        }

        .coach-student-actions {
            margin-top: 8px;
            display: flex;
            gap: 8px;
            align-items: center;
        }

        .coach-student-results {
            border-top: 1px solid #e0ece4;
            padding-top: 8px;
        }

        .helper-note {
            margin: 0;
            color: #4f6a5e;
            font-size: .84rem;
        }

        .notif-hidden {
            display: none;
        }

        .notif-actions {
            display: flex;
            gap: 6px;
            align-items: center;
            flex-wrap: wrap;
        }

        .notif-actions > * {
            display: inline-flex;
            align-items: center;
        }

        .notif-action-form {
            margin: 0;
            display: inline-flex;
            align-items: center;
        }

        .notif-read-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 32px;
            padding: 6px 10px;
            border-radius: 9px;
            border: 1px solid rgba(123, 145, 182, 0.28);
            background: rgba(123, 145, 182, 0.1);
            color: #6d84ad;
            font-size: .82rem;
            font-weight: 700;
            white-space: nowrap;
        }

        .analysis-table-wrap {
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 6px;
        }

        .analysis-table-wrap .exam-table {
            min-width: 620px;
            margin-top: 0;
        }

        .notif-action-btn {
            border: 1px solid var(--tone-status-bd);
            background: var(--tone-status-bg);
            color: var(--tone-status-tx);
            border-radius: 9px;
            padding: 6px 10px;
            min-height: 32px;
            font-size: .82rem;
            font-weight: 700;
            cursor: pointer;
            transition: background .18s ease, border-color .18s ease, transform .15s ease;
        }

        .notif-action-btn:hover {
            filter: brightness(.95);
            transform: translateY(-1px);
        }

        .notif-action-btn:active {
            transform: translateY(0);
        }

        .notif-action-btn.outline {
            background: var(--tone-info-bg);
            color: var(--tone-info-tx);
            border-color: var(--tone-info-bd);
        }

        .notif-action-btn.outline:hover {
            filter: brightness(.96);
        }

        .reply-box {
            margin-top: 8px;
            border: 1px solid #cfe2d6;
            border-radius: 10px;
            background: linear-gradient(180deg, #f7fcf9 0%, #f1f9f4 100%);
            padding: 10px;
            display: none;
            animation: replyIn .18s ease;
        }

        .coach-notif-compose {
            margin-bottom: 14px;
            border: 1px solid #d8e7de;
            border-radius: 14px;
            background: linear-gradient(135deg, #fbfefc 0%, #f3faf6 100%);
            padding: 14px;
        }

        .coach-notif-compose-head {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            align-items: flex-start;
            margin-bottom: 10px;
        }

        .coach-notif-compose-head h3 {
            margin: 0;
            font-size: 1.12rem;
            color: #173a2c;
        }

        .coach-notif-compose-head p {
            margin: 4px 0 0;
            color: #4f6a5e;
            font-size: .9rem;
            line-height: 1.55;
            max-width: 38ch;
        }

        .coach-notif-target {
            display: inline-flex;
            align-items: center;
            border-radius: 999px;
            padding: 6px 12px;
            background: var(--tone-status-bg);
            border: 1px solid var(--tone-status-bd);
            color: var(--tone-status-tx);
            font-weight: 700;
            white-space: nowrap;
        }

        .coach-notif-compose-form {
            display: grid;
            gap: 9px;
        }

        .coach-notif-compose-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .coach-notif-compose-form > label,
        .coach-notif-compose-form .coach-notif-compose-grid > label {
            display: block;
        }

.coach-notif-compose-form > label > input,
.coach-notif-compose-form > label > select,
.coach-notif-compose-form > label > textarea,
.coach-notif-compose-form .coach-notif-compose-grid > label > input,
.coach-notif-compose-form .coach-notif-compose-grid > label > select,
.coach-notif-compose-form .coach-notif-compose-grid > label > textarea {
    width: 100%;
            max-width: 100%;
            box-sizing: border-box;
            margin-top: 4px;
            border: 1px solid #bfd7c8;
            border-radius: 10px;
            padding: 8px 10px;
            background: #fff;
        }

        .coach-notif-compose-actions {
            display: flex;
            justify-content: space-between;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

        .coach-notif-check {
            display: inline-flex !important;
            align-items: center;
            gap: 8px;
            margin: 0;
            color: #2b5442;
            font-weight: 600;
        }

        .coach-notif-check input {
            width: auto;
            margin: 0;
        }

        .reply-box.open {
            display: block;
        }

        .reply-box textarea {
            width: 100%;
            border: 1px solid #ccdcd1;
            border-radius: 8px;
            padding: 8px;
            min-height: 74px;
        }

        .reply-head {
            margin: 0 0 8px;
            color: #1a4b37;
            font-weight: 700;
            font-size: .86rem;
        }

        .exam-modal {
            position: fixed;
            inset: 0;
            display: none;
            z-index: 9999;
        }

        .exam-modal.open {
            display: block;
        }

        .exam-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(8, 16, 12, .46);
        }

        .exam-panel {
            position: absolute;
            right: 0;
            top: 0;
            height: 100%;
            width: min(560px, 96vw);
            background: #fff;
            box-shadow: -14px 0 40px rgba(0, 0, 0, .18);
            padding: 16px;
            overflow: auto;
        }

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

        .exam-head h4 {
            margin: 0;
            font-size: 1.15rem;
        }

        .exam-close {
            border: 1px solid #d2e0d7;
            background: #f2f7f4;
            color: #204636;
            border-radius: 8px;
            padding: 6px 10px;
            cursor: pointer;
            font-weight: 700;
        }

        .exam-box {
            border: 1px solid #e0ece4;
            border-radius: 10px;
            padding: 10px;
            margin-top: 10px;
        }

        .exam-summary-box {
            padding: 12px;
            background: linear-gradient(180deg, #fbfefc 0%, #f4faf6 100%);
        }

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

        .exam-stat-card {
            min-width: 0;
            border: 1px solid #dbe8e0;
            border-radius: 14px;
            padding: 12px 13px;
            background:
                radial-gradient(circle at top right, rgba(227, 151, 52, .12), transparent 38%),
                linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
            box-shadow: 0 10px 22px rgba(26, 63, 48, .06);
        }

        .exam-stat-card>span,
        .exam-section-pill span {
            display: block;
            font-size: .74rem;
            font-weight: 800;
            letter-spacing: .08em;
            text-transform: uppercase;
            color: #698175;
        }

        .exam-stat-card strong {
            display: block;
            margin-top: 8px;
            color: #173b2d;
            font-size: 1.15rem;
            line-height: 1.3;
            overflow-wrap: anywhere;
        }

        .exam-stat-card--wide strong {
            font-size: 1.24rem;
        }

        .exam-stat-card--highlight {
            background:
                radial-gradient(circle at top right, rgba(72, 118, 218, .14), transparent 40%),
                linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
        }

        .exam-stat-split {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-top: 8px;
        }

        .exam-stat-split>div {
            display: grid;
            gap: 4px;
            padding: 8px 10px;
            border-radius: 12px;
            background: rgba(255, 255, 255, .88);
            box-shadow: inset 0 0 0 1px rgba(47, 82, 65, .08);
            text-align: center;
        }

        .exam-stat-split b {
            display: block;
            color: #173b2d;
            font-size: 1.18rem;
            line-height: 1;
            overflow-wrap: anywhere;
        }

        .exam-stat-split small {
            display: block;
            color: #5f776b;
            font-size: .72rem;
            font-weight: 700;
        }

        /* Mobile overflow fixes: avoid nesting 2-col grid inside 2-col grid */
        @media (max-width: 420px) {
            .exam-stat-card--highlight {
                grid-column: 1 / -1;
            }

            .exam-stat-card--wide strong {
                font-size: 1.12rem;
            }

            .exam-stat-split {
                gap: 8px;
            }

            .exam-stat-split > div {
                padding: 8px 9px;
            }

            .exam-stat-split b {
                font-size: 1.05rem;
            }
        }

        @media (max-width: 360px) {
            .exam-stat-split {
                grid-template-columns: 1fr;
            }
        }

        .exam-section-summary {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
            margin-top: 10px;
        }

        .exam-section-pill {
            padding: 10px 12px;
            border: 1px solid #dbe8e0;
            border-radius: 12px;
            background: #fbfefc;
        }

        .exam-section-pill strong {
            display: block;
            margin-top: 6px;
            font-size: 1.25rem;
            color: #16392c;
        }

        .exam-box textarea {
            background: #ffffff;
            color: #183a2d;
        }

        .coach-image-stage {
            min-height: min(60vh, 520px);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid #dce9e1;
            border-radius: 12px;
            background: #f8fcf9;
            padding: 12px;
        }

        .coach-image-stage img {
            max-width: 100%;
            max-height: min(72vh, 720px);
            width: auto;
            height: auto;
            border: 1px solid #dce9e1;
            border-radius: 10px;
            background: #fff;
        }

        .coach-image-status {
            margin: 0;
            color: #335646;
            font-weight: 700;
            text-align: center;
        }

        .coach-image-status.is-error {
            color: #a03d3d;
        }

        .exam-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 6px;
            border: 1px solid #c9dbd0;
            border-radius: 12px;
            overflow: hidden;
            background: #ffffff;
        }

        .exam-table th,
        .exam-table td {
            border-bottom: 1px solid #cfddd5;
            padding: 9px 8px;
            font-size: .86rem;
            text-align: left;
        }

        #sectionDetailedAnalytics .analysis-card .exam-table th {
            word-break: normal;
            overflow-wrap: break-word;
        }

        #sectionDetailedAnalytics .daily-detail-table-wrap + h4 {
            margin-top: 18px !important;
        }

        .exam-table thead th {
            background: #edf5f0;
            color: #183a2d;
            font-weight: 800;
            border-bottom: 1px solid #bfd3c7;
        }

        .exam-table tbody tr:nth-child(even) td {
            background: #f9fcfa;
        }

        .exam-table tbody tr:hover td {
            background: #f1f7f3;
        }

        .exam-table tbody tr:last-child td {
            border-bottom: 0;
        }

        :root[data-theme="dark"] .coach-top {
            background: linear-gradient(125deg, #0e1a30, #152948);
            border-color: #29476f;
            color: #e8f1ff;
        }

        :root[data-theme="dark"] .coach-top {
            background: linear-gradient(126deg, #1b2236 0%, #202841 56%, #25314d 100%);
            border-color: #2f3f63;
        }

        :root[data-theme="dark"] .coach-shell {
            background: transparent;
            --v2-bg: #0f1117;
            --v2-sf: #181c27;
            --v2-sf2: #1e2333;
            --v2-bd: #2a3047;
            --v2-ac: #3b82f6;
            --v2-tx: #e8ecf4;
            --v2-tx2: #9eb1cf;
            --v2-tx3: #5e7092;
        }

        :root[data-theme="dark"] .coach-side {
            background: var(--v2-sf);
            border: 1px solid var(--v2-bd);
            border-radius: 14px;
            padding: 12px;
        }

        :root[data-theme="dark"] .coach-side-card {
            background: var(--v2-sf2);
            border-color: var(--v2-bd);
        }

        :root[data-theme="dark"] .coach-side-title {
            color: var(--v2-tx3);
        }

        :root[data-theme="dark"] .coach-side-main {
            color: var(--v2-tx);
        }

        :root[data-theme="dark"] .coach-side-sub {
            color: var(--v2-tx2);
        }

        :root[data-theme="dark"] .side-menu-btn {
            color: #b9c8de;
            background: transparent;
            border-color: transparent;
        }

        :root[data-theme="dark"] .side-menu-btn:hover {
            color: #d9e7ff;
            background: #1b2a42;
            border-color: transparent;
        }

        :root[data-theme="dark"] .side-menu-btn.active {
            background: rgba(59, 130, 246, .18);
            color: #dbe8ff;
            border-color: #3b82f6;
        }

        :root[data-theme="dark"] .side-menu-btn.active .side-ico {
            color: #9fc3ff;
        }

        :root[data-theme="dark"] .coach-side-submenu {
            border-left-color: rgba(144, 183, 255, .22);
        }

        :root[data-theme="dark"] .coach-side-submenu .side-menu-btn {
            background: rgba(255, 255, 255, .035);
            border-color: rgba(144, 183, 255, .08);
        }

        :root[data-theme="dark"] .coach-top p,
        :root[data-theme="dark"] .coach-select-row label {
            color: #b2c6e6;
        }

        :root[data-theme="dark"] .quick-btn {
            background: rgba(255, 255, 255, .06);
            border-color: #2f4f77;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .quick-btn:hover {
            background: rgba(255, 255, 255, .12);
        }

        :root[data-theme="dark"] .quick-btn.active {
            background: #3b82f6;
            border-color: #3b82f6;
            color: #eef4ff;
        }

        :root[data-theme="dark"] #sectionWeeklyTask .task-submit-btn {
            background: linear-gradient(135deg, #213a5c, #f08a24);
            border-color: #f0a14c;
            color: #fffaf2;
        }

        :root[data-theme="dark"] #sectionWeeklyTask .task-submit-btn:hover {
            background: linear-gradient(135deg, #1b3250, #db7b1e);
            border-color: #f3b36e;
            filter: none;
        }

        :root[data-theme="dark"] #sectionWeeklyTask.task-card {
            background: #101c2f;
            border-color: #2b466a;
            box-shadow: 0 14px 28px rgba(0, 0, 0, .35);
        }

        :root[data-theme="dark"] #sectionWeeklyTask .task-head {
            background: linear-gradient(120deg, #13233d, #162b4a);
            border-bottom-color: #2a4568;
        }

        :root[data-theme="dark"] .exam-sum-box,
        :root[data-theme="dark"] .exam-row-mini,
        :root[data-theme="dark"] .analysis-card,
        :root[data-theme="dark"] .week-chart,
        :root[data-theme="dark"] .day-detail,
        :root[data-theme="dark"] .daily-mini-card,
        :root[data-theme="dark"] .insight-item,
        :root[data-theme="dark"] .exam-month-group,
        :root[data-theme="dark"] .exam-card,
        :root[data-theme="dark"] .exam-lesson-item {
            background: #101c2f;
            border-color: #29466b;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .analysis-card h4,
        :root[data-theme="dark"] .day-detail h5,
        :root[data-theme="dark"] .exam-card-summary strong,
        :root[data-theme="dark"] .exam-month-head strong {
            color: #f1f6ff;
        }

        :root[data-theme="dark"] .exam-month-head {
            background: #13233b;
            border-bottom-color: #29466b;
            color: #b7c9e5;
        }

        :root[data-theme="dark"] .exam-month-head span {
            color: #b7c9e5;
        }

        :root[data-theme="dark"] .week-chart h4 {
            color: #dce9ff;
        }

        :root[data-theme="dark"] .analysis-row {
            border-bottom-color: #243d5f;
        }

        :root[data-theme="dark"] .analysis-row:nth-child(even) {
            background: #13233b;
        }

        :root[data-theme="dark"] .analysis-row span,
        :root[data-theme="dark"] .exam-row-mini-note,
        :root[data-theme="dark"] .exam-row-mini-meta,
        :root[data-theme="dark"] .week-bar-label,
        :root[data-theme="dark"] .day-empty {
            color: #9fb3d3;
        }

        :root[data-theme="dark"] .exam-row-mini.clickable:hover {
            border-color: #3b82f6;
            box-shadow: 0 8px 18px rgba(0, 0, 0, .28);
        }

        :root[data-theme="dark"] .exam-row-mini.active {
            border-color: #3b82f6;
            box-shadow: 0 0 0 2px rgba(59, 130, 246, .2);
        }

        :root[data-theme="dark"] .exam-row-mini-detail {
            border-top-color: #29466b;
        }

        :root[data-theme="dark"] .daily-log-accordion summary::after {
            border-color: rgba(115, 149, 178, 0.34);
            color: #dce8f5;
            background: rgba(19, 29, 44, 0.88);
        }

        :root[data-theme="dark"] .daily-log-accordion-body {
            border-top-color: rgba(115, 149, 178, 0.24);
        }

        :root[data-theme="dark"] .daily-log-item-row {
            border-color: rgba(86, 116, 148, 0.44);
            background: rgba(19, 29, 44, 0.9);
        }

        :root[data-theme="dark"] .daily-log-subject-chip {
            background: rgba(255, 138, 31, 0.16);
            color: #ffd8ab;
            border-color: rgba(255, 159, 67, 0.38);
        }

        :root[data-theme="dark"] .daily-log-success-badge {
            background: rgba(255, 188, 92, 0.15);
            color: #ffe7bf;
            border-color: rgba(255, 188, 92, 0.3);
        }

        :root[data-theme="dark"] .daily-log-topic-title {
            color: #f3f8ff;
        }

        :root[data-theme="dark"] .daily-log-empty,
        :root[data-theme="dark"] .daily-log-empty,
        :root[data-theme="dark"] .daily-log-note {
            color: #b8cbe0;
        }

        :root[data-theme="dark"] .daily-log-stat-card {
            background: rgba(20, 30, 47, 0.92);
            border-color: rgba(86, 116, 148, 0.36);
        }

        :root[data-theme="dark"] .daily-log-stat-card span {
            color: #9fb6d3;
        }

        :root[data-theme="dark"] .daily-log-stat-card strong {
            color: #f3f8ff;
        }

        :root[data-theme="dark"] .daily-log-stat-card.is-good {
            background: rgba(24, 63, 44, 0.62);
            border-color: rgba(74, 127, 98, 0.45);
        }

        :root[data-theme="dark"] .daily-log-stat-card.is-good strong {
            color: #dff7e8;
        }

        :root[data-theme="dark"] .daily-log-stat-card.is-warn {
            background: rgba(84, 35, 35, 0.58);
            border-color: rgba(156, 82, 82, 0.42);
        }

        :root[data-theme="dark"] .daily-log-stat-card.is-warn strong {
            color: #ffdede;
        }

        :root[data-theme="dark"] .daily-log-stat-card.is-muted {
            background: rgba(44, 65, 95, 0.72);
            border-color: rgba(86, 116, 148, 0.4);
        }

        :root[data-theme="dark"] .daily-log-stat-card.is-muted strong {
            color: #d9e8ff;
        }

        :root[data-theme="dark"] .exam-trend-kpi,
        :root[data-theme="dark"] .exam-trend-card,
        :root[data-theme="dark"] .exam-subject-delta {
            background: #101c2f;
            border-color: #29466b;
        }

        :root[data-theme="dark"] .exam-threshold-panel {
            background: #101c2f;
            border-color: #29466b;
        }

        :root[data-theme="dark"] .exam-threshold-panel h5 {
            color: #e8f1ff;
        }

        :root[data-theme="dark"] .exam-threshold-grid label {
            color: #9fb3d3;
        }

        :root[data-theme="dark"] .exam-threshold-grid input {
            background: #13233b;
            border-color: #29466b;
            color: #e8f1ff;
        }

        :root[data-theme="dark"] .exam-threshold-btn.secondary {
            background: #13233b;
            border-color: #29466b;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .exam-threshold-status {
            color: #9fb3d3;
        }

        :root[data-theme="dark"] .exam-trend-kpi span,
        :root[data-theme="dark"] .exam-trend-legend,
        :root[data-theme="dark"] .exam-trend-axis,
        :root[data-theme="dark"] .exam-subject-delta span {
            color: #9fb3d3;
        }

        :root[data-theme="dark"] .exam-trend-kpi strong,
        :root[data-theme="dark"] .exam-subject-delta strong {
            color: #e8f1ff;
        }

        :root[data-theme="dark"] .exam-trend-svg {
            border-color: #29466b;
            background: linear-gradient(180deg, #0f1a2b 0%, #14233b 100%);
        }

        :root[data-theme="dark"] .exam-table em.up,
        :root[data-theme="dark"] .exam-row-mini-meta .up {
            color: #9ee7c0;
        }

        :root[data-theme="dark"] .exam-table em.down,
        :root[data-theme="dark"] .exam-row-mini-meta .down {
            color: #ffb8c8;
        }

        :root[data-theme="dark"] .exam-table em.flat,
        :root[data-theme="dark"] .exam-row-mini-meta .flat {
            color: #b7c9e5;
        }

        :root[data-theme="dark"] .exam-mini-lesson-item {
            background: #13233b;
            border-color: #2a466b;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .exam-mini-lesson-item strong {
            color: #e8f1ff;
        }

        :root[data-theme="dark"] .exam-mini-lesson-item span {
            color: #a9bfdc;
        }

        :root[data-theme="dark"] .week-bar-value {
            color: #8fb9ff;
        }

        :root[data-theme="dark"] .day-detail-top {
            color: #9fb3d3;
        }

        :root[data-theme="dark"] .week-bar-track {
            background: #0f1a2b;
            border-color: #284362;
        }

        :root[data-theme="dark"] .exam-card-badges span,
        :root[data-theme="dark"] .risk-badge {
            background: var(--tone-neutral-bg);
            border-color: var(--tone-neutral-bd);
            color: var(--tone-neutral-tx);
        }

        :root[data-theme="dark"] .exam-card-content {
            border-top-color: #29466b;
            background:
                radial-gradient(circle at top right, rgba(244, 171, 72, 0.14), transparent 34%),
                linear-gradient(180deg, rgba(17, 29, 48, 0.98), rgba(15, 25, 42, 0.98));
        }

        :root[data-theme="dark"] .exam-card-score,
        :root[data-theme="dark"] .exam-note,
        :root[data-theme="dark"] .exam-lesson-item {
            border-color: #315074;
        }

        :root[data-theme="dark"] .exam-card-score {
            background: rgba(14, 24, 41, 0.82);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        }

        :root[data-theme="dark"] .exam-card-score--primary {
            background:
                radial-gradient(circle at top right, rgba(72, 118, 218, 0.22), transparent 40%),
                rgba(14, 24, 41, 0.88);
        }

        :root[data-theme="dark"] .exam-card-score span,
        :root[data-theme="dark"] .exam-note strong,
        :root[data-theme="dark"] .exam-note span,
        :root[data-theme="dark"] .exam-lesson-net-label {
            color: #9eb6da;
        }

        :root[data-theme="dark"] .exam-card-score strong,
        :root[data-theme="dark"] .exam-lesson-head strong {
            color: #eef4ff;
        }

        :root[data-theme="dark"] .exam-lesson-item {
            background: linear-gradient(180deg, rgba(17, 29, 48, 0.98), rgba(14, 24, 41, 0.98));
            box-shadow: 0 12px 24px rgba(3, 8, 18, 0.24);
        }

        :root[data-theme="dark"] .exam-note {
            background: rgba(14, 24, 41, 0.74);
        }

        :root[data-theme="dark"] .exam-lesson-item:nth-child(6n+1) {
            --lesson-accent: #f0ad56;
            --lesson-surface: rgba(103, 67, 21, 0.92);
            --lesson-tint: rgba(80, 50, 15, 0.96);
        }

        :root[data-theme="dark"] .exam-lesson-item:nth-child(6n+2) {
            --lesson-accent: #56c788;
            --lesson-surface: rgba(19, 70, 42, 0.92);
            --lesson-tint: rgba(14, 54, 33, 0.96);
        }

        :root[data-theme="dark"] .exam-lesson-item:nth-child(6n+3) {
            --lesson-accent: #73aef4;
            --lesson-surface: rgba(24, 58, 96, 0.92);
            --lesson-tint: rgba(18, 45, 74, 0.96);
        }

        :root[data-theme="dark"] .exam-lesson-item:nth-child(6n+4) {
            --lesson-accent: #ef7fa4;
            --lesson-surface: rgba(92, 29, 53, 0.92);
            --lesson-tint: rgba(70, 22, 40, 0.96);
        }

        :root[data-theme="dark"] .exam-lesson-item:nth-child(6n+5) {
            --lesson-accent: #b894ff;
            --lesson-surface: rgba(66, 38, 110, 0.92);
            --lesson-tint: rgba(52, 30, 87, 0.96);
        }

        :root[data-theme="dark"] .exam-lesson-item:nth-child(6n+6) {
            --lesson-accent: #67d4dc;
            --lesson-surface: rgba(14, 74, 83, 0.92);
            --lesson-tint: rgba(11, 57, 64, 0.96);
        }

        :root[data-theme="dark"] .exam-lesson-head {
            background: linear-gradient(180deg, var(--lesson-surface) 0%, var(--lesson-tint) 100%);
            border-color: rgba(255, 255, 255, 0.16);
        }

        :root[data-theme="dark"] .exam-lesson-head strong {
            color: #eef5ff;
        }

        :root[data-theme="dark"] .exam-lesson-net-label {
            color: #9fb3d3;
        }

        :root[data-theme="dark"] .exam-lesson-net-panel {
            border-top-color: color-mix(in srgb, var(--lesson-accent) 28%, #29466b 72%);
        }

        :root[data-theme="dark"] .exam-lesson-net-value {
            color: var(--lesson-accent);
        }

        :root[data-theme="dark"] .coach-overview-summary-card,
        :root[data-theme="dark"] .coach-compare-card,
        :root[data-theme="dark"] .coach-compare-metric,
        :root[data-theme="dark"] .coach-compare-note {
            background: #101c2f;
            border-color: #29466b;
            color: #dce9ff;
            box-shadow: none;
        }

        :root[data-theme="dark"] #sectionOverview {
            background: linear-gradient(180deg, #122038 0%, #162742 100%);
            border-color: #29466b;
        }

        :root[data-theme="dark"] .coach-compare-card.is-selected {
            border-color: #4e7099;
            background:
                radial-gradient(circle at top left, rgba(242, 140, 40, .18), transparent 34%),
                linear-gradient(180deg, #101c2f 0%, #13233b 100%);
            box-shadow: 0 18px 34px rgba(0, 0, 0, .28), 0 0 0 1px rgba(242, 140, 40, .28);
        }

        :root[data-theme="dark"] .coach-compare-card {
            background:
                radial-gradient(circle at top left, rgba(242, 140, 40, .12), transparent 30%),
                radial-gradient(circle at bottom right, rgba(79, 156, 255, .12), transparent 32%),
                linear-gradient(180deg, #101c2f 0%, #13233b 100%);
        }

        :root[data-theme="dark"] .coach-overview-summary-card span,
        :root[data-theme="dark"] .coach-compare-metric span,
        :root[data-theme="dark"] .coach-compare-progress span,
        :root[data-theme="dark"] .coach-compare-note {
            color: #9fb3d3;
        }

        :root[data-theme="dark"] .coach-overview-summary-card strong,
        :root[data-theme="dark"] .coach-compare-top h4,
        :root[data-theme="dark"] .coach-compare-metric strong,
        :root[data-theme="dark"] .coach-compare-progress strong,
        :root[data-theme="dark"] .coach-compare-note strong,
        :root[data-theme="dark"] .coach-compare-note em {
            color: #f1f6ff;
        }

        :root[data-theme="dark"] .coach-compare-tags span {
            background: #162844;
            border-color: #31537e;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .coach-compare-tags span:first-child {
            background: linear-gradient(180deg, rgba(242, 140, 40, .18) 0%, rgba(242, 140, 40, .10) 100%);
            border-color: rgba(242, 140, 40, .38);
            color: #ffd7ab;
        }

        :root[data-theme="dark"] .coach-overview-toolbar label {
            color: #cfe0ff;
        }

        :root[data-theme="dark"] .coach-overview-toolbar input,
        :root[data-theme="dark"] .coach-overview-toolbar select {
            background: #101c2f;
            border-color: #345476;
            color: #eef4ff;
        }

        :root[data-theme="dark"] .risk-badge.flat {
            background: #172842;
            border-color: #335579;
            color: #cfe0ff;
        }

        :root[data-theme="dark"] .day-detail-item {
            background: #13233b;
            border-color: #29466b;
            color: #e8f1ff;
        }

        :root[data-theme="dark"] .school-week-day {
            background: #101c2f;
            border-color: #29466b;
        }

        :root[data-theme="dark"] .school-week-day-head {
            background: #13233b;
            border-bottom-color: #274467;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .school-week-pill {
            background: #143052;
            border-color: #2b517f;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .school-week-empty {
            color: #9ab0d2;
        }

        :root[data-theme="dark"] .day-detail-item span {
            color: #e8f1ff;
        }

        :root[data-theme="dark"] .day-chip.solved {
            background: var(--tone-info-bg);
            border-color: var(--tone-info-bd);
            color: var(--tone-info-tx);
        }

        :root[data-theme="dark"] .day-chip.good {
            background: var(--tone-success-bg);
            border-color: var(--tone-success-bd);
            color: var(--tone-success-tx);
        }

        :root[data-theme="dark"] .day-chip.bad {
            background: var(--tone-danger-bg);
            border-color: var(--tone-danger-bd);
            color: var(--tone-danger-tx);
        }

        :root[data-theme="dark"] .day-chip.blank {
            background: var(--tone-neutral-bg);
            border-color: var(--tone-neutral-bd);
            color: var(--tone-neutral-tx);
        }

        :root[data-theme="dark"] .notif-item {
            background: #101d31;
            border-color: #2b466b;
            box-shadow: none;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .notif-item.unread {
            background: #12253d;
            border-left-color: #3b82f6;
        }

        :root[data-theme="dark"] .tag {
            background: var(--tone-status-bg);
            border-color: var(--tone-status-bd);
            color: var(--tone-status-tx);
        }

        :root[data-theme="dark"] .notif-action-btn {
            background: var(--tone-status-bg);
            border-color: var(--tone-status-bd);
            color: var(--tone-status-tx);
        }

        :root[data-theme="dark"] .notif-action-btn:hover {
            filter: brightness(.95);
        }

        :root[data-theme="dark"] .notif-action-btn.outline {
            background: var(--tone-info-bg);
            border-color: var(--tone-info-bd);
            color: var(--tone-info-tx);
        }

        :root[data-theme="dark"] .notif-action-btn.outline:hover {
            filter: brightness(.96);
        }

        :root[data-theme="dark"] .reply-box {
            background: #13233b;
            border-color: #29466b;
        }

        :root[data-theme="dark"] .exam-panel {
            background: #0f1a2d;
            color: #eef4ff;
            box-shadow: -14px 0 40px rgba(0, 0, 0, .42);
        }

        :root[data-theme="dark"] .exam-head h4,
        :root[data-theme="dark"] .exam-box,
        :root[data-theme="dark"] .exam-box strong,
        :root[data-theme="dark"] .exam-box p,
        :root[data-theme="dark"] .exam-box span {
            color: #eef4ff;
        }

        :root[data-theme="dark"] .exam-close {
            background: #17263d;
            border-color: #345476;
            color: #eef4ff;
        }

        :root[data-theme="dark"] .exam-box {
            background: #13233b;
            border-color: #29466b;
        }

        :root[data-theme="dark"] .exam-box textarea {
            background: #101c2f;
            border-color: #345476;
            color: #eef4ff;
        }

        :root[data-theme="dark"] .coach-notif-compose {
            background: linear-gradient(180deg, #101c2f 0%, #13233b 100%);
            border-color: #29466b;
        }

        :root[data-theme="dark"] .coach-notif-compose-head h3 {
            color: #f1f6ff;
        }

        :root[data-theme="dark"] .coach-notif-compose-head p {
            color: #a9bfdc;
        }

        :root[data-theme="dark"] .coach-notif-target {
            background: var(--tone-status-bg);
            border-color: var(--tone-status-bd);
            color: var(--tone-status-tx);
        }

        :root[data-theme="dark"] .coach-notif-compose-form > label > input,
        :root[data-theme="dark"] .coach-notif-compose-form > label > select,
        :root[data-theme="dark"] .coach-notif-compose-form > label > textarea,
        :root[data-theme="dark"] .coach-notif-compose-form .coach-notif-compose-grid > label > input,
        :root[data-theme="dark"] .coach-notif-compose-form .coach-notif-compose-grid > label > select,
        :root[data-theme="dark"] .coach-notif-compose-form .coach-notif-compose-grid > label > textarea {
            background: #101c2f;
            border-color: #345476;
            color: #eef4ff;
        }

        :root[data-theme="dark"] .coach-notif-compose-form > label > input::placeholder,
        :root[data-theme="dark"] .coach-notif-compose-form > label > textarea::placeholder,
        :root[data-theme="dark"] .coach-notif-compose-form .coach-notif-compose-grid > label > input::placeholder,
        :root[data-theme="dark"] .coach-notif-compose-form .coach-notif-compose-grid > label > textarea::placeholder {
            color: #9cb2d4;
        }

        :root[data-theme="dark"] .coach-notif-check {
            color: #dce9ff;
        }

        :root[data-theme="dark"] .reply-head {
            color: #dce9ff;
        }

        :root[data-theme="dark"] .filter-btn {
            background: var(--tone-neutral-bg);
            border-color: var(--tone-neutral-bd);
            color: var(--tone-neutral-tx);
        }

        :root[data-theme="dark"] .filter-btn.active {
            background: var(--tone-status-bg);
            border-color: var(--tone-status-bd);
            color: var(--tone-status-tx);
        }

        :root[data-theme="dark"] .coach-student-results {
            border-top-color: #29466b;
        }

        :root[data-theme="dark"] #sectionStudentOps .admin-subtab-btn {
            background: #142338;
            border-color: #2c486e;
            color: #d8e7ff;
        }

        :root[data-theme="dark"] #sectionStudentOps .admin-subtab-btn.active {
            background: linear-gradient(135deg, #2d5fa8, #3b82f6);
            border-color: #4d8df1;
            color: #f4f8ff;
        }

        :root[data-theme="dark"] #sectionStudentOps .soft-card {
            background: #101b2d;
            border-color: #274467;
            box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
        }

        :root[data-theme="dark"] #sectionStudentOps h4,
        :root[data-theme="dark"] #sectionStudentOps label {
            color: #e5efff;
        }

        :root[data-theme="dark"] .coach-invite-ops-head h4,
        :root[data-theme="dark"] .coach-single-invite-head h5,
        :root[data-theme="dark"] .coach-invite-list-head h5,
        :root[data-theme="dark"] .coach-invite-student-cell strong {
            color: #eef4ff;
        }

        :root[data-theme="dark"] .coach-section-eyebrow {
            background: rgba(59, 130, 246, 0.14);
            border-color: rgba(96, 165, 250, 0.28);
            color: #bcd8ff;
        }

        :root[data-theme="dark"] #sectionStudentOps input,
        :root[data-theme="dark"] #sectionStudentOps select,
        :root[data-theme="dark"] #sectionStudentOps textarea {
            background: #172842;
            border-color: #7fa7d8;
            color: #eef4ff;
        }

        :root[data-theme="dark"] #sectionStudentOps input:focus,
        :root[data-theme="dark"] #sectionStudentOps select:focus,
        :root[data-theme="dark"] #sectionStudentOps textarea:focus {
            border-color: #d8e8ff;
            box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.2);
            outline: none;
        }

        :root[data-theme="dark"] #sectionStudentOps input::placeholder,
        :root[data-theme="dark"] #sectionStudentOps textarea::placeholder {
            color: #99b0d3;
        }

        :root[data-theme="dark"] .coach-bulk-invite-card {
            background: linear-gradient(135deg, rgba(44, 31, 18, 0.92) 0%, rgba(16, 31, 51, 0.96) 100%);
            border-color: rgba(235, 162, 72, 0.42);
            box-shadow: inset 0 1px 0 rgba(255, 211, 151, 0.08);
        }

        :root[data-theme="dark"] .coach-bulk-invite-badge {
            color: #ffd59b;
            background: rgba(118, 75, 18, 0.55);
            border-color: rgba(242, 172, 87, 0.34);
        }

        :root[data-theme="dark"] .coach-bulk-invite-code {
            color: #f6f0e6;
        }

        :root[data-theme="dark"] .coach-bulk-invite-link-box {
            background: rgba(18, 32, 51, 0.76);
            border-color: rgba(55, 85, 123, 0.92);
        }

        :root[data-theme="dark"] .coach-single-invite-section,
        :root[data-theme="dark"] .coach-invite-list-head {
            border-top-color: #29466b;
        }

        :root[data-theme="dark"] .coach-student-invite-form .login-subpanel,
        :root[data-theme="dark"] .coach-invite-url-row,
        :root[data-theme="dark"] .coach-invite-code-top strong {
            background: #13233a;
            border-color: #29466b;
            color: #e6f0ff;
        }

        :root[data-theme="dark"] .coach-shared-parent-check {
            background: #13233a;
            border-color: #7fa7d8;
            color: #e6f0ff;
        }

        :root[data-theme="dark"] .coach-parent-email-note.is-checking {
            background: #172842;
            border-color: #31537e;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .coach-parent-email-note.is-ok {
            background: rgba(31, 94, 58, 0.34);
            border-color: rgba(81, 196, 128, 0.34);
            color: #b7f4cc;
        }

        :root[data-theme="dark"] .coach-parent-email-note.is-error {
            background: rgba(127, 29, 29, 0.28);
            border-color: rgba(248, 113, 113, 0.34);
            color: #ffc0c0;
        }

        :root[data-theme="dark"] .coach-invite-url-row > span:first-child {
            color: #9fb3d3;
        }

        :root[data-theme="dark"] .coach-invite-status-chip {
            background: #172842;
            border-color: #31537e;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .coach-invite-status-chip.is-active {
            border-color: rgba(81, 196, 128, 0.34);
            background: rgba(31, 94, 58, 0.34);
            color: #b7f4cc;
        }

        :root[data-theme="dark"] .coach-invite-status-chip.is-used {
            border-color: rgba(96, 165, 250, 0.34);
            background: rgba(37, 99, 235, 0.18);
            color: #c6dcff;
        }

        :root[data-theme="dark"] .coach-invite-status-chip.is-cancelled,
        :root[data-theme="dark"] .coach-invite-status-chip.is-expired {
            border-color: rgba(248, 113, 113, 0.34);
            background: rgba(127, 29, 29, 0.28);
            color: #ffc0c0;
        }

        :root[data-theme="dark"] .coach-invite-used-note {
            background: rgba(31, 94, 58, 0.28);
            border-color: rgba(81, 196, 128, 0.34);
            color: #c6f6d8;
        }

        :root[data-theme="dark"] .btn-mini-danger {
            color: #ffb1b1;
            background: rgba(104, 35, 35, 0.46);
            border-color: rgba(191, 90, 90, 0.34);
        }

        :root[data-theme="dark"] .school-schedule-summary-table-wrap {
            background: #101c2f;
            border-color: #29466b;
        }

        :root[data-theme="dark"] .school-schedule-summary-table th,
        :root[data-theme="dark"] .school-schedule-summary-table td {
            border-bottom-color: #274467;
            border-right-color: #274467;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .school-schedule-summary-table th,
        :root[data-theme="dark"] .school-schedule-summary-table .schedule-summary-day {
            background: #13233b;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .schedule-summary-cell strong {
            color: #eef4ff;
        }

        :root[data-theme="dark"] .schedule-summary-cell span,
        :root[data-theme="dark"] .schedule-empty {
            color: #9ab0d2;
        }

        :root[data-theme="dark"] #sectionStudentOps .coach-invite-table {
            border-color: #29466b;
            background: #101b2d;
        }

        :root[data-theme="dark"] #sectionStudentOps .coach-invite-table th,
        :root[data-theme="dark"] #sectionStudentOps .coach-invite-table td {
            border-bottom-color: #29466b;
            color: #e6f0ff;
        }

        :root[data-theme="dark"] #sectionStudentOps .coach-invite-table thead th {
            background: #1a2d49;
            color: #f4f8ff;
            border-bottom-color: #35557d;
        }

        :root[data-theme="dark"] #sectionStudentOps .coach-invite-table tbody tr:nth-child(even) td {
            background: #13233a;
        }

        :root[data-theme="dark"] #sectionStudentOps .coach-invite-table tbody tr:hover td {
            background: #172842;
        }

        :root[data-theme="dark"] #sectionStudentOps .coach-invite-link,
        :root[data-theme="dark"] #sectionStudentOps .helper-note {
            color: #9fb3d3;
        }

        :root[data-theme="dark"] #sectionStudentOps .btn-mini {
            background: #172842;
            border-color: #31537e;
            color: #dce9ff;
        }

        :root[data-theme="dark"] #sectionStudentOps .btn-mini:hover {
            background: #203759;
        }

        :root[data-theme="dark"] .coach-parent-invite-target {
            background: rgba(59, 130, 246, .12);
            border-color: rgba(96, 165, 250, .28);
            color: #dce9ff;
        }

        :root[data-theme="dark"] .coach-student-item {
            background: #101b2d;
            border-color: #29466b;
            box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
        }

        :root[data-theme="dark"] .coach-student-item > summary {
            background: #13233a;
        }

        :root[data-theme="dark"] .coach-student-item[open] > summary {
            background: #172842;
            border-bottom-color: #29466b;
        }

        :root[data-theme="dark"] .coach-student-item-name {
            color: #eef4ff;
        }

        :root[data-theme="dark"] .coach-student-item-name strong {
            color: #9fb3d3;
        }

        :root[data-theme="dark"] .coach-student-item-mail {
            color: #a9bddb;
        }

        :root[data-theme="dark"] .coach-student-card-preview {
            border-top-color: #29466b;
            color: #a9bddb;
        }

        :root[data-theme="dark"] .coach-student-card-preview strong {
            color: #eef4ff;
        }

        :root[data-theme="dark"] .coach-student-chip {
            background: #172842;
            border-color: #31537e;
            color: #d5e4ff;
        }

        :root[data-theme="dark"] .coach-student-chip.neutral {
            background: rgba(242, 140, 40, .14);
            border-color: rgba(242, 140, 40, .38);
            color: #ffd9ab;
        }

        :root[data-theme="dark"] .coach-student-item-body {
            background: #10192a;
            border-top: 1px solid #213653;
        }

        :root[data-theme="dark"] .coach-student-info-panel,
        :root[data-theme="dark"] .coach-student-edit-form {
            background: #13233a;
            border-color: #29466b;
        }

        :root[data-theme="dark"] .coach-student-panel-label,
        :root[data-theme="dark"] .coach-student-info-panel dt {
            color: #9fb3d3;
        }

        :root[data-theme="dark"] .coach-student-info-panel dd,
        :root[data-theme="dark"] .coach-student-parent-card strong,
        :root[data-theme="dark"] .coach-student-edit-head strong {
            color: #eef4ff;
        }

        :root[data-theme="dark"] .coach-student-parent-card {
            background: #172842;
            border-color: #31537e;
        }

        :root[data-theme="dark"] .coach-student-parent-card span {
            color: #bfd0ea;
        }

        :root[data-theme="dark"] .coach-student-table-wrap {
            background: #10192a;
            border-color: #31537e;
            box-shadow: 0 18px 34px rgba(0, 0, 0, .18);
        }

        :root[data-theme="dark"] .coach-student-table th {
            background: #13233a;
            color: #b9ccec;
        }

        :root[data-theme="dark"] .coach-student-table td {
            border-bottom-color: #2b4569;
        }

        :root[data-theme="dark"] .coach-student-table tbody tr {
            background: #10192a;
        }

        :root[data-theme="dark"] .coach-student-table tbody tr:nth-child(even) {
            background: #122039;
        }

        :root[data-theme="dark"] .coach-student-table tbody tr:hover {
            background: #182b48;
            box-shadow: inset 3px 0 0 #63a1eb;
        }

        :root[data-theme="dark"] .coach-student-table-main strong {
            color: #eef4ff;
        }

        :root[data-theme="dark"] .coach-student-table-main strong span,
        :root[data-theme="dark"] .coach-student-table-main small {
            color: #a9bddb;
        }

        :root[data-theme="dark"] .coach-student-muted-mail {
            color: #91a7c8;
        }

        :root[data-theme="dark"] .coach-student-parent-list.compact .coach-student-parent-card {
            background: #172842;
            border-color: #31537e;
        }

        @media (max-width: 980px) {
            :root[data-theme="dark"] .coach-student-table tr,
            :root[data-theme="dark"] .coach-student-table td {
                border-color: #2b4569;
            }

            :root[data-theme="dark"] .coach-student-table td::before {
                color: #9fb3d3;
            }
        }

        :root[data-theme="dark"] .coach-student-edit-form label {
            color: #d6e4ff;
            font-weight: 700;
        }

        :root[data-theme="dark"] .coach-student-edit-form select {
            background: #1a2941;
            border-color: #35557d;
            color: #eef4ff;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
        }

        :root[data-theme="dark"] .coach-student-edit-form select:focus {
            border-color: #5c8fd1;
            box-shadow: 0 0 0 3px rgba(92, 143, 209, .18);
        }

        :root[data-theme="dark"] .coach-icon-btn {
            background: #172842;
            border-color: #31537e;
            color: #dce9ff;
        }

        :root[data-theme="dark"] .coach-icon-btn:hover {
            background: #1d3558;
        }

        :root[data-theme="dark"] .coach-icon-btn.ghost {
            background: #13233a;
            border-color: #2b476e;
            color: #cfe0ff;
        }

        :root[data-theme="dark"] .coach-icon-btn.ghost:hover {
            background: #1a304d;
        }

        :root[data-theme="dark"] .coach-icon-btn.danger {
            background: rgba(185, 62, 62, .14);
            border-color: rgba(224, 110, 110, .35);
            color: #ffbcbc;
        }

        :root[data-theme="dark"] .coach-icon-btn.danger:hover {
            background: rgba(185, 62, 62, .24);
        }

        :root[data-theme="dark"] .helper-note {
            color: #f4f8ff;
        }

        :root[data-theme="dark"] .coach-overview-kicker {
            background: #17324d;
            border-color: #2d577e;
            color: #cfe3ff;
        }

        :root[data-theme="dark"] .coach-overview-head p {
            color: #a7bbd8;
        }

        :root[data-theme="dark"] .coach-top.is-overview-focus {
            border-bottom-color: transparent;
        }

        :root[data-theme="dark"] .coach-sections.single #sectionOverview.active .coach-overview-head {
            border-bottom-color: #29466b;
        }

        :root[data-theme="dark"] .exam-table {
            border-color: #2a466b;
            background: #101c2f;
        }

        :root[data-theme="dark"] .exam-table th,
        :root[data-theme="dark"] .exam-table td {
            border-bottom-color: #29466b;
            color: #e8f1ff;
        }

        :root[data-theme="dark"] .exam-table thead th {
            background: #223551;
            color: #f2f7ff;
            border-bottom-color: #365579;
        }

        :root[data-theme="dark"] .exam-table tbody tr:nth-child(even) td {
            background: #13233b;
        }

        :root[data-theme="dark"] .exam-table tbody tr:hover td {
            background: #182b46;
        }

        :root[data-theme="dark"] #sectionDetailedAnalytics .analysis-card,
        :root[data-theme="dark"] #sectionDetailedAnalytics .week-chart,
        :root[data-theme="dark"] #sectionDetailedAnalytics .day-detail {
            background: var(--v2-sf);
            border-color: var(--v2-bd);
        }

        :root[data-theme="dark"] #sectionDetailedAnalytics .analysis-tabbar {
            background: var(--v2-sf);
            border-color: var(--v2-bd);
        }

        :root[data-theme="dark"] #sectionDetailedAnalytics .analysis-tab {
            color: var(--v2-tx2);
        }

        :root[data-theme="dark"] #sectionDetailedAnalytics .analysis-tab.active {
            background: linear-gradient(135deg, #213a5c, #f08a24);
            border-color: #f0a14c;
            color: #fffaf2;
        }

        :root[data-theme="dark"] #sectionDetailedAnalytics .analysis-row span {
            color: var(--v2-tx2);
        }

        :root[data-theme="dark"] #sectionDetailedAnalytics .analysis-row strong {
            color: var(--v2-tx);
            font-family: "DM Mono", "Consolas", "Courier New", monospace;
        }

        :root[data-theme="dark"] #sectionDetailedAnalytics .weekly-summary-card .analysis-row strong,
        :root[data-theme="dark"] #sectionDetailedAnalytics .analysis-week-label {
            font-family: "Nunito", "DM Sans", "Segoe UI", sans-serif;
            font-weight: 800;
        }

        :root[data-theme="dark"] #sectionDetailedAnalytics .analysis-week-arrow {
            background: #17263d;
            border-color: #345476;
            color: #eef4ff;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
        }

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

            .coach-side {
                position: fixed;
                top: 0;
                left: 0;
                bottom: 0;
                z-index: 1200;
                width: min(86vw, 360px);
                padding: 18px 14px 24px;
                background: linear-gradient(180deg, rgba(255,253,249,.98), rgba(247,242,234,.98));
                border-right: 1px solid rgba(170, 180, 194, .42);
                box-shadow: 20px 0 40px rgba(31, 49, 72, .16);
                overflow-y: auto;
                transform: translateX(-108%);
                transition: transform .22s ease;
            }

            .coach-shell.menu-open .coach-side {
                transform: translateX(0);
            }

            .coach-shell.menu-open .coach-mobile-menu-backdrop {
                display: block;
                position: fixed;
                inset: 0;
                z-index: 1190;
                background: rgba(10, 18, 32, .42);
                backdrop-filter: blur(2px);
            }

            .coach-mobile-menu-btn {
                display: inline-flex;
            }

            .coach-grid,
            .coach-sections.all-mode {
                grid-template-columns: 1fr;
            }

            .coach-sections.all-mode #sectionNotifications {
                grid-column: auto;
                grid-row: auto;
            }

            .quick-nav {
                display: none !important;
            }

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

            .daily-kpi-grid {
                grid-template-columns: 1fr 1fr;
            }

            .coach-student-filters {
                grid-template-columns: 1fr;
            }

            .coach-overview-summary,
            .coach-overview-toolbar,
            .coach-compare-metrics,
            .coach-compare-progress {
                grid-template-columns: 1fr;
            }

            .coach-overview-grid {
                grid-template-columns: 1fr;
            }

            .coach-select-row {
                grid-template-columns: 1fr;
            }

            #sectionWeeklyTask.task-card {
                max-width: 100%;
            }

            #sectionWeeklyTask .task-grid {
                grid-template-columns: 1fr;
            }

            #sectionWeeklyTask .task-grid.task-grid--scope {
                grid-template-columns: 1fr;
            }

            #sectionWeeklyTask .coach-task-type-bubble {
                top: -10px;
                max-width: 180px;
            }

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

            .coach-notif-compose-grid {
                grid-template-columns: 1fr;
            }

            .exam-trend-kpis {
                grid-template-columns: 1fr 1fr;
            }

            .exam-subject-deltas {
                grid-template-columns: 1fr;
            }

            .exam-threshold-grid {
                grid-template-columns: 1fr;
            }

            .week-chart-layout {
                grid-template-columns: 1fr;
            }

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

            .week-bars {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }
        }

        @media (max-width:640px) {
            .coach-top {
                padding: 12px;
            }

            .coach-top-bar {
                align-items: stretch;
            }

            .coach-mobile-menu-btn {
                width: 100%;
            }

            .task-head h3 {
                font-size: 1.15rem;
            }

            .exam-card>summary {
                flex-direction: column;
                align-items: flex-start;
            }

            .exam-card-scoreboard {
                grid-template-columns: 1fr;
            }

            .exam-lesson-head {
                flex-direction: column;
            }

            .exam-lesson-net-panel {
                align-items: center;
            }

            .daily-mini-grid {
                grid-template-columns: 1fr;
            }

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

            .coach-side {
                width: min(92vw, 360px);
                padding: 14px 12px 22px;
            }

            .coach-top h2 {
                font-size: 1.05rem;
            }

            .coach-top p {
                font-size: .84rem;
                line-height: 1.45;
            }

            .coach-select-row {
                gap: 10px;
                margin-top: 10px;
            }

            .coach-select-row label {
                font-size: .82rem;
            }

            .coach-select-row select {
                min-height: 44px;
                padding: 0 12px;
                font-size: .95rem;
            }

            #sectionOverview {
                padding: 10px;
                border-radius: 16px;
            }

            .coach-overview-grid {
                gap: 10px;
            }

            .coach-compare-card {
                padding: 12px;
                border-radius: 14px;
            }

            .coach-compare-top {
                gap: 8px;
                flex-direction: column;
            }

            .coach-compare-top h4 {
                font-size: 1rem;
                line-height: 1.15;
            }

            .coach-compare-tags {
                gap: 5px;
            }

            .coach-compare-tags span,
            .coach-trend-chip,
            .coach-intervention-label,
            .coach-intervention-action,
            .coach-compare-extra-pill {
                font-size: .72rem;
            }

            .coach-compare-metrics {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            .coach-compare-metric {
                padding: 9px;
            }

            .coach-compare-metric span {
                font-size: .7rem;
                line-height: 1.2;
            }

            .coach-compare-metric strong {
                font-size: 1rem;
            }

            .coach-compare-note,
            .coach-intervention-card,
            .coach-compare-extra-body {
                padding-left: 10px;
                padding-right: 10px;
            }

            .coach-compare-note,
            .coach-intervention-reason,
            .coach-intervention-text {
                font-size: .82rem;
                line-height: 1.45;
            }

            .coach-compare-actions,
            .coach-overview-quick-form {
                display: grid;
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .coach-compare-card .filter-btn,
            .coach-compare-card .filter-btn.active,
            .coach-overview-quick-form .filter-btn {
                width: 100%;
                justify-content: center;
                min-height: 42px;
                padding: 0 14px;
            }

            .notif-list {
                gap: 10px;
            }

            .notif-item {
                padding: 12px;
                border-radius: 14px;
            }

            .notif-meta {
                gap: 6px;
                font-size: .76rem;
            }

            .notif-actions {
                display: grid;
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .notif-action-form,
            .notif-actions > * {
                width: 100%;
            }

            .notif-action-btn {
                width: 100%;
                justify-content: center;
                min-height: 42px;
            }

            .notif-read-pill {
                width: 100%;
                min-height: 42px;
                justify-content: center;
            }

            .coach-notif-compose,
            .coach-quick-message-panel,
            .coach-confirm-panel {
                width: min(100%, calc(100vw - 18px));
            }

            .coach-confirm-actions,
            .coach-quick-message-footer {
                display: grid;
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .coach-confirm-btn {
                width: 100%;
                min-width: 0;
            }
        }

        /* Coach theme refinement: same structure, different palette */
        .coach-shell {
            --v2-bg: #ede8de;
            --v2-sf: #fffdf9;
            --v2-sf2: #f7f2ea;
            --v2-bd: #d8d5ce;
            --v2-ac: #e88324;
            --v2-ac-soft: #fff0dd;
            --v2-alt: #5a7fb1;
            --v2-alt-soft: #edf3ff;
            --v2-tx: #1d2d3f;
            --v2-tx2: #647487;
            --v2-tx3: #8a98a7;
        }

        .coach-side-card {
            border: 1px solid rgba(170, 180, 194, .52);
            border-radius: 16px;
            background: linear-gradient(180deg, rgba(255, 253, 249, .98) 0%, rgba(248, 243, 235, .96) 100%);
            box-shadow: 0 12px 26px rgba(29, 45, 63, .06);
        }

        .side-menu-btn:not(.active):hover {
            color: var(--v2-tx);
            background: linear-gradient(180deg, #f4f7fc 0%, #eaf0f8 100%);
            border-color: #cfd9e7;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
        }

        .side-menu-btn.active {
            color: #fff;
            background: linear-gradient(135deg, #1f3d63 0%, #29547f 55%, #e88324 180%);
            border-color: rgba(31, 61, 99, .68);
            box-shadow: 0 10px 18px rgba(31, 61, 99, .18);
        }

        .coach-top {
            background:
                radial-gradient(circle at top right, rgba(232, 131, 36, .16), transparent 28%),
                linear-gradient(135deg, #fffdf9 0%, #f5efe7 100%);
            border: 1px solid rgba(185, 196, 208, .72);
            border-radius: 18px;
            color: var(--v2-tx);
            box-shadow: 0 18px 34px rgba(25, 40, 61, .08);
        }

        .coach-top h2,
        .coach-top strong,
        .coach-select-row label {
            color: var(--v2-tx);
        }

        .coach-top p {
            color: var(--v2-tx2);
        }

        .coach-select-row select {
            background: rgba(255, 255, 255, .94);
            color: var(--v2-tx);
            border: 1px solid rgba(176, 190, 205, .9);
            box-shadow: 0 10px 18px rgba(29, 45, 63, .08);
        }

        #sectionOverview {
            background: linear-gradient(180deg, #f5f0e8 0%, #efe7dc 100%);
            border: 1px solid #d7d2c8;
            border-radius: 20px;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
        }

        .coach-compare-card {
            border: 1px solid #cfd8e2;
            border-radius: 18px;
            background:
                radial-gradient(circle at top left, rgba(232, 131, 36, .12), transparent 28%),
                radial-gradient(circle at bottom right, rgba(90, 127, 177, .10), transparent 34%),
                linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
            box-shadow: 0 16px 28px rgba(31, 49, 72, .08);
        }

        .coach-compare-card::before {
            background: linear-gradient(135deg, rgba(232, 131, 36, .96) 0%, rgba(255, 188, 112, .96) 100%);
            box-shadow: 0 0 0 6px rgba(232, 131, 36, .10);
        }

        .coach-compare-card.is-selected {
            border-color: #9ab3ce;
            background:
                radial-gradient(circle at top left, rgba(232, 131, 36, .18), transparent 34%),
                radial-gradient(circle at bottom right, rgba(90, 127, 177, .14), transparent 34%),
                linear-gradient(180deg, #fffdf9 0%, #ffffff 100%);
            box-shadow: 0 22px 38px rgba(31, 49, 72, .12), 0 0 0 1px rgba(232, 131, 36, .18);
        }

        .coach-compare-card.is-selected::before {
            box-shadow: 0 0 0 6px rgba(232, 131, 36, .12);
        }

        .coach-compare-tags span {
            border-color: #d4dde8;
            background: linear-gradient(180deg, #f7f9fd 0%, #eef3fa 100%);
            color: #375476;
        }

        .coach-compare-tags span:first-child {
            background: linear-gradient(180deg, #fff5e6 0%, #ffead0 100%);
            border-color: #efbf86;
            color: #9a5b14;
        }

        .coach-compare-metric {
            border-color: #d8e0ea;
            background: linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(246, 249, 253, .96) 100%);
        }

        .coach-compare-note {
            border-color: #d6dde6;
            background: linear-gradient(180deg, #fffdfa 0%, #f8f4ee 100%);
        }

        .coach-compare-note em {
            color: #375476;
        }

        .coach-compare-card .filter-btn {
            background: linear-gradient(180deg, #f7f9fd 0%, #edf3fb 100%);
            border-color: #d4deed;
            color: #315178;
        }

        .coach-compare-card .filter-btn.active {
            background: linear-gradient(135deg, #fff0dc 0%, #ffdba9 100%);
            border-color: #eab06a;
            color: #935111;
        }

        @media (hover:hover) and (pointer:fine) {
            .coach-compare-card:hover {
                border-color: #b8c7d9;
                box-shadow: 0 22px 36px rgba(31, 49, 72, .12);
            }

            .coach-compare-card.is-selected:hover {
                box-shadow: 0 24px 40px rgba(31, 49, 72, .14), 0 0 0 1px rgba(232, 131, 36, .24);
            }
        }

        :root[data-theme="dark"] .coach-shell {
            --v2-bg: #0d1320;
            --v2-sf: #121a2a;
            --v2-sf2: #172133;
            --v2-bd: #2b3850;
            --v2-ac: #f08a24;
            --v2-ac-soft: rgba(240, 138, 36, .14);
            --v2-alt: #7fa1d4;
            --v2-alt-soft: rgba(127, 161, 212, .12);
            --v2-tx: #edf3fb;
            --v2-tx2: #afbdd2;
            --v2-tx3: #7c8ca4;
        }

        :root[data-theme="dark"] .coach-side {
            background: transparent;
            border: 0;
            padding: 0;
        }

        :root[data-theme="dark"] .coach-side-card {
            background: linear-gradient(180deg, rgba(18, 26, 42, .96) 0%, rgba(23, 33, 51, .98) 100%);
            border-color: #2f3c56;
            box-shadow: 0 16px 32px rgba(4, 10, 18, .34);
        }

        :root[data-theme="dark"] .side-menu-btn {
            color: #bfd0e4;
        }

        :root[data-theme="dark"] .side-menu-btn:hover {
            color: #eef3fb;
            background: rgba(255, 255, 255, .04);
            border-color: rgba(127, 161, 212, .18);
        }

        :root[data-theme="dark"] .side-menu-btn.active {
            background: linear-gradient(135deg, rgba(36, 56, 88, .96) 0%, rgba(240, 138, 36, .82) 180%);
            border-color: rgba(240, 138, 36, .38);
            color: #fffaf2;
            box-shadow: 0 14px 24px rgba(6, 12, 22, .38);
        }

        :root[data-theme="dark"] .coach-top {
            background:
                radial-gradient(circle at top right, rgba(240, 138, 36, .16), transparent 26%),
                linear-gradient(135deg, #182234 0%, #121a2a 100%);
            border-color: #2f3d57;
            color: #edf3fb;
            box-shadow: 0 18px 34px rgba(4, 10, 18, .34);
        }

        :root[data-theme="dark"] .coach-top h2,
        :root[data-theme="dark"] .coach-top strong,
        :root[data-theme="dark"] .coach-select-row label {
            color: #edf3fb;
        }

        :root[data-theme="dark"] .coach-top p {
            color: #afbdd2;
        }

        :root[data-theme="dark"] .coach-select-row select {
            background: rgba(15, 23, 36, .92);
            border-color: #374760;
            color: #edf3fb;
            box-shadow: none;
        }

        :root[data-theme="dark"] #sectionOverview {
            background: linear-gradient(180deg, #121a2a 0%, #0f1726 100%);
            border-color: #2a3750;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
        }

        :root[data-theme="dark"] .coach-compare-card {
            border-color: #33425f;
            background:
                radial-gradient(circle at top left, rgba(240, 138, 36, .13), transparent 30%),
                radial-gradient(circle at bottom right, rgba(127, 161, 212, .12), transparent 34%),
                linear-gradient(180deg, #121a2a 0%, #172133 100%);
            box-shadow: 0 16px 30px rgba(4, 10, 18, .30);
        }

        :root[data-theme="dark"] .coach-compare-card.is-selected {
            border-color: #516887;
            background:
                radial-gradient(circle at top left, rgba(240, 138, 36, .18), transparent 34%),
                radial-gradient(circle at bottom right, rgba(127, 161, 212, .14), transparent 34%),
                linear-gradient(180deg, #121a2a 0%, #182338 100%);
            box-shadow: 0 22px 38px rgba(4, 10, 18, .38), 0 0 0 1px rgba(240, 138, 36, .20);
        }

        :root[data-theme="dark"] .coach-compare-tags span {
            background: linear-gradient(180deg, #19253a 0%, #162133 100%);
            border-color: #385072;
            color: #dce7f8;
        }

        :root[data-theme="dark"] .coach-compare-tags span:first-child {
            background: linear-gradient(180deg, rgba(240, 138, 36, .18) 0%, rgba(240, 138, 36, .10) 100%);
            border-color: rgba(240, 138, 36, .34);
            color: #ffd7aa;
        }

        :root[data-theme="dark"] .coach-compare-metric,
        :root[data-theme="dark"] .coach-compare-note {
            background: linear-gradient(180deg, rgba(15, 23, 36, .92) 0%, rgba(21, 31, 48, .96) 100%);
            border-color: #31415e;
            box-shadow: none;
        }

        :root[data-theme="dark"] .coach-compare-note em {
            color: #9fbae5;
        }

        :root[data-theme="dark"] .coach-compare-card .filter-btn {
            background: linear-gradient(180deg, #182336 0%, #152031 100%);
            border-color: #385072;
            color: #dce7f8;
        }

        :root[data-theme="dark"] .coach-compare-card .filter-btn.active {
            background: linear-gradient(135deg, rgba(240, 138, 36, .26) 0%, rgba(240, 138, 36, .14) 100%);
            border-color: rgba(240, 138, 36, .38);
            color: #ffe1bb;
        }

        :root[data-theme="dark"] .coach-compare-extra {
            background: linear-gradient(180deg, rgba(15, 23, 36, .96) 0%, rgba(19, 30, 47, .98) 100%);
            border-color: #324562;
        }

        :root[data-theme="dark"] .coach-compare-extra-summary {
            color: #e8f0ff;
        }

        :root[data-theme="dark"] .coach-compare-extra-summary::after {
            color: #d0def6;
        }

        :root[data-theme="dark"] .coach-compare-extra-pill {
            background: #172338;
            border-color: #375172;
            color: #dce8ff;
        }

        :root[data-theme="dark"] .coach-compare-extra-pill.is-critical {
            background: rgba(138, 55, 55, .18);
            border-color: rgba(239, 192, 192, .46);
            color: #ffd7d7;
        }

        :root[data-theme="dark"] .coach-compare-extra-pill.is-attention {
            background: rgba(141, 90, 18, .18);
            border-color: rgba(239, 203, 151, .44);
            color: #ffe0ad;
        }

        :root[data-theme="dark"] .coach-compare-extra-pill.is-monitor {
            background: rgba(45, 92, 151, .18);
            border-color: rgba(191, 209, 244, .42);
            color: #d4e4ff;
        }

        :root[data-theme="dark"] .coach-compare-extra-pill.is-stable {
            background: rgba(43, 107, 71, .18);
            border-color: rgba(191, 220, 200, .42);
            color: #d5f1de;
        }

        :root[data-theme="dark"] .coach-trend-chip {
            background: #162338;
            border-color: #35506f;
            color: #dce8ff;
        }

        :root[data-theme="dark"] .coach-trend-chip.up {
            background: rgba(43, 107, 71, .20);
            border-color: rgba(191, 220, 200, .42);
            color: #d5f1de;
        }

        :root[data-theme="dark"] .coach-trend-chip.down {
            background: rgba(138, 55, 55, .20);
            border-color: rgba(239, 192, 192, .44);
            color: #ffd7d7;
        }

        :root[data-theme="dark"] .coach-trend-chip.flat {
            background: #162338;
            border-color: #35506f;
            color: #dce8ff;
        }

        :root[data-theme="dark"] .coach-intervention-card {
            background: linear-gradient(180deg, rgba(18, 28, 44, .96) 0%, rgba(22, 33, 52, .98) 100%);
            border-color: #37506f;
        }

        :root[data-theme="dark"] .coach-intervention-card.is-critical {
            background: linear-gradient(180deg, rgba(64, 24, 30, .94) 0%, rgba(54, 20, 26, .98) 100%);
            border-color: rgba(239, 192, 192, .42);
        }

        :root[data-theme="dark"] .coach-intervention-card.is-attention {
            background: linear-gradient(180deg, rgba(69, 43, 16, .94) 0%, rgba(57, 35, 12, .98) 100%);
            border-color: rgba(239, 203, 151, .42);
        }

        :root[data-theme="dark"] .coach-intervention-card.is-monitor {
            background: linear-gradient(180deg, rgba(23, 40, 66, .94) 0%, rgba(19, 34, 56, .98) 100%);
            border-color: rgba(191, 209, 244, .38);
        }

        :root[data-theme="dark"] .coach-intervention-card.is-stable {
            background: linear-gradient(180deg, rgba(25, 51, 40, .94) 0%, rgba(19, 41, 31, .98) 100%);
            border-color: rgba(191, 220, 200, .38);
        }

        :root[data-theme="dark"] .coach-intervention-label,
        :root[data-theme="dark"] .coach-intervention-action {
            background: rgba(255, 255, 255, .06);
            border-color: rgba(255, 255, 255, .12);
            color: #eef4ff;
        }

        :root[data-theme="dark"] .coach-intervention-reason {
            color: #f3f7ff;
        }

        :root[data-theme="dark"] .coach-intervention-text {
            color: #d7e2f5;
        }

        :root[data-theme="dark"] .coach-quick-action-btn {
            background: linear-gradient(135deg, rgba(240, 138, 36, .28) 0%, rgba(240, 138, 36, .18) 100%) !important;
            border-color: rgba(240, 138, 36, .44) !important;
            color: #ffe1bb !important;
        }

        :root[data-theme="dark"] .coach-parent-invite-target {
            color: #dbe8ff;
        }

        /* Coach card layout polish */
        .coach-compare-metric {
            display: grid;
            grid-template-rows: minmax(3.1em, auto) auto;
            align-content: start;
            min-height: 96px;
        }

        .coach-compare-progress {
            align-items: start;
        }

        .coach-compare-progress > div {
            display: grid;
            grid-template-rows: minmax(3.1em, auto) auto;
            align-content: start;
            min-height: 84px;
        }

        .coach-compare-metric span,
        .coach-compare-progress span {
            line-height: 1.25;
        }

        .coach-compare-metric strong,
        .coach-compare-progress strong {
            line-height: 1;
            font-variant-numeric: tabular-nums;
            font-feature-settings: "tnum" 1;
        }

        :root:not([data-theme="dark"]) .coach-top {
            background:
                radial-gradient(circle at top right, rgba(235, 125, 34, .16), transparent 24%),
                linear-gradient(126deg, #1b3a68 0%, #21477d 58%, #29558f 100%) !important;
            border-color: #315784 !important;
            color: #f8fbff !important;
        }

        :root:not([data-theme="dark"]) .coach-top h2,
        :root:not([data-theme="dark"]) .coach-top strong,
        :root:not([data-theme="dark"]) .coach-top p,
        :root:not([data-theme="dark"]) .coach-top label {
            color: inherit !important;
        }

        :root:not([data-theme="dark"]) .coach-top p,
        :root:not([data-theme="dark"]) .coach-top label {
            color: #d7e4f7 !important;
        }

        .coach-side-title {
            color: #6f7f92;
        }

        .coach-side-main {
            color: #1d2d3f;
        }

        .coach-side-sub {
            color: #53657a;
        }

        .side-menu-btn {
            font-weight: 700;
            color: #36516f;
        }

        .coach-compare-card {
            min-width: 0;
        }

        .coach-compare-top h4 {
            overflow-wrap: anywhere;
        }

        .coach-compare-metrics {
            grid-template-columns: repeat(4, minmax(72px, 1fr));
            align-items: stretch;
        }

        .coach-compare-progress {
            grid-template-columns: repeat(2, minmax(92px, 1fr));
            align-items: stretch;
        }

        .coach-compare-metric,
        .coach-compare-progress > div {
            min-width: 0;
        }

        .coach-compare-metric span,
        .coach-compare-progress span {
            color: #7b8ca0;
            font-size: .74rem;
            font-weight: 800;
            letter-spacing: .03em;
            overflow-wrap: normal;
            word-break: keep-all;
            hyphens: none;
            text-wrap: balance;
        }

        .coach-compare-metric strong,
        .coach-compare-progress strong {
            color: #122b4b;
            font-size: clamp(1.05rem, 1vw + .75rem, 1.5rem);
        }

        .coach-trend-chip,
        .coach-compare-note {
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        /* Final coach action palette */
        #sectionWeeklyTask.task-card {
            border-color: #d7dee8;
            box-shadow: 0 14px 28px rgba(31, 49, 72, .08);
        }

        #sectionWeeklyTask .task-head {
            border-bottom-color: #d9e1ec;
            background: linear-gradient(120deg, #f7f9fd, #eef3fb);
        }

        #sectionWeeklyTask input,
        #sectionWeeklyTask select,
        #sectionWeeklyTask textarea {
            border-color: #cdd8e5;
            background: #fff;
            color: #1d2d3f;
        }

        #sectionWeeklyTask button[type="submit"],
        #sectionWeeklyTask .task-submit-btn,
        .exam-threshold-btn,
        .notif-action-btn,
        .filter-btn.active {
            background: linear-gradient(135deg, #1f3d63 0%, #29547f 55%, #e88324 180%);
            border-color: rgba(31, 61, 99, .72);
            color: #fff;
            box-shadow: 0 10px 18px rgba(31, 61, 99, .16);
        }

        #sectionWeeklyTask .task-submit-btn:hover,
        #sectionWeeklyTask button[type="submit"]:hover,
        .exam-threshold-btn:hover,
        .notif-action-btn:hover,
        .filter-btn.active:hover {
            background: linear-gradient(135deg, #1b3354 0%, #254b74 55%, #d9781c 180%);
            border-color: rgba(31, 61, 99, .78);
            filter: none;
        }

        .exam-threshold-btn.secondary,
        .notif-action-btn.outline,
        .filter-btn {
            background: linear-gradient(180deg, #f7f9fd 0%, #edf3fb 100%);
            border-color: #d4deed;
            color: #315178;
        }

        .exam-threshold-status {
            color: #647487;
        }

        :root[data-theme="dark"] #sectionWeeklyTask.task-card {
            background: #121a2a;
            border-color: #2f3c56;
            box-shadow: 0 16px 30px rgba(4, 10, 18, .32);
        }

        :root[data-theme="dark"] #sectionWeeklyTask .task-head {
            background: linear-gradient(120deg, #182336, #141f31);
            border-bottom-color: #30415d;
        }

        :root[data-theme="dark"] #sectionWeeklyTask input,
        :root[data-theme="dark"] #sectionWeeklyTask select,
        :root[data-theme="dark"] #sectionWeeklyTask textarea {
            background: #141f31;
            border-color: #3b4a67;
            color: #edf3fb;
        }

        :root[data-theme="dark"] .exam-threshold-btn,
        :root[data-theme="dark"] .notif-action-btn,
        :root[data-theme="dark"] .filter-btn.active {
            background: linear-gradient(135deg, #213a5c, #f08a24);
            border-color: #f0a14c;
            color: #fffaf2;
        }

        :root[data-theme="dark"] .exam-threshold-btn.secondary,
        :root[data-theme="dark"] .notif-action-btn.outline,
        :root[data-theme="dark"] .filter-btn {
            background: linear-gradient(180deg, #182336 0%, #152031 100%);
            border-color: #385072;
            color: #dce7f8;
        }

        #sectionDailyQuestion .daily-kpi-box strong,
        #sectionDetailedAnalytics .exam-sum-box strong,
        #sectionDailyQuestion .daily-kpi-box .dyb-three-line {
            font-family: "DM Mono", "Consolas", "Courier New", monospace;
            font-variant-numeric: tabular-nums;
        }

        /* Coach exam history light theme contrast */
        .exam-month-group {
            border-color: #ccd7e4;
            background: linear-gradient(180deg, #f7f9fc 0%, #f2f6fb 100%);
            box-shadow: 0 10px 20px rgba(31, 49, 72, .05);
        }

        .exam-month-head {
            background: linear-gradient(180deg, #eef3fb 0%, #e7eef8 100%);
            border-bottom-color: #d4deeb;
            color: #46627f;
        }

        .exam-month-head strong {
            color: #143355;
        }

        .coach-side-tools-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            display: grid;
        }

        .coach-side-tools-grid .side-menu-btn {
            justify-content: flex-start;
        }

        .side-menu-btn-danger {
            color: #91463d;
        }

        body.route-portal-coach .coach-top-bar .coach-mobile-menu-btn {
            display: none !important;
        }

        @media (max-width: 1200px) {
            .coach-overview-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .coach-compare-actions {
                gap: 6px;
            }
        }

        @media (max-width: 980px) {
            .portal-mobile-help-link {
                display: flex;
            }

            #coachMobileMenu .coach-side-menu {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px;
            }

            #coachMobileMenu .coach-side-group {
                min-width: 0;
                grid-column: 1 / -1;
            }

            #coachMobileMenu .side-menu-btn {
                min-height: 72px;
                border-radius: 14px;
                padding: 14px 12px;
                flex-direction: column;
                align-items: flex-start;
                justify-content: center;
                gap: 8px;
                background: rgba(255,255,255,.04);
                border: 1px solid rgba(184, 203, 230, .16);
                color: #eef4ff;
            }

            #coachMobileMenu .side-menu-parent {
                width: 100%;
                min-height: 58px;
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
            }

            #coachMobileMenu .coach-side-submenu {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
                padding: 8px;
                border-left: 0;
                border-radius: 16px;
                background: rgba(9, 20, 36, .32);
                border: 1px solid rgba(184, 203, 230, .14);
            }

            #coachMobileMenu .coach-side-submenu .side-menu-btn {
                min-height: 62px;
                padding: 12px 10px;
                background: rgba(255,255,255,.04);
            }

            #coachMobileMenu .side-menu-btn.active {
                background: linear-gradient(135deg, #244d87, #17365e);
                border-color: rgba(255,255,255,.18);
            }

            #coachMobileMenu .side-ico {
                width: 18px;
                font-size: 15px;
            }

            #sectionDailyQuestion .daily-kpi-grid,
            #sectionDetailedAnalytics .exam-summary-grid {
                grid-template-columns: none !important;
                grid-auto-flow: column;
                grid-auto-columns: minmax(138px, 1fr);
                overflow-x: auto;
                overflow-y: hidden;
                padding-bottom: 6px;
                scroll-snap-type: x proximity;
                -webkit-overflow-scrolling: touch;
            }

            #sectionDailyQuestion .daily-kpi-grid > *,
            #sectionDetailedAnalytics .exam-summary-grid > * {
                scroll-snap-align: start;
            }

            #sectionDailyQuestion .daily-kpi-box,
            #sectionDetailedAnalytics .exam-sum-box {
                min-height: 118px;
                padding: 11px 12px;
            }

            #sectionDailyQuestion .daily-kpi-box span,
            #sectionDetailedAnalytics .exam-sum-box span {
                font-size: .7rem;
                line-height: 1.18;
            }

            #sectionDailyQuestion .daily-kpi-box strong,
            #sectionDetailedAnalytics .exam-sum-box strong {
                font-size: 1.38rem;
                margin-top: 6px;
            }

            #sectionDetailedAnalytics .exam-sum-box .dyb-three-line,
            #sectionDailyQuestion .daily-kpi-box .dyb-three-line,
            #sectionDailyQuestion .daily-kpi-box.dyb-box .dyb-three-line {
                font-size: 1.2rem !important;
            }

            .week-chart {
                padding: 10px;
            }

            .week-chart-layout {
                gap: 10px;
            }

            .week-bars {
                grid-template-columns: repeat(7, minmax(72px, 1fr)) !important;
                overflow-x: auto;
                overflow-y: hidden;
                align-items: end;
                min-height: 180px;
                padding-bottom: 6px;
                scroll-snap-type: x proximity;
                -webkit-overflow-scrolling: touch;
            }

            .week-bar {
                min-width: 72px;
                scroll-snap-align: start;
            }

            .week-bar-track {
                height: 132px;
            }

            .week-bar-label {
                font-size: .74rem;
                text-align: center;
            }

            .week-bar-value {
                font-size: .8rem;
            }
        }

        @media (max-width: 640px) {
            #sectionDetailedAnalytics .analysis-tabbar {
                grid-template-columns: 1fr;
            }

            #sectionDetailedAnalytics .analysis-tab {
                width: 100%;
            }

            #sectionDetailedAnalytics .daily-kpi-grid {
                display: grid;
                grid-auto-flow: column;
                grid-auto-columns: minmax(132px, 58vw);
                gap: 8px;
                overflow-x: auto;
                padding-bottom: 6px;
                -webkit-overflow-scrolling: touch;
            }

            .coach-overview-grid {
                grid-template-columns: 1fr !important;
            }

            #coachMobileMenu .coach-side-menu {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            #sectionOverview .coach-compare-actions,
            #sectionOverview .coach-overview-quick-form {
                display: flex !important;
                flex-wrap: wrap;
                align-items: stretch;
                gap: 8px;
            }

            #sectionOverview .coach-overview-quick-form {
                flex: 1 1 auto;
            }

            #sectionOverview .coach-overview-quick-form .coach-quick-action-status {
                flex-basis: 100%;
            }

            #sectionOverview .coach-compare-card .filter-btn,
            #sectionOverview .coach-compare-card .filter-btn.active,
            #sectionOverview .coach-overview-quick-form .filter-btn {
                width: auto !important;
                min-width: 0;
                min-height: 38px;
                padding: 0 11px;
                font-size: .8rem;
                justify-content: center;
                flex: 1 1 0;
            }

            #sectionOverview .coach-compare-actions > a,
            #sectionOverview .coach-compare-actions > .coach-overview-quick-form {
                flex: 1 1 0;
            }

            #sectionDailyQuestion .daily-kpi-grid,
            #sectionDetailedAnalytics .daily-kpi-grid,
            #sectionDetailedAnalytics .exam-summary-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                grid-auto-columns: unset;
                grid-auto-flow: row;
                overflow: visible;
                padding-bottom: 0;
            }

            #sectionDailyQuestion .daily-kpi-box,
            #sectionDetailedAnalytics .daily-kpi-box,
            #sectionDetailedAnalytics .exam-sum-box {
                min-height: 104px;
                padding: 10px;
                min-width: 0;
            }

            #sectionDailyQuestion .daily-kpi-box strong,
            #sectionDetailedAnalytics .daily-kpi-box strong,
            #sectionDetailedAnalytics .exam-sum-box strong {
                font-size: 1.2rem;
            }

            .week-bars {
                grid-template-columns: repeat(7, minmax(64px, 1fr)) !important;
                min-height: 154px;
            }

            .week-bar {
                min-width: 64px;
                gap: 4px;
            }

            .week-bar-track {
                height: 112px;
                border-radius: 8px;
            }

            .day-detail {
                min-height: 0;
            }

            .analysis-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
                padding: 9px 10px;
            }

            .analysis-row strong,
            .analysis-row .analysis-week-label {
                width: 100%;
                text-align: left;
                line-height: 1.18;
                overflow-wrap: anywhere;
            }

            .analysis-tabbar {
                display: grid;
                grid-template-columns: 1fr;
                width: 100%;
            }

            .analysis-tab {
                justify-content: center;
                text-align: center;
            }

            #sectionDetailedAnalytics .weekly-summary-card .analysis-row {
                display: flex;
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
            }

            #sectionDetailedAnalytics .analysis-row-week-nav {
                gap: 8px;
            }

            #sectionDetailedAnalytics .analysis-week-nav {
                width: 100%;
                justify-content: space-between;
                margin-left: 0;
            }

            #sectionDetailedAnalytics .weekly-summary-card .analysis-row span,
            #sectionDetailedAnalytics .weekly-summary-card .analysis-row strong,
            #sectionDetailedAnalytics .analysis-week-label {
                width: 100%;
                text-align: left;
                word-break: break-word;
                overflow-wrap: anywhere;
            }
        }

        @media (max-width: 820px) {
            #sectionDetailedAnalytics .daily-kpi-grid {
                display: grid;
                grid-auto-flow: column;
                grid-auto-columns: minmax(128px, 34vw);
                gap: 8px;
                overflow-x: auto;
                padding-bottom: 6px;
                -webkit-overflow-scrolling: touch;
            }

            .coach-overview-grid {
                grid-template-columns: 1fr !important;
            }

            .coach-compare-card {
                max-width: 100%;
            }

            .analysis-tabbar {
                display: grid;
                grid-template-columns: repeat(3, minmax(120px, 1fr));
                gap: 8px;
                overflow-x: auto;
                padding-bottom: 4px;
                -webkit-overflow-scrolling: touch;
            }

            .analysis-tab {
                min-height: 44px;
                font-size: .9rem;
                white-space: nowrap;
            }

            #sectionDetailedAnalytics .weekly-summary-card .analysis-row {
                display: grid;
                grid-template-columns: minmax(0, 116px) minmax(0, 1fr);
                align-items: start;
                gap: 8px;
            }

            #sectionDetailedAnalytics .weekly-summary-card .analysis-row span {
                font-size: .92rem;
                line-height: 1.25;
            }

            #sectionDetailedAnalytics .weekly-summary-card .analysis-row strong,
            #sectionDetailedAnalytics .analysis-week-label {
                font-size: 1rem;
                line-height: 1.24;
                overflow-wrap: anywhere;
                word-break: break-word;
            }

            #sectionDetailedAnalytics .analysis-week-label {
                text-align: center;
            }

            #sectionDailyQuestion .daily-kpi-grid,
            #sectionDetailedAnalytics .daily-kpi-grid,
            #sectionDetailedAnalytics .exam-summary-grid {
                grid-auto-columns: minmax(102px, 34vw);
                gap: 8px;
                grid-auto-flow: column;
                overflow-x: auto;
                padding-bottom: 6px;
                -webkit-overflow-scrolling: touch;
            }

            #sectionDailyQuestion .daily-kpi-box,
            #sectionDetailedAnalytics .daily-kpi-box,
            #sectionDetailedAnalytics .exam-sum-box {
                min-height: 92px;
                padding: 9px 10px;
            }

            #sectionDailyQuestion .daily-kpi-box span,
            #sectionDetailedAnalytics .daily-kpi-box span,
            #sectionDetailedAnalytics .exam-sum-box span {
                font-size: .68rem;
                line-height: 1.15;
            }

            #sectionDailyQuestion .daily-kpi-box strong,
            #sectionDetailedAnalytics .daily-kpi-box strong,
            #sectionDetailedAnalytics .exam-sum-box strong {
                font-size: 1.05rem;
                margin-top: 4px;
            }

            #sectionDetailedAnalytics .exam-sum-box .dyb-three-line,
            #sectionDailyQuestion .daily-kpi-box .dyb-three-line,
            #sectionDetailedAnalytics .daily-kpi-box .dyb-three-line,
            #sectionDailyQuestion .daily-kpi-box.dyb-box .dyb-three-line {
                font-size: 1rem !important;
            }

            .week-chart-layout {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .day-detail {
                min-width: 0;
            }
        }

        @media (max-width: 480px) {
            #coachMobileMenu .coach-side-menu {
                grid-template-columns: 1fr !important;
            }

            #coachMobileMenu .side-menu-btn {
                min-height: 58px;
                flex-direction: row;
                align-items: center;
                justify-content: flex-start;
                padding: 12px 14px;
            }

            #sectionOverview .coach-compare-actions {
                display: grid !important;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: 8px;
            }

            #sectionOverview .coach-overview-quick-form {
                display: contents !important;
            }

            #sectionOverview .coach-compare-actions > a,
            #sectionOverview .coach-overview-quick-form .filter-btn,
            #sectionOverview .coach-compare-card .filter-btn,
            #sectionOverview .coach-compare-card .filter-btn.active {
                width: 100% !important;
                min-width: 0;
                min-height: 38px;
                font-size: .76rem;
                text-align: center;
            }

            #sectionDetailedAnalytics .weekly-summary-card .analysis-row {
                grid-template-columns: 1fr !important;
                gap: 4px;
            }

            #sectionDetailedAnalytics .weekly-summary-card .analysis-row strong,
            #sectionDetailedAnalytics .analysis-week-label {
                font-size: .96rem;
            }

            #sectionDailyQuestion .daily-kpi-box,
            #sectionDetailedAnalytics .daily-kpi-box,
            #sectionDetailedAnalytics .exam-sum-box {
                min-height: 86px;
                padding: 8px 9px;
            }

            #sectionDailyQuestion .daily-kpi-box strong,
            #sectionDetailedAnalytics .daily-kpi-box strong,
            #sectionDetailedAnalytics .exam-sum-box strong {
                font-size: .96rem;
            }

            #sectionDetailedAnalytics .exam-sum-box .dyb-three-line,
            #sectionDailyQuestion .daily-kpi-box .dyb-three-line,
            #sectionDetailedAnalytics .daily-kpi-box .dyb-three-line,
            #sectionDailyQuestion .daily-kpi-box.dyb-box .dyb-three-line {
                font-size: .92rem !important;
            }
        }

        /* Final mobile/tablet overrides for detail analytics */
        @media (max-width: 768px) {
            #sectionDetailedAnalytics .weekly-summary-card .analysis-row,
            #sectionDetailedAnalytics .analysis-card.detail-monthly-block .analysis-row {
                display: grid !important;
                grid-template-columns: 1fr !important;
                gap: 4px;
                padding: 10px 12px;
            }

            #sectionDetailedAnalytics .weekly-summary-card .analysis-row span,
            #sectionDetailedAnalytics .analysis-card.detail-monthly-block .analysis-row span {
                font-size: .96rem;
                line-height: 1.2;
            }

            #sectionDetailedAnalytics .weekly-summary-card .analysis-row strong,
            #sectionDetailedAnalytics .analysis-card.detail-monthly-block .analysis-row strong,
            #sectionDetailedAnalytics .analysis-week-label {
                width: 100%;
                font-size: 1rem;
                line-height: 1.2;
                overflow-wrap: anywhere;
                word-break: break-word;
                text-align: left;
            }

            #sectionDailyQuestion .daily-kpi-grid,
            #sectionDetailedAnalytics .daily-kpi-grid,
            #sectionDetailedAnalytics .exam-summary-grid {
                display: grid !important;
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                grid-auto-flow: row !important;
                grid-auto-columns: unset !important;
                gap: 8px;
                overflow: visible !important;
                padding-bottom: 0;
            }

            #sectionDailyQuestion .daily-kpi-box,
            #sectionDetailedAnalytics .daily-kpi-box,
            #sectionDetailedAnalytics .exam-sum-box {
                min-width: 0;
                min-height: 88px;
                padding: 9px 10px;
            }

            #sectionDailyQuestion .daily-kpi-box span,
            #sectionDetailedAnalytics .daily-kpi-box span,
            #sectionDetailedAnalytics .exam-sum-box span {
                font-size: .7rem;
                line-height: 1.15;
                letter-spacing: .3px;
            }

            #sectionDailyQuestion .daily-kpi-box strong,
            #sectionDetailedAnalytics .daily-kpi-box strong,
            #sectionDetailedAnalytics .exam-sum-box strong {
                font-size: 1rem;
                margin-top: 4px;
                line-height: 1.05;
            }

            #sectionDetailedAnalytics .exam-sum-box .dyb-three-line,
            #sectionDailyQuestion .daily-kpi-box .dyb-three-line,
            #sectionDetailedAnalytics .daily-kpi-box .dyb-three-line,
            #sectionDailyQuestion .daily-kpi-box.dyb-box .dyb-three-line {
                font-size: .9rem !important;
                white-space: normal;
                display: block;
                line-height: 1.05;
            }
        }

        @media (max-width: 480px) {
            #sectionDailyQuestion .daily-kpi-grid,
            #sectionDetailedAnalytics .daily-kpi-grid,
            #sectionDetailedAnalytics .exam-summary-grid {
                grid-template-columns: 1fr !important;
            }

            #sectionDailyQuestion .daily-kpi-box,
            #sectionDetailedAnalytics .daily-kpi-box,
            #sectionDetailedAnalytics .exam-sum-box {
                min-height: 82px;
                padding: 8px 9px;
            }

            #sectionDailyQuestion .daily-kpi-box strong,
            #sectionDetailedAnalytics .daily-kpi-box strong,
            #sectionDetailedAnalytics .exam-sum-box strong {
                font-size: .94rem;
            }

            #sectionDetailedAnalytics .daily-detail-table-wrap,
            #sectionDetailedAnalytics .analysis-card .table-wrap {
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
                padding-bottom: 6px;
            }

            #sectionDetailedAnalytics .analysis-card .exam-table {
                min-width: 760px;
                table-layout: auto;
            }

            #sectionDetailedAnalytics .analysis-card .exam-table th,
            #sectionDetailedAnalytics .analysis-card .exam-table td {
                padding: 8px 4px;
                font-size: .8rem;
                white-space: nowrap;
            }

            #sectionDetailedAnalytics .analysis-card .exam-table th:first-child,
            #sectionDetailedAnalytics .analysis-card .exam-table td:first-child {
                width: auto;
            }

            #sectionDetailedAnalytics .analysis-card .exam-table th:nth-child(2),
            #sectionDetailedAnalytics .analysis-card .exam-table td:nth-child(2) {
                width: auto;
            }

            #sectionDetailedAnalytics .daily-detail-table th:first-child,
            #sectionDetailedAnalytics .daily-detail-table td:first-child {
                display: table-cell;
            }

            #sectionDetailedAnalytics .daily-detail-table th:nth-child(2),
            #sectionDetailedAnalytics .daily-detail-table td:nth-child(2) {
                width: 92px;
                padding-right: 2px;
            }

            #sectionDetailedAnalytics .daily-detail-table th:nth-child(3),
            #sectionDetailedAnalytics .daily-detail-table td:nth-child(3) {
                min-width: 112px;
                padding-left: 2px;
                white-space: normal;
            }

            #sectionDetailedAnalytics .daily-detail-table,
            #sectionDailyQuestion .daily-detail-table {
                min-width: 760px;
            }

            #sectionDetailedAnalytics .daily-detail-table-wrap,
            #sectionDailyQuestion .daily-detail-table-wrap {
                padding-bottom: 6px;
            }

            #sectionDetailedAnalytics .daily-detail-table-wrap + h4 {
                margin-top: 18px !important;
            }
        }

        /* Final mobile/tablet overrides for exam analytics */
        @media (max-width: 820px) {
            .coach-notif-compose-head {
                flex-direction: column;
                align-items: stretch;
            }

            .coach-notif-compose-copy {
                min-width: 0;
            }

            .coach-notif-compose-head p {
                max-width: none;
            }

            .coach-notif-target {
                align-self: flex-start;
                white-space: normal;
                max-width: 100%;
            }

            .detail-daily-summary-card {
                display: none;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-threshold-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 10px;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-threshold-grid label {
                font-size: .78rem;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-threshold-grid input {
                padding: 8px 10px;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table {
                table-layout: fixed;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table th,
            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table td {
                padding: 8px 8px;
                font-size: .84rem;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table th:first-child,
            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table td:first-child {
                width: 31%;
                word-break: break-word;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table th:nth-child(2),
            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table td:nth-child(2) {
                width: 26%;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table th:nth-child(3),
            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table td:nth-child(3) {
                width: 21%;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table th:last-child,
            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table td:last-child {
                width: 22%;
                text-align: right;
                white-space: nowrap;
            }
        }

        @media (max-width: 640px) {
            .daily-log-accordion summary::after {
                right: 14px;
            }

            .daily-log-item-list {
                grid-template-columns: 1fr;
            }

            .daily-log-item-top {
                grid-template-columns: minmax(0, 1fr) auto;
                gap: 8px;
            }

            .daily-log-subject-chip {
                font-size: .74rem;
            }

            .daily-log-item-stats-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-row-mini-detail {
                gap: 10px;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-mini-lesson-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-mini-lesson-item {
                min-width: 0;
                padding: 8px 9px;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-mini-lesson-item strong {
                font-size: .84rem;
                line-height: 1.2;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-mini-lesson-item span {
                font-size: .74rem;
                line-height: 1.35;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-lesson-list {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-lesson-item {
                min-width: 0;
                padding: 8px 9px;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-lesson-item strong {
                font-size: .84rem;
                line-height: 1.2;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-lesson-item span,
            #sectionDetailedAnalytics .detail-exams-block .exam-lesson-item .dyb-line span {
                font-size: .74rem;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table th,
            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table td {
                padding: 8px 4px;
                font-size: .79rem;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table th:first-child,
            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table td:first-child {
                width: 38%;
                word-break: break-word;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table th:nth-child(2),
            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table td:nth-child(2) {
                width: 20%;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table th:nth-child(3),
            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table td:nth-child(3) {
                width: 18%;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table th:last-child,
            #sectionDetailedAnalytics .detail-exams-block .exam-trend-card .exam-table td:last-child {
                width: 24%;
                text-align: right;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-threshold-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 10px;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-threshold-grid label {
                min-width: 0;
                font-size: .76rem;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-threshold-grid input {
                padding: 8px 10px;
            }
        }

        @media (max-width: 480px) {
            #sectionDetailedAnalytics .detail-exams-block .exam-threshold-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 8px;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-threshold-grid label {
                font-size: .72rem;
                gap: 3px;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-threshold-grid input {
                padding: 7px 9px;
                font-size: .95rem;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-lesson-list {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-mini-lesson-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-lesson-item strong {
                font-size: .8rem;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-lesson-item span,
            #sectionDetailedAnalytics .detail-exams-block .exam-lesson-item .dyb-line span {
                font-size: .7rem;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-mini-lesson-item strong {
                font-size: .78rem;
            }

            #sectionDetailedAnalytics .detail-exams-block .exam-mini-lesson-item span {
                font-size: .7rem;
            }
        }

.coach-account-card {
    display: grid;
    gap: 16px;
}

.coach-bulk-picker {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #d7e6dd;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfefd 0%, #f3faf6 100%);
    box-shadow: 0 10px 24px rgba(26, 63, 45, 0.05);
}

.coach-bulk-picker-label {
    display: block;
    color: #214a38;
    font-size: .8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.coach-bulk-picker-details {
    display: grid;
    gap: 0;
}

.coach-bulk-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 0;
    list-style: none;
}

.coach-bulk-picker-head::-webkit-details-marker {
    display: none;
}

.coach-bulk-picker--collapsible .coach-bulk-picker-head {
    align-items: center;
    cursor: pointer;
}

.coach-bulk-picker--collapsible .coach-bulk-picker-label {
    flex: 1 1 auto;
}

.coach-bulk-picker--collapsible .coach-bulk-picker-head::after {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d3e6da;
    border-radius: 999px;
    background: #f8fcfa;
    color: #174833;
    font-size: 1rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.coach-bulk-picker--collapsible .coach-bulk-picker-details[open] > .coach-bulk-picker-head::after {
    content: "-";
}

.coach-bulk-picker-details[open] > .coach-bulk-picker-head {
    margin-bottom: 10px;
}

.coach-bulk-picker-body {
    display: grid;
    gap: 0;
}

.coach-bulk-selection-count {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eaf5ef;
    border: 1px solid #d3e6da;
    color: #214a38;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.coach-bulk-mode-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.coach-bulk-config-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
    gap: 10px;
}

.coach-bulk-picker--no-filters .coach-bulk-config-grid {
    grid-template-columns: minmax(0, 1fr);
}

.coach-bulk-config-box {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #c8ddd1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
}

.coach-bulk-config-title {
    display: block;
    margin-bottom: 8px;
    color: #214a38;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.coach-bulk-filter-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.coach-bulk-filter-hint {
    color: #688275;
    font-size: .72rem;
    line-height: 1.25;
    text-align: right;
}

.coach-bulk-filter-select-wrap {
    display: block;
}

.coach-bulk-filter-select-wrap select {
    width: 100%;
    min-height: 42px;
    margin: 0;
    border: 1px solid #cfe0d5;
    border-radius: 12px;
    background: #fff;
    color: #214a38;
    font-size: .88rem;
    font-weight: 700;
    box-sizing: border-box;
}

.coach-bulk-summary {
    color: #456458;
    font-size: .82rem;
    line-height: 1.3;
    font-weight: 600;
}

.coach-bulk-info-strip {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    align-items: center;
    gap: 8px 12px;
    margin-top: 8px;
    padding: 9px 12px;
    border: 1px solid #c8ddd1;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 251, 247, 0.92));
}

.coach-bulk-target-label {
    color: #214a38;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.coach-bulk-info-strip strong {
    color: #214a38;
    font-size: .9rem;
    line-height: 1.25;
}

.coach-bulk-target-meta {
    color: #567065;
    font-size: .78rem;
    white-space: nowrap;
}

.coach-bulk-info-strip .coach-bulk-summary {
    text-align: right;
}

.coach-bulk-mode-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 14px 0 12px;
    border: 1px solid #cfdfd5;
    border-radius: 14px;
    background: #fff;
    color: #214a38;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}

.coach-bulk-mode-option:hover {
    border-color: #8ab49e;
    box-shadow: 0 8px 18px rgba(28, 82, 57, 0.08);
    transform: translateY(-1px);
}

.coach-bulk-mode-option input,
.coach-bulk-student-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    left: -9999px;
    top: auto;
}

.coach-bulk-mode-mark {
    width: 20px;
    height: 20px;
    border: 1.5px solid #9eb6a8;
    border-radius: 999px;
    background: #fff;
    box-shadow: inset 0 0 0 4px #fff;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
    flex: 0 0 auto;
}

.coach-bulk-mode-text {
    display: block;
    line-height: 1.2;
    white-space: normal;
}

.coach-bulk-mode-option:has(input:checked) {
    border-color: #0f6bba;
    background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
    color: #123d6d;
    box-shadow: 0 10px 20px rgba(15, 107, 186, 0.12);
}

.coach-bulk-mode-option:has(input:checked) .coach-bulk-mode-mark {
    border-color: #0f6bba;
    background: #0f6bba;
    box-shadow: inset 0 0 0 4px #fff;
}

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

.coach-bulk-student-list-wrap {
    margin-top: 12px;
    max-height: 226px;
    overflow: auto;
    padding-right: 4px;
    overflow-x: hidden;
}

.coach-bulk-student-list-wrap::-webkit-scrollbar {
    width: 8px;
}

.coach-bulk-student-list-wrap::-webkit-scrollbar-thumb {
    background: #c7dacf;
    border-radius: 999px;
}

.coach-bulk-student-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 10px 14px;
    border: 1px solid #d7e5dc;
    border-radius: 14px;
    background: #fff;
    color: #214a38;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease, transform .18s ease;
}

.coach-bulk-student-item:hover {
    border-color: #8ab49e;
    box-shadow: 0 8px 18px rgba(28, 82, 57, 0.08);
    transform: translateY(-1px);
}

.coach-bulk-student-mark {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 1.5px solid #9eb6a8;
    border-radius: 5px;
    background: #fff;
    position: relative;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.coach-bulk-student-mark::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 3px;
    background: transparent;
    transition: background-color .18s ease;
}

.coach-bulk-student-text {
    display: block;
    line-height: 1.3;
    white-space: normal;
}

.coach-bulk-student-item:has(input:checked) {
    border-color: #0f6bba;
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
    color: #123d6d;
    box-shadow: 0 10px 20px rgba(15, 107, 186, 0.1);
}

.coach-bulk-student-item:has(input:checked) .coach-bulk-student-mark {
    border-color: #0f6bba;
    background: #fff;
}

.coach-bulk-student-item:has(input:checked) .coach-bulk-student-mark::after {
    background: #0f6bba;
}

.coach-bulk-picker[data-bulk-mode="all"] .coach-bulk-student-item,
.coach-bulk-picker[data-bulk-mode="selected"] .coach-bulk-student-item {
    opacity: .92;
}

[data-bulk-single-student-field][hidden] {
    display: none !important;
}

.coach-bulk-selected-student-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 64px;
    padding: 12px 14px;
    border: 1px solid #d7e6dd;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfefd 0%, #f3faf6 100%);
}

.coach-bulk-selected-student-card strong {
    color: #214a38;
    font-size: 1rem;
    line-height: 1.2;
}

.coach-bulk-selected-student-card span {
    color: #567065;
    font-size: .84rem;
}

.coach-bulk-selected-student-label {
    color: #214a38 !important;
    font-size: .74rem !important;
    font-weight: 800;
    letter-spacing: .6px;
    text-transform: uppercase;
}

.coach-bulk-picker[data-bulk-mode="selected"] .coach-bulk-student-list-wrap,
.coach-bulk-picker[data-bulk-mode="selected"] .helper-note,
.coach-bulk-picker[data-bulk-mode="all"] .coach-bulk-student-list-wrap,
.coach-bulk-picker[data-bulk-mode="all"] .helper-note {
    display: none;
}

@media (max-width: 768px) {
    .coach-bulk-picker {
        padding: 12px;
        border-radius: 14px;
    }

    .coach-bulk-config-grid {
        grid-template-columns: 1fr;
    }

    .coach-bulk-picker-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .coach-bulk-picker--collapsible .coach-bulk-picker-head {
        align-items: center;
        flex-direction: row;
    }

    .coach-bulk-mode-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .coach-bulk-filter-head {
        flex-direction: column;
        gap: 6px;
    }

    .coach-bulk-filter-hint {
        text-align: left;
    }

    .coach-bulk-summary {
        font-size: .88rem;
    }

    .coach-bulk-info-strip {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    .coach-bulk-info-strip strong {
        font-size: .95rem;
    }

    .coach-bulk-target-meta {
        white-space: normal;
    }

    .coach-bulk-info-strip .coach-bulk-summary {
        text-align: left;
        margin-top: 2px;
    }

    .coach-bulk-mode-option {
        min-height: 46px;
        padding: 0 14px 0 12px;
        border-radius: 12px;
        font-size: .88rem;
    }

    .coach-bulk-student-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .coach-bulk-student-list-wrap {
        max-height: 240px;
    }

    .coach-bulk-student-item {
        min-height: 50px;
        padding: 10px 12px;
        font-size: .85rem;
    }

    .coach-bulk-filter-select-wrap select {
        min-height: 44px;
        font-size: .85rem;
    }
}

@media (max-width: 560px) {
    .coach-bulk-mode-row {
        grid-template-columns: 1fr;
    }
}

.coach-account-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.coach-account-head h3 {
    margin: 0;
}

.coach-account-head p {
    margin: 6px 0 0;
    color: #5b6f66;
}

.coach-account-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: .84rem;
    font-weight: 800;
    white-space: nowrap;
}

.coach-account-status--trial {
    color: #8a4c0f;
    background: #fff2df;
    border-color: #efc48d;
}

.coach-account-status--active {
    color: #15623e;
    background: #e3f6ea;
    border-color: #b6dec3;
}

.coach-account-status--expired {
    color: #8a2d2d;
    background: #fde8e8;
    border-color: #e7b0b0;
}

.coach-account-status--suspended {
    color: #4c3c87;
    background: #ede8ff;
    border-color: #c9bdf5;
}

.coach-account-alert {
    border: 1px solid transparent;
    border-left-width: 5px;
    border-radius: 16px;
    padding: 14px 16px;
    display: grid;
    gap: 6px;
}

.coach-account-alert strong {
    font-size: .96rem;
}

.coach-account-alert p {
    margin: 0;
    line-height: 1.5;
}

.coach-account-alert--warning {
    color: #7a4a15;
    background: #fff4e5;
    border-color: #f0c58b;
}

.coach-account-alert--critical,
.coach-account-alert--expired {
    color: #842e2e;
    background: #fdeaea;
    border-color: #e2aaaa;
}

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

.coach-account-panel {
    border: 1px solid #d9e8df;
    border-radius: 18px;
    background: #fbfefc;
    padding: 16px;
    display: grid;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.coach-account-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #2f7c5a 0%, #6aa6b8 55%, #f0b35b 100%);
    opacity: .85;
    pointer-events: none;
}

.coach-account-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef6f1;
    color: #45665a;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.coach-account-kv {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #deebe4;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcf9 100%);
    min-width: 0;
}

.coach-account-facts {
    display: grid;
    gap: 12px;
}

.coach-account-facts--account,
.coach-account-facts--membership {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.coach-account-current-plan {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid #f0cf9b;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #f7fcf8 100%);
    box-shadow: 0 10px 24px rgba(34, 72, 54, 0.08);
}

.coach-account-password-form,
.coach-account-password-head {
    display: grid;
    gap: 12px;
}

.coach-account-password-head strong {
    color: #173a2c;
    font-size: 1rem;
}

.coach-account-password-head p {
    margin: 0;
    color: #60786d;
    line-height: 1.45;
}

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

.coach-account-password-grid label {
    display: grid;
    gap: 6px;
    color: #365748;
    font-weight: 800;
}

.coach-account-password-grid input {
    min-height: 42px;
    border: 1px solid #d4e3db;
    border-radius: 14px;
    background: #fff;
    color: #173a2c;
    padding: 0 12px;
}

.coach-account-password-actions {
    display: flex;
    justify-content: flex-end;
}

.coach-account-field-error {
    color: #b13c3c;
    font-weight: 800;
}

.coach-account-current-plan-copy {
    display: grid;
    gap: 4px;
}

.coach-account-current-plan-label {
    color: #9a5a17;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.coach-account-current-plan-copy strong {
    color: #173a2c;
    font-size: 1.2rem;
}

.coach-account-current-plan-copy small {
    color: #5f7369;
    font-size: .88rem;
    font-weight: 600;
}

.coach-account-current-plan-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.coach-account-current-plan-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    border: 1px solid #d9e8df;
    background: rgba(255, 255, 255, 0.92);
    color: #244c3a;
    font-size: .82rem;
    font-weight: 800;
}

.coach-account-kv span,
.coach-account-note span {
    color: #6b7b75;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.coach-account-kv strong {
    color: #173a2c;
    font-size: 1.08rem;
    line-height: 1.28;
}

.coach-account-note {
    padding-top: 10px;
    border-top: 1px solid #e2ece6;
    display: grid;
    gap: 6px;
}

.coach-account-note p {
    margin: 0;
    color: #224537;
}

.coach-account-renewal-form {
    margin-top: 14px;
    display: grid;
    gap: 8px;
    align-items: start;
}

.coach-account-renewal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.coach-account-renewal-actions form {
    margin: 0;
}

.coach-account-plan-list {
    display: grid;
    gap: 10px;
}

.coach-account-accordion {
    border: 1px solid #d9e8df;
    border-radius: 12px;
    background: #fbfefc;
    overflow: hidden;
    position: relative;
}

.coach-account-accordion::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(26,122,86,.92) 0%, rgba(242,155,45,.72) 62%, rgba(255,215,163,.18) 100%);
    pointer-events: none;
}

.coach-account-accordion + .coach-account-accordion {
    margin-top: 10px;
}

.coach-account-accordion-summary,
.coach-account-plan-summary {
    list-style: none;
    cursor: pointer;
}

.coach-account-accordion-summary::-webkit-details-marker,
.coach-account-plan-summary::-webkit-details-marker {
    display: none;
}

.coach-account-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
}

.coach-account-accordion-summary::after,
.coach-account-plan-summary::after {
    content: '+';
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid #d8e7de;
    background: #fff;
    color: #2b5946;
    font-size: 1rem;
    font-weight: 800;
}

.coach-account-accordion[open] > .coach-account-accordion-summary::after,
.coach-account-plan-card[open] > .coach-account-plan-summary::after {
    content: '-';
}

.coach-account-accordion-note {
    color: #688077;
    font-size: .8rem;
    font-weight: 700;
    text-align: right;
}

.coach-account-accordion-body {
    border-top: 1px solid #e3eee7;
    padding: 14px 16px;
}

.coach-account-plan-selector {
    display: grid;
    gap: 12px;
}

.coach-account-plan-cycle-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coach-account-plan-cycle-option {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid rgba(73, 110, 99, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    color: #214436;
    cursor: pointer;
    transition: .18s ease;
}

.coach-account-plan-cycle-option input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.coach-account-plan-cycle-option span {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
}

.coach-account-plan-cycle-option small {
    margin-top: 4px;
    font-size: .78rem;
    font-weight: 700;
    color: #61776d;
}

.coach-account-plan-cycle-option.has-usage-bonus {
    min-width: 120px;
    border-color: rgba(240, 138, 36, 0.45);
    background: linear-gradient(180deg, #fffaf2 0%, #fff 100%);
}

.coach-account-plan-cycle-option.has-usage-bonus span {
    color: #8a4c0f;
}

.coach-account-plan-cycle-option.has-usage-bonus small strong {
    display: inline-block;
    color: #173a2c;
    font-size: .84rem;
}

.coach-account-plan-cycle-option.is-selected {
    border-color: #efc48d;
    background: #fff4e6;
    box-shadow: 0 0 0 2px rgba(240, 138, 36, 0.12);
    color: #8a4c0f;
}

.coach-account-plan-cycle-option.is-selected small {
    color: #8a4c0f;
}

.coach-account-plan-card {
    border: 1px solid #d9e8df;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}

.coach-account-plan-card.is-current {
    border-color: #efc48d;
    box-shadow: 0 0 0 2px rgba(240, 138, 36, 0.08);
}

.coach-account-plan-card.is-pending {
    border-color: #d9c58c;
    background: #fffaf1;
}

.coach-account-plan-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
}

.coach-account-plan-summary .coach-account-plan-top,
.coach-account-plan-summary .coach-account-plan-meta {
    grid-column: 1 / 2;
}

.coach-account-plan-summary::after {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    align-self: center;
    content: '+';
    width: 34px;
    min-width: 34px;
    height: 34px;
    padding: 0;
    border-color: #f1b35e;
    background: #fff8ed;
    color: #a45108;
    font-size: 1.12rem;
    box-shadow: 0 8px 18px rgba(23, 58, 44, 0.08);
}

.coach-account-plan-card[open] > .coach-account-plan-summary::after {
    content: '-';
    border-color: #d8e7de;
    background: #fff;
    color: #2b5946;
    box-shadow: none;
}

.coach-account-plan-body {
    border-top: 1px solid #e3eee7;
    padding: 16px;
    display: grid;
    gap: 14px;
}

.coach-account-plan-selection-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(73, 110, 99, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
}

.coach-account-eft-discount {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    border: 1px solid rgba(31, 95, 146, .16);
    border-radius: 14px;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 138, 36, .12), transparent 42%),
        linear-gradient(135deg, rgba(255,255,255,.9), rgba(243,248,255,.88));
}

.coach-account-eft-discount span {
    color: #385879;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.coach-account-eft-discount strong {
    color: #17365f;
    font-size: .98rem;
    font-weight: 950;
}

.coach-account-eft-discount small {
    color: #607085;
    font-size: .8rem;
    font-weight: 700;
}

.coach-account-plan-selection-main {
    display: grid;
    gap: 4px;
}

.coach-account-plan-selection-main strong {
    color: #173a2c;
    font-size: 1rem;
}

.coach-account-plan-selection-main span {
    color: #5e746b;
    font-size: .88rem;
    font-weight: 600;
}

.coach-account-plan-selection-price {
    color: #0f3e33;
    font-size: 1.08rem;
    font-weight: 800;
    white-space: nowrap;
}

.coach-account-plan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.coach-account-plan-actions form,
.coach-account-plan-action-form {
    display: flex;
    margin: 0;
}

.coach-account-plan-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.coach-account-plan-action--eft {
    border-color: rgba(31, 95, 146, .22);
    background: #173f6b;
    color: #fff;
}

.coach-account-plan-action--shopier {
    border-color: rgba(31, 95, 146, .24);
    background: #fff;
    color: #174a7a;
}

.coach-account-plan-action--cancel {
    border-color: rgba(177, 85, 47, .26);
    background: #fff;
    color: #a8452a;
}

.coach-account-plan-action:hover {
    box-shadow: 0 6px 14px rgba(22, 56, 82, .12);
}

.coach-account-plan-action--eft:hover {
    background: #12375f;
}

.coach-account-plan-action--shopier:hover {
    border-color: rgba(31, 95, 146, .46);
    background: #f4f8fd;
}

.coach-account-plan-action--cancel:hover {
    border-color: rgba(177, 85, 47, .42);
    background: #fff7f4;
}

.coach-account-plan-action:disabled {
    box-shadow: none;
    cursor: not-allowed;
    opacity: .58;
}

.coach-account-plan-badge[hidden],
.coach-account-plan-actions [hidden],
.coach-account-renewal-error[hidden],
.coach-account-shopier-error[hidden] {
    display: none !important;
}

.coach-account-plan-selection-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coach-account-plan-variant-list {
    display: grid;
    gap: 10px;
}

.coach-account-plan-variant {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(73, 110, 99, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.coach-account-plan-variant.is-current {
    border-color: #efc48d;
    box-shadow: 0 0 0 2px rgba(240, 138, 36, 0.1);
}

.coach-account-plan-variant.is-pending {
    border-color: #d9c58c;
    background: #fff9ef;
}

.coach-account-plan-variant-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.coach-account-plan-variant-copy strong {
    color: #173a2c;
    font-size: 0.96rem;
}

.coach-account-plan-variant-copy span {
    color: #0f3e33;
    font-weight: 800;
}

.coach-account-plan-variant-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coach-account-plan-variant-actions form {
    margin: 0;
}

.coach-account-plan-variant-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coach-account-plan-variant-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(73, 110, 99, 0.18);
    background: rgba(255, 255, 255, 0.9);
    color: #2e5947;
    font-size: .82rem;
    font-weight: 700;
}

.coach-account-shopier-state {
    margin: 0 0 16px;
    padding: 16px;
    border: 1px solid rgba(31, 95, 146, 0.16);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 138, 36, 0.15), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.95), rgba(243,248,255,.9));
    box-shadow: 0 18px 40px rgba(18, 44, 72, .10);
}

.coach-account-shopier-state--eft {
    border-color: rgba(46, 125, 86, .20);
    background:
        radial-gradient(circle at 100% 0%, rgba(46, 125, 86, .13), transparent 34%),
        linear-gradient(135deg, rgba(255,255,255,.95), rgba(245,251,247,.9));
}

.coach-account-payment-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin-bottom: 8px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(31, 95, 146, .09);
    color: #17365f;
    font-size: .72rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.coach-account-shopier-state strong {
    display: block;
    margin-bottom: 8px;
    color: #173a2c;
    font-size: 1.05rem;
}

.coach-account-payment-code {
    display: inline-grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 9px;
    padding: 8px 10px;
    border: 1px solid rgba(242, 138, 36, .30);
    border-radius: 13px;
    background: rgba(255, 249, 239, .86);
}

.coach-account-payment-code span {
    color: #69798b;
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.coach-account-payment-code b {
    color: #a65d07;
    font-size: .95rem;
    font-weight: 950;
    white-space: nowrap;
}

.coach-account-pending-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 9px;
}

.coach-account-pending-detail span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid rgba(31, 95, 146, .14);
    background: rgba(255, 255, 255, .78);
    color: #274b3c;
    font-size: .82rem;
    font-weight: 850;
}

.coach-account-payment-amounts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    align-items: center;
    gap: 8px;
    margin: 0 0 9px;
}

.coach-account-payment-amounts span,
.coach-account-payment-amounts strong {
    display: inline-flex;
    min-height: 34px;
    align-items: baseline;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid rgba(73, 110, 99, .16);
    background: rgba(255,255,255,.82);
    color: #587064;
    font-weight: 850;
}

.coach-account-payment-amounts em {
    color: #6b7b75;
    font-size: .72rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.coach-account-payment-amounts b {
    color: inherit;
    font-size: .92rem;
    font-weight: 950;
    white-space: nowrap;
}

.coach-account-payment-amounts strong {
    border-color: rgba(46, 125, 86, .22);
    background: rgba(233, 248, 239, .92);
    color: #1f6d46;
}

.coach-account-shopier-state small {
    display: block;
    color: #5a7067;
    line-height: 1.45;
}

.coach-account-shopier-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}

.coach-account-shopier-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid #173f6b;
    background: #173f6b;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.coach-account-shopier-link:hover {
    border-color: #12375f;
    background: #12375f;
    box-shadow: 0 6px 14px rgba(22, 56, 82, .14);
}

.coach-account-shopier-link--eft {
    border-color: #1f6d46;
    background: #1f6d46;
    color: #fff;
}

.coach-account-shopier-link--eft:hover {
    border-color: #18583a;
    background: #18583a;
}

.coach-account-shopier-actions form {
    margin: 0;
}

.coach-account-shopier-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 8px;
    border: 1px solid rgba(177, 85, 47, 0.32);
    background: #fff;
    color: #a8452a;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.coach-account-shopier-cancel:hover {
    border-color: rgba(177, 85, 47, .48);
    background: #fff7f4;
    box-shadow: 0 6px 14px rgba(120, 54, 34, .08);
}

.coach-account-offer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(29, 104, 74, 0.2);
    background: linear-gradient(135deg, rgba(235, 249, 241, 0.95), rgba(255, 248, 232, 0.95));
}

.coach-account-offer-card strong {
    display: block;
    margin: 4px 0 6px;
    color: #173a2c;
    font-size: 1.15rem;
}

.coach-account-offer-card p {
    margin: 0;
    color: #526a60;
    line-height: 1.55;
}

.coach-offer-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 70;
    width: min(326px, calc(100vw - 32px));
    padding: 18px;
    border: 1px solid rgba(29, 104, 74, 0.22);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 247, 0.98));
    box-shadow: 0 18px 48px rgba(23, 58, 44, 0.18);
}

.coach-offer-float[hidden] {
    display: none;
}

.coach-offer-float strong {
    display: block;
    margin: 4px 28px 6px 0;
    color: #173a2c;
    font-size: 1.05rem;
}

.coach-offer-float p {
    margin: 0 0 12px;
    color: #526a60;
    font-size: .9rem;
    line-height: 1.45;
}

.coach-offer-float .filter-btn {
    justify-content: center;
    width: 100%;
}

.coach-offer-float-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(73, 110, 99, 0.18);
    border-radius: 999px;
    background: #fff;
    color: #526a60;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

.coach-account-shopier-error,
.coach-account-renewal-error {
    display: block;
    margin-top: 8px;
    color: #b1552f;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.45;
}

.coach-account-plan-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(73, 110, 99, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
}

.coach-account-plan-card.is-current {
    border-color: #efc48d;
    box-shadow: 0 0 0 2px rgba(240, 138, 36, 0.12);
}

.coach-account-plan-card.is-pending {
    border-color: #d9c58c;
    background: linear-gradient(180deg, #fffaf0 0%, #fff5e5 100%);
}

.coach-account-plan-context-note {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(240, 138, 36, .28);
    background: linear-gradient(135deg, rgba(255, 247, 236, .96), rgba(255, 255, 255, .86));
    color: #274b3c;
}

.coach-account-plan-context-note strong {
    color: #17365f;
    font-size: .92rem;
}

.coach-account-plan-context-note span {
    color: #5e746b;
    font-size: .84rem;
    line-height: 1.45;
}

.coach-account-plan-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.coach-account-plan-top strong {
    display: block;
    color: #173a2c;
    font-size: 1rem;
}

.coach-account-plan-top p {
    margin: 4px 0 0;
    color: #5e746b;
    font-size: .9rem;
}

.coach-account-plan-price {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f08a24 0%, #cf5f16 100%);
    color: #fff;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(207, 95, 22, 0.18);
}

.coach-account-plan-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coach-account-plan-meta span,
.coach-account-plan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(73, 110, 99, 0.18);
    background: rgba(255, 255, 255, 0.82);
    color: #2e5947;
    font-size: .82rem;
    font-weight: 700;
}

.coach-account-plan-badge {
    border-color: #efc48d;
    background: #fff4e6;
    color: #8a4c0f;
}

.coach-account-plan-badge--pending {
    border-color: #d9c58c;
    background: #fff6dc;
    color: #8b6411;
}

.coach-account-renewal-note {
    color: #6b7b75;
    font-size: .82rem;
}

.coach-account-payment-history {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(73, 110, 99, 0.22);
}

.coach-account-payment-list {
    display: grid;
    gap: 10px;
}

.coach-account-payment-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(73, 110, 99, 0.18);
    background: rgba(255, 255, 255, 0.72);
}

.coach-account-payment-item p {
    margin: 4px 0 0;
    color: #5e746b;
    font-size: .9rem;
}

.coach-account-payment-ref {
    display: block;
    margin-top: 4px;
    color: #72867e;
    font-size: .79rem;
    line-height: 1.45;
}

.coach-account-bank-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(31, 95, 146, 0.12);
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.coach-account-bank-card .coach-account-kv {
    display: grid;
    gap: 4px;
    min-height: 62px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(73, 110, 99, .14);
    background: rgba(255, 255, 255, .84);
}

.coach-account-bank-card .coach-account-kv span {
    font-size: .72rem;
}

.coach-account-bank-card .coach-account-kv strong {
    font-size: .96rem;
}

.coach-account-bank-card .coach-account-kv--copyable {
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 10px;
}

.coach-account-bank-card .coach-account-kv--copyable span,
.coach-account-bank-card .coach-account-kv--copyable strong {
    grid-column: 1;
}

.coach-account-bank-card .coach-account-kv:has(.coach-account-bank-iban) {
    grid-column: 1 / -1;
}

.coach-account-bank-iban {
    letter-spacing: .04em;
    word-break: break-word;
}

.coach-account-copy-btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(31, 95, 146, 0.22);
    background: #eef6ff;
    color: #174a78;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.coach-account-copy-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.coach-account-copy-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(240, 138, 36, 0.45);
    background: #fff4e7;
    color: #8a4c0f;
}

.coach-account-copy-btn.is-copied {
    border-color: rgba(46, 125, 86, .35);
    background: #e9f8ef;
    color: #1f6d46;
}

.coach-account-payment-code .coach-account-copy-btn {
    grid-column: auto;
    grid-row: auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .78);
}

.coach-account-payment-code .coach-account-copy-btn svg {
    width: 15px;
    height: 15px;
}

.coach-account-bank-note {
    grid-column: 1 / -1;
    margin: 0;
    color: #4f675e;
    font-size: .84rem;
    line-height: 1.5;
}

.coach-account-bank-contact {
    grid-column: 1 / -1;
    color: #6b7b75;
    font-size: .8rem;
    line-height: 1.5;
}

.coach-support-form {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.coach-support-form label {
    display: grid;
    gap: 6px;
    color: #274b3c;
    font-size: .92rem;
    font-weight: 600;
}

.coach-support-form input,
.coach-support-form textarea {
    width: 100%;
    border: 1px solid rgba(53, 110, 86, 0.18);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #17372c;
}

.coach-support-form textarea {
    resize: vertical;
    min-height: 110px;
}

.coach-account-payment-side {
    display: grid;
    justify-items: end;
    gap: 8px;
    flex: 0 0 auto;
}

.coach-account-payment-side form {
    margin: 0;
}

.coach-account-payment-side > span {
    color: #496e63;
    font-weight: 700;
    font-size: .82rem;
}

.coach-lock-note {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #efc48d;
    background: #fff4e5;
    color: #7a4a15;
    font-weight: 700;
}

.coach-lock-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

#sectionWeeklyTask .coach-task-pane.active > form > .coach-lock-fieldset {
    display: block;
    padding: 16px;
    border: 2px solid #263f36;
    border-radius: 18px;
    background: #ffffff;
}

.coach-lock-fieldset:disabled {
    opacity: .62;
}

:root[data-theme="dark"] .coach-account-head p {
    color: #9bb0c8;
}

:root[data-theme="dark"] .coach-account-panel {
    background: #141d2f;
    border-color: #283c5c;
}

#coachTop.is-account-focus #coachStudentFilterForm {
    display: none;
}

#coachTop.is-account-focus {
    padding-bottom: 12px;
}

:root[data-theme="dark"] .coach-account-kv {
    background: linear-gradient(180deg, #101b2d 0%, #152238 100%);
    border-color: #28425e;
}

:root[data-theme="dark"] .coach-account-current-plan {
    border-color: rgba(74, 144, 180, 0.44);
    background:
        radial-gradient(circle at top right, rgba(64, 169, 145, 0.18), transparent 38%),
        linear-gradient(135deg, rgba(20, 42, 67, 0.98), rgba(18, 30, 50, 0.98));
    box-shadow: 0 12px 26px rgba(3, 11, 22, 0.34);
}

:root[data-theme="dark"] .coach-account-current-plan-label {
    color: #ffcb8c;
}

:root[data-theme="dark"] .coach-account-current-plan-copy strong {
    color: #eef4ff;
}

:root[data-theme="dark"] .coach-account-current-plan-copy small {
    color: #b7c9de;
}

:root[data-theme="dark"] .coach-account-current-plan-badges span {
    background: rgba(15, 28, 41, 0.86);
    border-color: #34506a;
    color: #dce8ff;
}

:root[data-theme="dark"] .coach-account-kv span,
:root[data-theme="dark"] .coach-account-note span {
    color: #9db4ca;
}

:root[data-theme="dark"] .coach-account-kv strong,
:root[data-theme="dark"] .coach-account-note p {
    color: #e7f0fb;
}

:root[data-theme="dark"] .coach-account-accordion,
:root[data-theme="dark"] .coach-account-plan-card {
    background: #141d2f;
    border-color: #283c5c;
}

:root[data-theme="dark"] .coach-account-accordion::before {
    background: linear-gradient(90deg, rgba(82, 190, 170, .72) 0%, rgba(95, 151, 220, .68) 58%, rgba(255, 190, 106, .18) 100%);
}

:root[data-theme="dark"] .coach-account-accordion-body,
:root[data-theme="dark"] .coach-account-plan-body {
    border-top-color: #27455c;
}

:root[data-theme="dark"] .coach-account-accordion-summary::after,
:root[data-theme="dark"] .coach-account-plan-summary::after {
    background: rgba(248, 167, 82, 0.16);
    border-color: rgba(248, 167, 82, 0.46);
    color: #ffd7a6;
}

:root[data-theme="dark"] .coach-account-plan-summary::after {
    background: #0f1c29;
    border-color: #2c4b63;
    color: #d9ebf7;
}

:root[data-theme="dark"] .coach-account-plan-card[open] > .coach-account-plan-summary::after {
    background: #0f1c29;
    border-color: #2c4b63;
    color: #d9ebf7;
}

:root[data-theme="dark"] .coach-bulk-picker {
    background: linear-gradient(180deg, #152238 0%, #122034 100%);
    border-color: #28425e;
    box-shadow: 0 12px 28px rgba(3, 11, 22, 0.28);
}

:root[data-theme="dark"] .coach-bulk-picker-label,
:root[data-theme="dark"] .coach-bulk-config-title,
:root[data-theme="dark"] .coach-bulk-target-label,
:root[data-theme="dark"] .coach-bulk-target-card strong {
    color: #e9f2ff;
}

:root[data-theme="dark"] .coach-bulk-selection-count,
:root[data-theme="dark"] .coach-bulk-config-box,
:root[data-theme="dark"] .coach-bulk-target-card,
:root[data-theme="dark"] .coach-bulk-info-strip {
    background: rgba(12, 24, 40, 0.82);
    border-color: #294662;
    color: #d7e7f9;
}

:root[data-theme="dark"] .coach-bulk-summary,
:root[data-theme="dark"] .coach-bulk-filter-hint,
:root[data-theme="dark"] .coach-bulk-target-card span:last-child,
:root[data-theme="dark"] .coach-bulk-target-meta {
    color: #9eb6cc;
}

:root[data-theme="dark"] .coach-bulk-mode-option,
:root[data-theme="dark"] .coach-bulk-student-item,
:root[data-theme="dark"] .coach-bulk-filter-select-wrap select {
    background: #101b2d;
    border-color: #294662;
    color: #e9f2ff;
}

:root[data-theme="dark"] .coach-bulk-mode-option:hover,
:root[data-theme="dark"] .coach-bulk-student-item:hover {
    border-color: #4e7aa2;
    box-shadow: 0 10px 20px rgba(3, 11, 22, 0.26);
}

:root[data-theme="dark"] .coach-bulk-mode-mark,
:root[data-theme="dark"] .coach-bulk-student-mark {
    border-color: #7d9bb7;
    background: #0f1c29;
}

:root[data-theme="dark"] .coach-bulk-mode-option:has(input:checked),
:root[data-theme="dark"] .coach-bulk-student-item:has(input:checked) {
    background: linear-gradient(180deg, #162a45 0%, #19304e 100%);
    border-color: #4e8fdb;
    color: #eef6ff;
    box-shadow: 0 12px 24px rgba(8, 36, 68, 0.32);
}

:root[data-theme="dark"] .coach-bulk-mode-option:has(input:checked) .coach-bulk-mode-mark,
:root[data-theme="dark"] .coach-bulk-student-item:has(input:checked) .coach-bulk-student-mark {
    border-color: #4e8fdb;
    background: #0f1c29;
}

:root[data-theme="dark"] .coach-account-accordion-note {
    color: #9eb6c9;
}

:root[data-theme="dark"] .coach-account-bank-card {
    background: linear-gradient(180deg, rgba(21, 34, 52, 0.96) 0%, rgba(15, 23, 38, 0.98) 100%);
    border-color: rgba(91, 160, 196, 0.26);
}

:root[data-theme="dark"] .coach-account-bank-card .coach-account-kv {
    background: rgba(17, 26, 41, .9);
    border-color: rgba(85, 115, 161, .24);
}

:root[data-theme="dark"] .coach-account-copy-btn {
    border-color: rgba(118, 161, 205, .28);
    background: rgba(38, 64, 93, .85);
    color: #d9e9ff;
}

:root[data-theme="dark"] .coach-account-copy-btn:hover {
    border-color: rgba(240, 138, 36, .55);
    background: rgba(117, 70, 25, .45);
    color: #ffe0bd;
}

:root[data-theme="dark"] .coach-account-copy-btn.is-copied {
    border-color: rgba(87, 190, 132, .42);
    background: rgba(28, 88, 57, .48);
    color: #baf4cf;
}

:root[data-theme="dark"] .coach-account-pending-detail span,
:root[data-theme="dark"] .coach-account-plan-context-note {
    background: rgba(17, 26, 41, .74);
    border-color: rgba(85, 115, 161, .24);
    color: #dce9f4;
}

:root[data-theme="dark"] .coach-account-plan-context-note strong {
    color: #d9e9ff;
}

:root[data-theme="dark"] .coach-account-plan-context-note span {
    color: #9eb6c9;
}

:root[data-theme="dark"] .coach-account-plan-card {
    background: linear-gradient(180deg, #152033 0%, #111a29 100%);
    border-color: rgba(85, 115, 161, 0.26);
}

:root[data-theme="dark"] .coach-account-plan-card.is-current {
    border-color: #efc48d;
    box-shadow: 0 0 0 2px rgba(240, 138, 36, 0.18);
}

:root[data-theme="dark"] .coach-account-plan-card.is-pending {
    border-color: rgba(93, 173, 226, 0.42);
    background: linear-gradient(180deg, #172a3e 0%, #121f31 100%);
}

:root[data-theme="dark"] .coach-account-plan-cycle-option {
    background: rgba(17, 26, 41, 0.9);
    border-color: rgba(85, 115, 161, 0.24);
    color: #eef4ff;
}

:root[data-theme="dark"] .coach-account-plan-cycle-option small {
    color: #9bb0c8;
}

:root[data-theme="dark"] .coach-account-plan-cycle-option.is-selected {
    border-color: #70d6c1;
    background: rgba(64, 169, 145, 0.14);
    color: #c4fff1;
}

:root[data-theme="dark"] .coach-account-plan-cycle-option.is-selected small {
    color: #c4fff1;
}

:root[data-theme="dark"] .coach-account-plan-selection-summary {
    background: rgba(17, 26, 41, 0.9);
    border-color: rgba(85, 115, 161, 0.24);
}

:root[data-theme="dark"] .coach-account-eft-discount {
    border-color: rgba(96, 165, 250, .24);
    background: linear-gradient(135deg, rgba(30, 41, 59, .92), rgba(17, 24, 39, .92));
}

:root[data-theme="dark"] .coach-account-eft-discount span,
:root[data-theme="dark"] .coach-account-eft-discount small {
    color: #bfd1e8;
}

:root[data-theme="dark"] .coach-account-eft-discount strong {
    color: #eef6ff;
}

:root[data-theme="dark"] .coach-account-plan-selection-main strong,
:root[data-theme="dark"] .coach-account-plan-selection-price {
    color: #eef4ff;
}

:root[data-theme="dark"] .coach-account-plan-selection-main span {
    color: #9bb0c8;
}

:root[data-theme="dark"] .coach-account-plan-variant {
    background: rgba(17, 26, 41, 0.9);
    border-color: rgba(85, 115, 161, 0.24);
}

:root[data-theme="dark"] .coach-account-plan-variant.is-current {
    border-color: #efc48d;
    box-shadow: 0 0 0 2px rgba(240, 138, 36, 0.14);
}

:root[data-theme="dark"] .coach-account-plan-variant.is-pending {
    border-color: rgba(93, 173, 226, 0.42);
    background: #15263a;
}

:root[data-theme="dark"] .coach-account-shopier-state {
    border-color: rgba(93, 173, 226, 0.42);
    background:
        radial-gradient(circle at top right, rgba(64, 169, 145, 0.16), transparent 42%),
        linear-gradient(135deg, rgba(25, 52, 80, 0.96), rgba(23, 35, 55, 0.98));
}

:root[data-theme="dark"] .coach-account-shopier-state--eft {
    border-color: rgba(96, 204, 145, .34);
}

:root[data-theme="dark"] .coach-account-shopier-state strong,
:root[data-theme="dark"] .coach-account-shopier-state p {
    color: #eef4ff;
}

:root[data-theme="dark"] .coach-account-payment-kicker,
:root[data-theme="dark"] .coach-account-payment-amounts span,
:root[data-theme="dark"] .coach-account-payment-amounts strong {
    background: rgba(31, 41, 55, .82);
    border-color: rgba(148, 163, 184, .22);
    color: #dbeafe;
}

:root[data-theme="dark"] .coach-account-payment-amounts em {
    color: #a9b8cc;
}

:root[data-theme="dark"] .coach-account-payment-code {
    background: rgba(31, 41, 55, .82);
    border-color: rgba(240, 138, 36, .32);
}

:root[data-theme="dark"] .coach-account-payment-code span {
    color: #b7c4d6;
}

:root[data-theme="dark"] .coach-account-payment-code b {
    color: #9eeedc;
}

:root[data-theme="dark"] .coach-account-shopier-link {
    border-color: #2b6da9;
    background: #245f98;
    color: #fff;
}

:root[data-theme="dark"] .coach-account-shopier-link:hover {
    border-color: #367dbd;
    background: #2b6da9;
}

:root[data-theme="dark"] .coach-account-shopier-link--eft {
    border-color: #31845d;
    background: #276f4d;
    color: #fff;
}

:root[data-theme="dark"] .coach-account-shopier-link--eft:hover {
    border-color: #3b9670;
    background: #31845d;
}

:root[data-theme="dark"] .coach-account-plan-top strong {
    color: #eef4ff;
}

:root[data-theme="dark"] .coach-account-plan-top p {
    color: #b8c8de;
}

:root[data-theme="dark"] .coach-account-plan-variant-copy strong {
    color: #eef4ff;
}

:root[data-theme="dark"] .coach-account-plan-variant-copy span {
    color: #ffd8a0;
}

:root[data-theme="dark"] .coach-account-plan-price {
    background: linear-gradient(135deg, #f6a23a 0%, #d9671a 100%);
    color: #101820;
    box-shadow: 0 10px 22px rgba(3, 11, 22, 0.3);
}

:root[data-theme="dark"] .coach-account-plan-meta span {
    background: rgba(19, 31, 51, 0.8);
    border-color: rgba(85, 115, 161, 0.26);
    color: #dce8ff;
}

:root[data-theme="dark"] .coach-account-plan-variant-meta span {
    background: rgba(19, 31, 51, 0.84);
    border-color: rgba(85, 115, 161, 0.26);
    color: #dce8ff;
}

:root[data-theme="dark"] .coach-account-plan-badge {
    background: rgba(64, 169, 145, 0.16);
    border-color: rgba(112, 214, 193, 0.32);
    color: #c4fff1;
}

:root[data-theme="dark"] .coach-account-plan-badge--pending {
    background: rgba(93, 173, 226, 0.14);
    border-color: rgba(93, 173, 226, 0.34);
    color: #cfeaff;
}

:root[data-theme="dark"] .coach-account-eyebrow {
    background: #1d2a41;
    color: #c9daf3;
}

:root[data-theme="dark"] .coach-account-payment-history {
    border-top-color: rgba(85, 115, 161, 0.28);
}

:root[data-theme="dark"] .coach-account-payment-item {
    background: rgba(19, 31, 51, 0.8);
    border-color: rgba(85, 115, 161, 0.26);
}

:root[data-theme="dark"] .coach-account-payment-item p,
:root[data-theme="dark"] .coach-account-payment-side > span {
    color: #b8c8de;
}

:root[data-theme="dark"] .coach-account-shopier-state small,
:root[data-theme="dark"] .coach-account-payment-ref {
    color: #9eb1ca;
}

:root[data-theme="dark"] .coach-account-offer-card {
    background: linear-gradient(135deg, rgba(31, 71, 53, 0.52), rgba(86, 58, 20, 0.36));
    border-color: rgba(110, 157, 128, 0.28);
}

:root[data-theme="dark"] .coach-account-offer-card strong {
    color: #eef7f0;
}

:root[data-theme="dark"] .coach-account-offer-card p {
    color: #c5d6cd;
}

:root[data-theme="dark"] .coach-account-plan-cycle-option.has-usage-bonus {
    border-color: rgba(248, 167, 82, 0.48);
    background: linear-gradient(180deg, rgba(72, 49, 22, 0.7), rgba(19, 31, 51, 0.92));
}

:root[data-theme="dark"] .coach-account-plan-cycle-option.has-usage-bonus small strong,
:root[data-theme="dark"] .coach-account-plan-cycle-option.has-usage-bonus span {
    color: #ffd7a6;
}

:root[data-theme="dark"] .coach-offer-float {
    border-color: rgba(110, 157, 128, 0.28);
    background: linear-gradient(145deg, rgba(18, 31, 49, 0.98), rgba(24, 48, 38, 0.98));
    box-shadow: 0 18px 48px rgba(3, 11, 22, 0.38);
}

:root[data-theme="dark"] .coach-offer-float strong {
    color: #eef7f0;
}

:root[data-theme="dark"] .coach-offer-float p {
    color: #c5d6cd;
}

:root[data-theme="dark"] .coach-offer-float-close {
    background: #0f1c29;
    border-color: #2c4b63;
    color: #d9ebf7;
}

:root[data-theme="dark"] .coach-account-shopier-cancel {
    background: rgba(19, 31, 51, 0.9);
    border-color: rgba(248, 154, 104, 0.34);
    color: #ffbf9b;
}

:root[data-theme="dark"] .coach-account-plan-action--eft {
    border-color: rgba(109, 164, 222, .32);
    background: #245f98;
    color: #fff;
}

:root[data-theme="dark"] .coach-account-plan-action--shopier {
    border-color: rgba(112, 214, 193, .38);
    background: rgba(64, 169, 145, .14);
    color: #d8fff6;
}

:root[data-theme="dark"] .coach-account-plan-action--cancel {
    border-color: rgba(248, 154, 104, .34);
    background: rgba(19, 31, 51, .9);
    color: #ffbf9b;
}

:root[data-theme="dark"] .coach-account-plan-action--eft:hover {
    background: #2b6da9;
}

:root[data-theme="dark"] .coach-account-plan-action--shopier:hover {
    border-color: rgba(112, 214, 193, .58);
    background: rgba(64, 169, 145, .24);
}

:root[data-theme="dark"] .coach-account-plan-action--cancel:hover {
    border-color: rgba(248, 154, 104, .52);
    background: rgba(87, 43, 40, .42);
}

:root[data-theme="dark"] .coach-support-form label {
    color: #d8e7f7;
}

:root[data-theme="dark"] .coach-account-password-head strong,
:root[data-theme="dark"] .coach-account-password-grid label {
    color: #eef4ff;
}

:root[data-theme="dark"] .coach-account-password-head p {
    color: #b8c8de;
}

:root[data-theme="dark"] .coach-support-form input,
:root[data-theme="dark"] .coach-support-form textarea,
:root[data-theme="dark"] .coach-account-password-grid input {
    background: rgba(16, 26, 46, 0.88);
    border-color: rgba(122, 157, 207, 0.28);
    color: #f4f8ff;
}

:root[data-theme="dark"] .coach-account-shopier-error,
:root[data-theme="dark"] .coach-account-renewal-error {
    color: #ffb89a;
}

:root[data-theme="dark"] .coach-account-kv span,
:root[data-theme="dark"] .coach-account-note span {
    color: #8fa4c0;
}

:root[data-theme="dark"] .coach-account-kv strong,
:root[data-theme="dark"] .coach-account-note p {
    color: #eef4ff;
}

:root[data-theme="dark"] .coach-account-renewal-note {
    color: #95a9c4;
}

:root[data-theme="dark"] .coach-account-note {
    border-top-color: #2a3d5e;
}

:root[data-theme="dark"] .coach-lock-note {
    color: #ffd9a8;
    background: #3d2a16;
    border-color: #9a6b31;
}

:root[data-theme="dark"] .coach-account-status--trial {
    background: #3f2b16;
    border-color: #9b6a2f;
    color: #ffd89e;
}

:root[data-theme="dark"] .coach-account-status--active {
    background: #183626;
    border-color: #2b7c52;
    color: #aaf0c7;
}

:root[data-theme="dark"] .coach-account-status--expired {
    background: #3d1f24;
    border-color: #a34a57;
    color: #ffb8c1;
}

:root[data-theme="dark"] .coach-account-status--suspended {
    background: #2c2444;
    border-color: #6d5ca8;
    color: #d4c7ff;
}

:root[data-theme="dark"] .coach-account-alert--warning {
    color: #d8fff6;
    background: #163143;
    border-color: #4aa58f;
}

:root[data-theme="dark"] .coach-account-alert--critical,
:root[data-theme="dark"] .coach-account-alert--expired {
    color: #ffc1c1;
    background: #3d1f24;
    border-color: #a34a57;
}

html[data-theme="dark"] .weekly-report-badge {
    background: rgba(112, 214, 193, 0.16);
    border: 1px solid rgba(112, 214, 193, 0.28);
    color: #d8fff6;
}

html[data-theme="dark"] .weekly-report-badge.soft {
    background: rgba(93, 173, 226, 0.14);
    border-color: rgba(93, 173, 226, 0.3);
    color: #d9ecff;
}

@media (max-width: 760px) {
    .coach-account-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .coach-account-facts--account,
    .coach-account-facts--membership {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coach-account-current-plan {
        flex-direction: column;
    }

    .coach-account-current-plan-badges {
        justify-content: flex-start;
    }

    .coach-account-plan-top {
        flex-direction: column;
    }

    .coach-account-plan-price {
        align-self: flex-start;
    }

    .coach-account-accordion-summary {
        flex-direction: column;
        align-items: flex-start;
        padding-right: 48px;
        position: relative;
    }

    .coach-account-accordion-summary::after,
    .coach-account-plan-summary::after {
        position: absolute;
        top: 14px;
        right: 16px;
    }

    .coach-account-accordion-note {
        text-align: left;
    }

    .coach-account-plan-summary {
        grid-template-columns: 1fr;
        padding-right: 58px;
        position: relative;
    }

    .coach-account-plan-cycle-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .coach-account-plan-cycle-option {
        width: 100%;
        min-width: 0;
    }

    .coach-account-plan-cycle-option.has-usage-bonus {
        min-width: 0;
    }

    .coach-account-plan-selection-summary {
        display: grid;
        grid-template-columns: 1fr;
    }

    .coach-account-plan-selection-price {
        white-space: normal;
    }

    .coach-account-eft-discount {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .coach-account-payment-amounts,
    .coach-account-bank-card {
        grid-template-columns: 1fr;
    }

    .coach-account-bank-card .coach-account-kv--copyable {
        grid-template-columns: 1fr;
    }

    .coach-account-copy-btn {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 4px;
    }

    .coach-account-plan-variant-copy {
        flex-direction: column;
        align-items: flex-start;
    }

    .coach-account-shopier-state {
        margin-bottom: 14px;
        padding: 13px 14px;
    }

    .coach-account-offer-card,
    .coach-account-shopier-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .coach-account-offer-card .filter-btn,
    .coach-account-shopier-link,
    .coach-account-shopier-cancel,
    .coach-account-plan-action-form,
    .coach-account-plan-action {
        width: 100%;
        text-align: center;
    }

    .coach-account-payment-item,
    .coach-account-payment-side {
        align-items: stretch;
        justify-items: stretch;
    }

    .coach-account-payment-item {
        flex-direction: column;
    }

    .coach-offer-float {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        padding: 15px;
        border-radius: 16px;
    }
}

@media (max-width: 640px) {
    .coach-account-facts--account,
    .coach-account-facts--membership {
        grid-template-columns: 1fr;
    }

    .coach-account-kv {
        padding: 13px 14px;
        border-radius: 14px;
    }

    .coach-account-kv strong {
        font-size: 1rem;
    }
}

.weekly-coach-report-card {
    display: grid;
    gap: 16px;
    margin-top: 10px;
}

.weekly-coach-report-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.weekly-coach-report-head h4 {
    margin: 0;
}

.weekly-coach-report-meta {
    margin: 6px 0 0;
    color: #5b7369;
    font-size: 0.95rem;
}

.weekly-coach-report-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.weekly-report-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(34, 100, 78, 0.12);
    color: #1b4b3d;
    font-weight: 700;
    font-size: 0.92rem;
}

.weekly-report-badge.soft {
    background: rgba(52, 100, 188, 0.1);
    color: #23477f;
}

.weekly-report-hero-meta {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f3f8f5;
    width: fit-content;
}

.weekly-report-hero-meta span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.weekly-report-hero-meta strong {
    font-size: 0.92rem;
    font-weight: 700;
}

.weekly-report-visual-grid--report {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 14px;
}

.weekly-report-data-card {
    border: 1px solid rgba(120, 158, 142, 0.35);
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(245, 250, 247, 0.96), rgba(238, 247, 242, 0.88));
    display: grid;
    gap: 14px;
}

.weekly-report-data-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.weekly-report-data-card-head strong {
    color: #18392e;
    font-size: 1rem;
}

.weekly-report-data-card-head span {
    color: #517064;
    font-size: 0.85rem;
    font-weight: 700;
}

.weekly-report-daily-chart-wrap {
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr;
    gap: 18px;
    align-items: center;
}

.weekly-report-daily-pie {
    width: 180px;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow:
        inset 0 -14px 24px rgba(0, 0, 0, 0.12),
        0 18px 30px rgba(17, 47, 70, 0.12);
    transform: translateY(-2px);
}

.weekly-report-daily-pie-center {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(120, 158, 142, 0.2);
}

.weekly-report-daily-pie-center strong {
    display: block;
    color: #16362c;
    font-size: 1.85rem;
    line-height: 1;
}

.weekly-report-daily-pie-center span {
    color: #517064;
    font-size: 0.85rem;
}

.weekly-report-daily-legend {
    display: grid;
    gap: 8px;
}

.weekly-report-daily-legend-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(120, 158, 142, 0.24);
}

.weekly-report-daily-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--dot, #27a3b9);
}

.weekly-report-daily-legend-item strong,
.weekly-report-daily-legend-item span {
    color: #16362c;
    font-size: 0.9rem;
}

.weekly-report-daily-legend-item span:last-child {
    font-weight: 800;
}

.weekly-report-table-wrap {
    overflow-x: auto;
}

.weekly-report-data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 360px;
}

.weekly-report-data-table th,
.weekly-report-data-table td {
    padding: 11px 10px;
    border-bottom: 1px solid rgba(120, 158, 142, 0.22);
    text-align: left;
}

.weekly-report-data-table th {
    color: #517064;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weekly-report-data-table td {
    color: #16362c;
    font-weight: 600;
}

.weekly-report-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #16362c;
}

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

.weekly-report-summary-grid--single {
    grid-template-columns: 1fr;
}

.weekly-report-summary-exam-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.weekly-report-summary-exam-column {
    display: grid;
    gap: 14px;
    align-items: start;
    min-width: 0;
}

.weekly-report-summary-grid:has(.weekly-report-summary-box:only-child) {
    grid-template-columns: 1fr;
}

.weekly-report-summary-box {
    border: 1px solid rgba(120, 158, 142, 0.35);
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(245, 250, 247, 0.96), rgba(238, 247, 242, 0.88));
}

.weekly-report-summary-box span {
    display: inline-block;
    margin-bottom: 8px;
    color: #517064;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weekly-report-summary-box p {
    margin: 0;
    color: #16362c;
    line-height: 1.65;
}

.weekly-report-exam-card {
    border: 1px solid rgba(120, 158, 142, 0.35);
    border-radius: 18px;
    padding: 16px 18px;
    background: linear-gradient(180deg, rgba(245, 250, 247, 0.96), rgba(238, 247, 242, 0.88));
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    min-width: 100%;
    grid-column: 1 / -1;
    justify-self: stretch;
    align-self: start;
    clear: both;
}

.weekly-report-exam-card--embedded {
    padding: 0;
    gap: 0;
    background: transparent;
    border: 0;
}

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

.weekly-report-exam-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.weekly-report-exam-detail-grid > * {
    min-width: 0;
}

.weekly-report-exam-single {
    display: grid;
    gap: 12px;
    border: 1px solid rgba(120, 158, 142, 0.3);
    border-radius: 16px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.72);
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

.weekly-report-exam-single--duo {
    gap: 10px;
    padding: 12px;
}

.weekly-report-exam-single--duo .weekly-report-exam-detail-grid--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.weekly-report-exam-single--duo .weekly-report-exam-detail {
    min-height: 72px;
    padding: 8px 8px;
}

.weekly-report-exam-single--duo .weekly-report-exam-detail span {
    font-size: 0.64rem;
}

.weekly-report-exam-single--duo .weekly-report-exam-detail strong {
    font-size: 0.92rem;
}

.weekly-report-exam-single--duo .weekly-report-exam-lessons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.weekly-report-exam-single--duo .weekly-report-exam-lesson {
    min-height: 0;
    padding: 7px;
}

.weekly-report-exam-single--duo .weekly-report-exam-lesson strong {
    min-height: 34px;
    font-size: 0.68rem;
    padding: 7px 5px;
}

.weekly-report-exam-single--duo .weekly-report-exam-lesson-stats span {
    padding: 5px 2px 4px;
}

.weekly-report-exam-single--duo .weekly-report-exam-lesson-stats b,
.weekly-report-exam-single--duo .weekly-report-exam-lesson-net b {
    font-size: 0.74rem;
}

.weekly-report-exam-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.weekly-report-exam-card-head strong {
    color: #16362c;
    font-size: 1rem;
}

.weekly-report-exam-card-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(229, 167, 91, 0.45);
    background: rgba(255, 244, 228, 0.82);
    color: #9a6320;
    font-size: 0.78rem;
    font-weight: 700;
}

.weekly-report-exam-head strong {
    color: #18392e;
    font-size: 1rem;
}

.weekly-report-exam-head span {
    color: #517064;
    font-weight: 700;
    font-size: 0.9rem;
}

.weekly-report-exam-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.weekly-report-exam-kpi,
.weekly-report-exam-detail-list div {
    border: 1px solid rgba(120, 158, 142, 0.3);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.72);
}

.weekly-report-exam-kpi span,
.weekly-report-exam-detail-list span {
    display: block;
    margin-bottom: 6px;
    color: #517064;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weekly-report-exam-kpi strong,
.weekly-report-exam-detail-list strong {
    color: #16362c;
    font-size: 1rem;
}

.weekly-report-exam-detail-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.weekly-report-exam-detail-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.weekly-report-exam-detail-grid--six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.weekly-report-exam-detail-grid--stack {
    grid-template-columns: 1fr;
}

.weekly-report-exam-detail-grid--duo {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    align-items: start;
}

.weekly-report-exam-detail {
    border: 1px solid rgba(120, 158, 142, 0.3);
    border-radius: 14px;
    padding: 8px 9px;
    background: rgba(255, 255, 255, 0.72);
    min-width: 0;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.weekly-report-exam-detail--bad {
    background: rgba(255, 240, 239, 0.95);
    border-color: rgba(226, 114, 98, 0.28);
}

.weekly-report-exam-detail--blank {
    background: rgba(239, 244, 252, 0.95);
    border-color: rgba(138, 169, 220, 0.26);
}

.weekly-report-exam-detail span {
    display: block;
    margin-bottom: 4px;
    color: #517064;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weekly-report-exam-detail strong {
    color: #16362c;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
}

.weekly-report-exam-table-wrap {
    overflow-x: auto;
}

.weekly-report-exam-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.weekly-report-exam-table th,
.weekly-report-exam-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(120, 158, 142, 0.22);
    text-align: left;
}

.weekly-report-exam-table th {
    color: #517064;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.weekly-report-exam-table td {
    color: #16362c;
    font-weight: 600;
}

.weekly-report-exam-lessons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.weekly-report-exam-lesson {
    border: 1px solid rgba(120, 158, 142, 0.22);
    border-radius: 16px;
    padding: 8px;
    background:
        radial-gradient(circle at top right, rgba(229, 167, 91, 0.16), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 245, 0.94));
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    min-height: 0;
    box-shadow: 0 10px 24px rgba(27, 47, 41, 0.08);
    overflow: hidden;
}

.weekly-report-exam-lesson strong {
    color: #16362c;
    font-size: 0.72rem;
    line-height: 1.15;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    width: 100%;
    border-radius: 12px;
    padding: 8px 6px;
    background: linear-gradient(135deg, rgba(39, 73, 115, 0.1), rgba(225, 143, 47, 0.12));
    box-shadow: inset 0 0 0 1px rgba(39, 73, 115, 0.08);
}

.weekly-report-exam-lesson-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.weekly-report-exam-lesson-stats span {
    min-width: 0;
    border-radius: 10px;
    padding: 6px 3px 5px;
    display: grid;
    gap: 2px;
    justify-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(120, 158, 142, 0.12);
}

.weekly-report-exam-lesson-stats small,
.weekly-report-exam-lesson-net span {
    color: #6f867b;
    font-size: 0.54rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.weekly-report-exam-lesson-stats b,
.weekly-report-exam-lesson-net b {
    color: #18392e;
    font-size: 0.78rem;
    line-height: 1;
}

.weekly-report-exam-lesson-stats .is-correct {
    background: linear-gradient(180deg, rgba(232, 248, 239, 0.96), rgba(245, 252, 248, 0.96));
}

.weekly-report-exam-lesson-stats .is-wrong {
    background: linear-gradient(180deg, rgba(255, 240, 239, 0.96), rgba(255, 248, 247, 0.96));
}

.weekly-report-exam-lesson-stats .is-blank {
    background: linear-gradient(180deg, rgba(238, 243, 251, 0.96), rgba(247, 249, 253, 0.96));
}

.weekly-report-exam-lesson-net {
    margin-top: 2px;
    border-radius: 12px;
    padding: 7px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    background: linear-gradient(135deg, rgba(31, 57, 87, 0.08), rgba(123, 97, 255, 0.08));
    box-shadow: inset 0 0 0 1px rgba(31, 57, 87, 0.08);
}

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

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

.weekly-report-field label {
    font-weight: 800;
    color: #18392e;
}

.weekly-report-field textarea {
    width: 100%;
    min-height: 120px;
    border-radius: 18px;
    border: 1px solid rgba(120, 158, 142, 0.42);
    background: rgba(255, 255, 255, 0.88);
    padding: 14px 16px;
    color: #17352c;
    resize: vertical;
}

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

.weekly-report-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(120, 158, 142, 0.3);
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.7);
    color: #18392e;
    font-weight: 700;
}

.weekly-report-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.weekly-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.weekly-report-actions .primary-btn,
.weekly-report-actions .secondary-btn,
.weekly-report-delivery-actions .secondary-btn,
.weekly-report-archive-actions .secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    padding: 0 16px;
    border: 1px solid transparent;
    font-weight: 800;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.weekly-report-actions .primary-btn {
    background: linear-gradient(135deg, #f08d26 0%, #e47512 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(228, 117, 18, 0.22);
}

.weekly-report-actions .secondary-btn {
    background: linear-gradient(180deg, #ffffff 0%, #f5faf7 100%);
    color: #214635;
    border-color: rgba(120, 158, 142, 0.34);
    box-shadow: 0 10px 20px rgba(23, 57, 46, 0.08);
}

.weekly-report-actions .primary-btn:hover,
.weekly-report-actions .secondary-btn:hover,
.weekly-report-delivery-actions .secondary-btn:hover,
.weekly-report-archive-actions .secondary-btn:hover {
    transform: translateY(-1px);
}

.weekly-report-delivery-actions .secondary-btn {
    width: 100%;
    background: linear-gradient(135deg, #f08d26 0%, #e47512 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(228, 117, 18, 0.18);
}

.weekly-report-delivery-actions .secondary-btn:disabled {
    opacity: .58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.weekly-report-archive-actions .secondary-btn {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 11px;
    background: linear-gradient(180deg, #ffffff 0%, #f4f8f6 100%);
    color: #214635;
    border-color: rgba(120, 158, 142, 0.34);
    box-shadow: 0 8px 16px rgba(23, 57, 46, 0.08);
}

.weekly-report-archive-actions .secondary-btn.danger {
    background: linear-gradient(135deg, #f08d26 0%, #e47512 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(228, 117, 18, 0.18);
}

.weekly-report-delivery {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 14px;
    align-items: stretch;
}

.weekly-report-delivery-box,
.weekly-report-delivery-actions {
    border: 1px solid rgba(120, 158, 142, 0.35);
    border-radius: 18px;
    padding: 16px 18px;
    background: rgba(246, 251, 248, 0.88);
}

.weekly-report-delivery-box strong {
    display: block;
    margin-bottom: 8px;
}

.weekly-report-delivery-box p {
    margin: 0;
    color: #2b4b40;
}

.weekly-report-delivery-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    color: #648075;
    font-size: 0.88rem;
}

.weekly-report-delivery-actions {
    display: grid;
    gap: 10px;
    align-content: start;
}

.weekly-report-delivery-actions form {
    margin: 0;
}

.weekly-report-delivery-actions button {
    width: 100%;
}

.weekly-report-footnote {
    margin: -4px 0 0;
    color: #61786f;
    font-size: 0.92rem;
}

.weekly-report-archive {
    margin-top: 14px;
    border-top: 1px solid rgba(120, 158, 142, 0.18);
    padding-top: 14px;
}

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

.weekly-report-archive-head strong {
    display: block;
    color: #18392e;
    font-size: 1rem;
}

.weekly-report-archive-head p {
    margin: 4px 0 0;
    color: #5d756a;
    font-size: 0.88rem;
}

.weekly-report-archive-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 86px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(120, 158, 142, 0.28);
    background: rgba(246, 251, 248, 0.88);
    color: #29513f;
    font-size: 0.82rem;
    font-weight: 800;
}

.weekly-report-archive-table th:last-child,
.weekly-report-archive-table td:last-child {
    width: 184px;
}

.weekly-report-archive-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weekly-report-archive-delete-form {
    margin: 0;
}

.weekly-report-archive-actions .secondary-btn {
    min-width: 68px;
    text-align: center;
}

.weekly-report-archive-meta {
    margin-top: 4px;
    color: #6b8074;
    font-size: 0.78rem;
}

html[data-theme="dark"] .weekly-report-summary-box,
html[data-theme="dark"] .weekly-report-delivery-box,
html[data-theme="dark"] .weekly-report-delivery-actions,
html[data-theme="dark"] .weekly-report-exam-card,
html[data-theme="dark"] .weekly-report-data-card {
    background: rgba(20, 33, 54, 0.9);
    border-color: rgba(91, 125, 196, 0.28);
}

html[data-theme="dark"] .weekly-report-summary-box span,
html[data-theme="dark"] .weekly-coach-report-meta,
html[data-theme="dark"] .weekly-report-delivery-meta,
html[data-theme="dark"] .weekly-report-footnote,
html[data-theme="dark"] .weekly-report-exam-head span,
html[data-theme="dark"] .weekly-report-exam-card-head span,
html[data-theme="dark"] .weekly-report-exam-kpi span,
html[data-theme="dark"] .weekly-report-exam-detail span,
html[data-theme="dark"] .weekly-report-exam-detail-list span,
html[data-theme="dark"] .weekly-report-exam-table th,
html[data-theme="dark"] .weekly-report-data-card-head span,
html[data-theme="dark"] .weekly-report-data-table th,
html[data-theme="dark"] .weekly-report-daily-pie-center span,
html[data-theme="dark"] .weekly-report-exam-lesson span,
html[data-theme="dark"] .weekly-report-exam-lesson small,
html[data-theme="dark"] .weekly-report-exam-lesson-net span {
    color: #9eb5d8;
}

html[data-theme="dark"] .weekly-report-exam-lesson-stats b,
html[data-theme="dark"] .weekly-report-exam-lesson-net b {
    color: #eef4ff;
}

html[data-theme="dark"] .weekly-report-summary-box p,
html[data-theme="dark"] .weekly-report-delivery-box p,
html[data-theme="dark"] .weekly-report-field label,
html[data-theme="dark"] .weekly-report-delivery-box strong,
html[data-theme="dark"] .weekly-report-exam-head strong,
html[data-theme="dark"] .weekly-report-exam-card-head strong,
html[data-theme="dark"] .weekly-report-exam-kpi strong,
html[data-theme="dark"] .weekly-report-exam-detail strong,
html[data-theme="dark"] .weekly-report-exam-detail-list strong,
html[data-theme="dark"] .weekly-report-exam-table td,
html[data-theme="dark"] .weekly-report-data-card-head strong,
html[data-theme="dark"] .weekly-report-data-table td,
html[data-theme="dark"] .weekly-report-daily-pie-center strong,
html[data-theme="dark"] .weekly-report-daily-legend-item strong,
html[data-theme="dark"] .weekly-report-daily-legend-item span,
html[data-theme="dark"] .weekly-report-list,
html[data-theme="dark"] .weekly-report-exam-lesson strong {
    color: #eef4ff;
}

html[data-theme="dark"] .weekly-report-field textarea {
    background: rgba(14, 24, 41, 0.96);
    border-color: rgba(91, 125, 196, 0.34);
    color: #eef4ff;
}

html[data-theme="dark"] .weekly-report-exam-kpi,
html[data-theme="dark"] .weekly-report-exam-detail,
html[data-theme="dark"] .weekly-report-exam-detail-list div,
html[data-theme="dark"] .weekly-report-daily-legend-item,
html[data-theme="dark"] .weekly-report-exam-lesson {
    border-color: rgba(91, 125, 196, 0.28);
    background:
        radial-gradient(circle at top right, rgba(244, 171, 72, 0.16), transparent 38%),
        rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .exam-summary-box {
    background: linear-gradient(180deg, rgba(19, 35, 59, 0.96), rgba(15, 27, 46, 0.96));
    border-color: #2b466b;
}

html[data-theme="dark"] .exam-stat-card,
html[data-theme="dark"] .exam-section-pill {
    background:
        radial-gradient(circle at top right, rgba(227, 151, 52, 0.16), transparent 38%),
        linear-gradient(180deg, rgba(19, 35, 59, 0.98), rgba(15, 27, 46, 0.98));
    border-color: #315074;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

html[data-theme="dark"] .exam-stat-card--highlight {
    background:
        radial-gradient(circle at top right, rgba(72, 118, 218, 0.2), transparent 40%),
        linear-gradient(180deg, rgba(21, 41, 69, 0.98), rgba(16, 30, 50, 0.98));
}

html[data-theme="dark"] .exam-stat-card > span,
html[data-theme="dark"] .exam-section-pill span,
html[data-theme="dark"] .exam-stat-split small {
    color: #9eb6da;
}

html[data-theme="dark"] .exam-stat-card strong,
html[data-theme="dark"] .exam-section-pill strong,
html[data-theme="dark"] .exam-stat-split b {
    color: #f2f6ff;
}

html[data-theme="dark"] .exam-stat-split > div {
    background: rgba(12, 24, 42, 0.78);
    box-shadow: inset 0 0 0 1px rgba(91, 125, 196, 0.18);
}

html[data-theme="dark"] .weekly-report-toggle {
    background: rgba(19, 35, 59, 0.92);
    border-color: #2b466b;
    color: #e8f1ff;
}

html[data-theme="dark"] .weekly-report-actions .secondary-btn,
html[data-theme="dark"] .weekly-report-archive-actions .secondary-btn {
    background: linear-gradient(180deg, rgba(19, 35, 59, 0.96), rgba(15, 27, 46, 0.96));
    border-color: #315074;
    color: #eef4ff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .weekly-report-actions .primary-btn,
html[data-theme="dark"] .weekly-report-delivery-actions .secondary-btn,
html[data-theme="dark"] .weekly-report-archive-actions .secondary-btn.danger {
    background: linear-gradient(135deg, #f08d26 0%, #d96d12 100%);
    color: #fff7ed;
}

html[data-theme="dark"] .weekly-report-archive-head strong,
html[data-theme="dark"] .weekly-report-archive-head p,
html[data-theme="dark"] .weekly-report-archive-meta {
    color: #dce9ff;
}

html[data-theme="dark"] .weekly-report-archive-head > span {
    background: rgba(19, 35, 59, 0.9);
    border-color: #315074;
    color: #dce9ff;
}

html[data-theme="dark"] .weekly-report-exam-lesson strong {
    background: linear-gradient(135deg, rgba(91, 125, 196, 0.22), rgba(244, 171, 72, 0.18));
    box-shadow: inset 0 0 0 1px rgba(91, 125, 196, 0.22);
}

html[data-theme="dark"] .weekly-report-exam-lesson-stats span {
    background: rgba(14, 24, 41, 0.8);
    box-shadow: inset 0 0 0 1px rgba(91, 125, 196, 0.18);
}

html[data-theme="dark"] .weekly-report-exam-lesson-stats .is-correct {
    background: linear-gradient(180deg, rgba(38, 83, 60, 0.66), rgba(14, 24, 41, 0.92));
}

html[data-theme="dark"] .weekly-report-exam-lesson-stats .is-wrong {
    background: linear-gradient(180deg, rgba(95, 44, 44, 0.66), rgba(14, 24, 41, 0.92));
}

html[data-theme="dark"] .weekly-report-exam-lesson-stats .is-blank {
    background: linear-gradient(180deg, rgba(45, 60, 92, 0.72), rgba(14, 24, 41, 0.92));
}

html[data-theme="dark"] .weekly-report-exam-lesson-net {
    background: linear-gradient(135deg, rgba(91, 125, 196, 0.18), rgba(123, 97, 255, 0.16));
    box-shadow: inset 0 0 0 1px rgba(91, 125, 196, 0.18);
}

html[data-theme="dark"] .weekly-report-daily-pie-center {
    background: rgba(14, 24, 41, 0.96);
    box-shadow: inset 0 0 0 1px rgba(91, 125, 196, 0.24);
}

html[data-theme="dark"] .weekly-report-exam-card-head span {
    background: rgba(166, 111, 34, 0.22);
    border-color: rgba(244, 171, 72, 0.28);
    color: #ffd89e;
}

.coach-task-stage-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.coach-task-stage-copy {
    display: grid;
    gap: 6px;
    max-width: 760px;
}

.coach-task-stage-copy h3 {
    margin-top: 0;
}

.coach-task-stage-copy p {
    margin: 0;
    color: #5d6d82;
    line-height: 1.55;
    font-size: .96rem;
}

.coach-task-stage-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
}

.coach-task-stage-pill,
.coach-task-stage-chip,
.coach-task-mode-badge {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 700;
    white-space: nowrap;
}

.coach-task-stage-pill {
    background: linear-gradient(135deg, #1f3d63 0%, #29547f 55%, #e88324 180%);
    color: #fff;
    box-shadow: 0 10px 18px rgba(31, 61, 99, .16);
}

.coach-task-stage-chip,
.coach-task-mode-badge {
    border: 1px solid #d8e1ed;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    color: #27415f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
}

.coach-task-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    flex-wrap: wrap;
    margin: 12px 0 16px;
    padding: 6px;
    width: 100%;
    border: 2px solid #263f36;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.coach-task-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 14px 0 18px;
}

.coach-task-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "icon title"
        "icon copy";
    gap: 3px 12px;
    align-items: center;
    min-height: 96px;
    padding: 16px;
    border: 1px solid #d6e3ef;
    border-radius: 18px;
    background: #ffffff;
    color: #17324d;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(23, 50, 77, 0.08);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.coach-task-choice:hover {
    transform: translateY(-1px);
    border-color: #f0b06b;
    box-shadow: 0 16px 30px rgba(23, 50, 77, 0.12);
}

.coach-task-choice.active {
    border-color: #f28c28;
    background: linear-gradient(135deg, #fff8ef 0%, #ffffff 62%, #eef6ff 100%);
    box-shadow: 0 18px 34px rgba(232, 112, 24, 0.14);
}

.coach-task-choice-icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #eef6ff;
    color: #1f4f8d;
}

.coach-task-choice.active .coach-task-choice-icon {
    background: linear-gradient(135deg, #f28c28 0%, #e87018 100%);
    color: #ffffff;
}

.coach-task-choice strong {
    grid-area: title;
    color: #102f55;
    font-size: 1rem;
}

.coach-task-choice small {
    grid-area: copy;
    color: #5d6d82;
    font-size: .86rem;
    line-height: 1.35;
}

#sectionWeeklyTask.task-card:has(.coach-task-pane[data-coach-task-pane="weekly_bulk"].active) .coach-task-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin: 12px 0 16px;
    padding: 6px;
    border: 2px solid #263f36;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}

.coach-task-tab {
    border: 0;
    background: transparent;
    color: #4f6b5d;
    border-radius: 999px;
    min-height: 44px;
    padding: 0 18px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
    width: 100%;
}

.coach-task-tab:hover {
    background: rgba(255,255,255,.78);
    color: #214635;
}

.coach-task-tab.active {
    background: linear-gradient(135deg, #1f3d63 0%, #29547f 55%, #e88324 180%);
    color: #fff;
    box-shadow: 0 10px 18px rgba(31, 61, 99, 0.16);
}

.coach-task-pane {
    display: none;
}

.coach-task-pane.active {
    display: block;
}

.coach-task-mode-panel {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 18px 20px;
    border: 1.5px solid #9caec4;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 56%, #f7fbf8 100%);
    box-shadow: 0 10px 24px rgba(31, 49, 72, 0.05);
}

.coach-task-mode-panel--weekly {
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.coach-task-mode-copy {
    display: grid;
    gap: 6px;
}

.coach-task-mode-copy strong {
    color: #1d314b;
}

.coach-task-mode-copy p {
    margin: 0;
    color: #5d6d82;
    line-height: 1.55;
}

.coach-task-pane[data-coach-task-pane="weekly_bulk"].active {
    display: grid;
    gap: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-lock-fieldset {
    display: grid;
    gap: 0;
    padding: 16px;
    border: 2px solid #263f36;
    border-radius: 18px;
    background: #ffffff;
}

.coach-weekly-plan-panel {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    border: 2px solid #263f36;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 49, 72, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.coach-weekly-top-surface {
    display: contents;
}

.coach-weekly-plan-head,
.coach-task-mode-panel--weekly {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.coach-weekly-plan-copy {
    display: grid;
    gap: 4px;
}

.coach-weekly-plan-copy strong,
.coach-weekly-mini-note strong {
    display: block;
    color: #173a2c;
}

.coach-weekly-plan-copy p,
.coach-weekly-mini-note span {
    margin: 6px 0 0;
    color: #4f6a5e;
}

.coach-weekly-date-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.coach-weekly-compact-controls > * {
    min-width: 0;
}

.coach-weekly-date-field input {
    width: 100%;
}

.coach-weekly-compact-controls {
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto 42px 42px;
    gap: 10px;
    align-items: center;
}

.coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-bulk-picker {
    margin-bottom: 0;
    border-color: #9caec4;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 24px rgba(31, 49, 72, 0.05);
}

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

.coach-quick-task-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 16px;
    align-items: start;
}

.coach-quick-task-main {
    display: grid;
    gap: 14px;
}

.coach-quick-topic-strip {
    border: 1px solid #d8e3ef;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    padding: 10px 12px;
    box-shadow: 0 8px 18px rgba(31, 61, 99, .05);
}

.coach-quick-task-section,
.coach-quick-preview {
    border: 1px solid #d8e3ef;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    padding: 14px;
    box-shadow: 0 10px 24px rgba(31, 61, 99, .06);
}

.coach-quick-task-section-head {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.coach-quick-task-section-head strong,
.coach-quick-preview strong {
    color: #17365d;
}

.coach-quick-task-section-head span,
.coach-quick-preview p {
    color: #51677f;
    line-height: 1.45;
}

.coach-quick-type-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.coach-quick-type-card {
    display: grid;
    gap: 6px;
    min-height: 118px;
    padding: 12px;
    border: 1px solid #d8e3ef;
    border-radius: 16px;
    background: #fff;
    color: #17365d;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(31, 61, 99, .06);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.coach-quick-type-card i {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eaf4ff 0%, #dcecff 100%);
    color: #173f70;
    font-size: 1rem;
    box-shadow: inset 0 0 0 1px rgba(23, 63, 112, .06), 0 8px 16px rgba(31, 61, 99, .08);
}

.coach-quick-type-card strong {
    color: #17365d;
}

.coach-quick-type-card span {
    color: #5a7088;
    font-size: .82rem;
    line-height: 1.35;
}

.coach-quick-type-card:hover,
.coach-quick-type-card:focus-visible {
    border-color: #f28a24;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 138, 36, .18), transparent 34%),
        linear-gradient(180deg, #fffaf3 0%, #f7fbff 100%);
    box-shadow: 0 0 0 2px rgba(242, 138, 36, .13), 0 16px 30px rgba(31, 61, 99, .13);
    transform: translateY(-2px);
    outline: none;
}

.coach-quick-type-card:hover i,
.coach-quick-type-card:focus-visible i {
    background: linear-gradient(135deg, #f28a24 0%, #ffad55 100%);
    color: #fff;
    box-shadow: 0 10px 18px rgba(242, 138, 36, .24);
}

.coach-quick-type-card.active {
    border-color: #f28a24;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 138, 36, .20), transparent 34%),
        linear-gradient(180deg, #fff8ef 0%, #f7fbff 100%);
    box-shadow: 0 0 0 2px rgba(242, 138, 36, .18), 0 16px 30px rgba(31, 61, 99, .14);
    transform: translateY(-1px);
}

.coach-quick-type-card.active i {
    background: linear-gradient(135deg, #1f3d63 0%, #315d8e 58%, #f28a24 150%);
    color: #fff;
}

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

.coach-quick-due-box {
    display: grid;
    gap: 8px;
}

.coach-quick-due-box > span {
    color: #17365d;
    font-weight: 800;
}

.coach-quick-due-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.coach-quick-due-options label {
    margin: 0;
}

.coach-quick-due-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.coach-quick-due-options span {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    border: 1px solid #d8e3ef;
    border-radius: 999px;
    background: #fff;
    color: #244e7d;
    padding: 0 12px;
    font-weight: 900;
    cursor: pointer;
}

.coach-quick-due-options input:checked + span {
    border-color: #f28a24;
    background: #fff4e7;
    color: #17365d;
    box-shadow: 0 0 0 2px rgba(242, 138, 36, .14);
}

.coach-quick-hint {
    color: #51677f;
}

.coach-inline-check--modern {
    align-items: center;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.coach-inline-check--modern small {
    display: block;
    color: #5a7088;
    font-weight: 600;
    margin-top: 2px;
}

.coach-quick-preview {
    position: sticky;
    top: 16px;
    display: grid;
    gap: 10px;
    border-color: #c8d8ea;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 138, 36, .14), transparent 34%),
        linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.coach-quick-preview-kicker {
    color: #1f3d63;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.coach-quick-preview-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.coach-quick-preview-meta span {
    border: 1px solid #d8e3ef;
    border-radius: 999px;
    background: #fff;
    color: #244e7d;
    padding: 5px 9px;
    font-size: .78rem;
    font-weight: 800;
}

.coach-quick-submit-row {
    justify-content: flex-end;
}

html[data-theme="dark"] .coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-bulk-picker {
    border-color: rgba(91, 125, 196, 0.28);
    background: linear-gradient(180deg, rgba(19, 32, 52, 0.96), rgba(12, 24, 40, 0.96));
    box-shadow: 0 14px 28px rgba(2, 8, 23, 0.24);
}

html[data-theme="dark"] .coach-weekly-board-shell {
    border-color: rgba(91, 125, 196, 0.28);
    background: rgba(19, 32, 52, 0.98);
    box-shadow: 0 14px 28px rgba(2, 8, 23, 0.24);
}

.coach-weekly-mini-note {
    border: 1px dashed #c9ddd1;
    border-radius: 12px;
    padding: 12px 14px;
    background: #f7fbf8;
}

.coach-weekly-plan-grid {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.coach-weekly-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 6px;
    max-width: 100%;
}

.coach-weekly-board--full {
    margin-top: 12px;
    padding-left: 0;
}

.coach-weekly-sidebar {
    display: grid;
    gap: 14px;
}

.coach-weekly-sidebar-card {
    border: 1px solid #d5e2da;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdfc 0%, #f5faf7 100%);
    padding: 14px;
    box-shadow: 0 10px 24px rgba(24, 78, 53, 0.06);
}

.coach-weekly-sidebar-head {
    display: grid;
    gap: 4px;
    margin-bottom: 12px;
}

.coach-weekly-sidebar-head strong {
    color: #173a2c;
}

.coach-weekly-sidebar-head span {
    color: #597166;
    font-size: .82rem;
    line-height: 1.45;
}

.coach-weekly-card-builder {
    display: grid;
    gap: 10px;
}

.coach-weekly-builder-group--curriculum {
    order: 1;
}

.coach-weekly-builder-group--document {
    order: 2;
}

.coach-weekly-builder-group--task {
    order: 3;
}

.coach-weekly-card-builder > .coach-weekly-card-actions {
    order: 4;
}

.coach-weekly-builder-group {
    border: 1px solid #d9e5dd;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.coach-weekly-builder-group summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 14px;
    font-weight: 800;
    color: #274d3c;
}

.coach-weekly-builder-group summary::-webkit-details-marker {
    display: none;
}

.coach-weekly-builder-group summary::after {
    content: "+";
    float: right;
    color: #5c7669;
}

.coach-weekly-builder-group[open] summary::after {
    content: "-";
}

.coach-weekly-builder-group-body {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
    border-top: 1px solid #e6efe9;
}

.coach-weekly-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.coach-weekly-card-actions .task-submit-btn {
    min-width: 0;
}

#sectionWeeklyTask .task-submit-btn.ghost {
    background: linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
    border-color: #c8d8ea;
    color: #315178;
    box-shadow: none;
}

#sectionWeeklyTask .task-submit-btn.ghost:hover,
#sectionWeeklyTask .task-submit-btn.ghost.active {
    background: linear-gradient(180deg, #eef5ff 0%, #dfeaf8 100%);
    border-color: #abc2df;
    color: #203d61;
}

.coach-weekly-toolbar-action {
    display: flex;
    align-items: end;
}

.coach-weekly-card-pool {
    display: grid;
    gap: 10px;
    max-height: min(56vh, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #9fc4b0 transparent;
}

.coach-weekly-card-pool::-webkit-scrollbar {
    width: 8px;
}

.coach-weekly-card-pool::-webkit-scrollbar-track {
    background: transparent;
}

.coach-weekly-card-pool::-webkit-scrollbar-thumb {
    background: rgba(123, 161, 139, 0.75);
    border-radius: 999px;
}

.coach-weekly-pool-card {
    border: 1px dashed #bdd3c7;
    border-radius: 16px;
    background: #fff;
    padding: 12px 44px 12px 12px;
    cursor: grab;
    display: grid;
    gap: 6px;
    box-shadow: 0 8px 16px rgba(24, 78, 53, 0.05);
    position: relative;
}

.coach-weekly-pool-card-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    min-height: 28px;
    z-index: 2;
}

.coach-weekly-pool-card strong {
    color: #173a2c;
    font-size: .92rem;
}

.coach-weekly-pool-card p {
    margin: 0;
    color: #5b756a;
    font-size: .82rem;
    line-height: 1.5;
    display: -webkit-box;
    overflow: hidden;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.coach-weekly-pool-card.is-dragging {
    opacity: .5;
}

.coach-weekly-pool-card--library {
    cursor: pointer;
}

.coach-weekly-pool-card.is-selected {
    border-style: solid;
    border-color: #7aa5db;
    box-shadow: 0 14px 26px rgba(42, 84, 127, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.coach-weekly-board-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 14px 12px;
    border: 2px solid #263f36;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(24, 78, 53, 0.06);
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-board-shell {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: thin;
    scrollbar-color: #9fc4b0 transparent;
}

.coach-weekly-workspace {
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.coach-weekly-layout-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.coach-weekly-layout-toolbar > span {
    color: #4d6a5d;
    font-size: .82rem;
    font-weight: 850;
}

.coach-weekly-layout-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid #cfdfd6;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 18px rgba(24, 78, 53, 0.05);
}

.coach-weekly-layout-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #2e5947;
    font-size: .82rem;
    font-weight: 900;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.coach-weekly-layout-toggle button:hover,
.coach-weekly-layout-toggle button:focus-visible {
    background: #eef8f2;
    outline: none;
}

.coach-weekly-layout-toggle button.active {
    background: #1f6d4d;
    color: #fff;
    box-shadow: 0 8px 16px rgba(31, 109, 77, 0.18);
}

@media (min-width: 981px) {
    .coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-weekly-workspace {
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }

    .coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-weekly-history-band {
        margin-left: 0;
        width: 100%;
    }

    .coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-weekly-board-toolbar,
    .coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-weekly-plan-head,
    .coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-weekly-mini-note {
        margin-left: 0;
        width: auto;
    }

    .coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-weekly-slot {
        flex-basis: clamp(188px, 18vw, 220px);
        min-width: clamp(188px, 18vw, 220px);
    }

    .coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot {
        flex-basis: auto;
        min-width: 0;
    }

    .coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-weekly-board-shell {
        margin-top: 30px;
        margin-left: 0;
        width: 100%;
    }

    .coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-weekly-board--full {
        margin-top: 0;
    }
}

@media (min-width: 981px) and (max-width: 1420px) {
    .coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-weekly-workspace {
        margin-top: 12px;
    }

    #sectionWeeklyTask.task-card:has(.coach-task-pane[data-coach-task-pane="weekly_bulk"].active) {
        padding-top: 12px;
    }

    .coach-task-pane[data-coach-task-pane="weekly_bulk"].active .coach-weekly-board-shell {
        margin-top: 38px;
        margin-left: 0;
        width: 100%;
    }
}

.coach-weekly-board-shell.has-side-panel {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.coach-weekly-board-shell.is-library-open {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}

.coach-weekly-board-shell > .coach-weekly-board {
    order: 1;
}

.coach-weekly-board-shell > .coach-weekly-side-panel,
.coach-weekly-board-shell > .coach-weekly-library-panel {
    order: 2;
}

.coach-weekly-board-shell.is-library-open > .coach-weekly-side-panel {
    display: none;
}

.coach-weekly-side-panel {
    min-width: 0;
    position: sticky;
    top: 78px;
}

.coach-weekly-board-day {
    border: 2px solid #263f36;
    border-radius: 18px;
    background: #f8fcfa;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    align-items: stretch;
    overflow: hidden;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-board {
    --coach-weekly-day-width: 208px;
    grid-template-columns: repeat(7, minmax(var(--coach-weekly-day-width), var(--coach-weekly-day-width)));
    align-items: start;
    width: max-content;
    min-width: calc((7 * var(--coach-weekly-day-width)) + (6 * 8px));
    overflow-x: visible;
    overflow-y: visible;
    gap: 8px;
    padding-bottom: 14px;
    scrollbar-width: thin;
    scrollbar-color: #9fc4b0 transparent;
}

@media (min-width: 981px) {
    .coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-board {
        --coach-weekly-day-width: 228px;
    }
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-board--full {
    padding-left: 0;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-board-day {
    border-radius: 14px;
    grid-template-columns: 1fr;
    align-self: start;
    min-height: 0;
    min-width: 180px;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-day-ribbon {
    border-right: 0;
    border-bottom: 1px solid #dde8e1;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-board-head {
    min-height: auto;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-board-head > div {
    grid-template-columns: auto auto;
    grid-template-rows: 1fr;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-board-head strong,
.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-board-head span {
    writing-mode: horizontal-tb;
    transform: none;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-board-head strong {
    font-size: .88rem;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-board-head span {
    font-size: .62rem;
}

.coach-weekly-board-head {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0;
    color: #fff;
    min-height: 100%;
    height: 100%;
}

.coach-weekly-board-head strong,
.coach-weekly-board-head span {
    display: block;
}

.coach-weekly-day-ribbon {
    border-right: 1px solid #dde8e1;
    display: flex;
    min-height: 100%;
}

.coach-weekly-day-ribbon .coach-weekly-board-head {
    flex: 1 1 auto;
    width: 100%;
}

.coach-weekly-board-head > div {
    display: grid;
    grid-template-rows: auto auto;
    justify-items: center;
    align-content: center;
    gap: 10px;
    width: 100%;
    min-height: 100%;
    padding: 12px 0 10px;
}

.coach-weekly-board-head strong,
.coach-weekly-board-head span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0;
}

.coach-weekly-board-head strong {
    font-size: 1.08rem;
    letter-spacing: .02em;
}

.coach-weekly-board-head span {
    font-size: .76rem;
    color: rgba(255,255,255,.92);
}

.coach-weekly-day-content {
    display: grid;
    grid-template-rows: auto auto;
    align-content: start;
    min-width: 0;
    overflow: hidden;
}

.coach-weekly-library-panel {
    position: sticky;
    top: 18px;
    border: 1px solid #d5e2da;
    border-radius: 20px;
    background: linear-gradient(180deg, #fbfdfc 0%, #f3faf6 100%);
    box-shadow: 0 16px 34px rgba(24, 78, 53, 0.08);
    padding: 16px;
    display: grid;
    gap: 12px;
    min-width: 0;
}

.coach-weekly-library-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.coach-weekly-library-head strong,
.coach-weekly-library-head span {
    display: block;
}

.coach-weekly-library-head span {
    margin-top: 4px;
    color: #5c756a;
    font-size: .82rem;
    line-height: 1.45;
}

.coach-weekly-library-status {
    border: 1px solid #dbe9e0;
    border-radius: 14px;
    background: #fff;
    color: #335849;
    padding: 10px 12px;
    font-size: .84rem;
    line-height: 1.5;
}

.coach-weekly-library-actions {
    display: flex;
    justify-content: flex-end;
}

.coach-weekly-library-list {
    display: grid;
    gap: 10px;
    max-height: min(62vh, 680px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #9fc4b0 transparent;
}

.coach-weekly-library-list::-webkit-scrollbar {
    width: 8px;
}

.coach-weekly-library-list::-webkit-scrollbar-track {
    background: transparent;
}

.coach-weekly-library-list::-webkit-scrollbar-thumb {
    background: rgba(123, 161, 139, 0.75);
    border-radius: 999px;
}

.coach-weekly-library-empty {
    border: 1px dashed #cfe0d6;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    color: #5f786d;
    background: rgba(255, 255, 255, 0.72);
}

.coach-weekly-board-shell.is-card-select-mode .coach-weekly-slot:not(.is-locked) {
    border-color: #9fc4df;
    box-shadow: inset 0 0 0 1px rgba(122, 165, 219, 0.12);
}

.coach-weekly-board-shell.is-card-select-mode .coach-weekly-slot:not(.is-locked):hover {
    border-color: #6e9ad2;
    box-shadow: 0 10px 22px rgba(42, 84, 127, 0.14);
}

.coach-weekly-board-head.day-1 { background: #d37a63; }
.coach-weekly-board-head.day-2 { background: #a9c995; }
.coach-weekly-board-head.day-3 { background: #4f8895; }
.coach-weekly-board-head.day-4 { background: #8b78be; }
.coach-weekly-board-head.day-5 { background: #de8d92; }
.coach-weekly-board-head.day-6 { background: #b66a00; }
.coach-weekly-board-head.day-7 { background: #4f82d4; }

.coach-weekly-board-head .coach-mini-btn {
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.28);
    color: #fff;
}

.coach-weekly-day-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #dde8e1;
    font-size: .84rem;
    color: #406154;
    font-weight: 700;
}

.coach-weekly-day-summary-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.coach-weekly-day-summary-count strong {
    color: #173a2c;
    font-size: .98rem;
}

.coach-weekly-add-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid #c6dbcf;
    background: #fff;
    color: #214635;
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(24, 78, 53, 0.08);
}

.coach-weekly-add-icon:hover {
    border-color: #8db59f;
    background: #f4faf7;
}

.coach-weekly-day-items {
    display: grid;
    gap: 10px;
    padding: 12px;
    align-content: start;
}

.coach-weekly-board--fixed .coach-weekly-board-day {
    min-height: 100%;
}

.coach-weekly-slot-list {
    display: flex;
    gap: 10px;
    padding: 10px;
    align-items: stretch;
    align-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    min-height: 78px;
    scrollbar-width: thin;
    scrollbar-color: #9fc4b0 transparent;
}

.coach-weekly-board-day.is-short-drop-zone .coach-weekly-slot-list {
    min-height: 180px;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-day-summary {
    padding: 7px 8px;
    font-size: .69rem;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-add-icon {
    width: 26px;
    height: 26px;
    font-size: .92rem;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px;
    align-content: start;
    overflow-x: visible;
    overflow-y: visible;
    min-height: 180px;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot {
    border-radius: 14px;
    gap: 4px;
    padding: 4px;
    max-width: none;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    align-content: start;
    justify-self: stretch;
    align-self: start;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    align-items: center;
    width: 100%;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot-add-btn {
    grid-column: 1;
    width: 100%;
    justify-self: start;
    gap: 4px;
    min-height: 22px;
    min-width: 0;
    padding: 0 4px;
    font-size: .6rem;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot-add-btn span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-delete-icon {
    grid-column: 2;
    grid-row: 1;
    width: 28px;
    height: 28px;
    min-width: 28px;
    flex: 0 0 28px;
    justify-self: end;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot-badges {
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot-label span {
    font-size: .66rem;
    text-align: center;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot-label textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 42px;
    height: 42px;
    max-height: 90px;
    margin: 0;
    justify-self: start;
    padding: 6px 7px;
    font-size: .64rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
    resize: vertical;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot-preview {
    padding: 6px 7px;
    gap: 5px;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot-preview p {
    font-size: .62rem;
    line-height: 1.32;
    -webkit-line-clamp: 2;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot-meta {
    gap: 4px;
}

.coach-weekly-workspace[data-weekly-layout="vertical"] .coach-weekly-slot-meta span {
    min-height: 19px;
    padding: 0 5px;
    font-size: .58rem;
}

.coach-weekly-slot-list::-webkit-scrollbar {
    height: 8px;
}

.coach-weekly-slot-list::-webkit-scrollbar-track {
    background: transparent;
}

.coach-weekly-slot-list::-webkit-scrollbar-thumb {
    background: rgba(123, 161, 139, 0.75);
    border-radius: 999px;
}

.coach-weekly-slot {
    border: 2px solid #263f36;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    box-shadow: 0 10px 24px rgba(24, 78, 53, 0.06);
    padding: 10px;
    box-sizing: border-box;
    display: grid;
    gap: 8px;
    cursor: grab;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    min-width: 210px;
    max-width: 230px;
    flex: 0 0 220px;
    min-height: 190px;
    overflow: hidden;
}

.coach-weekly-slot-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
}

.coach-weekly-slot-head .coach-weekly-delete-icon {
    margin-left: auto;
}


.coach-weekly-slot:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(24, 78, 53, 0.1);
}

.coach-weekly-slot.is-filled {
    border-color: #678f78;
}

.coach-weekly-board-day.is-locked,
.coach-weekly-slot.is-locked {
    opacity: .82;
}

.coach-weekly-slot.is-locked textarea {
    background: #f3f6f4;
    cursor: not-allowed;
}

.coach-weekly-slot.is-dragging {
    opacity: .45;
    transform: scale(.98);
}

.coach-weekly-slot.is-drop-target {
    border-color: #2f7c5a;
    box-shadow: 0 0 0 3px rgba(47, 124, 90, 0.15);
}

.coach-weekly-board-day.is-drop-target .coach-weekly-slot-list {
    border-radius: 12px;
    outline: 2px dashed #2f7c5a;
    outline-offset: -6px;
    background: rgba(47, 124, 90, 0.07);
}

.coach-weekly-slot-grip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #d7e3db;
    background: #f5faf7;
    color: #507163;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.coach-weekly-slot-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #cfe0d6;
    background: #fff;
    color: #214635;
    font-size: .73rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
    max-width: 100%;
    min-width: 0;
}

.coach-weekly-slot-add-btn:hover,
.coach-weekly-slot-add-btn:focus-visible {
    transform: translateY(-1px);
    border-color: #9fc4b0;
    background: #eef8f2;
    box-shadow: 0 10px 20px rgba(24, 78, 53, 0.08);
}

.coach-weekly-slot-add-btn i {
    font-size: .78rem;
    line-height: 1;
}

.coach-weekly-slot-add-btn span {
    white-space: nowrap;
}

.coach-weekly-slot-badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.coach-weekly-slot-badge {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid #cfe0d6;
    background: rgba(255, 255, 255, 0.92);
    color: #214635;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(24, 78, 53, 0.06);
    flex: 0 0 28px;
}

.coach-weekly-slot-badge i {
    font-size: .82rem;
    line-height: 1;
}

.coach-weekly-slot-badge[data-weekly-slot-badge="pdf"] {
    color: #a13c3c;
    border-color: rgba(214, 92, 92, 0.32);
}

.coach-weekly-slot-badge[data-weekly-slot-badge="video"] {
    color: #2a547f;
    border-color: rgba(110, 154, 210, 0.5);
}

.coach-weekly-template-save {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    padding: 14px 16px;
    border: 1px solid #d4e2d9;
    border-radius: 16px;
    background: #f7fbf8;
}

.coach-weekly-toolbar-action {
    margin-left: auto;
}

.coach-weekly-saved-template-wrap {
    display: grid;
    gap: 10px;
    min-width: 0;
    align-self: start;
}

.coach-weekly-saved-template-wrap.is-empty {
    align-self: stretch;
}

.coach-weekly-template-empty-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    padding: 10px 12px 10px 16px;
    border: 1px dashed #c8ddd1;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfefc 0%, #f2faf5 100%);
}

.coach-weekly-template-empty-callout strong,
.coach-weekly-template-empty-state strong {
    display: block;
    color: #173a2c;
    font-weight: 900;
}

.coach-weekly-template-empty-callout span,
.coach-weekly-template-empty-state span {
    display: block;
    margin-top: 3px;
    color: #5d776b;
    font-size: .86rem;
    line-height: 1.45;
}

.coach-weekly-template-create-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #d5e3d9;
    border-radius: 999px;
    background: #fff;
    color: #174833;
    font-weight: 850;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 8px 18px rgba(23, 72, 51, 0.06);
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.coach-weekly-template-create-btn:hover {
    transform: translateY(-1px);
    border-color: #9fc4b0;
    background: #eef8f2;
}

.coach-weekly-template-tools {
    display: contents;
}

.coach-weekly-template-tools label {
    display: grid;
    gap: 8px;
    margin: 0;
    align-self: stretch;
}

.coach-weekly-template-tools label.coach-weekly-template-select-field {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.coach-weekly-template-select-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

.coach-weekly-template-select-field select {
    min-width: 240px;
}

.coach-weekly-template-select-field .helper-note {
    display: none;
}

.coach-weekly-template-source {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    align-self: center;
    justify-self: center;
    padding: 4px;
    border: 1px solid #b9d2c5;
    border-radius: 12px;
    background: #edf6f1;
    box-shadow: inset 0 1px 2px rgba(27, 87, 63, .08);
    white-space: nowrap;
}

.coach-weekly-template-source-option {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 30px;
    margin: 0;
    padding: 5px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: rgba(255, 255, 255, .62);
    color: #315f4c;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.coach-weekly-template-source-option strong {
    font-size: .8rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.coach-weekly-template-source input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.coach-weekly-template-source-option:has(input:checked) {
    border-color: #176b51;
    background: #176b51;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(23, 107, 81, .22);
}

.coach-weekly-template-source-option:has(input:disabled) {
    opacity: .38;
    cursor: not-allowed;
    box-shadow: none;
}

.coach-weekly-template-source-option:has(input:disabled) input {
    cursor: not-allowed;
}

.coach-weekly-saved-template-wrap {
    display: grid;
    align-content: start;
}

.coach-weekly-saved-template-wrap:not(.is-empty) {
    display: contents;
}

.coach-weekly-saved-template-wrap .coach-weekly-toolbar-action {
    display: flex;
    justify-content: flex-end;
    margin-left: 0;
}

.coach-weekly-saved-template-wrap .task-submit-btn {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
}

.coach-weekly-template-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #b9d2c5;
    border-radius: 12px;
    background: #edf6f1;
    color: #174833;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(23, 72, 51, 0.06);
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.coach-weekly-template-page-icon:hover {
    transform: translateY(-1px);
    border-color: #176b51;
    background: #dff1e8;
}

.coach-weekly-template-empty-state {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding: 18px;
    border: 1px dashed #c8ddd1;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfefc 0%, #f4faf6 100%);
}

#sectionWeeklyTask .task-submit-row {
    gap: 14px;
    flex-wrap: wrap;
}

.coach-weekly-action-dialog {
    width: min(560px, calc(100vw - 32px));
    max-width: 560px;
}

#coachTaskSendSummaryModal .coach-weekly-action-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

#coachTaskSendSummaryModal .coach-standard-modal-heading {
    flex: 1 1 auto;
}

#coachTaskSendSummaryModal .coach-mini-btn {
    flex: 0 0 auto;
    margin-left: auto;
}

.coach-weekly-template-preview-dialog {
    width: min(1440px, calc(100vw - 24px));
    max-width: 1440px;
}

.coach-weekly-support-launcher {
    display: flex;
    justify-content: flex-start;
    margin: 10px 0;
}

.coach-weekly-support-launcher--top {
    margin: 0;
}

.coach-weekly-support-launcher--toolbar {
    margin: 0 auto 0 0;
}

.coach-weekly-support-launcher .task-submit-btn {
    border-color: #9caec4;
    background: #edf5ff;
    color: #183e67;
    font-weight: 900;
}

.coach-weekly-support-suggestions.is-open {
    position: fixed;
    z-index: 1250;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(860px, calc(100vw - 28px));
    max-height: calc(100vh - 42px);
    overflow: auto;
    border: 1px solid #d7e3db;
    border-radius: 20px;
    background: linear-gradient(180deg, #fffdf9 0%, #f7f3ec 100%);
    box-shadow: 0 24px 48px rgba(18, 28, 43, 0.22);
    padding: 16px;
}

.coach-weekly-support-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    margin-bottom: 8px;
    z-index: 1;
}

.coach-template-preview-modal--floating {
    pointer-events: none;
}

.coach-template-preview-modal--floating .coach-template-preview-backdrop {
    background: transparent;
    pointer-events: none;
}

.coach-template-preview-modal--floating .coach-template-preview-dialog {
    pointer-events: auto;
}

.coach-template-preview-head--draggable {
    cursor: move;
    user-select: none;
}

.coach-template-preview-head--draggable *,
.coach-template-preview-head--draggable strong,
.coach-template-preview-head--draggable span,
.coach-template-preview-head--draggable div {
    cursor: move;
}

.coach-template-preview-head--draggable button,
.coach-template-preview-head--draggable input,
.coach-template-preview-head--draggable textarea,
.coach-template-preview-head--draggable select {
    cursor: pointer;
}

.coach-template-preview-head--draggable.is-dragging {
    cursor: grabbing;
}

body.is-weekly-slot-picker-dragging,
body.is-weekly-slot-picker-dragging * {
    cursor: grabbing !important;
}

.coach-weekly-action-body {
    display: grid;
    gap: 12px;
}

.coach-weekly-slot-picker-tabs {
    display: flex;
    gap: 10px;
    padding: 0 18px 8px;
    flex-wrap: wrap;
}

.coach-weekly-slot-picker-tab {
    border: 1px solid #cfe0d6;
    background: rgba(255, 255, 255, 0.9);
    color: #214635;
    border-radius: 999px;
    min-height: 36px;
    padding: 0 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.coach-weekly-slot-picker-tab:hover,
.coach-weekly-slot-picker-tab:focus-visible {
    transform: translateY(-1px);
    border-color: #9fc4b0;
    background: #eef8f2;
    box-shadow: 0 12px 22px rgba(24, 78, 53, 0.08);
}

.coach-weekly-slot-picker-tab.active {
    background: #1f6d4d;
    border-color: #1f6d4d;
    color: #fff;
}

.coach-weekly-slot-picker-status {
    border: 1px solid #dbe9e0;
    border-radius: 14px;
    background: #fff;
    color: #335849;
    padding: 10px 12px;
    font-size: .84rem;
    line-height: 1.5;
}

.coach-weekly-slot-picker-list {
    display: grid;
    gap: 10px;
    max-height: min(52vh, 520px);
    overflow-y: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
}

.coach-weekly-slot-picker-card {
    cursor: pointer;
}

.coach-weekly-slot-picker-card.is-selected {
    border-color: #6e9ad2;
    box-shadow: 0 14px 28px rgba(42, 84, 127, 0.12);
}

.coach-weekly-slot-picker-empty {
    border: 1px dashed #cfe0d6;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
    color: #5f786d;
    background: rgba(255, 255, 255, 0.72);
}

.coach-weekly-template-name-modal-field {
    display: grid;
    gap: 8px;
    margin: 0;
}

.coach-weekly-slot-picker-dialog {
    position: fixed;
    inset: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 36px));
    max-width: 560px;
    max-height: min(84vh, 760px);
    margin: 0;
    overflow: auto;
}

.coach-weekly-slot-picker-dialog .coach-weekly-action-body {
    max-height: min(calc(84vh - 150px), 560px);
    overflow: auto;
    padding-right: 4px;
}

.coach-weekly-action-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.coach-weekly-template-name {
    margin: 0;
}

.coach-weekly-history-band {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d3e4d9;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfefc 0%, #f4faf7 100%);
    box-shadow: 0 12px 28px rgba(24, 78, 53, 0.05);
    box-sizing: border-box;
}

.coach-weekly-history {
    display: grid;
    gap: 10px;
}

.coach-weekly-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.coach-weekly-history-head strong {
    color: #173a2c;
    font-size: 1.02rem;
}

.coach-weekly-history-head p {
    margin: 4px 0 0;
    color: #5c7669;
}

.coach-weekly-history-empty {
    border: 1px dashed #c9ddd1;
    border-radius: 16px;
    background: #f8fcf9;
    padding: 18px;
    color: #5a7367;
    font-weight: 700;
}

.coach-weekly-history-list {
    display: grid;
    gap: 8px;
}

.coach-weekly-history-list--compact {
    gap: 8px;
}

.coach-weekly-history-card {
    border: 2px solid #263f36;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(24, 78, 53, 0.04);
    width: 100%;
    box-sizing: border-box;
}

.coach-weekly-history-card--compact {
    overflow: visible;
}

.coach-weekly-history-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
}

.coach-weekly-history-card--compact .coach-weekly-history-summary {
    cursor: default;
}

.coach-weekly-history-card--compact .coach-weekly-history-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

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

.coach-weekly-history-title {
    display: grid;
    gap: 2px;
}

.coach-weekly-history-title strong {
    color: #173a2c;
    font-size: .9rem;
}

.coach-weekly-history-title span,
.coach-weekly-history-metrics span {
    color: #5f786b;
    font-size: .8rem;
    font-weight: 700;
}

.coach-weekly-history-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.coach-weekly-history-card--compact .coach-weekly-history-metrics {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    justify-content: end;
    column-gap: 10px;
    row-gap: 8px;
    min-width: 0;
}

.coach-weekly-history-metrics form {
    margin: 0;
    display: inline-flex;
}

.coach-weekly-history-body {
    padding: 0 18px 18px;
    display: grid;
    gap: 14px;
}

.coach-weekly-history-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.coach-weekly-history-stat {
    border: 1px solid #dbe8df;
    border-radius: 14px;
    background: #fff;
    padding: 12px 14px;
    display: grid;
    gap: 4px;
}

.coach-weekly-history-stat span {
    color: #5a7367;
    font-size: .84rem;
    font-weight: 700;
}

.coach-weekly-history-stat strong {
    color: #173a2c;
    font-size: 1.18rem;
}

.coach-weekly-history-board {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 6px;
}

.coach-weekly-history-day {
    border: 1px solid #d9e6dd;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
}

.coach-weekly-history-day-ribbon {
    border-right: 1px solid #dbe8df;
}

.coach-weekly-history-day-head {
    min-height: 100%;
    padding: 12px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.coach-weekly-history-day-head strong,
.coach-weekly-history-day-head span {
    color: inherit;
    display: block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0;
}

.coach-weekly-history-day-head span {
    font-size: .76rem;
    font-weight: 700;
}

.coach-weekly-history-day-head strong {
    font-size: 1.04rem;
}

.coach-weekly-history-day-head.day-1 { background: #d37a63; }
.coach-weekly-history-day-head.day-2 { background: #a9c995; }
.coach-weekly-history-day-head.day-3 { background: #4f8895; }
.coach-weekly-history-day-head.day-4 { background: #8b78be; }
.coach-weekly-history-day-head.day-5 { background: #de8d92; }
.coach-weekly-history-day-head.day-6 { background: #b66a00; }
.coach-weekly-history-day-head.day-7 { background: #4f82d4; }

.coach-weekly-history-day-content {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
}

.coach-weekly-history-day-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #dbe8df;
    color: #5a7367;
    font-size: .84rem;
    font-weight: 700;
}

.coach-weekly-history-day-summary strong {
    color: #173a2c;
}

.coach-weekly-history-day-body {
    display: flex;
    gap: 10px;
    padding: 12px;
    align-items: stretch;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: #9fc4b0 transparent;
}

.coach-weekly-history-day-body::-webkit-scrollbar {
    height: 8px;
}

.coach-weekly-history-day-body::-webkit-scrollbar-thumb {
    background: rgba(123, 161, 139, 0.75);
    border-radius: 999px;
}

.coach-weekly-history-day-body::-webkit-scrollbar-track {
    background: transparent;
}

.coach-weekly-history-task {
    border: 1px solid #d7e5dc;
    border-radius: 14px;
    background: #fdfefd;
    padding: 10px;
    display: grid;
    gap: 6px;
    min-width: 210px;
    max-width: 232px;
    flex: 0 0 220px;
    min-height: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.coach-weekly-history-task-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.coach-weekly-history-task strong {
    color: #173a2c;
    font-size: .92rem;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.coach-weekly-history-task p {
    margin: 0;
    color: #5d756a;
    font-size: .84rem;
    line-height: 1.5;
    white-space: pre-line;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.coach-weekly-history-day-empty {
    border: 1px dashed #d0e1d6;
    border-radius: 14px;
    background: #f8fcf9;
    min-height: 120px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #72887c;
    font-weight: 700;
    padding: 12px;
    min-width: 210px;
    flex: 0 0 220px;
}

.coach-weekly-template-archive {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.coach-weekly-template-row {
    border: 1px solid #d8e5dd;
    border-radius: 16px;
    background: #fff;
    padding: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
}

.coach-weekly-template-row-form {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) auto;
    gap: 12px;
    align-items: end;
}

.coach-template-tabs {
    margin-bottom: 16px;
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    gap: 6px;
    padding: 4px;
    border: 1px solid #cbd8e5;
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 24px rgba(22, 40, 61, .06);
}

.coach-template-tabs .admin-subtab-btn {
    min-width: 0;
    min-height: 38px;
    padding: 8px 14px;
    border-color: transparent;
    border-radius: 6px;
    background: transparent;
    color: #607086;
    font-weight: 800;
    letter-spacing: 0;
    white-space: normal;
    line-height: 1.18;
    text-align: center;
    box-shadow: none;
}

.coach-template-tabs .admin-subtab-btn.active {
    border-color: #17385f;
    background: #17385f;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(23, 56, 95, .18);
}

.coach-weekly-template-row label,
.coach-weekly-template-row-form label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.coach-weekly-template-row label span {
    color: #5d7669;
    font-size: .82rem;
    font-weight: 700;
}

.coach-weekly-template-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.coach-weekly-template-row-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #d5e3d9;
    background: #f7fbf8;
    color: #4f6a5e;
    font-size: .8rem;
    font-weight: 700;
}

.coach-weekly-template-row-actions {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
}

.coach-weekly-template-row-actions form {
    margin: 0;
    display: inline-flex;
}

.coach-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    width: 36px;
    min-width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    font-size: .88rem;
    line-height: 1;
}

.coach-icon-btn--primary {
    background: #1f4a72 !important;
    border-color: #1f4a72 !important;
    color: #fff !important;
    box-shadow: 0 10px 18px rgba(31, 74, 114, 0.18);
}

.coach-icon-btn.is-primary {
    background: #234b70 !important;
    border-color: #234b70 !important;
    color: #fff !important;
}

.coach-template-hub {
    display: grid;
    gap: 16px;
}

.coach-template-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid rgba(36, 76, 64, 0.16);
    border-radius: 16px;
    padding: 14px 16px;
    background:
        radial-gradient(circle at 92% 8%, rgba(216, 123, 84, 0.14), transparent 26%),
        radial-gradient(circle at 8% 18%, rgba(75, 137, 126, 0.11), transparent 32%),
        linear-gradient(135deg, #f9fcf8 0%, #eef7f1 48%, #f7f1e8 100%);
    box-shadow: 0 10px 22px rgba(37, 68, 55, 0.06);
}

.coach-template-kicker,
.coach-template-lane-eyebrow {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(35, 75, 112, 0.09);
    color: #234b70;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.coach-template-hero h4,
.coach-template-lane h5 {
    margin: 6px 0 0;
    color: #183f31;
    font-size: 1.12rem;
}

.coach-template-hero p,
.coach-template-lane p,
.coach-template-empty-lane span {
    margin: 6px 0 0;
    color: #597267;
    line-height: 1.38;
}

.coach-template-hero-stats {
    display: flex;
    gap: 6px;
}

.coach-template-hero-stats span,
.coach-template-count-pill {
    border: 1px solid rgba(36, 76, 64, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
    color: #244d3b;
    font-weight: 800;
    padding: 8px 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.coach-template-hero-stats strong {
    display: block;
    color: #d67a41;
    font-size: 1.12rem;
    line-height: 1;
}

.coach-template-lanes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.coach-template-lane {
    display: grid;
    gap: 12px;
    border: 2px solid #263f36;
    border-radius: 22px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 252, 249, 0.98));
    box-shadow: 0 14px 28px rgba(32, 65, 50, 0.06);
}

.coach-template-lane--ready {
    border-top: 5px solid #d67a41;
}

.coach-template-lane--mine {
    border-top: 5px solid #2f7f63;
}

.coach-template-lane-head {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: flex-start;
}

.coach-template-lane-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.coach-template-lane-toggle {
    display: none;
}

.coach-template-count-pill {
    white-space: nowrap;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: .8rem;
}

.coach-template-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 2px solid #263f36;
    border-radius: 18px;
    padding: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 253, 251, 0.96));
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.coach-template-card:hover {
    transform: translateY(-1px);
    border-color: #bdd7c8;
    box-shadow: 0 14px 24px rgba(30, 64, 46, 0.08);
}

.coach-template-card-main,
.coach-template-card-form {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.coach-template-card-main strong {
    color: #173f2f;
    font-size: .96rem;
    line-height: 1.28;
}

.coach-template-badge {
    width: fit-content;
    border-radius: 999px;
    padding: 4px 9px;
    background: #fff3e9;
    color: #a45124;
    font-size: .72rem;
    font-weight: 900;
}

.coach-template-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.coach-template-card-meta span {
    border: 1px solid #d8e5dd;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f7fbf8;
    color: #587166;
    font-size: .75rem;
    font-weight: 800;
}

.coach-template-card-meta .coach-template-date {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.coach-template-card-meta .coach-template-usage {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    border-color: #c7ddd2;
    background: #edf8f2;
    color: #2f6952;
}

.coach-template-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.coach-template-card-actions form {
    margin: 0;
    display: inline-flex;
}

.coach-template-card-form label {
    display: grid;
    gap: 5px;
    margin: 0;
}

.coach-template-card-form label span {
    color: #5d7669;
    font-size: .76rem;
    font-weight: 800;
}

.coach-template-card-form input {
    min-height: 38px;
}

.coach-template-save-state {
    color: #5f766b;
    font-size: .74rem;
    font-weight: 800;
}

.coach-template-more-btn {
    min-height: 38px;
    border: 1.5px solid #263f36;
    border-radius: 999px;
    background: #ffffff;
    color: #173f2f;
    font-weight: 900;
    cursor: pointer;
}

.coach-template-more-btn:hover,
.coach-template-more-btn:focus-visible {
    background: #f1f7f4;
    outline: none;
}

.coach-template-empty-lane {
    display: grid;
    gap: 8px;
    border: 1px dashed #c8dbcf;
    border-radius: 18px;
    padding: 16px;
    background: #fbfefc;
}

.coach-template-empty-lane strong {
    color: #234b3a;
}

.coach-template-pane {
    display: none;
}

.coach-template-pane.active {
    display: block;
}

.coach-template-preview-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1200;
}

.coach-template-preview-modal.open {
    display: block;
}

.coach-template-preview-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 28, 43, 0.46);
}

.coach-template-preview-dialog {
    position: relative;
    width: min(1280px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: auto;
    margin: 12px auto;
    border-radius: 22px;
    border: 1px solid #d7e3db;
    background: linear-gradient(180deg, #fffdf9 0%, #f7f3ec 100%);
    box-shadow: 0 24px 48px rgba(18, 28, 43, 0.18);
    padding: 18px;
}

.coach-template-preview-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.coach-template-preview-head strong,
.coach-template-preview-head span {
    display: block;
}

.coach-template-preview-head span {
    margin-top: 4px;
    color: #5c7669;
}

.coach-standard-modal-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.coach-standard-modal-mark {
    display: inline-grid !important;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    margin-top: 0 !important;
    border-radius: 14px;
    border: 1px solid #cfe0d6;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .95), transparent 34%),
        linear-gradient(135deg, #1f6d4d 0%, #2f8f66 58%, #e88324 160%);
    color: #fff !important;
    font-weight: 950;
    box-shadow: 0 12px 22px rgba(31, 109, 77, .18);
    overflow: hidden;
}

.coach-standard-modal-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.coach-standard-modal-mark span {
    margin: 0;
    color: inherit;
}

.coach-standard-modal-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.coach-standard-modal-copy span {
    margin-top: 0;
}

.task-submit-btn.danger {
    border-color: #e8b8b8;
    background: linear-gradient(135deg, #b94141 0%, #d85c52 100%);
    color: #fff;
    box-shadow: 0 12px 24px rgba(185, 65, 65, .18);
}

.coach-template-preview-board {
    display: grid;
    gap: 10px;
}

.coach-template-preview-day {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    border: 1.5px solid #6f9b82;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
}

.coach-template-preview-ribbon {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    border-right: 1px solid #dbe8df;
}

.coach-template-preview-ribbon span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 1rem;
}

.coach-template-preview-ribbon.day-1 { background: #d37a63; }
.coach-template-preview-ribbon.day-2 { background: #a9c995; }
.coach-template-preview-ribbon.day-3 { background: #4f8895; }
.coach-template-preview-ribbon.day-4 { background: #8b78be; }
.coach-template-preview-ribbon.day-5 { background: #de8d92; }
.coach-template-preview-ribbon.day-6 { background: #b66a00; }
.coach-template-preview-ribbon.day-7 { background: #4f82d4; }

.coach-template-preview-content {
    display: flex;
    gap: 10px;
    padding: 12px;
    overflow-x: auto;
}

.coach-template-preview-card,
.coach-template-preview-empty {
    min-width: 220px;
    max-width: 240px;
    flex: 0 0 230px;
    border: 1.5px solid #7fa98f;
    border-radius: 14px;
    background: #fdfefd;
    padding: 10px;
}

.coach-template-preview-card.is-completed {
    border-color: #a8d5bd;
    background: linear-gradient(180deg, #f8fffb 0%, #edf9f2 100%);
}

.coach-template-preview-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.coach-template-preview-card-top strong {
    color: #173a2c;
}

.coach-template-preview-card-top span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #eef8f2;
    border: 1px solid #cfe4d6;
    color: #1f6a45;
    font-size: .76rem;
    font-weight: 800;
    white-space: nowrap;
}

.coach-template-preview-card p,
.coach-template-preview-empty {
    margin: 0;
    color: #5d756a;
    line-height: 1.5;
}

.coach-template-preview-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.coach-weekly-slot-label {
    display: grid;
    gap: 8px;
    margin: 0;
}

.coach-weekly-slot-label span {
    color: #365748;
    font-size: .8rem;
    font-weight: 800;
}

.coach-weekly-slot-label textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 58px;
    height: 58px;
    max-height: 120px;
    border-radius: 14px;
    border: 1px solid #cfe0d6;
    background: #fff;
    padding: 10px 12px;
    color: #173a2c;
    resize: vertical;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.coach-weekly-slot-preview {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid #d8e8df;
    border-radius: 12px;
    background: #f7fbf8;
}

.coach-weekly-slot-preview[hidden] {
    display: none;
}

.coach-weekly-slot-preview p {
    margin: 0;
    color: #49685a;
    font-size: .74rem;
    line-height: 1.42;
    display: -webkit-box;
    overflow: hidden;
    white-space: pre-line;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.coach-weekly-slot-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.coach-weekly-slot-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    border: 1px solid #cfe0d6;
    background: #fff;
    color: #315d49;
    font-size: .66rem;
    font-weight: 850;
}

.coach-weekly-modal-field {
    display: grid;
    gap: 8px;
    color: #365748;
    font-weight: 850;
}

.coach-weekly-modal-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cfe0d6;
    border-radius: 12px;
    background: #fff;
    color: #173a2c;
    padding: 0 12px;
    font: inherit;
}

.coach-weekly-confirm-grid {
    display: grid;
    gap: 10px;
}

.coach-weekly-confirm-grid > div {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border: 1px solid #d7e7de;
    border-radius: 12px;
    background: #f8fbf9;
}

.coach-weekly-confirm-grid span {
    color: #60796d;
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.coach-weekly-confirm-grid strong {
    color: #173a2c;
    line-height: 1.35;
}

.coach-weekly-confirm-note {
    margin: 12px 0 0;
    color: #557066;
    line-height: 1.5;
}

.coach-weekly-recipient-summary {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    padding: 11px 12px;
    border: 1px solid #d7e7de;
    border-radius: 10px;
    background: #f8fbf9;
    color: #365748;
}

.coach-weekly-recipient-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.coach-weekly-recipient-head span {
    color: #60796d;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.coach-weekly-recipient-head strong {
    color: #173a2c;
    font-size: .86rem;
}

.coach-weekly-recipient-summary p {
    margin: 0;
    color: #365748;
    font-size: .9rem;
    line-height: 1.45;
}

.coach-weekly-recipient-details {
    border-top: 1px solid #d7e7de;
    padding-top: 7px;
}

.coach-weekly-recipient-details summary {
    width: fit-content;
    color: #315d8e;
    cursor: pointer;
    font-size: .84rem;
    font-weight: 850;
}

.coach-weekly-recipient-details p {
    max-height: 150px;
    margin-top: 8px;
    overflow-y: auto;
    padding-right: 4px;
}

:root[data-theme="dark"] .coach-weekly-recipient-summary {
    border-color: rgba(91, 125, 196, .30);
    background: #18243a;
}

:root[data-theme="dark"] .coach-weekly-recipient-head span,
:root[data-theme="dark"] .coach-weekly-recipient-summary p {
    color: #c5d4e9;
}

:root[data-theme="dark"] .coach-weekly-recipient-head strong {
    color: #eef5ff;
}

:root[data-theme="dark"] .coach-weekly-recipient-details {
    border-top-color: rgba(91, 125, 196, .30);
}

:root[data-theme="dark"] .coach-weekly-recipient-details summary {
    color: #acd1ff;
}

.coach-weekly-slot-label textarea:focus {
    outline: none;
    border-color: #7ea893;
    box-shadow: 0 0 0 3px rgba(126, 168, 147, 0.18);
}

.coach-weekly-inline-task {
    border: 1px solid #d8e6dd;
    border-radius: 14px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 8px 18px rgba(24, 78, 53, 0.06);
}

.coach-weekly-inline-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.coach-weekly-inline-title {
    min-height: 42px;
    font-weight: 700;
}

.coach-weekly-inline-grid {
    display: grid;
    grid-template-columns: 1fr 108px;
    gap: 8px;
    margin-top: 8px;
}

.coach-mini-btn.danger {
    color: #a13c3c;
    border-color: #e3b7b7;
}

.coach-weekly-delete-icon {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(214, 92, 92, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    color: #b64a4a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(126, 43, 43, 0.08);
    transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.coach-weekly-delete-icon:hover,
.coach-weekly-delete-icon:focus-visible {
    transform: translateY(-1px);
    background: #fff5f2;
    border-color: rgba(222, 91, 73, 0.5);
    color: #962f2f;
    box-shadow: 0 12px 22px rgba(126, 43, 43, 0.14);
}

.coach-weekly-delete-icon i {
    font-size: .82rem;
    line-height: 1;
}

.coach-weekly-inline-details {
    margin-top: 8px;
}

.coach-weekly-inline-details summary {
    cursor: pointer;
    color: #325747;
    font-size: .82rem;
    font-weight: 800;
}

.coach-weekly-inline-body {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.coach-weekly-day-footer {
    display: none;
}

.coach-weekly-board-footer {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.coach-weekly-autosave-status {
    margin-right: auto;
    color: #5b756a;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.4;
}

.coach-weekly-autosave-status.is-saving {
    color: #315d8e;
}

.coach-weekly-autosave-status.is-saved {
    color: #176b51;
}

.coach-weekly-autosave-status.is-error {
    color: #b1552f;
}

.coach-weekly-board-total {
    border: 1px solid #d3e3d9;
    border-radius: 14px;
    background: #f7fbf8;
    padding: 12px 14px;
}

.coach-weekly-board-total span {
    display: block;
    color: #5b756a;
    font-size: .82rem;
    font-weight: 700;
}

.coach-weekly-board-total strong {
    display: block;
    margin-top: 4px;
    color: #173a2c;
    font-size: 1.4rem;
}

.coach-weekly-day-card {
    border: 1px solid #d1e1d7;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
    padding: 14px;
}

.coach-weekly-day-card.is-enabled {
    border-color: #97c0aa;
    box-shadow: 0 12px 28px rgba(24, 78, 53, 0.08);
}

.coach-weekly-day-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.coach-weekly-day-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #173a2c;
}

.coach-weekly-day-toggle small {
    display: block;
    margin-top: 2px;
    color: #668074;
    font-weight: 700;
}

.coach-weekly-day-mark {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid #9fbcae;
    background: #fff;
}

.coach-weekly-day-toggle input:checked + .coach-weekly-day-mark {
    background: #1f6d4d;
    border-color: #1f6d4d;
    box-shadow: inset 0 0 0 4px #fff;
}

.coach-weekly-day-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.coach-mini-btn {
    border: 1px solid #c6dbcf;
    background: #fff;
    color: #214635;
    border-radius: 999px;
    min-height: 36px;
    padding: 0 12px;
    font-weight: 700;
    cursor: pointer;
}

.coach-mini-btn:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.coach-weekly-day-body {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed #d9e6de;
}

.coach-weekly-field {
    margin: 0;
}

.coach-weekly-file-hint {
    color: #4f6a5e;
}

html[data-theme="dark"] .coach-task-tab {
    background: transparent;
    color: #cfe0fb;
}

html[data-theme="dark"] .coach-task-choice {
    border-color: rgba(91, 125, 196, 0.28);
    background: linear-gradient(180deg, rgba(20, 33, 54, 0.96), rgba(14, 24, 40, 0.96));
    color: #dce7fb;
    box-shadow: 0 14px 28px rgba(2, 8, 23, 0.24);
}

html[data-theme="dark"] .coach-task-choice:hover,
html[data-theme="dark"] .coach-task-choice.active {
    border-color: rgba(240, 138, 36, 0.58);
    background: linear-gradient(135deg, rgba(33, 58, 92, 0.96), rgba(47, 37, 28, 0.96));
}

html[data-theme="dark"] .coach-task-choice-icon {
    background: rgba(96, 165, 250, 0.14);
    color: #bfdbfe;
}

html[data-theme="dark"] .coach-task-choice strong {
    color: #eef4ff;
}

html[data-theme="dark"] .coach-task-choice small {
    color: #aebfda;
}

html[data-theme="dark"] .coach-task-stage-copy p,
html[data-theme="dark"] .coach-task-mode-copy p {
    color: #aebfda;
}

html[data-theme="dark"] .coach-task-stage-chip,
html[data-theme="dark"] .coach-task-mode-badge {
    border-color: rgba(91, 125, 196, 0.28);
    background: linear-gradient(180deg, rgba(20, 33, 54, 0.96), rgba(14, 24, 40, 0.96));
    color: #dce7fb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

html[data-theme="dark"] .coach-task-mode-panel {
    border-color: rgba(91, 125, 196, 0.28);
    background: linear-gradient(180deg, rgba(19, 32, 52, 0.98), rgba(12, 24, 40, 0.96));
    box-shadow: 0 14px 28px rgba(2, 8, 23, 0.24);
}

html[data-theme="dark"] .coach-task-mode-panel--weekly {
    background: transparent;
    box-shadow: none;
}

html[data-theme="dark"] .coach-task-tab.active {
    background: linear-gradient(135deg, rgba(33,58,92,.96), rgba(240,138,36,.88));
    border-color: transparent;
}

html[data-theme="dark"] .coach-task-tabs {
    border-color: rgba(91, 125, 196, 0.28);
    background: linear-gradient(180deg, rgba(20,33,54,.9), rgba(16,28,46,.94));
}

html[data-theme="dark"] .coach-weekly-mini-note,
html[data-theme="dark"] .coach-weekly-day-card,
html[data-theme="dark"] .coach-weekly-board-day,
html[data-theme="dark"] .coach-weekly-inline-task,
html[data-theme="dark"] .coach-weekly-board-total,
html[data-theme="dark"] .coach-weekly-slot,
html[data-theme="dark"] .coach-weekly-template-save,
html[data-theme="dark"] .coach-weekly-template-empty-callout,
html[data-theme="dark"] .coach-weekly-template-empty-state,
html[data-theme="dark"] .coach-weekly-sidebar-card,
html[data-theme="dark"] .coach-weekly-builder-group,
html[data-theme="dark"] .coach-weekly-pool-card,
html[data-theme="dark"] .coach-weekly-library-panel,
html[data-theme="dark"] .coach-weekly-library-status,
html[data-theme="dark"] .coach-weekly-library-empty {
    background: rgba(20, 33, 54, 0.9);
    border-color: rgba(91, 125, 196, 0.28);
}

html[data-theme="dark"] .coach-weekly-plan-copy strong,
html[data-theme="dark"] .coach-weekly-day-toggle,
html[data-theme="dark"] .coach-weekly-mini-note strong {
    color: #eef4ff;
}

html[data-theme="dark"] .coach-weekly-plan-copy p,
html[data-theme="dark"] .coach-weekly-mini-note span,
html[data-theme="dark"] .coach-weekly-day-toggle small,
html[data-theme="dark"] .coach-weekly-file-hint,
html[data-theme="dark"] .coach-weekly-day-summary,
html[data-theme="dark"] .coach-weekly-board-total span,
html[data-theme="dark"] .coach-weekly-inline-details summary,
html[data-theme="dark"] .coach-weekly-slot-grip,
html[data-theme="dark"] .coach-weekly-slot-label span,
html[data-theme="dark"] .coach-weekly-sidebar-head span,
html[data-theme="dark"] .coach-weekly-builder-group summary,
html[data-theme="dark"] .coach-weekly-pool-card p,
html[data-theme="dark"] .coach-weekly-library-head span,
html[data-theme="dark"] .coach-weekly-library-status,
html[data-theme="dark"] .coach-weekly-library-empty {
    color: #9eb5d8;
}

html[data-theme="dark"] .coach-weekly-board-total strong {
    color: #eef4ff;
}

html[data-theme="dark"] .coach-weekly-sidebar-head strong,
html[data-theme="dark"] .coach-weekly-builder-group summary,
html[data-theme="dark"] .coach-weekly-pool-card strong,
html[data-theme="dark"] .coach-weekly-template-empty-callout strong,
html[data-theme="dark"] .coach-weekly-template-empty-state strong,
html[data-theme="dark"] .coach-weekly-library-head strong {
    color: #eef4ff;
}

html[data-theme="dark"] .coach-weekly-template-empty-callout span,
html[data-theme="dark"] .coach-weekly-template-empty-state span {
    color: #dce7fb;
}

html[data-theme="dark"] .coach-weekly-template-create-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(144, 183, 255, 0.32);
    color: #eef4ff;
}

html[data-theme="dark"] .coach-weekly-template-create-btn:hover {
    background: rgba(144, 183, 255, 0.14);
    border-color: rgba(144, 183, 255, 0.5);
}

html[data-theme="dark"] .coach-weekly-card-pool,
html[data-theme="dark"] .coach-weekly-library-list {
    scrollbar-color: rgba(144, 183, 255, 0.55) transparent;
}

html[data-theme="dark"] .coach-weekly-layout-toolbar > span {
    color: #9eb5d8;
}

html[data-theme="dark"] .coach-weekly-layout-toggle {
    border-color: rgba(91, 125, 196, 0.28);
    background: rgba(11, 21, 37, 0.82);
    box-shadow: none;
}

html[data-theme="dark"] .coach-weekly-layout-toggle button {
    color: #dce7fb;
}

html[data-theme="dark"] .coach-weekly-layout-toggle button:hover,
html[data-theme="dark"] .coach-weekly-layout-toggle button:focus-visible {
    background: rgba(144, 183, 255, 0.14);
}

html[data-theme="dark"] .coach-weekly-layout-toggle button.active {
    background: #315f9a;
    color: #fff;
}

html[data-theme="dark"] .coach-weekly-card-pool::-webkit-scrollbar-thumb,
html[data-theme="dark"] .coach-weekly-library-list::-webkit-scrollbar-thumb,
html[data-theme="dark"] .coach-weekly-slot-list::-webkit-scrollbar-thumb {
    background: rgba(144, 183, 255, 0.55);
}

html[data-theme="dark"] .coach-weekly-delete-icon {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(248, 149, 132, 0.28);
    color: #ffb4a5;
    box-shadow: none;
}

html[data-theme="dark"] .coach-weekly-delete-icon:hover,
html[data-theme="dark"] .coach-weekly-delete-icon:focus-visible {
    background: rgba(248, 149, 132, 0.14);
    border-color: rgba(248, 149, 132, 0.48);
    color: #ffd6cd;
}

html[data-theme="dark"] #sectionWeeklyTask .task-submit-btn.ghost {
    background: linear-gradient(180deg, rgba(20, 33, 54, 0.96), rgba(14, 24, 40, 0.96));
    border-color: rgba(91, 125, 196, 0.34);
    color: #dce7fb;
}

html[data-theme="dark"] #sectionWeeklyTask .task-submit-btn.ghost:hover,
html[data-theme="dark"] #sectionWeeklyTask .task-submit-btn.ghost.active {
    background: linear-gradient(180deg, rgba(33, 52, 82, 0.98), rgba(24, 38, 61, 0.98));
    border-color: rgba(144, 183, 255, 0.4);
    color: #eef4ff;
}

html[data-theme="dark"] .coach-weekly-builder-group-body {
    border-top-color: rgba(91, 125, 196, 0.22);
}

html[data-theme="dark"] .coach-weekly-pool-card.is-selected {
    border-color: #90b7ff;
    box-shadow: 0 16px 28px rgba(10, 18, 31, 0.45);
    background: rgba(28, 45, 72, 0.96);
}

html[data-theme="dark"] .coach-weekly-board-shell.is-card-select-mode .coach-weekly-slot:not(.is-locked) {
    border-color: rgba(144, 183, 255, 0.38);
    box-shadow: inset 0 0 0 1px rgba(144, 183, 255, 0.12);
}

html[data-theme="dark"] .coach-weekly-workspace,
html[data-theme="dark"] .coach-weekly-history-band {
    border-color: rgba(91, 125, 196, 0.28);
    background: linear-gradient(180deg, rgba(19, 32, 52, 0.96), rgba(12, 24, 40, 0.96));
    box-shadow: 0 18px 34px rgba(2, 8, 23, 0.28);
}

html[data-theme="dark"] .coach-weekly-history-empty {
    border-color: rgba(91, 125, 196, 0.24);
    background: rgba(12, 24, 40, 0.82);
    color: #d7e7f9;
}

html[data-theme="dark"] .coach-weekly-day-ribbon {
    border-right-color: rgba(91, 125, 196, 0.28);
}

html[data-theme="dark"] .coach-weekly-history-day,
html[data-theme="dark"] .coach-weekly-history-task,
html[data-theme="dark"] .coach-weekly-template-row,
html[data-theme="dark"] .coach-template-lane,
html[data-theme="dark"] .coach-template-card,
html[data-theme="dark"] .coach-template-empty-lane {
    border-color: rgba(91, 125, 196, 0.28);
    background: rgba(20, 33, 54, 0.9);
}

html[data-theme="dark"] .coach-template-hero {
    border-color: rgba(91, 125, 196, 0.28);
    background:
        radial-gradient(circle at 92% 8%, rgba(216, 123, 84, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(20, 33, 54, 0.96), rgba(13, 25, 42, 0.96));
}

html[data-theme="dark"] .coach-template-hero h4,
html[data-theme="dark"] .coach-template-lane h5,
html[data-theme="dark"] .coach-template-card-main strong,
html[data-theme="dark"] .coach-template-empty-lane strong {
    color: #eef4ff;
}

html[data-theme="dark"] .coach-template-hero p,
html[data-theme="dark"] .coach-template-lane p,
html[data-theme="dark"] .coach-template-empty-lane span {
    color: #aebfda;
}

html[data-theme="dark"] .coach-template-hero-stats span,
html[data-theme="dark"] .coach-template-count-pill,
html[data-theme="dark"] .coach-template-card-meta span {
    border-color: rgba(91, 125, 196, 0.28);
    background: rgba(12, 24, 40, 0.82);
    color: #cfe0fb;
}

html[data-theme="dark"] .coach-weekly-template-source {
    border-color: rgba(91, 125, 196, 0.28);
    background: rgba(12, 24, 40, 0.82);
}

html[data-theme="dark"] .coach-weekly-template-source-option {
    color: #aebfda;
}

html[data-theme="dark"] .coach-weekly-template-source-option:has(input:checked) {
    background: rgba(29, 91, 68, 0.72);
    color: #ecfff5;
    box-shadow: 0 8px 16px rgba(2, 8, 23, .28);
}

html[data-theme="dark"] .coach-weekly-template-page-icon,
html[data-theme="dark"] .coach-weekly-history-card,
html[data-theme="dark"] .coach-template-preview-card {
    border-color: rgba(91, 125, 196, 0.28);
    background: rgba(20, 33, 54, 0.9);
    color: #dce7fb;
}

html[data-theme="dark"] .coach-weekly-history-day-ribbon,
html[data-theme="dark"] .coach-weekly-history-day-summary {
    border-color: rgba(91, 125, 196, 0.28);
}

html[data-theme="dark"] .coach-weekly-history-day-summary,
html[data-theme="dark"] .coach-weekly-history-task p,
html[data-theme="dark"] .coach-weekly-template-row-meta span,
html[data-theme="dark"] .coach-template-preview-card p {
    color: #9eb5d8;
}

html[data-theme="dark"] .coach-weekly-history-day-summary strong,
html[data-theme="dark"] .coach-weekly-history-task strong,
html[data-theme="dark"] .coach-template-preview-card-top strong {
    color: #eef4ff;
}

html[data-theme="dark"] .coach-template-preview-card-top span {
    border-color: rgba(144, 183, 255, 0.3);
    background: rgba(36, 60, 96, 0.88);
    color: #cfe0fb;
}

html[data-theme="dark"] .coach-weekly-slot-grip {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(143, 171, 228, 0.24);
}

html[data-theme="dark"] .coach-weekly-slot-label textarea {
    background: rgba(11, 21, 37, 0.82);
    border-color: rgba(143, 171, 228, 0.24);
    color: #eef4ff;
}

html[data-theme="dark"] .coach-weekly-slot.is-drop-target {
    border-color: #90b7ff;
    box-shadow: 0 0 0 3px rgba(144, 183, 255, 0.14);
}

html[data-theme="dark"] .coach-weekly-board-day.is-drop-target .coach-weekly-slot-list {
    outline-color: #90b7ff;
    background: rgba(144, 183, 255, 0.12);
}

@media (max-width: 980px) {
    .coach-weekly-side-panel {
        margin: 12px 0 16px;
        min-width: 0;
        position: static;
    }

    .coach-weekly-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .coach-weekly-board-shell.has-side-panel,
    .coach-weekly-board-shell.is-library-open {
        grid-template-columns: 1fr;
    }

    .coach-weekly-library-panel {
        position: static;
    }
}

@media (max-width: 900px) {
    .weekly-report-summary-grid,
    .weekly-report-summary-exam-grid,
    .weekly-report-exam-detail-grid,
    .weekly-report-delivery,
    .weekly-report-exam-kpis,
    .weekly-report-exam-detail-list,
    .weekly-report-visual-grid--report,
    .weekly-report-daily-chart-wrap,
    .weekly-report-exam-detail-grid--six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weekly-report-exam-detail-grid--duo {
        grid-template-columns: 1fr;
    }

    .weekly-report-exam-single--duo .weekly-report-exam-detail-grid--six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weekly-report-exam-lessons {
        grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    }

    .weekly-report-exam-card-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .weekly-coach-report-head {
        flex-direction: column;
    }

    .weekly-coach-report-badges {
        justify-content: flex-start;
    }

    .coach-weekly-plan-head {
        flex-direction: column;
        padding: 14px;
        border-radius: 16px;
    }

    .coach-weekly-board-shell.has-side-panel,
    .coach-weekly-board-shell.is-library-open {
        grid-template-columns: 1fr;
    }

    .coach-weekly-library-panel {
        position: static;
    }

    .coach-weekly-board-day {
        grid-template-columns: 60px minmax(0, 1fr);
        max-width: 100%;
        min-width: 0;
    }

    .coach-weekly-history-day {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .coach-weekly-board--full {
        margin-top: 10px;
        padding-left: 12px;
    }

    .coach-weekly-board-shell {
        padding: 14px;
        border-radius: 18px;
    }

    .coach-weekly-card-pool {
        max-height: 360px;
    }

    .coach-template-hero,
    .coach-template-lanes,
    .coach-template-card {
        grid-template-columns: 1fr;
    }

    .coach-template-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
    }

    .coach-template-hero-stats span {
        flex: 1 1 0;
    }

    .coach-template-lane-head {
        flex-direction: column;
    }

    .coach-template-lane-head-actions {
        width: 100%;
        justify-content: space-between;
    }

    .coach-template-lane-head {
        cursor: pointer;
    }

    .coach-template-lane-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 1px solid #b9d2c5;
        border-radius: 10px;
        background: #edf6f1;
        color: #176b51;
        cursor: pointer;
    }

    .coach-template-lane.is-mobile-collapsed > :not(.coach-template-lane-head) {
        display: none !important;
    }

    .coach-template-card-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

}

@media (max-width: 680px) {
    .weekly-report-summary-grid,
    .weekly-report-summary-exam-grid,
    .weekly-report-visual-grid--report,
    .weekly-report-daily-chart-wrap,
    .weekly-report-exam-kpis,
    .weekly-report-exam-detail-list,
    .weekly-report-exam-detail-grid,
    .weekly-report-exam-detail-grid--six,
    .weekly-report-delivery,
    .weekly-report-visibility-grid {
        grid-template-columns: 1fr;
    }

    .weekly-report-exam-detail-grid--duo,
    .weekly-report-exam-single--duo .weekly-report-exam-detail-grid--six {
        grid-template-columns: 1fr;
    }

    .weekly-report-form,
    .weekly-report-delivery,
    .weekly-report-archive,
    .weekly-report-summary-box,
    .weekly-report-data-card,
    .weekly-report-delivery-box,
    .weekly-report-delivery-actions {
        min-width: 0;
    }

    .weekly-report-field textarea {
        min-height: 112px;
        padding: 12px 14px;
    }

    .weekly-report-toggle {
        align-items: flex-start;
        padding: 10px 12px;
    }

    .coach-weekly-card-actions {
        grid-template-columns: 1fr;
    }

    .coach-weekly-toolbar-action {
        align-items: stretch;
    }

    .coach-weekly-layout-toolbar {
        align-items: stretch;
        justify-content: flex-start;
    }

    .coach-weekly-layout-toggle {
        width: 100%;
    }

    .coach-weekly-layout-toggle button {
        flex: 1 1 0;
    }

    .coach-weekly-board-day {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .coach-weekly-date-field {
        min-width: 0;
        width: 100%;
        grid-column: 1 / -1;
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        white-space: normal;
    }

    #sectionWeeklyTask .task-grid.task-grid--scope.coach-weekly-board-toolbar,
    #sectionWeeklyTask .task-grid.task-grid--scope.task-grid--scope-compact.coach-weekly-board-toolbar {
        grid-template-columns: 1fr;
    }

    .coach-weekly-template-tools {
        grid-template-columns: minmax(0, 1fr) 44px 44px;
    }

    .coach-weekly-template-tools label {
        grid-column: 1 / -1;
    }

    .coach-weekly-template-select-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .coach-weekly-template-tools label.coach-weekly-template-select-field {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .coach-weekly-template-select-field select {
        min-width: 0;
    }

    .coach-weekly-template-select-field .helper-note {
        display: block;
    }

    .coach-weekly-template-source {
        position: static;
        grid-column: 1;
        justify-self: center;
    }

    .coach-weekly-template-tools .coach-weekly-template-page-icon:first-of-type {
        grid-column: 2;
    }

    .coach-weekly-template-tools .coach-weekly-template-page-icon:last-of-type {
        grid-column: 3;
    }

    .coach-weekly-template-tools select {
        width: 100%;
    }

    .coach-template-tabs {
        max-width: 100%;
        gap: 6px;
        padding: 5px;
    }

    .coach-template-tabs .admin-subtab-btn {
        padding: 9px 8px;
        font-size: .82rem;
    }

    .coach-weekly-template-empty-callout,
    .coach-weekly-template-empty-state {
        align-items: stretch;
        flex-direction: column;
    }

    .coach-weekly-template-create-btn,
    .coach-weekly-template-empty-state .task-submit-btn {
        width: 100%;
    }

    #sectionWeeklyTask .task-submit-row,
    .coach-weekly-board-footer .task-submit-row {
        gap: 10px;
    }

    .coach-weekly-sidebar {
        grid-template-columns: 1fr;
    }

    .coach-weekly-side-panel {
        margin: 10px 0 14px;
    }

    .coach-weekly-history-day {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .coach-weekly-board-head {
        min-height: 124px;
    }

    .coach-weekly-day-summary {
        padding: 10px 12px;
    }

    .coach-weekly-board--full {
        margin-top: 8px;
        padding-left: 0;
    }

    .coach-weekly-board-shell {
        padding: 12px;
    }

    .coach-weekly-card-pool {
        max-height: 280px;
    }

    .coach-weekly-slot-list {
        padding: 10px;
        gap: 10px;
    }

    .coach-weekly-slot {
        flex-basis: min(78vw, 240px);
        min-width: min(78vw, 240px);
        max-width: none;
    }

    .coach-weekly-template-row-form {
        grid-template-columns: 1fr;
    }

    .coach-weekly-template-row {
        grid-template-columns: 1fr;
    }

    .coach-weekly-history-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .coach-weekly-history-metrics {
        justify-content: flex-start;
    }

    .coach-weekly-history-card--compact .coach-weekly-history-summary {
        grid-template-columns: 1fr;
    }

    .coach-weekly-history-card--compact .coach-weekly-history-metrics {
        display: flex;
        justify-content: flex-start;
    }

    .coach-weekly-template-row-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .coach-weekly-inline-grid,
    .coach-weekly-board-footer {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .coach-weekly-library-head,
    .coach-weekly-library-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .weekly-report-actions,
    .weekly-report-archive-head,
    .weekly-report-archive-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .weekly-report-actions .primary-btn,
    .weekly-report-actions .secondary-btn,
    .weekly-report-delivery-actions .secondary-btn,
    .weekly-report-archive-actions .secondary-btn {
        width: 100%;
    }

    .weekly-report-delivery-actions,
    .weekly-report-delivery-box {
        padding: 14px;
    }

    .weekly-report-delivery-meta {
        flex-direction: column;
        gap: 6px;
    }

    .analysis-table-wrap,
    .weekly-report-table-wrap,
    .weekly-report-exam-table-wrap {
        overflow-x: auto;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .analysis-table-wrap .exam-table,
    .weekly-report-data-table,
    .weekly-report-exam-table,
    .weekly-report-archive-table {
        min-width: 720px;
        width: max-content;
    }

    .weekly-report-archive-table th:last-child,
    .weekly-report-archive-table td:last-child {
        width: 160px;
    }

    .weekly-report-list,
    .weekly-report-summary-box p,
    .weekly-report-delivery-box p {
        word-break: break-word;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 680px) {
    .coach-weekly-slot-picker-dialog {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: calc(100vw - 16px);
        max-width: none;
        max-height: calc(100vh - 16px);
        overflow: auto;
    }

    .coach-weekly-slot-picker-tabs {
        padding-left: 12px;
        padding-right: 12px;
    }

    .coach-weekly-slot-picker-dialog .coach-weekly-action-body {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }

    .coach-weekly-slot-picker-list {
        max-height: min(48vh, 420px);
    }
}

/* Mobile polish pass */
:root[data-theme="dark"] .helper-note,
:root[data-theme="dark"] .coach-weekly-history-head strong,
:root[data-theme="dark"] .coach-weekly-history-head p,
:root[data-theme="dark"] .coach-weekly-history-title strong,
:root[data-theme="dark"] .coach-weekly-history-title span,
:root[data-theme="dark"] .coach-weekly-history-metrics span {
    color:#dce9ff !important;
}

.coach-overview-view-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #cbd8e5;
    border-radius: 6px;
    background: #ffffff;
    color: #315d8e;
    font-size: .78rem;
    font-weight: 800;
}

#sectionOverview .coach-overview-summary-card {
    border-radius: 8px;
    border-left: 4px solid #315d8e;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 49, 72, .05);
}

#sectionOverview .coach-overview-summary-card.is-danger {
    border-left-color: #c95252;
}

#sectionOverview .coach-overview-summary-card.is-warning {
    border-left-color: #d88724;
}

#sectionOverview .coach-overview-summary-card.is-success {
    border-left-color: #2b8060;
}

#sectionOverview .coach-compare-card {
    border-radius: 8px;
    border-color: #d2dce6;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 49, 72, .06);
}

#sectionOverview .coach-compare-card::before {
    inset: 0 auto 0 0;
    width: 4px;
    height: auto;
    border-radius: 0;
    background: #d88724;
    box-shadow: none;
    opacity: 1;
}

#sectionOverview .coach-compare-card[data-risk="high"]::before {
    background: #c95252;
}

#sectionOverview .coach-compare-card[data-risk="flat"]::before,
#sectionOverview .coach-compare-card[data-risk="low"]::before {
    background: #2b8060;
}

#sectionOverview .coach-compare-card.is-selected {
    border-color: #7da2c7;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(49, 93, 142, .12);
    transform: none;
}

#sectionOverview .coach-compare-metric {
    border-radius: 6px;
    border-color: #dce4ec;
    background: #f8fafc;
}

#sectionOverview .coach-compare-extra {
    border-radius: 6px;
    border-color: #d7e1ea;
    background: #fbfcfd;
}

.coach-overview-table-wrap {
    overflow: hidden;
    background: transparent;
}

.coach-overview-table-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.coach-overview-table-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 260px;
    width: 260px;
    min-height: 38px;
    padding: 0 11px;
    border: 1px solid #ccd9e5;
    border-radius: 7px;
    background: #ffffff;
    color: #52708f;
}

.coach-overview-table-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #17385f;
    font: inherit;
}

.coach-overview-table-meta {
    flex: 0 0 auto;
    margin-left: auto;
    color: #718096;
    font-size: .8rem;
    font-weight: 800;
}

.coach-overview-quick-filters {
    display: flex;
    flex: 1 1 auto;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.coach-overview-filter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 9px;
    border: 1px solid #ccd9e5;
    border-radius: 6px;
    background: #ffffff;
    color: #52677e;
    cursor: pointer;
    font-size: .76rem;
    font-weight: 800;
}

.coach-overview-filter strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 21px;
    min-height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #edf3f8;
    color: #315d8e;
    font-size: .7rem;
}

.coach-overview-filter.is-active {
    border-color: #315d8e;
    background: #315d8e;
    color: #ffffff;
}

.coach-overview-filter.is-active strong {
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
}

.coach-overview-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    table-layout: fixed;
}

.coach-overview-table th,
.coach-overview-table td {
    padding: 10px;
    border-top: 1px solid #dce5ed;
    border-bottom: 1px solid #dce5ed;
    text-align: left;
    vertical-align: middle;
}

.coach-overview-table th {
    padding: 3px 10px 5px;
    background: transparent;
    color: #52647a;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.coach-overview-table th:first-child {
    width: 25%;
}

.coach-overview-table th:last-child {
    width: 170px;
}

.coach-overview-table tbody tr:last-child td {
    border-bottom: 1px solid #dce5ed;
}

.coach-overview-table td:first-child {
    border-left: 1px solid #dce5ed;
    border-radius: 7px 0 0 7px;
}

.coach-overview-table td:last-child {
    border-right: 1px solid #dce5ed;
    border-radius: 0 7px 7px 0;
}

.coach-overview-table tr[hidden],
#sectionOverview .coach-compare-card[hidden] {
    display: none !important;
}

.coach-overview-table tbody tr:hover td,
.coach-overview-table tbody tr.is-selected td {
    background: #f6fbff;
}

.coach-overview-table tbody td {
    background: #ffffff;
}

.coach-overview-table-student {
    display: grid;
    gap: 3px;
}

.coach-overview-table-student strong {
    color: #17385f;
    font-size: .9rem;
}

.coach-overview-table-student span,
.coach-overview-table-unit {
    color: #718096;
    font-size: .76rem;
}

.coach-overview-table-value {
    color: #17385f;
    font-size: 1rem;
}

.coach-overview-table-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.coach-overview-table-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #cbd8e5;
    border-radius: 6px;
    background: #ffffff;
    color: #315d8e;
    cursor: pointer;
    text-decoration: none;
}

.coach-overview-table-action.is-reminder {
    border-color: #efcb97;
    background: #fff7ea;
    color: #9a6215;
}

.coach-overview-table-action.is-detail {
    border-color: #b8d1ec;
    background: #f3f8ff;
    color: #255f9f;
}

.coach-overview-table-action.is-expand {
    border-color: #b8dccd;
    background: #f4fbf7;
    color: #207453;
    font-size: 1.15rem;
    font-weight: 900;
}

.coach-overview-table-action.is-expand[aria-expanded="true"] {
    border-color: #7fbba2;
    background: #e8f6ef;
}

.coach-overview-detail-row > td {
    padding: 0;
    border: 0;
    background: transparent;
}

.coach-overview-detail-panel {
    display: grid;
    gap: 10px;
    margin: -3px 8px 7px;
    padding: 12px;
    border: 1px solid #cbdce8;
    border-radius: 7px;
    background: #f8fbfd;
}

.coach-overview-detail-head,
.coach-overview-detail-guidance > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.coach-overview-detail-head div {
    display: grid;
    gap: 3px;
}

.coach-overview-detail-head span,
.coach-overview-detail-metrics span {
    color: #718096;
    font-size: .7rem;
    font-weight: 850;
    text-transform: uppercase;
}

.coach-overview-detail-head strong,
.coach-overview-detail-metrics strong {
    color: #17385f;
}

.coach-overview-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.coach-overview-detail-metrics > div {
    display: grid;
    gap: 4px;
    padding: 8px 9px;
    border: 1px solid #dce5ed;
    border-radius: 6px;
    background: #ffffff;
}

.coach-overview-detail-note {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 9px;
    padding: 8px 9px;
    border: 1px dashed #d7e1ea;
    border-radius: 6px;
    background: #ffffff;
    color: #607086;
    font-size: .84rem;
}

.coach-overview-detail-note em {
    color: #315d8e;
    font-style: normal;
    font-weight: 800;
}

.coach-overview-detail-guidance {
    display: grid;
    gap: 5px;
    padding: 9px 10px;
    border: 1px solid #cbdce8;
    border-radius: 6px;
    background: #f1f7ff;
}

.coach-overview-detail-guidance strong {
    color: #17385f;
}

.coach-overview-detail-guidance span {
    color: #315d8e;
    font-size: .8rem;
    font-weight: 850;
}

.coach-overview-detail-guidance p {
    margin: 0;
    color: #52677e;
    font-size: .86rem;
    line-height: 1.4;
}

.coach-overview-table-footer {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.coach-overview-load-more {
    min-height: 38px;
    padding-inline: 16px;
}

.coach-overview-load-more[hidden] {
    display: none;
}

:root[data-theme="dark"] .coach-overview-view-note,
:root[data-theme="dark"] #sectionOverview .coach-overview-summary-card,
:root[data-theme="dark"] #sectionOverview .coach-compare-card,
:root[data-theme="dark"] .coach-overview-table-wrap,
:root[data-theme="dark"] .coach-overview-table tr {
    border-color: rgba(91, 125, 196, .30);
    background: #121c2d;
    color: #eaf2ff;
}

:root[data-theme="dark"] .coach-overview-table th {
    background: #18243a;
    color: #b8cae6;
}

:root[data-theme="dark"] .coach-overview-table td {
    border-top-color: rgba(91, 125, 196, .20);
    border-bottom-color: rgba(91, 125, 196, .20);
    background: #121c2d;
}

:root[data-theme="dark"] .coach-overview-table td:first-child {
    border-left-color: rgba(91, 125, 196, .30);
}

:root[data-theme="dark"] .coach-overview-table td:last-child {
    border-right-color: rgba(91, 125, 196, .30);
}

:root[data-theme="dark"] .coach-overview-table tbody tr:hover td,
:root[data-theme="dark"] .coach-overview-table tbody tr.is-selected td {
    background: #1a2a43;
}

:root[data-theme="dark"] .coach-overview-table-student strong,
:root[data-theme="dark"] .coach-overview-table-value {
    color: #eaf2ff;
}

:root[data-theme="dark"] .coach-overview-table-student span,
:root[data-theme="dark"] .coach-overview-table-unit,
:root[data-theme="dark"] .coach-overview-table-meta {
    color: #aabbd3;
}

:root[data-theme="dark"] .coach-overview-table-search {
    border-color: rgba(91, 125, 196, .36);
    background: #18243a;
    color: #a9c8ed;
}

:root[data-theme="dark"] .coach-overview-table-search input {
    color: #eef5ff;
}

:root[data-theme="dark"] .coach-overview-table-search input::placeholder {
    color: #aabbd3;
}

:root[data-theme="dark"] .coach-overview-filter {
    border-color: rgba(91, 125, 196, .36);
    background: #18243a;
    color: #c5d4e9;
}

:root[data-theme="dark"] .coach-overview-filter strong {
    background: #223552;
    color: #cfe0ff;
}

:root[data-theme="dark"] .coach-overview-filter.is-active {
    border-color: #5b8ec7;
    background: #285a8d;
    color: #ffffff;
}

:root[data-theme="dark"] .coach-overview-filter.is-active strong {
    background: rgba(255, 255, 255, .18);
    color: #ffffff;
}

:root[data-theme="dark"] .coach-overview-table-action {
    border-color: rgba(91, 125, 196, .36);
    background: #18243a;
    color: #dce9ff;
}

:root[data-theme="dark"] .coach-overview-table-action.is-reminder {
    border-color: rgba(239, 203, 151, .52);
    background: #3a2d1e;
    color: #ffd59b;
}

:root[data-theme="dark"] .coach-overview-table-action.is-expand,
:root[data-theme="dark"] .coach-overview-table-action.is-expand[aria-expanded="true"] {
    border-color: rgba(126, 198, 164, .52);
    background: #193a32;
    color: #b8f0d7;
}

:root[data-theme="dark"] .coach-overview-detail-panel,
:root[data-theme="dark"] .coach-overview-detail-metrics > div,
:root[data-theme="dark"] .coach-overview-detail-note,
:root[data-theme="dark"] .coach-overview-detail-guidance {
    border-color: rgba(91, 125, 196, .30);
    background: #18243a;
}

:root[data-theme="dark"] .coach-overview-detail-head strong,
:root[data-theme="dark"] .coach-overview-detail-metrics strong,
:root[data-theme="dark"] .coach-overview-detail-guidance strong {
    color: #eef5ff;
}

:root[data-theme="dark"] .coach-overview-detail-note,
:root[data-theme="dark"] .coach-overview-detail-guidance p {
    color: #c5d4e9;
}

:root[data-theme="dark"] .coach-overview-detail-head span,
:root[data-theme="dark"] .coach-overview-detail-metrics span {
    color: #9eb2cf;
}

:root[data-theme="dark"] .coach-overview-detail-note em,
:root[data-theme="dark"] .coach-overview-detail-guidance span {
    color: #a9cfff;
}

@media (max-width: 680px) {
    .coach-overview-view-note {
        display: none;
    }

    #sectionOverview .coach-overview-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #sectionOverview .coach-overview-summary-card {
        padding: 10px;
    }

    #sectionOverview .coach-overview-summary-card strong {
        font-size: 1.2rem;
    }

    .coach-overview-table-wrap {
        overflow: visible;
    }

    .coach-overview-table-toolbar {
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .coach-overview-table-search {
        flex: 1 1 100%;
        width: 100%;
    }

    .coach-overview-table-meta {
        order: 3;
        margin-left: 2px;
    }

    .coach-overview-quick-filters {
        order: 2;
        flex: 1 1 100%;
        margin-inline: -2px;
        padding: 0 2px 4px;
    }

    .coach-overview-filter {
        min-height: 32px;
        padding-inline: 8px;
        font-size: .72rem;
    }

    .coach-overview-table,
    .coach-overview-table tbody,
    .coach-overview-table tr,
    .coach-overview-table td {
        display: block;
        width: 100%;
    }

    .coach-overview-table thead {
        display: none;
    }

    .coach-overview-table tr {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
        margin-bottom: 9px;
        overflow: hidden;
        border: 1px solid #d2dce6;
        border-left: 4px solid #d88724;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 7px 16px rgba(31, 49, 72, .05);
    }

    .coach-overview-table tr.coach-overview-detail-row {
        display: block;
        margin: -10px 0 9px;
        border: 0;
        border-left: 4px solid #2b8060;
        border-radius: 0 0 8px 8px;
        background: transparent;
        box-shadow: none;
    }

    .coach-overview-table tr.coach-overview-detail-row > td {
        display: block;
        padding: 0;
        border: 0;
    }

    .coach-overview-table tr.coach-overview-detail-row > td::before {
        display: none;
    }

    .coach-overview-detail-panel {
        margin: 0;
        border-radius: 0 0 8px 8px;
    }

    .coach-overview-table tr[data-risk="high"] {
        border-left-color: #c95252;
    }

    .coach-overview-table tr[data-risk="flat"],
    .coach-overview-table tr[data-risk="low"] {
        border-left-color: #2b8060;
    }

    .coach-overview-table td {
        min-width: 0;
        padding: 7px 8px;
        border-top: 0;
        border-right: 0;
        border-bottom: 1px solid #e8edf2;
        border-left: 0;
        border-radius: 0;
        font-size: .82rem;
    }

    .coach-overview-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: #718096;
        font-size: .62rem;
        font-weight: 800;
        text-transform: uppercase;
    }

    .coach-overview-table td:first-child,
    .coach-overview-table td:last-child {
        border-radius: 0;
    }

    .coach-overview-table td:first-child {
        grid-column: 1 / 4;
    }

    .coach-overview-table td:nth-child(2) {
        grid-column: 4;
    }

    .coach-overview-table td:nth-child(n + 3):nth-child(-n + 6) {
        grid-column: span 1;
    }

    .coach-overview-table td:last-child {
        grid-column: 1 / -1;
        border-bottom: 0;
    }

    .coach-overview-table-actions {
        justify-content: flex-end;
    }

    .coach-overview-table-student strong {
        font-size: .86rem;
    }

    .coach-overview-table-value {
        font-size: .94rem;
    }

    .coach-overview-table-action {
        width: 30px;
        height: 30px;
    }
}

:root:not([data-theme="dark"]) .analysis-card,
:root:not([data-theme="dark"]) .daily-detail-table-wrap,
:root:not([data-theme="dark"]) .coach-weekly-history-card,
:root:not([data-theme="dark"]) .coach-weekly-history-task,
:root:not([data-theme="dark"]) .coach-weekly-template-row {
    border-color:#c8d8cf;
    box-shadow:0 10px 24px rgba(25,72,49,.06);
}

.coach-weekly-history + .coach-weekly-history {
    border-top:1px solid #d5e3d9;
    padding-top:18px;
}

:root[data-theme="dark"] .coach-weekly-history + .coach-weekly-history {
    border-top-color:rgba(91,125,196,.32);
}

#sectionWeeklyTask.task-card:has(.coach-task-pane[data-coach-task-pane="weekly_bulk"].active) {
    border-color: #263f36;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(31, 49, 72, .08);
}

#sectionTemplates.coach-section {
    border: 2px solid #263f36;
    border-radius: 18px;
}

#sectionWeeklyTask.task-card:has(.coach-task-pane[data-coach-task-pane="weekly_bulk"].active) .coach-weekly-board-toolbar {
    padding: 14px;
    border: 1.5px solid #9caec4;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    box-shadow: 0 10px 24px rgba(31, 49, 72, 0.05);
}

#sectionWeeklyTask .task-input,
#sectionWeeklyTask input[type="text"],
#sectionWeeklyTask input[type="date"],
#sectionWeeklyTask input[type="number"],
#sectionWeeklyTask select,
#sectionWeeklyTask textarea {
    border-color: #a8b9cc;
}

:root[data-theme="dark"] #sectionWeeklyTask.task-card:has(.coach-task-pane[data-coach-task-pane="weekly_bulk"].active) {
    border-color: #2f3c56;
    background: #121a2a;
    box-shadow: 0 16px 30px rgba(4, 10, 18, .32);
}

:root[data-theme="dark"] #sectionWeeklyTask.task-card:has(.coach-task-pane[data-coach-task-pane="weekly_bulk"].active) .coach-weekly-board-toolbar {
    border-color: rgba(91, 125, 196, 0.28);
    background: linear-gradient(180deg, rgba(19, 32, 52, 0.96), rgba(12, 24, 40, 0.96));
    box-shadow: 0 14px 28px rgba(2, 8, 23, 0.24);
}

:root[data-theme="dark"] .coach-weekly-plan-head {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

:root[data-theme="dark"] .coach-task-pane[data-coach-task-pane="weekly_bulk"].active {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

:root[data-theme="dark"] .coach-weekly-top-surface,
:root[data-theme="dark"] #sectionWeeklyTask.task-card:has(.coach-task-pane[data-coach-task-pane="weekly_bulk"].active) .coach-task-tabs {
    border-color: rgba(91, 125, 196, 0.28);
    background: rgba(19, 32, 52, 0.98);
    box-shadow: 0 14px 28px rgba(2, 8, 23, 0.24);
}

:root[data-theme="dark"] .coach-weekly-plan-panel {
    border-color: rgba(91, 125, 196, 0.28);
    background: linear-gradient(180deg, rgba(19, 32, 52, 0.98), rgba(12, 24, 40, 0.98));
    box-shadow: 0 14px 28px rgba(2, 8, 23, 0.24);
}

@media (max-width:680px) {
    .coach-task-choice-grid {
        grid-template-columns: 1fr;
    }

    .coach-task-choice {
        min-height: 86px;
    }

    .coach-task-pane[data-coach-task-pane="weekly_bulk"].active {
        padding: 0;
        border-radius: 0;
    }

    .coach-task-stage-meta,
    .coach-task-mode-panel,
    .coach-task-mode-panel--weekly {
        width: 100%;
    }

    .coach-weekly-plan-panel,
    .coach-weekly-top-surface {
        border-radius: 18px;
    }

    .coach-weekly-plan-panel {
        padding: 14px;
    }

    .coach-weekly-top-surface {
        display: contents;
    }

    .coach-weekly-compact-controls {
        grid-template-columns: minmax(0, 1fr) 42px 42px;
        align-items: end;
    }

    #sectionWeeklyTask .task-grid:not(.coach-weekly-board-toolbar) {
        grid-template-columns:1fr;
    }

    #sectionWeeklyTask .coach-task-type-prompt {
        min-width:0;
    }

    #sectionWeeklyTask .coach-task-type-bubble {
        position:static;
        width:fit-content;
        max-width:100%;
        margin-bottom:4px;
        transform:none;
    }

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

    .notif-item {
        padding:12px;
    }

    .notif-item .notif-meta {
        align-items:flex-start !important;
        flex-direction:column;
    }

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

    .notif-actions > *,
    .notif-action-form,
    .notif-action-btn,
    .notif-read-pill {
        width:100%;
        min-width:0;
    }

    .notif-action-btn,
    .notif-read-pill {
        min-height:38px;
        padding:0 8px;
        font-size:.78rem;
    }

    .coach-quick-message-panel {
        top:12px !important;
        right:12px !important;
        left:12px !important;
        width:auto !important;
        height:auto !important;
        max-height:calc(100vh - 24px);
        border-radius:18px;
        padding:16px;
    }

    .coach-quick-message-footer {
        grid-template-columns:1fr 1fr !important;
        align-items:center;
    }

    .coach-quick-message-status {
        grid-column:1 / -1;
    }

    .coach-quick-message-footer > div {
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px;
    }
}

:root[data-theme="dark"] .coach-template-preview-dialog,
:root[data-theme="dark"] .coach-weekly-action-dialog {
    background:linear-gradient(180deg,#17263d 0%,#101b2d 100%);
    border-color:rgba(144,183,255,.28);
    color:#eef4ff;
    box-shadow:0 24px 52px rgba(0,0,0,.42);
}

:root[data-theme="dark"] .coach-template-preview-dialog span,
:root[data-theme="dark"] .coach-weekly-template-name-modal-field {
    color:#d6e3f8;
}

:root[data-theme="dark"] .coach-template-preview-head strong {
    color:#f5f8ff;
}

:root[data-theme="dark"] .coach-template-preview-head .coach-mini-btn {
    background:rgba(255,255,255,.08);
    border-color:rgba(180,207,255,.28);
    color:#eef4ff;
}

:root[data-theme="dark"] .coach-weekly-template-name-modal-field input {
    background:#101a2b;
    border-color:rgba(144,183,255,.32);
    color:#f5f8ff;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}

:root[data-theme="dark"] .coach-weekly-template-name-modal-field input::placeholder {
    color:#8296b8;
}

:root[data-theme="dark"] .coach-weekly-action-footer .task-submit-btn.ghost {
    background:rgba(255,255,255,.08);
    border-color:rgba(180,207,255,.28);
    color:#eef4ff;
}

:root[data-theme="dark"] .coach-weekly-action-footer .task-submit-btn.secondary {
    background:linear-gradient(135deg,#234b72 0%,#e88324 130%);
    border-color:rgba(232,131,36,.65);
    color:#fff;
}

.coach-template-card[hidden],
[data-template-list-item][hidden],
.coach-template-more-btn[hidden] {
    display: none !important;
}

#sectionWeeklyTask.task-card:has(.coach-task-pane[data-coach-task-pane="weekly_bulk"].active) .coach-lock-fieldset,
#sectionWeeklyTask.task-card:has(.coach-task-pane[data-coach-task-pane="single"].active) .coach-lock-fieldset,
.coach-weekly-plan-panel,
.coach-weekly-board-shell,
.coach-weekly-board-day,
.coach-weekly-slot,
.coach-weekly-history-card,
.coach-template-lane,
.coach-template-card {
    border-color: #263f36;
}

:root[data-theme="dark"] #sectionWeeklyTask .coach-lock-fieldset,
:root[data-theme="dark"] .coach-weekly-plan-panel,
:root[data-theme="dark"] .coach-weekly-board-shell,
:root[data-theme="dark"] .coach-weekly-board-day,
:root[data-theme="dark"] .coach-weekly-slot,
:root[data-theme="dark"] .coach-weekly-history,
:root[data-theme="dark"] .coach-weekly-history-band,
:root[data-theme="dark"] .coach-weekly-history-card,
:root[data-theme="dark"] .coach-template-lane,
:root[data-theme="dark"] .coach-template-card {
    border-color: rgba(112, 145, 202, .52) !important;
    background: #142136 !important;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .24);
}

:root[data-theme="dark"] #sectionWeeklyTask label,
:root[data-theme="dark"] #sectionWeeklyTask .helper-note,
:root[data-theme="dark"] .coach-weekly-layout-toolbar > span,
:root[data-theme="dark"] .coach-weekly-history h3,
:root[data-theme="dark"] .coach-weekly-history p,
:root[data-theme="dark"] .coach-weekly-day-summary,
:root[data-theme="dark"] .coach-weekly-slot-label span,
:root[data-theme="dark"] .coach-template-card-main strong,
:root[data-theme="dark"] .coach-template-card-form label span {
    color: #edf4ff !important;
}

:root[data-theme="dark"] .coach-quick-task-section,
:root[data-theme="dark"] .coach-quick-preview,
:root[data-theme="dark"] .coach-quick-topic-strip,
:root[data-theme="dark"] .coach-quick-type-card,
:root[data-theme="dark"] .coach-inline-check--modern {
    border-color: rgba(112, 145, 202, .38);
    background: #17263d;
    box-shadow: none;
}

:root[data-theme="dark"] .coach-quick-task-section-head strong,
:root[data-theme="dark"] .coach-quick-type-card strong,
:root[data-theme="dark"] .coach-quick-preview strong {
    color: #eef4ff;
}

:root[data-theme="dark"] .coach-quick-task-section-head span,
:root[data-theme="dark"] .coach-quick-type-card span,
:root[data-theme="dark"] .coach-quick-preview p,
:root[data-theme="dark"] .coach-inline-check--modern small {
    color: #bfd0e8;
}

:root[data-theme="dark"] #sectionWeeklyTask input,
:root[data-theme="dark"] #sectionWeeklyTask select,
:root[data-theme="dark"] #sectionWeeklyTask textarea {
    border-color: rgba(153, 177, 220, .72) !important;
    background: #1b2a43 !important;
    color: #f4f8ff !important;
}

:root[data-theme="dark"] #sectionWeeklyTask input::placeholder,
:root[data-theme="dark"] #sectionWeeklyTask textarea::placeholder {
    color: rgba(225, 234, 249, .64) !important;
}

:root[data-theme="dark"] .coach-weekly-template-source,
:root[data-theme="dark"] .coach-weekly-layout-toggle {
    border-color: rgba(112, 145, 202, .48);
    background: #0f1a2c;
}

:root[data-theme="dark"] .coach-weekly-template-source-option,
:root[data-theme="dark"] .coach-weekly-layout-toggle button {
    color: #e8f0ff;
}

:root[data-theme="dark"] .coach-weekly-template-source-option:has(input:checked),
:root[data-theme="dark"] .coach-weekly-layout-toggle button.active {
    background: #3d70ad;
    color: #ffffff;
}

@media (max-width: 680px) {
    #sectionWeeklyTask.task-card:has(.coach-task-pane[data-coach-task-pane="weekly_bulk"].active),
    #sectionWeeklyTask.task-card:has(.coach-task-pane[data-coach-task-pane="single"].active) {
        overflow: hidden;
        padding: 8px;
    }

    #sectionWeeklyTask .coach-lock-fieldset {
        border: 0 !important;
        border-radius: 0;
        padding: 0 !important;
    }

    .coach-weekly-plan-panel,
    .coach-weekly-board-shell {
        border-width: 1.5px;
        border-radius: 16px;
        padding: 10px;
    }

    .coach-bulk-picker {
        padding: 10px;
    }

    .coach-bulk-picker--collapsible .coach-bulk-picker-head {
        gap: 6px;
    }

    .coach-bulk-picker-label {
        min-width: 0;
        font-size: .72rem;
        line-height: 1.25;
    }

    .coach-bulk-selection-count {
        min-width: 0;
        padding: 0 8px;
        font-size: .72rem;
    }

    .coach-quick-task-shell,
    .coach-quick-resource-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .coach-quick-type-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        overflow: visible;
        padding: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .coach-quick-type-card {
        width: 100%;
        min-width: 0;
        min-height: 126px;
        padding: 10px 9px;
    }

    .coach-quick-type-card i {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .coach-quick-type-card span {
        font-size: .74rem;
        line-height: 1.3;
    }

    .coach-quick-type-card strong {
        font-size: .88rem;
        line-height: 1.2;
    }

    .coach-quick-topic-strip {
        padding: 10px;
    }

    .coach-quick-task-main,
    .coach-quick-task-section,
    .coach-quick-topic-strip,
    .coach-quick-preview {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .coach-quick-preview {
        position: static;
    }

    .coach-weekly-compact-controls {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .coach-weekly-template-tools {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }

    .coach-weekly-template-tools label.coach-weekly-template-select-field {
        grid-column: 1 / -1;
    }

    .coach-weekly-template-source {
        display: grid;
        grid-column: 1;
        grid-row: 2;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(2, minmax(0, 1fr));
        gap: 3px;
        width: 100%;
        height: 56px;
        padding: 3px;
        box-sizing: border-box;
        border-color: #8fb7a5;
        background: #dceee5;
    }

    .coach-weekly-template-tools .coach-weekly-template-source-option {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
        min-height: 0;
        padding: 2px 5px;
        border-color: transparent;
        border-radius: 7px;
        background: rgba(255, 255, 255, .9);
        color: #224f3e;
        box-shadow: inset 0 0 0 1px rgba(49, 95, 76, .1);
        box-sizing: border-box;
    }

    .coach-weekly-template-tools .coach-weekly-template-source-option:first-child {
        grid-row: 1;
    }

    .coach-weekly-template-tools .coach-weekly-template-source-option:last-child {
        grid-row: 2;
    }

    .coach-weekly-template-tools .coach-weekly-template-source-option:has(input:checked) {
        border-color: #176b51;
        background: #176b51;
        color: #ffffff;
        box-shadow: 0 4px 10px rgba(23, 107, 81, .22);
    }

    .coach-weekly-template-tools .coach-weekly-template-page-icon {
        align-self: stretch;
        width: 100%;
        height: 56px;
        box-sizing: border-box;
    }

    .coach-weekly-template-tools > a.coach-weekly-template-page-icon:first-of-type {
        grid-column: 2;
        grid-row: 2;
    }

    .coach-weekly-template-tools > button.coach-weekly-template-page-icon:last-of-type {
        grid-column: 3;
        grid-row: 2;
    }

    .coach-weekly-layout-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        justify-items: stretch;
    }

    .coach-weekly-layout-toolbar > span {
        text-align: left;
    }

    .coach-weekly-layout-toggle {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .coach-weekly-board-day {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .coach-weekly-slot {
        flex-basis: min(72vw, 228px);
        min-width: min(72vw, 228px);
    }

    .coach-weekly-board-footer .task-submit-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .coach-weekly-board-footer .task-submit-btn {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        padding: 10px 6px;
        font-size: .78rem;
        white-space: normal;
    }

    .coach-task-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 10px 0 12px;
    }

    .coach-task-choice {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr);
        grid-template-areas:
            "icon title"
            "copy copy";
        min-height: 116px;
        gap: 7px 8px;
        align-content: start;
        padding: 11px 10px;
        border-radius: 14px;
    }

    .coach-task-choice-icon {
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .coach-task-choice strong {
        align-self: center;
        font-size: .9rem;
        line-height: 1.15;
    }

    .coach-task-choice small {
        font-size: .73rem;
        line-height: 1.3;
    }

    .coach-weekly-action-dialog .coach-template-preview-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .coach-weekly-action-dialog .coach-template-preview-head > .coach-mini-btn {
        justify-self: end;
        min-width: 82px;
        min-height: 38px;
    }

    .coach-weekly-action-dialog .coach-standard-modal-copy strong,
    .coach-weekly-action-dialog .coach-standard-modal-copy span {
        overflow-wrap: anywhere;
    }
}

.week-bars {
    padding-top:4px;
}

.week-bar {
    overflow:visible;
}

.coach-topic-risk-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.coach-topic-risk-panel {
    margin: 18px 0 20px;
    padding: 14px;
    border: 1.5px solid #214637;
    border-radius: 16px;
    background: #fbfff9;
}

.coach-topic-risk-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.coach-topic-risk-panel-head span,
.coach-topic-risk-panel-head small {
    color: #5f766b;
    font-size: .78rem;
    font-weight: 800;
}

.coach-topic-risk-panel-head strong {
    display: block;
    margin-top: 3px;
    color: #06291e;
    font-size: 1.02rem;
    font-weight: 900;
}

.coach-topic-risk-empty {
    margin: 0;
    color: #4f6a5e;
    font-weight: 700;
}

.coach-topic-risk-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1.5px solid #d8a35e;
    border-radius: 14px;
    background: #fff8ed;
}

.coach-topic-risk-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.coach-topic-risk-card.is-high {
    border-color: #d97b6c;
    background: #fff1ef;
}

.coach-topic-risk-card strong,
.coach-topic-risk-card span {
    display: block;
}

.coach-topic-risk-card strong {
    color: #173f2f;
    font-weight: 900;
}

.coach-topic-risk-card span {
    margin-top: 3px;
    color: #5f766b;
    font-size: .86rem;
}

.coach-topic-risk-score {
    min-width: 92px;
    padding: 9px 10px;
    border: 1px solid rgba(38, 63, 54, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
    text-align: center;
}

.coach-topic-risk-score b,
.coach-topic-risk-score small {
    display: block;
}

.coach-topic-risk-score b {
    color: #173f2f;
    font-size: 1.12rem;
    font-weight: 900;
}

.coach-topic-risk-score small {
    margin-top: 2px;
    color: #5f766b;
    font-size: .78rem;
    font-weight: 800;
}

.coach-topic-risk-periods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.coach-topic-risk-periods span {
    margin: 0;
    padding: 5px 8px;
    border: 1px solid rgba(38, 63, 54, .16);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #274d3d;
    font-size: .76rem;
    font-weight: 800;
}

.coach-topic-risk-card form {
    margin: 0;
}

.coach-topic-risk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.coach-topic-risk-actions .filter-btn {
    margin: 0;
}

.coach-icon-btn:disabled,
.filter-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
}

.coach-icon-btn:disabled:hover,
.filter-btn:disabled:hover {
    transform: none;
}

/* Compact assigned-student table so row actions stay visible on laptop widths. */
#studentOpsTabAssigned .coach-student-table {
    min-width: 980px;
}

#studentOpsTabAssigned .coach-student-col-student {
    width: 18%;
}

#studentOpsTabAssigned .coach-student-col-parent {
    width: 17%;
}

#studentOpsTabAssigned .coach-student-col-education {
    width: 11%;
}

#studentOpsTabAssigned .coach-student-col-edit {
    width: 54%;
}

#studentOpsTabAssigned .coach-student-table th,
#studentOpsTabAssigned .coach-student-table td {
    padding: 10px 12px;
}

#studentOpsTabAssigned .coach-student-table-main {
    min-width: 0;
}

#studentOpsTabAssigned .coach-student-parent-list.compact {
    gap: 5px;
}

#studentOpsTabAssigned .coach-student-parent-list.compact .coach-student-parent-card {
    padding: 7px 9px;
    border-radius: 10px;
    line-height: 1.25;
}

#studentOpsTabAssigned .coach-student-parent-card strong,
#studentOpsTabAssigned .coach-student-parent-card span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#studentOpsTabAssigned .coach-student-parent-card strong {
    font-size: .9rem;
}

#studentOpsTabAssigned .coach-student-parent-card span {
    font-size: .78rem;
}

#studentOpsTabAssigned .coach-student-item-badges {
    gap: 5px;
}

#studentOpsTabAssigned .coach-student-chip {
    padding: 5px 9px;
    font-size: .78rem;
}

#studentOpsTabAssigned .coach-student-table .coach-student-edit-grid {
    grid-template-columns: 1.04fr 1fr .92fr;
    gap: 7px;
}

#studentOpsTabAssigned .coach-student-table .coach-student-edit-form {
    gap: 6px;
}

#studentOpsTabAssigned .coach-student-table .coach-student-edit-form label {
    gap: 4px;
    font-size: .68rem;
}

#studentOpsTabAssigned .coach-student-table .coach-student-edit-form select {
    min-height: 34px;
    padding: 6px 26px 6px 9px;
    font-size: .82rem;
}

#studentOpsTabAssigned .coach-student-row-actions,
#studentOpsTabAssigned .coach-student-detach-form,
#studentOpsTabAssigned .coach-student-table td[data-label="Düzenle"] {
    gap: 5px;
}

#studentOpsTabAssigned .coach-icon-btn {
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 9px;
}

@media (max-width: 980px) {
    #studentOpsTabAssigned .coach-student-table {
        min-width: 0;
    }

    #studentOpsTabAssigned .coach-student-parent-card strong,
    #studentOpsTabAssigned .coach-student-parent-card span {
        white-space: normal;
    }
}

:root[data-theme="dark"] .coach-topic-risk-card {
    border-color: rgba(232, 131, 36, .62);
    background: #1d2a3d;
}

:root[data-theme="dark"] .coach-topic-risk-panel {
    border-color: rgba(153, 177, 220, .54);
    background: #111d30;
}

:root[data-theme="dark"] .coach-topic-risk-panel-head span,
:root[data-theme="dark"] .coach-topic-risk-panel-head small,
:root[data-theme="dark"] .coach-topic-risk-panel-head strong,
:root[data-theme="dark"] .coach-topic-risk-empty {
    color: #eef4ff;
}

:root[data-theme="dark"] .coach-topic-risk-card.is-high {
    border-color: rgba(244, 114, 114, .74);
    background: #2a2030;
}

:root[data-theme="dark"] .coach-topic-risk-card strong,
:root[data-theme="dark"] .coach-topic-risk-card span {
    color: #eef4ff;
}

:root[data-theme="dark"] .coach-topic-risk-score {
    border-color: rgba(153, 177, 220, .3);
    background: rgba(255, 255, 255, .08);
}

:root[data-theme="dark"] .coach-topic-risk-score b,
:root[data-theme="dark"] .coach-topic-risk-score small {
    color: #eef4ff;
}

:root[data-theme="dark"] .coach-topic-risk-periods span {
    border-color: rgba(153, 177, 220, .36);
    background: rgba(255, 255, 255, .08);
    color: #e7f0ff;
}

@media (max-width: 760px) {
    .coach-topic-risk-list {
        grid-template-columns: 1fr;
    }

    .coach-topic-risk-main {
        grid-template-columns: 1fr;
    }

    .coach-topic-risk-score {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .coach-demo-tour-launch {
        right: 14px;
        bottom: 14px;
        min-height: 44px;
        padding-right: 14px;
        font-size: .9rem;
    }

    .coach-demo-tour-card {
        left: 14px !important;
        right: 14px;
        bottom: 14px;
        top: auto !important;
        width: auto !important;
    }

    .coach-demo-tour-actions {
        flex-wrap: wrap;
    }

    .coach-demo-tour-primary,
    .coach-demo-tour-secondary {
        flex: 1 1 auto;
    }
}

.coach-shell .daily-kpi-box strong,
.coach-shell .daily-kpi-box .dyb-three-line,
.coach-shell .daily-kpi-box .dyb-three-line i,
.coach-shell #sectionDetailedAnalytics .exam-sum-box strong,
.coach-shell #sectionDetailedAnalytics .exam-sum-box .dyb-three-line,
.coach-shell #sectionDetailedAnalytics .exam-sum-box .dyb-three-line i,
.coach-shell .exam-sum-box strong,
.coach-shell .sum-box strong,
.coach-shell .analysis-row strong,
.coach-shell .weekly-report-metric strong,
.coach-shell .weekly-report-exam-kpi strong,
.coach-shell .exam-trend-kpi strong,
.coach-shell .coach-compare-metric strong,
.coach-shell .coach-weekly-history-metrics {
    font-family: var(--portal-number-font) !important;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1, "zero" 0;
    font-style: normal !important;
    letter-spacing: -0.02em;
}

@media (max-width: 980px) {
    body.route-portal-coach,
    body.route-portal-coach .wrap,
    body.route-portal-coach .nav,
    body.route-portal-coach .coach-shell,
    body.route-portal-coach .coach-main,
    body.route-portal-coach .coach-grid,
    body.route-portal-coach .coach-sections,
    body.route-portal-coach .task-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    body.route-portal-coach .wrap,
    body.route-portal-coach .coach-shell {
        overflow-x: clip;
    }

    body.route-portal-coach .coach-main,
    body.route-portal-coach .coach-grid,
    body.route-portal-coach .coach-sections,
    body.route-portal-coach .task-card,
    body.route-portal-coach #sectionWeeklyTask,
    body.route-portal-coach #sectionWeeklyTask * {
        min-width: 0;
    }
}

:root[data-theme="dark"] #sectionStudentOps .admin-subtab-btn {
    background: transparent;
    border-color: transparent;
    color: var(--invite-muted);
}

:root[data-theme="dark"] #sectionStudentOps .admin-subtab-btn.active {
    background: #2f6fb2;
    border-color: #2f6fb2;
    color: #fff;
    box-shadow: 0 8px 16px rgba(47, 111, 178, .22);
}

:root[data-theme="dark"] #sectionStudentOps .coach-bulk-invite-badge {
    background: rgba(217, 111, 24, .18);
    border-color: rgba(242, 172, 87, .34);
    color: #ffd59b;
}

:root[data-theme="dark"] #sectionStudentOps .coach-student-invite-form .login-subpanel,
:root[data-theme="dark"] #sectionStudentOps .coach-student-invite-step {
    background: linear-gradient(180deg, #111f34 0%, #13233a 100%);
    border-color: var(--invite-line);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .24);
}

:root[data-theme="dark"] #sectionStudentOps .coach-student-invite-form .login-subpanel::before,
:root[data-theme="dark"] #sectionStudentOps .coach-student-invite-step::before {
    background: linear-gradient(90deg, #6aa3ff 0%, #57c78a 58%, #ffad57 100%);
}

:root[data-theme="dark"] #sectionStudentOps .coach-shared-parent-check {
    background: #12243a;
    border-color: #426a55;
    color: #e6f0ff;
}

:root[data-theme="dark"] #sectionStudentOps .coach-inline-actions .btn-mini:not(.btn-mini-danger),
:root[data-theme="dark"] #sectionStudentOps .coach-invite-success-copy-btn,
:root[data-theme="dark"] #sectionStudentOps .coach-student-invite-form button[type="submit"] {
    background: linear-gradient(135deg, #2f6fb2 0%, #3b82f6 100%);
    border-color: rgba(147, 197, 253, .28);
    color: #fff;
    box-shadow: 0 10px 18px rgba(59, 130, 246, .18);
}

:root[data-theme="dark"] #sectionStudentOps .coach-invite-table-wrap {
    border-color: var(--invite-line);
}

:root[data-theme="dark"] #sectionStudentOps .coach-invite-table tbody tr + tr td {
    border-top-color: #465f7f;
}

:root:not([data-theme="dark"]) #sectionStudentOps .coach-invite-table tbody tr:nth-child(even) td {
    background: #f3f7fb;
}

:root:not([data-theme="dark"]) #sectionStudentOps .coach-invite-table tbody tr + tr td {
    border-top: 2px solid #b4c7d9;
}

:root:not([data-theme="dark"]) #sectionStudentOps .coach-invite-table tbody tr:hover td {
    background: #eaf2fb;
}

/* Coach overview card polish */
#sectionOverview {
    border-radius: 10px;
}

#sectionOverview .coach-compare-card {
    padding: 12px;
}

#sectionOverview .coach-compare-top h4 {
    margin-top: 7px;
    font-size: 1rem;
}

#sectionOverview .coach-compare-tags {
    gap: 5px;
}

#sectionOverview .coach-compare-tags span {
    padding: 3px 7px;
    border-radius: 5px;
    background: #f2f7fb;
    border-color: #cbd9e7;
    color: #315d8e;
    font-size: .7rem;
}

#sectionOverview .coach-compare-tags span:first-child {
    background: #fff7eb;
    border-color: #efcb97;
    color: #936018;
}

#sectionOverview .coach-compare-metrics {
    gap: 6px;
    margin-top: 9px;
}

#sectionOverview .coach-compare-metric {
    padding: 8px;
    border-radius: 5px;
}

#sectionOverview .coach-compare-metric span {
    font-size: .66rem;
    letter-spacing: 0;
    line-height: 1.2;
}

#sectionOverview .coach-compare-metric strong {
    margin-top: 6px;
    font-size: 1.1rem;
}

#sectionOverview .coach-compare-extra {
    margin-top: 9px;
    border-width: 1px 0;
    border-style: solid;
    border-radius: 0;
    background: transparent;
}

#sectionOverview .coach-compare-extra-summary {
    min-height: 38px;
    padding: 7px 2px;
    font-size: .8rem;
}

#sectionOverview .coach-compare-extra-pill {
    min-height: 23px;
    padding: 0 7px;
    font-size: .68rem;
}

#sectionOverview .coach-compare-extra-body {
    padding: 1px 2px 9px;
}

#sectionOverview .coach-compare-actions {
    gap: 6px;
    margin-top: 9px;
}

#sectionOverview .coach-compare-card .filter-btn,
#sectionOverview .coach-compare-card .filter-btn.active,
#sectionOverview .coach-overview-quick-form .filter-btn {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 5px !important;
    box-shadow: none;
    font-size: .76rem;
}

#sectionOverview .coach-compare-actions .coach-compare-icon-action {
    flex: 0 0 36px;
    width: 36px;
    min-width: 36px;
    padding: 0 !important;
    font-size: .9rem;
}

:root[data-theme="dark"] #sectionOverview .coach-compare-tags span {
    border-color: rgba(111, 152, 209, .38);
    background: #182942;
    color: #dce9ff;
}

:root[data-theme="dark"] #sectionOverview .coach-compare-tags span:first-child {
    border-color: rgba(239, 203, 151, .42);
    background: rgba(147, 96, 24, .2);
    color: #ffd59b;
}

:root[data-theme="dark"] #sectionOverview .coach-compare-extra {
    border-color: rgba(111, 152, 209, .3);
    background: transparent;
}

@media (max-width: 480px) {
    #sectionOverview .coach-compare-card {
        padding: 10px;
    }

    #sectionOverview .coach-compare-actions {
        gap: 5px;
    }

    #sectionOverview .coach-compare-actions .coach-compare-icon-action {
        width: 100% !important;
        min-width: 0;
    }
}

/* Coach overview visual hierarchy */
#sectionOverview .coach-compare-card {
    padding: 14px;
    border-color: #d9e1e9;
    box-shadow: 0 7px 18px rgba(31, 49, 72, .07);
}

#sectionOverview .coach-compare-top h4 {
    margin-top: 9px;
    color: #17385f;
    font-size: 1.04rem;
    line-height: 1.2;
}

#sectionOverview .risk-badge {
    min-height: 24px;
    padding: 0 8px;
    font-size: .68rem;
}

#sectionOverview .coach-compare-metric {
    min-height: 82px;
    border-color: transparent;
    background: #f4f8fc;
}

#sectionOverview .coach-compare-metric:nth-child(1) {
    background: #edf8f6;
}

#sectionOverview .coach-compare-metric:nth-child(2) {
    background: #eef4fd;
}

#sectionOverview .coach-compare-metric:nth-child(3) {
    background: #fff7e9;
}

#sectionOverview .coach-compare-metric:nth-child(4) {
    background: #fff1ec;
}

#sectionOverview .coach-compare-metric strong {
    color: #17385f;
    font-size: 1.24rem;
}

#sectionOverview .coach-compare-extra-summary {
    color: #29455f;
}

#sectionOverview .coach-compare-actions {
    align-items: stretch;
    flex-wrap: nowrap;
}

#sectionOverview .coach-overview-quick-form {
    flex: 1 1 auto;
    min-width: 0;
}

#sectionOverview .coach-overview-quick-form .coach-quick-action-btn {
    width: 100%;
    min-width: 0;
}

#sectionOverview .coach-compare-actions .coach-compare-icon-action {
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px;
    border-color: #c8d8e9;
    background: #f5f9ff;
    color: #315d8e;
}

#sectionOverview .coach-compare-actions .coach-compare-icon-action.is-detail {
    border-color: #efcb97;
    background: #fff8ec;
    color: #936018;
}

:root[data-theme="dark"] #sectionOverview .coach-compare-top h4,
:root[data-theme="dark"] #sectionOverview .coach-compare-metric strong {
    color: #eaf2ff;
}

:root[data-theme="dark"] #sectionOverview .coach-compare-metric:nth-child(1) {
    background: rgba(43, 128, 96, .16);
}

:root[data-theme="dark"] #sectionOverview .coach-compare-metric:nth-child(2) {
    background: rgba(49, 93, 142, .2);
}

:root[data-theme="dark"] #sectionOverview .coach-compare-metric:nth-child(3) {
    background: rgba(147, 96, 24, .2);
}

:root[data-theme="dark"] #sectionOverview .coach-compare-metric:nth-child(4) {
    background: rgba(164, 76, 65, .18);
}

:root[data-theme="dark"] #sectionOverview .coach-compare-actions .coach-compare-icon-action {
    border-color: rgba(111, 152, 209, .38);
    background: #182942;
    color: #dce9ff;
}

:root[data-theme="dark"] #sectionOverview .coach-compare-actions .coach-compare-icon-action.is-detail {
    border-color: rgba(239, 203, 151, .42);
    background: rgba(147, 96, 24, .2);
    color: #ffd59b;
}

@media (max-width: 480px) {
    #sectionOverview .coach-compare-card {
        padding: 12px;
    }

    #sectionOverview .coach-compare-actions {
        display: flex !important;
        gap: 6px;
    }

    #sectionOverview .coach-overview-quick-form {
        display: flex !important;
        flex: 1 1 auto;
    }

    #sectionOverview .coach-compare-actions .coach-compare-icon-action {
        width: 36px !important;
        min-width: 36px;
    }
}

/* Coach overview compact actions */
#sectionOverview .coach-overview-head {
    margin-bottom: 10px;
}

#sectionOverview .coach-compare-metric strong {
    margin-top: 8px;
    font-size: 1.58rem;
    line-height: 1;
}

#sectionOverview .coach-compare-actions {
    gap: 7px;
}

#sectionOverview .coach-compare-actions .coach-compare-secondary-action {
    flex: 0 0 auto;
    min-width: 62px;
    min-height: 34px;
    border-color: #c8d8e9;
    background: #f7faff;
    color: #315d8e;
    font-weight: 800;
    text-decoration: none;
}

#sectionOverview .coach-compare-actions .coach-compare-secondary-action.is-detail {
    border-color: #efcb97;
    background: #fff8ec;
    color: #936018;
}

:root[data-theme="dark"] #sectionOverview .coach-compare-actions .coach-compare-secondary-action {
    border-color: rgba(111, 152, 209, .38);
    background: #182942;
    color: #dce9ff;
}

:root[data-theme="dark"] #sectionOverview .coach-compare-actions .coach-compare-secondary-action.is-detail {
    border-color: rgba(239, 203, 151, .42);
    background: rgba(147, 96, 24, .2);
    color: #ffd59b;
}

@media (max-width: 480px) {
    #sectionOverview .coach-compare-actions .coach-compare-secondary-action {
        flex: 0 0 auto;
        width: auto !important;
        min-width: 58px;
        padding: 0 8px;
        font-size: .7rem;
    }
}

/* Coach overview aligned command bar */
#sectionOverview .coach-compare-extra-summary::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-left: auto;
    border: 1px solid #b9d0c5;
    border-radius: 50%;
    background: #f2faf6;
    color: #17684e;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

#sectionOverview .coach-compare-actions {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
}

#sectionOverview .coach-overview-quick-form {
    display: contents !important;
}

#sectionOverview .coach-overview-quick-form .coach-quick-action-btn,
#sectionOverview .coach-compare-actions .coach-compare-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-width: 0;
    min-height: 38px;
    padding: 0 8px;
    border-radius: 5px !important;
    box-shadow: none !important;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    white-space: normal;
}

#sectionOverview .coach-overview-quick-form .coach-quick-action-btn {
    background: #fff3de !important;
    border-color: #e9b462 !important;
    color: #8a520f !important;
}

#sectionOverview .coach-compare-actions .coach-compare-secondary-action {
    border-color: #cbd8e5;
    background: #ffffff;
    color: #315d8e;
}

#sectionOverview .coach-compare-actions .coach-compare-secondary-action.is-detail {
    border-color: #d6c4a9;
    background: #fffdf9;
    color: #7f5a25;
}

#sectionOverview .coach-overview-quick-form .coach-quick-action-status {
    grid-column: 1 / -1;
}

#sectionOverview .coach-overview-quick-form .coach-quick-action-status:empty {
    display: none;
}

@media (hover: hover) {
    #sectionOverview .coach-overview-quick-form .coach-quick-action-btn:hover {
        background: #ffe8c1 !important;
        border-color: #d89b3f !important;
    }

    #sectionOverview .coach-compare-actions .coach-compare-secondary-action:hover {
        border-color: #94b0cc;
        background: #f4f8fc;
    }
}

:root[data-theme="dark"] #sectionOverview .coach-compare-extra-summary::after {
    border-color: rgba(105, 178, 147, .46);
    background: rgba(43, 128, 96, .18);
    color: #b8efd7;
}

:root[data-theme="dark"] #sectionOverview .coach-compare-actions .coach-compare-secondary-action,
:root[data-theme="dark"] #sectionOverview .coach-compare-actions .coach-compare-secondary-action.is-detail {
    border-color: rgba(111, 152, 209, .38);
    background: #182942;
    color: #dce9ff;
}

:root[data-theme="dark"] #sectionOverview .coach-overview-quick-form .coach-quick-action-btn {
    border-color: rgba(239, 203, 151, .46) !important;
    background: #3a2d1e !important;
    color: #ffd59b !important;
}

@media (max-width: 480px) {
    #sectionOverview .coach-compare-actions {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    #sectionOverview .coach-overview-quick-form {
        display: contents !important;
    }

    #sectionOverview .coach-overview-quick-form .coach-quick-action-btn,
    #sectionOverview .coach-compare-actions .coach-compare-secondary-action {
        width: 100% !important;
        min-width: 0;
        min-height: 40px;
        padding: 0 6px;
        font-size: .68rem;
    }
}

/* Coach quick message drawer */
#sectionOverview .coach-overview-grid {
    align-items: start;
}

.coach-quick-message-panel {
    width: min(540px, 96vw);
    padding: 18px;
    border-left: 1px solid #d7e8de;
    background: linear-gradient(180deg, #fffdf9 0%, #f7fbf8 100%);
    box-shadow: -18px 0 50px rgba(12, 28, 20, .22);
}

.coach-quick-message-panel .exam-head {
    align-items: flex-start;
    padding-bottom: 13px;
    border-bottom: 1px solid #e1ece5;
}

.coach-quick-message-panel .exam-head h4 {
    margin-top: 3px;
    color: #173f2f;
    font-size: 1.28rem;
}

.coach-quick-message-kicker {
    display: inline-flex;
    color: #638073;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.coach-quick-message-student {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 14px;
    padding: 13px;
    border: 1px solid #dceae2;
    border-radius: 8px;
    background: #ffffff;
}

.coach-quick-message-student-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff3de;
    color: #9a6215;
    font-size: 1rem;
}

.coach-quick-message-student span:not(.coach-quick-message-student-icon) {
    display: block;
    color: #668073;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.coach-quick-message-student strong {
    display: block;
    margin-top: 4px;
    color: #173f2f;
    font-size: 1rem;
}

.coach-quick-message-student p {
    margin: 5px 0 0;
    color: #587367;
    font-size: .82rem;
    line-height: 1.45;
}

.coach-quick-message-panel .coach-quick-message-form {
    gap: 10px;
    margin-top: 12px;
}

.coach-quick-message-field {
    display: grid;
    gap: 7px;
    padding: 12px;
    border: 1px solid #dceae2;
    border-radius: 8px;
    background: #ffffff;
}

.coach-quick-message-field > span {
    color: #315848;
    font-size: .76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.coach-quick-message-form .coach-quick-message-field input,
.coach-quick-message-form .coach-quick-message-field textarea {
    width: 100%;
    margin-top: 0;
    border-color: #b9cec3;
    border-radius: 6px;
    background: #fbfdfc;
}

.coach-quick-message-form .coach-quick-message-field textarea {
    min-height: 140px;
    resize: vertical;
}

.coach-quick-message-panel .coach-quick-message-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #e1ece5;
}

.coach-quick-message-panel .coach-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(88px, 1fr));
    gap: 8px;
    width: auto;
    padding: 0;
}

.coach-quick-message-panel .coach-confirm-btn {
    width: 100%;
    min-height: 40px;
    height: auto;
    border-radius: 6px;
    padding: 0 13px;
    flex: 1 1 auto;
    font-weight: 800;
}

:root[data-theme="dark"] .coach-quick-message-panel {
    border-color: #29466b;
    background: #101c2f;
}

:root[data-theme="dark"] .coach-quick-message-panel .exam-head,
:root[data-theme="dark"] .coach-quick-message-panel .coach-quick-message-footer {
    border-color: #29466b;
}

:root[data-theme="dark"] .coach-quick-message-panel .exam-head h4,
:root[data-theme="dark"] .coach-quick-message-student strong {
    color: #e8f1ff;
}

:root[data-theme="dark"] .coach-quick-message-student,
:root[data-theme="dark"] .coach-quick-message-field {
    border-color: rgba(91, 125, 196, .3);
    background: #15243a;
}

:root[data-theme="dark"] .coach-quick-message-student p,
:root[data-theme="dark"] .coach-quick-message-field > span,
:root[data-theme="dark"] .coach-quick-message-kicker {
    color: #b8cae6;
}

@media (max-width: 680px) {
    .coach-quick-message-panel {
        padding: 14px;
        border-radius: 10px;
    }

    .coach-quick-message-student {
        padding: 11px;
    }

    .coach-quick-message-panel .coach-quick-message-footer {
        grid-template-columns: 1fr !important;
    }

    .coach-quick-message-panel .coach-confirm-actions {
        width: 100%;
    }
}

/* Coach overview compact weekly insight */
#sectionOverview .coach-compare-extra-body {
    padding: 7px 2px 3px;
}

#sectionOverview .coach-compare-trends {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

#sectionOverview .coach-trend-chip {
    display: grid;
    gap: 3px;
    align-content: start;
    min-width: 0;
    min-height: 48px;
    padding: 6px 7px;
    border-radius: 6px;
    line-height: 1.15;
}

#sectionOverview .coach-trend-chip small {
    color: #718096;
    font-size: .62rem;
    font-weight: 800;
    text-transform: uppercase;
}

#sectionOverview .coach-trend-chip strong {
    color: #315d8e;
    font-size: .72rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

#sectionOverview .coach-compare-note {
    margin-top: 6px;
    padding: 7px 8px;
    border-radius: 6px;
    color: #587367;
    font-size: .74rem;
    line-height: 1.35;
}

#sectionOverview .coach-intervention-card {
    display: grid;
    gap: 5px;
    margin-top: 6px;
    padding: 8px;
    border-radius: 6px;
}

#sectionOverview .coach-intervention-label,
#sectionOverview .coach-intervention-action {
    min-height: 22px;
    padding: 0 7px;
    font-size: .66rem;
}

#sectionOverview .coach-intervention-reason,
#sectionOverview .coach-intervention-text {
    margin: 0;
    font-size: .74rem;
    line-height: 1.35;
}

:root[data-theme="dark"] #sectionOverview .coach-trend-chip small {
    color: #a8bad5;
}

:root[data-theme="dark"] #sectionOverview .coach-trend-chip strong {
    color: #dce9ff;
}

@media (max-width: 480px) {
    #sectionOverview .coach-compare-trends {
        gap: 5px;
    }

    #sectionOverview .coach-trend-chip {
        min-height: 44px;
        padding: 5px;
    }

    #sectionOverview .coach-trend-chip small {
        font-size: .58rem;
    }

    #sectionOverview .coach-trend-chip strong {
        font-size: .66rem;
    }
}

/* Coach section rhythm */
.coach-sections.single {
    margin-top: 12px;
}

.coach-sections.single .coach-section.active {
    margin-top: 0;
}

.coach-top.is-overview-focus {
    border-bottom-color: #315784;
    border-radius: 18px;
}

.coach-sections.single #sectionOverview.active {
    border-top: 1px solid #d7d2c8;
    border-radius: 10px;
}

:root[data-theme="dark"] .coach-top.is-overview-focus {
    border-bottom-color: #2f3d57;
}

:root[data-theme="dark"] .coach-sections.single #sectionOverview.active {
    border-top-color: rgba(91, 125, 196, .3);
}

.side-menu-btn.is-loading,
.quick-btn.is-loading {
    position: relative;
    padding-right: 28px;
    opacity: .84;
}

.side-menu-btn.is-loading::after,
.quick-btn.is-loading::after {
    content: "";
    position: absolute;
    right: 9px;
    width: 12px;
    height: 12px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: coach-section-nav-spin .7s linear infinite;
}

@keyframes coach-section-nav-spin {
    to {
        transform: rotate(360deg);
    }
}
