:root {
    --brand-brown: #450c08;
    --brand-brown-dark: #310704;
    --brand-orange: #f7901d;
    --brand-gold: #ffcf05;
    --brand-soft: #fff1d6;
    --ink: #351815;
    --muted: #7b645e;
    --soft-muted: #aa9189;
    --background: #fff9f2;
    --surface: #ffffff;
    --line: #f0ded3;
    --green: var(--brand-brown);
    --green-dark: var(--brand-brown-dark);
    --green-soft: var(--brand-soft);
    --shadow: 0 18px 50px rgba(69, 12, 8, 0.07);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--background);
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 80% -10%, rgba(255, 207, 5, 0.17), transparent 30rem),
        var(--background);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

button,
a {
    font: inherit;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(247, 144, 29, 0.32);
    outline-offset: 3px;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 10;
    inset: 0 auto 0 0;
    display: flex;
    width: 232px;
    flex-direction: column;
    padding: 34px 22px 24px;
    border-right: 1px solid rgba(240, 222, 211, 0.92);
    background: rgba(255, 252, 247, 0.92);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 176px;
    height: auto;
}

.main-nav {
    display: grid;
    gap: 7px;
    margin-top: 52px;
}

.nav-item {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 13px;
    padding: 0 14px;
    border-radius: 12px;
    color: #765f59;
    font-weight: 600;
    text-decoration: none;
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

a.nav-item:hover {
    color: var(--green);
    background: #fff3df;
    transform: translateX(2px);
}

.nav-item svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.nav-item.active {
    color: var(--green-dark);
    background: var(--green-soft);
}

.nav-item.muted {
    cursor: default;
    opacity: 0.62;
}

.sidebar-records {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.sidebar-records-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px;
}

.sidebar-records-heading span {
    color: #6d5049;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
}

.sidebar-records-heading small {
    color: #aa9189;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.sidebar-record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.record-shortcut {
    display: grid;
    min-height: 67px;
    place-items: center;
    align-content: center;
    gap: 6px;
    padding: 8px 4px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #725750;
    background: #fff5e7;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.record-shortcut:hover {
    border-color: #f1d4b9;
    color: var(--green-dark);
    background: #fff;
    box-shadow: 0 8px 20px rgba(69, 12, 8, 0.08);
    transform: translateY(-2px);
}

.record-shortcut.active {
    border-color: #f0c47b;
    color: var(--green-dark);
    background: var(--brand-soft);
    box-shadow: inset 0 0 0 1px rgba(247, 144, 29, 0.08);
}

.record-shortcut-icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.78);
}

.record-shortcut svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.record-lesson .record-shortcut-icon {
    color: var(--brand-brown);
    background: #ffe7bd;
}

.record-practice .record-shortcut-icon {
    color: #a44a0d;
    background: #fff0d8;
}

.record-game .record-shortcut-icon {
    color: #7b2d17;
    background: #f8e3d8;
}

.record-game circle,
.record-more circle {
    fill: currentColor;
    stroke: none;
}

.record-more .record-shortcut-icon {
    color: #8b5a17;
    background: #fff3bf;
}

.sidebar-bottom {
    display: grid;
    gap: 18px;
    margin-top: auto;
}

.teacher-profile {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 18px 4px 2px;
    border-top: 1px solid var(--line);
}

.avatar {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--brand-orange), var(--brand-brown));
    box-shadow: 0 3px 8px rgba(69, 12, 8, 0.2);
    font-size: 12px;
    font-weight: 700;
}

.teacher-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.teacher-copy strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.teacher-copy small {
    color: var(--soft-muted);
    font-size: 11px;
}

.logout-form {
    margin-left: auto;
}

.logout-form button,
.mobile-logout-form button {
    display: grid;
    padding: 0;
    border: 0;
    place-items: center;
    color: #909a92;
    background: transparent;
    cursor: pointer;
}

.logout-form button {
    width: 31px;
    height: 31px;
    border-radius: 9px;
}

.logout-form button:hover {
    color: var(--green);
    background: var(--green-soft);
}

.logout-form svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.mobile-logout-form {
    margin: 0;
}

.profile-more {
    margin-left: auto;
    color: var(--soft-muted);
    font-size: 12px;
    letter-spacing: 1px;
}

.mobile-header {
    display: none;
}

.app-messages {
    display: grid;
    max-width: 1360px;
    gap: 8px;
    margin: 0 auto 20px;
}

.app-message {
    padding: 12px 16px;
    border: 1px solid #cfe2d5;
    border-radius: 12px;
    color: #28543e;
    background: #edf6f0;
    box-shadow: 0 8px 24px rgba(42, 92, 66, 0.05);
    font-size: 13px;
    font-weight: 600;
}

.main-content {
    min-height: 100vh;
    margin-left: 232px;
    padding: 52px clamp(28px, 4vw, 68px) 64px;
}

.record-page-heading {
    align-items: center;
}

.record-back-link {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: #5e6c63;
    background: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.record-back-link:hover {
    border-color: #cbdacf;
    color: var(--green-dark);
    background: #fff;
}

.lesson-record-panel {
    max-width: 1040px;
    margin: 38px auto 0;
}

.lesson-record-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 13px;
    padding: 0 5px;
}

.lesson-record-panel-heading > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.lesson-record-count {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: var(--green);
    box-shadow: 0 8px 18px rgba(46, 107, 79, 0.18);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
}

.lesson-record-panel-heading h2 {
    margin: 0 0 4px;
    font-family: Georgia, "Songti SC", "Times New Roman", serif;
    font-size: 20px;
    font-weight: 600;
}

.lesson-record-panel-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
}

.lesson-record-rule {
    padding: 7px 10px;
    border-radius: 8px;
    color: #587060;
    background: #fff1dc;
    font-size: 10px;
    font-weight: 650;
}

.lesson-record-list {
    display: grid;
    gap: 9px;
}

.lesson-record-item {
    display: grid;
    min-height: 112px;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 21px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 9px 28px rgba(40, 60, 47, 0.045);
}

.lesson-record-item.today {
    border-color: #efc58e;
    background: linear-gradient(105deg, #fff, #fff7ed);
}

.lesson-record-date {
    display: grid;
    width: 64px;
    height: 70px;
    place-items: center;
    align-content: center;
    gap: 1px;
    border-radius: 15px;
    color: #56645b;
    background: #f0f3ef;
}

.today .lesson-record-date {
    color: var(--green-dark);
    background: #dfece3;
}

.lesson-record-date strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 500;
    line-height: 1;
}

