:root {
    --text: #182230;
    --muted: #667085;
    --soft: #f6f8f7;
    --paper: #ffffff;
    --line: #e1e7ea;
    --line-2: #cfd9de;
    --green: #08765f;
    --mint: #23b99a;
    --green-soft: #edf8f5;
    --blue: #244b73;
    --indigo: #4854a8;
    --cyan: #3aa0b8;
    --gold: #b98a2f;
    --amber: #e6b552;
    --red: #b42318;
    --ok: #067647;
    --shadow: 0 18px 48px rgba(16, 24, 40, .08);
    --shadow-lg: 0 28px 80px rgba(16, 24, 40, .16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(35, 185, 154, .08), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(72, 84, 168, .07), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #fbfdfd 58%, #ffffff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.55;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.55)),
        radial-gradient(circle at 18% 12%, rgba(8, 118, 95, .045), transparent 24%),
        radial-gradient(circle at 82% 18%, rgba(36, 75, 115, .04), transparent 28%);
    pointer-events: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softFloat {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-8px) rotate(1deg);
    }
}

@keyframes pulseLine {
    0% {
        transform: translateX(-24%);
    }
    100% {
        transform: translateX(320%);
    }
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes glowSweep {
    from {
        transform: translateX(-130%) skewX(-18deg);
    }
    to {
        transform: translateX(260%) skewX(-18deg);
    }
}

@keyframes premiumEnter {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes haloPulse {
    0%, 100% {
        opacity: .45;
        transform: scale(1);
    }
    50% {
        opacity: .72;
        transform: scale(1.04);
    }
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

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

svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
    padding: 12px clamp(20px, 4vw, 56px);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    background:
        radial-gradient(circle at 12% 0%, rgba(230, 181, 82, .34), transparent 26%),
        radial-gradient(circle at 88% 0%, rgba(58, 160, 184, .36), transparent 28%),
        linear-gradient(112deg, #17385c 0%, #08765f 54%, #234b73 100%);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 54px rgba(18, 44, 68, .22);
}

.admin-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .18), transparent),
        linear-gradient(135deg, var(--gold), var(--mint), var(--blue));
    font-size: 21px;
    font-weight: 700;
    box-shadow: 0 14px 30px rgba(8, 118, 95, .18);
    transition: transform .2s ease, box-shadow .2s ease;
}

.brand:hover .brand-mark {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(8, 118, 95, .2);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.brand small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.topbar .brand strong {
    color: #fff;
}

.topbar .brand small {
    color: rgba(255, 255, 255, .72);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.nav a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .13);
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
    font-weight: 600;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.nav a svg {
    width: 17px;
    height: 17px;
}

.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .22);
    transform: translateY(-1px);
}

.nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, .18);
    border-color: rgba(255, 255, 255, .32);
}

.admin-identity {
    display: grid;
    gap: 2px;
    min-width: 150px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(237, 248, 245, .86));
    box-shadow: 0 14px 32px rgba(8, 39, 58, .2);
    text-align: right;
}

.admin-identity span {
    color: var(--green);
    font-size: 12px;
    font-weight: 650;
}

.admin-identity strong {
    color: var(--text);
    font-size: 13px;
    font-weight: 650;
}

main {
    width: min(1120px, calc(100% - 36px));
    margin: 0 auto;
}

.premium-home {
    position: relative;
}

.premium-home .hero-copy {
    animation: fadeUp .65s ease both;
}

.home-motif {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(8, 118, 95, .12);
    border-radius: 8px;
    background: rgba(255, 255, 255, .38);
    animation: softFloat 9s ease-in-out infinite;
}

.motif-one {
    top: 84px;
    right: 22%;
    width: 118px;
    height: 118px;
    transform: rotate(12deg);
}

.motif-two {
    right: 0;
    bottom: 88px;
    width: 180px;
    height: 84px;
    transform: rotate(-6deg);
    animation-duration: 11s;
    animation-delay: .8s;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    min-height: calc(100vh - 72px);
    padding: 48px 0 64px;
}

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

.eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid #cfe5df;
    border-radius: 999px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 14px 0;
    color: var(--text);
    letter-spacing: 0;
    line-height: 1.12;
}

h1 {
    max-width: 720px;
    font-size: clamp(34px, 4.4vw, 54px);
    font-weight: 650;
}

h2 {
    font-size: clamp(25px, 3vw, 36px);
    font-weight: 650;
}

.hero-copy p,
.section-heading p,
.command-copy p,
.auth-panel p {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
}

.hero-actions,
.form-actions,
.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 24px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 650;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

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

.button svg {
    width: 17px;
    height: 17px;
}

.button.primary {
    color: #fff;
    background: var(--green);
    box-shadow: 0 12px 26px rgba(8, 118, 95, .18);
}

.button.primary:hover {
    background: #066650;
    box-shadow: 0 16px 32px rgba(8, 118, 95, .22);
}

.button.ghost {
    color: var(--blue);
    border-color: var(--line);
    background: #fff;
}

