/* Admin-only styles. No remote assets or build step are required. */
:root { color-scheme: light; --ink: #202e2a; --muted: #617066; --green: #23634f; --deep: #123c34; --line: #e3e7e1; --canvas: #f6f7f3; --red: #ac3838; --radius: 14px; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-family: inherit; font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border-radius: 8px; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.25; font-weight: 650; letter-spacing: -1px; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
svg.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; fill: none; }
:is(button, a, input, select, textarea, summary):focus-visible { outline: 3px solid #448466; outline-offset: 3px; }
button, .button { transition: background .15s, color .15s, border-color .15s; }
label { display: block; font-size: 13px; font-weight: 550; margin: 18px 0 7px; }
input, select, textarea { width: 100%; color: var(--ink); border: 1px solid #cdd6ce; background: #fff; border-radius: 8px; padding: 11px 13px; min-height: 44px; }
input::placeholder, textarea::placeholder { color: #69766b; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
textarea { resize: vertical; min-height: 90px; }
input[type=checkbox] { width: 17px; min-height: 17px; height: 17px; accent-color: var(--green); padding: 0; }
code, .mono { font-family: "SFMono-Regular", Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.field-help { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.65; }
.section-kicker, .eyebrow { font-size: 10px; letter-spacing: 1.8px; font-weight: 650; }
.section-kicker { color: var(--green); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 550; white-space: nowrap; border-radius: 8px; text-decoration: none; }
.button:hover { background: #f1f4ef; text-decoration: none; }
.button.primary { background: var(--green); border-color: var(--green); color: white; box-shadow: 0 2px 3px #17442a15; }
.button.primary:hover { background: #194d3c; }
.button.danger { background: var(--red); color: #fff; border-color: var(--red); }
.button.small { padding: 6px 10px; min-height: 32px; font-size: 12px; }
.button.text { border: 0; background: transparent; color: var(--green); padding: 5px 0; min-height: 30px; }
.button .icon { width: 16px; height: 16px; }
.icon-button { padding: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); background: transparent; border: 1px solid transparent; min-width: 38px; min-height: 38px; }
.icon-button:hover { background: #edf1eb; color: var(--ink); }
.skip-link { position: fixed; top: -60px; left: 20px; padding: 10px 16px; background: #fff; z-index: 100; }
.skip-link:focus { top: 10px; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; background: #edf4ee; border: 1px solid #d8e6da; border-radius: 9px; font-size: 13px; margin-bottom: 18px; }
.notice.error { background: #fff3f1; border-color: #efd0ca; color: #983c35; }
.notice.warning { background: #fff8e9; border-color: #ebdcb6; color: #7b5b23; }
.notice p + p { margin-top: 5px; }
.notice .button { margin-left: auto; }
.empty-state { text-align: center; padding: 44px 24px; color: var(--muted); }
.empty-state .icon { display: block; width: 30px; height: 30px; margin: 0 auto 13px; color: #8da593; }
.empty-state strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 5px; }
.empty-state p { font-size: 13px; }
.empty-state .button { margin-top: 15px; }

/* Session entry */
.login-screen { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-story { background: var(--deep); color: #d9e8df; padding: 45px 60px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-story:after { content: ""; position: absolute; width: 470px; height: 470px; border: 1px solid #ffffff0b; border-radius: 50%; right: -260px; bottom: 100px; box-shadow: 0 0 0 65px #ffffff03, 0 0 0 130px #ffffff02; pointer-events: none; }
.brand { display: flex; gap: 12px; align-items: center; color: #fff; font-size: 26px; font-weight: 650; letter-spacing: -.8px; line-height: 1; }
.brand-symbol { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; flex: none; }
.brand-symbol img { width: 56px; height: 56px; max-width: none; flex: none; display: block; }
.brand:hover { text-decoration: none; }
.brand-light { font-weight: 350; color: #b5d6c4; }
.brand small { display: block; font-size: 8px; letter-spacing: 2.4px; font-weight: 500; color: #a7c2b5; margin-top: 9px; }
.login-story-content { margin: auto 0; padding: 70px 0; max-width: 490px; position: relative; z-index: 1; }
.login-story .eyebrow { color: #b4d4b7; }
.login-story h1 { font-size: clamp(35px, 3.4vw, 52px); line-height: 1.2; color: #f3f5eb; letter-spacing: -1.8px; margin: 22px 0; }
.login-story p { color: #afc5b9; max-width: 420px; font-size: 15px; line-height: 1.9; }
.story-rule { height: 1px; background: #ffffff1c; margin: 33px 0; }
.story-detail { display: flex; align-items: flex-start; gap: 18px; margin-top: 22px; font-size: 14px; }
.story-detail > span { font-size: 11px; line-height: 24px; color: #a8c7ac; }
.story-detail small { display: block; color: #9dbbad; font-size: 12px; margin-top: 3px; }
.login-footer { font-size: 10px; letter-spacing: 1px; display: flex; justify-content: space-between; color: #9dbbad; gap: 15px; }
.login-footer span { letter-spacing: 0; }
.login-panel { display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 48px; background: #fafbf8; }
.login-card { width: 100%; max-width: 390px; }
.login-card h2 { font-size: 29px; letter-spacing: -1px; margin: 12px 0; }
.login-card > .muted { font-size: 14px; margin-bottom: 30px; }
.login-card label { margin-top: 0; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; min-height: 48px; }
.password-field button { position: absolute; right: 5px; top: 5px; }
.login-submit { width: 100%; margin-top: 24px; justify-content: space-between; min-height: 47px; }
.login-card .notice { margin: 18px 0 0; }
.login-note { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.login-note .icon { color: #789183; width: 17px; }
.login-note p { font-size: 12px; line-height: 1.8; color: var(--muted); }
.login-copyright { font-size: 11px; color: var(--muted); margin-top: 60px; }

/* Application shell */
.workspace { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 30; display: flex; flex-direction: column; background: var(--deep); color: #ccded3; padding: 30px 18px 0; overflow-y: auto; }
.sidebar > .brand { padding: 0 12px; }
.sidebar nav { margin-top: 40px; }
.nav-heading { font-size: 9px; letter-spacing: 1.7px; color: #a2c0b1; padding: 0 14px; margin: 23px 0 10px; }
.nav-heading:first-child { margin-top: 0; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 8px; font-size: 13px; color: #bacfc2; margin: 4px 0; }
.nav-link:hover { background: #ffffff0a; color: #fff; text-decoration: none; }
.nav-link[aria-current=page] { background: #d4e7c6; color: #193c2a; font-weight: 650; }
.nav-link[aria-current=page]:after { content: ""; width: 5px; height: 5px; background: var(--green); border-radius: 50%; margin-left: auto; }
.nav-link .icon { width: 18px; height: 18px; }
.profile { display: flex; gap: 10px; align-items: center; border-top: 1px solid #ffffff16; padding: 19px 8px; margin-top: auto; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #dce9d1; color: #34543d; font-size: 11px; font-weight: 650; flex: none; }
.profile > div { min-width: 0; flex: 1; }
.profile strong { display: block; font-size: 12px; font-weight: 550; color: #e4ecde; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; max-width: 130px; }
.profile small { color: #a7bdad; font-size: 10px; }
.profile .icon-button { color: #b2c8bb; min-width: 32px; padding: 5px; }
.profile .icon-button:hover { background: #ffffff12; color: #fff; }
.workspace-body { margin-left: 248px; min-width: 0; }
main { max-width: 1560px; margin: 0 auto; padding: 34px 36px 0; outline: none; }
.page-heading-shell { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 26px; }
.page-heading-shell .page-heading { flex: 1; min-width: 0; margin-bottom: 0; }
.page-refresh { flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 26px; }
.page-heading p { margin-top: 9px; font-size: 13px; color: var(--muted); }
.page-heading .section-kicker { display: block; margin-bottom: 7px; font-size: 9px; }
.heading-actions { display: flex; gap: 9px; align-items: center; }
.page-footer { border-top: 1px solid var(--line); margin-top: 32px; padding: 21px 0; display: flex; justify-content: space-between; gap: 15px; font-size: 10px; color: var(--muted); }
.page-footer .muted { margin-left: 7px; }
.mobile-only { display: none; }
.nav-backdrop { position: fixed; inset: 0; border: 0; background: #09201980; z-index: 29; border-radius: 0; }

/* Overview */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 21px 22px; min-width: 0; box-shadow: 0 2px 2px #324a2302; }
.stat-value { font-size: 33px; font-weight: 600; letter-spacing: -1.5px; margin: 9px 0 8px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.card { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); overflow: hidden; min-width: 0; box-shadow: 0 2px 2px #324a2302; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 24px 17px; }
.card-header h2 { font-size: 15px; }
.card-body { padding: 0 24px 24px; }
.card-header .button { font-size: 11px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 5px; background: #edf5eb; color: #3b7148; font-size: 10px; font-weight: 550; white-space: nowrap; }
.badge:before { content: ""; height: 4px; width: 4px; border-radius: 50%; background: currentColor; }
.badge.warning { background: #fbf1df; color: #805912; }
.badge.error { background: #faedeb; color: #a8473e; }
.badge.neutral { background: #f0f2ee; color: #5a685e; }
.activity-list { padding: 0 24px 10px; }
.activity-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid #edf0e9; }
.activity-item:last-child { border: 0; }
.activity-copy { min-width: 0; flex: 1; }
.activity-copy strong { font-size: 11px; font-weight: 550; display: block; overflow-wrap: anywhere; }
.activity-copy p { font-size: 10px; color: var(--muted); margin-top: 4px; overflow-wrap: anywhere; }
.activity-time { font-size: 10px; color: var(--muted); white-space: nowrap; margin-left: auto; }

/* Searchable records */
.table-toolbar { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.search-box { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; min-width: 230px; width: 360px; max-width: 100%; }
.search-box:focus-within { outline: 2px solid #80a88d; outline-offset: 1px; }
.search-box .icon { width: 17px; height: 17px; color: #829180; }
.search-box input { border: 0; box-shadow: none; outline: none; min-height: 38px; padding: 8px 0; font-size: 12px; background: transparent; }
.search-box input:focus-visible { outline: none; }
.filter-select { width: auto; min-width: 145px; padding: 8px 28px 8px 12px; min-height: 38px; font-size: 12px; border-color: var(--line); }
.toolbar-end { display: flex; gap: 10px; align-items: center; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { text-align: left; font-size: 10px; letter-spacing: .15px; font-weight: 550; color: #65715f; background: #f9faf6; white-space: nowrap; padding: 13px 24px; border-bottom: 1px solid var(--line); }
td { padding: 15px 24px; border-bottom: 1px solid #edf0e9; color: #49574b; vertical-align: middle; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbf8; }
td .mono { font-size: 10px; }
td strong { display: block; font-size: 12px; font-weight: 550; color: var(--ink); }
td small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.person-cell .avatar { width: 31px; height: 31px; font-size: 10px; background: #eef1e7; color: #506540; }
.person-cell strong { white-space: nowrap; }
.cell-nowrap { white-space: nowrap; }
.cell-detail { min-width: 240px; max-width: 380px; overflow-wrap: anywhere; }
.row-actions { display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.row-actions .button { font-size: 10px; min-height: 30px; padding: 5px 8px; }
.danger-text { color: var(--red) !important; }
.text-link { padding: 0; background: none; border: 0; color: var(--green); font-weight: 550; text-align: left; font-size: 12px; }
.text-link:hover { text-decoration: underline; }
.table-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.pagination { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.pagination .icon-button { border: 1px solid var(--line); min-width: 30px; min-height: 30px; padding: 5px; }
.pagination .icon { width: 14px; height: 14px; }
.scope-note { font-size: 11px; color: var(--muted); margin: 14px 2px 0; }
.table-loading { padding: 36px 24px; }
.skeleton { height: 12px; border-radius: 5px; background: #edf0e8; margin: 18px 0; animation: pulse 1.6s ease-in-out infinite; }
.skeleton:nth-child(2) { width: 80%; }.skeleton:nth-child(3) { width: 60%; }
@keyframes pulse { 50% { opacity: .45; } }
.summary-strip { display: flex; gap: 35px; padding: 20px 24px; background: #f9faf6; border-bottom: 1px solid var(--line); }
.summary-strip span { font-size: 11px; color: var(--muted); }
.summary-strip strong { font-size: 20px; display: block; color: var(--ink); font-weight: 550; margin-top: 3px; }

/* Native dialogs provide focus containment and keyboard dismissal. */
dialog { border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 25px 100px #11271c33; padding: 0; width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 48px); color: var(--ink); background: #fff; }
dialog::backdrop { background: #0b251d80; backdrop-filter: blur(3px); }
.dialog-header { padding: 24px 28px 18px; display: flex; align-items: flex-start; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 20px; }
.dialog-header h2 { font-size: 21px; letter-spacing: -.5px; }
.dialog-header p { font-size: 12px; color: var(--muted); margin-top: 7px; }
.dialog-header .icon-button { margin: -6px -10px 0 0; }
.dialog-body { padding: 24px 28px; }
.dialog-body > label:first-child { margin-top: 0; }
.dialog-body .notice:last-child { margin-bottom: 0; }
.dialog-body .notice { font-size: 12px; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 18px 28px; border-top: 1px solid var(--line); background: #fafbf8; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid label { margin-top: 14px; }
.form-grid .full { grid-column: 1 / -1; }
fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
legend { font-size: 13px; font-weight: 550; margin-bottom: 10px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.checkbox-option { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 9px 10px; border-radius: 8px; margin: 0; font-size: 12px; font-weight: 400; }
.checkbox-option:has(input:checked) { border-color: #aac6ab; background: #f2f7ee; }
.selected-holder { background: #f4f6ef; padding: 13px; border-radius: 9px; font-size: 12px; margin-top: 12px; }
.selected-holder code { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.selected-holder p { margin-top: 7px; font-size: 11px; color: var(--muted); }
.confirmation-copy { font-size: 14px; line-height: 1.8; }
.confirmation-target { display: block; margin: 16px 0; padding: 14px; background: #f5f6f1; border-radius: 8px; overflow-wrap: anywhere; }
.secret-value { display: block; padding: 17px; margin: 18px 0; background: #eef4e9; border: 1px dashed #a7bba0; border-radius: 9px; font-size: 16px; overflow-wrap: anywhere; user-select: all; white-space: pre-wrap; }
.secret-actions { display: flex; gap: 12px; align-items: center; }
.detail-list { margin: 0; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; font-size: 12px; }
.detail-list dt { color: var(--muted); }.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.dialog-error { margin: 18px 28px 0 !important; }
.toast { position: fixed; bottom: 26px; left: calc(50% + 124px); transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 36px); background: var(--deep); color: #fff; border: 1px solid #315847; padding: 13px 20px; border-radius: 10px; box-shadow: 0 8px 35px #20372925; font-size: 12px; }
.spinning .icon { animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1500px) { main { padding-top: 40px; }.overview-grid { grid-template-columns: minmax(0, 1fr) 340px; }.stat-card { padding: 24px; }.welcome-banner { padding: 30px; } }
@media (max-width: 1250px) { .sidebar { width: 224px; }.workspace-body { margin-left: 224px; }.topbar { padding: 0 26px; }main { padding: 28px 26px 0; }.overview-grid { grid-template-columns: minmax(0, 1fr) 285px; gap: 16px; }.overview-main, .overview-aside { gap: 16px; }.stats-grid { gap: 12px; }.stat-card { padding: 17px; }.stat-top { font-size: 11px; }.stat-icon { padding: 6px; }td, th { padding-left: 18px; padding-right: 18px; }.card-header { padding: 20px 20px 15px; }.card-body { padding: 0 20px 20px; }.admin-label, .topbar-divider { display: none; }.toast { left: calc(50% + 112px); } }
@media (max-width: 1050px) { .overview-grid { grid-template-columns: 1fr; }.overview-aside { grid-template-columns: 1fr 1fr; }.overview-aside .health-card { grid-column: 1 / -1; }.stats-grid { grid-template-columns: repeat(2, 1fr); }.sidebar { width: 218px; }.workspace-body { margin-left: 218px; }.welcome-banner { padding: 22px; align-items: flex-start; }.welcome-banner h2 { font-size: 20px; }.welcome-banner .button { font-size: 11px; }.login-story { padding: 36px; }.toast { left: calc(50% + 109px); } }
@media (max-width: 760px) { .login-screen { grid-template-columns: 1fr; }.login-story { padding: 27px 28px; min-height: 0; }.login-story-content { padding: 40px 0 14px; }.login-story h1 { font-size: 34px; }.login-story-content > p, .story-rule, .story-detail, .login-footer { display: none; }.login-panel { padding: 36px 25px; }.login-card h2 { font-size: 26px; }.login-copyright { margin-top: 35px; }.sidebar { width: 260px; transform: translateX(-100%); transition: transform .2s; visibility: hidden; }.sidebar.open { transform: translateX(0); visibility: visible; }.workspace-body { margin-left: 0; }.topbar { height: 65px; padding: 0 18px; }.mobile-only { display: inline-flex; }.breadcrumb { gap: 8px; }.breadcrumb-root, .breadcrumb-divider { display: none; }.sync-status { font-size: 9px; }.topbar-actions { gap: 3px; }main { padding: 25px 18px 0; }.page-heading { align-items: flex-start; margin-bottom: 22px; }.page-heading h1 { font-size: 25px; }.page-heading p { font-size: 12px; max-width: 270px; }.heading-actions .button { font-size: 11px; min-height: 38px; padding: 8px 11px; }.heading-actions .button .icon { width: 14px; }.welcome-banner { display: block; padding: 22px; }.welcome-banner .button { margin-top: 17px; }.welcome-banner p { font-size: 12px; }.stats-grid { gap: 11px; }.stat-card { padding: 16px; }.stat-top { font-size: 11px; gap: 4px; }.stat-value { font-size: 28px; }.stat-caption { font-size: 9px; }.overview-aside { grid-template-columns: 1fr; }.overview-aside .health-card { grid-column: auto; }.page-footer { font-size: 9px; }.page-footer .muted { display: none; }.table-toolbar { padding: 16px; flex-wrap: wrap; gap: 10px; }.search-box { width: 100%; min-width: 0; }.toolbar-end { width: 100%; }.filter-select { flex: 1; }.table-footer { padding: 14px 16px; flex-wrap: wrap; gap: 12px; }.table-footer .pagination { margin-left: auto; }.summary-strip { gap: 24px; padding: 18px 16px; }.dialog-header { padding: 22px 20px 17px; }.dialog-body { padding: 22px 20px; }.dialog-footer { padding: 16px 20px; }.dialog-error { margin-left: 20px !important; margin-right: 20px !important; }.checkbox-grid { grid-template-columns: repeat(2, 1fr); }.detail-list { grid-template-columns: 95px minmax(0, 1fr); gap: 14px; }.toast { left: 50%; bottom: 18px; min-width: 240px; text-align: center; }.activity-time { font-size: 9px; }.page-heading .section-kicker { font-size: 8px; } }
@media (max-width: 400px) { .page-heading { flex-wrap: wrap; }.page-heading > div:first-child { width: 100%; }.heading-actions:empty { display: none; }.stat-top { align-items: flex-start; }.stat-icon { padding: 4px; }.stat-card { padding: 13px; }.activity-item { flex-wrap: wrap; }.activity-copy { flex-basis: calc(100% - 44px); }.activity-time { margin-left: 42px; }.form-grid { grid-template-columns: 1fr; }.card-header { flex-wrap: wrap; }.distribution-head { align-items: flex-start; gap: 10px; }.distribution-number small { display: block; margin-left: 0; }.dialog-footer { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* A quiet, task-focused sign-in screen. */
.login-screen { display: block; min-height: 100dvh; background: #f4f7f2; }
.login-panel { min-height: 100dvh; padding: 32px 20px; background: transparent; }
.login-shell { width: min(100%, 420px); }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 6px; margin: -4px 0 24px; color: var(--deep); font-size: 36px; line-height: 1; letter-spacing: -1.7px; font-weight: 750; transform: translateX(-14px); }
.login-brand img { width: 76px; height: 76px; object-fit: contain; }
.login-brand span { transform: translateY(-3px); }
.login-brand strong { color: #498767; }
.login-card { max-width: none; border: 1px solid #dce6d9; border-radius: 18px; background: #fff; padding: 36px; box-shadow: 0 18px 52px #2037290d; }
.login-card h1 { font-size: 25px; line-height: 1.2; letter-spacing: -.8px; text-align: center; margin: 0 0 30px; }
.login-card > .muted { font-size: 13px; margin: 0 0 28px; }
.login-card label { display: block; margin: 18px 0 7px; }
.login-card input { width: 100%; min-height: 46px; }
.login-card #totpGroup { margin-top: 4px; }
.login-submit { justify-content: center; margin-top: 27px; min-height: 46px; }
.login-back { display: block; margin: 10px auto 0; }
.login-card .notice { margin-top: 17px; }
.login-copyright { margin: 20px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.stat-label { display: block; color: var(--muted); font-size: 12px; }
.stat-card .stat-value { margin: 12px 0 0; }
.overview-status { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; padding: 16px 22px; margin-bottom: 22px; font-size: 12px; }
.overview-status > strong { font-size: 12px; margin-right: auto; }
.overview-status > span { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); }
.overview-stack { display: grid; gap: 20px; }
.overview-stack .activity-item { gap: 18px; }
.overview-stack .activity-copy strong { font-size: 12px; }
.recent-list { padding: 0 24px 10px; }
.recent-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #edf0e9; border-radius: 0; background: transparent; color: var(--ink); text-align: left; }
.recent-row:last-child { border-bottom: 0; }
.recent-row:hover { color: var(--green); }
.recent-row > span:first-child { min-width: 0; }
.recent-row strong { display: block; font-size: 12px; }
.recent-row small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.recent-row .badge { flex: none; }
@media (max-width: 760px) { .overview-status { gap: 12px 20px; }.overview-status > strong { flex-basis: 100%; }.overview-status > span { min-width: 45%; }.recent-list { padding: 0 20px 8px; }.overview-stack .activity-item { display: block; }.overview-stack .activity-time { display: block; margin: 7px 0 0; } }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.security-card { padding: 28px; }
.security-card h2 { font-size: 17px; margin: 0 0 10px; }
.security-card p { color: var(--muted); line-height: 1.65; min-height: 52px; }
.totp-setup { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.totp-setup img { border: 1px solid var(--line); border-radius: 10px; }
.totp-setup .secret-value { flex: 1; min-width: 170px; font-size: 13px; }
@media (max-width: 760px) { .login-panel { padding: 28px 16px; }.login-card { padding: 28px 24px; }.login-brand { font-size: 33px; gap: 3px; transform: translateX(-10px); }.login-brand img { width: 70px; height: 70px; }.settings-grid { grid-template-columns: 1fr; } }