.lesson-record-date span {
    font-size: 9px;
    font-weight: 750;
}

.lesson-record-main {
    min-width: 0;
}

.lesson-record-title-line {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #89948c;
    font-size: 10px;
    font-weight: 700;
}

.lesson-record-state {
    padding: 3px 7px;
    border-radius: 999px;
    color: #8a6640;
    background: #f4eadf;
}

.today .lesson-record-state {
    color: #326247;
    background: #dfece3;
}

.lesson-record-main h3 {
    margin: 7px 0 7px;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lesson-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    color: var(--muted);
    font-size: 10px;
}

.lesson-record-meta span + span::before {
    content: "·";
    margin-right: 12px;
    color: #bbc2bc;
}

.lesson-record-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lesson-record-actions form {
    margin: 0;
}

.lesson-record-actions a,
.lesson-record-actions button {
    display: inline-flex;
    min-height: 37px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.lesson-record-actions a {
    border: 1px solid var(--line);
    color: #68746c;
    background: #fff;
}

.lesson-record-actions button {
    border: 1px solid var(--green);
    color: #fff;
    background: var(--green);
    cursor: pointer;
}

.lesson-record-actions a:hover {
    border-color: #c7d6cb;
    color: var(--green-dark);
}

.lesson-record-actions button:hover {
    background: var(--green-dark);
}

.lesson-record-empty {
    display: grid;
    min-height: 260px;
    place-items: center;
    align-content: center;
    padding: 36px;
    border: 1px dashed #cbd8ce;
    border-radius: 18px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.62);
    text-align: center;
}

.lesson-record-empty > span {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 50%;
    color: var(--green);
    background: var(--green-soft);
    font-size: 22px;
    font-weight: 750;
}

.lesson-record-empty h2 {
    margin: 0 0 7px;
    color: var(--ink);
    font-family: Georgia, "Songti SC", "Times New Roman", serif;
    font-size: 21px;
    font-weight: 600;
}

.lesson-record-empty p {
    margin: 0;
    font-size: 11px;
}

.record-entry-shell {
    display: grid;
    max-width: 900px;
    min-height: 290px;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    margin: 38px auto 0;
    padding: 46px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 207, 5, 0.2), transparent 18rem),
        #fff;
    box-shadow: var(--shadow);
}

.record-entry-mark {
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    border-radius: 32px;
    color: #fff;
    background: linear-gradient(145deg, var(--brand-orange), var(--brand-brown));
    box-shadow: 0 18px 34px rgba(69, 12, 8, 0.2);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
}