.button.ghost:hover {
    border-color: var(--line-2);
    background: #fbfcfc;
}

.button.danger {
    color: #fff;
    background: #b42318;
    box-shadow: 0 12px 26px rgba(180, 35, 24, .18);
}

.button.danger:hover {
    background: #912018;
    box-shadow: 0 16px 34px rgba(180, 35, 24, .23);
}

.home-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.home-proof span {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, .8);
    font-size: 13px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.home-proof span:hover {
    transform: translateY(-2px);
    border-color: #cfe5df;
    background: #fff;
}

.home-proof b {
    color: var(--text);
    font-weight: 650;
}

.quality-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 660px;
    margin-top: 18px;
}

.quality-row div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(225, 231, 234, .9);
    border-radius: 8px;
    color: var(--muted);
    background: rgba(255, 255, 255, .66);
    font-size: 13px;
    animation: fadeUp .55s ease .18s both;
}

.quality-row div:nth-child(2) {
    animation-delay: .25s;
}

.quality-row div:nth-child(3) {
    animation-delay: .32s;
}

.quality-row span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(8, 118, 95, .1);
}

.research-showcase {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--shadow);
    animation: fadeUp .72s ease .12s both;
    transition: transform .24s ease, box-shadow .24s ease;
}

.research-showcase:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 70px rgba(16, 24, 40, .12);
}

.showcase-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.showcase-icon,
.feature-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: var(--green);
    background: var(--green-soft);
}

.showcase-top small,
.showcase-top strong {
    display: block;
}

.showcase-top small {
    color: var(--muted);
}

.showcase-top strong {
    font-size: 18px;
    font-weight: 650;
}

.showcase-meter {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blue), var(--green));
    color: #fff;
}

.showcase-meter div {
    position: relative;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .24);
}

.showcase-meter div::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 28%;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .72), transparent);
    animation: pulseLine 3.2s ease-in-out infinite;
}

.showcase-meter div span {
    display: block;
    width: 12%;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}

.showcase-meter p {
    margin: 14px 0 2px;
    opacity: .86;
}

.showcase-meter strong {
    font-size: 26px;
    font-weight: 650;
}

.university-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.university-chips span {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--blue);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}

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

.public-progress-list div {
    display: grid;
    gap: 6px;
}

.public-progress-list span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 650;
}

.public-progress-list em {
    color: var(--muted);
    font-style: normal;
    font-weight: 600;
}

.public-progress-list i {
    display: block;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf3f2;
}

.public-progress-list small {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--mint));
}

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

.showcase-grid div,
.feature-strip article,
.cap-cards article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.showcase-grid div:hover,
.feature-strip article:hover,
.cap-cards article:hover {
    transform: translateY(-4px);
    border-color: #cfe5df;
    box-shadow: 0 18px 42px rgba(16, 24, 40, .08);
}

.showcase-grid div {
    padding: 16px;
}

.showcase-grid svg {
    color: var(--green);
}

.showcase-grid strong,
.showcase-grid span {
    display: block;
}

.showcase-grid strong {
    margin-top: 10px;
    font-weight: 650;
}

.showcase-grid span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.feature-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: -18px 0 56px;
}

.code-access {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, .7fr);
    gap: 22px;
    align-items: center;
    margin: 10px 0 30px;
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid rgba(204, 220, 224, .96);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(16, 54, 64, .075);
}

.code-access h2 {
    margin: 9px 0 6px;
}

.code-access p {
    margin: 0;
    color: var(--muted);
}

.code-access form,
.participant-search {
    display: grid;
    gap: 12px;
}

.feature-strip article {
    display: flex;
    gap: 13px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
    animation: fadeUp .55s ease both;
}

.feature-strip article:nth-child(2) {
    animation-delay: .08s;
}

.feature-strip article:nth-child(3) {
    animation-delay: .16s;
}

.feature-strip strong {
    display: block;
    font-weight: 650;
}

.feature-strip p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.cap-overview {
    padding-bottom: 72px;
}

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

.cap-cards article {
    padding: 20px;
    animation: fadeUp .55s ease both;
}

.cap-cards article:nth-child(2) {
    animation-delay: .06s;
}

.cap-cards article:nth-child(3) {
    animation-delay: .12s;
}

.cap-cards article:nth-child(4) {
    animation-delay: .18s;
}

.cap-cards span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 13px;
    font-weight: 650;
}

.cap-cards strong {
    display: block;
    margin-top: 16px;
    font-weight: 650;
}

.cap-cards p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.questionnaire-shell {
    padding: 0;
}

.survey-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-right: 42px;
}

.survey-modal-head p {
    margin: 0;
    color: var(--muted);
}

.modal-status {
    min-width: 96px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
    text-align: center;
}

.modal-status span,
.modal-status small {
    display: block;
}

.modal-status span {
    color: var(--green);
    font-size: 24px;
    font-weight: 650;
}

.modal-status small {
    color: var(--muted);
    font-size: 12px;
}

.survey-card {
    padding: 0;
    background: transparent;
}

