:root {
  color-scheme: dark;
  font-family: Inter, Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #0b0b0b;
  color: #f2f2f2;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #0b0b0b; }
button, input { font: inherit; }
select { font: inherit; }
.auth-page {
  background-color: #0b0b0b;
  background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 24px 24px;
}
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-panel { width: min(100%, 420px); padding: 32px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: #161616; }
.login-logo { display: block; width: 64px; height: 64px; margin: 0 0 28px; border-radius: 10px; }
.eyebrow { margin: 0 0 8px; color: #9b6cff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0 0 12px; font-size: clamp(24px, 6vw, 32px); line-height: 1.2; }
.subtitle { margin: 0 0 28px; color: #a3a3a3; line-height: 1.55; }
label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; outline: none; background: #101010; color: #f2f2f2; }
input:hover { border-color: rgba(255,255,255,.28); }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid #9b6cff; outline-offset: 2px; }
button { min-height: 44px; border: 0; border-radius: 8px; padding: 0 18px; background: #9b6cff; color: #fff; cursor: pointer; font-weight: 650; }
.auth-panel button { width: 100%; margin-top: 16px; }
button:hover { filter: brightness(1.08); }
.secondary { border: 1px solid rgba(255,255,255,.14); background: #1c1c1c; }
.error { margin: 10px 0 0; color: #ff7b6c; font-size: 14px; }
.security-note { margin: 24px 0 0; color: #737373; font-size: 12px; text-align: center; }
.topbar { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #f2f2f2; font-weight: 700; text-decoration: none; }
.brand-logo { width: 32px; height: 32px; border-radius: 6px; }
.brand-product { padding-left: 12px; border-left: 1px solid rgba(255,255,255,.18); }
.top-search { width: min(42vw, 480px); }
.top-search input { height: 40px; }
.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; }
.content { max-width: 1120px; margin: 0 auto; padding: 64px 24px; }
.browser-content { padding-top: 32px; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; overflow-x: auto; margin-bottom: 32px; color: #737373; font-size: 14px; white-space: nowrap; }
.breadcrumbs a { color: #a3a3a3; text-decoration: none; }
.breadcrumbs a:hover, .row-action:hover, .file-name:hover .name-text { color: #b895ff; }
.browser-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.browser-heading h1 { margin-bottom: 0; overflow-wrap: anywhere; }
.entry-count { color: #737373; font-size: 13px; white-space: nowrap; }
.sort-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sort-controls label { margin: 0 4px 0 0; color: #a3a3a3; }
select { min-height: 40px; padding: 0 34px 0 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; background: #161616; color: #f2f2f2; }
.compact { min-height: 40px; }
.file-panel { overflow: hidden; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: #141414; }
.file-row { display: grid; grid-template-columns: minmax(240px, 1fr) 110px 160px 80px; gap: 16px; align-items: center; min-height: 60px; padding: 8px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.file-row:last-child { border-bottom: 0; }
.file-row:not(.file-header):hover { background: #1c1c1c; }
.file-header { min-height: 44px; color: #737373; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.file-name { display: flex; align-items: center; gap: 12px; min-width: 0; color: #f2f2f2; text-decoration: none; }
.file-icon { flex: 0 0 auto; color: #9b6cff; }
.name-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: #a3a3a3; font-size: 13px; font-variant-numeric: tabular-nums; }
.row-action { color: #a98aff; font-size: 13px; text-align: right; text-decoration: none; }
.empty-state { padding: 64px 24px; text-align: center; }
.empty-state h2 { margin: 0 0 8px; font-size: 18px; }
.empty-state p { margin: 0; color: #737373; }
.notice { padding: 12px 14px; border: 1px solid rgba(243,181,69,.25); border-radius: 8px; background: rgba(243,181,69,.08); color: #e8c477; font-size: 14px; }
.search-name { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.search-name small { overflow: hidden; color: #737373; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.button-link { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border-radius: 8px; background: #9b6cff; color: white; font-weight: 650; text-decoration: none; }
.error-page { max-width: 720px; }
@media (max-width: 720px) {
  .auth-shell { padding: 16px; }
  .auth-panel { padding: 24px 20px; }
  .topbar { padding: 0 16px; }
  .brand { gap: 0; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-product { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .top-search { width: auto; flex: 1; margin: 0 12px; }
  .top-search input { min-width: 0; }
  .content { padding-left: 16px; padding-right: 16px; }
  .browser-heading { align-items: start; flex-direction: column; gap: 8px; }
  .sort-controls { align-items: stretch; flex-direction: column; }
  .sort-controls label { margin-bottom: -2px; }
  .sort-controls button { width: 100%; }
  .file-header { display: none; }
  .file-panel { border: 0; background: transparent; }
  .file-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; margin-bottom: 8px; padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; background: #141414; }
  .file-row:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
  .file-name { grid-column: 1 / -1; }
  .name-text { white-space: normal; overflow-wrap: anywhere; }
  .search-name small { white-space: normal; overflow-wrap: anywhere; }
  .file-meta::before { content: attr(data-label) ": "; color: #737373; }
  .row-action { grid-column: 2; grid-row: 2 / span 2; align-self: end; min-height: 44px; display: inline-flex; align-items: center; }
}
@media (prefers-reduced-motion: no-preference) { button, input { transition: border-color .18s, filter .18s; } }