.record-entry-copy > span {
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.record-entry-copy h2 {
    margin: 10px 0 10px;
    font-family: Georgia, "Songti SC", "Times New Roman", serif;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 600;
}

.record-entry-copy p {
    max-width: 530px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.record-type-switcher {
    display: grid;
    max-width: 900px;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 14px auto 0;
}

.record-type-switcher a {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: #775f58;
    background: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.record-type-switcher a:hover,
.record-type-switcher a.active {
    border-color: #efc181;
    color: var(--green-dark);
    background: var(--green-soft);
}

.record-type-switcher span {
    color: #a88f87;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
}

.record-type-switcher strong {
    font-size: 12px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    max-width: 1360px;
    margin: 0 auto;
}

.eyebrow,
.section-kicker {
    margin: 0 0 9px;
    color: #8e6b60;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.page-heading h1 {
    margin: 0;
    font-family: Georgia, "Songti SC", "Times New Roman", serif;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 600;
    letter-spacing: -1.2px;
}

.page-heading h1 span {
    display: inline-block;
    font-family: initial;
    font-size: 0.7em;
    transform: translateY(-2px);
}

.page-heading p:last-child {
    margin: 11px 0 0;
    color: var(--muted);
}

.primary-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--green);
    box-shadow: 0 8px 18px rgba(69, 12, 8, 0.17);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

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

.primary-button span {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.summary-strip {
    display: flex;
    max-width: 1360px;
    min-height: 78px;
    align-items: center;
    gap: 14px;
    margin: 34px auto 18px;
    padding: 14px 22px;
    border: 1px solid #eedbcb;
    border-radius: 16px;
    background: linear-gradient(110deg, #fff2dd, #fff9f2);
}

.summary-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: var(--green);
    background: #fff;
    box-shadow: 0 4px 12px rgba(69, 12, 8, 0.08);
}

.summary-icon svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.summary-strip > div:nth-child(2) {
    display: grid;
    gap: 5px;
}

.summary-strip strong {
    font-size: 14px;
}

.summary-strip span {
    color: var(--muted);
    font-size: 12px;
}

.summary-progress {
    display: flex;
    gap: 7px;
    margin-left: auto;
}

.summary-progress span {
    width: 24px;
    height: 5px;
    border-radius: 10px;
    background: #cddbd1;
}

.summary-progress span:nth-child(-n + 2) {
    background: var(--green);
}

.dashboard-grid {
    display: grid;
    max-width: 1360px;
    grid-template-columns: minmax(470px, 1.05fr) minmax(440px, 0.95fr);
    gap: 18px;
    margin: 0 auto;
}

.card {
    min-width: 0;
    border: 1px solid rgba(226, 231, 225, 0.95);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 28px 18px;
}

.card-header h2,
.placeholder-panel h2,
.students-panel h2 {
    margin: 0;
    font-family: Georgia, "Songti SC", "Times New Roman", serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.calendar-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.text-button,
.icon-button {
    border: 1px solid var(--line);
    color: #607067;
    background: #fff;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.text-button:hover,
.icon-button:hover {
    border-color: #edbd79;
    color: var(--green);
    background: #fff7ec;
}

.text-button {
    height: 34px;
    padding: 0 12px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}

.icon-button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border-radius: 9px;
}

.icon-button svg,
.back-link svg,
.session-arrow {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.calendar {
    padding: 0 22px;
}

.calendar-days,
.calendar {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-days {
    grid-column: 1 / -1;
}

.weekday {
    padding: 11px 0 13px;
    color: #929c95;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.weekday.weekend {
    color: #a88272;
}

.calendar-day {
    position: relative;
    display: grid;
    min-width: 0;
    aspect-ratio: 1.03;
    place-items: center;
    border: 0;
    border-top: 1px solid #f7eee8;
    color: #445149;
    background: transparent;
    cursor: pointer;
}

.calendar-day:hover .day-number {
    color: var(--green);
    background: #fff3e3;
}

.calendar-day.outside-month {
    color: #c4cac5;
}

.calendar-day.selected .day-number {
    color: #fff;
    background: var(--green);
    box-shadow: 0 6px 15px rgba(69, 12, 8, 0.22);
}

.day-number {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    transition: color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.calendar-day.is-today:not(.selected) .day-number {
    color: var(--green);
    box-shadow: inset 0 0 0 1.5px var(--brand-orange);
}

.event-dots {
    position: absolute;
    bottom: 5px;
    display: flex;
    gap: 3px;
    height: 4px;
}

.event-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-orange);
}

.event-dots i.completed {
    background: #bdc8c0;
}

.calendar-day.selected .event-dots i {
    background: var(--brand-gold);
}

.calendar-legend {
    display: flex;
    gap: 18px;
    margin: 7px 28px 0;
    padding: 17px 0 22px;
    border-top: 1px solid #f7eee8;
    color: #9a8179;
    font-size: 11px;
}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 7px;
}

.legend-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-orange);
}

.legend-dot.completed {
    background: #bdc8c0;
}

.schedule-card {
    overflow: hidden;
}

.schedule-header {
    border-bottom: 1px solid #f7eee8;
}

.course-count {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 11px;
    font-weight: 800;
}

.session-list {
    display: grid;
    gap: 9px;
    padding: 14px 14px 18px;
}

.session-card {
    position: relative;
    display: grid;
    min-height: 91px;
    grid-template-columns: 56px 3px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 14px;
    padding: 15px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: inherit;
    text-decoration: none;
    transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.session-card:hover {
    border-color: #f0ded3;
    background: #fffaf5;
    box-shadow: 0 7px 22px rgba(69, 12, 8, 0.07);
    transform: translateY(-1px);
}

.session-time {
    display: grid;
    gap: 4px;
    text-align: right;
}

.session-time strong {
    font-size: 15px;
    letter-spacing: -0.3px;
}

.session-time span {
    color: #a1aaa4;
    font-size: 11px;
}

.session-line {
    display: flex;
    height: 54px;
    justify-content: center;
}

.session-line span {
    width: 3px;
    border-radius: 6px;
    background: var(--brand-orange);
}

.accent-blue .session-line span {
    background: var(--brand-gold);
}

.accent-violet .session-line span {
    background: var(--brand-brown);
}

.accent-orange .session-line span {
    background: #f3b15e;
}

.session-info {
    min-width: 0;
}

.session-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-title-row h3 {
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-info > p {
    overflow: hidden;
    margin: 4px 0 8px;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.status-completed {
    color: #748079;
    background: #edf0ee;
}

.status-in_progress {
    color: #2d6a4e;
    background: #dff0e6;
}

.status-in_progress::before {
    width: 5px;
    height: 5px;
    margin-right: 4px;
    border-radius: 50%;
    background: #47a16e;
    content: "";
}

.status-upcoming {
    color: #8c6749;
    background: #f5eadf;
}

.status-cancelled {
    color: #995b5b;
    background: #f6e6e6;
}

.session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    color: #929c95;
    font-size: 10px;
}

.session-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.session-meta svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.session-arrow {
    color: #a9b0ab;
}

.session-card:hover .session-arrow {
    color: var(--green);
    transform: translateX(2px);
}

.empty-state {
    display: grid;
    min-height: 355px;
    place-items: center;
    align-content: center;
    gap: 9px;
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

.empty-state-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 4px;
    place-items: center;
    border-radius: 50%;
    color: #8ca094;
    background: #eff4f0;
}

.empty-state-icon svg {
    width: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.empty-state strong {
    color: #4c5c52;
    font-family: Georgia, "Songti SC", serif;
    font-size: 19px;
}

.empty-state p {
    max-width: 260px;
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
}

.detail-page {
    max-width: 1060px;
    margin: 0 auto;
}

.detail-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.detail-top-actions .back-link {
    margin-bottom: 0;
}

.session-edit-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid #cfdbd2;
    border-radius: 10px;
    color: var(--green-dark);
    background: #fff;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
}

.session-edit-link svg {
    width: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.session-edit-link:hover {
    border-color: #a9c4b2;
    background: #f6faf7;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 22px;
    color: #7b625b;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: var(--green);
}

.detail-hero {
    position: relative;
    display: flex;
    min-height: 235px;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    overflow: hidden;
    padding: 42px 48px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand-brown), #6d1d0f);
    box-shadow: 0 22px 55px rgba(69, 12, 8, 0.2);
}

.detail-hero::before,
.detail-hero::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.detail-hero::before {
    width: 260px;
    height: 260px;
    top: -150px;
    right: 100px;
}

.detail-hero::after {
    width: 340px;
    height: 340px;
    right: -200px;
    bottom: -230px;
}

.detail-hero.accent-blue {
    background: linear-gradient(135deg, #7a2412, var(--brand-brown));
}

.detail-hero.accent-violet {
    background: linear-gradient(135deg, #8f3813, #56100a);
}

.detail-hero.accent-orange {
    background: linear-gradient(135deg, var(--brand-orange), #a7440c);
}

.detail-hero-copy {
    position: relative;
    z-index: 1;
}

.detail-date {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.detail-hero h1 {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 600;
    letter-spacing: -1px;
}

.detail-hero p {
    margin: 10px 0 24px;
    color: rgba(255, 255, 255, 0.76);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.detail-meta > span:not(.status) {
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.07);
    font-size: 11px;
}

.detail-meta .status {
    padding: 7px 10px;
}

.go-stone {
    position: relative;
    z-index: 1;
    display: grid;
    width: 116px;
    height: 116px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        rgba(255, 255, 255, 0.04);
    background-size: 23px 23px;
}

.go-stone span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fbfbfb, #cad0cc 75%);
    box-shadow: 0 9px 18px rgba(11, 24, 17, 0.28);
}

.placeholder-panel,
.students-panel,
.session-knowledge-panel {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

.placeholder-panel {
    padding: 44px 46px;
    text-align: center;
}

.placeholder-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 15px;
    color: var(--green);
    background: var(--green-soft);
}

.placeholder-icon svg {
    width: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.placeholder-panel > p:not(.section-kicker) {
    max-width: 590px;
    margin: 12px auto 28px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.placeholder-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.placeholder-sections div {
    display: flex;
    min-height: 67px;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px dashed #dce3dd;
    border-radius: 13px;
    color: #607068;
    background: #fffaf5;
    text-align: left;
}

.placeholder-sections span {
    color: #a8b1ab;
    font-family: Georgia, serif;
    font-size: 11px;
}

.placeholder-sections strong {
    font-size: 12px;
}

.session-knowledge-panel {
    padding: 30px 32px;
}

.session-knowledge-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.session-knowledge-heading h2 {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: 23px;
    font-weight: 600;
}

.session-knowledge-heading > div:first-child > p:last-child {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.session-stage-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.session-stage-chips span {
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--green-dark);
    background: var(--green-soft);
    font-size: 10px;
    font-weight: 750;
}

.session-knowledge-groups {
    display: grid;
    gap: 13px;
    margin-top: 24px;
}

.session-knowledge-group {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
}

.session-knowledge-group > header {
    display: grid;
    min-height: 67px;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 11px 15px;
    border-bottom: 1px solid #f5e9e1;
    background: #f7f9f6;
}

.session-knowledge-group > header > span {
    color: #9aa49d;
    font-family: Georgia, serif;
    font-size: 16px;
}

.session-knowledge-group header small {
    color: #97a199;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.session-knowledge-group header h3 {
    margin: 2px 0 0;
    font-size: 13px;
}

.session-knowledge-group header b {
    color: #78847c;
    font-size: 9px;
}

.session-knowledge-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.session-knowledge-list label {
    display: grid;
    min-height: 62px;
    grid-template-columns: auto 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    background: #fff;
    cursor: pointer;
}

.session-knowledge-list label:hover {
    background: #fffaf4;
}

.session-knowledge-list input {
    width: 16px;
    height: 16px;
    accent-color: var(--green);
}

.session-knowledge-code {
    color: #809087;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
}

.session-knowledge-list label > span:last-child {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.session-knowledge-list strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-knowledge-list small {
    overflow: hidden;
    color: #98a29b;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.session-knowledge-list > p {
    grid-column: 1 / -1;
    margin: 0;
    padding: 18px;
    color: var(--muted);
    background: #fff;
    font-size: 11px;
}

.session-knowledge-submit-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 16px;
}

.session-knowledge-submit-row span {
    color: var(--muted);
    font-size: 10px;
}

.session-knowledge-submit-row button {
    min-height: 39px;
    padding: 0 15px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--green);
    font-size: 11px;
    font-weight: 750;
    cursor: pointer;
}

.session-knowledge-submit-row button:hover {
    background: var(--green-dark);
}

.session-knowledge-empty {
    margin-top: 22px;
    padding: 22px;
    border: 1px dashed #d4ddd6;
    border-radius: 13px;
    color: var(--muted);
    background: #fffaf5;
    text-align: center;
}

.session-knowledge-empty p {
    margin: 0 0 5px;
    color: var(--ink);
    font-weight: 700;
}

.session-knowledge-empty span {
    font-size: 10px;
}

.students-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    padding: 28px 32px;
}

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

.student-chips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px 5px 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #536158;
    background: #fffaf5;
    font-size: 11px;
    font-weight: 700;
}

.student-chips i {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #7e9a88;
    font-size: 10px;
    font-style: normal;
}

.empty-students {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

/* Student roster */
.student-page-heading {
    align-items: center;
}

.student-toolbar,
.student-roster,
.student-form-page {
    max-width: 1360px;
    margin-inline: auto;
}

.student-toolbar {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 30px;
    padding: 16px 20px;
}

.student-stat {
    display: flex;
    align-items: center;
    gap: 13px;
}

.student-stat-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    color: var(--green);
    background: var(--green-soft);
}

.student-stat-icon svg,
.student-search svg,
.student-empty svg,
.relation-note svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.student-stat-icon svg {
    width: 22px;
}

.student-stat div {
    display: grid;
}

.student-stat strong {
    font-family: Georgia, serif;
    font-size: 24px;
    line-height: 1;
}

.student-stat span:not(.student-stat-icon) {
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.student-status-filters {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7f9f7;
}

.student-status-filters a {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 8px;
    color: #738078;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}

.student-status-filters a span {
    display: inline-grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    color: #7d8981;
    background: #e8ece9;
    font-size: 9px;
}

.student-status-filters a.active {
    color: var(--green-dark);
    background: #fff;
    box-shadow: 0 2px 8px rgba(42, 67, 53, 0.08);
}

.student-status-filters a.active span {
    color: #fff;
    background: var(--green);
}

.student-search {
    display: flex;
    width: min(100%, 390px);
    height: 44px;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffaf5;
}

.student-search:focus-within {
    border-color: #9cbea9;
    box-shadow: 0 0 0 3px rgba(46, 107, 79, 0.08);
}

.student-search svg {
    width: 18px;
    flex: 0 0 auto;
    color: #8d9990;
}

.student-search input {
    min-width: 0;
    flex: 1;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 13px;
}

.student-search a {
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.student-roster {
    overflow: hidden;
    margin-top: 18px;
}

.student-table-head,
.student-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) minmax(180px, 1fr) 90px minmax(150px, 0.9fr) 132px;
    align-items: center;
    gap: 20px;
}

.student-table-head {
    min-height: 47px;
    padding: 0 24px;
    border-bottom: 1px solid var(--line);
    color: #909b93;
    background: #fffaf5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.student-row {
    min-height: 84px;
    padding: 14px 24px;
    border-bottom: 1px solid #f5e9e1;
}

.student-row:last-child {
    border-bottom: 0;
}

.student-row:hover {
    background: #fcfdfb;
}

.student-row.inactive {
    background: #fbfbfa;
}

.student-row.inactive .student-avatar {
    background: linear-gradient(145deg, #a9b0ac, #777f7a);
}

.student-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.student-detail-link {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.student-detail-link:hover strong {
    color: var(--green-dark);
}

.student-identity-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.student-avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(145deg, var(--brand-orange), var(--brand-brown));
    font-size: 13px;
    font-weight: 800;
}

.student-identity div,
.student-contact,
.student-course-count {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.student-identity strong,
.student-contact strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-status-badge {
    display: inline-flex;
    margin-left: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    vertical-align: 1px;
    font-size: 9px;
    font-weight: 800;
}

.student-status-badge.active {
    color: #2f6548;
    background: #e6f2e9;
}

.student-status-badge.inactive {
    color: #777e79;
    background: #ebeeec;
}

.student-identity small,
.student-contact small,
.student-teachers small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-course-count strong {
    font-family: Georgia, serif;
    font-size: 19px;
}

.student-course-count span {
    color: var(--muted);
    font-size: 10px;
}

.student-teachers {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.student-teachers span {
    padding: 4px 8px;
    border-radius: 999px;
    color: #416652;
    background: #fff3e3;
    font-size: 10px;
    font-weight: 700;
}

.student-actions {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.student-actions form {
    margin: 0;
}

.student-actions button {
    padding: 7px 10px;
    border: 0;
    border-radius: 8px;
    color: #9a5c58;
    background: transparent;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.student-actions button:hover {
    color: #87443f;
    background: #faeeee;
}

.student-actions .student-status-action {
    border: 1px solid transparent;
}

.student-actions .student-status-action.withdraw {
    color: #9a6657;
    background: #fbf2ed;
}

.student-actions .student-status-action.withdraw:hover {
    border-color: #ecd6ca;
    color: #824d40;
    background: #f8e9e1;
}

.student-actions .student-status-action.resume {
    color: #2f6548;
    background: #e8f3eb;
}

.student-actions .student-status-action.resume:hover {
    border-color: #c4ddcc;
    color: #214f37;
    background: #deede3;
}

.student-empty {
    display: grid;
    min-height: 350px;
    place-items: center;
    align-content: center;
    padding: 50px 20px;
    text-align: center;
}

.student-empty > span {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 18px;
    color: var(--green);
    background: var(--green-soft);
}

.student-empty svg {
    width: 28px;
}

.student-empty h2 {
    margin: 18px 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
}

.student-empty p {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 12px;
}

/* Student learning profile */
.student-detail-page {
    max-width: 1260px;
    margin-inline: auto;
}

.student-profile-hero {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 35px 40px;
    border-radius: 23px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.1) 0 1px, transparent 2px),
        linear-gradient(135deg, var(--brand-brown), #7a2412);
    background-size: 22px 22px, auto;
    box-shadow: 0 20px 50px rgba(69, 12, 8, 0.18);
}

.student-profile-person {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 22px;
}

.student-profile-avatar {
    display: grid;
    width: 82px;
    height: 82px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 23px;
    color: #450c08;
    background: #fff4df;
    box-shadow: 0 13px 30px rgba(49, 7, 4, 0.22);
    font-family: Georgia, "Songti SC", serif;
    font-size: 25px;
    font-weight: 700;
}

.student-profile-kicker {
    color: rgba(255, 255, 255, 0.57);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.student-profile-person h1 {
    margin: 6px 0 13px;
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(31px, 4vw, 45px);
    font-weight: 600;
    letter-spacing: -1px;
}

.student-profile-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.student-profile-meta > span {
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.06);
    font-size: 10px;
}

.student-profile-meta .student-status-badge.active {
    color: #d8f0df;
    background: rgba(141, 205, 161, 0.16);
}

.student-profile-meta .student-status-badge.inactive {
    color: #e1e4e2;
    background: rgba(255, 255, 255, 0.1);
}

.student-profile-teachers {
    min-width: 170px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.06);
}

.student-profile-teachers small {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.student-profile-teachers div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.student-profile-teachers span {
    padding: 5px 8px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.09);
    font-size: 10px;
}

.student-learning-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.student-learning-stats a {
    position: relative;
    display: grid;
    min-height: 94px;
    grid-template-columns: auto 1fr;
    align-content: center;
    gap: 0 12px;
    padding: 17px 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    background: #fff;
    text-decoration: none;
}

.student-learning-stats a > span {
    grid-row: 1 / 3;
    align-self: center;
    color: #a0aaa3;
    font-family: Georgia, serif;
    font-size: 11px;
}

.student-learning-stats a strong {
    font-family: Georgia, serif;
    font-size: 25px;
    line-height: 1;
}

.student-learning-stats a small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.student-learning-stats a.active {
    border-color: #96b7a1;
    background: #eef5f0;
    box-shadow: inset 0 -3px 0 var(--green);
}

.student-learning-stats a.active > span,
.student-learning-stats a.active strong {
    color: var(--green-dark);
}

.student-record-panel {
    overflow: hidden;
    margin-top: 16px;
}

.student-record-heading {
    display: flex;
    min-height: 98px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 23px 28px;
    border-bottom: 1px solid var(--line);
    background: #fffaf5;
}

.student-record-heading h2 {
    margin: 3px 0 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: 24px;
}

.student-record-heading > span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #627269;
    background: #edf1ee;
    font-size: 10px;
    font-weight: 700;
}

.student-record-row {
    display: grid;
    min-height: 76px;
    align-items: center;
    gap: 18px;
    padding: 13px 28px;
    border-bottom: 1px solid #f5e9e1;
}

.student-record-row:last-child {
    border-bottom: 0;
}

.student-record-row:hover {
    background: #fcfdfc;
}

.student-record-row > time {
    color: #7d8981;
    font-family: Georgia, serif;
    font-size: 12px;
}

.practice-row {
    grid-template-columns: 105px minmax(280px, 1fr) 76px 130px;
}

.practice-framework-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
    background: #f7f9f7;
}

.practice-framework-overview > div {
    display: grid;
    min-height: 68px;
    align-content: center;
    padding: 12px 16px;
    border: 1px solid #e3e8e4;
    border-radius: 12px;
    background: #fff;
}

.practice-framework-overview strong {
    font-family: Georgia, serif;
    font-size: 22px;
}

.practice-framework-overview span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.practice-framework-overview .completed {
    border-color: #c7ddce;
    color: #2f6548;
    background: #eef6f0;
}

.practice-frameworks {
    display: grid;
    gap: 18px;
    padding: 22px;
}

.practice-curriculum {
    overflow: hidden;
    border: 1px solid #ead8cc;
    border-radius: 16px;
    background: #fff;
}

.practice-curriculum > header {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 17px 21px;
    border-bottom: 1px solid #e7ebe8;
    background: linear-gradient(135deg, #f6f9f6, #fbfcfb);
}

.practice-curriculum > header p {
    margin: 0 0 4px;
    color: #87948b;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.practice-curriculum > header h3 {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: 20px;
}

.practice-curriculum > header > span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #4d6c5a;
    background: #e7f0e9;
    font-size: 9px;
    font-weight: 750;
}

.practice-stage-group {
    border-bottom: 1px solid #e9edea;
}

.practice-stage-group:last-child {
    border-bottom: 0;
}

.practice-stage-group > summary {
    display: grid;
    min-height: 64px;
    grid-template-columns: 38px minmax(150px, 1fr) auto 18px;
    align-items: center;
    gap: 12px;
    padding: 11px 19px;
    color: #526159;
    background: #fbfcfb;
    cursor: pointer;
    list-style: none;
}

.practice-stage-group > summary::-webkit-details-marker {
    display: none;
}

.practice-stage-group > summary:hover {
    background: #fffaf4;
}

.practice-stage-group > summary .stage-order {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 9px;
    color: var(--green);
    background: var(--green-soft);
    font-family: Georgia, serif;
    font-size: 10px;
}

.practice-stage-group > summary div {
    display: grid;
    gap: 2px;
}

.practice-stage-group > summary small {
    color: #96a098;
    font-size: 8px;
    letter-spacing: 0.08em;
}

.practice-stage-group > summary strong {
    font-family: Georgia, "Songti SC", serif;
    font-size: 16px;
}

.practice-stage-group > summary > span:not(.stage-order) {
    color: #758279;
    font-size: 9px;
    font-weight: 700;
}

.practice-stage-group > summary i {
    color: #89958d;
    font-size: 16px;
    font-style: normal;
    transition: transform 160ms ease;
}

.practice-stage-group[open] > summary i {
    transform: rotate(180deg);
}

.practice-framework-list {
    border-top: 1px solid #eef1ef;
}

.practice-framework-row {
    display: grid;
    min-height: 70px;
    grid-template-columns: 66px minmax(230px, 1fr) 92px 112px 92px;
    align-items: center;
    gap: 15px;
    padding: 11px 19px;
    border-bottom: 1px solid #eff2f0;
    background: #fff;
}

.practice-framework-row:last-child {
    border-bottom: 0;
}

.practice-framework-row.completed {
    border-left: 4px solid #5d9975;
    padding-left: 15px;
    background: linear-gradient(90deg, #f0f7f2, #fbfdfb 34%, #fff);
}

.practice-framework-code {
    color: #66756c;
    font-family: Georgia, serif;
    font-size: 11px;
    font-weight: 700;
}

.practice-framework-row.completed .practice-framework-code,
.practice-framework-row.completed .practice-framework-metric.accuracy strong {
    color: #2f6548;
}

.practice-framework-metric {
    display: grid;
    gap: 3px;
}

.practice-framework-metric strong {
    font-family: Georgia, serif;
    font-size: 17px;
}

.practice-framework-metric small {
    color: var(--muted);
    font-size: 8px;
}

.practice-completion-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}

.practice-completion-status.completed {
    color: #276143;
    background: #dceee2;
}

.practice-completion-status.working {
    color: #8a6240;
    background: #f5eadf;
}

.practice-completion-status.pending {
    color: #818983;
    background: #ecefed;
}

.practice-stage-empty {
    padding: 22px;
    color: var(--muted);
    font-size: 10px;
    text-align: center;
}

.mistake-row {
    grid-template-columns: 105px 72px minmax(210px, 0.85fr) minmax(280px, 1.15fr);
}

.game-row {
    grid-template-columns: 105px minmax(220px, 1fr) 145px minmax(220px, 0.85fr);
}

.replay-row {
    grid-template-columns: 105px minmax(240px, 1fr) 190px minmax(220px, 0.85fr);
}

.student-record-primary {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.student-record-primary strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.student-record-primary small,
.practice-result small,
.game-result small {
    color: var(--muted);
    font-size: 9px;
}

.practice-result,
.game-result {
    display: grid;
    gap: 3px;
}

.practice-result strong {
    font-family: Georgia, serif;
    font-size: 18px;
}

.practice-result > span {
    color: var(--muted);
    font-size: 9px;
}

.mistake-problem-code {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    color: #8d584b;
    background: #f8ece7;
    font-family: Georgia, serif;
    font-size: 12px;
    font-weight: 700;
}

.mistake-practice-links {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.mistake-practice-links span {
    padding: 5px 7px;
    border-radius: 7px;
    color: #586961;
    background: #f0f3f1;
    font-size: 9px;
}

.mistake-practice-links small {
    color: var(--muted);
    font-size: 9px;
}

.game-result strong {
    font-size: 12px;
}

.student-record-row > p {
    margin: 0;
    color: #66736b;
    font-size: 10px;
    line-height: 1.55;
}

.replay-progress {
    display: flex;
    align-items: center;
    gap: 9px;
}

.replay-progress > div {
    height: 7px;
    flex: 1;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ece8;
}

.replay-progress > div span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-brown));
}

.replay-progress strong {
    color: var(--green-dark);
    font-size: 10px;
}

.student-record-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px;
    border-top: 1px solid var(--line);
    background: #fffaf5;
}

.student-record-pagination a,
.student-record-pagination span,
.student-record-pagination strong {
    font-size: 10px;
}

.student-record-pagination a {
    color: var(--green);
    font-weight: 750;
    text-decoration: none;
}

.student-record-pagination span {
    color: #b1b8b3;
}

.student-record-pagination strong {
    color: #69766e;
}

.student-record-empty {
    display: grid;
    min-height: 290px;
    place-items: center;
    align-content: center;
    padding: 40px 20px;
    text-align: center;
}

.student-record-empty > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: var(--green);
    background: var(--green-soft);
    font-family: Georgia, serif;
}

.student-record-empty h3 {
    margin: 14px 0 5px;
    font-family: Georgia, "Songti SC", serif;
    font-size: 20px;
}

.student-record-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.student-form-page > .back-link {
    margin-bottom: 28px;
}

.student-form-heading h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 45px);
    letter-spacing: -1.2px;
}

.student-form-heading > p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.student-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
    gap: 20px;
    margin-top: 28px;
}

.student-form-card,
.student-link-card {
    padding: 30px;
}

.student-form-card-heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 25px;
}

.student-form-card-heading > span {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 11px;
    color: var(--green);
    background: var(--green-soft);
    font-family: Georgia, serif;
    font-size: 12px;
}

.student-form-card-heading p {
    margin: 0 0 3px;
    color: #8b978e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.student-form-card-heading h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 22px;
}

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

.student-form-fields.two-columns {
    grid-template-columns: 1fr 1fr;
}

.student-form-fields label,
.student-link-form > label {
    display: grid;
    gap: 7px;
    color: #56625a;
    font-size: 11px;
    font-weight: 700;
}

.student-form-fields input,
.student-form-fields select,
.student-form-fields textarea,
.student-link-form select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #ead8cc;
    border-radius: 10px;
    outline: 0;
    color: var(--ink);
    background: #fffdf9;
    font: inherit;
    font-size: 13px;
}

