html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    min-height: 100%;
    background: #eef3f8;
    color: #172033;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 0;
}

.account-entry-main {
    min-height: 100vh;
}

.hero-panel {
    max-width: 860px;
    padding: 2rem 0 2.5rem;
}

.workspace-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 270px);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(24, 58, 88, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 251, 0.88)),
        linear-gradient(135deg, rgba(47, 125, 115, 0.12), rgba(185, 51, 69, 0.08));
    box-shadow: 0 18px 48px rgba(18, 31, 48, 0.08);
}

.workspace-hero h1 {
    max-width: 800px;
    margin: 0;
    color: #111a27;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.02;
}

.hero-status {
    display: grid;
    align-content: center;
    gap: 0.25rem;
    min-height: 160px;
    border: 1px solid rgba(47, 125, 115, 0.18);
    border-radius: 8px;
    padding: 1rem;
    background: #16202c;
    color: #fff;
}

.hero-status span {
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    background: rgba(47, 125, 115, 0.26);
    color: #aee5d8;
    font-size: 0.75rem;
    font-weight: 800;
}

.hero-status strong {
    font-size: 1.3rem;
}

.hero-status small {
    color: #aebfcb;
}

.eyebrow {
    margin-bottom: .5rem;
    color: #2f7d73;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.lede {
    max-width: 720px;
    color: #485465;
    font-size: 1.12rem;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.35rem;
}

.feature-grid,
.stat-grid,
.command-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-grid article,
.stat-grid article,
.work-list,
.command-card,
.workspace-band,
.playground-editor,
.playground-list,
.playground-item,
.empty-state {
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    padding: 1.15rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 31, 48, 0.06);
}

.command-card,
.status-card {
    position: relative;
    overflow: hidden;
}

.command-card {
    display: grid;
    gap: 0.5rem;
    min-height: 190px;
    align-content: start;
}

.command-card::before,
.status-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--accent-color, #1f5f96);
}

