:root {
    --ink: #20283b;
    --muted: #748095;
    --blue: #3159d5;
    --line: #e8ecf3;
    --paper: #fff;
    --bg: #f5f7fb;
    --navy: #17233d;
    --radius: 22px;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;
    color: var(--ink);
    background: var(--bg);
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
button,
input,
textarea,
select {
    font: inherit;
}
button,
a {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit;
}
a {
    color: var(--blue);
    text-decoration: none;
}
button:disabled {
    opacity: 0.45;
    cursor: wait;
}
button:focus-visible,
a:focus-visible {
    outline: 3px solid #89a4ff;
    outline-offset: 3px;
}
input,
textarea,
select {
    width: 100%;
    border: 1px solid #dce2ec;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    color: var(--ink);
    outline: none;
}
input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px #3159d512;
}
textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.7;
}
label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin: 16px 0 7px;
}
small,
.muted {
    color: var(--muted);
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1 {
    font-size: 32px;
    letter-spacing: -0.8px;
    line-height: 1.35;
}
h2 {
    font-size: 21px;
    letter-spacing: -0.3px;
}
h3 {
    font-size: 16px;
}
p {
    line-height: 1.8;
}
.layout {
    display: grid;
    grid-template-columns: 222px 1fr;
    min-height: 100vh;
}
.sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 30px 20px;
    position: fixed;
    inset: 0 auto 0 0;
    width: 222px;
    display: flex;
    flex-direction: column;
}
.brand {
    display: flex;
    align-items: center;
}
.brand-logo {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}
.navlinks {
    margin-top: 44px;
    display: grid;
    gap: 8px;
}
.navlinks button {
    text-align: left;
    padding: 15px 18px;
    border-radius: 13px;
    font-size: 15px;
}
.navlinks button.active {
    color: var(--blue);
    background: #edf2ff;
    font-weight: 650;
}
.navlinks .symbol {
    margin-right: 12px;
    font-size: 19px;
}
.side-note {
    margin-top: auto;
    background: #f6f8fc;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
}
.side-note strong {
    display: block;
    color: var(--ink);
    margin-bottom: 5px;
}
.main {
    grid-column: 2;
    padding: 0 48px 110px;
    max-width: 1450px;
    width: 100%;
    margin: auto;
}
.topbar {
    height: 86px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    margin-bottom: 34px;
}
.eyebrow {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 1.8px;
    color: var(--muted);
    text-transform: uppercase;
}
.topbar .right,
.row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.avatar {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background: #e8edfb;
    color: var(--blue);
    display: grid;
    place-items: center;
    font-weight: 700;
}
.pill {
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 7px;
    background: #fff4df;
    color: #9f7730;
    white-space: nowrap;
}
.pill.blue {
    background: #eaf0ff;
    color: #3159d5;
}
.pill.green {
    background: #e5f5ef;
    color: #32816a;
}
.welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}
.welcome p {
    font-size: 14px;
    margin-top: 9px;
    color: var(--muted);
}
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 12px 19px;
    border-radius: 11px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}