.student-form-fields textarea {
    resize: vertical;
}

.student-form-fields input:focus,
.student-form-fields select:focus,
.student-form-fields textarea:focus,
.student-link-form select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(247, 144, 29, 0.12);
}

.full-field {
    grid-column: 1 / -1;
}

.errorlist {
    margin: 0;
    padding: 0;
    color: #a24d48;
    font-size: 10px;
    font-weight: 600;
    list-style: none;
}

.teacher-choice {
    margin: 18px 0 0;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
}

.teacher-choice legend {
    padding: 0 5px;
    color: #56625a;
    font-size: 11px;
    font-weight: 700;
}

.teacher-choice ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.teacher-choice label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.teacher-choice small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

.student-submit {
    width: 100%;
    min-height: 46px;
    margin-top: 20px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background: var(--green);
    box-shadow: 0 10px 22px rgba(46, 107, 79, 0.14);
    cursor: pointer;
    font-weight: 700;
}

.student-submit:hover {
    background: var(--green-dark);
}

.student-submit.secondary {
    color: var(--green-dark);
    background: var(--green-soft);
    box-shadow: none;
}

.student-link-intro {
    margin: -5px 0 20px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.relation-note {
    display: flex;
    gap: 11px;
    margin-top: 24px;
    padding: 14px;
    border-radius: 12px;
    color: #4f6858;
    background: #f3f7f4;
}

.relation-note svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.relation-note p {
    display: grid;
    gap: 4px;
    margin: 0;
}

.relation-note strong {
    font-size: 11px;
}

.relation-note span {
    color: #718078;
    font-size: 10px;
    line-height: 1.6;
}

/* Session editing */
.session-edit-page {
    max-width: 1180px;
    margin-inline: auto;
}

.session-edit-page > .back-link {
    margin-bottom: 28px;
}

.session-edit-heading h1 {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 600;
    letter-spacing: -1.2px;
}

.session-edit-heading > p:last-child {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.session-edit-form {
    margin-top: 28px;
}

.session-edit-scope {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) minmax(390px, 1.2fr);
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px 24px;
    border-color: #cadace;
    background: linear-gradient(135deg, #f8fbf8, #fff);
}

.session-edit-scope-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    color: var(--green);
    background: var(--green-soft);
}

.session-edit-scope-mark svg {
    width: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.session-edit-scope-copy p {
    margin: 0 0 3px;
    color: #789082;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.session-edit-scope-copy h2 {
    margin: 0 0 5px;
    font-family: Georgia, "Songti SC", serif;
    font-size: 21px;
}

.session-edit-scope-copy span {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.session-scope-options ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.session-scope-options label {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #d9e1da;
    border-radius: 11px;
    color: #526158;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.session-scope-options label:has(input:checked) {
    border-color: #89aa95;
    color: var(--green-dark);
    background: #edf5ef;
    box-shadow: 0 0 0 2px rgba(46, 107, 79, 0.06);
}

.session-scope-options input {
    accent-color: var(--green);
}

.session-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.68fr);
    align-items: start;
    gap: 18px;
}

.session-edit-main {
    display: grid;
    gap: 18px;
}

.session-edit-card {
    padding: 28px;
}

.session-edit-card .student-form-card-heading {
    margin-bottom: 22px;
}

.session-edit-relations {
    position: sticky;
    top: 24px;
}

.session-edit-fields {
    display: grid;
    gap: 16px;
}

.session-edit-fields.two-columns {
    grid-template-columns: 1fr 1fr;
}

.session-edit-fields label {
    display: grid;
    gap: 7px;
    color: #56625a;
    font-size: 11px;
    font-weight: 700;
}

.session-edit-fields input,
.session-edit-fields select,
.session-edit-fields textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #ead8cc;
    border-radius: 10px;
    outline: 0;
    color: var(--ink);
    background: #fffdf9;
    font: inherit;
    font-size: 13px;
}

