:root {
  color-scheme: dark;
  --bg: #070b14;
  --surface: rgba(15, 22, 38, .74);
  --surface-solid: #101728;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .15);
  --text: #f6f7fb;
  --muted: #98a3b8;
  --accent: #72e6bd;
  --accent-2: #8da6ff;
  --focus: #ffdb7d;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 300px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(58, 91, 133, .18), transparent 35rem),
    linear-gradient(160deg, #080d18 0%, var(--bg) 48%, #090d17 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
svg { display: block; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; border-radius: 10px; background: var(--focus); color: #10131c; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(1px); opacity: .75; pointer-events: none; }
.ambient--one { top: 16%; right: -10rem; width: 28rem; height: 28rem; background: radial-gradient(circle, rgba(90, 225, 182, .1), transparent 68%); }
.ambient--two { bottom: 5%; left: -13rem; width: 34rem; height: 34rem; background: radial-gradient(circle, rgba(105, 128, 255, .1), transparent 70%); }

.topbar { width: min(1440px, calc(100% - 48px)); margin: 0 auto; min-height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(114, 230, 189, .24); border-radius: 13px; background: rgba(114, 230, 189, .08); }
.brand__mark svg { width: 22px; fill: var(--accent); }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; }
.brand small { color: var(--muted); font-size: .72rem; }
.site-link { padding: 10px 0; color: #bec7d7; font-size: .84rem; text-decoration: none; }
.site-link:hover { color: var(--accent); }

.shell { width: min(1340px, calc(100% - 48px)); margin: 0 auto; padding: clamp(54px, 8vw, 110px) 0 52px; }
.intro { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-bottom: 45px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { width: 22px; height: 1px; background: currentColor; }
h1 { max-width: 840px; margin: 0; font-size: clamp(2.8rem, 7vw, 6.8rem); font-weight: 560; letter-spacing: -.065em; line-height: .92; }
h1 em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.intro__copy { max-width: 600px; margin: 24px 0 0; color: var(--muted); font-size: clamp(.95rem, 1.5vw, 1.1rem); line-height: 1.7; }
.stat { display: grid; min-width: 180px; padding: 20px 0 9px 28px; border-left: 1px solid var(--line-strong); }
.stat strong { font-size: 3.4rem; font-weight: 500; letter-spacing: -.06em; line-height: 1; }
.stat span { margin-top: 8px; color: var(--muted); font-size: .77rem; }

.breadcrumbs { display: flex; align-items: center; gap: 10px; min-height: 24px; margin: 0 4px 14px; overflow-x: auto; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.breadcrumbs a { color: #c9d0dd; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.crumb-separator { color: #536076; }

.explorer { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.toolbar { display: flex; gap: 14px; padding: 17px; border-bottom: 1px solid var(--line); }
.search { position: relative; display: flex; align-items: center; flex: 1; min-width: 220px; }
.search svg { position: absolute; left: 15px; width: 18px; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-width: 1.8; pointer-events: none; }
.search input { width: 100%; height: 46px; padding: 0 48px 0 44px; border: 1px solid var(--line); border-radius: 13px; background: rgba(5, 9, 18, .58); color: var(--text); outline: none; transition: border-color .2s, background .2s; }
.search input::placeholder { color: #738097; }
.search input:focus { border-color: rgba(114, 230, 189, .48); background: rgba(5, 9, 18, .86); }
.search:focus-within input { outline: 2px solid transparent; }
kbd { position: absolute; right: 13px; min-width: 24px; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 6px; color: #7e899d; font: .72rem/1.2 inherit; text-align: center; }
.toolbar__actions { display: flex; align-items: center; gap: 10px; }
.sort-wrap select { height: 46px; padding: 0 38px 0 14px; border: 1px solid var(--line); border-radius: 13px; background: #111827; color: #dce1eb; font-size: .8rem; }
.view-toggle { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: rgba(5, 9, 18, .45); }
.view-toggle button, .refresh { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--muted); }
.view-toggle button[aria-pressed="true"] { background: rgba(255, 255, 255, .09); color: var(--text); }
.view-toggle svg, .refresh svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.view-toggle button:first-child svg { fill: currentColor; stroke: none; }
.refresh { width: 46px; height: 46px; border: 1px solid var(--line); }
.refresh:hover { color: var(--accent); }
.refresh.is-spinning svg { animation: spin .8s linear infinite; }

.items { min-height: 280px; padding: 18px; }
.items--grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.file-card { position: relative; min-width: 0; border: 1px solid var(--line); background: rgba(255, 255, 255, .026); transition: transform .2s ease, border-color .2s, background .2s; }
.items--grid .file-card { display: flex; flex-direction: column; min-height: 228px; padding: 20px; border-radius: 17px; }
.file-card:hover { z-index: 1; border-color: rgba(114, 230, 189, .25); background: rgba(255, 255, 255, .045); transform: translateY(-2px); }
.file-card__icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 23px; border-radius: 15px; background: rgba(114, 230, 189, .075); }
.file-card__icon svg { width: 35px; fill: none; stroke: #98a7c0; stroke-linejoin: round; stroke-width: 1.4; }
.file-card--folder .file-card__icon { background: rgba(114, 230, 189, .09); }
.file-card--folder .icon-back { fill: rgba(114, 230, 189, .35); stroke: var(--accent); }
.file-card--folder .icon-front { fill: rgba(114, 230, 189, .16); stroke: var(--accent); }
.file-card__body { min-width: 0; }
.file-card h2 { margin: 0; overflow: hidden; color: #edf0f6; font-size: .96rem; font-weight: 570; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.file-card__body p { display: flex; gap: 6px; margin: 8px 0 0; overflow: hidden; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.meta-dot { color: #4c5870; }
.file-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: auto; padding-top: 18px; }
.action { padding: 6px 0; border: 0; background: none; color: var(--muted); font-size: .7rem; text-decoration: none; }
.action:hover { color: var(--accent); }
.action--open { margin-left: auto; }
.action--explore { color: #c8cfdb; }

.list-head { display: grid; grid-template-columns: minmax(220px, 1fr) 150px 160px 150px; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line); color: #6f7c91; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.list-head[hidden] { display: none; }
.items--list { display: grid; gap: 0; padding: 0 10px 12px; }
.items--list .file-card { display: grid; grid-template-columns: 44px minmax(160px, 1fr) 150px 160px 150px; align-items: center; gap: 12px; min-height: 68px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.items--list .file-card:hover { transform: none; background: rgba(255, 255, 255, .035); }
.items--list .file-card__icon { grid-column: 1; width: 38px; height: 38px; margin: 0; border-radius: 11px; }
.items--list .file-card__icon svg { width: 25px; }
.items--list .file-card__body { display: contents; }
.items--list h2 { grid-column: 2; }
.items--list .file-card__body p { display: contents; }
.items--list .file-card__body p span:first-child { grid-column: 3; color: var(--muted); font-size: .73rem; }
.items--list time { grid-column: 4; color: var(--muted); font-size: .73rem; }
.items--list .meta-dot { display: none; }
.items--list .file-card__actions { grid-column: 5; justify-content: flex-end; margin: 0; padding: 0; }

.empty, .error-state { min-height: 320px; padding: 70px 24px; text-align: center; }
.empty[hidden], .error-state[hidden] { display: none; }
.empty__icon, .error-state > span { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.035); color: var(--accent); font-size: 1.7rem; }
.empty h2, .error-state h2 { margin: 0 0 8px; font-size: 1.05rem; }
.empty p, .error-state p { margin: 0; color: var(--muted); font-size: .83rem; }
.empty button, .error-state button { margin-top: 22px; padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(255,255,255,.05); color: var(--text); }
.error-state { display: flex; align-items: center; justify-content: center; gap: 18px; text-align: left; }
.error-state > span { flex: 0 0 auto; margin: 0; color: #ffb4a8; }
.error-state button { margin: 0 0 0 10px; }

.statusline { display: flex; align-items: center; gap: 9px; margin: 15px 5px 0; color: #718097; font-size: .7rem; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(114, 230, 189, .08); }
footer { width: min(1340px, calc(100% - 48px)); margin: 0 auto; padding: 25px 0 42px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: #68758b; font-size: .68rem; }
footer p { margin: 0; }
footer a { color: #8996aa; text-decoration: none; }

.skeleton { pointer-events: none; }
.skeleton > * { border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.085), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton i { width: 54px; height: 54px; }
.skeleton b { width: 76%; height: 13px; margin-top: 24px; }
.skeleton span { width: 48%; height: 9px; margin-top: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .items--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .intro { grid-template-columns: 1fr; }
  .stat { display: flex; align-items: baseline; gap: 10px; padding: 0; border: 0; }
  .stat strong { font-size: 2rem; }
  .toolbar { flex-direction: column; }
  .toolbar__actions { justify-content: space-between; }
  .sort-wrap { flex: 1; }
  .sort-wrap select { width: 100%; }
  .items--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .list-head { display: none; }
  .items--list .file-card { grid-template-columns: 44px minmax(120px, 1fr) 120px; }
  .items--list .file-card__body p span:first-child, .items--list time { display: none; }
  .items--list .file-card__actions { grid-column: 3; }
}
@media (max-width: 560px) {
  .topbar, .shell, footer { width: min(100% - 28px, 1340px); }
  .topbar { min-height: 78px; }
  .site-link { width: 42px; overflow: hidden; white-space: nowrap; }
  .site-link span { display: block; font-size: 1.2rem; }
  .shell { padding-top: 50px; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.4rem); }
  .intro { margin-bottom: 36px; }
  .explorer { border-radius: 17px; }
  .toolbar { padding: 12px; }
  .search { min-width: 0; }
  .view-toggle { display: none; }
  .items--grid { grid-template-columns: 1fr; padding: 12px; }
  .items--grid .file-card { min-height: 176px; }
  .file-card__icon { margin-bottom: 18px; }
  .items--list { padding-inline: 6px; }
  .items--list .file-card { grid-template-columns: 42px minmax(100px, 1fr); gap: 8px; }
  .items--list .file-card__actions { grid-column: 1 / -1; justify-content: flex-end; padding: 0 2px 5px; }
  .error-state { flex-direction: column; text-align: center; }
  .error-state button { margin: 4px 0 0; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