.form-alert {
    display: none;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid #f1c2bc;
    border-radius: 8px;
    color: var(--red);
    background: #fff4f2;
    font-weight: 600;
}

.form-alert.is-visible {
    display: block;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}

.stepper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.stepper span.is-active {
    transform: translateY(-1px);
}

.stepper b {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: var(--muted);
    background: #f1f4f5;
    font-size: 12px;
    font-weight: 650;
}

.stepper span.is-active {
    color: var(--green);
    border-color: #cfe5df;
    background: var(--green-soft);
}

.stepper span.is-active b {
    color: #fff;
    background: var(--green);
}

.stepper span.is-done {
    color: var(--blue);
    background: #f7fafc;
}

.stepper span.is-done b {
    color: #fff;
    background: var(--blue);
}

.autosave-status {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
}

[data-step] {
    display: none;
}

[data-step].is-active-step {
    display: block;
}

.recap-step {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.recap-head h3 {
    margin: 12px 0 6px;
    font-size: 24px;
    font-weight: 650;
}

.recap-head p {
    margin: 0 0 16px;
    color: var(--muted);
}

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

.recap-item {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
}

.recap-item span,
.recap-item strong {
    display: block;
}

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

.recap-item strong {
    margin-top: 4px;
    font-weight: 600;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.wizard-actions .button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.final-actions {
    display: none;
}

.final-actions.is-visible {
    display: flex;
}

.progress-wrap {
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
}

.progress-track,
.bar {
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: #edf2f1;
}

.progress-track span,
.bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--gold));
    transition: width .25s ease;
}

fieldset {
    margin: 0 0 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

legend {
    padding: 0 8px;
    color: var(--blue);
    font-size: 16px;
    font-weight: 650;
}

label,
.question-group p,
.likert p,
.matrix p {
    display: block;
    color: var(--text);
    font-weight: 600;
}

input,
select {
    width: 100%;
    min-height: 43px;
    margin-top: 7px;
    padding: 0 12px;
    border: 1px solid var(--line-2);
    border-radius: 8px;
    color: var(--text);
    background: #fff;
}

input:focus,
select:focus {
    border-color: var(--green);
    outline: 3px solid rgba(8, 118, 95, .12);
}

.field-invalid {
    padding: 10px;
    border-radius: 8px;
    background: #fff8f7;
    box-shadow: inset 0 0 0 1px #f1c2bc;
    animation: fadeUp .2s ease both;
}

.field-invalid input,
.field-invalid select {
    border-color: var(--red);
}

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

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

.check-row {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    align-items: start;
    margin: 10px 0;
    font-weight: 500;
}

.check-row input,
.likert input,
.matrix-row input {
    width: 17px;
    min-height: 17px;
    accent-color: var(--green);
}

.check-row input {
    margin-top: 3px;
}

.question-group {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--soft-line);
}

.likert {
    display: grid;
    grid-template-columns: 1fr repeat(3, minmax(104px, auto));
    gap: 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--soft-line);
}

.likert label {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    color: var(--muted);
    font-weight: 500;
}

.likert input,
.matrix-row input {
    margin: 0;
}

.matrix {
    overflow-x: auto;
}

.matrix p {
    margin-top: 0;
}

.matrix-head,
.matrix-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(104px, 1fr));
    gap: 8px;
    align-items: center;
    min-width: 700px;
}

.matrix-head {
    padding-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.matrix-row {
    padding: 12px 0;
    border-top: 1px solid var(--soft-line);
}

.matrix-row strong {
    font-size: 14px;
    font-weight: 600;
}

.matrix-row label {
    display: flex;
    justify-content: center;
    align-items: center;
}

.matrix-row label span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.conditional {
    display: none;
    margin-top: 14px;
}

.conditional.is-visible {
    display: block;
}

.form-actions p {
    margin: 0;
    color: var(--muted);
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px clamp(20px, 4vw, 56px);
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: rgba(255, 255, 255, .78);
}

.center-page,
.auth-page {
    min-height: 100vh;
}

.center-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.success-card {
    width: min(520px, 100%);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.success-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    color: #fff;
    background: var(--green);
    font-size: 17px;
    font-weight: 650;
}

.code-box {
    margin: 22px auto;
    padding: 13px 15px;
    border: 1px dashed var(--green);
    border-radius: 8px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 20px;
    font-weight: 650;
}

.auth-page {
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(90deg, rgba(8, 118, 95, .05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(36, 75, 115, .045) 1px, transparent 1px),
        radial-gradient(circle at 18% 18%, rgba(8, 118, 95, .16), transparent 30%),
        radial-gradient(circle at 86% 18%, rgba(217, 154, 29, .14), transparent 28%),
        linear-gradient(135deg, #fbfdfc, #edf5f3);
    background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

.auth-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    width: min(1120px, 100%);
    min-height: 650px;
    border: 1px solid rgba(196, 218, 221, .95);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 34px 90px rgba(16, 54, 64, .16);
    overflow: hidden;
    animation: premiumEnter .58s ease both;
}

.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--green), #2aa7c8, #d99a1d);
    z-index: 2;
}

.auth-panel {
    display: grid;
    align-content: center;
    gap: 22px;
    padding: clamp(34px, 5vw, 70px);
    background:
        radial-gradient(circle at 12% 18%, rgba(8, 118, 95, .08), transparent 28%),
        #fff;
}

.auth-panel h1 {
    max-width: 540px;
    margin-bottom: 10px;
    font-size: clamp(40px, 5vw, 64px);
    line-height: .98;
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: end;
    gap: 12px;
    padding: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 24% 20%, rgba(255, 255, 255, .18), transparent 23%),
        linear-gradient(145deg, rgba(24, 56, 85, .98), rgba(8, 118, 95, .94)),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: auto, 28px 28px;
}