.session-edit-fields select[multiple] {
    min-height: 176px;
    padding: 6px;
}

.session-edit-fields select[multiple] option {
    padding: 8px 9px;
    border-radius: 6px;
}

.session-edit-fields textarea {
    min-height: 105px;
    resize: vertical;
}

.session-edit-fields input:focus,
.session-edit-fields select:focus,
.session-edit-fields textarea:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(247, 144, 29, 0.12);
}

.session-edit-fields label > small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 500;
    line-height: 1.55;
}

.session-edit-note {
    margin-top: 20px;
    padding: 13px 14px;
    border-radius: 11px;
    color: #57705f;
    background: #f1f6f2;
    font-size: 10px;
    line-height: 1.65;
}

.session-edit-submit-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.8);
}

.session-edit-submit-row a,
.session-edit-submit-row button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.session-edit-submit-row a {
    border: 1px solid var(--line);
    color: #66736b;
    background: #fff;
}

.session-edit-submit-row button {
    border: 1px solid var(--green);
    color: #fff;
    background: var(--green);
    box-shadow: 0 8px 20px rgba(46, 107, 79, 0.14);
    cursor: pointer;
}

.session-edit-submit-row button:hover {
    background: var(--green-dark);
}

@media (max-width: 1120px) {
    .sidebar {
        width: 204px;
    }

    .main-content {
        margin-left: 204px;
        padding-inline: 26px;
    }

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

    .calendar-day {
        aspect-ratio: 1.5;
    }

    .session-list {
        grid-template-columns: 1fr 1fr;
    }

    .session-card {
        grid-template-columns: 52px 3px minmax(0, 1fr) 18px;
    }

    .student-table-head,
    .student-row {
        grid-template-columns: minmax(230px, 1.25fr) minmax(150px, 1fr) 70px minmax(120px, 0.8fr) 118px;
        gap: 14px;
    }

    .lesson-record-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .lesson-record-actions a,
    .lesson-record-actions button {
        width: 100%;
    }

    .session-edit-scope {
        grid-template-columns: auto 1fr;
    }

    .session-scope-options {
        grid-column: 1 / -1;
    }
}

