:root {
    --bg: #f5f6f8;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f6eef2;
    --ink: #101828;
    --ink-2: #344054;
    --muted: #667085;
    --line: #e3d8dd;
    --brand: #a50034;
    --brand-2: #7a0026;
    --brand-soft: #f8e8ee;
    --blue-soft: #f2eaf0;
    --danger: #b42318;
    --danger-soft: #fff1f0;
    --success: #067647;
    --success-soft: #ecfdf3;
    --warning-soft: #fff7e6;
    --shadow: 0 16px 40px rgba(76, 20, 42, 0.1);
    --shadow-soft: 0 8px 22px rgba(76, 20, 42, 0.07);
    --shadow-card: 0 18px 48px rgba(16, 24, 40, 0.08);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color: var(--ink);
}

body {
    min-height: 100vh;
    margin: 0;
    background:
            radial-gradient(circle at top left, rgba(165, 0, 52, 0.13), transparent 340px),
            linear-gradient(180deg, #f8fafc 0, var(--bg) 360px);
    color: var(--ink);
    letter-spacing: 0;
}

.auth-body {
    min-height: 100vh;
    background:
            linear-gradient(120deg, rgba(255, 255, 255, 0.78), rgba(248, 232, 238, 0.46)),
            radial-gradient(circle at 18% 18%, rgba(165, 0, 52, 0.18), transparent 320px),
            linear-gradient(180deg, #fff 0, #f4f1f3 100%);
}

a {
    color: var(--brand-2);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

main {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto;
}

h1 {
    margin: 0 0 22px;
    color: var(--ink);
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 14px;
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.3;
    letter-spacing: 0;
}

p {
    color: var(--muted);
    line-height: 1.6;
}

button,
.button,
input[type="submit"] {
    min-height: 38px;
    border: 0;
    border-radius: 6px;
    padding: 0 14px;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(165, 0, 52, 0.22);
}

button:hover,
.button:hover,
input[type="submit"]:hover {
    background: var(--brand-2);
    text-decoration: none;
}

button[type="submit"][data-testid*="disable"],
button[type="submit"][data-testid*="end"] {
    background: var(--danger);
    box-shadow: 0 8px 18px rgba(180, 35, 24, 0.18);
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    margin: 0 0 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

form form,
td form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

input,
select,
textarea {
    min-height: 38px;
    width: 100%;
    min-width: 180px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

textarea {
    min-height: 112px;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(165, 0, 52, 0.14);
    border-color: var(--brand-2);
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

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

th {
    background: #f1f5f9;
    color: #475467;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

tbody tr:hover {
    background: #fbfdff;
}

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

.table-actions {
    min-width: 188px;
    white-space: nowrap;
}

.table-action-list {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.table-action-list a,
.table-action-list button {
    flex: 0 0 auto;
    white-space: nowrap;
}

body.has-admin-shell .table-action-list a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 0 11px;
    background: #fff;
    color: #7a0026;
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.04);
}

body.has-admin-shell .table-action-list button {
    min-height: 34px;
    border: 1px solid #f0c8c2;
    border-radius: 8px;
    padding: 0 11px;
    background: #fff;
    color: var(--danger);
    box-shadow: 0 6px 14px rgba(180, 35, 24, 0.06);
    font-size: 13px;
}

body.has-admin-shell .table-action-list a:hover {
    border-color: #d56b91;
    background: #fff7fa;
    color: #7a0026;
    text-decoration: none;
}

body.has-admin-shell .table-action-list button:hover {
    border-color: #f4b8b1;
    background: var(--danger-soft);
    color: var(--danger);
}

section {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

code {
    display: inline-block;
    max-width: 240px;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    color: #25476a;
    font-size: 12px;
}

nav {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 16px 0;
}

nav a,
form a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 12px;
    background: #fff;
}

[data-testid*="message"],
[data-testid*="error"] {
    display: inline-block;
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--success);
    background: var(--success-soft);
    border: 1px solid #abefc6;
}

[data-testid*="error"] {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #f4b8b1;
}

.admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 276px minmax(0, 1fr);
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.72)),
            var(--bg);
}

.admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 24px 18px;
    border-right: 1px solid #e8d6de;
    background:
            linear-gradient(180deg, #fff 0, #fff7fa 48%, #f8e8ee 100%);
    color: var(--ink);
    box-shadow: 14px 0 34px rgba(76, 20, 42, 0.06);
}

.admin-brand {
    min-height: 62px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #f0d7e1;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
}

.admin-brand:hover {
    text-decoration: none;
}

.admin-brand span:last-child {
    display: grid;
    gap: 2px;
}

.admin-brand strong {
    font-size: 16px;
    line-height: 1.2;
}

.admin-brand small {
    color: #9b536b;
    font-size: 12px;
}

.admin-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), #d91d5c);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(165, 0, 52, 0.24);
}

.admin-nav {
    display: grid;
    gap: 7px;
    margin: 0;
}

.admin-nav a {
    min-height: 44px;
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 10px;
    border: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 11px;
    background: transparent;
    color: #5c3040;
    font-size: 14px;
}

.admin-nav a:hover {
    border-color: #f0d7e1;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 22px rgba(76, 20, 42, 0.07);
    text-decoration: none;
}

.admin-nav a[aria-current="page"] {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 10px 22px rgba(165, 0, 52, 0.22);
}

.admin-nav-icon {
    width: 30px;
    height: 30px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    color: #7a0026;
    font-size: 15px;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px #f0d7e1;
}

