:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #f3f6fa;
    --corporate-orange: #f7941d;
    --corporate-orange-dark: #d97800;
    --corporate-blue: #239fd3;
    --corporate-navy: #1a2f50;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(145deg, #eef4fb 0%, #f8fafc 55%, #eef1f5 100%);
}

.auth-page {
    display: grid;
    min-height: 100vh;
    padding: 32px 20px;
    place-items: center;
    background-color: #f7f7f8;
    background-image: url("pantalla-fondo-blanco-esp.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.selection-page {
    min-height: 100vh;
    background-color: #f7f7f8;
    background-image: url("pantalla-fondo-blanco-esp.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.card {
    width: min(92vw, 520px);
    margin-inline: auto;
    padding: 36px;
    border: 1px solid #dfe6ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgb(23 32 51 / 10%);
}

.login-card,
.protected-card {
    position: relative;
    top: 50vh;
    transform: translateY(-50%);
    text-align: center;
}

.auth-page .login-card {
    position: static;
    top: auto;
    transform: none;
}

.login-card--dual {
    width: min(100%, 900px);
    padding: clamp(28px, 4vw, 44px);
    border-color: rgb(255 255 255 / 88%);
    border-radius: 26px;
    background: rgb(255 255 255 / 52%);
    box-shadow: 0 24px 64px rgb(26 47 80 / 15%);
}

.login-heading {
    margin-bottom: 30px;
    text-align: center;
}

.login-heading h1 {
    color: var(--corporate-navy);
}

.login-methods {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: stretch;
    gap: 24px;
}

.login-method {
    display: flex;
    min-width: 0;
    padding: 26px;
    border: 1px solid #dfe6ee;
    border-radius: 16px;
    flex-direction: column;
    text-align: left;
    background: rgb(255 255 255 / 84%);
}

.login-method h2 {
    margin: 7px 0 8px;
    color: var(--corporate-navy);
    font-size: 1.25rem;
}

.login-method > p {
    min-height: 3em;
    margin: 0 0 20px;
    color: #647084;
    line-height: 1.5;
}

.login-method-label {
    color: var(--corporate-orange-dark);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-method:nth-of-type(2) .login-method-label {
    color: #087ba8;
}

.login-divider {
    display: grid;
    width: 34px;
    height: 34px;
    margin: auto;
    border: 1px solid #dfe6ee;
    border-radius: 50%;
    color: #718096;
    place-items: center;
    background: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

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

.local-login-form label {
    margin-top: 5px;
    color: #344054;
    font-size: 0.84rem;
    font-weight: 700;
}

.local-login-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 9px;
    color: #172033;
    background: #fff;
    font: inherit;
}

.local-login-form input:focus {
    border-color: var(--corporate-blue);
    outline: 3px solid rgb(35 159 211 / 15%);
}

.local-login-form button {
    margin-top: 13px;
    background: var(--corporate-navy);
}

.local-login-form button:hover {
    background: #10233e;
}

.login-method #login-button {
    margin-top: auto;
}

.local-login-error {
    min-height: 0;
    margin-top: 14px;
}

.brand {
    color: #1666c5;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1 {
    margin: 10px 0 12px;
    font-size: clamp(1.75rem, 5vw, 2.35rem);
}

.description,
.muted,
.status {
    color: #647084;
}

button {
    width: 100%;
    margin-top: 20px;
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #1666c5;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

button:hover:not(:disabled) {
    background: #0f56a8;
}

button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.status {
    min-height: 1.5em;
    margin: 16px 0 0;
    font-size: 0.92rem;
}

.status.error {
    color: #b42318;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(20px, 5vw, 64px);
    border-bottom: 1px solid #dfe6ee;
    background: #fff;
}

.topbar--selection {
    position: relative;
    z-index: 2;
    min-height: 74px;
    border-bottom: 1px solid rgb(26 47 80 / 11%);
    background: rgb(255 255 255 / 84%);
    box-shadow: 0 8px 28px rgb(26 47 80 / 6%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.topbar--selection .brand {
    color: var(--corporate-orange-dark);
}

.topbar--selection > div:first-child strong {
    color: var(--corporate-navy);
}

.topbar strong {
    display: block;
    margin-top: 3px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #647084;
    font-size: 0.9rem;
}

.user-area form {
    margin: 0;
}

button.secondary {
    width: auto;
    margin: 0;
    padding: 9px 13px;
    color: #25324a;
    background: #edf1f6;
}

.topbar--selection button.secondary {
    border: 1px solid rgb(26 47 80 / 10%);
    color: var(--corporate-navy);
    background: rgb(255 255 255 / 78%);
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.topbar--selection button.secondary:hover {
    border-color: rgb(247 148 29 / 48%);
    color: #8a4c00;
    background: #fff7ed;
}

.success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #16845b;
    font-size: 1.8rem;
    font-weight: 800;
}

.selection-shell,
.page-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(52px, 8vw, 92px) 0;
}

.selection-page .selection-shell {
    display: flex;
    min-height: 100vh;
    align-items: center;
    padding: clamp(120px, 14vh, 170px) 0 clamp(110px, 13vh, 145px);
}

.selection-panel {
    width: 100%;
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgb(255 255 255 / 88%);
    border-radius: 26px;
    background: rgb(255 255 255 / 25%);
    box-shadow: 0 24px 64px rgb(26 47 80 / 15%);
}

.portal-area + .portal-area {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid rgb(26 47 80 / 12%);
}

.portal-area-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 19px;
    color: var(--corporate-navy);
    font-size: clamp(1.18rem, 2vw, 1.48rem);
    letter-spacing: -0.015em;
}

.portal-area-title::before {
    width: 5px;
    height: 25px;
    border-radius: 999px;
    content: "";
    background: var(--corporate-orange);
}

.portal-area--logistics .portal-area-title::before {
    background: var(--corporate-navy);
}

.selection-intro {
    max-width: 700px;
    margin-bottom: 32px;
}

.selection-panel .selection-intro {
    max-width: 780px;
}

.selection-panel .selection-intro h1 {
    color: var(--corporate-navy);
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    letter-spacing: -0.025em;
}

.selection-intro h1,
.page-heading h1 {
    margin-bottom: 10px;
}

.selection-intro p,
.page-heading p {
    margin: 0;
    color: #647084;
    font-size: 1.05rem;
}

.eyebrow {
    color: var(--corporate-orange-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

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

.section-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    min-height: 180px;
    padding: 30px;
    border: 1px solid #dfe6ee;
    border-radius: 18px;
    color: inherit;
    overflow: hidden;
    background: rgb(255 255 255 / 45%);
    box-shadow: 0 12px 34px rgb(26 47 80 / 9%);
    text-decoration: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.section-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    content: "";
    background: var(--corporate-orange);
}

.section-card--makers::before {
    background: var(--corporate-blue);
}

.section-card--logistics::before {
    background: var(--corporate-navy);
}

.section-card:hover,
.section-card:focus-visible {
    border-color: rgb(247 148 29 / 56%);
    box-shadow: 0 18px 42px rgb(26 47 80 / 16%);
    transform: translateY(-3px);
}

.section-card--makers:hover,
.section-card--makers:focus-visible {
    border-color: rgb(35 159 211 / 58%);
}

.section-card--logistics:hover,
.section-card--logistics:focus-visible {
    border-color: rgb(26 47 80 / 48%);
}

.section-card:focus-visible {
    outline: 3px solid rgb(22 102 197 / 20%);
    outline-offset: 3px;
}

.section-code {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 16px;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-code--china {
    color: #9a5300;
    background: #fff0dc;
}

.section-code--makers {
    color: #096287;
    background: #e7f6fc;
}

.section-code--logistics {
    color: var(--corporate-navy);
    background: #e9eef6;
}

.section-copy {
    display: grid;
    gap: 8px;
}

.section-copy strong {
    color: var(--corporate-navy);
    font-size: 1.2rem;
}

.section-copy span {
    color: #647084;
    line-height: 1.55;
}

.section-arrow {
    color: var(--corporate-orange-dark);
    font-size: 1.7rem;
    transition: transform 160ms ease;
}

.section-card--makers .section-arrow {
    color: #087ba8;
}

.section-card--logistics .section-arrow {
    color: var(--corporate-navy);
}

.section-card:hover .section-arrow {
    transform: translateX(4px);
}

.session-dock {
    position: fixed;
    z-index: 3;
    right: clamp(16px, 2.5vw, 36px);
    bottom: clamp(16px, 2.5vw, 30px);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 9px 10px 9px 15px;
    border: 1px solid rgb(255 255 255 / 82%);
    border-radius: 14px;
    color: var(--corporate-navy);
    background: rgb(255 255 255 / 45%);
    box-shadow: 0 10px 28px rgb(26 47 80 / 11%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.88rem;
}

.session-dock form {
    margin: 0;
}

.session-dock button.secondary {
    border: 1px solid rgb(26 47 80 / 13%);
    color: var(--corporate-navy);
    background: rgb(255 255 255 / 72%);
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.session-dock button.secondary:hover {
    border-color: rgb(247 148 29 / 48%);
    color: #8a4c00;
    background: rgb(255 247 237 / 94%);
}

.session-dock small {
    margin-left: 5px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #096287;
    background: rgb(231 246 252 / 92%);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-users-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgb(35 159 211 / 22%);
    border-radius: 9px;
    color: #096287;
    background: rgb(231 246 252 / 80%);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease;
}

.session-dsm-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgb(247 148 29 / 32%);
    border-radius: 9px;
    color: #8a4c00;
    background: rgb(255 244 232 / 88%);
    font-size: 0.82rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 160ms ease, background 160ms ease;
}

.session-dsm-link:hover,
.session-dsm-link:focus-visible {
    border-color: rgb(247 148 29 / 66%);
    background: #fff4e8;
}

.admin-users-link:hover,
.admin-users-link:focus-visible {
    border-color: rgb(35 159 211 / 58%);
    background: rgb(231 246 252 / 100%);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    color: #1666c5;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

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

.empty-state {
    padding: clamp(30px, 5vw, 48px);
    border: 1px solid #dfe6ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 34px rgb(23 32 51 / 7%);
}

.status-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #7a4b00;
    background: #fff3d6;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.empty-state h2 {
    margin: 0 0 10px;
}

.empty-state p {
    max-width: 720px;
    margin: 0;
    color: #647084;
    line-height: 1.65;
}

.users-admin-page {
    min-height: 100vh;
    color: #172033;
    background-color: #f3f6fa;
    background-image:
        linear-gradient(rgb(248 250 252 / 86%), rgb(248 250 252 / 92%)),
        url("pantalla-fondo-blanco-esp.png");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.users-admin-shell {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 54px;
}

.users-admin-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 28px;
}

.users-admin-header .back-link {
    margin-bottom: 24px;
}

.users-admin-header h1 {
    margin: 8px 0 9px;
    color: var(--corporate-navy);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
}

.users-admin-header p {
    max-width: 760px;
    margin: 0;
    color: #647084;
    font-size: 1.02rem;
    line-height: 1.6;
}

.users-admin-session {
    min-width: 190px;
    padding: 14px 17px;
    border: 1px solid rgb(26 47 80 / 10%);
    border-radius: 14px;
    color: #647084;
    background: rgb(255 255 255 / 78%);
    box-shadow: 0 10px 28px rgb(26 47 80 / 7%);
    font-size: 0.8rem;
}

.users-admin-session strong {
    display: block;
    margin-top: 3px;
    color: var(--corporate-navy);
    font-size: 0.95rem;
}

.users-admin-session form {
    margin: 12px 0 0;
}

.users-admin-session .users-admin-logout {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgb(26 47 80 / 13%);
    border-radius: 9px;
    color: var(--corporate-navy);
    background: rgb(255 255 255 / 82%);
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.users-admin-session .users-admin-logout:hover,
.users-admin-session .users-admin-logout:focus-visible {
    border-color: rgb(247 148 29 / 48%);
    color: #8a4c00;
    background: rgb(255 247 237 / 94%);
}

.admin-notice {
    margin-bottom: 20px;
    padding: 15px 18px;
    border: 1px solid;
    border-radius: 13px;
    line-height: 1.55;
}

.admin-notice ul {
    margin: 8px 0;
    padding-left: 22px;
}

.admin-notice--success {
    border-color: #9bd7bf;
    color: #0c6849;
    background: #ebfbf4;
}

.admin-notice--error {
    border-color: #efb3ad;
    color: #9f261d;
    background: #fff0ee;
}

.admin-notice--warning {
    border-color: #f2cd83;
    color: #7a4b00;
    background: #fff8e8;
}

.admin-notice--loading {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    border-color: #9bc7ef;
    color: #164f7d;
    background: #eef7ff;
}

.admin-card {
    padding: clamp(22px, 3vw, 30px);
    border: 1px solid rgb(26 47 80 / 10%);
    border-radius: 20px;
    background: rgb(255 255 255 / 88%);
    box-shadow: 0 16px 44px rgb(26 47 80 / 9%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.admin-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.admin-card-heading h2 {
    margin: 5px 0 0;
    color: var(--corporate-navy);
    font-size: 1.38rem;
}

.admin-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.admin-card-actions form {
    margin: 0;
}

button.admin-refresh-button {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgb(26 47 80 / 16%);
    border-radius: 10px;
    color: var(--corporate-navy);
    background: rgb(255 255 255 / 86%);
    box-shadow: none;
    font-size: 0.82rem;
}

button.admin-refresh-button:hover:not(:disabled) {
    border-color: rgb(26 47 80 / 30%);
    background: #fff;
    transform: none;
}

.admin-count {
    flex: none;
    padding: 6px 10px;
    border-radius: 999px;
    color: #096287;
    background: #e7f6fc;
    font-size: 0.76rem;
    font-weight: 800;
}

.permissions-catalog-card {
    margin-bottom: 22px;
}

.permission-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 10px;
}

.permission-catalog-item {
    display: grid;
    min-width: 0;
    gap: 3px;
    padding: 12px 14px;
    border: 1px solid #dfe6ee;
    border-radius: 12px;
    background: rgb(248 250 252 / 88%);
}

.permission-catalog-item strong {
    color: var(--corporate-navy);
    font-size: 0.95rem;
}

.permission-catalog-item span,
.permission-catalog-item small {
    color: #647084;
    font-size: 0.74rem;
    line-height: 1.35;
}

.permission-catalog-item small {
    color: #a15c00;
    font-weight: 700;
}

.users-admin-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(480px, 1.35fr);
    align-items: start;
    gap: 22px;
}

.admin-user-form {
    display: grid;
    gap: 19px;
}

.admin-user-form label > span,
.permissions-fieldset legend {
    display: block;
    margin-bottom: 7px;
    color: #344054;
    font-size: 0.84rem;
    font-weight: 800;
}

.admin-user-form label > span small {
    color: #7b8798;
    font-weight: 600;
}

.admin-user-form input[type="text"],
.admin-user-form input[type="password"],
.admin-user-form input[type="number"],
.admin-user-form textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 9px;
    color: #172033;
    background: #fff;
    font: inherit;
}

.admin-user-form textarea {
    min-height: 82px;
    resize: vertical;
}

.admin-user-form input:focus,
.admin-user-form textarea:focus {
    border-color: var(--corporate-blue);
    outline: 3px solid rgb(35 159 211 / 14%);
}

.admin-user-form label > small {
    display: block;
    margin-top: 6px;
    color: #7b8798;
    font-size: 0.74rem;
    line-height: 1.4;
}

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

.permissions-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

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

.permission-option {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 9px;
    padding: 10px;
    border: 1px solid #dfe6ee;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}

.permission-option:has(input:checked) {
    border-color: rgb(35 159 211 / 48%);
    background: #eef9fd;
}

.permission-option--all {
    border-color: rgb(247 148 29 / 28%);
    background: #fff9f1;
}

.permission-option--all:has(input:checked) {
    border-color: rgb(247 148 29 / 58%);
    background: #fff3e2;
}

.permission-option input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
    accent-color: var(--corporate-blue);
}

.permission-option--all input {
    accent-color: var(--corporate-orange-dark);
}

.permission-option > span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.permission-option strong {
    color: var(--corporate-navy);
    font-size: 0.86rem;
}

.permission-option small {
    color: #748094;
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.3;
}

button.admin-primary-button,
button.admin-delete-button {
    width: auto;
    margin: 0;
}

button.admin-primary-button {
    justify-self: start;
    padding-inline: 22px;
    background: var(--corporate-navy);
}

button.admin-primary-button:hover:not(:disabled) {
    background: #10233e;
}

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

.existing-user {
    border: 1px solid #dfe6ee;
    border-radius: 13px;
    background: #fff;
    overflow: hidden;
}

.existing-user[open] {
    border-color: rgb(35 159 211 / 36%);
    box-shadow: 0 8px 22px rgb(26 47 80 / 6%);
}

.existing-user summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 16px;
    cursor: pointer;
    list-style: none;
}

.existing-user summary::-webkit-details-marker {
    display: none;
}

.existing-user summary > span:first-child {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.existing-user summary strong {
    color: var(--corporate-navy);
}

.existing-user summary small {
    color: #68758a;
    overflow: hidden;
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.edit-user-label {
    color: #087ba8;
    font-size: 0.78rem;
    font-weight: 800;
}

.existing-user[open] .edit-user-label::after {
    content: " ▲";
}

.existing-user:not([open]) .edit-user-label::after {
    content: " ▼";
}

.existing-user > .admin-user-form {
    padding: 18px 16px 16px;
    border-top: 1px solid #e7ecf2;
    background: #fbfcfe;
}

.delete-user-form {
    display: flex;
    justify-content: flex-end;
    padding: 0 16px 16px;
    background: #fbfcfe;
}

button.admin-delete-button {
    padding: 9px 13px;
    color: #a42d24;
    background: #fff0ee;
    font-size: 0.8rem;
}

button.admin-delete-button:hover:not(:disabled) {
    color: #fff;
    background: #b83228;
}

.admin-empty-state {
    margin: 0;
    padding: 24px;
    border: 1px dashed #cfd8e3;
    border-radius: 12px;
    color: #647084;
    text-align: center;
}

.users-admin-footer {
    margin-top: 20px;
    color: #69768a;
    font-size: 0.78rem;
    text-align: center;
}

.users-admin-footer code {
    padding: 2px 5px;
    border-radius: 5px;
    color: var(--corporate-navy);
    background: rgb(255 255 255 / 70%);
}

@media (max-width: 680px) {
    .card {
        padding: 28px 22px;
    }

    .topbar,
    .user-area {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar--selection {
        gap: 14px;
        padding-block: 16px;
        background: rgb(255 255 255 / 91%);
    }

    .topbar--selection .user-area {
        width: 100%;
        gap: 10px;
    }

    .topbar--selection .user-area form,
    .topbar--selection button.secondary {
        width: 100%;
    }

    .auth-page {
        display: block;
        padding: 18px 14px;
        background-attachment: scroll;
    }

    .login-card--dual {
        margin-block: 18px;
        padding: 26px 18px;
    }

    .login-methods {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .login-divider {
        margin-block: -2px;
    }

    .login-method {
        padding: 22px 18px;
    }

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

    .section-card {
        min-height: 0;
        padding: 24px 20px;
    }

    .selection-shell,
    .page-shell {
        width: min(100% - 28px, 1120px);
        padding-top: 42px;
    }

    .selection-page {
        background-attachment: scroll;
        background-position: center top;
    }

    .selection-page .selection-shell {
        min-height: auto;
        padding: 132px 0 116px;
    }

    .selection-panel {
        padding: 24px 18px;
        border-radius: 20px;
        background: rgb(255 255 255 / 25%);
    }

    .selection-panel .selection-intro {
        margin-bottom: 24px;
    }

    .session-dock {
        right: 14px;
        bottom: 14px;
        max-width: calc(100% - 28px);
        gap: 10px;
        padding-left: 12px;
        font-size: 0.82rem;
    }

    .admin-users-link {
        padding-inline: 9px;
        font-size: 0.75rem;
    }

    .session-dsm-link {
        padding-inline: 9px;
        font-size: 0.75rem;
    }

    .session-dock button.secondary {
        padding: 8px 11px;
        white-space: nowrap;
    }

    .users-admin-page {
        background-attachment: scroll;
    }

    .users-admin-shell {
        width: min(100% - 24px, 1240px);
        padding-top: 24px;
    }

    .users-admin-header {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .users-admin-session {
        min-width: 0;
    }

    .admin-card-heading {
        align-items: flex-start;
    }

    .users-admin-layout,
    .admin-field-grid,
    .permissions-grid {
        grid-template-columns: 1fr;
    }

    .admin-card {
        padding: 20px 16px;
        border-radius: 16px;
    }

    .existing-user > .admin-user-form {
        padding-inline: 13px;
    }
}

@media (min-width: 681px) and (max-width: 1020px) {
    .users-admin-layout {
        grid-template-columns: 1fr;
    }
}