.auth-aside::before {
    content: "";
    position: absolute;
    inset: 26px 26px auto auto;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 8px;
    transform: rotate(8deg);
}

.auth-aside strong {
    position: relative;
    font-size: 38px;
    font-weight: 650;
    line-height: 1.1;
}

.auth-aside span {
    position: relative;
    opacity: .9;
    font-weight: 500;
}

.auth-aside-kicker {
    width: fit-content;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 12px;
    font-weight: 700 !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-form {
    display: grid;
    gap: 15px;
    max-width: 400px;
}

.twofactor-card {
    display: grid;
    gap: 16px;
    max-width: 470px;
    padding: 20px;
    border: 1px solid rgba(196, 218, 221, .96);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(16, 54, 64, .10);
}

.twofactor-top,
.twofactor-countdown,
.resend-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.twofactor-top > span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 8px;
    color: var(--green);
    background: var(--green-soft);
}

.twofactor-top svg {
    width: 22px;
    height: 22px;
}

.twofactor-top strong,
.twofactor-top small {
    display: block;
}

.twofactor-top small {
    color: var(--muted);
    font-weight: 500;
}

.twofactor-countdown {
    position: relative;
    justify-content: space-between;
    overflow: hidden;
    padding: 16px;
    border: 1px solid rgba(8, 118, 95, .22);
    border-radius: 8px;
    background: linear-gradient(135deg, #f7fbfa, #fff);
}

.twofactor-countdown::before {
    content: "";
    position: absolute;
    inset: auto 14px 9px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--green), #2aa7c8, #d99a1d);
    animation: countdownPulse 1.2s ease-in-out infinite;
}

.twofactor-countdown span {
    color: var(--muted);
    font-weight: 600;
}

.twofactor-countdown strong {
    color: var(--green);
    font-size: 34px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.twofactor-countdown.is-expired strong {
    color: var(--red);
}

.twofactor-form,
.resend-form {
    max-width: none;
}

.twofactor-input {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 8px;
}

.resend-form {
    flex-wrap: wrap;
}

.resend-form .button {
    min-height: 42px;
}

@keyframes countdownPulse {
    0%,
    100% {
        opacity: .55;
        transform: scaleX(.92);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.alert {
    width: fit-content;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #f1c2bc;
    border-radius: 8px;
    color: var(--red);
    background: #fff4f2;
    font-weight: 600;
}

.dashboard {
    position: relative;
    padding: 42px 0 84px;
}

.dashboard::before {
    content: "";
    position: absolute;
    top: 24px;
    right: min(4vw, 48px);
    width: min(42vw, 520px);
    height: 320px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(35, 185, 154, .18), transparent 58%),
        radial-gradient(circle at 78% 36%, rgba(72, 84, 168, .13), transparent 48%);
    filter: blur(2px);
    animation: haloPulse 8s ease-in-out infinite;
    pointer-events: none;
}

.premium-dashboard {
    width: min(1240px, calc(100% - 36px));
}

.dashboard-command {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 20px;
    animation: premiumEnter .55s ease both;
}

.command-copy,
.command-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(193, 216, 219, .88);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 26px 78px rgba(16, 54, 64, .13);
}

.command-copy::before,
.command-panel::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 32%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
    animation: glowSweep 7s ease-in-out infinite;
    pointer-events: none;
}

.command-copy::after,
.command-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 118, 95, .035), transparent 32%),
        linear-gradient(270deg, rgba(36, 75, 115, .035), transparent 36%);
    pointer-events: none;
}

.command-copy > *,
.command-panel > * {
    position: relative;
    z-index: 1;
}

.command-copy {
    padding: clamp(24px, 4vw, 38px);
    min-height: 286px;
}

.command-copy::before {
    animation-delay: .6s;
}

.command-copy h1 {
    max-width: 780px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.02;
}

.command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.command-actions span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid rgba(175, 216, 211, .95);
    border-radius: 999px;
    color: var(--blue);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .9), rgba(237, 248, 245, .8));
    font-size: 13px;
    font-weight: 600;
}

.command-actions svg {
    width: 17px;
    height: 17px;
    color: var(--green);
}