.admin-nav a[aria-current="page"] .admin-nav-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.admin-content {
    min-width: 0;
    background:
            radial-gradient(circle at 100% 0, rgba(165, 0, 52, 0.08), transparent 300px),
            linear-gradient(180deg, #fff 0, #f7f8fb 260px, #f5f6f8 100%);
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 32px;
    border-bottom: 1px solid #e7eaf0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 26px rgba(16, 24, 40, 0.04);
}

.admin-topbar > div {
    display: grid;
    gap: 3px;
}

.admin-topbar strong {
    font-size: 19px;
}

.admin-kicker {
    color: var(--brand);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.admin-quick-link {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    background: #fff;
    color: var(--ink-2);
    box-shadow: 0 8px 18px rgba(16, 24, 40, 0.05);
}

body.has-admin-shell main {
    width: min(1280px, calc(100% - 64px));
    margin: 30px auto 56px;
}

body.has-admin-shell main > h1 {
    display: none;
}

body.has-admin-shell form:first-of-type {
    position: relative;
    align-items: end;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e4e7ec;
    background:
            linear-gradient(180deg, #ffffff, #fbfcfe);
    box-shadow: var(--shadow-card);
}

body.has-admin-shell table {
    border-color: #e4e7ec;
    box-shadow: var(--shadow-card);
}

body.has-admin-shell section {
    border-color: #e4e7ec;
    box-shadow: var(--shadow-card);
}

body.has-admin-shell th {
    height: 44px;
    background: #f8fafc;
    color: #475467;
    letter-spacing: 0;
}

body.has-admin-shell td {
    height: 52px;
    background: rgba(255, 255, 255, 0.94);
}

body.has-admin-shell tbody tr:hover td {
    background: #fff7fa;
}

body.has-admin-shell td:first-child {
    color: var(--ink);
    font-weight: 750;
}

body.has-admin-shell td a,
body.has-admin-shell form a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: #e4e7ec;
    border-radius: 8px;
    padding: 0 11px;
    background: #fff;
    color: #7a0026;
    box-shadow: 0 6px 14px rgba(16, 24, 40, 0.04);
}

body.has-admin-shell td form {
    align-items: center;
}

body.has-admin-shell td form button {
    min-height: 34px;
    border: 1px solid #f0c8c2;
    border-radius: 8px;
    padding: 0 11px;
    background: #fff;
    color: var(--danger);
    box-shadow: 0 6px 14px rgba(180, 35, 24, 0.06);
    font-size: 13px;
}

body.has-admin-shell [data-testid="user-list-table"] .table-actions {
    min-width: 176px;
}

body.has-admin-shell [data-testid="user-list-table"] .table-action-list a {
    min-width: 52px;
}

body.has-admin-shell [data-testid="user-list-table"] .table-action-list button {
    min-width: 82px;
}

body.has-admin-shell td a:hover,
body.has-admin-shell form a:hover {
    border-color: #d56b91;
    background: #fff7fa;
    text-decoration: none;
}

body.has-admin-shell td form button:hover {
    border-color: #f4b8b1;
    background: var(--danger-soft);
    color: var(--danger);
}

body.has-admin-shell input,
body.has-admin-shell select,
body.has-admin-shell textarea {
    border-color: #d0d5dd;
    border-radius: 8px;
    background: #fff;
}

body.has-admin-shell button,
body.has-admin-shell input[type="submit"] {
    border-radius: 8px;
}

body.has-admin-shell code {
    max-width: 300px;
    border: 1px solid #e4e7ec;
    border-radius: 999px;
    padding: 5px 9px;
    background: #f8fafc;
    color: #344054;
}

[data-testid="home-page"] {
    width: min(1180px, calc(100% - 32px));
    display: grid;
    gap: 18px;
}

.dashboard-hero {
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border: 1px solid #c9d8e3;
    background:
            linear-gradient(135deg, rgba(15, 118, 110, 0.13), rgba(21, 94, 117, 0.08)),
            var(--surface);
}

.dashboard-hero h1 {
    max-width: 720px;
    margin: 8px 0 10px;
    font-size: 38px;
}

.dashboard-hero p {
    max-width: 680px;
    margin: 0;
    font-size: 16px;
}

.dashboard-hero form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard-metrics article,
.dashboard-actions a {
    min-height: 128px;
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.dashboard-metrics span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.dashboard-metrics strong {
    color: var(--ink);
    font-size: 22px;
}

.dashboard-metrics small,
.dashboard-actions small {
    color: var(--muted);
    line-height: 1.45;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.dashboard-actions a {
    justify-content: start;
    color: var(--ink);
}

.dashboard-actions a:hover {
    border-color: #d56b91;
    transform: translateY(-1px);
    text-decoration: none;
}

.dashboard-actions span {
    font-size: 16px;
    font-weight: 850;
}

.login-shell {
    width: min(1120px, calc(100% - 32px));
    min-height: calc(100vh - 68px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 22px;
    align-content: center;
}

.login-brand-panel,
.login-card {
    margin: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.login-brand-panel {
    min-height: 520px;
    display: grid;
    align-content: end;
    gap: 18px;
    padding: 34px;
    border: 1px solid #7b173b;
    background:
            linear-gradient(135deg, rgba(45, 4, 24, 0.88), rgba(125, 0, 42, 0.84)),
            linear-gradient(45deg, #4b0b25, #a50034);
    color: #fff;
}

.login-brand-panel-compact {
    align-content: start;
    padding-top: 92px;
}

.password-brand-panel {
    position: relative;
    overflow: hidden;
    background:
            linear-gradient(135deg, rgba(50, 8, 28, 0.9), rgba(145, 0, 48, 0.84)),
            linear-gradient(45deg, #5c0c2a, #a50034 58%, #d8265d);
}

.password-brand-panel::before {
    content: "";
    position: absolute;
    inset: 22px 22px auto auto;
    width: 160px;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    transform: rotate(14deg);
}

.password-brand-panel > * {
    position: relative;
}

.login-brand-panel .admin-kicker {
    color: #ffd6e3;
}

.login-brand-panel h1 {
    max-width: 600px;
    margin: 0;
    color: #fff;
    font-size: 42px;
}

.login-brand-panel p {
    max-width: 560px;
    margin: 0;
    color: #f8dce6;
    font-size: 16px;
}

.login-brand-mark {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 950;
}

.login-proof-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.login-proof-grid span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.login-card {
    align-self: stretch;
    display: grid;
    align-content: center;
    padding: 34px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
}

.password-change-card {
    align-content: center;
    border-color: #ead3dc;
    background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 252, 0.94));
}

.login-card h2 {
    margin: 8px 0 18px;
    color: var(--ink);
    font-size: 30px;
}

.auth-card-copy {
    margin: -6px 0 18px;
}

.login-card form {
    display: grid;
    align-items: stretch;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.login-card input {
    min-height: 46px;
}

.login-card button {
    min-height: 46px;
    margin-top: 4px;
}

.login-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
}

.login-meta span {
    border-radius: 999px;
    padding: 6px 9px;
    background: var(--brand-soft);
    color: var(--brand-2);
    font-weight: 800;
}

.password-security-stack {
    display: grid;
    gap: 10px;
    max-width: 560px;
}

.password-security-stack div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.password-security-stack strong,
.password-security-stack span {
    display: block;
}

.password-security-stack strong {
    margin-bottom: 4px;
    color: #fff;
    font-size: 14px;
}

.password-security-stack span {
    color: #f8dce6;
    font-size: 13px;
    line-height: 1.5;
}

[data-testid="operations-page"] section,
[data-testid="content-upload-page"] section {
    box-shadow: none;
}

.learner-page {
    width: min(1120px, calc(100% - 32px));
    display: grid;
    gap: 18px;
}

.learner-hero {
    min-height: 210px;
}

.learner-access-notice {
    margin: 0 0 18px;
    border: 1px solid rgba(165, 0, 52, 0.16);
    border-radius: 12px;
    padding: 14px 16px;
    background: rgba(165, 0, 52, 0.055);
    color: #76122f;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.55;
}

.request-message-history {
    display: grid;
    gap: 7px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.request-message-history li {
    display: grid;
    gap: 3px;
    border-left: 2px solid rgba(165, 0, 52, 0.22);
    padding-left: 10px;
}

.request-message-history time {
    color: #8f8388;
    font-size: 11px;
    font-weight: 750;
}

.request-message-history p {
    margin: 0;
    color: #40383b;
    font-size: 12px;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

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

.lecture-card {
    min-height: 190px;
    display: grid;
    align-content: start;
    gap: 10px;
    margin: 0;
    border-color: #ead3dc;
}

.lecture-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.lecture-type {
    width: fit-content;
    border-radius: 999px;
    padding: 5px 9px;
    background: var(--brand-soft);
    color: var(--brand-2);
    font-size: 12px;
    font-weight: 900;
}

.lecture-card a,
.lecture-disabled {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 6px;
    padding: 0 12px;
}

.lecture-card a {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 8px 18px rgba(165, 0, 52, 0.2);
}

.lecture-card a:hover {
    background: var(--brand-2);
    text-decoration: none;
}

.lecture-disabled {
    background: #f2eef0;
    color: var(--muted);
    font-weight: 800;
}

@media (max-width: 980px) {
    .admin-shell {
        display: block;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
    }

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

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

@media (max-width: 760px) {
    main,
    body.has-admin-shell main,
    [data-testid="home-page"] {
        width: min(100% - 20px, 1180px);
        margin: 18px auto;
    }

    .admin-topbar {
        position: static;
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-hero {
        display: grid;
    }

    .dashboard-hero h1 {
        font-size: 30px;
    }

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

    .login-brand-panel {
        min-height: auto;
    }

    .login-brand-panel h1 {
        font-size: 30px;
    }

    .dashboard-metrics,
    .dashboard-actions,
    .lecture-grid,
    .admin-nav {
        grid-template-columns: 1fr;
    }

    form {
        display: grid;
    }

    input,
    select,
    textarea {
        min-width: 0;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}


/* Content create/edit — shares the detailed admin workspace language. */
.user-form-hero.content-form-hero::before {
    background: radial-gradient(circle, rgba(109, 63, 126, 0.13), rgba(109, 63, 126, 0) 68%);
}

.user-form-hero.content-form-hero .admin-kicker {
    color: #76506f;
}

.user-form-hero-art.content-form-hero-art {
    background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(244, 238, 247, 0.52));
}

.content-form-document {
    position: absolute;
    top: 31px;
    left: 39px;
    width: 61px;
    height: 76px;
    border: 4px solid #76506f;
    border-radius: 9px 18px 9px 9px;
}

.content-form-document::before {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 21px;
    height: 21px;
    border-bottom: 4px solid #76506f;
    border-left: 4px solid #76506f;
    border-radius: 0 13px 0 5px;
    background: rgba(255, 255, 255, 0.66);
    content: "";
}

.user-form-hero-art.content-form-hero-art i:nth-of-type(1) {
    background: #76506f;
    box-shadow: 0 0 0 5px rgba(118, 80, 111, 0.08);
}

.content-form-info-note {
    grid-column: 1 / -1;
    margin-top: -6px;
}

.content-alias-input-wrap {
    position: relative;
}

.content-alias-input-wrap > span {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 1;
    color: #8d677c;
    font-size: 12px;
    font-weight: 850;
    pointer-events: none;
    transform: translateY(-50%);
}

body.has-admin-shell .content-detail-form .content-alias-input-wrap input {
    padding-left: 43px;
}

@media (max-width: 760px) {
    .user-form-hero-art.content-form-hero-art {
        top: 24px;
    }

    .content-form-document {
        top: 17px;
        left: 24px;
    }

    .content-form-document-line {
        top: 54px;
        left: 36px;
    }
}

/* User create/edit — detailed account workspace. */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

body.has-admin-shell .user-form-main {
    width: calc(100% - 32px);
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.user-form-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 4px;
    color: #978b90;
    font-size: 12px;
}

.user-form-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #62585c;
    font-weight: 750;
}

.user-form-breadcrumb a:hover {
    color: #8d0030;
    text-decoration: none;
}

.user-form-breadcrumb strong {
    color: #8d0030;
    font-weight: 800;
}

.user-form-hero {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 38px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 26px;
    background:
            linear-gradient(118deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.38)),
            rgba(255, 255, 255, 0.42);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 1),
            0 22px 54px rgba(56, 61, 72, 0.11);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);
}

.user-form-hero::before {
    position: absolute;
    top: -80px;
    right: 40px;
    width: 360px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 0, 52, 0.13), rgba(165, 0, 52, 0) 68%);
    content: "";
    pointer-events: none;
}

.user-form-hero::after {
    position: absolute;
    top: 0;
    right: 9%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.96);
    content: "";
}

.user-form-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.user-form-hero .admin-kicker {
    color: #8d0030;
    letter-spacing: 0.15em;
}

.user-form-hero h1 {
    display: block;
    margin: 12px 0 10px;
    color: #211d1f;
    font-size: clamp(36px, 4vw, 50px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.065em;
}

.user-form-hero p {
    margin: 0;
    color: #71666b;
    font-size: 14px;
}

.user-form-hero-art {
    position: relative;
    z-index: 1;
    width: 140px;
    height: 140px;
    flex: 0 0 140px;
    border: 1px solid rgba(255, 255, 255, 0.86);
    border-radius: 42px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.98),
            0 20px 40px rgba(87, 33, 52, 0.12);
    transform: rotate(3deg);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.user-form-hero-ring {
    position: absolute;
    inset: 25px;
    border: 1px solid rgba(141, 0, 48, 0.18);
    border-radius: 50%;
}

.user-form-hero-person::before,
.user-form-hero-person::after {
    position: absolute;
    left: 50%;
    border: 5px solid #8d0030;
    content: "";
    transform: translateX(-50%);
}

.user-form-hero-person::before {
    top: 43px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
}

.user-form-hero-person::after {
    bottom: 37px;
    width: 48px;
    height: 26px;
    border-bottom: 0;
    border-radius: 28px 28px 8px 8px;
}

.user-form-hero-art i {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a50034;
    box-shadow: 0 0 0 5px rgba(165, 0, 52, 0.08);
}

.user-form-hero-art i:nth-of-type(1) { top: 22px; right: 29px; }
.user-form-hero-art i:nth-of-type(2) { right: 22px; bottom: 34px; width: 5px; height: 5px; opacity: 0.52; }
.user-form-hero-art i:nth-of-type(3) { bottom: 21px; left: 27px; width: 4px; height: 4px; opacity: 0.3; }

.user-form-alert {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid rgba(180, 35, 24, 0.18);
    border-radius: 14px;
    background: rgba(255, 242, 241, 0.88);
    color: #9e3028;
}

.user-form-alert > span {
    width: 23px;
    height: 23px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #b43a32;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.user-form-alert p {
    margin: 0;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

body.has-admin-shell form.user-detail-form,
body.has-admin-shell form.user-detail-form:first-of-type {
    display: grid;
    gap: 14px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* The delete action is submitted by the footer button via form="content-delete-form".
   Keep the functional form in the document without rendering an empty panel. */
body.has-admin-shell #content-delete-form {
    display: none;
}

body.has-admin-shell #user-delete-form {
    display: none;
}

body.has-admin-shell .user-form-section {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 32px;
    margin: 0;
    padding: 30px 32px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.98),
            0 15px 36px rgba(55, 60, 70, 0.075);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    backdrop-filter: blur(22px) saturate(135%);
}

.user-form-section-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.user-form-section-number {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 34px;
    border: 1px solid rgba(141, 0, 48, 0.12);
    border-radius: 11px;
    background: #f4ecef;
    color: #8d0030;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.user-form-section-head h2 {
    margin: 2px 0 5px;
    color: #272124;
    font-size: 17px;
    font-weight: 850;
    letter-spacing: -0.035em;
}

.user-form-section-head p {
    margin: 0;
    color: #8c8185;
    font-size: 11px;
    line-height: 1.55;
    word-break: keep-all;
}

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

.user-form-field {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 8px;
}

.user-form-field-wide {
    grid-column: 1 / -1;
}

.user-form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.has-admin-shell .user-detail-form label,
body.has-admin-shell .user-detail-form:first-of-type label {
    display: block;
    color: #51494d;
    font-size: 12px;
    font-weight: 820;
    letter-spacing: -0.01em;
}

.user-form-field-badge {
    border-radius: 999px;
    padding: 4px 8px;
    background: #f1eeec;
    color: #837a7d;
    font-size: 9px;
    font-weight: 800;
}

body.has-admin-shell .user-detail-form input,
body.has-admin-shell .user-detail-form select {
    min-width: 0;
    min-height: 50px;
    border: 1px solid rgba(107, 96, 101, 0.2);
    border-radius: 13px;
    padding: 0 15px;
    background: rgba(250, 249, 247, 0.88);
    color: #292426;
    font-size: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

body.has-admin-shell .user-detail-form input::placeholder {
    color: #aaa1a5;
}

body.has-admin-shell .user-detail-form input:focus,
body.has-admin-shell .user-detail-form select:focus {
    border-color: rgba(141, 0, 48, 0.55);
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(141, 0, 48, 0.08), inset 0 1px 0 #fff;
}

body.has-admin-shell .user-detail-form input[readonly] {
    border-style: dashed;
    background: rgba(241, 239, 237, 0.72);
    color: #635b5e;
    cursor: not-allowed;
}

.user-form-select-wrap {
    position: relative;
}

.user-form-select-wrap::after {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #746b6f;
    border-bottom: 1.5px solid #746b6f;
    content: "";
    pointer-events: none;
    transform: translateY(-70%) rotate(45deg);
}

body.has-admin-shell .user-detail-form select {
    appearance: none;
    padding-right: 42px;
}

.user-form-help,
.user-form-field-error {
    margin: 0;
    font-size: 10px;
    line-height: 1.45;
}

.user-form-help {
    color: #958a8e;
}

.user-form-field-error,
[data-testid="user-username-error"].user-form-field-error {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a7372e;
}

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

.user-form-info-note {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: -10px;
    color: #756c70;
    font-size: 10px;
}

.user-form-info-note > span {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #eee8eb;
    color: #8d0030;
    font-size: 10px;
    font-weight: 900;
}

.user-form-password-field,
.user-form-toggle-card {
    grid-column: 2;
}

.user-form-password-field {
    margin-bottom: 20px;
}

.user-form-toggle-card {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 18px;
    border: 1px solid rgba(105, 93, 99, 0.14);
    border-radius: 16px;
    background: rgba(246, 244, 243, 0.7);
}

.user-form-toggle-card[hidden] {
    display: none;
}

.user-form-toggle-copy {
    display: flex;
    align-items: center;
    gap: 13px;
}

.user-form-toggle-copy strong {
    display: block;
    margin-bottom: 4px;
    color: #342d30;
    font-size: 12px;
}

.user-form-toggle-copy p {
    margin: 0;
    color: #8c8185;
    font-size: 10px;
    line-height: 1.45;
}

.user-form-toggle-icon {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    background: #eee4e8;
}

.user-form-toggle-icon::before {
    position: absolute;
    inset: 9px 7px;
    border: 1.5px solid #8d0030;
    border-radius: 50% 50% 45% 45%;
    content: "";
}

.user-form-toggle-icon::after {
    position: absolute;
    top: 15px;
    left: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8d0030;
    content: "";
}

body.has-admin-shell .user-detail-form label.user-form-switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex: 0 0 48px;
    cursor: pointer;
}

body.has-admin-shell .user-detail-form .user-form-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    opacity: 0;
}

.user-form-switch-track {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(103, 93, 97, 0.18);
    border-radius: 999px;
    background: #d9d5d3;
    transition: background 160ms ease, box-shadow 160ms ease;
}

.user-form-switch-track > span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(54, 44, 48, 0.2);
    transition: transform 180ms ease;
}

.user-form-switch input:checked ~ .user-form-switch-track {
    background: #8d0030;
    box-shadow: inset 0 1px 2px rgba(74, 0, 25, 0.2);
}

.user-form-switch input:checked ~ .user-form-switch-track > span {
    transform: translateX(20px);
}

.user-form-switch input:focus-visible ~ .user-form-switch-track {
    outline: 3px solid rgba(141, 0, 48, 0.14);
    outline-offset: 2px;
}

.user-form-actions {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 17px 19px 17px 26px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.98),
            0 15px 36px rgba(55, 60, 70, 0.075);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    backdrop-filter: blur(22px) saturate(140%);
}

.user-form-actions > p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #83797d;
    font-size: 10px;
}

.user-form-actions > p > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2f8a61;
    box-shadow: 0 0 0 4px rgba(47, 138, 97, 0.1);
}

.user-form-actions > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

body.has-admin-shell .user-detail-form .user-form-actions a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(98, 87, 92, 0.16);
    border-radius: 13px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.7);
    color: #62585c;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
    font-size: 12px;
}

body.has-admin-shell .user-detail-form .user-form-actions a:hover {
    border-color: rgba(141, 0, 48, 0.24);
    background: #fff;
    color: #8d0030;
    text-decoration: none;
}

