:root {
  color-scheme: light;
  --page: #ffffff;
  --sidebar: #f7f7f7;
  --soft: #f9fafb;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --subtle: #9ca3af;
  --black: #111111;
  --magenta: #c026d3;
  --green: #10b981;
  --color-bg: var(--page);
  --color-surface: #ffffff;
  --color-surface-muted: var(--soft);
  --color-border: var(--border);
  --color-text: var(--text);
  --color-text-muted: var(--muted);
  --color-primary: var(--black);
  --color-primary-hover: #2a2a2a;
  --color-focus-ring: var(--magenta);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--page); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1; display: flex; flex-direction: column; width: 252px; padding: 24px 16px; background: var(--sidebar); border-right: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--text); font-size: 17px; font-weight: 750; text-decoration: none; letter-spacing: -.025em; }
.brand-mark { display: grid; width: 28px; height: 28px; place-items: center; padding-left: 2px; color: white; background: var(--black); border-radius: 8px; font-size: 12px; }
nav { display: grid; gap: 4px; margin-top: 40px; }
.nav-item { display: flex; gap: 11px; align-items: center; padding: 11px 12px; color: var(--muted); border-radius: 8px; text-decoration: none; font-size: 14px; }
.nav-item:hover, .nav-item.active { color: var(--text); background: #eeeeee; font-weight: 650; }
.sidebar-note { margin: auto 8px 3px; color: var(--muted); font-size: 12px; line-height: 1.6; }

main { margin-left: 252px; min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 65px; padding: 0 48px; border-bottom: 1px solid var(--border); }
.breadcrumbs { margin: 0; color: var(--muted); font-size: 13px; }.breadcrumbs span { margin: 0 8px; color: #c4c7cd; }
.connection { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }.connection i { width: 7px; height: 7px; background: var(--green); border-radius: 50%; }
.page-heading, .search-card, .results-section { max-width: 1440px; margin-right: auto; margin-left: auto; }
.page-heading { display: flex; justify-content: space-between; padding: 56px 48px 30px; }
.eyebrow { margin: 0 0 8px; color: var(--magenta); font-weight: 750; font-size: 11px; letter-spacing: .08em; }
h1, h2, h3, p { overflow-wrap: anywhere; } h1, h2, h3 { letter-spacing: -.02em; }
h1 { margin: 0; font-size: 30px; line-height: 1.2; }.page-heading > div > p:last-child { max-width: 610px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.search-card { margin: 0 48px; padding: 24px; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }
.section-title, .results-heading { display: flex; gap: 24px; align-items: start; justify-content: space-between; }.section-title h2, .results-heading h2 { margin: 0; font-size: 17px; }.section-title p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }.section-title code { padding: 1px 4px; color: #4b5563; background: var(--soft); border-radius: 4px; }
.pill, .result-count { display: inline-flex; flex: none; padding: 5px 9px; color: #065f46; background: #d1fae5; border-radius: 999px; font-size: 11px; font-weight: 700; }
form { display: grid; grid-template-columns: 1.8fr 1fr 1fr .75fr .55fr; gap: 16px; align-items: end; margin-top: 24px; }.field { min-width: 0; }.field-cookie { grid-column: span 3; }.field-proxy { grid-column: span 2; }
label { display: block; margin-bottom: 7px; color: #374151; font-size: 12px; font-weight: 650; } label span { color: var(--subtle); font-weight: 500; }
input, select { width: 100%; height: 39px; padding: 0 11px; color: var(--text); background: white; border: 1px solid #d1d5db; border-radius: 8px; outline: none; font-size: 13px; transition: border .15s, box-shadow .15s; } input::placeholder { color: #9ca3af; } input:focus, select:focus { border-color: var(--magenta); box-shadow: 0 0 0 3px rgb(192 38 211 / 11%); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; padding: 0 13px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 650; text-decoration: none; transition: filter .15s, background .15s, border .15s; }.button:hover { filter: brightness(.96); }.button:disabled { cursor: wait; opacity: .65; }.primary { color: white; background: var(--black); }.secondary { color: var(--text); background: white; border-color: #d1d5db; }.preview { color: var(--text); background: white; border-color: #d1d5db; }.download { color: white; background: var(--magenta); }.download.disabled { cursor: not-allowed; opacity: .45; }
.form-status { min-height: 18px; margin: 14px 0 0; color: var(--muted); font-size: 12px; }.form-status.error { color: #b42318; }.spinner { width: 13px; height: 13px; border: 2px solid #fff8; border-top-color: white; border-radius: 50%; animation: spin .75s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }

.results-section { padding: 46px 48px 60px; }.result-count { color: #1d4ed8; background: #dbeafe; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(267px, 1fr)); gap: 20px; margin-top: 20px; }.video-card { overflow: hidden; background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }.thumbnail-button { position: relative; display: block; width: 100%; height: 236px; padding: 0; overflow: hidden; background: #111827; border: 0; }.cover { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }.thumbnail-button:hover .cover { transform: scale(1.025); }.play-icon { position: absolute; top: 50%; left: 50%; display: grid; width: 43px; height: 43px; place-items: center; padding-left: 3px; color: white; background: rgb(17 24 39 / 76%); border: 1px solid rgb(255 255 255 / 45%); border-radius: 50%; transform: translate(-50%, -50%); }.duration { position: absolute; right: 8px; bottom: 8px; padding: 3px 6px; color: white; background: rgb(17 24 39 / 80%); border-radius: 5px; font-size: 11px; font-weight: 650; }.video-content { padding: 14px; }.video-title { display: -webkit-box; min-height: 40px; margin: 0; overflow: hidden; font-size: 14px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.author { display: flex; gap: 7px; align-items: center; margin-top: 12px; color: #4b5563; font-size: 12px; }.avatar { width: 20px; height: 20px; background: #f3f4f6; border-radius: 50%; object-fit: cover; }.author-name { overflow: hidden; max-width: 126px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }.author time { margin-left: auto; color: var(--subtle); font-size: 11px; white-space: nowrap; }.tags { display: flex; gap: 5px; min-height: 23px; margin: 11px 0 8px; overflow: hidden; }.tags span { display: block; max-width: 100%; padding: 3px 6px; overflow: hidden; color: #1d4ed8; background: #eff6ff; border-radius: 999px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: 7px; }.metrics span { display: flex; gap: 4px; justify-content: center; padding: 7px 3px; color: var(--muted); border-right: 1px solid var(--border); font-size: 11px; }.metrics span:last-child { border: 0; }.metrics b { color: #4b5563; font-weight: 650; }.card-actions { display: grid; grid-template-columns: 1fr 1.1fr; gap: 8px; margin-top: 12px; }.card-actions .button { min-height: 35px; font-size: 12px; }.load-more-wrap { display: flex; justify-content: center; margin-top: 28px; }

dialog { width: min(92vw, 640px); padding: 0; color: var(--text); background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 60px rgb(0 0 0 / 20%); }dialog::backdrop { background: rgb(17 24 39 / 58%); }.dialog-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--border); }.dialog-header h2 { margin: 0; font-size: 15px; }.icon-button { display: grid; width: 30px; height: 30px; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 24px; line-height: 1; }.icon-button:hover { color: var(--text); background: var(--soft); }.player-stage { position: relative; width: min(100%, 390px, 39vh); aspect-ratio: 9 / 16; margin: 0 auto; overflow: hidden; background: #000; }.player-stage video { display: block; width: 100%; height: 100%; background: #000; object-fit: cover; }.video-reactions { position: absolute; right: 10px; bottom: 57px; display: flex; flex-direction: column; gap: 11px; align-items: center; color: white; text-align: center; text-shadow: 0 1px 2px rgb(0 0 0 / 65%); }.player-avatar-wrap { display: grid; width: 41px; height: 41px; place-items: center; overflow: hidden; background: #374151; border: 2px solid white; outline: 2px solid #fe2c55; border-radius: 50%; box-shadow: 0 1px 4px rgb(0 0 0 / 45%); }.player-avatar-wrap:hover { transform: scale(1.06); }.player-avatar-wrap.unavailable { cursor: default; }.player-avatar-wrap.unavailable:hover { transform: none; }.player-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }.reaction-item { display: grid; justify-items: center; gap: 4px; min-width: 43px; color: white; font-size: 10px; line-height: 1.05; }.reaction-icon { display: grid; width: 35px; height: 35px; place-items: center; color: white; border: 1px solid rgb(255 255 255 / 58%); border-radius: 50%; box-shadow: 0 2px 7px rgb(0 0 0 / 38%); }.reaction-views .reaction-icon { background: #7c3aed; }.reaction-likes .reaction-icon { background: #fe2c55; }.reaction-comments .reaction-icon { background: #20a6e8; }.reaction-shares .reaction-icon { background: #f59e0b; }.reaction-icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.9; }.reaction-item strong { max-width: 62px; overflow: hidden; color: white; font-size: 10px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }.player-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 9px; width: min(100%, 390px, 39vh); margin: 13px auto 0; }.player-actions .button { min-height: 38px; font-size: 12px; }.modal-download { color: white; background: var(--magenta); }.modal-queue { color: white; background: var(--black); }.modal-queue:disabled { cursor: default; opacity: .6; }.queue-status { width: min(100%, 390px, 39vh); min-height: 16px; padding: 0; margin: 7px auto 0; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: center; }dialog p#player-caption { padding: 0 18px 16px; margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }

@media (max-width: 980px) { .sidebar { position: static; width: auto; min-height: auto; padding: 14px 20px; border-right: 0; border-bottom: 1px solid var(--border); }.sidebar nav { display: none; }.sidebar-note { display: none; } main { margin-left: 0; }.topbar { padding: 0 24px; }.page-heading { padding: 36px 24px 24px; }.search-card { margin: 0 24px; } .results-section { padding: 38px 24px; } form { grid-template-columns: repeat(3, 1fr); }.field-cookie { grid-column: span 2; }.field-proxy { grid-column: auto; } }
@media (max-width: 650px) { .topbar { height: 54px; padding: 0 18px; }.connection { display: none; }.page-heading { padding: 31px 18px 21px; }h1 { font-size: 25px; }.search-card { margin: 0 18px; padding: 18px; }.section-title { display: block; }.pill { margin-top: 13px; }form { grid-template-columns: 1fr 1fr; gap: 13px; }.field-keyword, .field-cookie, .field-proxy { grid-column: span 2; }.compact-field { grid-column: auto; }form .primary { grid-column: span 2; }.results-section { padding: 34px 18px 48px; }.results-heading { align-items: center; }.results-grid { grid-template-columns: 1fr; }.thumbnail-button { height: min(116vw, 390px); }.breadcrumbs { font-size: 12px; } }

/* Library and download-management pages */
[hidden] { display: none !important; }
.author-name, .creator-link { overflow: hidden; max-width: 140px; color: #374151; font-weight: 650; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }.author-name:hover, .creator-link:hover { color: #c026d3; text-decoration: underline; }.author-name.unavailable, .creator-link.unavailable { cursor: default; color: #4b5563; text-decoration: none; }
.results-toolbar, .table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; }.results-toolbar input, .table-toolbar input { flex: 1 1 220px; }.results-toolbar select, .table-toolbar select { flex: 0 1 170px; width: auto; }.compact-action { min-height: 39px; }.results-grid { margin-top: 18px; }.card-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }.queue-card { color: #111827; background: #f3f4f6; border-color: #d1d5db; }.queue-card.is-queued { color: #065f46; background: #d1fae5; border-color: #a7f3d0; }.queue-card:disabled { cursor: default; }
.management-page { max-width: 1440px; padding: 0 48px 60px; margin: 0 auto; }.management-page .page-heading { padding-right: 0; padding-left: 0; }.compact-heading { padding-bottom: 26px; }.management-card { padding: 24px; background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }.action-bar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }.queue-counts { display: flex; flex-wrap: wrap; gap: 7px; }.status-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; text-transform: capitalize; }.status-pill.queued { color: #1d4ed8; background: #dbeafe; }.status-pill.downloading { color: #92400e; background: #fef3c7; }.status-pill.completed { color: #065f46; background: #d1fae5; }.status-pill.failed { color: #b42318; background: #fee4e2; }.batch-control { display: flex; gap: 9px; align-items: center; }.batch-control label { margin: 0; white-space: nowrap; }.batch-control input { width: 70px; }.batch-control .button { min-height: 39px; }.table-toolbar { padding: 18px 0; border-top: 1px solid var(--border); margin-top: 22px; }.table-feedback { min-height: 18px; margin: 0 0 12px; color: var(--muted); font-size: 12px; }.table-feedback.error { color: #b42318; }.library-note { padding: 10px 12px; margin: 2px 0 14px; color: #1d4ed8; background: #eff6ff; border-radius: 8px; font-size: 12px; line-height: 1.45; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 9px; }table { width: 100%; min-width: 760px; border-collapse: collapse; text-align: left; }th { padding: 11px 13px; color: var(--muted); background: #f9fafb; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 750; letter-spacing: .01em; text-transform: uppercase; }td { padding: 12px 13px; color: #4b5563; border-bottom: 1px solid var(--border); font-size: 12px; vertical-align: middle; }tbody tr:last-child td { border-bottom: 0; }tbody tr:hover { background: #fcfcfd; }.table-video { display: flex; gap: 10px; align-items: center; width: 290px; }.table-video img { width: 42px; height: 42px; flex: none; background: #f3f4f6; border-radius: 7px; object-fit: cover; }.table-video div { min-width: 0; }.table-video strong { display: block; overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.table-video span { display: block; overflow: hidden; margin-top: 3px; color: var(--subtle); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.table-creator { display: flex; gap: 7px; align-items: center; }.table-creator > img { width: 25px; height: 25px; flex: none; background: #f3f4f6; border-radius: 50%; object-fit: cover; }.details-cell { max-width: 180px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }.row-actions { display: flex; gap: 10px; justify-content: flex-end; white-space: nowrap; }.text-action { padding: 0; color: #2563eb; background: transparent; border: 0; font-size: 12px; font-weight: 650; text-decoration: none; }.text-action:hover { color: #1d4ed8; text-decoration: underline; }.danger-action { color: #b42318; }.danger-action:hover { color: #8d1b13; }.table-empty { padding: 42px 16px; color: var(--muted); text-align: center; }
@media (max-width: 980px) { .management-page { padding: 0 24px 48px; }.management-page .page-heading { padding-right: 0; padding-left: 0; } }
@media (max-width: 650px) { .management-page { padding: 0 18px 42px; }.management-card { padding: 17px; }.action-bar { align-items: stretch; }.batch-control { width: 100%; flex-wrap: wrap; }.batch-control .button { flex: 1 1 190px; }.results-toolbar, .table-toolbar { gap: 8px; }.results-toolbar input, .results-toolbar select, .table-toolbar input, .table-toolbar select { flex: 1 1 100%; width: 100%; }.compact-action { width: 100%; }.card-actions { gap: 6px; }.card-actions .button { padding: 0 5px; font-size: 11px; }.queue-counts { width: 100%; }.status-pill { flex: 1 1 auto; justify-content: center; } }

/* Keep table cells as table cells; flex layout belongs to their inner content. */
.table-video, .table-creator { display: table-cell; }.table-video-content, .table-creator-content { display: flex; gap: 10px; align-items: center; }.table-creator-content { gap: 7px; }.table-creator-content > img { width: 25px; height: 25px; flex: none; background: #f3f4f6; border-radius: 50%; object-fit: cover; }

/* Fixed management-table columns prevent long API titles from widening the page. */
.queue-table, .downloads-table { min-width: 0; table-layout: fixed; }.queue-table th:nth-child(1) { width: 31%; }.queue-table th:nth-child(2) { width: 15%; }.queue-table th:nth-child(3) { width: 11%; }.queue-table th:nth-child(4) { width: 12%; }.queue-table th:nth-child(5) { width: 21%; }.queue-table th:nth-child(6) { width: 10%; }.downloads-table th:nth-child(1) { width: 42%; }.downloads-table th:nth-child(2) { width: 20%; }.downloads-table th:nth-child(3) { width: 10%; }.downloads-table th:nth-child(4) { width: 15%; }.downloads-table th:nth-child(5) { width: 13%; }.queue-table .table-video, .downloads-table .table-video { width: auto; }.table-video-content { min-width: 0; }.table-video-content > div { min-width: 0; flex: 1; }.table-video-tags { min-height: 14px; overflow: hidden; color: #2563eb !important; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.queue-table td, .downloads-table td { overflow: hidden; }

/* Account, dashboard, and administration components. */
.sidebar-account { display: grid; gap: 6px; padding: 14px 8px 2px; margin-top: auto; color: var(--color-text-muted); border-top: 1px solid var(--color-border); font-size: 12px; }.sidebar-account strong { overflow: hidden; color: var(--color-text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.sidebar-account form { display: block; margin: 0; }.sidebar-account .text-action { text-align: left; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }.metric-card { display: grid; gap: 7px; padding: 18px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 4%); }.metric-card span { color: var(--color-text-muted); font-size: 12px; }.metric-card strong { color: var(--color-text); font-size: 23px; letter-spacing: -.04em; }.dashboard-history { margin-top: 20px; }
.pagination { display: flex; gap: 12px; align-items: center; justify-content: flex-end; padding-top: 16px; color: var(--color-text-muted); font-size: 12px; }.pagination .button { min-width: 76px; }
.status-pill.unverified { color: #6b7280; background: #f3f4f6; }.status-pill.pending_activation { color: #92400e; background: #fef3c7; }.status-pill.active { color: #065f46; background: #d1fae5; }.status-pill.suspended { color: #b42318; background: #fee4e2; }
.auth-page { display: grid; min-height: 100vh; padding: clamp(16px, 4vw, 42px); place-items: center; background: radial-gradient(circle at 12% 8%, rgb(192 38 211 / 10%), transparent 27rem), var(--color-surface-muted); }.auth-shell { display: grid; width: min(100%, 980px); min-height: min(630px, calc(100vh - 64px)); grid-template-columns: minmax(290px, .86fr) minmax(420px, 1.14fr); overflow: hidden; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 22px; box-shadow: 0 26px 70px rgb(17 24 39 / 13%); }.auth-intro { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 36px; overflow: hidden; color: #fff; background: linear-gradient(145deg, #111111 0%, #232026 66%, #5c1e60 145%); }.auth-brand { display: inline-flex; gap: 10px; align-items: center; width: fit-content; color: #fff; font-size: 17px; font-weight: 750; letter-spacing: -.025em; text-decoration: none; }.auth-brand .brand-mark { color: #111111; background: #fff; }.auth-intro-copy { position: relative; z-index: 1; max-width: 265px; margin: auto 0 42px; }.auth-intro-copy p, .auth-header p { margin: 0 0 10px; font-size: 10px; font-weight: 800; letter-spacing: .14em; }.auth-intro-copy p { color: #f5b8fb; }.auth-intro-copy h1 { margin: 0; color: #fff; font-size: clamp(30px, 3.3vw, 42px); line-height: 1.08; letter-spacing: -.055em; }.auth-orbit { position: absolute; border: 1px solid rgb(255 255 255 / 20%); border-radius: 999px; }.auth-orbit-one { right: -145px; bottom: -120px; width: 390px; height: 390px; }.auth-orbit-two { right: 58px; bottom: 42px; width: 92px; height: 92px; border-color: rgb(245 184 251 / 50%); }.auth-card { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(36px, 7vw, 76px); background: var(--color-surface); }.auth-header { margin-bottom: 31px; }.auth-header p { color: var(--magenta); }.auth-card h1 { margin: 0; color: var(--color-text); font-size: 31px; letter-spacing: -.045em; }.auth-card > p { margin: 0 0 22px; color: var(--color-text-muted); font-size: 14px; line-height: 1.55; }.auth-form { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 0; }.auth-form .field { min-width: 0; }.auth-form label { margin-bottom: 8px; color: var(--color-text); font-size: 12px; }.auth-control { display: flex; align-items: center; height: 50px; padding: 0 14px; background: #fff; border: 1px solid #d7dbe2; border-radius: 10px; transition: border-color .18s, box-shadow .18s, background .18s; }.auth-control svg { width: 18px; height: 18px; flex: none; margin-right: 10px; color: #7b8493; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }.auth-control:focus-within { background: #fff; border-color: var(--magenta); box-shadow: 0 0 0 4px rgb(192 38 211 / 12%); }.auth-control input { height: 100%; min-width: 0; padding: 0; color: var(--color-text); background: transparent; border: 0; border-radius: 0; box-shadow: none; font-size: 14px; }.auth-control input:focus { border: 0; box-shadow: none; }.auth-form .button { width: 100%; min-height: 50px; margin-top: 6px; border-radius: 10px; }.auth-submit { justify-content: space-between; padding: 0 18px; background: var(--color-primary); }.auth-submit:hover { background: var(--color-primary-hover); filter: none; }.auth-switch { margin: 23px 0 0; color: var(--color-text-muted); font-size: 13px; text-align: center; }.auth-switch a { color: var(--color-text); font-weight: 750; text-underline-offset: 3px; }.auth-logout { display: block; margin: 22px 0 0; }.auth-logout .text-action { color: var(--color-text-muted); }body.auth-page > .auth-card { width: min(100%, 430px); min-height: 0; padding: 40px; border: 1px solid var(--color-border); border-radius: 18px; box-shadow: 0 18px 45px rgb(17 24 39 / 9%); }body.auth-page > .auth-card .brand { display: inline-flex; padding: 0; margin-bottom: 34px; }
.admin-page .sidebar { z-index: 3; }.admin-page .nav-item { width: 100%; border: 0; text-align: left; }.admin-panel[hidden] { display: none; }.table-subtext { display: block; margin-top: 3px; overflow: hidden; color: var(--color-text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.admin-table { min-width: 820px; }.dialog-form { display: block; margin: 0; }.dialog-body { display: grid; gap: 15px; padding: 18px; }.dialog-body .field { min-width: 0; }.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }.form-grid.triple { grid-template-columns: repeat(3, minmax(0, 1fr)); }.dialog-actions { display: flex; gap: 9px; justify-content: flex-end; padding: 15px 18px; border-top: 1px solid var(--color-border); }.toggle-row { display: flex; flex-wrap: wrap; gap: 16px; }.toggle-row label { display: flex; gap: 8px; align-items: center; margin: 0; font-size: 13px; }.toggle-row input { width: 16px; height: 16px; padding: 0; accent-color: var(--color-primary); }.inline-stats { padding: 10px 12px; color: var(--color-text-muted); background: var(--color-surface-muted); border-radius: 8px; font-size: 12px; }.confirm-dialog { width: min(92vw, 390px); }.confirm-dialog p { padding: 18px; margin: 0; color: var(--color-text-muted); font-size: 14px; line-height: 1.5; }.danger-button { background: #b42318; }.toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; max-width: min(360px, calc(100vw - 40px)); padding: 12px 14px; color: #fff; background: var(--color-primary); border-radius: 9px; box-shadow: 0 10px 28px rgb(15 23 42 / 20%); font-size: 13px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .18s, transform .18s; }.toast.show { opacity: 1; transform: translateY(0); }.toast.error { background: #b42318; }
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.form-grid.triple { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .auth-page { padding: 16px; }.auth-card { padding: 24px 20px; }.dashboard-grid { grid-template-columns: 1fr 1fr; gap: 10px; }.metric-card { padding: 14px; }.metric-card strong { font-size: 20px; }.form-grid, .form-grid.triple { grid-template-columns: 1fr; }.dialog-body { padding: 16px; }.dialog-actions { padding: 14px 16px; }.pagination { justify-content: space-between; }.admin-page .sidebar nav { display: flex; margin-top: 18px; overflow-x: auto; }.admin-page .nav-item { width: auto; white-space: nowrap; }.admin-page .sidebar-account { display: none; } }
@media (max-width: 760px) { .auth-page { padding: 0; background: var(--color-surface); }.auth-shell { width: 100%; min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; }.auth-intro { min-height: 178px; padding: 25px 24px; }.auth-intro-copy { margin: auto 0 0; }.auth-intro-copy h1 { max-width: 290px; font-size: 28px; }.auth-orbit-one { right: -94px; bottom: -148px; width: 285px; height: 285px; }.auth-orbit-two { right: 40px; bottom: 18px; width: 62px; height: 62px; }.auth-card { justify-content: flex-start; padding: 38px 24px 48px; }.auth-header { margin-bottom: 28px; }.auth-card h1 { font-size: 29px; } }
@media (max-width: 420px) { .auth-intro { min-height: 160px; }.auth-card { padding: 34px 20px 42px; }.auth-control { height: 48px; }.auth-form .button { min-height: 48px; } }

/* Immediate, accessible save feedback for admin forms. */
.dialog-form[aria-busy="true"] { cursor: progress; }.dialog-form[aria-busy="true"] .dialog-body { opacity: .62; }.dialog-form .button-spinner { width: 14px; height: 14px; border: 2px solid rgb(255 255 255 / 40%); border-top-color: #fff; border-radius: 50%; animation: spin .75s linear infinite; }