.command-actions span:nth-child(2) svg {
    color: var(--indigo);
}

.command-actions span:nth-child(3) svg {
    color: var(--gold);
}

.command-panel {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 18px;
    align-items: center;
    padding: 22px;
    background: #fff;
}

.command-panel span,
.command-panel small,
.admin-metrics span {
    display: block;
    color: var(--muted);
    font-weight: 500;
}

.command-panel strong {
    display: block;
    margin: 4px 0;
    color: var(--text);
    font-size: 30px;
    line-height: 1;
    font-weight: 650;
}

.command-ring {
    display: grid;
    place-items: center;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #fff 58%, transparent 59%),
        conic-gradient(var(--mint) var(--value), #e8efef 0);
    box-shadow: inset 0 0 0 1px rgba(8, 118, 95, .08), 0 14px 30px rgba(8, 118, 95, .10);
}

.command-ring span {
    color: var(--green);
    font-size: 22px;
    font-weight: 650;
}

.admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
    animation: premiumEnter .6s ease .08s both;
}

.admin-module {
    display: none;
}

.admin-module.is-active {
    display: block;
}

.admin-metrics article,
.uni-card,
.admin-board {
    border: 1px solid rgba(204, 220, 224, .96);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(16, 54, 64, .075);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.admin-metrics article:hover,
.uni-card:hover {
    transform: translateY(-4px);
    border-color: #cfe5df;
    box-shadow: 0 24px 58px rgba(16, 24, 40, .12);
}

.metric-premium {
    position: relative;
    overflow: hidden;
    min-height: 148px;
    padding: 18px;
    isolation: isolate;
}

.metric-premium::before {
    content: "";
    position: absolute;
    top: -34px;
    right: -24px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(8, 118, 95, .10), transparent 68%);
    z-index: -1;
}

.metric-premium i {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 8px;
    color: var(--green);
    background:
        linear-gradient(135deg, rgba(237, 248, 245, 1), rgba(221, 247, 239, .9));
    box-shadow: 0 12px 26px rgba(8, 118, 95, .12);
}

.metric-premium i svg {
    width: 20px;
    height: 20px;
}

.metric-premium.pending i {
    color: #9b6a05;
    background: #fff7df;
    box-shadow: 0 12px 26px rgba(185, 138, 47, .13);
}

.metric-premium.validated i {
    color: var(--cyan);
    background: #eaf9fb;
    box-shadow: 0 12px 26px rgba(58, 160, 184, .13);
}

.metric-premium.progress i {
    color: var(--indigo);
    background: #f0f2ff;
    box-shadow: 0 12px 26px rgba(72, 84, 168, .13);
}

.metric-premium::after {
    content: "";
    position: absolute;
    inset: auto 18px 0 18px;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: var(--green);
}

.admin-metrics strong {
    display: block;
    margin-top: 5px;
    color: var(--text);
    font-size: 32px;
    line-height: 1;
    font-weight: 650;
}

.metric-premium em {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.metric-premium.pending::after {
    background: linear-gradient(90deg, var(--gold), var(--amber));
}

.metric-premium.validated::after {
    background: linear-gradient(90deg, var(--cyan), var(--mint));
}

.metric-premium.progress::after {
    background: linear-gradient(90deg, var(--indigo), var(--blue));
}

.insight-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
    animation: premiumEnter .62s ease .14s both;
}

.insight-band div {
    position: relative;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(196, 218, 221, .9);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(16, 24, 40, .06);
}

.insight-band div::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--mint), var(--gold));
}

.insight-band span,
.insight-band p {
    display: block;
    margin: 0;
    color: var(--muted);
}

.insight-band strong {
    display: block;
    margin: 5px 0 2px;
    color: var(--text);
    font-size: 24px;
    font-weight: 650;
}

.dashboard-section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    margin: 24px 0 12px;
}

.dashboard-section-title span,
.dashboard-section-title strong {
    display: block;
}

.dashboard-section-title span {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dashboard-section-title strong {
    color: var(--text);
    font-size: 20px;
    font-weight: 650;
}

.university-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    animation: premiumEnter .62s ease .18s both;
}

.compact-grid {
    margin-bottom: 22px;
}

.uni-card {
    padding: 16px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.uni-card::after {
    content: "";
    position: absolute;
    right: -38px;
    top: -44px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(35, 185, 154, .10), transparent 70%);
    pointer-events: none;
}

.uni-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--mint), var(--blue), var(--gold));
}

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

.uni-head span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    color: var(--blue);
    background: linear-gradient(135deg, #f4f8fb, #eef8f5);
    font-weight: 650;
}

.uni-head strong {
    font-size: 28px;
    font-weight: 650;
}

.uni-card p {
    min-height: 46px;
    color: var(--muted);
    font-size: 13px;
}

.uni-card .bar {
    height: 8px;
    border-radius: 999px;
    background: #eef3f2;
    overflow: hidden;
}

.uni-card .bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--green), var(--mint));
}

