@font-face {
    font-family: "Neue Haas Display";
    src: url("/assets/fonts/Neue Haas Display-Roman.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Neue Haas Display";
    src: url("/assets/fonts/Neue Haas Display-Medium.ttf") format("truetype");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Neue Haas Display";
    src: url("/assets/fonts/Neue Haas Display-Bold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Neue Haas Display";
    src: url("/assets/fonts/Neue Haas Display-Black.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

:root {
    --blaze-primary: #ff006e;
    --blaze-secondary: #0a0f1c;
    --blaze-accent: #00d9ff;
    --blaze-mint: #52ddc4;
    --blaze-purple: #7b3ff2;
    --blaze-cream: #f5f0e7;
    --blaze-gray: #ededed;
    --blaze-panel: rgba(255, 255, 255, 0.94);
    --blaze-line: rgba(10, 15, 28, 0.1);
    --blaze-muted: rgba(10, 15, 28, 0.62);
    --blaze-shadow: 0 28px 70px rgba(10, 15, 28, 0.12);
    --font-primary: "Neue Haas Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--blaze-secondary);
    font-family: var(--font-primary);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    filter: blur(14px);
    pointer-events: none;
    z-index: 0;
}

body.portal-app {
    background:
        radial-gradient(circle at top right, rgba(0, 217, 255, 0.16), transparent 24%),
        radial-gradient(circle at left 10%, rgba(255, 0, 110, 0.14), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, var(--blaze-cream) 100%);
}

body.portal-app::before {
    top: 70px;
    left: -120px;
    width: 340px;
    height: 340px;
    background: rgba(255, 0, 110, 0.12);
}

body.portal-app::after {
    top: 130px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(0, 217, 255, 0.1);
}

body.portal-auth {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 0, 110, 0.28), transparent 24%),
        radial-gradient(circle at 82% 10%, rgba(0, 217, 255, 0.18), transparent 20%),
        linear-gradient(135deg, #05070d 0%, #0a0f1c 55%, #151c30 100%);
    color: #ffffff;
}

body.portal-auth::before {
    top: 18%;
    right: 10%;
    width: 260px;
    height: 260px;
    background: rgba(123, 63, 242, 0.28);
}

body.portal-auth::after {
    bottom: 12%;
    left: 8%;
    width: 280px;
    height: 280px;
    background: rgba(82, 221, 196, 0.16);
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--blaze-primary);
    text-decoration: none;
}

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

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

.shell {
    width: min(1400px, calc(100vw - 48px));
    margin: 0 auto;
    padding: 132px 0 56px;
    position: relative;
    z-index: 1;
}

.topbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, calc(100vw - 48px));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 20;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    color: inherit;
    min-width: 0;
}

.brand-mark {
    width: 74px;
    height: 74px;
    flex: 0 0 74px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px;
    box-shadow: 0 18px 45px rgba(10, 15, 28, 0.18);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--blaze-muted);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.brand-title,
.hero h2,
.panel h2,
.panel h3,
.portal-footer__title {
    margin: 0;
    font-weight: 900;
    line-height: 0.94;
    letter-spacing: -0.04em;
}

.brand-title {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    color: var(--blaze-secondary);
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(10, 15, 28, 0.08);
    box-shadow: 0 18px 45px rgba(10, 15, 28, 0.1);
    backdrop-filter: blur(20px);
}

.nav a,
.button,
.button-link,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 18px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav a {
    color: var(--blaze-secondary);
    font-size: 0.92rem;
    font-weight: 500;
}

.nav a:hover {
    color: var(--blaze-primary);
    transform: translateY(-1px);
}

.nav a.is-active {
    background: var(--blaze-secondary);
    color: #ffffff;
}

.nav .nav-cta {
    background: var(--blaze-mint);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(82, 221, 196, 0.26);
}

.nav .nav-cta:hover {
    color: #ffffff;
    background: #39c7ad;
    box-shadow: 0 16px 32px rgba(82, 221, 196, 0.32);
}

.button,
.button-link {
    background: var(--blaze-primary);
    color: #ffffff;
    box-shadow: 0 14px 32px rgba(255, 0, 110, 0.22);
}

.button:hover,
.button-link:hover {
    transform: translateY(-2px);
    background: #df005f;
    color: #ffffff;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--blaze-secondary);
    border-color: rgba(10, 15, 28, 0.14);
    box-shadow: none;
}

