:root {
    --navy: #111a34;
    --navy-2: #182441;
    --ink: #18223a;
    --muted: #6f7890;
    --canvas: #f4f5f7;
    --paper: #ffffff;
    --line: #e6e8ee;
    --purple: #6758e8;
    --purple-soft: #eeebff;
    --lime: #b8f34a;
    --mint: #52d6bd;
    --coral: #ff987c;
    --blue: #62a6ff;
    --danger: #c64747;
    --danger-soft: #fff0ee;
    --success: #197a63;
    --success-soft: #e9f8f3;
    --shadow-sm: 0 8px 24px rgba(23, 34, 59, .06);
    --shadow-md: 0 18px 50px rgba(23, 34, 59, .09);
    --radius-sm: 14px;
    --radius: 20px;
    --radius-lg: 28px;
    font-family: "Aptos", "Segoe UI", Inter, Arial, sans-serif;
    color: var(--ink);
    background: var(--canvas);
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

svg {
    display: block;
    flex: 0 0 auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.brand__mark {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 15px;
    color: var(--navy);
    background: var(--lime);
    box-shadow: 0 10px 26px rgba(184, 243, 74, .2);
}

.brand__logo {
    display: block;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(17, 26, 52, .18));
}

.brand > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.08;
}

.brand strong {
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -.035em;
}

.brand small {
    margin-top: 5px;
    color: rgba(255, 255, 255, .46);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.brand--light {
    color: #fff;
}

.eyebrow {
    margin: 0 0 9px;
    color: var(--purple);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow--lime {
    display: inline-flex;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--navy);
    background: var(--lime);
    letter-spacing: .13em;
}

.button {
    display: inline-flex;
    min-height: 47px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 19px;
    border: 0;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 780;
    line-height: 1;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible,
.icon-button:focus-visible,
.sidebar__link:focus-visible,
.sidebar__logout:focus-visible,
.mobile-menu:focus-visible,
.topbar__site-link:focus-visible {
    outline: 3px solid rgba(103, 88, 232, .25);
    outline-offset: 3px;
}

.button--primary {
    color: #fff;
    background: var(--purple);
    box-shadow: 0 12px 25px rgba(103, 88, 232, .22);
}

.button--primary:hover {
    background: #594bd5;
    box-shadow: 0 15px 30px rgba(103, 88, 232, .28);
}

.button--lime {
    color: var(--navy);
    background: var(--lime);
    box-shadow: 0 12px 28px rgba(184, 243, 74, .18);
}

.button--lime:hover {
    background: #c5fa62;
}

.button--ghost-light {
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.button--ghost-light:hover {
    background: rgba(255, 255, 255, .12);
}

.button--soft {
    color: var(--purple);
    background: var(--purple-soft);
}

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

.notice {
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 680;
    line-height: 1.5;
}

.notice--error {
    border-color: #f3c9c5;
    color: #9f3737;
    background: var(--danger-soft);
}

.notice--success {
    border-color: #bfe7da;
    color: var(--success);
    background: var(--success-soft);
}

.notice--info {
    border-color: #d6d1ff;
    color: #5144bc;
    background: var(--purple-soft);
}

.notice--floating {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}

/* Login --------------------------------------------------------------- */

.login-page {
    overflow-x: hidden;
    background: #f7f7f3;
}

.login-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(420px, 1.05fr) minmax(420px, .95fr);
}

.login-story {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px clamp(36px, 6vw, 92px) 58px;
    color: #fff;
    background:
        radial-gradient(circle at 23% 82%, rgba(103, 88, 232, .28), transparent 32%),
        linear-gradient(145deg, #101a34 0%, #17233f 100%);
}

.login-story::after {
    position: absolute;
    right: -110px;
    bottom: -130px;
    width: 440px;
    height: 440px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, .025),
        0 0 0 140px rgba(255, 255, 255, .018);
}

.login-story__content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    margin: auto 0;
    padding: 80px 0 60px;
}

.login-story h1 {
    max-width: 590px;
    margin: 22px 0 24px;
    font-size: clamp(47px, 5.2vw, 76px);
    font-weight: 900;
    letter-spacing: -.06em;
    line-height: .98;
}

.login-story h1 em,
.hero h2 em {
    color: var(--lime);
    font-style: normal;
}

.login-story__content > p {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, .64);
    font-size: 17px;
    line-height: 1.7;
}

.login-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 38px;
}

.login-benefits div {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .055);
    font-size: 12px;
    font-weight: 720;
}

.login-benefits span {
    color: var(--lime);
}

.login-story__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(65px);
    pointer-events: none;
}

.login-story__glow--one {
    top: 4%;
    right: -8%;
    width: 300px;
    height: 300px;
    background: rgba(82, 214, 189, .12);
}

.login-story__glow--two {
    left: 30%;
    bottom: -10%;
    width: 350px;
    height: 350px;
    background: rgba(103, 88, 232, .16);
}

.login-panel {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 46px clamp(28px, 6vw, 86px);
    background:
        radial-gradient(circle at 75% 15%, rgba(184, 243, 74, .16), transparent 28%),
        #f8f8f4;
}

.login-card {
    width: 100%;
    max-width: 470px;
    padding: clamp(29px, 4vw, 48px);
    border: 1px solid rgba(23, 34, 59, .08);
    border-radius: 30px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 30px 80px rgba(23, 34, 59, .1);
    backdrop-filter: blur(14px);
}

.login-card__icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 27px;
    place-items: center;
    border-radius: 18px;
    color: var(--purple);
    background: var(--purple-soft);
}

.login-card h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 39px);
    font-weight: 880;
    letter-spacing: -.045em;
}

.login-card__intro {
    margin: 10px 0 27px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.login-card .notice {
    margin-bottom: 18px;
}

.login-card__security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 18px 0 0;
    color: #8b92a4;
    font-size: 11px;
    font-weight: 650;
}

/* Forms --------------------------------------------------------------- */

