:root {
    --bg: #070b1a;
    --panel: rgba(255, 255, 255, 0.9);
    --panel-strong: #ffffff;
    --text: #172033;
    --muted: #546078;
    --muted-2: #737d93;
    --accent: #5d7cff;
    --accent-2: #00d4ff;
    --line: rgba(23, 32, 51, 0.12);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 10%, rgba(93, 124, 255, 0.32), transparent 32%),
        radial-gradient(circle at 80% 0%, rgba(0, 212, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #060917 0%, #101830 50%, #07111f 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

#flow-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

a {
    color: inherit;
}

code {
    padding: 0.12rem 0.35rem;
    border-radius: 0.4rem;
    background: rgba(93, 124, 255, 0.12);
    color: #2536a3;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 24px;
    justify-content: space-between;
    padding: 14px 28px;
    background: rgba(7, 11, 26, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
}

.brand {
    color: white;
    font-weight: 850;
    text-decoration: none;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.nav {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.92rem;
    white-space: nowrap;
}

.nav a:hover {
    color: white;
}

.nav a[aria-current="page"] {
    color: white;
    font-weight: 800;
    box-shadow: inset 0 -2px 0 var(--accent-2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    flex-shrink: 0;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.site-header.is-nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

main,
.site-footer {
    position: relative;
    z-index: 1;
}

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 82px 24px;
    scroll-margin-top: 82px;
}

.hero {
    padding-top: 86px;
}

.content-card,
.hero-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.content-card {
    border-radius: var(--radius);
    padding: 32px;
}

.page-header {
    padding-top: 48px;
    padding-bottom: 24px;
}

.page-header h1 {
    max-width: 880px;
    margin-bottom: 18px;
    color: white;
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.page-intro {
    max-width: 740px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.15rem;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    padding: 64px;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(93, 124, 255, 0.16), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.18), transparent 30%);
    pointer-events: none;
}

.hero-card>* {
    position: relative;
    z-index: 1;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

h1 {
    max-width: 940px;
    margin-bottom: 24px;
    font-size: clamp(2.4rem, 7vw, 5.6rem);
}

h2 {
    max-width: 880px;
    margin-bottom: 0;
    color: white;
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

p {
    margin-top: 0;
}

.hero-subtitle {
    max-width: 780px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 1.3rem;
}

.hero-body {
    max-width: 780px;
    margin-bottom: 34px;
    color: var(--muted);
}

.hero-body p+p {
    margin-top: 1em;
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading p {
    max-width: 740px;
    color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 40px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
}

.button.primary {
    color: white;
    background: linear-gradient(135deg, var(--accent), #3047e8);
}

.button.secondary {
    color: #2437a6;
    background: rgba(93, 124, 255, 0.12);
}

.button.starter-kit {
    gap: 9px;
    color: #fff;
    background: linear-gradient(135deg, #11182a 0%, #252f4a 58%, #17264e 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 26px rgba(12, 21, 44, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button.starter-kit:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0b1020 0%, #1b294d 58%, #14396f 100%);
    box-shadow: 0 15px 34px rgba(12, 21, 44, 0.34), 0 0 0 1px rgba(0, 212, 255, 0.18);
}

.button.starter-kit:focus-visible {
    outline: 3px solid rgba(0, 125, 180, 0.78);
    outline-offset: 3px;
}

.button-icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.button.compact {
    align-self: flex-start;
    min-height: 34px;
    margin-top: 16px;
    padding: 0 14px;
    font-size: 0.88rem;
}

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

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

.status-grid a.status-card {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.65);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.status-grid a.status-card:hover,
.status-grid a.status-card:focus-visible {
    border-color: rgba(93, 124, 255, 0.45);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

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

.status-grid strong {
    margin-bottom: 4px;
}

.status-grid span {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.two-column.content-card {
    padding: 34px;
}

.info-card,
.track-card,
.leaderboard-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel-strong);
    padding: 24px;
}

.info-card p,
.info-card li,
.track-card p {
    color: var(--muted);
}

.dataset-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dataset-preview {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 14px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    cursor: zoom-in;
    background: rgba(255, 255, 255, 0.45);
    box-sizing: border-box;
}

.dataset-preview:focus-visible {
    outline: 2px solid rgba(93, 124, 255, 0.55);
    outline-offset: 2px;
}

.dataset-preview img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 132px;
    object-fit: contain;
}

.dataset-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.dataset-card-actions .button.compact {
    margin-top: 0;
    align-self: auto;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    width: min(98vw, 1600px);
    max-width: 98vw;
    max-height: 98vh;
    margin: auto;
    padding: 0;
    border: none;
    background: transparent;
    overflow: visible;
}

.image-lightbox::backdrop {
    background: rgba(8, 12, 28, 0.84);
}

.image-lightbox img {
    display: block;
    width: 100%;
    max-height: 94vh;
    height: auto;
    border-radius: 14px;
}

.image-lightbox-close {
    position: absolute;
    top: -42px;
    right: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

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

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

.card-grid.five {
    grid-template-columns: repeat(5, 1fr);
}

.card-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

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

.card-grid.three {
    grid-template-columns: repeat(3, 1fr);
}

.spaced-top {
    margin-top: 18px;
}

.track-card {
    min-height: 260px;
}

.track-card--exploration {
    background: linear-gradient(145deg, #f1f4ff 0%, #e7f7fc 100%);
    border-color: rgba(93, 124, 255, 0.45);
    box-shadow: 0 14px 40px rgba(93, 124, 255, 0.16);
}

.track-card-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #dce4ff;
    color: #1f3aa8;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.track-card--exploration h3 {
    color: var(--text);
}

.track-card--exploration p {
    color: var(--muted);
}

.tracks-panel {
    padding: 34px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.tracks-intro {
    max-width: 880px;
    margin-bottom: 32px;
}

.tracks-intro p,
.tracks-subsection p {
    color: var(--muted);
}

.tracks-subsection {
    margin-top: 28px;
}

.track-card h4 {
    margin: 0 0 12px;
    font-size: 1.15rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.exploration-subsection {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel-strong);
}

.flowbench-resource {
    position: relative;
    isolation: isolate;
    margin-top: 28px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(93, 124, 255, 0.3);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(0, 212, 255, 0.2), transparent 34%),
        linear-gradient(145deg, #f4f6ff 0%, #edf8fc 100%);
    box-shadow: 0 18px 45px rgba(51, 74, 165, 0.13);
}

.flowbench-resource::after {
    position: absolute;
    z-index: -1;
    right: -54px;
    bottom: -76px;
    width: 190px;
    height: 190px;
    border: 28px solid rgba(93, 124, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.flowbench-resource-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.flowbench-label {
    display: inline-block;
    margin-bottom: 6px;
    color: #3150bf;
    font-size: 0.75rem;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.flowbench-resource h4 {
    margin: 0;
    color: #172033;
    font-size: 1.55rem;
    letter-spacing: -0.035em;
}

.flowbench-resource-header .button.compact {
    margin-top: 0;
    white-space: nowrap;
}

.flowbench-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.flowbench-metrics span {
    display: flex;
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    padding: 13px;
    border: 1px solid rgba(51, 74, 165, 0.12);
    border-radius: 13px;
    color: #44506a;
    background: rgba(255, 255, 255, 0.74);
    font-size: 0.8rem;
    font-weight: 750;
    line-height: 1.35;
}

.flowbench-metrics strong {
    color: #2437a6;
    font-size: 1.32rem;
}

.flowbench-resource .citation-block {
    border-top-color: rgba(51, 74, 165, 0.16);
}

.keynote-affiliation {
    margin: -4px 0 14px;
    color: var(--muted);
    font-weight: 700;
}

.keynote-card p:last-child {
    margin-bottom: 0;
}

.citation-ref {
    margin-left: 1px;
    color: #2437a6;
    font-size: 0.78em;
    font-weight: 750;
    text-decoration: none;
    vertical-align: super;
    line-height: 0;
}

.citation-ref:hover,
.citation-ref:focus-visible {
    text-decoration: underline;
}

.keynote-references {
    margin-top: 18px;
    padding: 24px 28px;
}

.keynote-references h3 {
    margin-bottom: 12px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.keynote-references ol {
    margin: 0;
    padding-left: 1.35em;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.5;
}

.keynote-references li+li {
    margin-top: 8px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tags span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(93, 124, 255, 0.12);
    color: #2437a6;
    font-size: 0.92rem;
    font-weight: 750;
}

.notice {
    padding: 18px 20px;
    border: 1px solid rgba(93, 124, 255, 0.22);
    border-radius: 20px;
    background: rgba(238, 241, 255, 0.94);
    color: #273158;
    margin-top: 18px;
}

.content-card>p,
.content-card>ul,
.content-card>ol {
    color: var(--muted);
}

.content-card>p:last-child,
.content-card>ul:last-child,
.content-card>ol:last-child {
    margin-bottom: 0;
}

.tentative-note {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
    font-style: italic;
}

.coming-soon {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    background: rgba(93, 124, 255, 0.14);
    color: #546078;
    font-size: 0.88rem;
    font-weight: 750;
}

.feature-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--muted);
}

.feature-list li {
    margin-bottom: 10px;
}

.feature-list li:last-child {
    margin-bottom: 0;
}

.tutorial-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel-strong);
    padding: 24px;
}

.tutorial-card h3 {
    margin-bottom: 8px;
}

.tutorial-card p {
    margin-bottom: 14px;
    color: var(--muted);
}

.metric-card p,
.metric-card li {
    color: var(--muted);
}

.formula {
    margin: 24px 0;
    padding: 22px;
    overflow-x: auto;
    border-radius: 18px;
    background: #071127;
    color: white;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    white-space: nowrap;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

table.schedule-table {
    min-width: 640px;
}

.timeline-table tbody tr {
    transition: background 0.2s ease;
}

.timeline-row--next td {
    background: linear-gradient(90deg, rgba(93, 124, 255, 0.14), rgba(93, 124, 255, 0.04));
    border-bottom-color: rgba(93, 124, 255, 0.22);
    vertical-align: middle;
}

.timeline-row--next td:first-child {
    display: flex;
    align-items: center;
    box-shadow: inset 3px 0 0 var(--accent);
}

.timeline-row--next td:last-child {
    font-weight: 650;
    color: var(--text);
}

.timeline-next-badge {
    display: inline-block;
    margin-left: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #3047e8);
    color: white;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

th,
td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: #273158;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td {
    color: var(--muted);
}

.rule-list {
    display: grid;
    gap: 12px;
}

.rule-list.content-card {
    padding: 28px;
}

.rule-list div {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
}

.step-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 28px;
    list-style: none;
}

.step-list.content-card {
    padding: 28px;
}

.step-card {
    display: flex;
    align-items: stretch;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: white;
}

.step-number {
    display: flex;
    container-type: size;
    flex: 0 0 auto;
    align-items: center;
    align-self: stretch;
    justify-content: center;
    width: 4.5rem;
    color: #c3cad6;
    font-size: 4rem;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.06em;
}

.step-body {
    flex: 1;
    min-width: 0;
    padding: 0;
}

.step-body h3 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.step-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.step-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 16px;
}

.steps {
    margin: 0;
    padding: 32px 32px 32px 56px;
}

.steps.content-card {
    padding: 32px 32px 32px 56px;
}

.steps li {
    margin-bottom: 12px;
    color: var(--muted);
}

.leaderboard-card {
    min-height: 130px;
    color: var(--text);
    text-decoration: none;
}

.leaderboard-card strong,
.leaderboard-card span {
    display: block;
}

.leaderboard-card span {
    margin-top: 8px;
    color: var(--muted-2);
}

.organizer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 14px;
    align-items: stretch;
}

.organizer-grid.content-card {
    padding: 28px;
}

.faq-list.content-card {
    padding: 28px;
}

.schedule-table {
    min-width: 640px;
}

.schedule-table td:first-child {
    font-weight: 650;
}

.organizer-grid>div {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 8.25rem;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
}

.organizer-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

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

.organizer-grid span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.95rem;
}

.faq-list {
    display: grid;
    gap: 12px;
}

details {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    padding: 18px 20px;
}

summary {
    cursor: pointer;
    font-weight: 800;
}

details p {
    margin: 12px 0 0;
    color: var(--muted);
}

.contact-card a {
    color: #2437a6;
    font-weight: 750;
}

.site-footer {
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 24px 60px;
    color: rgba(255, 255, 255, 0.68);
}

.site-footer p {
    margin: 0 0 6px;
}

@media (max-width: 1000px) {

    .card-grid.four,
    .card-grid.five,
    .card-grid.two,
    .card-grid.three,
    .organizer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .organizer-grid>div {
        height: 8.75rem;
    }

    .two-column {
        grid-template-columns: 1fr;
    }

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

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

    .tracks-panel {
        padding: 24px;
    }
}

@media (max-width: 680px) {
    .site-header {
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
        padding: 12px 18px;
    }

    .brand {
        flex: 1;
        min-width: 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 12px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        overflow-x: visible;
    }

    .site-header.is-nav-open .nav {
        display: flex;
    }

    .nav a {
        padding: 12px 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav a[aria-current="page"] {
        box-shadow: inset 3px 0 0 var(--accent-2);
    }
}

/* Registration portal visual system */
.registration-page [hidden] {
    display: none !important;
}

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

.registration-page .page-header {
    position: relative;
    padding-bottom: 32px;
}

.registration-page .page-header::after {
    content: "";
    display: block;
    width: min(190px, 34vw);
    height: 2px;
    margin-top: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-2), rgba(93, 124, 255, 0));
}

.registration-section {
    padding-top: 8px;
}

.registration-portal {
    position: relative;
    isolation: isolate;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(24px, 4.5vw, 52px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(241, 246, 255, 0.94)),
        rgba(255, 255, 255, 0.94);
    box-shadow:
        0 36px 110px rgba(2, 8, 27, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(28px) saturate(125%);
}

.registration-portal::before,
.registration-portal::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}

.registration-portal::before {
    top: -210px;
    right: -170px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.16), rgba(93, 124, 255, 0.07) 45%, transparent 70%);
}

.registration-portal::after {
    bottom: -300px;
    left: -270px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(93, 124, 255, 0.14), transparent 68%);
}

.registration-portal>* {
    position: relative;
    z-index: 1;
}

.portal-masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(29, 45, 83, 0.1);
}

.portal-masthead-copy {
    max-width: 760px;
}

.portal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 11px;
    color: #3247b8;
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portal-kicker>span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00b88b;
    box-shadow: 0 0 0 5px rgba(0, 184, 139, 0.12), 0 0 18px rgba(0, 184, 139, 0.42);
}

.registration-portal .portal-title {
    max-width: none;
    margin: 0;
    color: #111b33;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    letter-spacing: -0.055em;
}

.portal-subtitle {
    max-width: 670px;
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 1.03rem;
}

.portal-region-notice {
    max-width: 670px;
    margin: 15px 0 0;
    padding: 11px 14px;
    border: 1px solid rgba(183, 128, 26, 0.24);
    border-left: 4px solid #d7a028;
    border-radius: 12px;
    color: #684b13;
    background: linear-gradient(135deg, rgba(255, 250, 231, 0.96), rgba(255, 244, 211, 0.8));
    box-shadow: 0 8px 20px rgba(111, 79, 22, 0.06);
    font-size: 0.89rem;
    line-height: 1.5;
}

.portal-region-notice strong {
    color: #533a09;
    font-weight: 850;
}

.portal-mark {
    position: relative;
    flex: 0 0 108px;
    width: 108px;
    height: 108px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 68% 25%, rgba(0, 212, 255, 0.9), transparent 16%),
        linear-gradient(145deg, #17265d, #090f27);
    box-shadow: 0 18px 40px rgba(25, 46, 119, 0.26);
    transform: rotate(3deg);
}

.portal-mark::before,
.portal-mark::after,
.portal-mark span {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
}

.portal-mark::before {
    inset: 19px -27px -15px 22px;
}

.portal-mark::after {
    inset: 38px 9px -31px -20px;
    border-color: rgba(0, 212, 255, 0.42);
}

.portal-mark span:nth-child(1) {
    top: 22px;
    left: 28px;
    width: 9px;
    height: 9px;
    border: 0;
    background: #7e91ff;
    box-shadow: 0 0 18px rgba(126, 145, 255, 0.9);
}

.portal-mark span:nth-child(2) {
    right: 24px;
    bottom: 21px;
    width: 14px;
    height: 14px;
    border-color: rgba(255, 255, 255, 0.68);
}

.portal-mark span:nth-child(3) {
    top: 49px;
    left: 51px;
    width: 5px;
    height: 5px;
    border: 0;
    background: white;
}

.portal-loading {
    position: relative;
    margin: 0;
    padding: 18px 20px 18px 52px;
    border: 1px solid rgba(93, 124, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.96), rgba(232, 250, 255, 0.9));
    color: #273b8e;
    box-shadow: 0 12px 30px rgba(52, 74, 155, 0.08);
    font-weight: 700;
}

