/* DESIGN.md: warm-paper canvas, evergreen actions, artwork-led library. */
[hidden] { display: none !important; }

textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  resize: vertical;
  max-width: 100%;
}
.button, .icon-button { min-height: 44px; }
.icon-button { min-width: 44px; }
input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { overflow-wrap: anywhere; }
textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Public application chrome. The library, account and reservations share one frame. */
.public-page, .auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
}
.public-page :is(button, a, input, select, textarea):focus-visible,
.auth-page :is(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.public-page :is(input, select), .auth-page :is(input, select) {
  min-height: 48px;
  transition: border-color 150ms ease, background 150ms ease;
}
.public-page :is(input, select):hover:not(:disabled),
.auth-page :is(input, select):hover:not(:disabled) { border-color: var(--muted); }
.public-page :is(input, select):focus-visible,
.auth-page :is(input, select):focus-visible { border-color: var(--accent); }
.public-page :is(input, select)[aria-invalid="true"],
.auth-page :is(input, select)[aria-invalid="true"] { border-color: var(--danger); }
.public-page input::placeholder, .auth-page input::placeholder { color: var(--muted); }
.public-page input:disabled, .auth-page input:disabled { background: var(--sidebar); color: var(--muted); }
.public-header, .auth-header {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 80px;
  padding: 16px max(32px, calc((100vw - 1344px) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.public-header .brand, .auth-header .brand {
  display: inline-flex;
  min-height: 44px;
  margin: 0;
  padding: 0;
  gap: 0;
  white-space: nowrap;
  font-size: 23px;
}
.public-header .brand-dot, .auth-header .brand-dot { display: inline; font-size: inherit; }
.public-header .brand-mark, .auth-header .brand-mark { margin-right: 10px; }
.primary-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background 150ms ease, color 150ms ease;
}
.primary-nav a:hover { background: var(--sidebar); color: var(--ink); }
.primary-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; }
#identity { font-size: 13px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#session-actions { display: flex; align-items: center; gap: 8px; }
#session-actions .button { font-size: 13px; }
.public-main { max-width: 1344px; margin: 0 auto; padding: 48px 32px 64px; width: 100%; }
.public-view { min-width: 0; }
.public-main .page-heading { align-items: center; margin-bottom: 32px; gap: 24px; }
.public-main h1 { font-size: clamp(29px, 3vw, 38px); line-height: 1.2; letter-spacing: -.045em; }
.public-main .eyebrow { font-size: 11px; letter-spacing: .09em; }
.public-main .intro { max-width: 640px; font-size: 15px; line-height: 1.65; margin-top: 12px; }
#library-total { font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--muted); margin-left: 12px; vertical-align: middle; }
#download-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 4px; background: var(--line); color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.primary-nav [aria-current="page"] #download-count { color: var(--accent); background: var(--surface); }
.public-main .notice { display: block; margin: 16px 0 24px; padding: 16px; font-size: 14px; line-height: 1.6; }
.public-main .notice:empty { display: none; }
.public-main .notice[data-state="error"], .public-main .notice.is-error { color: var(--danger); background: var(--danger-soft); border-left-color: var(--danger); }
.library-status { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 24px; overflow-wrap: anywhere; }
.library-status:empty { display: none; }
.library-status[data-state="error"], .library-status.is-error { padding: 16px; border-radius: 7px; background: var(--danger-soft); color: var(--danger); }
.public-main .toolbar { display: flex; gap: 16px; align-items: center; margin: 0 0 32px; padding: 0; }
.public-main .search-wrap { flex: 1; min-width: 0; max-width: 600px; }
.public-main .search-wrap input { min-height: 48px; padding: 12px 16px; }
.public-main .search-wrap:has(svg) input { padding-left: 44px; }
.public-main .toolbar-select { display: flex; align-items: center; gap: 8px; }
.public-main .toolbar-select label { color: var(--muted); font-size: 13px; white-space: nowrap; }
.public-main .toolbar-select select { font-size: 14px; min-height: 48px; }

/* Artwork is the card: no repeated marketing-card border or shadow. */
.catalog { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; align-items: start; }
.catalog > :is(.empty-state, .access-gate) { grid-column: 1 / -1; }
.catalog-card { min-width: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.cover-button {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  background: var(--sidebar);
  box-shadow: 0 8px 24px -20px oklch(22% .025 165 / .3);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.cover-button:hover { border-color: var(--muted); box-shadow: 0 12px 24px -18px oklch(22% .025 165 / .35); }
.cover-button:active { border-color: var(--accent); }
.cover-button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { display: grid; place-items: center; gap: 12px; padding: 24px; font-family: 'DM Sans', sans-serif; font-weight: 400; font-size: 13px; line-height: 1.5; text-align: center; }
.cover-fallback svg { width: 32px; height: 32px; stroke-width: 1.3; }
.catalog-card-body { padding: 16px 0 0; }
.catalog-card h2, .card-title { margin: 0; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: -.015em; line-height: 1.45; overflow-wrap: anywhere; }
.card-title button { display: block; width: 100%; min-height: 44px; padding: 4px 0; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; line-height: inherit; text-align: left; overflow-wrap: anywhere; }
.card-title button:hover { color: var(--accent); }
.catalog-card-body > .muted, .catalog-size { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 6px; overflow-wrap: anywhere; }
.catalog-size { font-variant-numeric: tabular-nums; }
.card-status { margin-top: 10px; font-size: 12px; color: var(--muted); }
.catalog-card .badge { margin-top: 10px; white-space: normal; }
.catalog-card .card-actions { justify-content: flex-start; gap: 8px; margin-top: 12px; }
.catalog-card .card-actions .button { flex: 1; min-width: 0; padding: 10px 12px; font-size: 13px; white-space: normal; }
.catalog-pagination { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
#catalog-count { font-size: 13px; line-height: 1.6; }
.catalog-pagination .card-actions { flex-shrink: 0; gap: 8px; }
.catalog-pagination .button { min-width: 96px; }
.catalog-skeleton { min-width: 0; }
.skeleton-cover { aspect-ratio: 4 / 5; border-radius: 7px; background: var(--line); }
.skeleton-line { width: 76%; height: 12px; margin-top: 16px; border-radius: 4px; background: var(--line); }
.skeleton-line + .skeleton-line { width: 45%; height: 10px; margin-top: 12px; }
.catalog-skeleton { animation: skeleton-pulse 1.8s ease-in-out infinite; }
@keyframes skeleton-pulse { 50% { opacity: .5; } }
.public-main .empty-state, .access-gate {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  text-align: center;
  color: var(--muted);
  padding: 64px 24px;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  line-height: 1.65;
}
.public-main .empty-state :is(h2, h3, strong), .access-gate :is(h2, h3, strong) { display: block; color: var(--ink); font-family: Manrope, sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.035em; margin-bottom: 12px; }
.public-main .empty-state p, .access-gate p { max-width: 520px; margin: 0 auto; }
.gate-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-soft); color: var(--accent); margin: 0 auto 24px; }
.gate-mark svg { width: 24px; height: 24px; }
.gate-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.gate-actions + .small { margin-top: 24px; }
.public-main .empty-state .button { margin-top: 0; }
.public-main .empty-state > .button { margin-top: 24px; }

/* Task views: sober account panels and an unboxed reservation list. */
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; max-width: 1080px; }
.account-grid > :is(.access-gate, .empty-state) { grid-column: 1 / -1; }
.account-panel { min-width: 0; padding: 32px; box-shadow: none; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.account-panel :is(h2, h3) { font-size: 19px; font-weight: 800; margin-bottom: 16px; }
.account-panel > p { margin-bottom: 16px; line-height: 1.6; }
.account-summary { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.account-summary h2, .account-summary h3 { margin-bottom: 4px; overflow-wrap: anywhere; }
.account-summary > div { min-width: 0; }
.avatar { flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: Manrope, sans-serif; font-size: 20px; font-weight: 800; }
.account-details { margin: 0; }
.account-details > div { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.account-details > div:last-child { border: 0; }
.account-details dt, .quota-metrics dt { color: var(--muted); font-size: 13px; }
.account-details dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-size: 14px; }
.account-panel .card-actions { justify-content: flex-start; margin-top: 24px; }
.account-panel label { display: block; font-weight: 600; margin: 16px 0 8px; }
.account-panel input { width: 100%; padding: 12px; }
.account-panel > button, .account-panel form > button { margin-top: 24px; }
.account-panel form { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.quota-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.quota-metrics dd { font-family: Manrope, sans-serif; font-weight: 800; font-size: 20px; letter-spacing: -.035em; margin: 6px 0 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.auth-info { padding: 16px; margin-top: 24px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); font-size: 14px; line-height: 1.6; }
.auth-info p { color: var(--ink); }
.auth-info .button { margin-top: 16px; }
.auth-info a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
#download-list { max-width: 1080px; }
.download-help { font-size: 13px; line-height: 1.65; max-width: 720px; margin-bottom: 24px; }
.download-row { display: flex; align-items: center; gap: 24px; min-width: 0; padding: 24px 0; margin: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }
.download-row:first-of-type { border-top: 1px solid var(--line); }
.download-art { position: relative; flex: none; width: 64px; height: 80px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--sidebar); color: var(--muted); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.download-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.download-body { flex: 1; min-width: 0; }
.download-row :is(h2, h3) { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: -.015em; overflow-wrap: anywhere; margin-bottom: 8px; }
.download-row p { max-width: 600px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.download-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; flex-shrink: 0; max-width: 320px; }
.download-row .button { font-size: 13px; }
#page-feedback { padding: 16px; border-radius: 7px; background: var(--danger-soft); color: var(--danger); font-size: 14px; line-height: 1.6; margin-top: 24px; }
#page-feedback[data-state="success"], #page-feedback.is-success { background: var(--accent-soft); color: var(--accent); }
.public-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: calc(100% - 64px); max-width: 1280px; margin: auto auto 0; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.public-footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.public-page .dialog { border-radius: 10px; }
.public-page .dialog-header h2 { overflow-wrap: anywhere; }
.public-page .dialog-actions .button { white-space: normal; }
.public-page .detail-item dd { line-height: 1.6; }
.public-page .dialog-body .field-error { font-size: 13px; line-height: 1.6; }

/* Dedicated authentication: one purpose, one form, no decorative side panel. */
.auth-header { justify-content: space-between; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0 8px 12px; color: var(--muted); font-size: 14px; }
.auth-back:hover { color: var(--accent); }
.auth-main { display: grid; align-content: center; max-width: none; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 416px; margin: 0 auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.auth-heading { margin-bottom: 32px; }
.auth-heading h1 { font-size: clamp(29px, 4vw, 34px); line-height: 1.25; letter-spacing: -.045em; font-weight: 800; }
.auth-heading p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.auth-status { margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-status:empty { display: none; }
.auth-status[data-state="error"], .auth-status.is-error { color: var(--danger); background: var(--danger-soft); border-radius: 7px; padding: 16px; }
.auth-status[data-state="success"], .auth-status.is-success { color: var(--accent); }
.auth-form, .auth-form fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
.auth-form fieldset:disabled { opacity: .7; }
.auth-field { margin-bottom: 24px; }
.auth-field > label { display: block; color: var(--ink); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.auth-field input { width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 7px; font-size: 16px; }
.auth-field input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 1000px var(--surface) inset; }
.password-field { position: relative; }
.password-field input { padding-right: 80px; }
.password-toggle { position: absolute; top: 2px; right: 2px; bottom: 2px; min-width: 64px; min-height: 44px; border: 0; border-radius: 4px; background: transparent; padding: 8px 12px; color: var(--muted); font-size: 13px; font-weight: 600; }
.password-toggle:hover:not(:disabled) { color: var(--accent); background: var(--accent-soft); }
.password-toggle[aria-pressed="true"] { color: var(--accent); }
.password-toggle:focus-visible { outline-offset: -3px !important; }
.form-hint { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.auth-form .field-error { padding: 12px 16px; margin: 0 0 24px; border-radius: 7px; background: var(--danger-soft); color: var(--danger); font-size: 14px; line-height: 1.6; }
.auth-form .field-error:empty { display: none; }
.auth-form .field-error[data-state="success"], .auth-form .field-error.is-success { color: var(--accent); background: var(--accent-soft); }
.auth-submit { width: 100%; min-height: 48px; padding: 12px 16px; font-size: 15px; }
.auth-submit:disabled { opacity: .65; }
.auth-switch { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.65; text-align: center; }
.auth-switch a, .auth-policy-message a, .auth-form .form-hint a { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-switch a { display: inline-flex; align-items: center; min-height: 44px; }
.auth-policy-message { padding: 24px; background: var(--sidebar); border-radius: 7px; color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 24px; }
.auth-policy-message :is(h2, strong) { display: block; color: var(--ink); margin-bottom: 8px; }
.auth-policy-message .button { margin-top: 16px; }
#retry-auth { width: 100%; min-height: 48px; margin-top: 16px; }
.auth-form #send-code { width: 100%; min-height: 48px; margin: 0 0 24px; white-space: normal; }
#email-code { font-family: ui-monospace, monospace; font-size: 20px; letter-spacing: .16em; }
.auth-footer { padding: 24px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Existing administration utilities: admin.css owns the administration composition. */
.admin-gate { max-width: 480px; margin: 10vh auto; padding: 32px; }
.admin-gate .brand { margin-bottom: 32px; padding: 0; }
.admin-gate h1 { font-size: 28px; }
.admin-gate p { margin: 16px 0; }
.admin-gate label { display: block; font-weight: 600; margin: 16px 0 8px; }
.admin-gate button { margin-top: 20px; }
.admin-gate a:not(.brand) { text-decoration: underline; }
.admin-topbar-actions { display: flex; align-items: center; gap: 12px; }
.admin-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.admin-settings-grid .panel { padding: 24px; }
.settings-form label:not(.check-label), .admin-account-form label:not(.check-label) { display: block; font-weight: 600; margin: 16px 0 8px; }
.settings-form input:not([type="checkbox"]), .settings-form select,
.admin-account-form input:not([type="checkbox"]), .admin-account-form select, .admin-gate input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); padding: 10px 12px; }
.settings-form fieldset, .admin-account-form fieldset { border: 0; padding: 0; margin: 24px 0; }
.settings-form legend, .admin-account-form legend { font-family: Manrope, sans-serif; font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.settings-form .check-label, .admin-account-form .check-label { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.check-label input { width: 20px; height: 20px; }
.settings-form .form-actions, .admin-account-form .form-actions { display: flex; gap: 12px; margin-top: 24px; }
.quota-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.quota-fields label { min-width: 0; }
.quota-fields label input, .quota-fields label select { margin-top: 8px; }
.settings-form details { margin-top: 24px; }
.settings-form summary { font-weight: 600; cursor: pointer; padding: 12px 0; }
.advanced-config { width: 100%; min-height: 360px; font: 13px/1.6 ui-monospace, monospace; }
.admin-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 24px 0; }
.admin-toolbar input { width: min(420px, 100%); min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.accounts-table { width: 100%; border-collapse: collapse; }
.accounts-table th, .accounts-table td { text-align: left; padding: 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.accounts-table th { font-size: 11px; letter-spacing: .05em; color: var(--muted); }
.accounts-table td small { display: block; color: var(--muted); margin-top: 4px; }
.accounts-table td:last-child { white-space: nowrap; }
.restart-notice { margin: 16px 0; }
.admin-account-form .dialog-body { max-height: 68vh; overflow: auto; }
.admin-account-form p.small { margin-top: 12px; }
.admin-status { margin: 16px 0; }
.nav a[data-view-link="accounts"], .nav a[data-view-link="settings"] { gap: 10px; }

@media (max-width: 1100px) {
  .public-header { gap: 24px; }
  .primary-nav { gap: 0; }
  .primary-nav a { padding: 10px 12px; }
  #identity { max-width: 120px; }
  .header-actions { gap: 8px; }
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .public-main .toolbar { flex-wrap: wrap; }
  .public-main .search-wrap { max-width: none; }
  .download-actions { max-width: 220px; }
}
@media (max-width: 1000px) {
  .admin-settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .public-header { flex-wrap: wrap; gap: 8px 24px; padding: 12px 24px 0; }
  .header-actions { margin-left: auto; }
  .primary-nav { order: 3; width: 100%; flex-basis: 100%; padding: 4px 0 12px; gap: 8px; }
  .primary-nav a { flex: 1; }
  .public-main { padding: 32px 24px 48px; }
  .public-main .toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .public-main .search-wrap { grid-column: 1 / -1; }
  .public-main .toolbar-select { display: block; min-width: 0; }
  .public-main .toolbar-select label { display: block; margin-bottom: 8px; }
  .public-main .toolbar-select select { width: 100%; }
  .account-grid { grid-template-columns: 1fr; }
  .download-row { flex-wrap: wrap; gap: 16px; }
  .download-body { flex-basis: calc(100% - 80px); }
  .download-actions { width: 100%; max-width: none; padding-left: 80px; justify-content: flex-start; }
  .public-footer { width: calc(100% - 48px); }
}
@media (max-width: 600px) {
  .public-page, .auth-page { font-size: 14px; }
  .public-header { padding: 12px 16px 0; gap: 8px 16px; }
  .public-header .brand, .auth-header .brand { font-size: 21px; }
  #identity { display: none; }
  #session-actions { flex-wrap: wrap; justify-content: flex-end; }
  #session-actions .button { padding: 8px 12px; }
  .primary-nav { gap: 4px; }
  .primary-nav a { padding: 10px 8px; font-size: 13px; }
  .public-main { padding: 32px 16px 48px; }
  .public-main .page-heading { flex-direction: column; align-items: flex-start; gap: 24px; }
  .public-main .page-heading > .button { width: auto; }
  .public-main #library .page-heading { flex-direction: row; align-items: center; gap: 16px; }
  .public-main .intro { font-size: 14px; }
  .public-main .toolbar { gap: 12px; margin-bottom: 24px; }
  .public-main :is(input, select) { font-size: 16px; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .catalog-card-body { padding-top: 12px; }
  .catalog-card h2, .card-title { font-size: 14px; }
  .catalog-card-body > .muted, .catalog-size { font-size: 12px; }
  .catalog-card .card-actions { gap: 8px; }
  .catalog-card .card-actions .button { width: 100%; flex-basis: 100%; font-size: 12px; padding: 10px 8px; }
  .catalog-pagination { flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 32px; }
  .catalog-pagination .card-actions { width: 100%; }
  .catalog-pagination .button { flex: 1; }
  .public-main .empty-state, .access-gate { padding: 48px 8px; }
  .gate-actions { gap: 12px; }
  .account-panel { padding: 24px; }
  .account-details > div { gap: 16px; }
  .quota-metrics { gap: 12px; }
  .quota-metrics dd { font-size: 18px; }
  .download-art { width: 48px; height: 60px; }
  .download-body { flex-basis: calc(100% - 64px); }
  .download-actions { padding-left: 64px; }
  .download-actions .button { white-space: normal; }
  .public-footer { width: calc(100% - 32px); align-items: flex-start; flex-direction: column; gap: 8px; }
  .public-page .dialog-actions { justify-content: stretch; }
  .public-page .dialog-actions > .button { flex: 1; }
  .auth-header { min-height: 72px; padding: 12px 24px; gap: 16px; }
  .auth-back { font-size: 13px; }
  .auth-main { align-content: start; padding: 48px 24px 32px; }
  .auth-heading { margin-bottom: 32px; }
  .auth-footer { padding: 24px; }
}
@media (max-width: 700px) {
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-gate { margin: 32px 16px; }
  .admin-topbar-actions { gap: 8px; }
  .admin-topbar-actions .admin-identity { display: none; }
}
@media (max-width: 380px) {
  .public-header { gap: 8px; }
  .primary-nav a { padding-inline: 6px; }
  #session-actions .button { padding-inline: 8px; font-size: 12px; }
  .quota-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-actions { padding-left: 0; }
  .auth-header { padding-inline: 16px; }
  .auth-main { padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