body.has-admin-shell .user-detail-form .user-form-actions button {
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    padding: 0 8px 0 18px;
    background: linear-gradient(135deg, #690021, #9b0035);
    color: #fff;
    box-shadow: 0 13px 28px rgba(105, 0, 33, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-size: 12px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

body.has-admin-shell .user-detail-form .user-form-actions button:hover {
    background: linear-gradient(135deg, #780027, #aa003a);
    box-shadow: 0 16px 32px rgba(105, 0, 33, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.user-form-actions button i {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffe5ed;
    font-size: 15px;
    font-style: normal;
}

@media (max-width: 900px) {
    body.has-admin-shell .user-form-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .user-form-password-field,
    .user-form-toggle-card,
    .user-form-info-note {
        grid-column: 1;
    }
}

@media (max-width: 760px) {
    body.has-admin-shell .user-form-main {
        width: calc(100% - 20px);
        gap: 12px;
        margin-top: 14px;
    }

    .user-form-breadcrumb {
        padding: 2px 4px 4px;
    }

    .user-form-hero {
        min-height: 220px;
        padding: 26px 24px;
    }

    .user-form-hero h1 {
        font-size: 36px;
    }

    .user-form-hero-art {
        position: absolute;
        top: 24px;
        right: 18px;
        width: 96px;
        height: 96px;
        opacity: 0.42;
        transform: rotate(5deg) scale(0.86);
        transform-origin: top right;
    }

    .user-form-hero-copy {
        align-self: flex-end;
    }

    body.has-admin-shell .user-form-section {
        gap: 22px;
        padding: 24px 20px;
        border-radius: 20px;
    }

    .user-form-grid,
    .user-form-date-grid {
        grid-template-columns: 1fr;
    }

    .user-form-field-wide {
        grid-column: 1;
    }

    .user-form-password-field {
        margin-bottom: 4px;
    }

    .user-form-toggle-card {
        gap: 14px;
        padding: 15px;
    }

    .user-form-toggle-icon {
        display: none;
    }

    .user-form-actions {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .user-form-actions > div {
        display: grid;
        grid-template-columns: minmax(92px, 0.55fr) minmax(0, 1.45fr);
    }

    body.has-admin-shell .user-detail-form .user-form-actions a,
    body.has-admin-shell .user-detail-form .user-form-actions button {
        width: 100%;
    }

    body.has-admin-shell .user-detail-form .user-form-actions button {
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .user-form-main *,
    .user-form-main *::before,
    .user-form-main *::after {
        transition-duration: 0.01ms !important;
    }
}

/* Refined visual system for authentication and administration. */
.auth-body {
    background:
            radial-gradient(circle at 8% 12%, rgba(165, 0, 52, 0.08), transparent 300px),
            #efeee9;
}

.auth-body .login-shell {
    width: min(1180px, calc(100% - 48px));
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
    gap: 0;
    align-content: center;
    margin: 0 auto;
    padding: 48px 0;
}

.auth-body .login-brand-panel,
.auth-body .login-card {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    border: 0;
    box-shadow: 0 28px 70px rgba(36, 29, 32, 0.12);
}

.auth-body .login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-content: initial;
    padding: 42px 46px;
    border-radius: 28px 0 0 28px;
    background:
            linear-gradient(rgba(26, 24, 25, 0.055) 1px, transparent 1px),
            linear-gradient(90deg, rgba(26, 24, 25, 0.055) 1px, transparent 1px),
            #f8f6f1;
    background-size: 42px 42px;
    color: #1b191a;
}

.auth-body .login-brand-panel::before {
    position: absolute;
    right: -140px;
    bottom: -155px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: #760027;
    box-shadow: 0 0 0 36px rgba(118, 0, 39, 0.09), 0 0 0 72px rgba(118, 0, 39, 0.045);
    content: "";
}

.auth-body .login-brand-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.auth-body .login-brand-mark {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 14px;
    background: #8d0030;
    color: #fff;
    box-shadow: none;
}

.auth-body .login-brand-panel .admin-kicker {
    color: #4e484b;
    letter-spacing: 0.11em;
}

.auth-body .login-brand-copy {
    position: relative;
    z-index: 2;
    margin-bottom: 86px;
}

.auth-body .login-brand-panel h1 {
    max-width: 520px;
    color: #1b191a;
    font-size: clamp(48px, 4.5vw, 68px);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.075em;
}

.auth-body .login-brand-art {
    position: absolute;
    right: 76px;
    bottom: 66px;
    z-index: 2;
    width: 102px;
    height: 102px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
}

.auth-body .login-brand-art::before,
.auth-body .login-brand-art::after,
.auth-body .login-brand-art span {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    content: "";
}

.auth-body .login-brand-art::before {
    inset: 18px;
}

.auth-body .login-brand-art::after {
    inset: 36px;
    background: rgba(255, 255, 255, 0.9);
}

.auth-body .login-brand-art span {
    top: -5px;
    right: 11px;
    width: 12px;
    height: 12px;
    border: 0;
    background: #fff;
}

.auth-body .login-card {
    padding: 64px 58px;
    border-radius: 0 28px 28px 0;
    background: #fff;
}

.auth-body .login-card::before {
    position: absolute;
    top: 42px;
    right: 42px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: -17px 0 0 #d8d3ce, -34px 0 0 #e9e6e1;
    content: "";
}

.auth-body .login-card > .admin-kicker {
    color: var(--brand);
    letter-spacing: 0.14em;
}

.auth-body .login-card h2 {
    margin: 12px 0 34px;
    font-size: 42px;
    letter-spacing: -0.055em;
}

.auth-body .login-card form {
    gap: 18px;
}

.auth-body .login-card form > div {
    display: grid;
    gap: 8px;
}

.auth-body .login-card label {
    color: #625b5e;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.auth-body .login-card input {
    min-height: 52px;
    border: 1px solid #dcd8d5;
    border-radius: 12px;
    padding: 0 15px;
    background: #faf9f7;
    box-shadow: none;
}

.auth-body .login-card input:focus {
    border-color: #760027;
    outline: 4px solid rgba(118, 0, 39, 0.08);
    background: #fff;
}

.auth-body .login-card button {
    min-height: 52px;
    margin-top: 6px;
    border-radius: 12px;
    background: #8d0030;
    box-shadow: none;
    letter-spacing: 0.02em;
}

.auth-body .login-card button:hover {
    background: #760027;
}

body.has-admin-shell .admin-shell {
    grid-template-columns: clamp(260px, 15vw, 288px) minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    background:
            linear-gradient(145deg, #e9eff5 0%, #f6f2f4 48%, #edf1f6 100%);
}

body.has-admin-shell .admin-sidebar {
    gap: 34px;
    padding: 22px 14px;
    height: calc(100vh - 24px);
    top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.52);
    color: #211d1f;
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.94),
            0 18px 48px rgba(51, 60, 72, 0.11);
    -webkit-backdrop-filter: blur(28px) saturate(145%);
    backdrop-filter: blur(28px) saturate(145%);
}

body.has-admin-shell .admin-brand {
    gap: 11px;
    padding: 10px;
    border: 0;
    background: transparent;
    color: #211d1f;
}

body.has-admin-shell .admin-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #8d0030;
    box-shadow: none;
}

body.has-admin-shell .admin-brand small {
    color: #8a7f83;
}

body.has-admin-shell .admin-brand strong,
body.has-admin-shell .admin-brand small,
body.has-admin-shell .admin-nav a {
    white-space: nowrap;
}

body.has-admin-shell .admin-nav {
    gap: 4px;
}

body.has-admin-shell .admin-nav a {
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
    border: 0;
    border-radius: 11px;
    padding: 0 16px;
    color: #665d62;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: -0.01em;
}

body.has-admin-shell .admin-nav a:hover {
    border: 0;
    background: rgba(255, 255, 255, 0.5);
    color: #5f1731;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

body.has-admin-shell .admin-nav a[aria-current="page"] {
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.64);
    color: #7d002b;
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.95),
            0 10px 28px rgba(59, 47, 54, 0.1);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
}

body.has-admin-shell .admin-nav a[aria-current="page"]::before {
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: #9c0036;
    content: "";
}

body.has-admin-shell .admin-logout-form {
    margin: auto 0 0;
    padding: 0 8px;
}

body.has-admin-shell .admin-logout-form button {
    width: 100%;
    min-height: 42px;
    border: 1px solid rgba(141, 0, 48, .16);
    border-radius: 11px;
    background: #8d0030;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

body.has-admin-shell .admin-logout-form button:hover {
    background: #700026;
}

body.has-admin-shell .admin-content {
    min-height: calc(100vh - 24px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

body.has-admin-shell .admin-topbar {
    min-height: 78px;
    padding: 15px 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
}

body.has-admin-shell .admin-topbar strong {
    font-size: 20px;
    letter-spacing: -0.03em;
}

body.has-admin-shell .admin-quick-link {
    min-height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: #312d2f;
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.96),
            0 8px 22px rgba(61, 53, 57, 0.08);
    -webkit-backdrop-filter: blur(16px) saturate(145%);
    backdrop-filter: blur(16px) saturate(145%);
}

body.has-admin-shell main {
    width: calc(100% - 32px);
    margin-top: 34px;
}

body.has-admin-shell form:first-of-type {
    gap: 12px;
    padding: 16px;
    border: 1px solid #dedbd7;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
}

body.has-admin-shell form:first-of-type label {
    color: #716a6d;
}

body.has-admin-shell input,
body.has-admin-shell select,
body.has-admin-shell textarea {
    border-color: #d8d4d0;
    border-radius: 10px;
    background: #fbfaf8;
}

body.has-admin-shell form:first-of-type > button {
    border-radius: 10px;
    background: #8d0030;
    box-shadow: none;
}

body.has-admin-shell form:first-of-type > a {
    border: 0;
    border-radius: 10px;
    background: #8d0030;
    color: #fff;
    box-shadow: none;
}

body.has-admin-shell table {
    border: 1px solid #dedbd7;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

body.has-admin-shell th {
    height: 48px;
    background: #f8f7f4;
    color: #716a6d;
    font-size: 11px;
    letter-spacing: 0.07em;
}

body.has-admin-shell td {
    height: 60px;
    border-bottom-color: #ece9e6;
}

body.has-admin-shell tbody tr:hover td {
    background: #fbf8f9;
}

body.has-admin-shell .table-action-list {
    gap: 6px;
}

body.has-admin-shell .table-action-list a,
body.has-admin-shell .table-action-list button,
body.has-admin-shell td a,
body.has-admin-shell td form button {
    min-height: 32px;
    border-color: #dfdbd8;
    border-radius: 9px;
    padding: 0 10px;
    background: #fff;
    box-shadow: none;
    font-size: 12px;
}

.content-type-badge,
.content-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.content-type-badge {
    background: #efedf3;
    color: #514665;
}

.content-status-badge {
    background: #e9f5ee;
    color: #237044;
}

.content-status-badge.status-inactive,
.content-status-badge.status-ended {
    background: #f2eeef;
    color: #746a6e;
}

@media (max-width: 980px) {
    .auth-body .login-shell {
        grid-template-columns: 1fr;
        width: min(680px, calc(100% - 32px));
    }

    .auth-body .login-brand-panel,
    .auth-body .login-card {
        min-height: auto;
    }

    .auth-body .login-brand-panel {
        min-height: 330px;
        border-radius: 24px 24px 0 0;
    }

    .auth-body .login-brand-copy {
        margin: 60px 0 0;
    }

    .auth-body .login-brand-panel h1 {
        font-size: 48px;
    }

    .auth-body .login-card {
        border-radius: 0 0 24px 24px;
    }

    body.has-admin-shell .admin-shell {
        display: block;
    }

    body.has-admin-shell .admin-sidebar {
        position: static;
        height: auto;
    }
}

@media (max-width: 620px) {
    .auth-body .login-shell {
        width: calc(100% - 20px);
        padding: 10px 0;
    }

    .auth-body .login-brand-panel {
        min-height: 260px;
        padding: 28px;
    }

    .auth-body .login-brand-panel::before {
        right: -60px;
        bottom: -100px;
        width: 160px;
        height: 160px;
        box-shadow: 0 0 0 16px rgba(118, 0, 39, 0.08), 0 0 0 32px rgba(118, 0, 39, 0.04);
    }

    .auth-body .login-brand-copy {
        margin-top: 44px;
    }

    .auth-body .login-brand-panel h1 {
        font-size: 38px;
    }

    .auth-body .login-brand-art {
        display: none;
    }

    .auth-body .login-card {
        padding: 40px 28px;
    }

    .auth-body .login-card h2 {
        font-size: 34px;
    }
}

/* Premium login experience. Isolated from the password-change screen. */
.login-page-body {
    --login-ink: #111827;
    --login-plum: #1b080e;
    --login-wine: #a50034;
    --login-rose: #fd312e;
    --login-cream: #f0ece4;
    position: relative;
    display: grid;
    place-items: center;
    min-height: 100svh;
    overflow-x: hidden;
    background:
            radial-gradient(circle at 12% 16%, rgba(253, 49, 46, 0.18), transparent 29rem),
            radial-gradient(circle at 88% 84%, rgba(165, 0, 52, 0.24), transparent 31rem),
            linear-gradient(135deg, #090606 0%, #17070c 48%, #050505 100%);
    background-size: 112% 112%, 116% 116%, 100% 100%;
    animation: login-background-drift 18s ease-in-out infinite alternate;
}

.login-page-body::before,
.login-page-body::after {
    position: fixed;
    z-index: 0;
    border: 0;
    border-radius: 50%;
    pointer-events: none;
    content: "";
}

.login-page-body::before {
    top: -19rem;
    right: -12rem;
    width: 44rem;
    height: 44rem;
    background: radial-gradient(circle, rgba(253, 49, 46, 0.15), rgba(253, 49, 46, 0) 68%);
    filter: blur(28px);
    animation: login-ambient-one 14s ease-in-out infinite alternate;
}

.login-page-body::after {
    bottom: -24rem;
    left: -12rem;
    width: 38rem;
    height: 38rem;
    background: radial-gradient(circle, rgba(165, 0, 52, 0.17), rgba(165, 0, 52, 0) 70%);
    filter: blur(34px);
    animation: login-ambient-two 17s ease-in-out infinite alternate;
}

.login-page-body .login-shell {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 64px));
    min-height: auto;
    grid-template-columns: minmax(0, 1.16fr) minmax(400px, 0.84fr);
    align-content: initial;
    gap: 0;
    margin: 48px auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow:
            0 42px 110px rgba(0, 0, 0, 0.58),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(28px) saturate(125%);
    -webkit-backdrop-filter: blur(28px) saturate(125%);
}

.login-page-body .login-brand-panel,
.login-page-body .login-card {
    position: relative;
    min-height: min(720px, calc(100svh - 96px));
    overflow: hidden;
    border: 0;
    box-shadow: none;
}

.login-page-body .login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 48px 52px 46px;
    border-radius: 33px 0 0 33px;
    background:
            linear-gradient(130deg, rgba(255, 255, 255, 0.075), transparent 36%),
            radial-gradient(circle at 70% 70%, rgba(253, 49, 46, 0.12), transparent 23rem),
            linear-gradient(145deg, rgba(67, 4, 23, 0.96), rgba(13, 5, 7, 0.99));
    color: #fff;
}

.login-page-body .login-brand-panel::after {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: radial-gradient(rgba(255, 231, 226, 0.46) 0.55px, transparent 0.55px);
    background-size: 8px 8px;
    mask-image: linear-gradient(110deg, #000, transparent 64%);
    pointer-events: none;
    content: "";
    animation: login-grain-drift 24s linear infinite;
}

.login-page-body .login-brand-panel::before {
    position: absolute;
    right: -92px;
    bottom: -118px;
    width: 430px;
    height: 430px;
    border: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 49, 46, 0.2), rgba(165, 0, 52, 0.07) 44%, transparent 70%);
    filter: blur(22px);
    content: "";
    animation: login-halo-float 11s ease-in-out infinite alternate;
}

.login-page-body .login-brand-header,
.login-page-body .login-brand-art {
    position: relative;
    z-index: 2;
}

.login-page-body .login-brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.login-page-body .login-brand-mark {
    position: relative;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(253, 49, 46, 0.07));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 8px 24px rgba(0, 10, 40, 0.22);
}

.login-page-body .login-brand-mark span {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 1.5px solid #fff;
    border-radius: 7px;
    transform: rotate(45deg);
}

.login-page-body .login-brand-mark span:first-child {
    top: 7px;
    left: 7px;
}

.login-page-body .login-brand-mark span:last-child {
    right: 7px;
    bottom: 7px;
    border-color: var(--login-rose);
}

.login-page-body .login-brand-header strong,
.login-page-body .login-brand-header > div:last-child > span {
    display: block;
}

.login-page-body .login-brand-header strong {
    color: #fff;
    font-size: 14px;
    letter-spacing: -0.015em;
}

.login-page-body .login-brand-header > div:last-child > span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-page-body .login-brand-art {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(370px, 57%);
    height: auto;
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    transform: translate(-50%, -46%);
}

.login-page-body .login-brand-art::before,
.login-page-body .login-brand-art::after {
    position: absolute;
    border-radius: 50%;
    content: "";
}

.login-page-body .login-brand-art::before {
    inset: 0;
    border: 1px solid rgba(255, 230, 224, 0.2);
    border-top-color: rgba(255, 255, 255, 0.92);
    border-right-color: rgba(253, 49, 46, 0.62);
    box-shadow: inset 0 0 54px rgba(253, 49, 46, 0.025), 0 0 34px rgba(165, 0, 52, 0.1);
    animation: login-orbit-spin 22s linear infinite;
}

.login-page-body .login-brand-art::after {
    inset: 16%;
    border: 1px solid rgba(255, 224, 218, 0.17);
    border-bottom-color: rgba(253, 49, 46, 0.75);
    border-left-color: rgba(255, 255, 255, 0.4);
    background: transparent;
    box-shadow: 0 0 28px rgba(165, 0, 52, 0.07);
    animation: login-orbit-spin-reverse 17s linear infinite;
}

.login-page-body .login-orbit,
.login-page-body .login-orbit-core {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.login-page-body .login-brand-art .login-orbit-one {
    inset: 31%;
    width: auto;
    height: auto;
    border: 1px solid rgba(255, 236, 231, 0.28);
    border-right-color: rgba(253, 49, 46, 0.72);
    background: transparent;
    box-shadow: inset 0 0 25px rgba(165, 0, 52, 0.06);
    animation: login-orbit-spin 12s linear infinite;
}

.login-page-body .login-orbit-satellite {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border: 2px solid rgba(255, 247, 244, 0.92);
    border-radius: 50%;
    background: #fd312e;
    box-shadow: 0 0 10px #fd312e, 0 0 28px rgba(253, 49, 46, 0.78);
    offset-path: ellipse(50% 50% at 50% 50%);
    offset-distance: 0%;
    offset-rotate: 0deg;
    animation:
            login-satellite-orbit 9s linear infinite,
            login-satellite-glow 2.8s ease-in-out infinite alternate;
}

.login-page-body .login-brand-art .login-orbit-three {
    inset: 10% -9% 25%;
    width: auto;
    height: auto;
    border: 1px solid rgba(253, 49, 46, 0.2);
    border-top-color: rgba(255, 238, 233, 0.48);
    background: transparent;
    transform: rotate(34deg);
    animation: login-orbit-tilt 11s ease-in-out infinite alternate;
}

.login-page-body .login-brand-art .login-orbit-core {
    inset: 36%;
    width: auto;
    height: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 239, 234, 0.72);
    background:
            radial-gradient(circle at 32% 25%, rgba(255, 255, 255, 0.96) 0 6%, rgba(255, 177, 162, 0.72) 18%, transparent 38%),
            radial-gradient(circle at 68% 74%, rgba(108, 0, 32, 0.58), transparent 47%),
            linear-gradient(145deg, rgba(253, 49, 46, 0.9), rgba(165, 0, 52, 0.88));
    box-shadow:
            inset 10px 12px 24px rgba(255, 255, 255, 0.24),
            inset -12px -16px 28px rgba(77, 0, 23, 0.35),
            0 0 35px rgba(253, 49, 46, 0.42),
            0 0 90px rgba(165, 0, 52, 0.24);
    animation: login-core-pulse 5.6s ease-in-out infinite alternate;
}

.login-page-body .login-brand-art .login-orbit-core::after {
    position: absolute;
    top: 12%;
    left: 18%;
    width: 42%;
    height: 22%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.42);
    filter: blur(5px);
    content: "";
    transform: rotate(-24deg);
}

.login-page-body .login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 58px clamp(42px, 4.4vw, 70px);
    border-left: 1px solid rgba(83, 56, 60, 0.1);
    border-radius: 0 33px 33px 0;
    background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(240, 236, 228, 0.93));
    color: var(--login-ink);
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
}