.btn.light {
    background: #eef2fb;
    color: var(--blue);
}
.btn.white {
    background: white;
    color: var(--ink);
}
.btn.danger {
    background: #fff0ef;
    color: #b74e4a;
}
.btn.small {
    padding: 8px 12px;
    font-size: 12px;
}
.hero {
    background: var(--navy);
    border-radius: 24px;
    padding: 33px 36px;
    color: white;
    display: grid;
    grid-template-columns: 1fr 210px;
    overflow: hidden;
    position: relative;
    min-height: 245px;
}
.hero .eyebrow {
    color: #a7b9e2;
}
.hero h2 {
    font-size: 29px;
    max-width: 500px;
    line-height: 1.45;
    margin: 14px 0 10px;
}
.hero p {
    font-size: 13px;
    color: #b5c2dd;
    margin-bottom: 20px;
    max-width: 500px;
}
.hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
}
.orbit {
    height: 160px;
    width: 160px;
    border: 1px solid #557198;
    border-radius: 50%;
    position: relative;
    transform: rotate(-25deg);
    display: grid;
    place-items: center;
}
.orbit:before {
    content: "";
    position: absolute;
    border: 1px solid #557198;
    border-radius: 50%;
    width: 105px;
    height: 190px;
}
.orbit:after {
    content: "";
    position: absolute;
    background: #d9e2fa;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    top: 11px;
    left: 13px;
}
.orbit span {
    font-size: 56px;
    font-weight: 700;
    background: var(--navy);
    padding: 8px;
    transform: rotate(25deg);
    color: #e3ebff;
}
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 32px 0 17px;
}
.section-head small {
    font-size: 12px;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    min-width: 0;
}
.card.clickable {
    cursor: pointer;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
}
.card.clickable:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 28px #28345408;
}
.course-art {
    height: 140px;
    border-radius: 15px;
    margin-bottom: 20px;
    background: #eaf0fd;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.course-art.purple {
    background: #edeafb;
}
.course-art .big {
    position: absolute;
    right: 19px;
    bottom: -14px;
    font-size: 104px;
    font-weight: 750;
    letter-spacing: -9px;
    color: #baccef77;
}
.course-art.purple .big {
    color: #c9b5e988;
}
.course-art .label {
    font-size: 12px;
    letter-spacing: 2px;
    color: #5575ad;
    position: relative;
    z-index: 1;
}
.course-art .mini-title {
    font-size: 23px;
    color: #34537e;
    position: relative;
    z-index: 1;
    margin-top: 17px;
    line-height: 1.4;
    max-width: 240px;
    font-weight: 650;
}
.card h3 {
    line-height: 1.5;
    margin: 5px 0 9px;
}
.card p {
    font-size: 13px;
    color: var(--muted);
}
.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 19px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.quick {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.quick-icon {
    flex: none;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: #edf2fd;
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--blue);
}
.quick p {
    margin-top: 5px;
    font-size: 12px;
}
.empty {
    text-align: center;
    background: #fff;
    border: 1px dashed #dce2ee;
    border-radius: 20px;
    padding: 42px 20px;
    color: var(--muted);
}
.empty h3 {
    color: var(--ink);
    margin-bottom: 10px;
}
.empty .btn {
    margin-top: 18px;
}
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 22px 0;
}
.tabs button {
    padding: 10px 17px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 13px;
}
.tabs button.active {
    background: #fff;
    color: var(--blue);
    box-shadow: 0 2px 9px #17233d08;
    font-weight: 650;
}
.list {
    display: grid;
    gap: 12px;
}
.list-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 18px 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}
.list-item small {
    display: block;
    margin-top: 7px;
    line-height: 1.5;
}
.list-item h3 {
    font-size: 14px;
}
.list-item .actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.number {
    flex: none;
    background: #f0f3fa;
    border-radius: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--blue);
    font-size: 12px;
}
.spacer {
    flex: 1;
}
.back {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 24px;
    padding: 0;
}
.course-detail {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
}
.reading {
    font-size: 16px;
    line-height: 2.1;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 24px 0;
}
.reading-card {
    padding: 35px;
    max-width: 850px;
    margin: auto;
}
.reading-card h1 {
    font-size: 27px;
}
.progress-track {
    height: 5px;
    background: #e9edf5;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 16px;
}
.progress-track span {
    display: block;
    background: var(--blue);
    height: 100%;
}
.profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.profile .avatar {
    width: 65px;
    height: 65px;
    font-size: 26px;
}
.profile h2 {
    margin-bottom: 5px;
}
.balance {
    background: var(--navy);
    color: white;
}
.balance small {
    color: #a7b9e2;
}
.balance strong {
    font-size: 45px;
    display: block;
    margin: 15px 0;
}
.bottom-nav {
    position: fixed;
    bottom: 16px;
    left: calc(50% + 111px);
    transform: translateX(-50%);
    width: 460px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 30px #17233d14;
    padding: 8px 10px 10px;
    border-radius: 22px;
    z-index: 20;
}
.bottom-nav button {
    min-width: 0;
    min-height: 62px;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 11px;
    line-height: 16px;
}
.bottom-nav .symbol {
    height: 38px;
    display: flex;
    align-items: center;
    font-size: 24px;
}
.bottom-nav button.active,
.bottom-nav .nav-ai {
    color: var(--blue);
    font-weight: 650;
}
.nav-ai-portrait {
    display: block;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 2px solid #dce6ff;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px #3159d51a;
}
.nav-ai-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3);
    transform-origin: 50% 30%;
}
.chat-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    min-height: calc(100vh - 165px);
    overflow: hidden;
}
.chat {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: calc(100vh - 165px);
}
.chat-head {
    padding: 20px 26px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.chat-head small {
    display: block;
    font-size: 11px;
    margin-top: 5px;
}
.messages {
    overflow: auto;
    padding: 24px 26px;
    flex: 1;
    min-height: 170px;
}
.chat-intro {
    text-align: center;
    padding: 55px 15px 30px;
}
.ai-icon {
    display: grid;
    place-items: center;
    margin: 0 auto 24px;
    width: 62px;
    height: 62px;
    border-radius: 22px;
    background: var(--navy);
    color: white;
    font-size: 30px;
}
.chat-intro h2 {
    font-size: 25px;
    margin-bottom: 10px;
}
.chat-intro p {
    font-size: 13px;
    color: var(--muted);
}
.suggestions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-width: 440px;
    margin: 27px auto;
}
.suggestions button {
    border: 1px solid var(--line);
    padding: 14px;
    border-radius: 12px;
    font-size: 12px;
    text-align: left;
    color: var(--muted);
}
.message {
    max-width: 90%;
    margin: 0 0 20px;
}
.message.user {
    margin-left: auto;
    text-align: right;
}
.bubble {
    display: inline-block;
    background: #f3f5fa;
    border-radius: 15px;
    padding: 15px 18px;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.85;
    text-align: left;
    overflow-wrap: anywhere;
}
.user .bubble {
    background: #eaf0ff;
}
.message img {
    display: block;
    max-width: 100%;
    max-height: 350px;
    border-radius: 12px;
    margin-top: 8px;
}
.message-tools {
    display: flex;
    gap: 12px;
    margin-top: 9px;
    font-size: 11px;
    color: var(--muted);
}
.composer {
    padding: 15px 23px 20px;
    border-top: 1px solid var(--line);
    background: white;
}
.input-box {
    border: 1px solid #dce3ef;
    border-radius: 15px;
    overflow: hidden;
    background: #fafbfe;
}
.input-box textarea {
    border: 0;
    box-shadow: none;
    min-height: 65px;
    max-height: 160px;
    background: none;
    font-size: 14px;
}
.input-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 11px 10px;
    gap: 8px;
}
.input-tools small {
    font-size: 11px;
}
.input-tools select {
    width: 100px;
    padding: 7px;
    font-size: 12px;
}
.input-tools .btn {
    padding: 9px 16px;
}
.task-state {
    font-size: 12px;
    color: var(--muted);
    padding: 10px 0;
    line-height: 1.7;
}
.task-state.error {
    color: #b46630;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.admin-table th {
    text-align: left;
    padding: 14px 10px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    font-weight: 500;
}
.admin-table td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
}
.table-wrap {
    overflow: auto;
}
.metric {
    font-size: 35px;
    margin: 13px 0 0;
    font-weight: 650;
}
.toolbar {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 14px;
}
.full {
    grid-column: 1/-1;
}
.help {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
    margin-top: 10px;
}
.divider {
    height: 1px;
    background: var(--line);
    margin: 24px 0;
}
.notice {
    padding: 14px 18px;
    border-radius: 12px;
    background: #f0f4fc;
    font-size: 12px;
    line-height: 1.8;
    color: #596a8e;
    margin-bottom: 20px;
}
.qr {
    text-align: center;
}
.qr img {
    width: 240px;
    max-width: 100%;
    display: block;
    margin: 18px auto;
}
.qr h2 {
    margin-top: 12px;
}
dialog {
    border: 1px solid var(--line);
    border-radius: 23px;
    width: min(520px, calc(100% - 28px));
    padding: 28px;
    color: var(--ink);
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 80px #14213d26;
}
dialog::backdrop {
    background: #17233d66;
    backdrop-filter: blur(3px);
}
.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.modal-head button {
    font-size: 23px;
    color: var(--muted);
}
.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
}
.error-text {
    font-size: 13px;
    color: #b54545;
    line-height: 1.8;
    margin-top: 12px;
}
#toast {
    position: fixed;
    left: 50%;
    bottom: 105px;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    background: #19243a;
    color: white;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 13px;
    z-index: 100;
    pointer-events: none;
    transition: 0.2s;
    max-width: 90vw;
    line-height: 1.6;
}
#toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.loading {
    text-align: center;
    padding: 80px;
    color: var(--muted);
}
video {
    max-width: 100%;
    border-radius: 12px;
}
.staff-preview {
    padding: 25px;
    background: #edf7f1;
    border-radius: 14px;
    margin-top: 18px;
}
.mobile-brand {
    display: none;
}
@media (min-width: 1400px) {
    .main {
        padding-left: 65px;
        padding-right: 65px;
    }
}
@media (max-width: 1050px) {
    .main {
        padding: 0 26px 105px;
    }
    .sidebar {
        width: 185px;
    }
    .layout {
        grid-template-columns: 185px 1fr;
    }
    .bottom-nav {
        left: calc(50% + 92px);
    }
    .grid.three {
        grid-template-columns: 1fr 1fr;
    }
    .course-detail {
        grid-template-columns: 1fr;
    }
    .hero {
        grid-template-columns: 1fr 130px;
    }
    .orbit {
        width: 120px;
        height: 120px;
    }
    .orbit:before {
        width: 80px;
        height: 150px;
    }
    .chat-history {
        display: none;
    }
    .chat-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 700px) {
    h1 {
        font-size: 25px;
    }
    .layout {
        display: block;
    }
    .sidebar {
        display: none;
    }
    .main {
        padding: 0 20px 135px;
        max-width: 600px;
    }
    .topbar {
        height: 72px;
        margin-bottom: 25px;
    }
    .topbar > .eyebrow {
        display: none;
    }
    .mobile-brand {
        display: flex;
        width: 150px;
        max-width: 48%;
    }
    .topbar .user-name {
        display: none;
    }
    .welcome {
        margin-bottom: 22px;
        align-items: start;
    }
    .welcome p {
        font-size: 12px;
        max-width: 240px;
    }
    .welcome > .btn {
        padding: 10px 12px;
        font-size: 12px;
    }
    .hero {
        padding: 24px;
        min-height: 255px;
        grid-template-columns: 1fr;
    }
    .hero h2 {
        font-size: 25px;
        max-width: 230px;
        position: relative;
        z-index: 1;
    }
    .hero p {
        max-width: 240px;
        font-size: 12px;
        position: relative;
        z-index: 1;
    }
    .hero-art {
        position: absolute;
        right: -37px;
        top: 35px;
        opacity: 0.35;
    }
    .hero .btn {
        position: relative;
        z-index: 1;
    }
    .grid,
    .grid.three {
        grid-template-columns: 1fr;
    }
    .grid.quick-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .quick-grid .card {
        padding: 17px 13px;
        border-radius: 16px;
    }
    .quick {
        display: block;
    }
    .quick-icon {
        width: 37px;
        height: 37px;
        font-size: 19px;
        margin-bottom: 12px;
    }
    .quick h3 {
        font-size: 13px;
    }
    .section-head {
        margin: 28px 0 15px;
    }
    .section-head h2 {
        font-size: 18px;
    }
    .card {
        padding: 19px;
    }
    .course-art {
        height: 137px;
        margin-bottom: 16px;
    }
    .bottom-nav {
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        transform: none;
        border: 0;
        border-top: 1px solid var(--line);
        border-radius: 0;
        padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
    }
    .course-detail {
        gap: 17px;
    }
    .reading-card {
        padding: 23px 20px;
    }
    .reading-card h1 {
        font-size: 23px;
    }
    .reading {
        font-size: 15px;
        line-height: 2;
    }
    .list-item {
        padding: 15px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .list-item .actions {
        margin-left: auto;
    }
    :is(.chat-page, .ai-panel) .main {
        padding: 0;
    }
    :is(.chat-page, .ai-panel) .topbar {
        display: none;
    }
    :is(.chat-page, .ai-panel) .bottom-nav {
        display: none;
    }
    .chat-layout {
        border: 0;
        border-radius: 0;
        min-height: 100dvh;
    }
    .chat {
        height: 100dvh;
    }
    .chat-head {
        padding: 16px 20px;
    }
    .messages {
        padding: 22px 17px;
    }
    .chat-intro {
        padding-top: 65px;
    }
    .chat-intro h2 {
        font-size: 23px;
    }
    .composer {
        padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
    }
    .message {
        max-width: 93%;
    }
    .bubble {
        font-size: 14px;
        padding: 12px 15px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .profile {
        gap: 15px;
    }
    .balance strong {
        font-size: 37px;
    }
    .tabs {
        gap: 4px;
    }
    .tabs button {
        padding: 9px 11px;
        font-size: 12px;
    }
    .admin-table {
        min-width: 620px;
    }
    .suggestions {
        gap: 8px;
    }
    .suggestions button {
        padding: 12px;
    }
    .row.wrap {
        flex-wrap: wrap;
    }
}

.assistant-portrait {
    overflow: hidden;
    background: #fff;
}
.assistant-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chat-intro .ai-icon.assistant-portrait {
    border-radius: 50%;
    border: 2px solid #dce6ff;
}
.chat-context {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 7px 0;
    font-size: 12px;
    color: var(--muted);
}
.chat-context > span {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-context button {
    color: var(--blue);
    white-space: nowrap;
}
.chat-context select {
    width: auto;
    min-width: 0;
    flex: 1;
    padding: 7px 10px;
    font-size: 12px;
}
.composer > select {
    margin-bottom: 8px;
    font-size: 12px;
    padding: 8px;
}
.reference-preview {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    margin: 7px 0;
}
.reference-preview img {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
}
.reference-preview button {
    color: var(--blue);
}
.chat-cost {
    font-size: 10px;
    margin-top: 7px;
}

/* A single mobile-first conversation surface, with history tucked into a drawer. */
:is(.chat-page, .ai-panel) {
    background: #fff;
    overflow: hidden;
}
:is(.chat-page, .ai-panel) .sidebar,
:is(.chat-page, .ai-panel) .topbar,
:is(.chat-page, .ai-panel) .bottom-nav {
    display: none;
}
:is(.chat-page, .ai-panel) .layout {
    display: block;
}
:is(.chat-page, .ai-panel) .main {
    padding: 0;
    max-width: none;
    margin: 0;
}
:is(.chat-page, .ai-panel) .chat-layout {
    display: block;
    border: 0;
    border-radius: 0;
    min-height: 100dvh;
}
:is(.chat-page, .ai-panel) .chat {
    height: 100dvh;
}
:is(.chat-page, .ai-panel) .chat-head {
    flex-shrink: 0;
    padding: 12px 18px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    border: 0;
    gap: 12px;
}
.chat-head h3 {
    text-align: center;
    font-size: 18px;
    font-weight: 650;
    margin: 0;
}
.chat-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #26292e;
    flex-shrink: 0;
}
.chat-icon:hover {
    background: #f3f4f5;
}
.chat-icon svg,
.chat-send svg {
    width: 24px;
    height: 24px;
}
:is(.chat-page, .ai-panel) .messages {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 16px 22px;
    min-height: 0;
    overscroll-behavior: contain;
}
:is(.chat-page, .ai-panel) .chat-intro {
    padding: clamp(32px, 12vh, 100px) 0 24px;
}
:is(.chat-page, .ai-panel) .chat-intro .ai-icon {
    width: 86px;
    height: 86px;
    margin-bottom: 20px;
    border-radius: 50%;
    border: 0;
    box-shadow: none;
}
:is(.chat-page, .ai-panel) .chat-intro h2 {
    font-size: 23px;
    font-weight: 650;
    letter-spacing: 0.2px;
}
:is(.chat-page, .ai-panel) .chat-intro p {
    font-size: 14px;
    color: #8a8e96;
    line-height: 1.7;
}
:is(.chat-page, .ai-panel) .suggestions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px auto 0;
    max-width: none;
}
:is(.chat-page, .ai-panel) .suggestions button {
    border: 1px solid #eceef0;
    background: #fff;
    padding: 11px 14px;
    border-radius: 24px;
    color: #565c66;
    font-size: 13px;
    text-align: center;
}
:is(.chat-page, .ai-panel) .suggestions button:hover {
    background: #f6f7f8;
}
:is(.chat-page, .ai-panel) .composer {
    flex-shrink: 0;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 10px 18px calc(12px + env(safe-area-inset-bottom));
    border: 0;
}
:is(.chat-page, .ai-panel) .input-box {
    border: 1px solid #eceef0;
    border-radius: 24px;
    background: #f5f6f7;
    padding: 3px;
}
:is(.chat-page, .ai-panel) .input-box:focus-within {
    border-color: #d7dbe0;
}
:is(.chat-page, .ai-panel) .input-box textarea {
    min-height: 54px;
    height: 54px;
    padding: 13px 14px 6px;
    resize: none;
    font-size: 15px;
    color: #26292e;
}
:is(.chat-page, .ai-panel) .input-box textarea::placeholder {
    color: #9a9ea6;
}
:is(.chat-page, .ai-panel) .input-tools {
    padding: 0 8px 6px;
}
:is(.chat-page, .ai-panel) .tool-toggle {
    font-size: 28px;
    width: 36px;
    height: 36px;
    font-weight: 300;
}
.chat-send {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    background: #24262c;
    color: #fff;
    border-radius: 50%;
}
.chat-send:disabled {
    opacity: 0.35;
}
:is(.chat-page, .ai-panel) .chat-cost {
    text-align: center;
    color: #9a9ea6;
    font-size: 10px;
    margin: 9px 0 0;
}
.chat-cost button {
    font-size: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
:is(.chat-page, .ai-panel) .message.assistant {
    max-width: 100%;
}
:is(.chat-page, .ai-panel) .assistant .bubble {
    background: transparent;
    padding: 6px 0;
    font-size: 15px;
}
:is(.chat-page, .ai-panel) .user .bubble {
    background: #f2f3f5;
    border-radius: 20px;
    font-size: 15px;
}
:is(.chat-page, .ai-panel) .message-tools {
    flex-wrap: wrap;
    color: #989da6;
}
:is(.chat-page, .ai-panel) .chat-context {
    background: #f7f8fa;
    border-radius: 14px;
    padding: 9px 12px;
    font-size: 12px;
}
.history-drawer {
    position: fixed;
    inset: 0 auto 0 0;
    margin: 0;
    width: min(340px, 85vw);
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0 24px 24px 0;
    padding: 24px 18px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 12px 0 60px #10192810;
    background: #fafbfc;
}
.history-drawer[open] {
    display: flex;
    flex-direction: column;
}
.history-drawer::backdrop {
    background: #151d2b44;
    backdrop-filter: none;
}
.history-drawer .modal-head {
    flex-shrink: 0;
    margin: 0 2px 25px;
}
.history-drawer .modal-head h2 {
    font-size: 20px;
    margin: 0;
}
.history-drawer .modal-head button {
    width: 36px;
    height: 36px;
}
.history-new {
    border: 1px solid #e1e5ea;
    border-radius: 14px;
    padding: 14px;
    text-align: left;
    font-size: 14px;
    background: #fff;
    flex-shrink: 0;
}
.history-scroll {
    overflow: auto;
    flex: 1;
    min-height: 0;
    margin: 20px -4px 12px;
    padding: 0 4px;
    overscroll-behavior: contain;
}
.history-item {
    display: flex;
    align-items: center;
    border-radius: 13px;
    margin-bottom: 6px;
}
.history-item.active,
.history-item:hover {
    background: #ebedf1;
}
.history-open {
    flex: 1;
    min-width: 0;
    padding: 13px 10px;
    text-align: left;
}
.history-open span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}
.history-open small {
    display: block;
    font-size: 11px;
    color: #9ba0a9;
    margin-top: 6px;
}
.history-delete {
    font-size: 19px;
    width: 32px;
    color: #a9afb9;
}
.history-more {
    width: 100%;
    padding: 14px;
    color: #748197;
    font-size: 13px;
}
.history-home {
    border-top: 1px solid #e9ecf0;
    padding: 18px 8px 0;
    text-align: left;
    color: #6d7581;
    font-size: 13px;
    flex-shrink: 0;
}
.history-empty {
    font-size: 14px;
    color: #8c939d;
    padding: 30px 8px;
    line-height: 1.8;
}
@media (max-height: 600px) {
    :is(.chat-page, .ai-panel) .chat-intro {
        padding-top: 18px;
    }
    :is(.chat-page, .ai-panel) .chat-intro .ai-icon {
        width: 68px;
        height: 68px;
        margin-bottom: 12px;
    }
    :is(.chat-page, .ai-panel) .suggestions {
        margin-top: 20px;
    }
}

:is(.chat-page, .ai-panel) .input-box {
    position: relative;
    display: flex;
    align-items: flex-end;
    border-radius: 28px;
    padding: 9px 8px 9px 16px;
    background: #fff;
    box-shadow: 0 4px 24px #202e4610;
    min-height: 64px;
}
:is(.chat-page, .ai-panel) .input-box textarea {
    flex: 1;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    max-height: 140px;
    padding: 11px 0 8px;
    font-size: 15px;
    line-height: 24px;
    touch-action: pan-y;
    -webkit-touch-callout: none;
}
:is(.chat-page, .ai-panel) .input-tools {
    gap: 5px;
    padding: 4px 2px;
    flex-shrink: 0;
}
:is(.chat-page, .ai-panel) .voice-toggle {
    width: 36px;
    height: 36px;
}
:is(.chat-page, .ai-panel) .chat-send {
    display: none;
}
:is(.chat-page, .ai-panel) .has-draft .chat-send {
    display: grid;
}
.voice-status {
    display: none;
    position: absolute;
    inset: 0;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border-radius: 27px;
    background: #e5f5ff;
    color: #217cb6;
    text-align: left;
}
.voice-status span {
    display: block;
    font-size: 14px;
    font-weight: 600;
}
.voice-status small {
    display: block;
    font-size: 10px;
    margin-top: 5px;
    color: #5991b3;
}
.input-box[data-voice="starting"],
.input-box[data-voice="recording"],
.input-box[data-voice="transcribing"] {
    border-color: #a8dcfb;
    box-shadow: 0 0 0 5px #e5f5ff80;
    min-height: 88px;
}
.input-box:not([data-voice="idle"]) .voice-status {
    display: flex;
}
.input-box:not([data-voice="idle"]) .voice-toggle {
    position: relative;
    z-index: 1;
    background: #ffffffa0;
}
.input-box:not([data-voice="idle"]) .tool-toggle,
.input-box:not([data-voice="idle"]) .chat-send {
    visibility: hidden;
}
.voice-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 28px;
}
.voice-bars i {
    display: block;
    width: 3px;
    height: 10px;
    background: #46a9e8;
    border-radius: 3px;
}
.voice-bars i:nth-child(2),
.voice-bars i:nth-child(4) {
    height: 19px;
}
.voice-bars i:nth-child(3) {
    height: 27px;
}
[data-voice="recording"] .voice-bars i {
    animation: voice-wave 0.8s ease-in-out infinite alternate;
}
.voice-bars i:nth-child(2n) {
    animation-delay: -0.4s;
}
.voice-cancel .voice-status {
    background: #fceceb;
    color: #b86e68;
}
.voice-cancel .voice-status small {
    color: #ad8984;
}
.voice-cancel .voice-bars i {
    animation: none;
    background: #d79289;
}
@keyframes voice-wave {
    from {
        transform: scaleY(0.45);
    }
    to {
        transform: scaleY(1);
    }
}
@media (prefers-reduced-motion: reduce) {
    .voice-bars i {
        animation: none !important;
    }
}