.form-stack {
    display: grid;
    gap: 17px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.field {
    display: grid;
    min-width: 0;
    gap: 8px;
}

.field > span,
.difficulty legend {
    color: #313c55;
    font-size: 12px;
    font-style: normal;
    font-weight: 780;
}

.field > span i {
    color: #9aa0ae;
    font-size: 10px;
    font-style: normal;
    font-weight: 650;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dde0e8;
    border-radius: 13px;
    outline: 0;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    transition: border 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field input,
.field select {
    padding: 0 14px;
}

.field select {
    padding-right: 38px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236f7890' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
}

.field textarea {
    min-height: 135px;
    resize: vertical;
    padding: 13px 14px;
    line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #a9aebb;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(103, 88, 232, .72);
    box-shadow: 0 0 0 4px rgba(103, 88, 232, .1);
}

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
    cursor: not-allowed;
    color: #9298a7;
    background: #f4f5f7;
}

.field-hint {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: -3px 0 1px;
    color: #858c9d;
    font-size: 11px;
    line-height: 1.45;
}

.field-hint svg {
    margin-top: 1px;
    color: var(--purple);
}

/* Shell --------------------------------------------------------------- */

.admin-layout {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    display: flex;
    width: 270px;
    flex-direction: column;
    padding: 28px 20px 20px;
    color: #fff;
    background:
        radial-gradient(circle at 0 100%, rgba(103, 88, 232, .2), transparent 32%),
        linear-gradient(180deg, #111b35 0%, #10182f 100%);
    box-shadow: 12px 0 40px rgba(17, 27, 53, .08);
}

.sidebar__brand {
    margin: 0 8px 38px;
}

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

.sidebar__label {
    margin: 0 13px 8px;
    color: rgba(255, 255, 255, .35);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.sidebar__link {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 0 13px;
    border-radius: 13px;
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    font-weight: 690;
    text-decoration: none;
    transition: color 150ms ease, background 150ms ease, transform 150ms ease;
}

.sidebar__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .065);
    transform: translateX(2px);
}

.sidebar__link.is-active {
    color: var(--navy);
    background: var(--lime);
    box-shadow: 0 12px 28px rgba(184, 243, 74, .12);
}

.sidebar__link b {
    min-width: 23px;
    margin-left: auto;
    padding: 3px 6px;
    border-radius: 999px;
    color: inherit;
    background: rgba(17, 27, 53, .11);
    font-size: 9px;
    text-align: center;
}

.sidebar__footer {
    margin-top: auto;
    padding: 16px 8px 4px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

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

.admin-identity > span:last-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.admin-identity strong {
    overflow: hidden;
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-identity small {
    overflow: hidden;
    color: rgba(255, 255, 255, .4);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 15px;
    font-weight: 850;
}

.avatar--admin {
    width: 40px;
    height: 40px;
    color: var(--navy);
    background: var(--lime);
}

.sidebar__logout {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    margin-top: 13px;
    padding: 10px 7px;
    border: 0;
    color: rgba(255, 255, 255, .45);
    background: transparent;
    font-size: 11px;
    font-weight: 700;
}

.sidebar__logout:hover {
    color: #fff;
}

.admin-main {
    min-height: 100vh;
    margin-left: 270px;
}

.topbar {
    display: flex;
    min-height: 92px;
    align-items: center;
    gap: 14px;
    padding: 18px clamp(24px, 4vw, 58px);
    border-bottom: 1px solid #eaebef;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(16px);
}

.topbar__eyebrow {
    margin: 0 0 3px;
    color: #9298a7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.topbar h1 {
    margin: 0;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -.035em;
}

.topbar__site-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    color: var(--purple);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.mobile-menu {
    display: none;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
}

.content-wrap {
    width: min(100%, 1380px);
    margin: 0 auto;
    padding: 30px clamp(24px, 4vw, 58px) 32px;
}

/* Hero and stats ------------------------------------------------------ */

.hero {
    position: relative;
    display: grid;
    min-height: 365px;
    overflow: hidden;
    grid-template-columns: 1.08fr .92fr;
    align-items: center;
    border-radius: 30px;
    color: #fff;
    background:
        radial-gradient(circle at 85% 0, rgba(82, 214, 189, .18), transparent 30%),
        radial-gradient(circle at 25% 115%, rgba(103, 88, 232, .28), transparent 38%),
        linear-gradient(135deg, #111b35 0%, #182643 100%);
    box-shadow: 0 25px 60px rgba(17, 27, 53, .16);
}

.hero__copy {
    position: relative;
    z-index: 2;
    max-width: 670px;
    padding: clamp(34px, 5vw, 62px);
}

.hero h2 {
    margin: 18px 0 17px;
    font-size: clamp(36px, 4.2vw, 58px);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .99;
}

.hero__copy > p {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 15px;
    line-height: 1.68;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 27px;
}

.hero__visual {
    position: relative;
    align-self: stretch;
    min-height: 330px;
}

.hero__visual > svg {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 92%;
    max-width: 360px;
    transform: translate(-50%, -50%);
}

.hero__visual > svg path {
    fill: none;
    stroke: rgba(184, 243, 74, .28);
    stroke-width: 2;
    stroke-dasharray: 5 7;
}

.path-card {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 145px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px;
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 16px 35px rgba(0, 0, 0, .13);
    backdrop-filter: blur(10px);
}

.path-card span {
    display: grid;
    width: 28px;
    height: 28px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 9px;
    color: var(--navy);
    background: var(--lime);
    font-size: 9px;
    font-weight: 900;
}

.path-card strong {
    font-size: 14px;
}

.path-card small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
}

.path-card--one {
    top: 44px;
    left: 5%;
    transform: rotate(-3deg);
}

.path-card--two {
    top: 44%;
    right: 5%;
    transform: rotate(3deg);
}

.path-card--three {
    bottom: 35px;
    left: 19%;
    transform: rotate(-1deg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 17px;
}

.stat-card {
    display: grid;
    min-height: 145px;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 15px;
    padding: 23px;
    border: 1px solid rgba(23, 34, 59, .07);
    border-radius: 21px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.stat-card__icon {
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border-radius: 15px;
}

.stat-card--purple .stat-card__icon {
    color: var(--purple);
    background: var(--purple-soft);
}

.stat-card--mint .stat-card__icon {
    color: #198b78;
    background: #dff8f1;
}

.stat-card--lime .stat-card__icon {
    color: #5f7921;
    background: #efffcf;
}

.stat-card div {
    display: grid;
}

.stat-card strong {
    font-size: 31px;
    font-weight: 900;
    letter-spacing: -.045em;
}

.stat-card div span {
    margin-top: -2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 650;
}

.stat-card a {
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 6px;
    color: #7d8494;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}

/* Sections and panels ------------------------------------------------- */

.section-block {
    margin-top: 76px;
}

.section-block--tinted {
    margin-inline: clamp(-22px, -2vw, -8px);
    padding: clamp(27px, 4vw, 45px);
    border: 1px solid #e5e2fb;
    border-radius: 30px;
    background: linear-gradient(145deg, #f6f4ff 0%, #f9f9f7 65%);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3.1vw, 39px);
    font-weight: 880;
    letter-spacing: -.047em;
}

.section-heading > div > p:last-child {
    max-width: 660px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.section-count,
.ai-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    border-radius: 999px;
    color: var(--purple);
    background: var(--purple-soft);
    font-size: 10px;
    font-weight: 800;
}

.profile-search {
    display: grid;
    grid-template-columns: auto minmax(220px, 360px);
    align-items: center;
    justify-content: end;
    gap: 11px;
    margin: -10px 0 18px;
}

.profile-search label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 780;
}

.profile-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    padding: 11px 13px;
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    outline: none;
}

.profile-search input:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(103, 88, 232, .1);
}

.ai-badge {
    color: #147663;
    background: #ddf8f1;
}

.profile-layout {
    display: grid;
    grid-template-columns: minmax(300px, .78fr) minmax(430px, 1.22fr);
    align-items: start;
    gap: 18px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 23px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.panel--form {
    padding: clamp(22px, 3vw, 29px);
}

.panel__title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 23px;
}

.panel__icon {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
}

.panel__icon--purple {
    color: var(--purple);
    background: var(--purple-soft);
}

.panel__title h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -.025em;
}

.panel__title p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.curriculum-fields {
    display: grid;
    gap: 13px;
    padding: 16px;
    border: 1px solid #dedaf8;
    border-radius: 17px;
    background: linear-gradient(145deg, #faf9ff, #f7fbfa);
}

.curriculum-fields__head {
    display: grid;
    gap: 3px;
}

.curriculum-fields__head strong {
    color: #4438a8;
    font-size: 12px;
    font-weight: 850;
}

.curriculum-fields__head small,
.curriculum-fields__note {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.curriculum-fields .form-row {
    gap: 10px;
}

.profile-list {
    display: grid;
    gap: 11px;
}

.profile-card {
    display: grid;
    min-height: 105px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 18px 19px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(23, 34, 59, .04);
    transition: border 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.profile-card:hover {
    border-color: #d7d3f6;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.profile-card__main {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 13px;
}

.profile-card .avatar {
    width: 50px;
    height: 50px;
    font-size: 14px;
}

.avatar--purple {
    color: #5145bd;
    background: #e2deff;
}

.avatar--mint {
    color: #167361;
    background: #d5f5ed;
}

.avatar--coral {
    color: #a44e37;
    background: #ffe1d8;
}

.avatar--blue {
    color: #3068ad;
    background: #deecff;
}

.profile-card__main > div {
    min-width: 0;
}

.profile-card__name {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.profile-card h3 {
    overflow: hidden;
    margin: 0;
    font-size: 15px;
    font-weight: 830;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-card__main p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
    font-weight: 620;
}

.profile-card__curriculum {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.profile-card__curriculum span {
    max-width: 240px;
    overflow: hidden;
    padding: 4px 7px;
    border-radius: 999px;
    color: #5145bd;
    background: var(--purple-soft);
    font-size: 8px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-card__curriculum .is-warning {
    color: #8b6516;
    background: #fff4ce;
}

.profile-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.profile-card__stats span {
    border-radius: 10px;
    background: #f4f6fa;
    padding: 6px 8px;
    color: #667086;
    font-size: 9px;
    font-weight: 720;
}

.profile-card__stats b {
    color: var(--ink);
    font-weight: 900;
}

.profile-card__details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px 13px;
    margin: 10px 0 0;
    padding-top: 9px;
    border-top: 1px solid #eff0f4;
}

.profile-card__details div {
    min-width: 0;
}

.profile-card__details dt,
.profile-card__details dd {
    margin: 0;
}

.profile-card__details dt {
    color: #969caa;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.profile-card__details dd {
    margin-top: 3px;
    color: #596278;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.35;
}

.profile-card[hidden],
.profile-search-empty[hidden] {
    display: none;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #8e95a4;
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-dot::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #b0b4be;
    content: "";
}

.status-dot.is-active {
    color: var(--success);
}

.status-dot.is-active::before {
    background: #37c49e;
    box-shadow: 0 0 0 3px rgba(55, 196, 158, .13);
}

.profile-card__access {
    display: flex;
    align-items: center;
    gap: 7px;
}

.profile-card__access > div {
    display: grid;
    min-width: 96px;
    gap: 4px;
    margin-right: 4px;
}

.profile-card__access small {
    color: #969caa;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-card__access code {
    color: var(--ink);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .09em;
}

.icon-button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid #e1e3ea;
    border-radius: 11px;
    color: #697188;
    background: #f9f9fb;
    text-decoration: none;
    transition: color 150ms ease, border 150ms ease, background 150ms ease;
}

.icon-button:hover {
    border-color: #cec9f6;
    color: var(--purple);
    background: var(--purple-soft);
}

.empty-state {
    display: grid;
    min-height: 230px;
    place-items: center;
    align-content: center;
    padding: 32px;
    border: 1px dashed #d8dbe3;
    border-radius: 21px;
    background: rgba(255, 255, 255, .6);
    text-align: center;
}

.empty-state > span {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    place-items: center;
    border-radius: 19px;
    color: var(--purple);
    background: var(--purple-soft);
}

.empty-state h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
}

.empty-state p {
    max-width: 380px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.empty-state .button {
    margin-top: 17px;
}

.curriculum-editor {
    display: grid;
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
    gap: 23px;
    margin-top: 18px;
    padding: clamp(20px, 3vw, 28px);
    border: 1px solid #dedaf8;
    border-radius: 23px;
    background: linear-gradient(135deg, #fff 0%, #faf9ff 100%);
    box-shadow: var(--shadow-sm);
}

.credentials-editor {
    border-color: #cfe9e3;
    background: linear-gradient(135deg, #fff 0%, #f4fbf9 100%);
}

.credentials-editor .curriculum-editor__footer .button {
    margin-left: auto;
}

.curriculum-editor__intro {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.curriculum-editor__intro > div {
    min-width: 0;
}

.curriculum-editor__intro .eyebrow {
    margin-bottom: 5px;
}

.curriculum-editor__intro h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -.025em;
}

.curriculum-editor__intro > div > p:last-child {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.curriculum-editor__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.curriculum-editor__footer {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 12px;
    padding-top: 17px;
    border-top: 1px solid #ebe9f7;
}

.curriculum-editor__footer p {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.curriculum-editor__footer a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    color: var(--purple);
    font-size: 10px;
    font-weight: 780;
    text-decoration: none;
}

.curriculum-editor__footer a:hover {
    text-decoration: underline;
}

/* Generator ----------------------------------------------------------- */

.generator-card {
    overflow: hidden;
    border: 1px solid #e1dff1;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.generator-card__step {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 25px 27px 0;
}

.generator-card__step > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--purple);
    font-size: 10px;
    font-weight: 900;
}

.generator-card__step > div {
    display: grid;
    gap: 2px;
}

.generator-card__step strong {
    font-size: 14px;
    font-weight: 830;
}

.generator-card__step small {
    color: var(--muted);
    font-size: 10px;
}

.generator-card__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 22px 27px 27px 76px;
}

.generator-card__fields--bottom {
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr);
}

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

.curriculum-context {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid #ccebdc;
    border-radius: 15px;
    color: #195f52;
    background: #f0fbf7;
}

.curriculum-context[hidden] {
    display: none;
}

.curriculum-context.is-warning {
    border-color: #eedba1;
    color: #795a13;
    background: #fff9e7;
}

.curriculum-context__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(82, 214, 189, .17);
}

.curriculum-context.is-warning .curriculum-context__icon {
    background: rgba(234, 188, 67, .17);
}

.curriculum-context strong {
    display: block;
    font-size: 11px;
    font-weight: 850;
}

.curriculum-context p {
    margin: 3px 0 0;
    color: #4c766e;
    font-size: 9px;
    line-height: 1.45;
}

.curriculum-context.is-warning p {
    color: #8d702f;
}

.curriculum-context a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
}

.curriculum-context a:hover {
    text-decoration: underline;
}

.generator-divider {
    height: 1px;
    margin: 0 27px;
    background: #ececf1;
}

.difficulty {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.difficulty legend {
    margin-bottom: 9px;
}

.difficulty label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

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

.difficulty label > span {
    display: grid;
    min-height: 67px;
    align-content: center;
    gap: 3px;
    padding: 10px 12px;
    border: 1px solid #e0e2e9;
    border-radius: 13px;
    background: #fafafb;
    transition: border 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.difficulty b {
    font-size: 12px;
}

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

.difficulty input:checked + span {
    border-color: var(--purple);
    background: var(--purple-soft);
    box-shadow: 0 0 0 3px rgba(103, 88, 232, .08);
}

.difficulty input:focus-visible + span {
    outline: 3px solid rgba(103, 88, 232, .18);
    outline-offset: 2px;
}

.generator-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 27px;
    border-top: 1px solid #ececf1;
    background: #fbfbfc;
}

.generator-card__footer p {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #878e9d;
    font-size: 10px;
    font-weight: 650;
}

.generator-card__footer p svg {
    color: var(--success);
}

.button__loading {
    display: none;
    align-items: center;
    gap: 8px;
}

.button__default {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.button--generate.is-loading .button__default {
    display: none;
}

.button--generate.is-loading .button__loading {
    display: inline-flex;
}

.button--generate:disabled {
    cursor: wait;
    opacity: .82;
}

.spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* History ------------------------------------------------------------- */

.history-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.history-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid #eceef2;
}

.history-item:last-child {
    border-bottom: 0;
}

.history-item__subject {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    color: #5145bd;
    background: var(--purple-soft);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
}

.history-item__main {
    min-width: 0;
}

.history-item__title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.history-item h3 {
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    font-weight: 830;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item__main > p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.history-item__curriculum {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.history-item__curriculum span,
.history-item__curriculum a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 230px;
    overflow: hidden;
    padding: 3px 6px;
    border-radius: 999px;
    color: #5e54b7;
    background: #f2f0ff;
    font-size: 8px;
    font-weight: 720;
    line-height: 1.2;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-item__curriculum a:hover {
    text-decoration: underline;
}

.history-item__error {
    display: block;
    max-width: 750px;
    margin-top: 6px;
    color: var(--danger);
    font-size: 9px;
    line-height: 1.4;
}

.assignment-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.assignment-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.assignment-status--ready {
    color: var(--success);
    background: var(--success-soft);
}

.assignment-status--generating {
    color: #7c671a;
    background: #fff7d7;
}

.assignment-status--failed {
    color: var(--danger);
    background: var(--danger-soft);
}

.history-item__meta {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.history-item__meta span {
    color: #5c6477;
    font-size: 10px;
    font-weight: 750;
}

.history-item__meta time {
    color: #9ba0ad;
    font-size: 9px;
}

/* Account settings ---------------------------------------------------- */

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr);
    align-items: start;
    gap: 18px;
}

.settings-card {
    padding: clamp(22px, 3vw, 31px);
    border: 1px solid var(--line);
    border-radius: 23px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.settings-card__head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
}

.settings-card__head h3,
.settings-security h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
    letter-spacing: -.03em;
}

.settings-card__head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
}

.settings-fields {
    gap: 16px;
}

.settings-password-block {
    margin-top: 24px;
    padding: 21px;
    border: 1px solid #e6e2fb;
    border-radius: 18px;
    background: #f8f7ff;
}

.settings-password-block__title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 17px;
    color: var(--purple);
}

.settings-password-block__title > div {
    display: grid;
    gap: 3px;
}

.settings-password-block__title strong {
    color: var(--ink);
    font-size: 13px;
}

.settings-password-block__title small {
    color: var(--muted);
    font-size: 10px;
}

.settings-confirmation {
    max-width: 520px;
    margin-top: 24px;
}

.settings-confirmation small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.settings-submit {
    margin-top: 21px;
}

.settings-security {
    position: relative;
    overflow: hidden;
    padding: 27px;
    border-radius: 23px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0%, rgba(184, 243, 74, .16), transparent 42%),
        linear-gradient(145deg, var(--navy), var(--navy-2));
    box-shadow: var(--shadow-md);
}

.settings-security__icon {
    display: grid;
    width: 51px;
    height: 51px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 16px;
    color: var(--navy);
    background: var(--lime);
}

.settings-security .eyebrow {
    color: var(--lime);
}

.settings-security h3 {
    max-width: 280px;
    font-size: 25px;
    line-height: 1.08;
}

.settings-security ul {
    display: grid;
    gap: 12px;
    margin: 23px 0 0;
    padding: 0;
    list-style: none;
}

.settings-security li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: rgba(255, 255, 255, .68);
    font-size: 11px;
    line-height: 1.5;
}

.settings-security li svg {
    margin-top: 1px;
    color: var(--lime);
}

.settings-security__note {
    margin: 25px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .11);
    color: rgba(255, 255, 255, .48);
    font-size: 10px;
    line-height: 1.6;
}