.button-secondary:hover {
    background: rgba(10, 15, 28, 0.06);
    color: var(--blaze-secondary);
}

.ghost-button {
    background: transparent;
    color: var(--blaze-secondary);
    border-color: rgba(10, 15, 28, 0.12);
}

.ghost-button:hover {
    transform: translateY(-1px);
    border-color: rgba(10, 15, 28, 0.24);
    color: var(--blaze-primary);
}

.button-danger,
.ghost-button.button-danger {
    color: var(--blaze-primary);
    border-color: rgba(255, 0, 110, 0.2);
}

.button-danger:hover,
.ghost-button.button-danger:hover {
    color: #ffffff;
    background: var(--blaze-primary);
}

.content {
    margin-top: 24px;
    display: grid;
    gap: 24px;
}

.identity-card,
.panel,
.login-card,
.stat-card,
.hero,
.flash {
    position: relative;
    background: var(--blaze-panel);
    border: 1px solid var(--blaze-line);
    border-radius: 32px;
    box-shadow: var(--blaze-shadow);
    backdrop-filter: blur(12px);
}

.identity-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    background: linear-gradient(135deg, #0a0f1c 0%, #151c30 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.identity-card span,
.identity-meta {
    color: rgba(255, 255, 255, 0.76);
}

.flash {
    padding: 16px 20px;
    border-left: 5px solid transparent;
    color: var(--blaze-secondary);
}

.flash-success {
    border-left-color: var(--blaze-mint);
}

.flash-error {
    border-left-color: var(--blaze-primary);
}

.flash-warning {
    border-left-color: var(--blaze-accent);
}

.toast-stack {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 80;
    display: grid;
    gap: 12px;
    width: min(360px, calc(100vw - 32px));
    pointer-events: none;
}

body.portal-app .toast-stack {
    top: 104px;
}

.toast {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(10, 15, 28, 0.08);
    background: rgba(10, 15, 28, 0.94);
    color: #ffffff;
    box-shadow: 0 22px 56px rgba(10, 15, 28, 0.24);
    pointer-events: auto;
    backdrop-filter: blur(14px);
    animation: toast-slide-in 0.22s ease;
}

.toast-success {
    border-color: rgba(82, 221, 196, 0.36);
}

.toast-error {
    border-color: rgba(255, 0, 110, 0.36);
}

.toast-warning {
    border-color: rgba(0, 217, 255, 0.36);
}

.toast__message {
    font-weight: 600;
    line-height: 1.4;
}

.toast__close {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}

.toast__close:hover {
    background: rgba(255, 255, 255, 0.18);
}

.toast.is-hiding {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 28px;
    padding: clamp(28px, 5vw, 54px);
    background:
        radial-gradient(circle at top right, rgba(0, 217, 255, 0.16), transparent 28%),
        radial-gradient(circle at left bottom, rgba(255, 0, 110, 0.18), transparent 26%),
        linear-gradient(135deg, #0a0f1c 0%, #151c30 100%);
    color: #ffffff;
}

.hero h2 {
    font-size: clamp(3.2rem, 7vw, 6rem);
    color: #ffffff;
    max-width: 11ch;
    margin-bottom: 20px;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 56ch;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.04rem;
}

.hero .eyebrow,
.portal-footer .eyebrow {
    color: rgba(255, 255, 255, 0.7);
}

.hero .button-secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.hero .button-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.hero-panel {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
    padding: 24px;
}

.hero-panel h3 {
    color: #ffffff;
    font-size: 1.9rem;
    margin-bottom: 16px;
}

.hero-panel .plain-list {
    color: rgba(255, 255, 255, 0.8);
}

.panel,
.login-card {
    padding: 28px;
}

.panel > h2,
.panel > h3 {
    color: var(--blaze-secondary);
    margin-bottom: 16px;
}

.panel > h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.panel > h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.panel p:first-child {
    margin-top: 0;
}

.helper-text,
.meta-text {
    color: var(--blaze-muted);
}

.stats-grid,
.dashboard-grid,
.two-column {
    display: grid;
    gap: 20px;
}

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

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

.stat-card {
    padding: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 237, 237, 0.98) 100%);
}