.portal-loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 21px;
    width: 15px;
    height: 15px;
    margin-top: -9px;
    border: 2px solid rgba(93, 124, 255, 0.25);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: portal-spin 0.8s linear infinite;
}

.portal-loading[data-state="error"]::before {
    content: none;
    animation: none;
}

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

.auth-tabs {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 30px;
    padding: 7px;
    border: 1px solid rgba(42, 59, 105, 0.11);
    border-radius: 19px;
    background: rgba(226, 233, 249, 0.68);
    box-shadow: inset 0 1px 3px rgba(13, 25, 57, 0.05);
}

.auth-tab {
    position: relative;
    min-height: 52px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #66718a;
    background: transparent;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-tab:hover:not([aria-selected="true"]) {
    color: #2d3f8f;
    background: rgba(255, 255, 255, 0.5);
}

.auth-tab[aria-selected="true"] {
    border-color: rgba(255, 255, 255, 0.88);
    color: white;
    background: linear-gradient(135deg, #657fff, #3c53da);
    box-shadow: 0 10px 24px rgba(55, 76, 187, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.auth-panel:not([hidden]),
#initial-password-panel:not([hidden]),
#dashboard-panel:not([hidden]) {
    animation: portal-panel-in 0.34s ease both;
}

@keyframes portal-panel-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.registration-intro-card {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.8fr);
    gap: 26px;
    align-items: center;
    margin-bottom: 30px;
    padding: 22px 24px;
    border: 1px solid rgba(93, 124, 255, 0.13);
    border-radius: 22px;
    background:
        linear-gradient(120deg, rgba(245, 247, 255, 0.96), rgba(236, 250, 255, 0.76));
}

.registration-intro {
    max-width: 760px;
    margin: 0;
    color: #48546d;
    font-size: 0.98rem;
}

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

.registration-intro-meta span {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 76px;
    padding: 10px;
    border: 1px solid rgba(93, 124, 255, 0.11);
    border-radius: 14px;
    color: #66718a;
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.7rem;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
}

.registration-intro-meta strong {
    color: #2538a6;
    font-size: 1.25rem;
    line-height: 1;
}

.registration-page form,
.registration-page fieldset {
    min-width: 0;
}

.form-section {
    position: relative;
    margin: 0 0 24px;
    padding: 28px;
    border: 1px solid rgba(38, 56, 103, 0.12);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 255, 0.86));
    box-shadow: 0 14px 42px rgba(29, 45, 85, 0.07), inset 0 1px 0 white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-section:focus-within {
    border-color: rgba(93, 124, 255, 0.3);
    box-shadow: 0 18px 48px rgba(45, 64, 132, 0.1), 0 0 0 4px rgba(93, 124, 255, 0.045);
}

.form-section>legend {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: -4px;
    padding: 0 10px 0 4px;
    color: #17213a;
    background: rgba(255, 255, 255, 0.98);
    font-size: 1.02rem;
    font-weight: 850;
    letter-spacing: -0.015em;
}

.form-step {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: white;
    background: linear-gradient(145deg, #657fff, #3a4fd3);
    box-shadow: 0 8px 18px rgba(58, 79, 211, 0.22);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.form-grid {
    display: grid;
    gap: 18px;
}

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

.form-grid.three-fields,
.form-grid.member-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field {
    min-width: 0;
}

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: #202b44;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.005em;
}

.form-field input {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    border: 1px solid rgba(35, 49, 82, 0.19);
    border-radius: 13px;
    color: #172033;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 4px rgba(20, 31, 58, 0.025), inset 0 1px 2px rgba(20, 31, 58, 0.025);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-field input:hover:not(:disabled):not([readonly]) {
    border-color: rgba(67, 86, 158, 0.34);
}

.form-field input:focus {
    border-color: rgba(68, 91, 216, 0.76);
    outline: 0;
    background: white;
    box-shadow: 0 0 0 4px rgba(93, 124, 255, 0.12), 0 7px 18px rgba(45, 65, 145, 0.08);
}

.form-field input[readonly] {
    color: #5a6479;
    border-style: dashed;
    background: rgba(234, 238, 247, 0.78);
    cursor: not-allowed;
}

.form-field small,
.field-help {
    display: block;
    margin: 8px 0 0;
    color: #68738a;
    font-size: 0.83rem;
    line-height: 1.48;
}

.form-field small a {
    color: #2437a6;
    font-weight: 700;
}

.field-error {
    color: #a01f2b;
    font-size: 0.82rem;
    font-weight: 750;
}

.field-error:not(:empty) {
    display: block;
    margin-top: 6px;
}

.form-field input[aria-invalid="true"] {
    border-color: #bd3340;
    background: #fffafa;
    box-shadow: 0 0 0 4px rgba(189, 51, 64, 0.1);
}

.form-section.field-container-invalid {
    border-color: rgba(189, 51, 64, 0.58);
    box-shadow: 0 0 0 4px rgba(189, 51, 64, 0.08);
}

.field-container-invalid {
    border-color: #ae2929;
    box-shadow: 0 0 0 2px rgba(174, 41, 41, 0.12);
}

.required-marker {
    color: #c02c3b;
}

.optional-marker {
    display: inline-flex;
    margin-left: 7px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #66718a;
    background: #edf0f7;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.track-options .field-help {
    margin: 3px 0 0;
}

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

.checkbox-grid .track-option {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 13px;
    align-items: center;
    min-height: 88px;
    padding: 17px 17px 17px 19px;
    border: 1px solid rgba(36, 53, 98, 0.13);
    border-radius: 17px;
    color: #24304a;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 7px 22px rgba(21, 34, 71, 0.045);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.checkbox-grid .track-option:hover {
    border-color: rgba(79, 101, 220, 0.38);
    background: white;
    box-shadow: 0 12px 28px rgba(42, 62, 144, 0.1);
    transform: translateY(-2px);
}

.track-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    opacity: 0;
}

.track-option-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.track-option-copy strong {
    color: #202c48;
    font-size: 0.94rem;
    line-height: 1.25;
}

.track-option-copy small {
    margin-top: 4px;
    color: #747e92;
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1.35;
}

.track-option-check {
    position: relative;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 2px solid #c8cfde;
    border-radius: 9px;
    background: #f8f9fc;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.track-option-check::after {
    content: "";
    width: 8px;
    height: 4px;
    border: solid white;
    border-width: 0 0 2px 2px;
    opacity: 0;
    transform: translateY(-1px) rotate(-45deg) scale(0.5);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.track-option:has(input:checked) {
    border-color: rgba(78, 100, 224, 0.58);
    background: linear-gradient(135deg, rgba(242, 245, 255, 0.98), rgba(235, 251, 255, 0.86));
    box-shadow: 0 11px 29px rgba(52, 74, 176, 0.13), inset 3px 0 0 #607bff;
}

.track-option:has(input:checked) .track-option-check {
    border-color: #536ee9;
    background: linear-gradient(135deg, #657fff, #3f56d6);
    transform: scale(1.04);
}

.track-option:has(input:checked) .track-option-check::after {
    opacity: 1;
    transform: translateY(-1px) rotate(-45deg) scale(1);
}

.track-option:has(input:focus-visible) {
    outline: 3px solid rgba(0, 125, 180, 0.78);
    outline-offset: 3px;
}

.member-editor-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% -50%, rgba(0, 212, 255, 0.28), transparent 45%),
        linear-gradient(135deg, #111c3c, #172654);
    box-shadow: 0 14px 32px rgba(11, 24, 59, 0.18);
}

.member-count-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.member-count-copy span {
    color: rgba(255, 255, 255, 0.59);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.member-count-copy strong {
    margin-top: 2px;
    color: white;
    font-size: 0.98rem;
}

.registration-page .member-add-button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: #132042;
    background: linear-gradient(135deg, #f9fdff, #caf5ff);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.14);
    font-size: 0.83rem;
    white-space: nowrap;
    transition: transform 0.17s ease, box-shadow 0.17s ease, background 0.17s ease;
}

.member-add-button>span {
    margin-right: 7px;
    color: #3148bf;
    font-size: 1.22rem;
    font-weight: 500;
    line-height: 1;
}

.member-add-button:hover:not(:disabled) {
    background: white;
    box-shadow: 0 11px 26px rgba(0, 212, 255, 0.22);
    transform: translateY(-1px);
}

.member-slots {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.member-slot {
    position: relative;
    margin: 0;
    padding: 21px;
    border: 1px solid rgba(38, 55, 98, 0.12);
    border-radius: 19px;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.99), rgba(247, 249, 255, 0.94));
    box-shadow: 0 8px 24px rgba(28, 42, 80, 0.055);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.member-slot:focus-within {
    border-color: rgba(92, 119, 245, 0.34);
    box-shadow: 0 13px 32px rgba(43, 61, 137, 0.1);
    transform: translateY(-1px);
}

.member-slot:first-child {
    border-color: rgba(81, 105, 225, 0.28);
    background: linear-gradient(125deg, rgba(250, 251, 255, 1), rgba(239, 249, 255, 0.94));
    box-shadow: 0 10px 27px rgba(49, 70, 168, 0.08), inset 3px 0 0 #627dff;
}

.member-slot>legend {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border: 1px solid rgba(74, 96, 199, 0.13);
    border-radius: 999px;
    color: #273769;
    background: #f1f4ff;
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.01em;
}

.member-number {
    display: inline-grid;
    place-items: center;
    min-width: 27px;
    height: 27px;
    padding: 0 6px;
    border-radius: 9px;
    color: white;
    background: linear-gradient(135deg, #647fff, #455bd8);
    box-shadow: 0 5px 12px rgba(63, 84, 206, 0.18);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
}

.member-slot-label {
    color: #273769;
}

.member-requirement {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.63rem;
    font-weight: 850;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.required-member {
    color: #2340af;
    background: rgba(93, 124, 255, 0.12);
}

.member-slot .optional-marker {
    margin-left: 0;
    color: #67728a;
    background: #e9edf6;
}

.member-slot .form-grid.member-fields {
    align-items: start;
}

.clear-member-button,
.remove-member-button,
.member-remove-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 7px 10px;
    border: 0;
    border-radius: 9px;
    color: #8a3040;
    background: rgba(184, 54, 75, 0.07);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.16s ease, background 0.16s ease;
}

.clear-member-button:hover,
.remove-member-button:hover,
.member-remove-button:hover {
    color: #6f1f2e;
    background: rgba(184, 54, 75, 0.13);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.split-actions {
    justify-content: space-between;
}

.form-status {
    min-height: 1.5em;
    margin: 14px 0;
    font-size: 0.94rem;
    font-weight: 750;
}

.form-status:not(:empty) {
    padding: 11px 13px;
    border-left: 4px solid currentColor;
    border-radius: 8px;
}

.form-status[data-state="success"] {
    color: #145c38;
    background: #e9f7ef;
}

.form-status[data-state="error"] {
    color: #8d1e1e;
    background: #fff0f0;
}

.form-status[data-state="warning"] {
    color: #765312;
    background: #fff8df;
}

.form-status[data-state="loading"] {
    color: #273d92;
    background: #eef1ff;
}

.registration-spam-notice {
    margin: 12px 0 0;
    padding: 13px 15px;
    border: 1px solid rgba(141, 30, 30, 0.2);
    border-left: 5px solid #b4232e;
    border-radius: 10px;
    color: #8d1e1e;
    background: #fff0f0;
    box-shadow: 0 8px 22px rgba(141, 30, 30, 0.08);
    font-size: 0.93rem;
    font-weight: 650;
    line-height: 1.5;
}

.registration-spam-notice strong {
    color: #74131d;
    font-weight: 850;
}

.registration-action-panel {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0, rgba(0, 212, 255, 0.2), transparent 34%),
        linear-gradient(135deg, #0e1834, #172655);
    box-shadow: 0 20px 46px rgba(9, 20, 51, 0.2);
}

.confirmation-field {
    margin: 0;
    border-radius: 13px;
}

.confirmation-field>label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: #303b55;
    background: white;
    font-weight: 700;
    cursor: pointer;
}

.confirmation-field input {
    flex: 0 0 auto;
    width: 1.08rem;
    height: 1.08rem;
    margin: 0.18rem 0 0;
    accent-color: var(--accent);
}

.registration-action-panel .confirmation-field>label {
    padding: 15px 16px;
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.88rem;
    line-height: 1.45;
}

.confirmation-field>label:hover {
    border-color: rgba(113, 137, 255, 0.4);
}

.registration-action-panel .confirmation-field input {
    accent-color: #7e94ff;
}

.registration-action-panel .field-error {
    color: #ffb4bd;
}

.registration-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 15px;
}

.registration-submit-row .form-status {
    flex: 1 1 auto;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
}

.registration-submit-row .form-status:empty {
    min-height: 0;
}

.registration-submit-row .form-status[data-state="success"] {
    color: #baf5d4;
    background: rgba(29, 155, 91, 0.17);
}

.registration-submit-row .form-status[data-state="error"] {
    color: #ffc0c6;
    background: rgba(202, 57, 72, 0.17);
}

.registration-submit-row .form-status[data-state="warning"] {
    color: #ffe0a2;
    background: rgba(190, 129, 21, 0.16);
}

.registration-submit-row .form-status[data-state="loading"] {
    color: #c7d4ff;
    background: rgba(93, 124, 255, 0.16);
}

.registration-page .form-submit,
.registration-page .registration-submit-row .button.primary {
    flex: 0 0 auto;
    min-width: 178px;
    min-height: 48px;
    gap: 9px;
    color: #091a35;
    background: linear-gradient(135deg, #f9fdff, #9cecff);
    box-shadow: 0 10px 26px rgba(0, 212, 255, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.registration-page .form-submit:hover:not(:disabled),
.registration-page .registration-submit-row .button.primary:hover:not(:disabled) {
    box-shadow: 0 13px 31px rgba(0, 212, 255, 0.28);
    transform: translateY(-1px);
}

.edit-action-panel {
    margin-top: 8px;
}

.edit-action-panel .registration-submit-row {
    margin-top: 0;
}

.auth-panel-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    gap: 18px;
    align-items: stretch;
}

.auth-panel-aside {
    position: relative;
    min-height: 420px;
    padding: clamp(28px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 25px;
    color: white;
    background:
        radial-gradient(circle at 85% 15%, rgba(0, 212, 255, 0.3), transparent 31%),
        radial-gradient(circle at 5% 95%, rgba(93, 124, 255, 0.35), transparent 38%),
        linear-gradient(145deg, #0c1632, #17285a);
    box-shadow: 0 18px 42px rgba(11, 25, 64, 0.19);
}

.auth-panel-aside::after {
    content: "";
    position: absolute;
    right: -74px;
    bottom: -86px;
    width: 250px;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(255, 255, 255, 0.025), 0 0 0 76px rgba(255, 255, 255, 0.018);
}

.auth-panel-aside .portal-kicker {
    color: #8beaff;
}

.auth-panel-aside h3 {
    max-width: 400px;
    margin: 20px 0 16px;
    color: white;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.auth-panel-aside>p:not(.portal-kicker) {
    max-width: 460px;
    color: rgba(255, 255, 255, 0.68);
}

.auth-feature-list {
    display: grid;
    gap: 10px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.auth-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-feature-list span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #052837;
    background: #83eaff;
    font-size: 0.72rem;
    font-weight: 900;
}

.narrow-form-panel {
    max-width: 640px;
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid rgba(35, 52, 96, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 36px rgba(29, 44, 82, 0.07);
}

.narrow-form-panel>.form-field+.form-field {
    margin-top: 16px;
}

.narrow-form-panel>p {
    color: var(--muted);
}

.login-form-panel {
    max-width: none;
}

.login-form-panel h3 {
    margin-bottom: 9px;
    color: #17213a;
    font-size: 1.45rem;
}

.login-lock {
    position: relative;
    width: 45px;
    height: 39px;
    margin-bottom: 22px;
    border-radius: 13px;
    background: linear-gradient(145deg, #647fff, #4056d8);
    box-shadow: 0 10px 22px rgba(61, 81, 204, 0.23);
}

.login-lock::before {
    content: "";
    position: absolute;
    top: -11px;
    left: 12px;
    width: 17px;
    height: 17px;
    border: 3px solid #4d65df;
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.login-lock::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 20px;
    width: 5px;
    height: 10px;
    border-radius: 999px;
    background: white;
}

.login-form-panel form {
    margin-top: 25px;
}

.login-form-panel .form-actions {
    margin-top: 22px;
}

.login-form-panel .button.primary {
    gap: 9px;
    box-shadow: 0 9px 22px rgba(58, 78, 194, 0.2);
}

.text-button {
    padding: 5px 2px;
    border: 0;
    color: #344bc0;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    text-underline-offset: 3px;
    cursor: pointer;
}

.text-button:hover {
    color: #1d2f9a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-gate {
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid rgba(93, 124, 255, 0.18);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(250, 251, 255, 0.98), rgba(236, 248, 255, 0.9));
    box-shadow: 0 18px 46px rgba(34, 54, 121, 0.1);
}

.account-gate>p {
    max-width: 780px;
    color: var(--muted);
}

.security-callout,
.dashboard-header,
.edit-form-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.security-callout,
.dashboard-header {
    margin-bottom: 22px;
    padding: 21px 22px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 94% -60%, rgba(0, 212, 255, 0.34), transparent 38%),
        linear-gradient(135deg, #111d3e, #1a2a5b);
}

.security-callout .eyebrow,
.dashboard-header .eyebrow {
    margin-bottom: 8px;
    color: #83eaff;
}

.registration-page .security-callout h2,
.registration-page .dashboard-header h2 {
    margin-bottom: 0;
    color: white;
}

.registration-page .security-callout .button.compact,
.registration-page .dashboard-header .button.compact,
.registration-page .edit-form-heading .button.compact {
    flex: 0 0 auto;
    margin-top: 0;
}

.registration-page .security-callout .button.secondary,
.registration-page .dashboard-header .button.secondary {
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.team-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 18px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.team-summary>div {
    min-width: 0;
    padding: 17px;
    border: 1px solid rgba(37, 54, 98, 0.11);
    border-radius: 16px;
    background: linear-gradient(145deg, white, #f7f9fe);
    box-shadow: 0 7px 20px rgba(23, 37, 75, 0.05);
}

.team-summary dt {
    margin-bottom: 4px;
    color: #747f96;
    font-size: 0.67rem;
    font-weight: 850;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.team-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #1e2a46;
    font-size: 0.92rem;
    font-weight: 750;
}

.dashboard-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.account-card {
    margin-top: 20px;
    padding: 22px;
    border: 1px solid rgba(36, 53, 96, 0.11);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(247, 249, 255, 0.92));
    box-shadow: 0 11px 30px rgba(25, 39, 79, 0.06);
}

.dashboard-content-grid .account-card {
    margin-top: 0;
}

.account-card h3 {
    color: #1c2843;
    font-size: 1.05rem;
}

.account-card>p,
.account-card li {
    color: var(--muted);
}

.account-card>p:last-child {
    margin-bottom: 0;
}

.dashboard-list {
    margin: 0;
    padding-left: 1.2rem;
}

.dashboard-list li+li {
    margin-top: 5px;
}

#dashboard-sync-status {
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
}

#dashboard-sync-status[data-state="success"] {
    color: #145c38;
    background: #e9f7ef;
}

#dashboard-sync-status[data-state="warning"] {
    color: #765312;
    background: #fff8df;
}

.member-summary-card {
    margin-bottom: 20px;
}

.member-summary-card .table-wrapper {
    border: 1px solid rgba(32, 49, 92, 0.1);
    border-radius: 14px;
    background: white;
}

.member-table {
    min-width: 680px;
}

.member-table th,
.member-table td {
    overflow-wrap: anywhere;
}

.member-table th {
    color: #536078;
    background: #f4f6fb;
}

.member-table tr:last-child td {
    border-bottom: 0;
}

.edit-team-form {
    margin-top: 6px;
    padding: 26px;
    border: 1px solid rgba(74, 97, 207, 0.13);
    border-radius: 24px;
    background: rgba(246, 248, 255, 0.74);
}

.edit-form-heading {
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(29, 45, 84, 0.1);
}

.edit-form-heading h3 {
    margin-bottom: 6px;
}

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

.password-card {
    margin-top: 26px;
    background:
        radial-gradient(circle at 100% 0, rgba(0, 212, 255, 0.1), transparent 32%),
        linear-gradient(145deg, white, #f4f8ff);
}

.password-card>p {
    margin-bottom: 18px;
}

.form-status:not(:empty) {
    border-left-width: 3px;
    border-radius: 11px;
}

.registration-page .button {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.registration-page .button,
.registration-page button,
.registration-page input {
    -webkit-tap-highlight-color: transparent;
}

.registration-page .button:disabled,
.registration-page button:disabled,
.registration-page input:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.registration-page :is(button, input, a):focus-visible {
    outline: 3px solid rgba(0, 125, 180, 0.78);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .portal-mark {
        flex-basis: 88px;
        width: 88px;
        height: 88px;
        border-radius: 25px;
    }

    .registration-intro-card,
    .auth-panel-layout {
        grid-template-columns: 1fr;
    }

    .registration-intro-meta {
        max-width: 460px;
    }

    .auth-panel-aside {
        min-height: 0;
    }

    .form-grid.member-fields,
    .form-grid.three-fields,
    .team-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .registration-page .page-header {
        padding-bottom: 22px;
    }

    .registration-page .registration-section {
        padding-top: 5px;
    }

    .registration-page .registration-portal {
        padding: 19px;
        border-radius: 25px;
    }

    .portal-masthead {
        align-items: flex-start;
        margin-bottom: 22px;
        padding-bottom: 22px;
    }

    .portal-mark {
        display: none;
    }

    .portal-subtitle {
        font-size: 0.92rem;
    }

    .auth-tabs {
        grid-template-columns: 1fr;
        margin-bottom: 22px;
    }

    .auth-tab {
        min-height: 48px;
    }

    .registration-intro-card {
        gap: 18px;
        padding: 19px;
    }

    .registration-intro-meta {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .registration-intro-meta span {
        min-height: 70px;
        padding: 8px 5px;
        font-size: 0.61rem;
    }

    .form-section,
    .narrow-form-panel,
    .account-card {
        padding: 19px;
        border-radius: 20px;
    }

    .form-section>legend {
        gap: 8px;
        padding-right: 7px;
        font-size: 0.94rem;
    }

    .form-step {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .form-grid.two-fields,
    .checkbox-grid,
    .dashboard-content-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-grid .track-option {
        min-height: 78px;
    }

    .member-editor-toolbar {
        align-items: stretch;
        flex-direction: column;
        padding: 15px;
    }

    .registration-page .member-add-button {
        align-self: stretch;
    }

    .member-slot {
        padding: 17px;
    }

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

    .registration-submit-row .form-submit {
        width: 100%;
    }

    .auth-panel-aside {
        padding: 27px 23px;
        border-radius: 21px;
    }

    .login-form-panel .split-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .security-callout,
    .dashboard-header,
    .edit-form-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .registration-page .security-callout .button.compact,
    .registration-page .dashboard-header .button.compact,
    .registration-page .edit-form-heading .button.compact {
        align-self: flex-start;
    }

    .edit-team-form {
        padding: 18px;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .portal-loading::before {
        animation: none;
    }

    .auth-panel:not([hidden]),
    #initial-password-panel:not([hidden]),
    #dashboard-panel:not([hidden]) {
        animation: none;
    }

    .auth-tab,
    .form-section,
    .form-field input,
    .checkbox-grid .track-option,
    .track-option-check,
    .member-slot,
    .registration-page .button {
        scroll-behavior: auto;
        transition: none;
    }
}

/* Contextual BibTeX guidance */
.citation-block {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.citation-block>p {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.citation-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.citation-actions .button.compact {
    margin-top: 0;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.citation-actions .button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.citation-actions .button:focus-visible {
    outline: 3px solid rgba(0, 125, 180, 0.78);
    outline-offset: 3px;
}

.copy-status {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.citation-block pre {
    max-width: 100%;
    margin: 0;
    padding: 16px;
    overflow: auto;
    border-radius: 13px;
    background: #071127;
    color: #f3f6ff;
    font: 0.78rem/1.5 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-align: left;
    white-space: pre;
}

.citation-block pre code {
    padding: 0;
    border-radius: 0;
    color: inherit;
    background: transparent;
    font: inherit;
}

.citation-note {
    margin-top: 20px;
    padding: 13px 15px;
    border-radius: 12px;
    color: #273158;
    background: rgba(93, 124, 255, 0.1);
    font-weight: 750;
}

.clipboard-fallback {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (max-width: 680px) {

    .section {
        padding: 58px 16px;
    }

    .hero {
        padding-top: 40px;
    }

    .hero-card {
        padding: 34px 24px;
        border-radius: 26px;
    }

    .flowbench-resource {
        padding: 21px;
    }

    .flowbench-resource-header {
        align-items: stretch;
        flex-direction: column;
    }

    .flowbench-resource-header .button.compact {
        align-self: flex-start;
    }

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

    .card-grid.four,
    .card-grid.five,
    .card-grid.two,
    .organizer-grid {
        grid-template-columns: 1fr;
    }

    .content-card,
    .two-column.content-card,
    .organizer-grid.content-card,
    .faq-list.content-card,
    .rule-list.content-card,
    .step-list.content-card {
        padding: 24px;
    }
}