.settings-security__note strong {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    text-overflow: ellipsis;
    vertical-align: bottom;
}

.empty-state--wide {
    border: 0;
    border-radius: 0;
}

.admin-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 68px;
    padding-top: 22px;
    border-top: 1px solid #e0e2e8;
    color: #969caa;
    font-size: 9px;
    font-weight: 650;
}

.copy-toast {
    position: fixed;
    z-index: 100;
    right: 24px;
    bottom: 24px;
    padding: 12px 16px;
    border-radius: 12px;
    color: #fff;
    background: var(--navy);
    box-shadow: 0 16px 35px rgba(17, 27, 53, .25);
    font-size: 12px;
    font-weight: 750;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 170ms ease, transform 170ms ease;
}

.copy-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive ---------------------------------------------------------- */

@media (max-width: 1120px) {
    .hero {
        grid-template-columns: 1fr .72fr;
    }

    .path-card {
        width: 125px;
    }

    .profile-layout {
        grid-template-columns: minmax(290px, .9fr) minmax(360px, 1.1fr);
    }

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

    .profile-card__access {
        padding-top: 11px;
        border-top: 1px solid #eff0f3;
    }

    .profile-card__access > div {
        margin-right: auto;
    }
}

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

    .login-story {
        min-height: auto;
        padding: 28px 28px 45px;
    }

    .login-story__content {
        padding: 70px 0 20px;
    }

    .login-story h1 {
        max-width: 700px;
        font-size: clamp(43px, 9vw, 70px);
    }

    .login-panel {
        min-height: auto;
        padding: 42px 20px 60px;
    }

    .sidebar {
        z-index: 80;
        width: 270px;
        transform: translateX(-105%);
        transition: transform 190ms ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
        box-shadow: 20px 0 70px rgba(17, 27, 53, .3);
    }

    .admin-main {
        margin-left: 0;
    }

    .mobile-menu {
        display: grid;
    }

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

    .hero__visual {
        display: none;
    }

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

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

    .profile-card__access {
        padding-top: 0;
        border-top: 0;
    }

    .curriculum-editor {
        grid-template-columns: 1fr;
    }

    .curriculum-editor__footer {
        grid-column: 1;
    }

    .settings-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .topbar {
        min-height: 76px;
        padding: 14px 17px;
    }

    .topbar h1 {
        font-size: 18px;
    }

    .topbar__site-link {
        width: 40px;
        height: 40px;
        justify-content: center;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        font-size: 0;
    }

    .content-wrap {
        padding: 18px 14px 26px;
    }

    .hero {
        min-height: 0;
        border-radius: 23px;
    }

    .hero__copy {
        padding: 29px 23px 31px;
    }

    .hero h2 {
        font-size: 37px;
    }

    .hero__copy > p {
        font-size: 13px;
    }

    .hero__actions {
        display: grid;
    }

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

    .stat-card {
        min-height: 105px;
        grid-template-columns: auto 1fr auto;
        padding: 18px;
    }

    .stat-card a {
        grid-column: auto;
        font-size: 0;
    }

    .stat-card a svg {
        width: 18px;
        height: 18px;
    }

    .section-block {
        margin-top: 54px;
    }

    .section-block--tinted {
        margin-inline: 0;
        padding: 22px 14px;
        border-radius: 24px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .profile-search {
        grid-template-columns: 1fr;
        justify-content: stretch;
        margin-top: 0;
    }

    .form-row,
    .generator-card__fields,
    .generator-card__fields--bottom,
    .curriculum-editor__fields,
    .settings-fields {
        grid-template-columns: 1fr;
    }

    .curriculum-editor {
        padding: 19px 16px;
    }

    .curriculum-editor__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .curriculum-editor__footer a {
        margin-left: 0;
    }

    .curriculum-editor__footer .button {
        width: 100%;
    }

    .settings-password-block {
        padding: 18px 14px;
    }

    .settings-submit {
        width: 100%;
    }

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

    .profile-card__access {
        padding-top: 11px;
        border-top: 1px solid #eff0f3;
    }

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

    .generator-card__step {
        padding: 21px 18px 0;
    }

    .generator-card__fields {
        padding: 19px 18px 22px;
    }

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

    .curriculum-context a {
        grid-column: 2;
        justify-self: start;
    }

    .generator-divider {
        margin: 0 18px;
    }

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

    .difficulty label > span {
        min-height: 54px;
    }

    .generator-card__footer {
        align-items: stretch;
        flex-direction: column;
        padding: 17px 18px;
    }

    .generator-card__footer .button {
        width: 100%;
    }

    .history-item {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        padding: 15px;
    }

    .history-item__title {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .history-item h3 {
        max-width: 100%;
        white-space: normal;
    }

    .history-item__meta {
        grid-column: 2;
        justify-items: start;
    }

    .admin-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 440px) {
    .login-story {
        padding-inline: 20px;
    }

    .login-story h1 {
        font-size: 42px;
    }

    .login-benefits {
        display: grid;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .profile-card__access {
        flex-wrap: wrap;
    }

    .profile-card__access > div {
        width: 100%;
        margin-bottom: 4px;
    }
}

/* Final visual polish for the admin workspace */
.cost-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px 20px;
    align-items: center;
    padding: 24px 28px;
    border: 1px solid #e7e4ff;
    border-radius: 22px;
    background: linear-gradient(135deg, #faf9ff 0%, #f1efff 100%);
    box-shadow: 0 12px 30px rgba(53, 42, 130, .08);
}
.cost-summary__icon { width: 48px; height: 48px; border-radius: 14px; background: #6558e8; color: #fff; display: grid; place-items: center; }
.cost-summary h3 { margin: 0; font-size: 1.1rem; }
.cost-summary small { color: #6c6b83; }
.cost-summary dl { margin: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.cost-summary dl div { min-width: 130px; }
.cost-summary dt { color: #6c6b83; font-size: .82rem; }
.cost-summary dd { margin: 3px 0 0; font-size: 1.35rem; font-weight: 800; color: #171a38; }

.request-toolbar { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 1px solid #ebeaf4; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(26, 32, 68, .05); }
.request-toolbar input, .request-toolbar select { min-height: 44px; border: 1px solid #d9d8e8; border-radius: 10px; padding: 0 13px; background: #fff; }
.request-list { display: grid; gap: 16px; margin-top: 18px; }
.request-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 24px; border: 1px solid #e7e6f0; border-radius: 20px; background: #fff; box-shadow: 0 10px 26px rgba(27, 31, 67, .06); }
.request-card:hover { border-color: #bdb7ff; box-shadow: 0 16px 34px rgba(81, 69, 198, .12); }
.request-card__subject { display: inline-flex; align-items: center; gap: 8px; color: #6657df; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.request-card__title { margin: 8px 0 14px; }
.request-card__title h3 { margin: 0; font-size: 1.25rem; }
.request-card__meta { display: flex; gap: 20px; flex-wrap: wrap; color: #65657a; }
.request-card__side { min-width: 160px; display: flex; align-items: flex-start; justify-content: flex-end; }
.request-card__side .button, .request-card__side button { border-radius: 10px; }

.workflow-strip { padding: 26px 28px; border: 1px solid #e8e5ff; border-radius: 22px; background: linear-gradient(120deg, #f8f7ff, #fff); box-shadow: 0 12px 28px rgba(50, 43, 132, .06); }
.workflow-strip__intro h2 { margin: 0 0 6px; }
.workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.workflow-steps li { position: relative; min-height: 92px; padding: 18px 14px 14px 48px; border: 1px solid #e6e4f5; border-radius: 14px; background: #fff; }
.workflow-steps b { position: absolute; left: 14px; top: 16px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #6658e8; color: #fff; }
.workflow-steps strong { display: block; color: #1b1e3b; }
.workflow-steps small { color: #71718a; }

.invite-card { padding: 22px; border: 1px solid #e5e3f1; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(26, 32, 68, .05); }
.invite-card__head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.invite-card__id { font-weight: 800; color: #1b1e3b; }
.invite-card__meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 16px; color: #68687d; }
.invite-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

@media (max-width: 760px) {
    .request-toolbar { flex-direction: column; align-items: stretch; }
    .request-card { grid-template-columns: 1fr; }
    .request-card__side { justify-content: flex-start; }
    .workflow-steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .cost-summary { grid-template-columns: 1fr; padding: 20px; }
    .workflow-steps { grid-template-columns: 1fr; }
}

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

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Self-service admin -------------------------------------------------- */

.button--secondary {
    border: 1px solid #d9d4fb;
    color: var(--purple);
    background: #fff;
}

.button--secondary:hover {
    border-color: #c6bff5;
    background: #f8f7ff;
}

.button--quiet {
    min-height: 35px;
    padding-inline: 12px;
    border: 1px solid #ead5d2;
    color: #a34747;
    background: #fff8f7;
    font-size: 11px;
}

.schema-notice {
    align-items: flex-start;
}

.hero--selfservice .hero__visual {
    display: grid;
    align-content: center;
    justify-items: center;
    isolation: isolate;
}

.hero--selfservice .hero__visual::before {
    position: absolute;
    z-index: -1;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(184, 243, 74, .22);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 243, 74, .13), transparent 68%);
    content: "";
}

.hero-visual__icon {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 29px;
    color: var(--navy);
    background: var(--lime);
    box-shadow: 0 20px 60px rgba(184, 243, 74, .18);
    transform: rotate(-4deg);
}

.hero--selfservice .hero__visual strong {
    margin-top: 22px;
    font-size: 16px;
    letter-spacing: -.02em;
}

.hero--selfservice .hero__visual small {
    margin-top: 6px;
    color: rgba(255, 255, 255, .53);
    font-size: 11px;
}

.hero-orbit {
    position: absolute;
    z-index: -1;
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: 50%;
}

.hero-orbit--one {
    width: 300px;
    height: 190px;
    transform: rotate(24deg);
}

.hero-orbit--two {
    width: 200px;
    height: 310px;
    transform: rotate(-26deg);
}

.stats-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card--coral .stat-card__icon {
    color: #aa4f37;
    background: #ffe4dc;
}

.api-cost-compact {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
    padding: 11px 14px;
    border: 1px solid #dfdcf4;
    border-radius: 15px;
    color: #626a7d;
    background: linear-gradient(135deg, #fff, #f7f5ff);
    box-shadow: 0 7px 20px rgba(23, 34, 59, .04);
    font-size: 9px;
    font-weight: 700;
}

.api-cost-compact__icon {
    display: grid;
    width: 33px;
    height: 33px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    color: #5145bd;
    background: var(--purple-soft);
}

.api-cost-compact > strong {
    color: var(--ink);
    font-size: 11px;
}

.api-cost-compact > span:not(.api-cost-compact__icon) {
    padding-left: 11px;
    border-left: 1px solid #e2e1eb;
}

.api-cost-compact b {
    margin-left: 4px;
    color: #4e42b3;
    font-size: 11px;
}

.api-cost-compact a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    color: var(--purple);
    font-weight: 800;
    text-decoration: none;
}

.workflow-strip {
    display: grid;
    grid-template-columns: minmax(170px, .55fr) minmax(0, 1.45fr);
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 23px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.workflow-strip__intro h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 870;
    letter-spacing: -.035em;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.workflow-steps li {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border-radius: 15px;
    background: #f7f7fa;
}

.workflow-steps li:not(:last-child)::after {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: -7px;
    width: 12px;
    height: 12px;
    border-top: 2px solid #bbb5ee;
    border-right: 2px solid #bbb5ee;
    content: "";
    transform: translateY(-50%) rotate(45deg);
}

.workflow-steps b {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    color: #5145bd;
    background: #e9e6ff;
    font-size: 10px;
}

.workflow-steps span {
    display: grid;
    min-width: 0;
}

.workflow-steps strong {
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workflow-steps small {
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid #aee0d1;
    border-radius: 20px;
    background: linear-gradient(135deg, #effbf7, #fff);
    box-shadow: var(--shadow-sm);
}

.invite-result__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    color: #16735e;
    background: #d7f4eb;
}

.invite-result > div {
    min-width: 0;
}

.invite-result h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
}

.invite-result p:not(.eyebrow) {
    margin: 4px 0 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.invite-result code {
    display: block;
    width: 100%;
    max-width: 780px;
    overflow: hidden;
    padding: 9px 11px;
    border-radius: 9px;
    color: #295d51;
    background: rgba(255, 255, 255, .84);
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invite-result__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.invites-layout {
    display: grid;
    grid-template-columns: minmax(280px, .72fr) minmax(440px, 1.28fr);
    align-items: start;
    gap: 18px;
}

.invite-form,
.invite-list-wrap {
    padding: 24px;
    border: 1px solid #e0ddef;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.panel__head,
.settings-card__head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 21px;
}

.panel__head h3,
.settings-card__head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -.025em;
}

.panel__head p,
.settings-card__head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
}

.invite-duration {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.invite-duration legend {
    margin-bottom: 9px;
    color: #313c55;
    font-size: 11px;
    font-weight: 800;
}

.invite-duration label {
    position: relative;
    cursor: pointer;
}

.invite-duration input {
    position: absolute;
    opacity: 0;
}

.invite-duration label > span {
    display: grid;
    min-height: 66px;
    align-content: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 13px;
    text-align: center;
    transition: border 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.invite-duration strong {
    font-size: 12px;
}

.invite-duration small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 8px;
}

.invite-duration input:checked + span {
    border-color: var(--purple);
    color: #4e42b3;
    background: var(--purple-soft);
    box-shadow: 0 0 0 3px rgba(103, 88, 232, .09);
}

.invite-duration input:focus-visible + span {
    outline: 3px solid rgba(103, 88, 232, .22);
    outline-offset: 2px;
}

.invite-form__hint {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 17px 0;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.5;
}

.subsection-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
}

.subsection-heading h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 850;
}

.subsection-heading p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.subsection-heading > span {
    padding: 6px 9px;
    border-radius: 999px;
    color: #6d648f;
    background: #f2effc;
    font-size: 8px;
    font-weight: 800;
}

.invite-list {
    display: grid;
    max-height: 560px;
    gap: 9px;
    overflow: auto;
    padding-right: 4px;
}

.invite-card {
    padding: 15px;
    border: 1px solid #e8e8ee;
    border-radius: 16px;
    background: #fbfbfc;
}

.invite-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.invite-card__id {
    font-size: 12px;
}

.invite-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.invite-status i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.invite-status--active {
    color: #17715d;
    background: var(--success-soft);
}

.invite-status--used {
    color: #4f43b7;
    background: var(--purple-soft);
}

.invite-status--expired {
    color: #73798a;
    background: #eceef2;
}

.invite-status--revoked {
    color: var(--danger);
    background: var(--danger-soft);
}

.invite-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 18px;
    margin: 12px 0 0;
}

.invite-card__meta div {
    display: grid;
    gap: 2px;
}

.invite-card__meta dt {
    color: #969caa;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.invite-card__meta dd {
    margin: 0;
    color: #596278;
    font-size: 9px;
    font-weight: 700;
}

.invite-card__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #ececf0;
}

.empty-state--compact {
    min-height: 250px;
}

.learner-search {
    display: flex;
    justify-content: flex-end;
}

.learner-search label {
    position: relative;
    display: block;
    width: min(100%, 430px);
}

.learner-search label > svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
}

.learner-search input {
    padding-left: 41px;
}

.profile-list--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 14px;
}

.profile-list--grid > .empty-state,
.profile-list--grid > .profile-search-empty {
    grid-column: 1 / -1;
}

.profile-card--overview {
    display: flex;
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
    padding: 21px;
}

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

.profile-card--overview .avatar {
    width: 49px;
    height: 49px;
    color: #fff;
    background: var(--avatar-color, var(--purple));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04);
}

.profile-card__identity h3 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-card__identity p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 10px;
}

.profile-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #878d9b;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
}

.profile-state::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #aeb2bc;
    content: "";
}

.profile-state.is-active {
    color: var(--success);
}

.profile-state.is-active::before {
    background: #36bd98;
    box-shadow: 0 0 0 3px rgba(54, 189, 152, .12);
}

.profile-card__status {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.profile-card__status form {
    margin: 0;
}

.profile-active-toggle {
    padding: 0;
    border: 0;
    color: #7569cc;
    background: transparent;
    font-size: 8px;
    font-weight: 760;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.profile-active-toggle:hover {
    color: #493cae;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #5145bd;
    background: var(--purple-soft);
    font-size: 9px;
    font-weight: 780;
}

.profile-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
    padding: 14px;
    border-radius: 14px;
    background: #f7f8fa;
}

.profile-facts div {
    min-width: 0;
}

.profile-facts dt {
    color: #949aa8;
    font-size: 7px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.profile-facts dd {
    overflow: hidden;
    margin: 3px 0 0;
    color: #4f596f;
    font-size: 9px;
    font-weight: 720;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.profile-activity {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.profile-activity span {
    display: grid;
    justify-items: center;
    padding: 9px 6px;
    border: 1px solid #ececf1;
    border-radius: 12px;
    color: var(--muted);
    font-size: 8px;
}

.profile-activity strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 880;
}

.profile-card__dates {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 7px 15px;
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid #eceef2;
    color: #8f95a4;
    font-size: 8px;
    font-weight: 680;
}

/* Learner overview refresh ------------------------------------------- */
.profile-list--grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.profile-card--overview {
    position: relative;
    overflow: hidden;
    gap: 16px;
    padding: 22px;
    border: 1px solid #e2e5ee;
    border-radius: 24px;
    background: linear-gradient(145deg, #fff 0%, #fbfcff 100%);
    box-shadow: 0 12px 32px rgba(25, 38, 70, .07);
}

.profile-card--overview::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--purple), #52d6bd 55%, var(--lime));
    content: "";
}

.profile-card--overview:hover {
    border-color: #c9c5f3;
    box-shadow: 0 20px 42px rgba(25, 38, 70, .11);
    transform: translateY(-3px);
}

.profile-card__identity {
    gap: 13px;
    padding-top: 2px;
}

.profile-card--overview .avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 17px;
    box-shadow: 0 8px 18px rgba(25, 38, 70, .12);
}

.profile-card__identity h3 {
    font-size: 18px;
    letter-spacing: -.035em;
}

.profile-card__identity p {
    margin-top: 5px;
    color: #7b8498;
    font-size: 11px;
    font-weight: 700;
}

.profile-card__status {
    gap: 7px;
}

.profile-active-toggle {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 0 9px;
    border: 1px solid #e2e4ec;
    border-radius: 9px;
    color: #686f82;
    background: #fafbfc;
    font-size: 10px;
    text-decoration: none;
}

.profile-active-toggle:hover {
    color: var(--purple);
    border-color: #cbc7f1;
    background: var(--purple-soft);
}

.profile-card__role {
    margin-top: -4px;
}

.role-badge {
    padding: 7px 10px;
    color: #5145bd;
    background: #eeebff;
    font-size: 10px;
}

.profile-facts {
    gap: 12px 16px;
    padding: 16px;
    border: 1px solid #edf0f5;
    border-radius: 16px;
    background: #f8f9fc;
}

.profile-facts dt {
    color: #9aa1b0;
    font-size: 8px;
    letter-spacing: .08em;
}

.profile-facts dd {
    margin-top: 4px;
    color: #34405a;
    font-size: 11px;
    font-weight: 750;
}

.profile-activity {
    gap: 9px;
}

.profile-activity span {
    padding: 10px 7px;
    border: 1px solid #e8ebf2;
    border-radius: 14px;
    background: #fff;
    font-size: 9px;
    font-weight: 700;
}

.profile-activity strong {
    margin-bottom: 2px;
    color: var(--purple);
    font-size: 18px;
}

.profile-card__dates {
    color: #8c94a5;
    font-size: 9px;
}

.profile-danger {
    border-color: #f1d7d3;
    background: #fffafa;
}

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

.profile-danger {
    border: 1px solid #f0d4d0;
    border-radius: 13px;
    background: #fffafa;
}

.profile-danger summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    color: #a14747;
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
    list-style: none;
}

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

.profile-danger summary span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile-danger[open] summary > svg {
    transform: rotate(90deg);
}

.profile-danger__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 13px;
    border-top: 1px solid #f0d4d0;
}

.profile-danger__form > p {
    grid-column: 1 / -1;
    margin: 0;
    color: #8d4a4a;
    font-size: 9px;
    line-height: 1.55;
}

.profile-danger__form .field > span {
    color: #764747;
    font-size: 9px;
    line-height: 1.4;
}

.profile-danger__form .field input {
    min-height: 43px;
    border-color: #ead0cd;
    font-size: 12px;
}

.button--danger {
    grid-column: 1 / -1;
    color: #fff;
    background: #b94545;
    box-shadow: 0 10px 22px rgba(185, 69, 69, .18);
}

.button--danger:hover {
    background: #a43838;
}

.profile-active-toggle:focus-visible,
.support-panel summary:focus-visible,
.profile-danger summary:focus-visible {
    outline: 3px solid rgba(103, 88, 232, .24);
    outline-offset: 3px;
}

.profile-search-empty,
.request-search-empty {
    min-height: 230px;
    place-items: center;
    align-content: center;
    padding: 30px;
    border: 1px dashed #d8dbe3;
    border-radius: 20px;
    text-align: center;
}

.profile-search-empty:not([hidden]),
.request-search-empty:not([hidden]) {
    display: grid;
}

.profile-search-empty > span,
.request-search-empty > span {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    place-items: center;
    border-radius: 16px;
    color: var(--purple);
    background: var(--purple-soft);
}

.profile-search-empty h3,
.request-search-empty h3 {
    margin: 0;
    font-size: 16px;
}

.profile-search-empty p,
.request-search-empty p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.support-panel {
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.support-panel summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 16px 19px;
    color: #4f43b8;
    cursor: pointer;
    list-style: none;
}

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

.support-panel summary > span {
    display: grid;
}

.support-panel summary strong {
    color: var(--ink);
    font-size: 12px;
}

.support-panel summary small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.support-panel[open] summary > svg:last-child {
    transform: rotate(90deg);
}

.support-panel__form {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr auto;
    align-items: end;
    gap: 10px;
    padding: 17px 19px 19px;
    border-top: 1px solid var(--line);
}

.support-panel__form .field > span {
    font-size: 10px;
}

.cost-summary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 17px;
    padding: 16px 19px;
    border: 1px solid #d9d4fa;
    border-radius: 19px;
    background: linear-gradient(135deg, #fff, #f4f1ff);
}

.cost-summary__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    color: #5548bd;
    background: #e8e4ff;
}

.cost-summary h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 850;
}

.cost-summary small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.cost-summary dl {
    display: flex;
    gap: 9px;
    margin: 0;
}

.cost-summary dl div {
    min-width: 115px;
    padding: 10px 13px;
    border: 1px solid #e4e1f4;
    border-radius: 13px;
    background: rgba(255, 255, 255, .84);
}

.cost-summary dt {
    color: var(--muted);
    font-size: 8px;
    font-weight: 760;
}

.cost-summary dd {
    margin: 3px 0 0;
    color: #4437a7;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: -.035em;
}

.request-toolbar {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(190px, auto);
    gap: 10px;
    margin-bottom: 13px;
}

.request-search {
    position: relative;
    display: block;
}

.request-search > svg {
    position: absolute;
    top: 50%;
    left: 14px;
    color: var(--muted);
    transform: translateY(-50%);
}

.request-search input,
.request-status-filter select {
    width: 100%;
    min-height: 47px;
    border: 1px solid #dedde7;
    border-radius: 13px;
    outline: 0;
    color: var(--ink);
    background-color: #fff;
    font-size: 12px;
}

.request-search input {
    padding: 0 14px 0 43px;
}

.request-status-filter {
    display: grid;
    grid-template-columns: auto minmax(135px, 1fr);
    align-items: center;
    gap: 9px;
    padding-left: 13px;
    border: 1px solid #dedde7;
    border-radius: 13px;
    color: var(--muted);
    background: #fff;
    font-size: 9px;
    font-weight: 760;
}

.request-status-filter select {
    min-height: 45px;
    padding: 0 35px 0 8px;
    border: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%236f7890' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
}

.request-search input:focus,
.request-status-filter:focus-within {
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(103, 88, 232, .1);
}

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

.request-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 17px;
    padding: 16px;
    border: 1px solid #e4e3eb;
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(23, 34, 59, .04);
}

.request-card[hidden],
.request-search-empty[hidden] {
    display: none;
}

.request-card__subject {
    display: grid;
    align-content: center;
    justify-items: center;
    padding: 10px 7px;
    border-radius: 14px;
    color: #5145bd;
    background: var(--purple-soft);
    text-align: center;
}

.request-card__subject span {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.request-card__subject small {
    max-width: 60px;
    overflow: hidden;
    margin-top: 4px;
    font-size: 8px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-card__main {
    min-width: 0;
}

.request-card__title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.request-card__title p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.request-card__title h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.assignment-status--requested {
    color: #5145bd;
    background: var(--purple-soft);
}

.assignment-status--unknown {
    color: #73798a;
    background: #eceef2;
}

.request-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 11px 0 0;
}

.request-card__meta div {
    display: grid;
    gap: 2px;
}

.request-card__meta dt {
    color: #9a9fac;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.request-card__meta dd {
    margin: 0;
    color: #5d6577;
    font-size: 9px;
    font-weight: 700;
}

.request-card__curriculum {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 11px;
    padding: 9px 11px;
    border-radius: 11px;
    color: #5145bd;
    background: #f4f2ff;
}

.request-card__curriculum > span {
    display: grid;
    min-width: 0;
    color: #626a7d;
    font-size: 9px;
}

.request-card__curriculum strong {
    margin-bottom: 2px;
    color: #4438a8;
    font-size: 7px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.request-card__curriculum a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
    margin-left: auto;
    color: #5145bd;
    font-size: 8px;
    font-weight: 800;
    text-decoration: none;
}

.request-card__error,
.request-card__ready {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 10px 0 0;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 9px;
    line-height: 1.45;
}

.request-card__error {
    color: #9c3d3d;
    background: var(--danger-soft);
}

.request-card__ready {
    color: #166f5c;
    background: var(--success-soft);
}

.request-card__side {
    display: flex;
    min-width: 112px;
    align-items: flex-end;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.request-cost {
    display: grid;
    min-width: 112px;
    justify-items: end;
    padding: 10px;
    border: 1px solid #e0dcf7;
    border-radius: 12px;
    background: #faf9ff;
}

.request-cost span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.request-cost strong {
    margin-top: 2px;
    color: #4e42b3;
    font-size: 17px;
    font-weight: 900;
}

.request-cost small {
    margin-top: 3px;
    color: #8c91a0;
    font-size: 7px;
}

.request-card__id {
    color: #a0a5b1;
    font-size: 8px;
    font-weight: 750;
}

@media (max-width: 1180px) {
    .stats-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-strip {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .support-panel__form .button {
        width: fit-content;
    }
}

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

    .hero--selfservice .hero__visual {
        display: none;
    }

    .invites-layout {
        grid-template-columns: 1fr;
    }

    .invite-list {
        max-height: none;
    }

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

    .cost-summary {
        grid-template-columns: auto 1fr;
    }

    .cost-summary dl {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .workflow-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .workflow-steps li:nth-child(2)::after {
        display: none;
    }

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

    .invite-result__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .request-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
    }

    .request-card__side {
        grid-column: 2;
        min-width: 0;
        align-items: center;
        flex-direction: row;
    }

    .request-cost {
        min-width: 0;
        justify-items: start;
    }
}

@media (max-width: 680px) {
    .stats-grid--four {
        grid-template-columns: 1fr;
    }

    .api-cost-compact {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .api-cost-compact > span:not(.api-cost-compact__icon) {
        padding-left: 0;
        border-left: 0;
    }

    .api-cost-compact a {
        width: 100%;
        margin-left: 44px;
    }

    .workflow-strip {
        padding: 21px 18px;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .workflow-steps li::after {
        display: none;
    }

    .invite-result {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .invite-result__actions {
        grid-column: 1;
        width: 100%;
    }

    .invite-result__actions .button {
        flex: 1 1 auto;
    }

    .invite-form,
    .invite-list-wrap {
        padding: 18px 15px;
    }

    .invite-duration {
        grid-template-columns: 1fr;
    }

    .invite-duration label > span {
        min-height: 54px;
    }

    .profile-card--overview {
        padding: 17px;
    }

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

    .profile-card__status {
        grid-column: 2;
        justify-items: start;
    }

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

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

    .profile-danger__form > p,
    .profile-danger__form .button {
        grid-column: 1;
    }

    .support-panel__form {
        grid-template-columns: 1fr;
    }

    .support-panel__form .button {
        width: 100%;
    }

    .cost-summary {
        grid-template-columns: auto 1fr;
        padding: 15px;
    }

    .cost-summary dl {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    .cost-summary dl div {
        min-width: 0;
    }

    .request-toolbar {
        grid-template-columns: 1fr;
    }

    .request-card {
        grid-template-columns: 1fr;
    }

    .request-card__subject {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
    }

    .request-card__subject span {
        font-size: 15px;
    }

    .request-card__side {
        grid-column: 1;
    }

    .request-card__title {
        flex-direction: column;
    }

    .request-card__curriculum {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .request-card__curriculum a {
        width: 100%;
        margin-left: 25px;
    }
}

@media (max-width: 440px) {
    .profile-activity {
        grid-template-columns: 1fr;
    }

    .cost-summary {
        grid-template-columns: 1fr;
    }

    .cost-summary dl {
        grid-column: 1;
        grid-template-columns: 1fr;
    }
}