.uni-percent {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.uni-card dl {
    display: grid;
    gap: 7px;
    margin: 14px 0 0;
}

.uni-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
}

.uni-card dt,
.uni-card dd {
    margin: 0;
}

.uni-card dd {
    color: var(--text);
    font-weight: 600;
}

.admin-board {
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(16, 24, 40, .10);
    animation: premiumEnter .62s ease .22s both;
}

.target-panel {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
    padding: 20px;
    border: 1px solid rgba(196, 218, 221, .9);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(16, 54, 64, .075);
}

.target-panel h2 {
    margin: 9px 0 6px;
}

.target-panel p {
    margin: 0;
    color: var(--muted);
}

.target-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.target-form label {
    display: grid;
    gap: 4px;
}

.target-form label span,
.target-form label small {
    display: block;
}

.target-form label span {
    color: var(--blue);
    font-weight: 700;
}

.target-form label small {
    min-height: 34px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.settings-modal {
    width: min(980px, 100%);
}

.modal-form-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-width: none;
}

.modal-form-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
    margin-top: 4px;
}

.settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
    gap: 16px;
}

.modal-user-form,
.modal-user-list {
    max-width: none;
    padding: 18px;
    border: 1px solid rgba(196, 218, 221, .9);
    border-radius: 8px;
    background: #fbfcfc;
}

.modal-user-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.modal-user-form button {
    grid-column: 1 / -1;
    justify-self: start;
}

.modal-user-form .modal-actions {
    grid-column: 1 / -1;
}

.user-management {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 14px;
    margin-bottom: 22px;
}

.user-panel,
.user-list {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(196, 218, 221, .9);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(16, 24, 40, .08);
}

.user-panel h2,
.user-list h3 {
    margin: 10px 0 6px;
    font-weight: 650;
}

.user-panel p,
.user-list p {
    margin: 0;
    color: var(--muted);
}

.user-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.user-form button {
    align-self: end;
}

.notice {
    margin-top: 12px !important;
    padding: 10px 12px;
    border-radius: 8px;
    font-weight: 600;
}

.notice.success {
    color: var(--ok);
    background: #ecfdf3;
}

.notice.error {
    color: var(--red);
    background: #fff4f2;
}

.user-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--soft-line);
}

.user-row:first-of-type {
    margin-top: 10px;
}

.user-row strong,
.user-row span {
    display: block;
}

.user-row strong {
    font-weight: 650;
}

.user-row span {
    color: var(--muted);
    font-size: 13px;
}

.user-row em {
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--ok);
    background: #ecfdf3;
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
}

.admin-page {
    background:
        linear-gradient(90deg, rgba(36, 75, 115, .035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(8, 118, 95, .032) 1px, transparent 1px),
        #fff;
    background-size: 48px 48px;
}

.settings-page {
    width: min(1440px, calc(100% - 48px));
    margin: 0 auto;
    padding: 52px 0 78px;
}

.settings-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 24px;
    animation: premiumEnter .55s ease both;
}

.settings-hero > div:first-child,
.settings-total-card,
.settings-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(196, 218, 221, .9);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(251, 253, 252, .94));
    box-shadow: 0 26px 70px rgba(16, 54, 64, .105);
}

.settings-hero > div:first-child::before,
.settings-total-card::before,
.settings-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--green), #2aa7c8, #d99a1d);
}

.settings-hero > div:first-child {
    padding: 38px 42px;
    background:
        radial-gradient(circle at 96% 10%, rgba(8, 118, 95, .10), transparent 24%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 252, 250, .95));
}

.settings-hero h1 {
    max-width: 850px;
    margin: 14px 0 12px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: .98;
}

.settings-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.settings-total-card {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 220px;
    padding: 34px;
}

.settings-total-card span,
.settings-total-card small {
    color: var(--muted);
    font-weight: 650;
}

.settings-total-card strong {
    color: var(--green);
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1;
}

.settings-card {
    padding: 28px;
    animation: premiumEnter .55s ease .08s both;
}

.settings-card-head {
    margin-bottom: 16px;
}

.settings-card-head h2 {
    margin: 8px 0 0;
    font-size: 26px;
}

.settings-target-grid {
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 16px;
}

.settings-target-grid label {
    padding: 18px;
    border: 1px solid rgba(196, 218, 221, .95);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(16, 54, 64, .06);
}

.settings-target-grid input {
    margin-top: 8px;
}

.university-create-form {
    display: grid;
    grid-template-columns: minmax(120px, .45fr) minmax(260px, 1fr) minmax(120px, .35fr) auto;
    gap: 14px;
    align-items: end;
}

.inline-check {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    min-height: auto !important;
    margin-top: 10px;
    color: var(--green) !important;
    font-size: 13px !important;
    font-weight: 750 !important;
}

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

.settings-form-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 10px;
}

.settings-page-layout {
    align-items: start;
}

.settings-page-layout .user-form,
.settings-page-layout .user-list {
    margin-top: 0;
}

.settings-page-layout .user-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-page-layout .user-form .settings-card-head,
.settings-page-layout .user-form button {
    grid-column: 1 / -1;
}