.command-icon {
    display: inline-grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 7px;
    background: #eef4f8;
    color: var(--accent-color, #1f5f96);
    font-weight: 850;
}

.command-card h2,
.workspace-band h2 {
    margin: 0;
}

.command-card p {
    margin: 0;
    color: #526175;
}

.command-card a,
.muted-link {
    align-self: end;
    margin-top: 0.5rem;
    color: var(--accent-color, #1f5f96);
    font-weight: 800;
    text-decoration: none;
}

.command-card a:hover,
.command-card a:focus {
    text-decoration: underline;
}

.access-panel {
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    padding: 1.15rem;
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 31, 48, 0.06);
}

.access-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.access-button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: center;
    min-height: 104px;
    border: 1px solid #d9e2ef;
    border-left: 5px solid #1f5f96;
    border-radius: 8px;
    padding: 0.95rem;
    background: #fbfdff;
    color: #172033;
    text-decoration: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.access-button:hover,
.access-button:focus {
    border-color: #aab9cb;
    box-shadow: 0 14px 30px rgba(18, 31, 48, 0.1);
    color: #111a27;
    text-decoration: none;
    transform: translateY(-1px);
}

.access-button-primary {
    border-left-color: #2f7d73;
    background:
        linear-gradient(135deg, rgba(47, 125, 115, 0.1), rgba(21, 163, 199, 0.08)),
        #fbfdff;
}

.access-button-disabled {
    border-left-color: #c8d3df;
    color: #68778d;
    cursor: default;
}

.access-button-disabled:hover,
.access-button-disabled:focus {
    border-color: #d9e2ef;
    box-shadow: none;
    transform: none;
}

.access-icon {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 9px;
    background: #16202c;
    color: #fff;
    font-weight: 900;
}

.access-button-primary .access-icon {
    background: #2f7d73;
}

.access-button span:nth-child(2) {
    display: grid;
    gap: 0.22rem;
}

.access-button strong {
    font-size: 1.08rem;
}

.access-button small {
    color: #5c6878;
    line-height: 1.35;
}

.access-button em {
    align-self: center;
    border: 1px solid #cfdae6;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    color: #526175;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 800;
}

.muted-link {
    color: #758398;
}

.accent-blue,
.is-active {
    --accent-color: #1f5f96;
}

.accent-green,
.is-live {
    --accent-color: #2f7d73;
}

.accent-red {
    --accent-color: #b93345;
}

.accent-gold,
.is-ready {
    --accent-color: #9a6b18;
}

.feature-grid h2,
.work-list h2 {
    margin-bottom: .55rem;
    font-size: 1.1rem;
}

.page-header {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.dashboard-header {
    display: flex;
    max-width: none;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.licensing-header {
    margin-bottom: 1.25rem;
}

.licensing-stat-grid {
    margin-bottom: 1.25rem;
}

.licensing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.licensing-panel {
    border: 1px solid rgba(125, 145, 197, 0.22);
    border-radius: 8px;
    background: rgba(15, 24, 51, 0.72);
    padding: 1.1rem;
}

.licensing-panel-wide {
    grid-column: 1 / -1;
}

.panel-heading h2 {
    margin: 0.1rem 0 0.35rem;
}

.panel-heading p:last-child {
    margin-top: 0;
    color: var(--text-muted);
}

.licensing-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin: 0.9rem 0 1rem;
}

.licensing-form input,
.licensing-form select {
    min-width: 0;
    border: 1px solid rgba(125, 145, 197, 0.34);
    border-radius: 5px;
    background: rgba(5, 11, 30, 0.8);
    color: inherit;
    padding: 0.6rem 0.7rem;
}

.licensing-form .btn {
    justify-self: start;
}

.compact-form {
    margin-top: 1.15rem;
}

.issuance-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: center;
    border-top: 1px solid rgba(125, 145, 197, 0.14);
    padding: 0.65rem 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.product-row strong,
.product-row span {
    display: block;
}

.product-row strong {
    color: var(--text-main);
}

.licensing-message,
.issued-key {
    border: 1px solid rgba(82, 202, 171, 0.45);
    background: rgba(25, 98, 89, 0.22);
    border-radius: 6px;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
}

.issued-key {
    display: grid;
    gap: 0.35rem;
}

.issued-key code {
    width: fit-content;
    color: #bff4dc;
    font-size: 1rem;
}

.issued-key span { color: var(--text-muted); font-size: 0.85rem; }
.license-table-wrap { overflow-x: auto; }
.license-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.license-table th, .license-table td { text-align: left; padding: 0.65rem; border-top: 1px solid rgba(125, 145, 197, 0.14); }
.license-table th { color: var(--text-muted); font-size: 0.76rem; text-transform: uppercase; }
.license-table small { display: block; color: var(--text-muted); }

@media (max-width: 760px) {
    .licensing-grid { grid-template-columns: 1fr; }
    .licensing-panel-wide { grid-column: auto; }
    .licensing-form, .issuance-form { grid-template-columns: 1fr; }
}

.page-header h1 {
    margin-bottom: 0.35rem;
    font-size: clamp(2rem, 3vw, 2.65rem);
}

.page-header p {
    margin-bottom: 0;
    color: #526175;
}

.stat-label {
    display: block;
    margin-bottom: .35rem;
    color: #637083;
    font-size: .82rem;
}

.stat-grid strong {
    display: block;
    margin-bottom: .35rem;
    font-size: 1.15rem;
}

.workspace-band {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.build-list {
    display: grid;
    gap: 0.75rem;
}

.build-list article {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.25rem 0.8rem;
    align-items: start;
    border-top: 1px solid #e4ebf3;
    padding-top: 0.8rem;
}

.build-list span {
    grid-row: span 2;
    color: #b93345;
    font-weight: 850;
}

.build-list strong {
    color: #202c3d;
}

.build-list p {
    margin: 0;
    color: #5c6878;
}

.work-list {
    margin-top: 1rem;
}

.playground-shell {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    align-items: start;
}

.playground-editor,
.playground-list,
.playground-item,
.empty-state {
    border-color: #d9e2ef;
}

.playground-editor,
.empty-state {
    padding: 1rem;
}

.playground-list {
    display: grid;
    gap: .75rem;
    padding: .75rem;
}

.playground-item {
    display: grid;
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 1rem;
}

.item-heading {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.item-heading h2 {
    margin: 0;
    font-size: 1.05rem;
}

.item-badge {
    border: 1px solid #9aa7ff;
    border-radius: 999px;
    padding: .15rem .45rem;
    color: #3441c7;
    font-size: .75rem;
    font-weight: 700;
}

.item-meta,
.save-status {
    color: #637083;
    font-size: .85rem;
}

.item-actions {
    display: flex;
    gap: .5rem;
    align-items: start;
}

.tall-input {
    min-height: 130px;
}

.code-input,
.json-preview {
    font-family: Consolas, 'Courier New', monospace;
}

.json-preview {
    max-height: 180px;
    overflow: auto;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: .75rem;
    background: #f8fafc;
    white-space: pre-wrap;
}

.glass-header {
    margin-bottom: 1rem;
}

.glass-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.glass-stats article,
.glass-panel {
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 31, 48, 0.06);
}

.glass-stats article {
    display: grid;
    gap: 0.18rem;
    padding: 0.9rem 1rem;
}

.glass-stats span,
.mini-label {
    color: #637083;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.glass-stats strong {
    color: #132136;
    font-size: 1.45rem;
    line-height: 1.1;
}

.glass-stats small,
.field-hint {
    color: #637083;
    font-size: 0.82rem;
}

.glass-bridge-shell {
    display: grid;
    grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.glass-command-panel,
.glass-monitor-panel,
.glass-device-list,
.glass-card-timeline {
    display: grid;
    gap: 0.85rem;
}

.glass-panel {
    padding: 1rem;
}

.section-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.section-heading h2 {
    margin: 0;
    font-size: 1.28rem;
}

.quick-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.quick-card-grid .btn {
    min-height: 38px;
    text-align: left;
}

.field-hint {
    margin: 0 0 0.9rem;
    text-align: right;
}

.glass-option-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.85rem;
    align-items: end;
    margin-bottom: 1rem;
}

.segmented-control {
    display: inline-grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid #cfd9e6;
    border-radius: 7px;
    background: #f8fafc;
}

.segmented-control button {
    min-height: 38px;
    border: 0;
    border-right: 1px solid #cfd9e6;
    padding: 0 0.65rem;
    background: transparent;
    color: #334155;
    font-weight: 700;
}

.segmented-control button:last-child {
    border-right: 0;
}

.segmented-control button.is-selected {
    background: #1f5f96;
    color: #fff;
}

.accent-picker {
    display: flex;
    gap: 0.42rem;
    min-height: 38px;
    align-items: center;
}

.accent-dot {
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px #b8c4d4;
}

.accent-dot.is-selected {
    box-shadow: 0 0 0 3px #1f5f96;
}

.accent-cyan {
    --glass-accent: #15a3c7;
}

.accent-green {
    --glass-accent: #2f7d73;
}

.accent-amber {
    --glass-accent: #b7791f;
}

.accent-red {
    --glass-accent: #b93345;
}

.accent-dot.accent-cyan {
    background: #15a3c7;
}

.accent-dot.accent-green {
    background: #2f7d73;
}

.accent-dot.accent-amber {
    background: #b7791f;
}

.accent-dot.accent-red {
    background: #b93345;
}

.glass-preview {
    display: grid;
    gap: 0.35rem;
    min-height: 122px;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 5px solid var(--glass-accent, #15a3c7);
    border-radius: 8px;
    padding: 0.9rem;
    background: #10151d;
    color: #f7fbff;
}

.glass-preview span {
    color: var(--glass-accent, #15a3c7);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
}

.glass-preview strong {
    font-size: 1.2rem;
    line-height: 1.15;
}

.glass-preview p {
    margin: 0;
    color: #cad6e2;
}

.glass-send-button {
    width: 100%;
    min-height: 44px;
}

.glass-device-register summary {
    cursor: pointer;
    color: #172033;
    font-weight: 800;
}

.glass-device-register form {
    margin-top: 0.9rem;
}

.device-key-callout {
    margin-top: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
}

.device-key-callout h3 {
    margin: 0;
    font-size: 1rem;
}

.glass-empty {
    box-shadow: none;
}

.glass-device-card,
.glass-card-history {
    border: 1px solid #e1e8f0;
    border-left: 4px solid var(--glass-accent, #c8d3df);
    border-radius: 8px;
    padding: 0.85rem;
    background: #fbfdff;
}

.glass-device-card h3,
.glass-card-history h3 {
    margin: 0;
    font-size: 1.03rem;
}

.glass-device-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0.75rem 0 0;
}

.glass-device-card dt {
    color: #637083;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.glass-device-card dd {
    margin: 0.12rem 0 0;
    color: #172033;
    font-size: 0.86rem;
}

.device-status {
    border: 1px solid #cfd9e6;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    color: #637083;
    font-size: 0.75rem;
    font-weight: 800;
}

.device-status.is-online {
    border-color: rgba(47, 125, 115, 0.38);
    background: rgba(47, 125, 115, 0.1);
    color: #23655d;
}

.glass-card-history {
    --glass-accent: #15a3c7;
}

.glass-card-history p:last-child {
    margin-bottom: 0;
}

.card-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

@media (max-width: 900px) {
    .workspace-hero,
    .playground-shell,
    .playground-item,
    .glass-bridge-shell,
    .glass-option-row {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        align-items: start;
        flex-direction: column;
    }

    .glass-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .quick-card-grid,
    .glass-device-card dl {
        grid-template-columns: 1fr;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.login-page {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 1.25rem;
    background:
        linear-gradient(135deg, rgba(12, 16, 28, 0.82), rgba(21, 34, 50, 0.68)),
        radial-gradient(circle at 20% 20%, rgba(80, 178, 255, 0.22), transparent 30%),
        linear-gradient(135deg, #f5f7fb 0%, #dce7f3 52%, #f7fafc 100%);
    color: #172033;
}

.login-panel {
    width: min(360px, 100%);
    padding: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 22px 70px rgba(9, 22, 40, 0.28);
    backdrop-filter: blur(14px);
}

.login-logo {
    display: block;
    width: min(120px, 48%);
    max-height: 120px;
    object-fit: contain;
    margin: 0 auto 1rem;
}

.login-kicker {
    margin: 0 0 0.25rem;
    color: #4d6480;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.login-panel h1 {
    margin: 0 0 1.15rem;
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
}

.login-form {
    display: grid;
    gap: 0.85rem;
}

.login-field {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    color: #263347;
    font-size: 0.88rem;
    font-weight: 650;
}

.login-field input {
    width: 100%;
    min-height: 44px;
    border: 1px solid #b8c5d5;
    border-radius: 6px;
    padding: 0.65rem 0.75rem;
    background: rgba(255, 255, 255, 0.94);
    color: #172033;
    font: inherit;
    font-weight: 500;
}

.login-field input:focus {
    border-color: #1d70b8;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(29, 112, 184, 0.18);
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 28px;
    font-size: 0.86rem;
}

.login-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    color: #3f4d62;
    font-weight: 500;
}

.login-check input {
    width: 1rem;
    height: 1rem;
}

.login-options a {
    color: #1f5f96;
    font-weight: 650;
    text-decoration: none;
}

.login-options a:hover,
.login-options a:focus {
    text-decoration: underline;
}

.login-button {
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: #1f5f96;
    color: #fff;
    font-weight: 700;
}

.login-button:hover,
.login-button:focus {
    background: #174a76;
}

.login-validation,
.login-page .validation-message {
    margin: 0;
    color: #a52323;
    font-size: 0.84rem;
}

.login-page .alert {
    margin: 0 0 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    font-size: 0.88rem;
}

.login-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.72);
    color: #31445e;
    font-size: 0.78rem;
    text-align: center;
}

.login-footer span {
    opacity: 0.55;
}

.profile-settings-shell {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 520px);
    gap: 1rem;
    align-items: start;
}

.profile-preview-card,
.profile-form-card {
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(18, 31, 48, 0.06);
}

.profile-preview-card {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 1rem;
}

.profile-preview-photo {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 999px;
    background: #10151d;
    color: #fff;
    overflow: hidden;
    font-weight: 900;
}

.profile-preview-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-preview-card div:last-child {
    display: grid;
    gap: 0.15rem;
    min-width: 0;
}

.profile-preview-card span {
    color: #68778d;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-preview-card strong,
.profile-preview-card small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-preview-card strong {
    color: #172033;
    font-size: 1.1rem;
}

.profile-preview-card small,
.profile-upload-field small {
    color: #627086;
}

.profile-form-card {
    padding: 1rem;
}

.profile-upload-field {
    display: grid;
    gap: 0.35rem;
}

.profile-upload-field label {
    color: #263347;
    font-weight: 700;
}

@media (max-width: 520px) {
    .login-page {
        align-items: start;
        padding-top: 8vh;
    }

    .login-panel {
        padding: 1.15rem;
    }
}

@media (max-width: 860px) {
    .profile-settings-shell {
        grid-template-columns: 1fr;
    }
}