.login-page-body .login-card::after {
    position: absolute;
    top: -35%;
    left: -55%;
    width: 42%;
    height: 170%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    pointer-events: none;
    transform: rotate(14deg);
    content: "";
    animation: login-glass-sheen 10s ease-in-out infinite;
}

.login-page-body .login-card > * {
    position: relative;
    z-index: 1;
}

.login-page-body .login-card::before {
    top: 38px;
    right: 38px;
    width: 7px;
    height: 7px;
    background: #a50034;
    box-shadow: -15px 0 0 rgba(165, 0, 52, 0.24), -30px 0 0 rgba(165, 0, 52, 0.09);
}

.login-page-body .login-card-heading {
    margin-bottom: 34px;
}

.login-page-body .login-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a50034;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.login-page-body .login-card-kicker i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #fd312e;
    box-shadow: 0 0 0 4px rgba(253, 49, 46, 0.12);
}

.login-page-body .login-card h2 {
    margin: 15px 0 0;
    color: var(--login-ink);
    font-size: clamp(36px, 3.2vw, 46px);
    font-weight: 820;
    line-height: 1.08;
    letter-spacing: -0.065em;
}

.login-page-body .login-alert {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: -12px 0 22px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

.login-page-body .login-alert > span {
    display: inline-grid;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
}

.login-page-body .login-alert-error {
    border-color: #f1c8c6;
    background: #fff2f1;
    color: #9f2d27;
}

.login-page-body .login-alert-error > span {
    background: #b73b34;
    color: #fff;
}

.login-page-body .login-alert-info {
    border-color: #cddced;
    background: #f2f7fc;
    color: #315f8b;
}

.login-page-body .login-alert-info > span {
    background: #477cae;
    color: #fff;
}

.login-page-body .login-alert-success {
    border-color: #bfdfce;
    background: #eff9f3;
    color: #246b47;
}

.login-page-body .login-alert-success > span {
    background: #31805a;
    color: #fff;
}

.login-page-body .login-card form {
    display: grid;
    gap: 19px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.login-page-body .login-card form > .login-field {
    display: grid;
    gap: 8px;
}

.login-page-body .login-card label {
    color: #554b4c;
    font-size: 11px;
    font-weight: 820;
    letter-spacing: 0.035em;
}

.login-page-body .login-input-wrap {
    position: relative;
}

.login-page-body .login-card input {
    min-width: 0;
    min-height: 56px;
    border: 1px solid rgba(90, 68, 71, 0.17);
    border-radius: 15px;
    padding: 0 16px 0 48px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--login-ink);
    font-size: 14px;
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.9),
            0 6px 18px rgba(64, 24, 35, 0.035);
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.login-page-body .login-card input::placeholder {
    color: #aaa0a6;
}

.login-page-body .login-card input:focus {
    border-color: rgba(165, 0, 52, 0.68);
    outline: 0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(165, 0, 52, 0.1), 0 12px 30px rgba(94, 10, 37, 0.08);
}

.login-page-body .login-card input:-webkit-autofill,
.login-page-body .login-card input:-webkit-autofill:hover,
.login-page-body .login-card input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--login-ink);
    box-shadow: inset 0 0 0 1000px #fff, 0 0 0 4px rgba(165, 0, 52, 0.07);
}

.login-page-body .login-field-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    z-index: 1;
    width: 16px;
    height: 16px;
    color: #8c7e80;
    pointer-events: none;
    transform: translateY(-50%);
    transition: color 180ms ease;
}

.login-page-body .login-input-wrap:focus-within .login-field-icon {
    color: var(--login-wine);
}

.login-page-body .login-user-icon::before,
.login-page-body .login-user-icon::after {
    position: absolute;
    left: 50%;
    border: 1.5px solid currentColor;
    content: "";
    transform: translateX(-50%);
}

.login-page-body .login-user-icon::before {
    top: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.login-page-body .login-user-icon::after {
    bottom: 0;
    width: 12px;
    height: 7px;
    border-radius: 8px 8px 3px 3px;
}

.login-page-body .login-lock-icon::before {
    position: absolute;
    top: 0;
    left: 3px;
    width: 8px;
    height: 8px;
    border: 1.5px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    content: "";
}

.login-page-body .login-lock-icon::after {
    position: absolute;
    right: 1px;
    bottom: 0;
    left: 1px;
    height: 9px;
    border: 1.5px solid currentColor;
    border-radius: 3px;
    content: "";
}

.login-page-body .login-card button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    margin-top: 5px;
    padding: 0 9px 0 21px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background:
            linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 42%),
            linear-gradient(135deg, #52001a, #a50034);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 15px 32px rgba(100, 0, 31, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.login-page-body .login-card button:hover {
    background:
            linear-gradient(115deg, rgba(255, 255, 255, 0.14), transparent 42%),
            linear-gradient(135deg, #730025, #b00038);
    box-shadow: 0 19px 38px rgba(100, 0, 31, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.login-page-body .login-card button:active {
    transform: translateY(0);
}

.login-page-body .login-card button:focus-visible {
    outline: 3px solid rgba(165, 0, 52, 0.22);
    outline-offset: 3px;
}

.login-page-body .login-button-arrow {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffe6df;
    font-size: 17px;
}

@keyframes login-background-drift {
    0% { background-position: 0% 0%, 100% 100%, 0 0; }
    100% { background-position: 5% 4%, 94% 95%, 0 0; }
}

@keyframes login-ambient-one {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-32px, 28px, 0) scale(1.06); }
}

@keyframes login-ambient-two {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(42px, -26px, 0) scale(0.94); }
}

@keyframes login-grain-drift {
    to { background-position: 49px 28px; }
}

@keyframes login-halo-float {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-28px, -20px, 0) scale(1.06); }
}

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

@keyframes login-orbit-spin-reverse {
    to { transform: rotate(-360deg); }
}

@keyframes login-orbit-breathe {
    0% { opacity: 0.38; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1.08); }
}

@keyframes login-spark-pulse {
    0% { opacity: 0.45; transform: translateX(-50%) scale(0.75); }
    100% { opacity: 1; transform: translateX(-50%) scale(1.18); }
}

@keyframes login-satellite-orbit {
    to { offset-distance: 100%; }
}

@keyframes login-satellite-glow {
    0% {
        opacity: 0.72;
        box-shadow: 0 0 8px #fd312e, 0 0 18px rgba(253, 49, 46, 0.55);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 12px #fd312e, 0 0 32px rgba(253, 49, 46, 0.88);
    }
}

@keyframes login-orbit-tilt {
    0% { opacity: 0.38; transform: rotate(30deg) scale(0.98); }
    100% { opacity: 0.78; transform: rotate(40deg) scale(1.02); }
}

@keyframes login-core-pulse {
    0% { transform: scale(0.96); filter: brightness(0.96) saturate(0.95); }
    100% { transform: scale(1.04); filter: brightness(1.08) saturate(1.08); }
}