.settings-page-layout .user-list {
    max-height: none;
}

.user-directory {
    display: grid;
    gap: 18px;
}

.directory-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.directory-head .settings-card-head {
    margin-bottom: 0;
}

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

.premium-user-head {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) 150px 120px 150px minmax(360px, 1.2fr);
    gap: 12px;
    padding: 0 14px 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.premium-user-card {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) 150px 120px 150px minmax(360px, 1.2fr);
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(196, 218, 221, .9);
    border-radius: 8px;
    background:
        linear-gradient(135deg, #fff, #fbfdfc);
    box-shadow: 0 14px 38px rgba(16, 54, 64, .06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.premium-user-card:hover {
    border-color: rgba(8, 118, 95, .28);
    box-shadow: 0 22px 46px rgba(16, 54, 64, .09);
    transform: translateY(-2px);
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--green));
    font-size: 20px;
    font-weight: 750;
}

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

.user-main {
    display: grid;
    gap: 3px;
}

.user-main strong {
    font-size: 16px;
    font-weight: 700;
}

.user-main span {
    color: var(--muted);
    font-size: 13px;
}

.role-pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
}

.last-login {
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.user-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.user-actions form {
    margin: 0;
}

.action-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #fff;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.action-chip svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.2;
}

.action-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(16, 54, 64, .09);
}

.action-chip.edit {
    color: #244b73;
    border-color: rgba(36, 75, 115, .18);
    background: #f4f8fb;
}

.action-chip.reset {
    color: var(--green);
    border-color: rgba(8, 118, 95, .20);
    background: #edf8f5;
}

.action-chip.block {
    color: #b54708;
    border-color: rgba(217, 154, 29, .28);
    background: #fff8e8;
}

.action-chip.delete {
    color: #b42318;
    border-color: rgba(180, 35, 24, .18);
    background: #fff4f2;
}

.role-pill {
    color: #244b73;
    background: #eef5fb;
}

.status-pill.is-active {
    color: var(--green);
    background: #ecfdf3;
}

.status-pill.is-muted {
    color: var(--muted);
    background: #f2f4f7;
}

.user-action-modal {
    width: min(760px, 100%);
}

.user-action-modal .modal-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.user-action-modal .modal-actions form {
    margin: 0;
}

.tabs {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    background: #fbfcfc;
}

.university-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(237, 248, 245, .7), rgba(255, 255, 255, .94));
}

.university-tabs a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
    padding: 10px 12px;
    border: 1px solid rgba(196, 218, 221, .96);
    border-radius: 8px;
    color: var(--blue);
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 54, 64, .055);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.university-tabs a:hover {
    transform: translateY(-2px);
    border-color: #b8d8d2;
    box-shadow: 0 16px 34px rgba(16, 54, 64, .09);
}

.university-tabs a.is-active {
    color: #fff;
    border-color: var(--green);
    background: linear-gradient(135deg, var(--green), var(--blue));
    box-shadow: 0 10px 24px rgba(8, 118, 95, .14);
}

.university-tabs strong,
.university-tabs span {
    display: block;
}

.university-tabs strong {
    font-size: 14px;
    font-weight: 750;
}

.university-tabs span {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    color: var(--green);
    background: var(--green-soft);
    font-size: 12px;
    font-weight: 750;
}

.university-tabs a.is-active span {
    color: var(--blue);
    background: #fff;
}

.tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 600;
}

.tabs a.is-active {
    color: var(--green);
    border-color: #cfe5df;
    background: linear-gradient(135deg, var(--green-soft), #fff);
}

.tabs span {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
}

.table-shell {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--soft-line);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--muted);
    background: #fbfcfc;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.admin-table td strong,
.table-muted {
    display: block;
}

.table-muted {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
}

.empty-state {
    color: var(--muted);
    text-align: center !important;
    font-weight: 500;
}

.score-pills,
.row-actions,
.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.badge.good {
    color: var(--ok);
    background: #ecfdf3;
}

.badge.medium {
    color: #946200;
    background: #fff7df;
}

.badge.low {
    color: #9d2419;
    background: #fff1ef;
}

.icon-button {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--blue);
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.icon-button:hover {
    background: #fbfcfc;
}

.icon-button.approve {
    color: #fff;
    border-color: var(--green);
    background: linear-gradient(135deg, var(--green), var(--mint));
}

.icon-button.neutral {
    color: #7a5600;
    border-color: #efd89f;
    background: #fff9e8;
}

body.modal-open {
    overflow: hidden;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    padding: 22px;
}

.modal.is-open {
    display: grid;
    place-items: center;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .45);
    backdrop-filter: blur(10px);
}

.modal-card,
.survey-modal-card {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(88vh, 860px);
    overflow: auto;
    padding: clamp(22px, 4vw, 32px);
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    animation: modalIn .24s ease both;
}

.survey-modal-card {
    width: min(980px, 100%);
}

.small-modal {
    width: min(500px, 100%);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}

