:root {
  color-scheme: light;
  --paper: #f8f7ef;
  --ink: #28312d;
  --muted: #676e67;
  --red: #ca0c29;
  --line: #d7dbce;
  --wash: #eceee1;
  --font-ui: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.45 var(--font-ui);
}
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .16em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: .125rem solid var(--red); outline-offset: .1875rem; }
[hidden] { display: none !important; }
#page { width: 85.5%; max-width: 90rem; margin: 0 auto; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.5625rem; padding: 1.625rem 0 1.375rem; border-bottom: .0625rem solid var(--line); }
.site-name {
  --brand-accent: #b83f2c;
  display: flex; flex-wrap: wrap; flex-shrink: 0; align-items: center; gap: 0; max-width: 100%;
}
.site-name:hover { text-decoration: none; }
.site-name:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 5px; }
.brand-logo { display: block; width: 14rem; height: 2.5rem; max-width: 100%; object-fit: cover; object-position: center; }
.portal-link { display: flex; align-items: center; gap: 1rem; color: var(--ink); font-size: 1rem; font-weight: 600; }
.ui-icon { width: 1rem; height: 1rem; object-fit: contain; flex: 0 0 auto; }
.portal-link .ui-icon { width: 1.375rem; height: 1.375rem; }
.portal-link .ui-icon, th[aria-sort='ascending'] .ui-icon, th[aria-sort='descending'] .ui-icon { filter: invert(17%) sepia(77%) saturate(4030%) hue-rotate(335deg) brightness(84%) contrast(101%); }
.listing-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 32rem); align-items: center; gap: 2rem; padding: .875rem 0 .75rem; }
.heading-path { min-width: 0; flex: 1; }
.breadcrumbs { max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: .1875rem 0; font: .9375rem/1.4 'Courier New', Courier, monospace; white-space: nowrap; scrollbar-width: thin; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; gap: .5rem; width: max-content; min-width: 100%; }
.breadcrumbs li { display: flex; align-items: center; gap: .5rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; text-underline-offset: .18em; }
.path-separator { width: .75rem; height: .75rem; opacity: .55; }
.current-path { color: var(--ink); }
.search { min-width: 0; font-size: 1rem; }
.search-field { position: relative; }
.search-field .ui-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); opacity: .6; pointer-events: none; }
.search input { width: 100%; min-height: 2.75rem; padding: .5rem .8125rem .5rem 3.25rem; color: var(--ink); background: #fdfcf9; border: .0625rem solid #bfc4b8; border-radius: .1875rem; }
.search input::placeholder { color: #676e67; opacity: 1; }
.search input:focus { outline: .125rem solid var(--red); outline-offset: .125rem; }
.table-wrap { width: 100%; overflow-x: auto; font-size: .9375rem; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; line-height: 1.3; }
col.name { width: 60%; }
col.size { width: 16%; }
col.modified { width: 24%; }
thead { background: var(--wash); }
th { text-align: left; font-weight: 500; padding: .375rem .75rem; height: 2.25rem; }
th button { display: inline-flex; align-items: center; gap: .625rem; max-width: 100%; overflow-wrap: anywhere; color: var(--ink); border: 0; background: transparent; padding: .125rem 0; text-align: left; }
th .ui-icon { width: .75rem; height: .75rem; opacity: .5; }
th[aria-sort='ascending'] .ui-icon, th[aria-sort='descending'] .ui-icon { opacity: 1; }
th button:hover { color: var(--red); }
td { border-bottom: .0625rem solid var(--line); padding: .3rem .75rem; vertical-align: top; }
tbody tr:hover { background: #f0f1e7; }
.entry-link { display: flex; align-items: baseline; gap: .625rem; width: fit-content; max-width: 100%; overflow-wrap: anywhere; }
.entry-link img { width: 1.125rem; height: 1.125rem; align-self: center; object-fit: contain; flex-shrink: 0; image-rendering: auto; }
.entry-name { min-width: 0; }
.size, .modified { font-variant-numeric: tabular-nums; white-space: nowrap; }
.search-mode col.name { width: 38%; }
.search-mode col.path { width: 30%; }
.search-mode col.size { width: 12%; }
.search-mode col.modified { width: 20%; }
.entry-path { font-size: .9375rem; overflow-wrap: anywhere; color: var(--muted); }
.parent-row a { color: var(--muted); }
.status { color: var(--muted); margin: .75rem 0 0; font-size: 1rem; }
.status:empty { margin: 0; }
.status button { border: 0; color: var(--red); background: none; padding: 0; margin-left: .75rem; text-decoration: underline; }
.fallback { overflow: auto; }
.fallback pre { font: .875rem/1.8 'Courier New', monospace; white-space: pre; }
footer { margin-top: 2.8125rem; padding: 1.1875rem 0 2.125rem; border-top: .0625rem solid var(--line); font-size: 1rem; color: var(--muted); }
.sr-only { position: absolute; width: .0625rem; height: .0625rem; padding: 0; margin: -.0625rem; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 64rem) {
  #page { width: calc(100% - 3rem); }
  .listing-heading { grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem); gap: 1.5rem; }
  col.name { width: 54%; } col.size { width: 14%; } col.modified { width: 32%; }
  th, td { padding-left: .625rem; padding-right: .625rem; }
  .search-mode col.name { width: 32%; } .search-mode col.path { width: 27%; } .search-mode col.size { width: 10%; } .search-mode col.modified { width: 31%; }
}
@media (max-width: 44rem) {
  body { font-size: 1rem; }
  #page { width: calc(100% - 2rem); }
  .site-header { min-height: 0; padding: 1.125rem 0; }
  .portal-link { font-size: .875rem; gap: .4375rem; }
  .portal-link .ui-icon { width: 1rem; height: 1rem; }
  .listing-heading { display: block; padding: .625rem 0 .625rem; }
  .breadcrumbs { font-size: .9375rem; }
  .search { margin-top: .5rem; }
  .search input { min-height: 2.75rem; }
  table { min-width: 20rem; font-size: .875rem; line-height: 1.25; }
  col.name { width: 58%; } col.size { width: 15%; } col.modified { width: 27%; }
  th, td { padding: .5rem .25rem; }
  th button { gap: .25rem; }
  th.size .ui-icon, th.modified .ui-icon { display: none; }
  .entry-link { gap: .375rem; }
  .entry-link img { width: 1rem; height: 1rem; }
  .modified, .size { white-space: normal; overflow-wrap: anywhere; }
  td.size { white-space: nowrap; }
  td.size, td.modified { font-size: .8125rem; }
  .search-mode col.name { width: 58%; } .search-mode col.size { width: 15%; } .search-mode col.modified { width: 27%; }
  .search-mode col.path, .search-mode th.path, .search-mode td.path { display: none; }
  .mobile-path { display: block; margin-top: .3125rem; font-size: .875rem; color: var(--muted); }
  footer { margin-top: 1.75rem; padding-bottom: 2rem; }
}
@media (min-width: 44.001rem) { .mobile-path { display: none; } }
@media (max-width: 740px) {
  .brand-logo { width: 11.5rem; height: 2.0625rem; }
}
