@font-face {
  font-family: Plex;
  src: url(/assets/plex-sans-400.woff) format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url(/assets/plex-sans-600.woff) format("woff");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light dark;
  --background: oklch(1 0 0);
  --foreground: oklch(.21 .006 20);
  --sidebar: oklch(.978 .003 20);
  --surface: oklch(.966 .003 20);
  --surface-hover: oklch(.94 .004 20);
  --muted: oklch(.50 .008 20);
  --line: oklch(.915 .004 20);
  --brand: oklch(.471 .189 20.21);
  --button-text: white;
  font: 16px/1.5 Plex, system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(.17 .004 20);
    --foreground: oklch(.94 .004 20);
    --sidebar: oklch(.195 .004 20);
    --surface: oklch(.225 .005 20);
    --surface-hover: oklch(.27 .006 20);
    --muted: oklch(.70 .008 20);
    --line: oklch(1 0 0 / 10%);
    --brand: oklch(.67 .16 20.21);
    --button-text: oklch(.17 .004 20);
  }
}
* { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
[hidden] { display: none !important; }
.header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 4rem; padding: .6rem clamp(1rem, 3vw, 2.2rem); border-bottom: 1px solid var(--line); }
.brand, .account, .actions, .breadcrumbs, .pagination { display: flex; gap: .75rem; align-items: center; }
.brand { font-weight: 600; white-space: nowrap; font-size: 1.12rem; }
.brand img { display: block; object-fit: contain; }
.viewer { color: var(--muted); max-width: 13rem; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-size: .88rem; }
.shell { display: grid; grid-template-columns: clamp(12rem, 20vw, 17rem) minmax(0, 1fr); min-height: calc(100vh - 4rem); }
.sidebar { background: var(--sidebar); padding: 2rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.section-label, .eyebrow { color: var(--muted); font-size: .875rem; font-weight: 600; }
.section-label { margin: 0 .75rem .55rem; }
.nav-link { display: block; border-radius: 4px; padding: .5rem .75rem; overflow-wrap: anywhere; }
.nav-link.active { color: var(--brand); background: var(--surface-hover); font-weight: 600; }
.nav-link:hover, .button.secondary:hover { background: var(--surface-hover); }
.content { width: 100%; max-width: 85rem; margin-inline: auto; padding: clamp(1rem, 4vw, 3.5rem); }
.breadcrumbs { flex-wrap: wrap; color: var(--muted); font-size: .875rem; min-height: 1.5rem; }
.breadcrumbs a:hover { color: var(--brand); text-decoration: underline; }
.intro { margin: 1.25rem 0 1.45rem; }
h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; overflow-wrap: anywhere; }
.eyebrow + h1, h1 + p { margin-top: .55rem; }
.intro p, .login p, .empty { color: var(--muted); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .45rem; font: inherit; min-height: 2.55rem; border: 0; border-radius: 4px; padding: .5rem .85rem; cursor: pointer; color: var(--foreground); }
.button.primary { background: var(--brand); color: var(--button-text); font-weight: 600; }
.button.secondary { background: var(--surface); }
.search { display: flex; gap: .5rem; max-width: 42rem; margin-bottom: 1.7rem; }
.search input { min-width: 0; flex: 1; padding: .55rem .8rem; font: inherit; color: inherit; background: var(--background); border: 1px solid var(--line); border-radius: 4px; }
.folders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: .65rem; }
.folders:not(:empty) { margin-bottom: 1.75rem; }
.folder, .document { display: flex; align-items: center; gap: .85rem; min-width: 0; border-radius: 4px; }
.folder { padding: .9rem; background: var(--sidebar); min-height: 4.1rem; height: 100%; }
.folder:hover, .document:hover { background: var(--surface-hover); }
.folder strong, .doc-label strong { display: block; overflow-wrap: anywhere; }
.folder div > span, .document small, .size, .extension { color: var(--muted); font-size: .875rem; }
.folder-icon, .file-icon { display: inline-block; width: 1rem; height: .8rem; border: 1.5px solid currentColor; border-radius: 2px; position: relative; flex-shrink: 0; color: var(--brand); }
.folder-icon::before { content: ""; position: absolute; top: -.29rem; left: -1.5px; height: .27rem; width: .48rem; border: 1.5px solid currentColor; border-bottom: none; border-radius: 2px 2px 0 0; }
.file-icon { width: .78rem; height: .96rem; color: var(--muted); }
h2 { font-size: 1.12rem; margin-bottom: .55rem; }
.documents { border-top: 1px solid var(--line); }
.documents li { border-bottom: 1px solid var(--line); }
.document { padding: .63rem .55rem; min-height: 3rem; }
.doc-label { flex: 1; min-width: 0; }
.extension { text-align: left; min-width: 3rem; }
.size { text-align: right; min-width: 5rem; white-space: nowrap; }
.pagination { margin-top: 1rem; color: var(--muted); }
.empty { background: var(--sidebar); padding: 1rem; border-radius: 4px; margin-top: .5rem; }
.login { max-width: 26rem; margin: min(15vh, 8rem) auto; }
.login .button { margin-top: 1.5rem; }
.notice { margin-top: 1rem; }
.actions { flex-wrap: wrap; margin-bottom: 1rem; }
.preview { background: var(--sidebar); border-radius: 4px; }
.frame { display: block; width: 100%; height: 74vh; border: 1px solid var(--line); border-radius: 4px; background: white; }
.preview-image, .preview video, .preview audio { max-width: 100%; display: block; margin: auto; }
.preview img, .preview video { max-height: 76vh; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 700px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { padding: .55rem 1rem; overflow-x: auto; flex-direction: row; align-items: center; white-space: nowrap; }
  .section-label, .viewer, .extension, .secondary-folder { display: none; }
  .nav-link { padding: .4rem .6rem; }
  .header .button { padding-inline: .5rem; }
  .size { min-width: 3.25rem; }
  .search input { padding-inline: .5rem; }
  .search button { padding-inline: .5rem; }
}
