@charset "UTF-8";

:root {
  color-scheme: light;
  --canvas: #f5f7f3;
  --surface: #fff;
  --ink: #23392e;
  --muted: #65736b;
  --line: #e2e8df;
  --green: #32664e;
  --green-dark: #244d3b;
  --green-soft: #eaf1e8;
  --amber: #8a6230;
  --error: #a03c35;
  --shadow: 0 10px 40px #253e2c05;
  --radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
input, select { min-width: 0; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, a, input, select, [tabindex] { outline-offset: 4px; }
:focus-visible { outline: 3px solid #779b53; }
button:disabled, a[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
a[aria-disabled="true"] { pointer-events: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 650; line-height: 1.4; }
h1 { font-size: clamp(25px, 3vw, 34px); letter-spacing: -.8px; }
h2 { font-size: 21px; letter-spacing: -.35px; }
h3 { font-size: 15px; }
p { margin-bottom: 0; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; padding: 12px 20px; border-radius: 10px; background: var(--green-dark); color: white; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.eyebrow { display: block; color: var(--green); font-size: 10px; font-weight: 650; letter-spacing: 1.9px; margin-bottom: 9px; }
.accent-dot { color: #79a071; }
.site-header { border-bottom: 1px solid var(--line); background: #fafbf8; }
.header-inner { max-width: 1248px; min-height: 83px; margin: auto; padding: 16px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 19px; font-weight: 720; white-space: nowrap; letter-spacing: -.5px; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 40px; background: var(--green); color: #f8faed; border-radius: 12px 12px 12px 4px; }
.brand-mark .icon { width: 23px; height: 23px; }
.brand-light { font-weight: 500; margin-left: 4px; font-size: 15px; letter-spacing: .5px; }
.header-note { color: var(--muted); font-size: 12px; letter-spacing: 2px; }
.session-tools { display: flex; align-items: center; gap: 18px; min-width: 0; }
.account-chip { display: flex; gap: 8px; align-items: center; min-width: 0; font-size: 12px; }
#session-username { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.account-dot, .context-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: #7fa36a; }
.role-badge, .format-badge { display: inline-block; font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 5px; background: var(--green-soft); color: var(--green); white-space: nowrap; }
.main-shell { max-width: 1248px; margin: auto; padding: 0 36px; min-height: calc(100vh - 181px); }
.main-shell:focus { outline: none; }
.button { min-height: 42px; padding: 10px 17px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 550; font-size: 13px; line-height: 1.5; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.button-primary { color: white; background: var(--green); border-color: var(--green); }
.button-primary:hover:not(:disabled) { background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 4px 12px #32664e17; }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button-secondary:hover:not(:disabled) { border-color: #a6bca6; background: #f6f9f3; }
.button-quiet { color: var(--muted); background: transparent; }
.button-quiet:hover:not(:disabled) { background: var(--green-soft); color: var(--green-dark); }
.button-small { min-height: 36px; padding: 7px 12px; font-size: 12px; border-radius: 8px; }
.button-small .icon { width: 16px; height: 16px; }
.button-full { width: 100%; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.notice { padding: 12px 15px; border: 1px solid; border-radius: 9px; font-size: 13px; overflow-wrap: anywhere; }
.notice-error { background: #fff4f1; border-color: #efd6cf; color: var(--error); }
.notice-success { background: #eef6eb; border-color: #d6e4cf; color: #35603c; }
.global-notice { margin-top: 20px; }
.boot-state { min-height: 58vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.boot-state h1 { margin: 0; font-size: 23px; }
.boot-state p { color: var(--muted); }
.spinner { display: inline-block; width: 25px; height: 25px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Login */
.login-layout { padding: 66px 52px 48px; display: grid; grid-template-columns: 1fr 390px; align-items: center; gap: 85px; }
.login-story .eyebrow { font-size: 11px; letter-spacing: 1.4px; display: flex; align-items: center; gap: 8px; }
.small-star { color: #729368; font-size: 23px; }
.login-story h1 { font-size: clamp(32px, 4vw, 47px); line-height: 1.4; font-weight: 600; letter-spacing: -1.7px; margin: 15px 0 22px; }
.login-lead { color: var(--muted); font-size: 14px; line-height: 1.95; }
.login-card { padding: 35px 32px; }
.login-card h2 { font-size: 24px; margin-bottom: 8px; }
.login-card .eyebrow { color: #7c8b75; font-size: 9px; }
.stack-form { display: flex; flex-direction: column; gap: 19px; margin-top: 27px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .input-label { font-size: 12px; font-weight: 550; }
input, select { color: var(--ink); border: 1px solid #dbe3d9; border-radius: 9px; background: #fdfefc; }
input { width: 100%; padding: 12px 14px; min-height: 45px; }
input::placeholder { color: #879185; opacity: 1; }
input:focus { border-color: #70936e; }
input:disabled { background: #f2f4ef; opacity: .7; }
select { padding: 7px 27px 7px 10px; }
.field-help { font-size: 11px; color: var(--muted); line-height: 1.7; }
.login-card .button-primary { margin-top: 4px; padding: 13px; }
.login-card .button-primary .icon { margin-left: 6px; width: 17px; height: 17px; }
.login-help { margin: 25px 0 22px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; }
.login-help strong { font-weight: 550; }
.login-help p { color: var(--muted); margin-top: 5px; font-size: 11px; }
.login-disclaimer { font-size: 11px; background: #f4f6f0; padding: 11px 13px; border-radius: 9px; }
.login-footnote { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.login-footnote .icon { width: 16px; height: 16px; }
.illustration { height: 265px; max-width: 370px; position: relative; margin: 25px 0 12px; isolation: isolate; }
.illustration-orbit { width: 247px; height: 247px; border-radius: 50%; background: #e9efdf; position: absolute; top: 0; left: 46px; z-index: -1; }
.illustration-orbit::after { content: ""; position: absolute; width: 282px; height: 282px; border: 1px dashed #d5dfcd; border-radius: 50%; left: -18px; top: -18px; }
.memory-card { width: 184px; height: 220px; border: 1px solid #dce4d4; position: absolute; left: 90px; top: 12px; border-radius: 14px; box-shadow: 0 12px 25px #3d56360b; }
.memory-card-back { transform: rotate(-16deg) translate(-20px, -1px); background: #dbe8d2; padding: 28px 23px; }
.memory-card-back span { display: block; width: 70%; border-bottom: 3px solid #bdcdb2; margin-bottom: 15px; border-radius: 10px; }
.memory-card-back span:last-child { width: 50%; }
.memory-card-front { transform: rotate(7deg); background: #fffef8; padding: 20px 22px; display: flex; align-items: center; flex-direction: column; }
.card-tag { font-size: 8px; letter-spacing: 1.3px; color: #718865; }
.illustration-icon { width: 50px; height: 50px; fill: none; stroke: #779366; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; margin: 21px 0 16px; }
.memory-card-front strong { font-weight: 550; font-size: 12px; letter-spacing: .8px; }
.card-rule { display: block; width: 38px; border-top: 1px solid #ccd8bd; margin: 16px 0 10px; }
.card-caption { font-size: 6px; letter-spacing: 1.7px; color: #7b8a70; }
.illustration-seal { display: flex; align-items: center; gap: 7px; position: absolute; bottom: 26px; left: 196px; padding: 10px 14px; background: #fffef8; border: 1px solid #e0e7d6; border-radius: 9px; font-size: 10px; white-space: nowrap; box-shadow: 0 5px 15px #3d563609; transform: rotate(-5deg); }
.illustration-seal .icon { width: 17px; height: 17px; color: #779366; }

/* Workspace overview */
.section-nav { display: flex; flex-wrap: wrap; gap: 28px; margin: 0 0 35px; padding: 20px 0 16px; border-bottom: 1px solid var(--line); }
.section-nav a { text-decoration: none; color: var(--muted); font-size: 12px; padding: 4px 0; }
.section-nav a:hover { color: var(--green-dark); text-decoration: underline; }
.section-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.section-heading h1, .section-heading h2 { margin-bottom: 8px; }
.hero-heading { margin-bottom: 27px; }
.hero-heading .button { align-self: center; }
.hero-heading .eyebrow { font-size: 9px; letter-spacing: 2px; }
#overview-error { margin-bottom: 18px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.stat-card { background: #fff; padding: 22px 23px 19px; border: 1px solid var(--line); border-radius: 16px; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-top h2 { font-size: 12px; color: var(--muted); font-weight: 500; margin: 0; }
.stat-top .icon { color: #7c9476; width: 19px; height: 19px; }
.stat-value { font-size: clamp(25px, 2.7vw, 33px); line-height: 1.3; font-weight: 550; font-variant-numeric: tabular-nums; letter-spacing: -.9px; margin: 19px 0 10px; overflow-wrap: anywhere; }
.stat-unit { margin-left: 7px; font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.stat-note { font-size: 10px; color: var(--muted); line-height: 1.6; }
.stat-primary { background: #eaf1e5; border-color: #d8e3cf; }
.stat-primary .stat-value { color: #2d583c; }
.context-note { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 11px; margin: 16px 0 31px; }
.context-dot { width: 5px; height: 5px; }

/* File library */
.files-panel { overflow: hidden; margin-bottom: 24px; }
.panel-heading { padding: 25px 27px 20px; }
.panel-heading h2 { margin-bottom: 5px; }
.panel-heading .eyebrow { font-size: 9px; margin-bottom: 5px; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; color: var(--green); background: #eff4eb; padding: 4px 10px; font-size: 11px; font-weight: 500; border-radius: 7px; white-space: nowrap; }
.file-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 0 27px 15px; }
.search-form { display: flex; align-items: center; gap: 8px; width: min(100%, 420px); }
.search-input-wrap { position: relative; flex: 1; min-width: 0; }
.search-input-wrap > .icon { position: absolute; top: 12px; left: 12px; width: 17px; height: 17px; color: #7e8d78; pointer-events: none; }
.search-input-wrap input { min-height: 41px; padding: 9px 35px; background: #fafbf8; font-size: 12px; }
.search-input-wrap input::-webkit-search-cancel-button { display: none; }
.search-clear { display: grid; place-items: center; position: absolute; right: 4px; top: 4px; width: 33px; height: 33px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.search-clear:hover { background: var(--green-soft); }
.search-clear .icon { width: 15px; height: 15px; }
.page-size { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 11px; color: var(--muted); }
.page-size select { font-size: 11px; background: #fff; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 0 27px 9px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.filter-button { color: var(--muted); background: transparent; border: 1px solid transparent; padding: 6px 13px; border-radius: 7px; font-size: 11px; min-height: 34px; }
.filter-button:hover { background: #f4f7f0; }
.filter-button[aria-pressed="true"] { color: var(--green-dark); background: var(--green-soft); border-color: #dce7d6; font-weight: 550; }
.filter-bar > .small { font-size: 10px; }
.file-status { min-height: 30px; padding: 0 27px 10px; font-size: 11px; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #f8faf5; color: #71806b; font-size: 10px; font-weight: 550; padding: 12px 18px; border-block: 1px solid var(--line); white-space: nowrap; }
td { padding: 15px 18px; border-bottom: 1px solid #edf0e9; font-size: 12px; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfdf9; }
th:first-child, td:first-child { padding-left: 27px; }
th:last-child, td:last-child { padding-right: 27px; }
.file-table { min-width: 750px; }
.file-table th:first-child { width: 40%; }
.file-table td:nth-child(3), .file-table td:nth-child(4) { white-space: nowrap; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.filename-cell { display: flex; align-items: center; gap: 12px; }
.file-icon { flex-shrink: 0; width: 35px; height: 39px; border-radius: 9px; display: grid; place-items: center; background: #eef3e9; color: #71925e; }
.file-icon.kind-audio { background: #f4f0e6; color: #a28b5f; }
.file-icon.kind-video { background: #edf0f5; color: #7b8caa; }
.file-icon.kind-file { background: #f2f2ee; color: #8a8d80; }
.file-icon .icon { width: 18px; height: 18px; }
.file-name { overflow-wrap: anywhere; word-break: break-word; min-width: 150px; }
.file-type { display: block; font-size: 11px; color: #596c52; white-space: nowrap; }
.file-mime { display: block; font-size: 9px; color: var(--muted); overflow-wrap: anywhere; max-width: 155px; line-height: 1.5; margin-top: 2px; }
.actions-column { text-align: right; }
.file-actions { display: flex; gap: 6px; justify-content: flex-end; }
.file-actions .button { font-size: 11px; min-height: 33px; padding: 6px 9px; }
.empty-state { padding: 38px 25px 42px; min-height: 210px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; }
.empty-state h3 { margin: 0; font-size: 14px; }
.empty-state p { color: var(--muted); font-size: 12px; max-width: 480px; overflow-wrap: anywhere; }
.empty-icon { width: 51px; height: 51px; border-radius: 15px; background: #f0f4eb; color: #8c9f7b; display: grid; place-items: center; margin-bottom: 4px; }
.empty-icon .icon { width: 24px; height: 24px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 16px 27px; border-top: 1px solid var(--line); }
.pagination > .small { font-size: 11px; }
.pagination-controls { display: flex; gap: 8px; }

/* Connection, backups and administration */
.connection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; margin-bottom: 37px; }
.connection-card, .backup-card { padding: 27px; position: relative; }
.connection-grid h2 { margin-bottom: 12px; font-size: 19px; }
.connection-grid .eyebrow { font-size: 9px; margin-top: 1px; padding-right: 45px; }
.section-icon { display: grid; place-items: center; position: absolute; right: 27px; top: 25px; width: 35px; height: 35px; color: #779368; background: #f0f5e9; border-radius: 10px; }
.input-label { display: block; margin-top: 25px; margin-bottom: 8px; font-size: 11px; }
.copy-field { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.copy-field input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; background: #f8faf5; min-height: 40px; padding: 10px; }
.copy-field .button { min-height: 40px; }
.connection-card > .small:last-child { font-size: 10px; }
.backup-option { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.backup-option h3 { font-size: 12px; font-weight: 550; margin-bottom: 5px; }
.backup-option h3 .format-badge { margin-left: 5px; font-size: 9px; padding: 1px 5px; background: #f1f3ed; color: #708065; }
.backup-option p { font-size: 10px; line-height: 1.7; color: var(--muted); }
.backup-option .button { padding-inline: 10px; }
.backup-note { font-size: 11px; margin-top: 13px; color: var(--amber); }
.backup-card > .small:last-child { margin-top: 7px; font-size: 10px; }
.admin-section { border-top: 1px solid var(--line); padding-top: 32px; padding-bottom: 15px; }
.admin-section .section-heading { margin-bottom: 23px; }
.admin-section .eyebrow { font-size: 9px; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr); gap: 23px; align-items: start; }
.users-panel { overflow: hidden; }
.users-heading { padding: 23px 25px 19px; }
.users-heading h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.service-status { color: var(--muted); overflow-wrap: anywhere; }
.users-table { min-width: 480px; }
.users-table th, .users-table td { padding-inline: 18px; }
.users-table td { font-size: 11px; }
.users-table td:nth-child(2), .users-table td:nth-child(3) { color: var(--muted); font-size: 10px; white-space: nowrap; }
.user-email { display: block; overflow-wrap: anywhere; margin-bottom: 4px; }
.user-role { font-size: 9px; color: var(--muted); }
.user-role.is-admin { color: var(--green); }
.inset-notice { margin: 0 20px 20px; }
.create-user-card { padding: 25px; }
.create-user-card h3 { margin-bottom: 7px; }
.create-user-card .stack-form { margin-top: 20px; gap: 16px; }
.create-user-card input { font-size: 12px; min-height: 42px; }
.create-user-card > .small:last-child { margin-top: 16px; font-size: 10px; }
.site-footer { max-width: 1176px; margin: 24px auto 0; min-height: 74px; padding: 20px 0; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #7e8b76; font-size: 10px; letter-spacing: .5px; }
.footer-brand { display: flex; align-items: center; gap: 7px; }
.footer-brand .icon { width: 16px; height: 16px; }

/* Native modal preserves keyboard focus and Escape behavior. */
.preview-dialog { width: min(760px, calc(100% - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: white; box-shadow: 0 24px 100px #132c3540; }
.preview-dialog::backdrop { background: #162d2466; backdrop-filter: blur(3px); }
.preview-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 23px; border-bottom: 1px solid var(--line); }
.preview-heading > div { min-width: 0; }
.preview-heading h2 { font-size: 16px; margin-bottom: 6px; overflow-wrap: anywhere; }
.preview-heading p { overflow-wrap: anywhere; }
.icon-button { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; background: #f3f6f0; border: 1px solid transparent; border-radius: 9px; color: var(--muted); }
.icon-button:hover { border-color: #c9d6bf; }
.preview-content { min-height: 160px; display: flex; align-items: center; justify-content: center; padding: 24px; background: #f7f9f4; }
.preview-content img { display: block; max-width: 100%; max-height: min(56vh, 580px); object-fit: contain; }
.preview-content audio { width: 100%; max-width: 550px; }
.preview-status { padding: 10px 23px; min-height: 37px; }
.preview-status.is-error { color: var(--error); }
.preview-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 23px; border-top: 1px solid var(--line); }

@media (min-width: 1400px) { .login-layout { padding-top: 85px; padding-bottom: 65px; } }
@media (max-width: 1100px) {
  .login-layout { padding: 55px 15px 40px; gap: 45px; grid-template-columns: 1fr 360px; }
  .stat-card { padding: 19px 17px 17px; }
  .stat-value { font-size: 28px; }
  .site-footer { margin-inline: 36px; }
  .account-chip .role-badge { display: none; }
  .admin-grid { grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); }
}
@media (max-width: 800px) {
  .header-inner { padding-inline: 24px; min-height: 74px; }
  .main-shell { padding-inline: 24px; }
  .login-layout { padding: 40px 0; gap: 30px; grid-template-columns: 1fr 330px; }
  .login-story h1 { font-size: 32px; letter-spacing: -1px; }
  .login-lead { font-size: 12px; }
  .login-card { padding: 27px 24px; }
  .illustration { transform: scale(.85); transform-origin: left center; height: 250px; margin-left: -25px; margin-right: -40px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card { padding: 21px; }
  .connection-grid { grid-template-columns: 1fr; gap: 18px; }
  .admin-grid { grid-template-columns: 1fr; }
  .site-footer { margin-inline: 24px; }
  #session-username { max-width: 180px; }
  .session-tools { gap: 8px; }
}
@media (max-width: 620px) {
  .header-inner { padding: 16px 19px; flex-wrap: wrap; gap: 12px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand-light { font-size: 13px; }
  .brand-mark { width: 31px; height: 34px; border-radius: 10px 10px 10px 3px; }
  .brand-mark .icon { width: 20px; height: 20px; }
  .header-note { font-size: 10px; letter-spacing: 0; }
  .session-tools { width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; }
  #session-username { max-width: 230px; }
  .main-shell { padding-inline: 18px; }
  .login-layout { grid-template-columns: minmax(0, 1fr); gap: 27px; padding: 32px 0 15px; max-width: 430px; margin: auto; }
  .login-story { text-align: center; }
  .login-story .eyebrow { justify-content: center; font-size: 10px; }
  .login-story h1 { font-size: 32px; margin: 11px 0 15px; }
  .login-lead { line-height: 1.8; }
  .illustration, .login-footnote { display: none; }
  .login-card { padding: 28px 25px; }
  .login-card h2 { font-size: 22px; }
  .login-card > .muted { font-size: 12px; }
  .section-nav { gap: 20px; margin-bottom: 26px; padding-top: 15px; padding-bottom: 12px; }
  .section-nav a { font-size: 11px; }
  .hero-heading { align-items: flex-start; gap: 12px; }
  .hero-heading h1 { font-size: 24px; }
  .hero-heading .muted { font-size: 11px; }
  .hero-heading .button { padding: 9px; min-height: 36px; font-size: 11px; }
  .hero-heading .button .icon { display: none; }
  .hero-heading .eyebrow { font-size: 8px; }
  .stat-grid { gap: 10px; }
  .stat-card { border-radius: 13px; padding: 17px 15px; }
  .stat-top h2 { font-size: 11px; }
  .stat-top .icon { width: 16px; height: 16px; }
  .stat-value { font-size: 27px; margin: 16px 0 9px; }
  .stat-note { font-size: 9px; }
  .context-note { font-size: 10px; margin: 13px 0 24px; line-height: 1.8; }
  .panel { border-radius: 15px; }
  .panel-heading { padding: 21px 18px 17px; gap: 12px; }
  .panel-heading h2 { font-size: 19px; }
  .panel-heading .muted { font-size: 10px; }
  .count-badge { font-size: 10px; padding: 4px 7px; }
  .file-toolbar { padding-inline: 18px; gap: 12px; flex-wrap: wrap; }
  .search-form { width: 100%; }
  .page-size { margin-left: auto; }
  .filter-bar { padding-inline: 18px; gap: 8px; }
  .filter-buttons { gap: 3px; }
  .filter-button { padding-inline: 12px; }
  .filter-bar > .small { width: 100%; padding-left: 2px; }
  .file-status { padding-inline: 20px; margin-top: 4px; }
  .pagination { padding: 13px 18px; flex-wrap: wrap; }
  .pagination-controls { margin-left: auto; }
  .connection-card, .backup-card { padding: 23px 20px; }
  .connection-grid h2 { font-size: 18px; }
  .section-icon { right: 20px; top: 20px; }
  .connection-grid { margin-bottom: 27px; }
  .backup-option { gap: 10px; }
  .backup-option h3 { font-size: 11px; }
  .backup-option h3 .format-badge { margin-left: 3px; }
  .admin-section .section-heading { gap: 10px; }
  .admin-section .section-heading h2 { font-size: 20px; }
  .admin-section .section-heading .muted { font-size: 10px; }
  .site-footer { margin-inline: 18px; gap: 12px; font-size: 9px; }
  .preview-heading { padding: 18px; }
  .preview-heading h2 { font-size: 14px; }
  .preview-content { padding: 17px; }
  .preview-footer { padding: 15px 18px; }
  .preview-footer > .small { font-size: 10px; }
}
@media (max-width: 360px) {
  .header-note { display: none; }
  .hero-heading { flex-wrap: wrap; }
  .hero-heading .button { align-self: flex-start; }
  .stat-card { padding: 15px 12px; }
  .stat-value { font-size: 24px; }
  .stat-top .icon { display: none; }
  .filter-button { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: 1.8s !important; }
}
@media (forced-colors: active) {
  .button, .filter-button, .stat-card, .panel, .brand-mark { border: 1px solid ButtonText; }
  .filter-button[aria-pressed="true"] { border-width: 3px; }
}