.stat-card:nth-child(1),
.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #0a0f1c 0%, #151c30 100%);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.stat-card:nth-child(1) p,
.stat-card:nth-child(1) span,
.stat-card:nth-child(4) p,
.stat-card:nth-child(4) span {
    color: rgba(255, 255, 255, 0.72);
}

.stat-card p,
.stat-card span {
    margin: 0;
    color: var(--blaze-muted);
}

.stat-card strong {
    display: block;
    margin: 10px 0;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 0.95;
}

.button-row,
.form-actions,
.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 12px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid rgba(10, 15, 28, 0.08);
}

th {
    color: rgba(10, 15, 28, 0.52);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

td strong {
    font-weight: 700;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(82, 221, 196, 0.14);
    color: #147766;
    font-size: 0.82rem;
    font-weight: 500;
}

.status-pill.deleted,
.status-pill.expired,
.status-pill.inactive {
    background: rgba(255, 0, 110, 0.12);
    color: var(--blaze-primary);
}

.status-pill.warning {
    background: rgba(0, 217, 255, 0.16);
    color: #006d82;
}

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

.field,
.field-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

label {
    font-weight: 700;
    color: var(--blaze-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea,
input[type="file"] {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(10, 15, 28, 0.12);
    background: rgba(255, 255, 255, 0.96);
    color: var(--blaze-secondary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 0, 110, 0.45);
    box-shadow: 0 0 0 4px rgba(255, 0, 110, 0.12);
}

.plain-list {
    margin: 0;
    padding-left: 18px;
}

.plain-list li + li {
    margin-top: 8px;
}

.upload-panel {
    display: grid;
    gap: 18px;
}

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

.upload-picker {
    position: relative;
}

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

.upload-dropzone {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 26px 24px;
    border: 1px dashed rgba(255, 0, 110, 0.28);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(0, 217, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 240, 231, 0.82) 100%);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.upload-dropzone:hover,
.upload-input:focus + .upload-dropzone,
.upload-dropzone.is-dragover {
    border-color: rgba(255, 0, 110, 0.58);
    box-shadow: 0 18px 42px rgba(255, 0, 110, 0.12);
    transform: translateY(-1px);
}

.upload-dropzone__icon {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: rgba(10, 15, 28, 0.92);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(10, 15, 28, 0.18);
}

.upload-dropzone__icon svg {
    width: 28px;
    height: 28px;
}

.upload-dropzone__title {
    color: var(--blaze-secondary);
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.upload-dropzone__meta {
    max-width: 48ch;
    color: var(--blaze-muted);
}

.upload-dropzone__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 152px;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(10, 15, 28, 0.1);
    color: var(--blaze-secondary);
    font-weight: 700;
    box-shadow: 0 14px 32px rgba(10, 15, 28, 0.08);
}

.upload-selection {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(10, 15, 28, 0.04);
    border: 1px solid rgba(10, 15, 28, 0.08);
}

.upload-selection__summary {
    font-weight: 700;
    color: var(--blaze-secondary);
}

.upload-selection__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.upload-selection__list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.8);
    color: var(--blaze-secondary);
}

.upload-selection__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-selection__size,
.upload-selection__more {
    color: var(--blaze-muted);
    white-space: nowrap;
}

.upload-selection__more {
    justify-content: center;
}

.upload-form__actions {
    align-items: center;
    justify-content: space-between;
}

.upload-form__hint {
    font-size: 0.92rem;
}

.upload-queue {
    display: grid;
    gap: 14px;
}

.queue-item {
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(237, 237, 237, 0.96) 100%);
    border: 1px solid rgba(10, 15, 28, 0.08);
}

.queue-item header,
.queue-item .queue-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.queue-item header {
    margin-bottom: 10px;
}

.queue-item progress {
    width: 100%;
    height: 12px;
    accent-color: var(--blaze-primary);
}

.queue-item .queue-meta {
    margin-top: 10px;
    color: var(--blaze-muted);
    font-size: 0.92rem;
}

.empty-state {
    padding: 20px;
    border-radius: 24px;
    background: rgba(10, 15, 28, 0.04);
    color: var(--blaze-muted);
}

.small-form {
    display: inline;
}

.mono {
    font-family: "Courier New", monospace;
}