.attachment-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 13px;
    background: #f7f8fa;
    border-radius: 18px;
    margin: 12px 0 0;
}
.attachment-tools > button {
    font-size: 22px;
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 13px;
    width: 80px;
    max-width: 100%;
    justify-self: center;
    padding: 10px 4px;
    color: #586a82;
}
.attachment-tools > button span {
    display: block;
    font-size: 11px;
    margin-top: 6px;
}
.attachment-tools > small {
    grid-column: 1 / -1;
    width: 100%;
    font-size: 10px;
    color: #939ba6;
    line-height: 1.6;
}
.image-settings {
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: #f7f8fa;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
}
.image-settings select {
    flex: 1;
    min-width: 0;
    padding: 8px;
    font-size: 12px;
}
.image-settings[hidden] {
    display: none;
}
.image-settings > button {
    border: 0;
    background: transparent;
    padding: 4px;
    font-size: 20px;
    color: #89929e;
}
.pending-attachments {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 180px;
    overflow: auto;
    margin: 8px 0;
}
.attachment-card {
    display: flex;
    align-items: center;
    gap: 11px;
    text-align: left;
    padding: 12px;
    background: #f5f7fa;
    border: 1px solid #e7ecf2;
    border-radius: 13px;
    min-width: 0;
    margin: 7px 0;
    max-width: 100%;
}
.attachment-type {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 46px;
    border-radius: 9px;
    background: #e9f0ff;
    color: #526e9c;
    font-size: 10px;
    font-weight: 700;
}
.attachment-card > div {
    min-width: 0;
    flex: 1;
}
.attachment-card strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 550;
}
.attachment-card small {
    display: block;
    font-size: 10px;
    color: #8a94a3;
    line-height: 1.6;
    margin-top: 4px;
    overflow-wrap: anywhere;
}
.attachment-card > button {
    font-size: 20px;
    color: #8a94a3;
    flex-shrink: 0;
    width: 28px;
}
.attachment-uploading {
    font-size: 12px;
    color: #617b9d;
    padding: 8px 4px;
}