.modal-head {
    margin-bottom: 18px;
}

.modal-head h2 {
    margin-top: 10px;
    font-size: clamp(25px, 3.2vw, 36px);
}

.modal-head p {
    margin: 0;
    color: var(--muted);
}

.detail-grid,
.score-panel {
    display: grid;
    gap: 12px;
}

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

.detail-grid div,
.score-panel div {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
}

.detail-grid span,
.score-panel span,
.score-panel em {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
}

.detail-grid strong {
    display: block;
    margin-top: 4px;
    font-weight: 600;
}

.score-panel {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 14px;
}

.score-panel strong {
    display: block;
    margin: 5px 0;
    color: var(--green);
    font-size: 30px;
    line-height: 1;
    font-weight: 650;
}

.answer-review {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.answer-section {
    overflow: hidden;
    border: 1px solid rgba(204, 220, 224, .96);
    border-radius: 8px;
    background: #fff;
}

.answer-section h3 {
    margin: 0;
    padding: 13px 15px;
    border-bottom: 1px solid var(--line);
    color: var(--green);
    background: #fbfcfc;
    font-size: 14px;
    font-weight: 700;
}

.answer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.answer-list div {
    min-height: 74px;
    padding: 13px 15px;
    border-bottom: 1px solid #eef2f3;
}

.answer-list div:nth-child(odd) {
    border-right: 1px solid #eef2f3;
}

.answer-list span,
.answer-list strong {
    display: block;
}

.answer-list span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
}

.answer-list strong {
    margin-top: 5px;
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
}

.participant-page {
    padding: 42px 0 80px;
}

.participant-card {
    width: min(1040px, 100%);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(204, 220, 224, .96);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(16, 54, 64, .10);
}

.participant-head {
    max-width: 680px;
    margin-bottom: 18px;
}

.participant-head h1 {
    margin: 8px 0;
    font-size: clamp(32px, 5vw, 52px);
}

.participant-head p {
    margin: 0;
    color: var(--muted);
}

.participant-search {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    margin-bottom: 18px;
}

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

.participant-summary div {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfc;
}

.participant-summary span,
.participant-summary strong {
    display: block;
}

.participant-summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
}

.participant-summary strong {
    margin-top: 5px;
    color: var(--text);
}

.participant-scores {
    margin-bottom: 16px;
}

.admin-module:not(.is-active) {
    display: none !important;
}

.json-details {
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.json-details summary {
    cursor: pointer;
    padding: 13px;
    color: var(--blue);
    font-weight: 600;
}

.json-details pre {
    overflow: auto;
    max-height: 320px;
    margin: 0;
    padding: 13px;
    border-top: 1px solid var(--line);
    color: var(--text);
    background: #fbfcfc;
    font-size: 13px;
    white-space: pre-wrap;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .001ms !important;
    }
}

.modal-actions {
    justify-content: flex-end;
}

@media (max-width: 980px) {
    .hero,
    .feature-strip,
    .cap-cards,
    .showcase-grid,
    .quality-row,
    .university-grid,
    .user-management,
    .target-form,
    .code-access,
    .participant-summary,
    .university-tabs,
    .settings-layout,
    .settings-hero,
    .settings-target-grid,
    .university-create-form,
    .modal-form-grid,
    .dashboard-command,
    .insight-band,
    .auth-shell,
    .admin-metrics {
        grid-template-columns: 1fr;
    }

    .admin-topbar {
        grid-template-columns: 1fr;
    }

    .admin-identity {
        text-align: left;
    }

    .hero {
        min-height: auto;
    }

    .survey-modal-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-shell {
        max-width: 640px;
    }

    .auth-aside {
        min-height: 190px;
    }
}

@media (max-width: 680px) {
    .topbar,
    footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav {
        width: 100%;
        overflow-x: auto;
    }

    h1 {
        font-size: 33px;
    }

    .form-grid,
    .user-form,
    .participant-search,
    .modal-user-form,
    .likert,
    .detail-grid,
    .score-panel,
    .answer-list,
    .recap-grid,
    .stepper,
    .settings-page-layout .user-form {
        grid-template-columns: 1fr;
    }

    .premium-user-head {
        display: none;
    }

    .directory-head,
    .premium-user-card {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .directory-head {
        flex-direction: column;
    }

    .premium-user-card {
        display: grid;
    }

    .user-actions {
        justify-content: flex-start;
    }

    .user-avatar {
        width: 46px;
        height: 46px;
    }

    .settings-page {
        width: min(100% - 28px, 680px);
        padding-top: 32px;
    }

    .settings-hero > div:first-child,
    .settings-total-card,
    .settings-card {
        padding: 20px;
    }

    .settings-hero h1 {
        font-size: 34px;
    }

    .settings-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .answer-list div:nth-child(odd) {
        border-right: 0;
    }

    fieldset,
    .success-card {
        padding: 16px;
    }

    .modal {
        padding: 10px;
    }

    .tabs {
        overflow-x: auto;
    }
}