body.portal-auth {
    background: #ffffff;
    color: var(--blaze-secondary);
}

body.portal-auth::before,
body.portal-auth::after {
    display: none;
}

body.is-modal-open {
    overflow: hidden;
}

.logo-mark {
    display: inline-flex;
}

.logo-mark img {
    display: block;
    max-width: 100%;
    height: auto;
}

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 1.02fr) minmax(440px, 0.98fr);
    background: #ffffff;
}

.login-visual {
    position: relative;
    overflow: hidden;
    padding: 32px;
    background:
        radial-gradient(circle at 16% 22%, rgba(255, 0, 110, 0.22), transparent 26%),
        linear-gradient(150deg, #17081f 0%, #0f0a23 48%, #0b1020 100%);
}

.login-visual::before,
.login-visual::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(58px);
    opacity: 0.48;
    pointer-events: none;
}

.login-visual::before {
    top: 38px;
    left: -70px;
    width: 240px;
    height: 240px;
    background: rgba(255, 0, 110, 0.38);
}

.login-visual::after {
    right: 72px;
    bottom: 96px;
    width: 210px;
    height: 210px;
    background: rgba(82, 221, 196, 0.34);
}

.login-visual__logo {
    position: relative;
    z-index: 2;
    width: min(220px, 44%);
}

.login-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.9;
    pointer-events: none;
}

.login-glow--one {
    top: 140px;
    left: 110px;
    width: 74px;
    height: 74px;
    background: radial-gradient(circle, rgba(190, 58, 255, 0.9) 0%, rgba(190, 58, 255, 0.16) 54%, transparent 72%);
}

.login-glow--two {
    top: 168px;
    left: 58px;
    width: 62px;
    height: 62px;
    background: radial-gradient(circle, rgba(82, 221, 196, 0.85) 0%, rgba(82, 221, 196, 0.14) 56%, transparent 74%);
}

.login-glow--three {
    top: 298px;
    left: 58%;
    width: 164px;
    height: 164px;
    background: radial-gradient(circle, rgba(255, 0, 110, 0.88) 0%, rgba(255, 0, 110, 0.18) 42%, transparent 74%);
}

.login-glow--four {
    right: 72px;
    top: 64px;
    width: 78px;
    height: 78px;
    background: radial-gradient(circle, rgba(82, 221, 196, 0.78) 0%, rgba(82, 221, 196, 0.14) 52%, transparent 74%);
}

.login-glow--five {
    left: 74px;
    bottom: 116px;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(82, 221, 196, 0.85) 0%, rgba(82, 221, 196, 0.14) 48%, transparent 72%);
}

.login-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 44px;
    background: #ffffff;
}

.login-panel {
    width: min(100%, 430px);
    display: grid;
    gap: 22px;
}

.login-copy {
    text-align: center;
}

.login-copy h1 {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 3.6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.05em;
    color: var(--blaze-secondary);
}