.course-card {
    display: block;
    color: inherit;
    text-decoration: none;
}
.course-card:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}
.qr img[hidden] {
    display: none;
}
@media (max-width: 700px) {
    .account-grid .balance {
        padding: 18px 20px;
    }
    .account-grid .balance strong {
        font-size: 32px;
        margin: 8px 0 12px;
    }
    .account-grid .attendance-card {
        padding: 20px;
    }
}

.welcome > .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Desktop assistant stays available beside the learning content. */
#ai-widget {
    display: none;
}
.chat-window-actions {
    display: flex;
    align-items: center;
}
@media (min-width: 1024px) {
    .bottom-nav {
        display: none;
    }
    .main {
        padding-bottom: 48px;
    }
    #ai-widget {
        display: block;
    }
    .ai-launcher {
        position: fixed;
        right: 28px;
        bottom: 24px;
        z-index: 60;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0;
        border-radius: 50%;
    }
    .ai-launcher-label {
        padding: 9px 14px;
        background: #fff;
        color: #344465;
        font-size: 13px;
        font-weight: 600;
        border: 1px solid #e5eaf2;
        border-radius: 12px;
        box-shadow: 0 4px 20px #1934560b;
    }
    .ai-launcher-portrait {
        display: block;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        border: 3px solid #fff;
        outline: 1px solid #dbe8ff;
        overflow: hidden;
        background: #e7f1ff;
        box-shadow: 0 8px 24px #32589926;
        transition:
            transform 0.2s,
            box-shadow 0.2s;
    }
    .ai-launcher-portrait img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: scale(1.3);
        transform-origin: 50% 30%;
    }
    .ai-launcher:hover .ai-launcher-portrait {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px #32589938;
    }
    .ai-launcher:focus-visible,
    .ai-panel button:focus-visible {
        outline: 3px solid #77a5ff;
        outline-offset: 3px;
    }
    .ai-panel {
        outline: none;
        position: fixed;
        right: 28px;
        bottom: 104px;
        width: 440px;
        height: min(680px, calc(100dvh - 128px));
        z-index: 59;
        background: #fff;
        border: 1px solid #e3e9f2;
        border-radius: 24px;
        box-shadow:
            0 20px 80px #172f5026,
            0 4px 16px #172f500a;
        overflow: hidden;
    }
    .ai-panel[hidden] {
        display: none;
    }
    .ai-panel.expanded {
        width: min(780px, calc(100vw - 280px));
        height: calc(100dvh - 128px);
    }
    .ai-panel .chat-layout {
        min-height: 0;
        height: 100%;
    }
    .ai-panel .chat {
        height: 100%;
    }
    .ai-panel .chat-head {
        padding: 10px 14px;
        grid-template-columns: 36px 1fr auto;
        gap: 8px;
        border-bottom: 1px solid #eef1f5;
    }
    .ai-panel .chat-head h3 {
        text-align: left;
        font-size: 16px;
    }
    .ai-panel .chat-head .chat-icon {
        width: 36px;
        height: 36px;
    }
    .ai-panel .chat-head svg {
        width: 21px;
        height: 21px;
    }
    .ai-panel .messages {
        padding: 18px 22px;
    }
    .ai-panel .chat-intro {
        padding: 32px 0 20px;
    }
    .ai-panel .chat-intro .ai-icon {
        width: 72px;
        height: 72px;
        margin-bottom: 18px;
    }
    .ai-panel .chat-intro h2 {
        font-size: 21px;
    }
    .ai-panel .suggestions {
        gap: 8px;
        margin-top: 24px;
    }
    .ai-panel .suggestions button {
        padding: 10px 12px;
        font-size: 12px;
    }
    .ai-panel .composer {
        padding: 10px 16px 14px;
        max-height: 60%;
        overflow-y: auto;
    }
    .ai-panel .input-box textarea {
        font-size: 14px;
    }
    .ai-panel-loading {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 32px;
        color: var(--muted);
    }
    .history-drawer {
        inset: auto 28px 104px auto;
        width: 360px;
        height: min(680px, calc(100dvh - 128px));
        max-height: calc(100dvh - 128px);
        border: 1px solid #e3e9f2;
        border-radius: 24px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ai-launcher-portrait {
        transition: none;
    }
}