@keyframes login-glass-sheen {
    0%, 38% { left: -55%; opacity: 0; }
    48% { opacity: 0.55; }
    62%, 100% { left: 125%; opacity: 0; }
}

@media (max-width: 980px) {
    .login-page-body {
        display: block;
    }

    .login-page-body .login-shell {
        width: min(680px, calc(100% - 32px));
        grid-template-columns: 1fr;
        margin: 32px auto;
    }

    .login-page-body .login-brand-panel,
    .login-page-body .login-card {
        min-height: auto;
    }

    .login-page-body .login-brand-panel {
        min-height: 410px;
        padding: 36px 40px;
        border-radius: 33px 33px 0 0;
    }

    .login-page-body .login-brand-art {
        width: 220px;
        transform: translate(-50%, -40%);
    }

    .login-page-body .login-card {
        padding: 52px 56px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        border-left: 0;
        border-radius: 0 0 33px 33px;
    }
}

@media (max-width: 620px) {
    .login-page-body .login-shell {
        width: calc(100% - 20px);
        margin: 10px auto;
        border-radius: 25px;
    }

    .login-page-body .login-brand-panel {
        min-height: 260px;
        padding: 26px;
        border-radius: 24px 24px 0 0;
    }

    .login-page-body .login-brand-header {
        gap: 11px;
    }

    .login-page-body .login-brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .login-page-body .login-brand-mark span {
        width: 17px;
        height: 17px;
    }

    .login-page-body .login-brand-panel::before {
        right: -66px;
        bottom: -84px;
        width: 240px;
        height: 240px;
        filter: blur(18px);
    }

    .login-page-body .login-brand-art {
        display: block;
        width: 142px;
        transform: translate(-50%, -30%);
    }

    .login-page-body .login-card {
        padding: 42px 26px 34px;
        border-radius: 0 0 24px 24px;
    }

    .login-page-body .login-card::before {
        top: 25px;
        right: 25px;
    }

    .login-page-body .login-card h2 {
        font-size: 38px;
    }

}

@media (prefers-reduced-motion: reduce) {
    .login-page-body *,
    .login-page-body *::before,
    .login-page-body *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* User management is the administrator landing experience. */
body.has-admin-shell .users-main {
    display: grid;
    gap: 18px;
    width: calc(100% - 32px);
    margin-top: 28px;
}

.users-overview {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin: 0;
    padding: 34px 38px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.98),
            inset 0 -1px 0 rgba(255, 255, 255, 0.3),
            0 22px 54px rgba(56, 61, 72, 0.12);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);
}

.users-overview::before,
.users-overview::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.users-overview::before {
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.68), transparent 34%, rgba(255, 255, 255, 0.18) 70%, rgba(255, 255, 255, 0.52));
}

.users-overview::after {
    top: 1px;
    right: 8%;
    width: 32%;
    height: 1px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
}

.users-overview-copy,
.users-create-button {
    position: relative;
    z-index: 1;
}

.users-overview-copy {
    max-width: 720px;
}

.users-overview .admin-kicker {
    color: #8d0030;
    letter-spacing: 0.14em;
}

.users-overview h1 {
    margin: 12px 0 12px;
    color: #211d1f;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.065em;
}

.users-overview p {
    max-width: 640px;
    margin: 0;
    color: #6e6267;
    font-size: 14px;
}

.users-overview p strong {
    color: #8d0030;
    font-size: 20px;
}

.users-create-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    margin-right: 0;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(126, 0, 43, 0.9);
    color: #fff;
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.22),
            0 14px 30px rgba(91, 0, 31, 0.2);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    backdrop-filter: blur(14px) saturate(135%);
}

.users-create-button:hover {
    background: #6f0023;
    text-decoration: none;
}

.users-create-button span {
    font-size: 20px;
    font-weight: 500;
}

body.has-admin-shell .users-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto auto;
    align-items: end;
    gap: 10px;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.94),
            0 14px 34px rgba(55, 60, 70, 0.08);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
}

.users-search-field {
    display: grid;
    gap: 7px;
}

.users-search-field span {
    padding-left: 3px;
    color: #71676b;
    font-size: 11px;
    font-weight: 850;
}

body.has-admin-shell .users-search input {
    min-height: 44px;
    border: 1px solid #ded8d4;
    border-radius: 10px;
    padding: 0 14px;
    background: #faf9f7;
}

body.has-admin-shell .users-search > button,
body.has-admin-shell .users-search-reset {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 18px;
    box-shadow: none;
}

body.has-admin-shell .users-search > button {
    border: 0;
    background: #8d0030;
    color: #fff;
}

body.has-admin-shell .users-search-reset {
    border: 1px solid #ded8d4;
    background: #fff;
    color: #62585c;
}

.users-directory {
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.98),
            0 18px 44px rgba(55, 60, 70, 0.09);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    backdrop-filter: blur(24px) saturate(135%);
}

.users-directory-head {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-bottom: 1px solid #e8e3df;
}

.users-directory-head h2 {
    margin: 0 0 4px;
    color: #211d1f;
    font-size: 18px;
    letter-spacing: -0.035em;
}

.users-directory-head p {
    margin: 0;
    color: #8a7f83;
    font-size: 12px;
}

.users-directory-head > span {
    border-radius: 999px;
    padding: 7px 11px;
    background: #f4eef0;
    color: #6f5962;
    font-size: 12px;
    font-weight: 750;
}

.users-directory-head > span strong {
    margin-right: 2px;
    color: #8d0030;
}

body.has-admin-shell .users-table {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body.has-admin-shell .users-table th {
    height: 46px;
    padding-right: 18px;
    padding-left: 18px;
    background: #faf9f7;
}

body.has-admin-shell .users-table td {
    height: 72px;
    padding-right: 18px;
    padding-left: 18px;
}

.user-identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-avatar {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: 11px;
    background: #f1e7eb;
    color: #8d0030;
    font-size: 13px;
    font-weight: 950;
}

.user-identity strong {
    color: #211d1f;
    font-size: 14px;
}

.user-role-badge,
.user-status-badge,
.user-setting {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    border-radius: 999px;
    padding: 0 9px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.user-role-badge.role-admin {
    background: #eee9f4;
    color: #5a4774;
}

.user-role-badge.role-user {
    background: #eaf1f8;
    color: #3a607e;
}

.user-status-badge.status-active {
    background: #e9f5ee;
    color: #227045;
}

.user-status-badge.status-disabled {
    background: #f2eeef;
    color: #746a6e;
}

.user-setting {
    min-height: 24px;
    padding: 0 8px;
    background: #f3f1ef;
    color: #7a7174;
}

.user-setting.is-enabled {
    background: #f7e9ee;
    color: #8d0030;
}

.user-date {
    color: #655d60;
    font-variant-numeric: tabular-nums;
}

body.has-admin-shell .users-table td form {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.has-admin-shell .users-table .table-action-list a,
body.has-admin-shell .users-table .table-action-list button {
    min-height: 32px;
    border-radius: 9px;
    padding: 0 10px;
    background: #fff;
    box-shadow: none;
    font-size: 11px;
}

body.has-admin-shell .users-table .table-action-list a {
    border: 1px solid #ded8d4;
    color: #62585c;
}

body.has-admin-shell .users-table .table-action-list .user-disable-button {
    border: 1px solid #efd7dd;
    color: #9c2448;
}

body.has-admin-shell .users-table .table-action-list .user-enable-button {
    border: 1px solid #cfe6d8;
    color: #227045;
}

.users-pagination {
    min-height: 58px;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    border-top: 1px solid #e8e3df;
}

.users-pagination a,
.users-pagination span {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 12px;
}

.users-pagination span {
    background: #8d0030;
    color: #fff;
    font-weight: 850;
}

/* Content management follows the same hierarchy as the user directory. */
body.has-admin-shell .content-main {
    display: grid;
    gap: 18px;
    width: calc(100% - 32px);
    margin-top: 28px;
}

.content-overview {
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin: 0;
    padding: 32px 38px;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.48);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.98),
            0 22px 54px rgba(56, 61, 72, 0.12);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);
}

.content-overview-copy {
    max-width: 760px;
}

.content-overview .admin-kicker {
    color: #8d0030;
    letter-spacing: 0.14em;
}

.content-overview h1 {
    margin: 12px 0;
    color: #211d1f;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.content-overview p {
    margin: 0;
    color: #6e6267;
    font-size: 14px;
}

.content-overview p strong {
    color: #8d0030;
    font-size: 20px;
}

.content-create-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 13px;
    padding: 0 18px;
    background: rgba(126, 0, 43, 0.9);
    color: #fff;
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.22),
            0 14px 30px rgba(91, 0, 31, 0.2);
    font-weight: 850;
}

.content-create-button:hover {
    background: #710026;
    color: #fff;
    text-decoration: none;
}

.content-create-button span {
    color: inherit;
    font-size: 20px;
}

body.has-admin-shell .content-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 150px 150px auto auto;
    align-items: end;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.94),
            0 14px 34px rgba(55, 60, 70, 0.08);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
}

.content-search-field {
    display: grid;
    gap: 7px;
}

.content-search-field span {
    padding-left: 3px;
    color: #71676b;
    font-size: 11px;
    font-weight: 850;
}

body.has-admin-shell .content-search input,
body.has-admin-shell .content-search select {
    min-height: 44px;
    min-width: 0;
    border: 1px solid rgba(119, 107, 112, 0.2);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.58);
}

body.has-admin-shell .content-search > button,
body.has-admin-shell .content-search .content-search-reset {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    padding: 0 18px;
    box-shadow: none;
}

body.has-admin-shell .content-search > button {
    border: 0;
    background: #8d0030;
    color: #fff;
}

body.has-admin-shell .content-search .content-search-reset {
    border: 1px solid rgba(119, 107, 112, 0.22);
    background: rgba(255, 255, 255, 0.64);
    color: #62585c;
}

.content-directory {
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.98),
            0 18px 44px rgba(55, 60, 70, 0.09);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    backdrop-filter: blur(24px) saturate(135%);
}

.content-directory-head {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(111, 99, 104, 0.14);
}

.content-directory-head h2 {
    margin: 0 0 4px;
    color: #211d1f;
    font-size: 18px;
    letter-spacing: -0.035em;
}

.content-directory-head p {
    margin: 0;
    color: #8a7f83;
    font-size: 12px;
}

.content-directory-head > span {
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(238, 232, 235, 0.76);
    color: #6f5962;
    font-size: 12px;
    font-weight: 750;
}

.content-directory-head > span strong {
    color: #8d0030;
}

.content-table-scroll {
    overflow-x: auto;
}

body.has-admin-shell .content-table {
    min-width: 1060px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.52);
    box-shadow: none;
}

body.has-admin-shell .content-table th {
    height: 46px;
    padding: 0 16px;
    background: rgba(247, 246, 244, 0.72);
}

body.has-admin-shell .content-table td {
    height: 76px;
    padding: 12px 16px;
}

.content-title strong {
    color: #211d1f;
    font-size: 14px;
}

body.has-admin-shell .content-table code {
    max-width: 170px;
    border: 1px solid rgba(102, 88, 94, 0.12);
    border-radius: 9px;
    background: rgba(244, 246, 249, 0.86);
    color: #52606d;
}

body.has-admin-shell .content-table .content-action-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-width: 280px;
}

body.has-admin-shell .content-table .content-primary-actions,
body.has-admin-shell .content-table .content-secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

body.has-admin-shell .content-table .content-primary-actions {
    padding-bottom: 2px;
}

body.has-admin-shell .content-table .content-action-link,
body.has-admin-shell .content-table .content-end-button,
body.has-admin-shell .content-table .content-activate-button {
    min-height: 32px;
    border-radius: 9px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
    font-size: 11px;
    font-weight: 750;
}

body.has-admin-shell .content-table .content-action-link {
    border: 1px solid rgba(109, 98, 103, 0.18);
    color: #544b4f;
}

body.has-admin-shell .content-table .content-action-link.is-primary {
    border-color: rgba(122, 0, 38, 0.28);
    background: #fff7fa;
    color: #7a0026;
}

body.has-admin-shell .content-table .content-action-link.is-upload {
    border-color: rgba(80, 105, 138, 0.22);
    background: rgba(236, 242, 250, 0.78);
    color: #385a79;
}

body.has-admin-shell .content-table .content-action-link.is-permissions {
    border-color: rgba(42, 117, 101, 0.24);
    background: rgba(235, 248, 243, 0.82);
    color: #276f60;
}

body.has-admin-shell .content-table .content-action-link.is-preview {
    border-color: rgba(92, 71, 121, 0.2);
    background: rgba(242, 238, 248, 0.78);
    color: #5c4975;
}

body.has-admin-shell .content-table .content-end-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.has-admin-shell .content-table .content-activate-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.has-admin-shell .content-table .content-end-button {
    border: 1px solid rgba(171, 64, 52, 0.22);
    color: #a33c31;
}

body.has-admin-shell .content-table .content-activate-button {
    border: 1px solid rgba(39, 125, 92, 0.28);
    background: rgba(235, 248, 240, 0.9);
    color: #23734f;
}

.content-pagination {
    min-height: 58px;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    border-top: 1px solid rgba(111, 99, 104, 0.14);
}

.records-pagination {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 0;
    border-top: 1px solid rgba(111, 99, 104, 0.14);
}

.records-pagination a,
.records-pagination span {
    min-width: 38px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 800;
}

.records-pagination a {
    border: 1px solid rgba(98, 87, 92, 0.16);
    background: rgba(255, 255, 255, 0.78);
    color: #62585c;
}