@media (max-height: 760px) and (min-width: 801px) {
    .sidebar {
        padding-block: 22px 18px;
    }

    .main-nav {
        margin-top: 28px;
    }

    .sidebar-records {
        margin-top: 18px;
        padding-top: 16px;
    }

    .record-shortcut {
        min-height: 58px;
    }

    .teacher-profile {
        padding-top: 12px;
    }
}

@media (max-width: 800px) {
    .sidebar {
        display: none;
    }

    .mobile-header {
        position: sticky;
        z-index: 10;
        top: 0;
        display: flex;
        height: 68px;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        border-bottom: 1px solid rgba(221, 227, 221, 0.9);
        background: rgba(250, 251, 248, 0.9);
        backdrop-filter: blur(18px);
    }

    .mobile-header .brand-logo {
        width: 158px;
    }

    .mobile-header .avatar {
        width: 34px;
        height: 34px;
    }

    .main-content {
        margin-left: 0;
        padding: 30px 18px 50px;
    }

    .record-page-heading {
        align-items: flex-start;
    }

    .record-back-link {
        display: none;
    }

    .lesson-record-panel {
        margin-top: 28px;
    }

    .lesson-record-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .lesson-record-item {
        grid-template-columns: 55px minmax(0, 1fr);
        gap: 14px;
        padding: 15px;
    }

    .lesson-record-date {
        width: 55px;
        height: 64px;
    }

    .lesson-record-actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1.35fr;
        flex-direction: initial;
    }

    .record-entry-shell {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 28px;
        padding: 28px;
    }

    .record-entry-mark {
        width: 72px;
        height: 72px;
        border-radius: 22px;
        font-size: 26px;
    }

    .record-type-switcher {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-heading {
        align-items: flex-start;
    }

    .primary-button {
        display: none;
    }

    .summary-strip {
        margin-top: 26px;
    }

    .summary-progress {
        display: none;
    }

    .session-list {
        grid-template-columns: 1fr;
    }

    .calendar-day {
        aspect-ratio: 1.1;
    }

    .placeholder-sections {
        grid-template-columns: 1fr;
    }

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

    .student-chips {
        justify-content: flex-start;
    }

    .student-add-button {
        display: inline-flex;
    }

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

    .student-search {
        width: 100%;
    }

    .student-table-head {
        display: none;
    }

    .student-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        padding: 18px;
    }

    .student-contact,
    .student-course-count,
    .student-teachers {
        grid-column: 1;
        margin-left: 54px;
    }

    .student-actions {
        grid-column: 2;
        grid-row: 1;
    }

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

    .student-profile-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-profile-teachers {
        width: 100%;
    }

    .student-learning-stats {
        grid-template-columns: 1fr 1fr;
    }

    .student-record-row {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .student-record-row > :nth-child(n + 3) {
        grid-column: 2;
    }

    .practice-framework-row {
        grid-template-columns: 60px minmax(0, 1fr) 80px 95px;
    }

    .practice-completion-status {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .student-toolbar {
        align-items: stretch;
    }

    .student-status-filters {
        order: 3;
        width: 100%;
    }

    .student-status-filters a {
        flex: 1;
        justify-content: center;
    }

    .session-edit-grid {
        grid-template-columns: 1fr;
    }

    .session-edit-relations {
        position: static;
    }
}

@media (max-width: 520px) {
    .page-heading h1 {
        font-size: 29px;
    }

    .summary-strip {
        padding: 12px 14px;
    }

    .summary-strip span {
        line-height: 1.5;
    }

    .card-header {
        padding: 22px 18px 16px;
    }

    .card-header h2 {
        font-size: 21px;
    }

    .calendar {
        padding: 0 10px;
    }

    .text-button {
        display: none;
    }

    .day-number {
        width: 30px;
        height: 30px;
    }

    .event-dots {
        bottom: 2px;
    }

    .calendar-legend {
        margin-inline: 18px;
    }

    .session-card {
        grid-template-columns: 48px 3px minmax(0, 1fr) 16px;
        gap: 10px;
        padding-inline: 9px;
    }

    .session-meta {
        gap: 7px;
    }

    .detail-hero {
        min-height: 285px;
        align-items: flex-start;
        padding: 34px 28px;
    }

    .go-stone {
        position: absolute;
        right: 20px;
        bottom: 20px;
        width: 76px;
        height: 76px;
        border-radius: 17px;
        background-size: 15px 15px;
        opacity: 0.8;
    }

    .go-stone span {
        width: 30px;
        height: 30px;
    }

    .placeholder-panel {
        padding: 34px 22px;
    }

    .session-knowledge-panel {
        padding: 25px 20px;
    }

    .session-knowledge-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .session-stage-chips {
        justify-content: flex-start;
    }

    .session-knowledge-list {
        grid-template-columns: 1fr;
    }

    .session-knowledge-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .session-knowledge-submit-row button {
        width: 100%;
    }

    .students-panel {
        padding: 25px 22px;
    }

    .student-page-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .student-add-button {
        justify-content: center;
    }

    .student-form-fields.two-columns {
        grid-template-columns: 1fr;
    }

    .full-field {
        grid-column: auto;
    }

    .student-form-card,
    .student-link-card {
        padding: 22px 18px;
    }

    .student-profile-hero {
        padding: 28px 22px;
    }

    .student-profile-person {
        align-items: flex-start;
        flex-direction: column;
    }

    .student-profile-avatar {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }

    .student-learning-stats a {
        padding: 14px;
    }

    .student-record-heading {
        align-items: flex-start;
        flex-direction: column;
        padding: 21px 18px;
    }

    .student-record-row {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 17px 18px;
    }

    .student-record-row > :nth-child(n + 3) {
        grid-column: 1;
    }

    .practice-framework-overview {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .practice-frameworks {
        padding: 13px;
    }

    .practice-curriculum > header,
    .practice-stage-group > summary {
        align-items: flex-start;
    }

    .practice-curriculum > header {
        flex-direction: column;
    }

    .practice-stage-group > summary {
        grid-template-columns: 34px minmax(0, 1fr) 15px;
    }

    .practice-stage-group > summary > span:not(.stage-order) {
        grid-column: 2;
    }

    .practice-stage-group > summary i {
        grid-column: 3;
        grid-row: 1;
    }

    .practice-framework-row {
        grid-template-columns: 55px minmax(0, 1fr) 75px;
        gap: 10px;
        padding: 14px;
    }

    .practice-framework-row.completed {
        padding-left: 10px;
    }

    .practice-framework-metric.accuracy {
        grid-column: 2;
    }

    .practice-completion-status {
        grid-column: 3;
        grid-row: 2;
    }

    .session-edit-scope {
        grid-template-columns: 1fr;
        padding: 20px 18px;
    }

    .session-scope-options {
        grid-column: auto;
    }

    .session-scope-options ul,
    .session-edit-fields.two-columns {
        grid-template-columns: 1fr;
    }

    .session-edit-card {
        padding: 22px 18px;
    }

    .session-edit-submit-row {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .session-edit-submit-row a,
    .session-edit-submit-row button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