.login-copy p {
    margin: 14px 0 0;
    font-size: clamp(1.3rem, 2vw, 1.9rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: rgba(10, 15, 28, 0.92);
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-field {
    position: relative;
}

.login-field__icon {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 21px;
    height: 21px;
    color: rgba(10, 15, 28, 0.36);
    transform: translateY(-50%);
    pointer-events: none;
}

.login-field__icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.login-field input {
    width: 100%;
    height: 58px;
    padding: 0 20px 0 56px;
    border-radius: 999px;
    border: 1px solid rgba(10, 15, 28, 0.14);
    background: #ffffff;
    color: var(--blaze-secondary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-field input::placeholder {
    color: rgba(10, 15, 28, 0.34);
}

.login-help {
    justify-self: start;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5b89ad;
    font-weight: 700;
    cursor: pointer;
}

.login-help:hover {
    color: var(--blaze-primary);
}

.login-actions {
    margin-top: 6px;
}

.login-submit {
    width: 100%;
    padding: 16px 24px;
    border: 0;
    background: linear-gradient(90deg, #ff2f72 0%, #ff5d81 100%);
    box-shadow: 0 18px 40px rgba(255, 47, 114, 0.22);
    font-size: 1.14rem;
    font-weight: 700;
}

.login-submit:hover {
    background: linear-gradient(90deg, #f62067 0%, #ff4e74 100%);
}

.login-panel .flash {
    margin: 0;
    padding: 14px 18px;
    border-radius: 20px;
    box-shadow: none;
    backdrop-filter: none;
}

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-modal[hidden] {
    display: none;
}

.login-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 28, 0.56);
    backdrop-filter: blur(8px);
}

.login-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 30px 28px 26px;
    background: #ffffff;
    border: 1px solid rgba(10, 15, 28, 0.08);
    border-radius: 28px;
    box-shadow: 0 28px 80px rgba(10, 15, 28, 0.22);
}

.login-modal__dialog h2 {
    margin: 0 0 10px;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--blaze-secondary);
}

.login-modal__dialog p {
    margin: 0 0 22px;
    color: var(--blaze-muted);
}

.login-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(10, 15, 28, 0.12);
    border-radius: 999px;
    background: #ffffff;
    color: var(--blaze-secondary);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.login-modal__button {
    width: 100%;
}

.portal-footer {
    position: relative;
    overflow: hidden;
    margin-top: 28px;
    border-radius: 34px;
    box-shadow: 0 26px 70px rgba(10, 15, 28, 0.18);
    background: linear-gradient(90deg, var(--blaze-primary) 0%, var(--blaze-primary) 50%, var(--blaze-purple) 50%, var(--blaze-purple) 100%);
}

.portal-footer--compact {
    width: min(1400px, calc(100vw - 48px));
    margin: 0 auto 40px;
}

.portal-footer__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 28px;
    align-items: end;
    padding: clamp(28px, 4vw, 44px);
}

.portal-footer__title {
    color: #ffffff;
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    max-width: 10ch;
    margin-bottom: 14px;
}

.portal-footer__text {
    max-width: 48ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.portal-footer__links {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.portal-footer__links a {
    color: #ffffff;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 500;
}

.portal-footer__links a:hover {
    opacity: 0.76;
}

@media (max-width: 1100px) {
    .hero,
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-grid,
    .two-column,
    .portal-footer__inner {
        grid-template-columns: 1fr;
    }

    .portal-footer__links {
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .shell {
        width: calc(100vw - 28px);
        padding-top: 116px;
    }

    .topbar {
        top: 14px;
        width: calc(100vw - 28px);
        flex-direction: column;
        align-items: stretch;
    }

    .brand-lockup {
        align-items: center;
    }

    .nav {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .hero,
    .stats-grid,
    .dashboard-grid,
    .two-column,
    .grid-form {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        max-width: none;
    }

    .identity-card,
    .queue-item header,
    .queue-item .queue-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-footer {
        background: linear-gradient(180deg, var(--blaze-primary) 0%, var(--blaze-primary) 56%, var(--blaze-purple) 56%, var(--blaze-purple) 100%);
    }

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

    .login-visual {
        min-height: 300px;
        padding: 24px;
    }

    .login-visual__logo {
        width: min(190px, 48%);
    }

    .login-pane {
        padding: 34px 22px 42px;
    }

    .login-glow--three {
        left: auto;
        right: 44px;
        top: 170px;
        width: 148px;
        height: 148px;
    }

    .login-glow--five {
        bottom: 44px;
    }
}

@media (max-width: 640px) {
    .brand-mark {
        width: 62px;
        height: 62px;
        flex-basis: 62px;
        border-radius: 20px;
    }

    .brand-title {
        font-size: 1.45rem;
    }

    .nav a,
    .button,
    .button-link,
    .ghost-button {
        padding: 11px 15px;
    }

    .hero,
    .panel,
    .login-card,
    .stat-card,
    .identity-card,
    .portal-footer {
        border-radius: 26px;
    }

    .portal-footer--compact {
        width: calc(100vw - 28px);
    }

    th,
    td {
        padding: 14px 8px;
    }

    .login-visual {
        min-height: 250px;
    }

    .login-visual__logo {
        width: 150px;
    }

    .login-copy h1 {
        font-size: 2.15rem;
    }

    .login-copy p {
        font-size: 1.32rem;
    }

    .login-pane {
        padding: 28px 18px 34px;
    }

    .login-modal__dialog {
        padding: 26px 22px 22px;
    }

    .toast-stack,
    body.portal-app .toast-stack {
        top: 18px;
        right: 16px;
        width: calc(100vw - 32px);
    }
}