.records-pagination a:hover {
    border-color: rgba(141, 0, 48, 0.24);
    background: #fff7fa;
    color: #8d0030;
    text-decoration: none;
}

.records-pagination span {
    color: #7b7075;
}

.content-pagination a,
.content-pagination span {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 12px;
}

.content-pagination span {
    background: #8d0030;
    color: #fff;
    font-weight: 850;
}

@media (max-width: 1080px) {
    .users-overview {
        min-height: 190px;
        padding: 30px;
    }

    .users-create-button {
        margin-right: 56px;
    }

    body.has-admin-shell .users-main {
        width: min(100% - 32px, 1340px);
    }
}

@media (max-width: 760px) {
    body.has-admin-shell .admin-shell {
        padding: 8px;
    }

    body.has-admin-shell .admin-sidebar {
        display: grid;
        gap: 10px;
        margin-bottom: 8px;
        padding: 12px;
        border-radius: 22px;
    }

    body.has-admin-shell .admin-brand {
        min-height: 48px;
        padding: 4px 6px;
    }

    body.has-admin-shell .admin-nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: thin;
    }

    body.has-admin-shell .admin-nav a {
        min-height: 42px;
        display: inline-flex;
        flex: 0 0 auto;
        padding: 0 13px;
        white-space: nowrap;
        font-size: 12px;
    }

    body.has-admin-shell .admin-nav a[aria-current="page"]::before {
        top: auto;
        right: 13px;
        bottom: 5px;
        left: 13px;
        width: auto;
        height: 2px;
        border-radius: 999px;
    }

    body.has-admin-shell .admin-topbar {
        min-height: 64px;
        flex-direction: row;
        align-items: center;
        padding: 11px 14px;
    }

    body.has-admin-shell .admin-content {
        min-height: auto;
        border-radius: 22px;
    }

    body.has-admin-shell .admin-topbar strong {
        font-size: 17px;
    }

    body.has-admin-shell .admin-topbar .admin-kicker {
        font-size: 10px;
    }

    body.has-admin-shell .admin-quick-link {
        min-height: 34px;
        padding: 0 11px;
        font-size: 11px;
    }

    body.has-admin-shell .users-main {
        width: calc(100% - 20px);
        margin-top: 16px;
    }

    body.has-admin-shell .content-main {
        width: calc(100% - 20px);
        margin-top: 16px;
    }

    .content-overview {
        min-height: 270px;
        display: grid;
        align-content: end;
        padding: 24px;
    }

    .content-overview h1 {
        max-width: 320px;
        font-size: 34px;
        word-break: keep-all;
    }

    .content-create-button {
        width: fit-content;
    }

    body.has-admin-shell .content-search {
        grid-template-columns: 1fr 1fr;
    }

    .content-search-title {
        grid-column: 1 / -1;
    }

    .content-directory-head {
        padding: 16px 18px;
    }

    .users-overview {
        min-height: 260px;
        display: grid;
        align-content: end;
        padding: 24px;
    }

    .users-overview h1 {
        max-width: 310px;
        font-size: 34px;
        word-break: keep-all;
    }

    .users-create-button {
        width: fit-content;
        margin: 0;
    }

    body.has-admin-shell .users-search {
        grid-template-columns: 1fr auto;
    }

    .users-search-field {
        grid-column: 1 / -1;
    }

    .users-directory-head {
        padding: 16px 18px;
    }

    body.has-admin-shell .users-table td,
    body.has-admin-shell .users-table th {
        padding-right: 14px;
        padding-left: 14px;
    }
}

/* Access requests, audit, and protection records. */
body.has-admin-shell .admin-records-main {
    width: calc(100% - 32px);
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.records-overview {
    position: relative;
    min-height: 218px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 34px 38px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 26px;
    background:
            linear-gradient(118deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34)),
            rgba(255, 255, 255, 0.42);
    box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 1),
            0 22px 54px rgba(56, 61, 72, 0.11);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);
}

.records-overview::before {
    position: absolute;
    top: -130px;
    right: 15px;
    width: 430px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 0, 52, 0.12), rgba(165, 0, 52, 0) 68%);
    content: "";
    pointer-events: none;
}

.records-overview-audit::before {
    background: radial-gradient(circle, rgba(72, 82, 120, 0.14), rgba(72, 82, 120, 0) 68%);
}

.records-overview-protection::before {
    background: radial-gradient(circle, rgba(91, 66, 121, 0.14), rgba(91, 66, 121, 0) 68%);
}

.records-overview-access,
.records-overview-audit,
.records-overview-protection {
    min-height: 190px;
}