@media (max-width: 700px) {
    .admin-table { display: block; min-width: 0; width: 100%; }
    .admin-table thead { display: none; }
    .admin-table tbody { display: block; }
    .admin-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .admin-table tr:last-child { border-bottom: 0; }
    .admin-table td { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
    .admin-table td::before { content: attr(data-label); flex: 0 0 44px; color: var(--muted); font-size: 12px; }
}

/* Independent image and video entries are shown near the top of the homepage. */
.main:has(.tools-page) { margin: 0 auto; }
.tools-page .practice-tool-link { padding: 30px; min-height: 150px; }
.tools-page .practice-tool-icon { flex-basis: 56px; height: 56px; font-size: 28px; }
.tools-page .practice-tool-link h3 { font-size: 21px; }
.tools-page .practice-tool-link p { line-height: 1.8; }
@media (max-width: 600px) {
    .tools-page .practice-tool-links { grid-template-columns: 1fr; }
    .tools-page .practice-tool-link { padding: 24px; min-height: 126px; align-items: center; }
    .tools-page .practice-tool-link h3 { font-size: 19px; }
    .tools-page .practice-tool-link p { font-size: 13px; }
}
.practice-tools{margin-top:38px;margin-bottom:20px}.practice-tools .section-head{margin-top:0}.practice-tool-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.practice-tool-link{display:flex;align-items:center;gap:16px;text-decoration:none;color:inherit;padding:22px;border:1px solid #e4e8ee;border-radius:18px;background:#fff;transition:border-color .2s,transform .2s}.practice-tool-link:hover{border-color:#aebfe5;transform:translateY(-2px)}.practice-tool-link h3{margin:0 0 6px;font-size:17px}.practice-tool-link p{margin:0;font-size:13px;color:#7a8494}.practice-tool-icon{display:grid;place-items:center;flex:0 0 46px;height:46px;border-radius:14px;background:#edf3ff;color:#466abb;font-size:24px}.practice-tool-link.video .practice-tool-icon{background:#edf6f0;color:#478469}.practice-tool-link>span:last-child{margin-left:auto;color:#8b95a4}.creation-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:24px;align-items:start}.creation-editor{min-width:0}.creation-mode{border:0;padding:0;margin:0 0 22px;display:flex;gap:12px;flex-wrap:wrap}.creation-mode legend{font-weight:600;margin-bottom:12px}.creation-mode label{margin:0!important;padding:12px 18px;border:1px solid #dae0e9;border-radius:12px;display:flex;align-items:center;gap:8px;cursor:pointer}.creation-mode label:has(input:checked){border-color:#3567ce;background:#eef3ff;color:#2755b0}.creation-mode input{width:auto;margin:0}.creation-editor textarea{resize:vertical;min-height:150px}.creation-settings{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:22px 0}.creation-settings>div{flex:1;min-width:100px}.creation-quality{display:grid;gap:12px;padding-bottom:14px}.creation-quality span{font-size:14px;color:#687589}.creation-submit{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid #edf0f5;padding-top:22px;margin-top:12px}.creation-submit strong{font-size:18px}.creation-submit .help{margin:8px 0 0}.creation-guide p{line-height:1.8;margin-top:16px;color:#788397;font-size:14px}.creation-upload{border:1px dashed #bac6d9;border-radius:12px;padding:16px;background:#fafbfe}.creation-upload input{padding:0;border:0;background:transparent;max-width:100%}.creation-upload img{display:block;width:100%;height:150px;object-fit:contain;margin-top:12px}.creation-upload button{font-size:13px;margin-top:10px;color:#65738c}.creation-demo{margin-bottom:24px}#creation-status{line-height:1.7;font-size:14px;color:#4b627e;margin-top:16px}#creation-history-status{color:#8b5a37;font-size:14px}.creation-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.creation-result{min-width:0;overflow:hidden;padding:18px}.creation-result-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.creation-result-head small{font-size:12px;color:#7f8999}.creation-prompt-copy{white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.65;font-size:14px;margin:16px 0;height:70px}.creation-result img,.creation-result video{display:block;width:100%;height:260px;object-fit:contain;border-radius:10px;background:#f1f3f6}.creation-placeholder{height:160px;display:grid;place-items:center;background:#f6f8fc;border-radius:10px;color:#8b97aa;font-size:14px}.creation-result-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:16px}.creation-result-actions small{width:100%;font-size:12px;color:#8b97aa}.creation-result .help{line-height:1.6}.creation-history{margin-top:36px}#creation-more{display:block;margin:24px auto}#creation-more[hidden],#creation-reference[hidden]{display:none}
@media(max-width:1150px){.creation-layout{grid-template-columns:minmax(0,1fr)}.creation-guide{display:none}.creation-results-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.practice-tool-links{gap:10px}.practice-tool-link{padding:16px 12px;gap:10px;align-items:flex-start}.practice-tool-icon{flex-basis:32px;height:32px;border-radius:9px;font-size:19px}.practice-tool-link h3{font-size:15px}.practice-tool-link p{font-size:12px;line-height:1.7}.practice-tool-link>span:last-child{display:none}.creation-editor{padding:20px 16px}.creation-results-grid{grid-template-columns:1fr}.creation-submit{align-items:stretch;flex-direction:column;gap:14px}.creation-mode label{flex:1;justify-content:center;padding:12px}.creation-settings{gap:12px}.creation-quality{flex:0 0 100%!important;display:flex;gap:12px;padding:0}.creation-result img,.creation-result video{height:300px}.creation-history .section-head h2{font-size:21px}}

/* Registration and attendance are the student homepage's primary content. */
.registration-hero{gap:36px}.registration-hero h2{max-width:680px;font-size:36px;line-height:1.35}.registration-hero .eyebrow{letter-spacing:.1em}.registration-cohort{margin-bottom:12px!important}.registration-hero-facts{display:grid;gap:10px;color:#c7d2e3;margin:18px 0 28px;font-size:15px}.registration-hero-note{flex:0 0 200px;text-align:center;align-self:center;border:1px solid #ffffff22;border-radius:20px;padding:28px 18px;background:#ffffff06}.registration-ticket-icon{display:block;font-size:52px;color:#d7e3ff;margin-bottom:12px}.registration-hero-note strong{font-size:17px;color:#edf3ff}.registration-hero-note p{font-size:13px!important;line-height:1.8;margin:14px 0 0!important}.registration-pending{background:#ffffff19;color:#eef2ff;border-radius:8px;padding:10px 14px;font-size:14px}.registration-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.registration-grid.single{grid-template-columns:1fr}.registration-card{min-width:0}.registration-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.registration-card-head h3{font-size:19px;line-height:1.5}.registration-card-head p{font-size:13px;color:var(--muted);margin:6px 0 0}.registration-facts{display:grid;gap:8px;margin:20px 0;font-size:14px;color:#68758b}.registration-card .row{margin-top:18px}.registration-checkins{border-radius:10px;background:#f0f8f4;padding:10px 14px}.registration-checkins p{font-size:13px;line-height:1.7;color:#39705b}.registration-empty{display:flex;gap:24px;align-items:center;justify-content:space-between}.registration-empty p{font-size:14px;color:var(--muted);margin-top:10px;line-height:1.8}.registration-empty .btn{flex-shrink:0}.registration-session-list{display:grid;gap:14px}.registration-session{display:flex;justify-content:space-between;align-items:center;gap:20px;text-decoration:none;color:inherit}.registration-session h3{font-size:18px}.registration-session p{margin:8px 0;color:var(--muted);font-size:14px}.registration-session small{color:var(--muted)}.registration-session>span{white-space:nowrap;font-size:14px;color:#4566a9}.registration-detail-session{padding:18px 0;border-bottom:1px solid #edf0f4}.registration-detail-session p{margin-top:10px;line-height:1.8;color:var(--muted);font-size:14px}.registration-steps p{line-height:1.9;margin:20px 0;color:var(--muted)}.registration-steps strong{color:var(--text)}.registration-materials .list-item{color:inherit;text-decoration:none}.registration-materials .spacer{min-width:0}.registration-materials h3{line-height:1.5}
@media(max-width:800px){.registration-grid{grid-template-columns:1fr}.registration-hero-note{display:none}.registration-hero h2{font-size:30px}.registration-empty{align-items:flex-start;flex-direction:column}.registration-session{align-items:flex-start;flex-direction:column;gap:12px}.registration-hero-facts{font-size:14px}.registration-materials h3{font-size:16px}}