.records-overview > div:first-child {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.records-overview-access > div:first-child,
.records-overview-audit > div:first-child,
.records-overview-protection > div:first-child {
    max-width: 820px;
}

.records-overview .admin-kicker {
    color: #8d0030;
    letter-spacing: 0.15em;
}

.records-overview-audit .admin-kicker { color: #53627c; }
.records-overview-protection .admin-kicker { color: #655078; }

.records-overview h1 {
    display: block;
    margin: 12px 0 10px;
    color: #211d1f;
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 900;
    line-height: 1.03;
    letter-spacing: -0.065em;
}

.records-overview p {
    margin: 0;
    color: #71666b;
    font-size: 14px;
}

.records-overview p strong {
    margin-right: 3px;
    color: #8d0030;
    font-size: 21px;
}

.records-message {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid rgba(47, 138, 97, 0.18);
    border-radius: 14px;
    background: rgba(239, 249, 243, 0.86);
}

.records-message > span {
    width: 23px;
    height: 23px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #2f8a61;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.records-message p { margin: 0; color: #2d7655; font-size: 12px; font-weight: 750; }

body.has-admin-shell form.records-filter,
body.has-admin-shell form.records-filter:first-of-type {
    display: grid;
    align-items: end;
    gap: 10px;
    margin: 0;
    padding: 13px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 14px 34px rgba(55, 60, 70, 0.075);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
}

body.has-admin-shell form.access-request-filter { grid-template-columns: minmax(250px, 1fr) auto auto; }
body.has-admin-shell form.audit-records-filter { grid-template-columns: 1.1fr 1.25fr 1.25fr .7fr .7fr auto auto; }
body.has-admin-shell form.protection-records-filter { grid-template-columns: 1fr 1fr 1.35fr auto auto; }

.records-filter-field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

body.has-admin-shell form.records-filter label.records-filter-field {
    color: #71676b;
}

.records-filter-field > span {
    padding-left: 3px;
    font-size: 10px;
    font-weight: 850;
}

body.has-admin-shell form.records-filter input,
body.has-admin-shell form.records-filter select {
    min-width: 0;
    min-height: 44px;
    border: 1px solid rgba(105, 95, 99, 0.18);
    border-radius: 11px;
    padding: 0 13px;
    background: rgba(250, 249, 247, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
    font-size: 12px;
}

body.has-admin-shell form.records-filter button,
body.has-admin-shell form.records-filter:first-of-type > button {
    min-height: 44px;
    border-radius: 11px;
    padding: 0 17px;
    background: #8d0030;
    box-shadow: none;
    white-space: nowrap;
    font-size: 11px;
}

body.has-admin-shell form.records-filter .records-filter-reset,
body.has-admin-shell form.records-filter:first-of-type > .records-filter-reset {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(105, 95, 99, 0.18);
    border-radius: 11px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.74);
    color: #62585c;
    box-shadow: none;
    white-space: nowrap;
    font-size: 11px;
}

body.has-admin-shell .records-directory {
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 18px 44px rgba(55, 60, 70, 0.085);
    -webkit-backdrop-filter: blur(24px) saturate(135%);
    backdrop-filter: blur(24px) saturate(135%);
}

.records-directory-head {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(111, 99, 104, 0.13);
}

.records-directory-head h2 { margin: 0 0 4px; color: #211d1f; font-size: 18px; letter-spacing: -0.035em; }
.records-directory-head p { margin: 0; color: #8a7f83; font-size: 11px; }
.records-directory-head > span { border-radius: 999px; padding: 7px 11px; background: #f1ecee; color: #6f5962; font-size: 11px; font-weight: 750; }
.records-directory-head > span strong { color: #8d0030; }

.records-table-scroll { overflow-x: auto; }

body.has-admin-shell table.records-table {
    min-width: 980px;
    border: 0;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: none;
}

body.has-admin-shell table.audit-records-table { min-width: 1180px; }
body.has-admin-shell table.protection-records-table { min-width: 940px; }

body.has-admin-shell table.records-table th {
    height: 46px;
    padding: 0 17px;
    background: rgba(248, 247, 245, 0.78);
    color: #756b6f;
    font-size: 10px;
    letter-spacing: 0.07em;
}

body.has-admin-shell table.records-table td {
    height: 72px;
    padding: 12px 17px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.record-identity { display: flex; align-items: center; gap: 11px; min-width: 190px; }
.record-identity > span { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 36px; border-radius: 11px; background: #f1e7eb; color: #8d0030; font-size: 12px; font-weight: 900; }
.record-identity > div { min-width: 0; display: grid; gap: 3px; }
.record-identity strong, .record-title { color: #292326; font-size: 12px; }
.record-identity small { max-width: 220px; overflow: hidden; color: #93888c; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.record-content-title {
    display: block;
    max-width: 230px;
    overflow: hidden;
    color: #332b2f;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.record-badge {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 9px;
    background: #f0edef;
    color: #675e62;
    font-size: 9px;
    font-weight: 850;
    white-space: nowrap;
}

.record-badge.is-pending { background: #fff3df; color: #916018; }
.record-badge.is-complete, .record-badge.is-success { background: #eaf7f0; color: #28704f; }
.record-badge.is-warning { background: #fff0ee; color: #a13d34; }
.record-badge.is-neutral { background: #edf0f5; color: #53627c; }
.record-badge.is-protection { background: #f0ebf4; color: #655078; }

.record-time {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    min-width: 112px;
    color: #776e72;
    white-space: nowrap;
}

.record-time-date {
    color: #3f373b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.record-time-clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #7f7479;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.record-time-clock small {
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    padding: 1px 5px;
    border: 1px solid rgba(165, 0, 52, .12);
    border-radius: 999px;
    background: rgba(165, 0, 52, .055);
    color: #8f3653;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
}
.record-action { color: #4a3f44; font-size: 10px; letter-spacing: .01em; }
.record-target { display: inline-flex; border-radius: 8px; padding: 5px 7px; background: #f5f3f2; color: #6f666a; font-size: 9px; white-space: nowrap; }
.record-finished { color: #9b9295; font-size: 10px; }

body.has-admin-shell table.records-table code.record-detail {
    max-width: 240px;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(91, 82, 86, 0.11);
    border-radius: 8px;
    padding: 6px 8px;
    background: #f6f5f3;
    color: #6a6165;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.has-admin-shell table.records-table .request-review-form {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.request-review-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.has-admin-shell table.records-table .request-permission-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(83, 98, 124, 0.18);
    border-radius: 9px;
    padding: 0 10px;
    background: #f2f5f9;
    color: #53627c;
    box-shadow: none;
    font-size: 10px;
    white-space: nowrap;
}

body.has-admin-shell table.records-table .request-permission-link:hover {
    border-color: rgba(83, 98, 124, 0.3);
    background: #e9eef5;
    color: #43516a;
    text-decoration: none;
}

body.has-admin-shell table.records-table .request-review-form input:not([type="hidden"]) {
    width: 150px;
    min-width: 150px;
    min-height: 34px;
    border-radius: 9px;
    padding: 0 10px;
    font-size: 10px;
}

body.has-admin-shell table.records-table .request-review-form button {
    min-height: 34px;
    border: 0;
    border-radius: 9px;
    padding: 0 11px;
    background: #8d0030;
    color: #fff;
    box-shadow: none;
    font-size: 10px;
    white-space: nowrap;
}

.records-empty { height: 150px !important; color: #958b8f !important; text-align: center; font-size: 12px !important; font-weight: 600 !important; }

body.has-admin-shell .protection-summary {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 22px 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 15px 36px rgba(55, 60, 70, 0.07);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    backdrop-filter: blur(22px) saturate(135%);
}

body.has-admin-shell .problem-accounts-panel {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 22px 24px 24px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(255, 249, 247, 0.9), rgba(247, 245, 248, 0.74));
    box-shadow: inset 0 1px 0 #fff, 0 15px 36px rgba(82, 54, 61, 0.07);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    backdrop-filter: blur(22px) saturate(135%);
}

.problem-accounts-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.problem-accounts-head h2 { margin: 4px 0 0; color: #302326; font-size: 17px; letter-spacing: -.035em; }
.problem-accounts-head p { margin: 5px 0 0; color: #8d7e82; font-size: 11px; }
.problem-accounts-legend { display: inline-flex; align-items: center; gap: 7px; color: #927177; font-size: 10px; font-weight: 800; }
.problem-accounts-legend i { width: 8px; height: 8px; border-radius: 50%; background: #ad4661; box-shadow: 0 0 0 4px rgba(173, 70, 97, .1); }
.problem-account-list { display: grid; gap: 14px; }
.problem-account-row { display: grid; gap: 8px; }
.problem-account-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.problem-account-meta > div { display: grid; gap: 4px; min-width: 0; }
.problem-account-meta > div > strong { overflow: hidden; color: #392b2f; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.problem-account-meta > div > span { color: #98888d; font-size: 10px; }
.problem-account-meta b { color: #8e4f60; font-weight: 850; }
.problem-account-total { min-width: 28px; color: #843c55; font-size: 15px; text-align: right; }
.problem-account-track { height: 9px; overflow: hidden; border-radius: 999px; background: rgba(155, 125, 133, .14); }
.problem-account-track span { display: block; height: 100%; min-width: 5px; border-radius: inherit; background: linear-gradient(90deg, #d68b9c, #a74361); box-shadow: 0 3px 8px rgba(167, 67, 97, .2); transition: width .35s ease; }
.problem-accounts-empty { margin: 0; padding: 18px 0 4px; color: #8d8084; font-size: 12px; }

.protection-summary > header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.protection-summary h2 { margin: 4px 0 0; color: #292326; font-size: 17px; letter-spacing: -.035em; }
.protection-summary > header p { margin: 0; color: #91868a; font-size: 10px; }
.protection-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.protection-summary-grid article { min-height: 86px; display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid rgba(105, 94, 99, .11); border-radius: 15px; background: rgba(248, 247, 245, .68); }
.protection-summary-icon { position: relative; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 11px; background: #eee8f2; }
.protection-summary-icon::before { position: absolute; inset: 9px; border: 2px solid #655078; border-radius: 50%; content: ""; }
.protection-summary-grid article div { display: grid; gap: 2px; }
.protection-summary-grid article strong { color: #292326; font-size: 20px; line-height: 1; }
.protection-summary-grid article small { color: #897c82; font-size: 8px; font-weight: 850; letter-spacing: .07em; }
.protection-kind-copy .protection-summary-icon::before { inset: 8px 10px 10px 8px; border-radius: 4px; box-shadow: 4px 4px 0 -2px #eee8f2, 4px 4px 0 0 #655078; }
.protection-kind-print .protection-summary-icon::before { inset: 10px 7px 8px; border-radius: 3px; }
.protection-kind-save .protection-summary-icon::before { inset: 8px; border-radius: 3px; }
.protection-kind-download .protection-summary-icon::before { inset: 7px 14px; border-width: 0 0 2px 2px; border-radius: 0; transform: rotate(-45deg); }

.protection-event-chart {
    display: grid;
    gap: 20px;
    margin-top: 4px;
    padding: 22px;
    border: 1px solid rgba(101, 80, 120, .12);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(250, 248, 251, .92), rgba(244, 240, 247, .72));
}

.protection-event-chart > header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.protection-event-chart h3 { margin: 4px 0 0; color: #312a35; font-size: 16px; letter-spacing: -.03em; }
.protection-event-chart > header p { margin: 0; color: #8c8088; font-size: 10px; }
.protection-event-chart > header p strong { color: #684f76; font-size: 13px; }
.protection-chart-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 24px; }
.protection-chart-row { display: grid; gap: 8px; }
.protection-chart-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.protection-chart-label span { color: #554a52; font-size: 11px; font-weight: 750; }
.protection-chart-label strong { color: #5f496c; font-size: 11px; font-variant-numeric: tabular-nums; }
.protection-chart-track { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(101, 80, 120, .1); }
.protection-chart-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #b886a8, #765783);
    box-shadow: 0 4px 10px rgba(101, 80, 120, .18);
    transition: width .45s ease;
}

.protection-chart-view .protection-chart-track span { background: linear-gradient(90deg, #8ea7c5, #607995); }
.protection-chart-copy .protection-chart-track span { background: linear-gradient(90deg, #cf8399, #a94b69); }
.protection-chart-print .protection-chart-track span { background: linear-gradient(90deg, #bf91c8, #7c5a8d); }
.protection-chart-save .protection-chart-track span,
.protection-chart-download .protection-chart-track span { background: linear-gradient(90deg, #d09a7d, #a76346); }

@media (max-width: 1120px) {
    body.has-admin-shell form.audit-records-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    body.has-admin-shell form.audit-records-filter button,
    body.has-admin-shell form.audit-records-filter .records-filter-reset { width: 100%; }
    .protection-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    body.has-admin-shell .admin-records-main { width: calc(100% - 20px); gap: 12px; margin-top: 16px; }
    .records-overview { min-height: 244px; align-items: flex-end; padding: 26px 24px; }
    .records-overview-access,
    .records-overview-audit,
    .records-overview-protection { min-height: 200px; align-items: center; }
    .records-overview h1 { font-size: 32px; }
    body.has-admin-shell form.access-request-filter,
    body.has-admin-shell form.audit-records-filter,
    body.has-admin-shell form.protection-records-filter { grid-template-columns: 1fr 1fr; }
    body.has-admin-shell form.access-request-filter .records-filter-field,
    body.has-admin-shell form.protection-records-filter .records-filter-field:last-of-type { grid-column: 1 / -1; }
    .records-directory-head { padding: 16px 18px; }
    .protection-summary { padding: 20px !important; }
    .protection-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .protection-summary-grid article { padding: 12px; }
    .protection-event-chart { padding: 18px; }
    .protection-event-chart > header { align-items: start; flex-direction: column; gap: 8px; }
    .protection-chart-list { grid-template-columns: 1fr; }
    .problem-accounts-panel { padding: 20px !important; }
    .problem-accounts-head { align-items: start; flex-direction: column; }
}

/* Content permission management. */
.permission-hero::before {
    background: radial-gradient(circle, rgba(72, 82, 120, 0.14), rgba(72, 82, 120, 0) 68%);
}

.permission-hero .admin-kicker {
    color: #53627c;
}

.permission-hero p strong {
    color: #3f4f6a;
    font-weight: 850;
}

.permission-hero-count {
    position: relative;
    z-index: 1;
    width: 146px;
    height: 146px;
    display: grid;
    align-content: center;
    justify-items: center;
    flex: 0 0 146px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 44px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 #fff, 0 20px 40px rgba(65, 75, 95, 0.12);
    transform: rotate(3deg);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    backdrop-filter: blur(18px) saturate(145%);
}

.permission-hero-count::before {
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(83, 98, 124, 0.13);
    border-radius: 50%;
    content: "";
}

.permission-hero-count > * { position: relative; z-index: 1; }
.permission-hero-count > span { color: #69758b; font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.permission-hero-count > strong { margin: 5px 0 2px; color: #35435d; font-size: 38px; line-height: 1; }
.permission-hero-count > small { color: #8a919e; font-size: 9px; font-weight: 750; }

body.has-admin-shell .permission-panel {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
    margin: 0;
    padding: 28px 30px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.98), 0 15px 36px rgba(55, 60, 70, 0.075);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    backdrop-filter: blur(22px) saturate(135%);
}

.permission-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.permission-panel-head h2 { margin: 2px 0 5px; color: #272124; font-size: 17px; font-weight: 850; letter-spacing: -.035em; }
.permission-panel-head p { margin: 0; color: #8c8185; font-size: 10px; line-height: 1.55; word-break: keep-all; }

body.has-admin-shell form.permission-user-search,
body.has-admin-shell form.permission-user-search:first-of-type {
    grid-column: 2;
    grid-template-columns: minmax(230px, 1fr) auto auto;
    margin-bottom: 2px;
    border-color: rgba(105, 95, 99, 0.13);
    background: rgba(248, 247, 245, 0.7);
    box-shadow: none;
}

.permission-table-wrap {
    grid-column: 2;
    overflow: hidden;
    border: 1px solid rgba(105, 95, 99, 0.13);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.62);
}

.permission-table-head {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 17px;
    border-bottom: 1px solid rgba(105, 95, 99, 0.11);
}

.permission-table-head > div { display: grid; gap: 3px; }
.permission-table-head > div > strong { color: #30292c; font-size: 13px; }
.permission-table-head > div > small { color: #93888c; font-size: 9px; }
.permission-table-head > span { border-radius: 999px; padding: 6px 9px; background: #edf0f5; color: #68758b; font-size: 9px; font-weight: 750; }
.permission-table-head > span strong { color: #40506b; }

body.has-admin-shell table.permission-result-table,
body.has-admin-shell table.permission-active-table {
    min-width: 650px;
}

body.has-admin-shell table.permission-result-table td,
body.has-admin-shell table.permission-active-table td {
    height: 66px;
}

.permission-action-cell { width: 132px; text-align: right; }

body.has-admin-shell table.records-table form.permission-inline-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.has-admin-shell table.records-table .permission-grant-button,
body.has-admin-shell table.records-table .permission-revoke-button {
    min-height: 34px;
    border-radius: 9px;
    padding: 0 11px;
    box-shadow: none;
    font-size: 10px;
    white-space: nowrap;
}

body.has-admin-shell table.records-table .permission-grant-button {
    border: 1px solid rgba(83, 98, 124, .18);
    background: #53627c;
    color: #fff;
}

body.has-admin-shell table.records-table .permission-grant-button > span { margin-right: 3px; font-size: 14px; font-weight: 500; }

body.has-admin-shell table.records-table .permission-revoke-button {
    border: 1px solid rgba(120, 100, 107, .18);
    background: rgba(255, 255, 255, .72);
    color: #7d5865;
}

body.has-admin-shell table.records-table .permission-grant-button:hover { background: #43516a; }
body.has-admin-shell table.records-table .permission-revoke-button:hover { border-color: rgba(141, 0, 48, .24); background: #f8eff2; color: #8d0030; }

@media (max-width: 900px) {
    body.has-admin-shell .permission-panel { grid-template-columns: 1fr; }
    body.has-admin-shell form.permission-user-search,
    body.has-admin-shell form.permission-user-search:first-of-type,
    .permission-table-wrap { grid-column: 1; }
}

@media (max-width: 760px) {
    .permission-hero { min-height: 244px; align-items: flex-end; }
    .permission-hero-count { position: absolute; top: 22px; right: 18px; width: 108px; height: 108px; opacity: .5; transform: rotate(4deg) scale(.84); transform-origin: top right; }
    body.has-admin-shell .permission-panel { gap: 20px; padding: 24px 20px; }
    body.has-admin-shell form.permission-user-search,
    body.has-admin-shell form.permission-user-search:first-of-type { grid-template-columns: 1fr 1fr; }
    body.has-admin-shell form.permission-user-search .records-filter-field { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    body.has-admin-shell main {
        width: calc(100% - 20px);
    }
}

/* Learner course directory — mirrors the administrator visual hierarchy. */
.learner-body {
    min-height: 100vh;
    background:
            radial-gradient(circle at 8% 8%, rgba(165, 0, 52, 0.1), transparent 330px),
            linear-gradient(145deg, #e9eff5 0%, #f6f2f4 48%, #edf1f6 100%);
}

.learner-body .learner-page {
    width: min(1480px, calc(100% - 32px));
    display: grid;
    gap: 16px;
    margin: 16px auto 48px;
}

.learner-topbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96), 0 16px 38px rgba(55, 60, 70, 0.09);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
}

.learner-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #211d1f;
    text-decoration: none;
}

.learner-brand:hover {
    text-decoration: none;
}

.learner-brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 13px;
    background: #8d0030;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.learner-brand > span:last-child {
    display: grid;
    gap: 2px;
}

.learner-brand strong {
    font-size: 14px;
}

.learner-brand small {
    color: #8a7f83;
    font-size: 10px;
}

.learner-topbar form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.learner-topbar button {
    min-height: 40px;
    border: 1px solid rgba(141, 0, 48, 0.16);
    border-radius: 11px;
    padding: 0 16px;
    background: #8d0030;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.learner-overview {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 34px;
    margin: 0;
    padding: 36px 42px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 26px;
    background: linear-gradient(118deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.38));
    box-shadow: inset 0 1px 0 #fff, 0 22px 54px rgba(56, 61, 72, 0.11);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    backdrop-filter: blur(30px) saturate(150%);
}

.learner-overview::before {
    position: absolute;
    top: -145px;
    right: 30px;
    width: 470px;
    height: 370px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(165, 0, 52, 0.15), rgba(165, 0, 52, 0) 68%);
    content: "";
    pointer-events: none;
}

.learner-overview-copy,
.learner-overview-count {
    position: relative;
    z-index: 1;
}

.learner-overview-copy {
    max-width: 760px;
}

.learner-overview .admin-kicker,
.learner-directory .admin-kicker {
    color: #8d0030;
    letter-spacing: 0.14em;
}

.learner-overview h1 {
    margin: 12px 0 12px;
    color: #211d1f;
    font-size: clamp(42px, 5vw, 64px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.065em;
}

.learner-overview p {
    max-width: 650px;
    margin: 0;
    color: #6e6267;
    font-size: 14px;
    line-height: 1.65;
}

.learner-overview-count {
    width: 150px;
    height: 150px;
    display: grid;
    align-content: center;
    justify-items: center;
    flex: 0 0 150px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 46px;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: inset 0 1px 0 #fff, 0 20px 42px rgba(75, 55, 64, 0.12);
    transform: rotate(3deg);
}

.learner-overview-count span,
.learner-overview-count small {
    color: #8a7d82;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.learner-overview-count strong {
    margin: 3px 0;
    color: #8d0030;
    font-size: 42px;
    line-height: 1;
}

.learner-notice-stack {
    display: grid;
    gap: 10px;
}

.learner-body .learner-access-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    border: 1px solid rgba(165, 0, 52, 0.15);
    border-radius: 16px;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #6f1734;
}

.learner-access-notice strong {
    flex: 0 0 auto;
    font-size: 12px;
}

.learner-access-notice span {
    color: #776970;
    font-size: 12px;
    font-weight: 650;
}

.learner-directory {
    overflow: hidden;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 24px;
    padding: 0;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 20px 48px rgba(55, 60, 70, 0.1);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
}

.learner-directory-head {
    min-height: 104px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px;
    border-bottom: 1px solid rgba(217, 207, 211, 0.72);
    background: rgba(255, 255, 255, 0.5);
}

.learner-directory-head > div {
    display: grid;
    gap: 4px;
}

.learner-directory-head h2 {
    margin: 1px 0 0;
    color: #292326;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.learner-directory-head p {
    margin: 0;
    color: #8a7f83;
    font-size: 11px;
}

.learner-directory-count {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 8px 12px;
    background: #f2e9ed;
    color: #7d6570;
    font-size: 10px;
    font-weight: 750;
}

.learner-directory-count strong {
    color: #8d0030;
    font-size: 14px;
}

.learner-course-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 16px;
    padding: 20px;
}

.learner-body .learner-course-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    align-content: stretch;
    gap: 20px;
    margin: 0;
    border: 1px solid rgba(221, 214, 216, 0.9);
    border-radius: 20px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(55, 48, 51, 0.08);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.learner-course-card::before {
    position: absolute;
    top: 0;
    right: 22px;
    left: 22px;
    height: 3px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(90deg, #8d0030, #d18aa1, transparent);
    content: "";
}

.learner-course-card:hover {
    border-color: rgba(141, 0, 48, 0.24);
    box-shadow: 0 20px 42px rgba(72, 48, 57, 0.12);
    transform: translateY(-2px);
}

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

.learner-body .lecture-type,
.learner-course-status {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.learner-body .lecture-type {
    background: #eeebf2;
    color: #554967;
}

.learner-course-status {
    background: #f1edef;
    color: #776b70;
}

.learner-course-status.is-ready {
    background: #e7f4ec;
    color: #267044;
}

.learner-course-title {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
}

.learner-course-index {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: #f3e8ec;
    color: #8d0030;
    font-size: 11px;
    font-weight: 900;
}

.learner-body .learner-course-card h3 {
    min-height: 50px;
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #282225;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: -0.025em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.learner-course-period {
    align-self: end;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #ebe6e3;
    border-radius: 13px;
    background: #e7e1df;
}

.learner-course-period > div {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 12px;
    background: #faf9f7;
}

.learner-course-period dt {
    color: #93878c;
    font-size: 9px;
    font-weight: 800;
}

.learner-course-period dd {
    overflow: hidden;
    margin: 0;
    color: #4f464a;
    font-size: 10px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.learner-course-actions {
    margin-top: auto;
}

.learner-body .learner-course-actions a,
.learner-body .learner-course-actions .lecture-disabled {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    border-radius: 11px;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 850;
}

.learner-body .learner-course-actions a {
    background: #8d0030;
    color: #fff;
    box-shadow: 0 10px 24px rgba(110, 0, 37, 0.18);
}

.learner-body .learner-course-actions a:hover {
    background: #700026;
    text-decoration: none;
}

.learner-body .learner-course-actions a.is-request {
    border: 1px solid rgba(141, 0, 48, 0.22);
    background: #f7edf1;
    color: #7d002b;
    box-shadow: none;
}

.learner-body .learner-course-actions .lecture-disabled {
    background: #f1efee;
    color: #8b8285;
}

.learner-empty {
    min-height: 300px;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    padding: 30px;
    color: #8b8185;
    text-align: center;
}

.learner-empty > span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid #ded5d8;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.7);
    color: #a07d8a;
    font-size: 20px;
}

.learner-empty strong {
    color: #51484c;
    font-size: 15px;
}

.learner-empty p {
    margin: 0;
    font-size: 11px;
}

.learner-pagination {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid rgba(217, 207, 211, 0.72);
    padding: 10px 20px;
}

.learner-pagination a,
.learner-pagination > span {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    padding: 0 12px;
    font-size: 10px;
    font-weight: 800;
}

.learner-pagination a {
    border: 1px solid #ddd5d7;
    background: #fff;
    color: #7d002b;
}

.learner-pagination > span {
    background: #f1e9ec;
    color: #7d6870;
}

.learner-pagination strong {
    margin-right: 3px;
    color: #8d0030;
}

@media (max-width: 760px) {
    .learner-body .learner-page {
        width: calc(100% - 20px);
        gap: 10px;
        margin: 10px auto 28px;
    }

    .learner-topbar {
        min-height: 64px;
        border-radius: 18px;
        padding: 9px 11px;
    }

    .learner-brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .learner-brand small {
        display: none;
    }

    .learner-topbar button {
        min-height: 38px;
        padding: 0 12px;
    }

    .learner-overview {
        min-height: 230px;
        align-items: flex-end;
        padding: 26px 24px;
    }

    .learner-overview h1 {
        font-size: 42px;
    }

    .learner-overview-count {
        position: absolute;
        top: 22px;
        right: 20px;
        width: 104px;
        height: 104px;
        border-radius: 32px;
        opacity: 0.62;
    }

    .learner-overview-count strong {
        font-size: 30px;
    }

    .learner-body .learner-access-notice {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .learner-directory {
        border-radius: 20px;
    }

    .learner-directory-head {
        min-height: 94px;
        padding: 18px;
    }

    .learner-directory-head p {
        display: none;
    }

    .learner-course-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .learner-body .learner-course-card {
        min-height: 286px;
        gap: 16px;
        border-radius: 17px;
        padding: 18px;
    }

    .learner-course-period > div {
        padding: 10px;
    }
}

/* Admin data typography: keep page headings prominent while making working data easier to scan. */
body.has-admin-shell table th {
    font-size: 12px;
}

body.has-admin-shell .users-table td {
    font-size: 13px;
}

body.has-admin-shell .user-avatar {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 14px;
}

body.has-admin-shell .user-identity strong {
    font-size: 16px;
}

body.has-admin-shell .user-role-badge,
body.has-admin-shell .user-status-badge,
body.has-admin-shell .user-setting {
    min-height: 28px;
    font-size: 12px;
}

body.has-admin-shell .user-date {
    font-size: 13px;
}

body.has-admin-shell .users-table .table-actions a,
body.has-admin-shell .users-table .table-actions button {
    font-size: 12px;
}

body.has-admin-shell table.records-table td {
    font-size: 13px;
}

body.has-admin-shell .record-identity > span {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: 14px;
}

body.has-admin-shell .record-identity strong,
body.has-admin-shell .record-title {
    font-size: 14px;
}

body.has-admin-shell .record-identity small {
    font-size: 11px;
}

body.has-admin-shell .record-content-title,
body.has-admin-shell .record-time-date {
    font-size: 13px;
}

body.has-admin-shell .record-time-clock,
body.has-admin-shell .record-badge,
body.has-admin-shell .request-message-history time {
    font-size: 11px;
}

body.has-admin-shell .request-message-history p {
    font-size: 13px;
}

body.has-admin-shell .permission-table-head > div > strong {
    font-size: 15px;
}

body.has-admin-shell .permission-table-head > div > small,
body.has-admin-shell .permission-table-head > span {
    font-size: 11px;
}

body.has-admin-shell .user-detail-form label,
body.has-admin-shell .user-detail-form:first-of-type label {
    font-size: 14px;
}

body.has-admin-shell .user-detail-form input,
body.has-admin-shell .user-detail-form select,
body.has-admin-shell .user-detail-form textarea {
    font-size: 14px;
}

body.has-admin-shell .user-form-help {
    font-size: 12px;
}

body.has-admin-shell .user-detail-form .user-form-actions button.user-form-delete-button {
    border-color: #d92d20;
    background: #fff;
    color: #b42318;
    box-shadow: none;
}

body.has-admin-shell .user-detail-form .user-form-actions button.user-form-delete-button:hover {
    border-color: #b42318;
    background: #fff1f0;
    color: #912018;
}

/* First sign-in password setup. Isolated from the public login screen. */
.password-page-body {
    --password-wine: #9d0035;
    --password-rose: #f0444a;
    --password-ink: #181317;
    --password-muted: #736a70;
    position: relative;
    display: grid;
    min-height: 100svh;
    place-items: center;
    overflow-x: hidden;
    padding: 40px 20px;
    background:
            radial-gradient(circle at 12% 12%, rgba(240, 68, 74, 0.17), transparent 26rem),
            radial-gradient(circle at 87% 88%, rgba(157, 0, 53, 0.22), transparent 28rem),
            linear-gradient(145deg, #0a0708, #210910 55%, #080607);
}

.password-page-body::before {
    position: fixed;
    inset: 0;
    opacity: 0.14;
    background-image: radial-gradient(rgba(255, 255, 255, 0.42) 0.55px, transparent 0.55px);
    background-size: 9px 9px;
    mask-image: linear-gradient(135deg, #000, transparent 72%);
    pointer-events: none;
    content: "";
}

.password-setup-shell {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    margin: 0;
}

.password-setup-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 38px 100px rgba(0, 0, 0, 0.48);
}

.password-setup-header {
    position: relative;
    min-height: 106px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: 28px 34px;
    background: radial-gradient(circle at 92% 10%, rgba(240, 68, 74, 0.34), transparent 13rem), linear-gradient(135deg, #3b0718, #16090d 72%);
}

.password-setup-header::after {
    position: absolute;
    right: -55px;
    bottom: -86px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

.password-setup-brand,
.password-setup-step { position: relative; z-index: 1; }

.password-setup-brand { display: flex; align-items: center; gap: 13px; }

.password-setup-brand-mark {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.password-setup-brand-mark i {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1.5px solid #fff;
    border-radius: 6px;
    transform: rotate(45deg);
}

.password-setup-brand-mark i:first-child { top: 7px; left: 7px; }
.password-setup-brand-mark i:last-child { right: 7px; bottom: 7px; border-color: var(--password-rose); }
.password-setup-brand strong, .password-setup-brand small { display: block; }
.password-setup-brand strong { color: #fff; font-size: 14px; letter-spacing: -0.01em; }
.password-setup-brand small { margin-top: 3px; color: rgba(255,255,255,.5); font-size: 9px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }

.password-setup-step {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.17);
    border-radius: 999px;
    padding: 0 12px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.8);
    font-size: 11px;
    font-weight: 800;
}

.password-setup-content { padding: 42px 46px 34px; }
.password-setup-heading { margin-bottom: 30px; }
.password-setup-kicker { display: flex; align-items: center; gap: 8px; color: var(--password-wine); font-size: 11px; font-weight: 850; letter-spacing: .08em; }
.password-setup-kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--password-rose); box-shadow: 0 0 0 4px rgba(240,68,74,.1); }

.password-setup-heading h1 {
    margin: 11px 0 12px;
    color: var(--password-ink);
    font-size: clamp(29px, 5vw, 37px);
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.password-setup-heading p { margin: 0; color: var(--password-muted); font-size: 14px; line-height: 1.7; }

.password-setup-error {
    margin: 0 0 18px;
    border: 1px solid #f2b8bc;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff3f3;
    color: #a61b27;
    font-size: 13px;
    font-weight: 700;
}

.password-page-body .password-setup-form { display: grid; gap: 0; margin: 0; border: 0; padding: 0; background: transparent; box-shadow: none; }
.password-setup-field label { display: block; margin-bottom: 9px; color: #3b3338; font-size: 13px; font-weight: 800; }
.password-setup-input-wrap { position: relative; }

.password-setup-input-wrap input {
    width: 100%;
    min-height: 54px;
    border: 1px solid #ddd5da;
    border-radius: 13px;
    padding: 0 16px 0 48px;
    background: #fff;
    color: var(--password-ink);
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(26,13,18,.03);
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.password-setup-input-wrap input::placeholder { color: #aaa1a6; }
.password-setup-input-wrap input:focus { outline: 0; border-color: var(--password-wine); box-shadow: 0 0 0 4px rgba(157,0,53,.09); }

.password-setup-lock {
    position: absolute;
    z-index: 1;
    top: 20px;
    left: 18px;
    width: 15px;
    height: 13px;
    border: 1.5px solid #8b7f86;
    border-radius: 4px;
    pointer-events: none;
}

.password-setup-lock::before {
    position: absolute;
    bottom: 9px;
    left: 2.5px;
    width: 7px;
    height: 7px;
    border: 1.5px solid #8b7f86;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    content: "";
}

.password-policy-list { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 13px 0 26px; padding: 0; list-style: none; }
.password-policy-list li { display: flex; align-items: center; gap: 6px; color: #776e73; font-size: 12px; font-weight: 700; }
.password-policy-list i { width: 17px; height: 17px; display: inline-grid; place-items: center; border-radius: 50%; background: #f4ecef; color: var(--password-wine); font-size: 9px; font-style: normal; }

.password-page-body .password-setup-form button {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    border: 0;
    border-radius: 13px;
    padding: 0 19px 0 22px;
    background: linear-gradient(135deg, #a50038, #7e002b);
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    box-shadow: 0 11px 25px rgba(126,0,43,.2);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.password-page-body .password-setup-form button:hover { transform: translateY(-1px); box-shadow: 0 15px 30px rgba(126,0,43,.25); }
.password-page-body .password-setup-form button span:last-child { font-size: 20px; font-weight: 400; }

.password-setup-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 22px 0 0; color: #8b8187; font-size: 11px; }
.password-setup-note span { width: 17px; height: 17px; display: inline-grid; place-items: center; border: 1px solid #d5cdd1; border-radius: 50%; color: #776c72; font-size: 10px; font-weight: 800; }

@media (max-width: 620px) {
    .password-page-body { align-items: start; padding: 14px; }
    .password-setup-card { border-radius: 22px; }
    .password-setup-header { min-height: 88px; padding: 22px; }
    .password-setup-step { display: none; }
    .password-setup-content { padding: 32px 24px 26px; }
    .password-setup-heading { margin-bottom: 25px; }
    .password-setup-heading h1 { font-size: 29px; }
    .password-policy-list { gap: 9px 14px; }
    .password-setup-note { align-items: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .password-page-body .password-setup-form button,
    .password-setup-input-wrap input { transition: none; }
}
