:root {
  --ink: #09080d;
  --ink-soft: #121016;
  --paper: #0d0c11;
  --paper-deep: #15121a;
  --surface: #121016;
  --surface-raised: #19161f;
  --surface-hover: #201b29;
  --text: #f4f0ea;
  --text-soft: rgba(244,240,234,.64);
  --text-faint: rgba(244,240,234,.4);
  --coral: #ff4f58;
  --coral-bright: #ff696f;
  --violet: #6f3cff;
  --lime: #d9ff67;
  --line-dark: rgba(255,255,255,.13);
  --line-light: rgba(255,255,255,.1);
  --display: "Arial Narrow", "Avenir Next Condensed", "Helvetica Neue", sans-serif;
  --body: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; color-scheme: dark; background: var(--ink); }
body { margin: 0; min-height: 100svh; font-family: var(--body); color: var(--text); background: var(--paper); }
button, input { font: inherit; }
button { color: inherit; }
button, [tabindex] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
::selection { color: white; background: var(--coral); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { margin: 0 0 .65rem; color: var(--coral); font-size: .68rem; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }

.auth { position: relative; min-height: 100svh; overflow: hidden; display: grid; place-items: center; padding: 2rem; color: white; background: radial-gradient(circle at 78% 20%, rgba(111,60,255,.48), transparent 28%), radial-gradient(circle at 35% 82%, rgba(255,79,88,.18), transparent 32%), var(--ink); }
.auth__stars { position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(rgba(255,255,255,.9) .55px, transparent .8px); background-size: 9px 9px; mask-image: linear-gradient(140deg, black, transparent 68%); }
.auth__orbit { position: absolute; width: min(75vw, 55rem); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; transform: translate(32vw,-12vh) rotate(-18deg); box-shadow: 0 0 100px rgba(111,60,255,.12); animation: orbit-in 1.1s cubic-bezier(.2,.75,.2,1) both; }
.auth__orbit::before, .auth__orbit::after { content: ""; position: absolute; border-radius: 50%; }
.auth__orbit::before { width: 11px; height: 11px; top: 17%; left: 6%; background: var(--lime); box-shadow: 0 0 22px var(--lime); }
.auth__orbit::after { width: 6px; height: 6px; right: 8%; bottom: 22%; background: white; box-shadow: 0 0 18px white; }
.auth__content { position: relative; z-index: 1; width: min(100%, 42rem); animation: rise-in .75s .12s cubic-bezier(.2,.75,.2,1) both; }
.brand { border: 0; background: none; display: inline-flex; align-items: center; gap: .7rem; padding: 0; text-decoration: none; color: inherit; cursor: pointer; }
.brand img { border-radius: 28%; object-fit: cover; }
.brand span { font-size: 1rem; font-weight: 720; letter-spacing: -.025em; white-space: nowrap; }
.brand--auth { margin-bottom: clamp(4rem, 12vh, 8rem); }
.brand--auth span { color: white; font-size: 1.15rem; }
.auth h1 { margin: 0; font: 620 clamp(6rem, 19vw, 13rem)/.72 var(--display); letter-spacing: -.075em; text-transform: uppercase; }
.auth__lede { max-width: 34rem; margin: 2rem 0; color: rgba(255,255,255,.68); font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.55; }
.button { border: 0; border-radius: 999px; min-height: 3.2rem; padding: .85rem 1.4rem; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; cursor: pointer; font-weight: 720; transition: transform .22s ease, background .22s ease, color .22s ease; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 1.25rem; height: 1.25rem; }
.button--light { background: var(--text); color: var(--ink); }
.button--light:hover { background: var(--coral); color: white; }
.auth__trust { margin: 1.1rem 0 0; color: rgba(255,255,255,.42); font-size: .72rem; }
.auth__credit { position: absolute; right: 2rem; bottom: 1.6rem; z-index: 1; color: rgba(255,255,255,.35); font-size: .65rem; letter-spacing: .11em; text-transform: uppercase; }

.app { min-height: 100svh; background: radial-gradient(circle at 82% 12%, rgba(111,60,255,.08), transparent 30rem), var(--paper); }
.topbar { position: sticky; z-index: 20; top: 0; min-height: 4.8rem; padding: .85rem clamp(1rem, 2.5vw, 2.25rem); display: grid; grid-template-columns: auto minmax(8rem,1fr) minmax(12rem,22rem) auto; align-items: center; gap: clamp(1rem,2.2vw,2.5rem); color: white; background: rgba(9,8,13,.86); border-bottom: 1px solid var(--line-dark); box-shadow: 0 1rem 3rem rgba(0,0,0,.12); backdrop-filter: blur(24px); }
.breadcrumbs { min-width: 0; display: flex; align-items: center; gap: .5rem; overflow: hidden; color: rgba(255,255,255,.5); }
.breadcrumbs button { border: 0; padding: .35rem .15rem; color: inherit; background: none; cursor: pointer; white-space: nowrap; }
.breadcrumbs button:hover { color: white; }
.breadcrumbs i { font-style: normal; opacity: .35; }
.search { min-height: 2.55rem; display: flex; align-items: center; gap: .6rem; padding: 0 .9rem; color: rgba(255,255,255,.47); border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255,255,255,.055); }
.search:focus-within { border-color: rgba(255,79,88,.65); color: white; }
.search svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.7; }
.search input { min-width: 0; width: 100%; border: 0; outline: 0; color: white; background: none; }
.search input::placeholder { color: rgba(255,255,255,.38); }
.profile { max-width: 10rem; border: 0; padding: .2rem; display: flex; align-items: center; gap: .55rem; color: white; background: none; cursor: pointer; }
.profile img { width: 2rem; height: 2rem; border-radius: 50%; background: #27232e; object-fit: cover; }
.profile span { overflow: hidden; font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu { position: fixed; z-index: 25; top: 4.3rem; right: 1.5rem; width: 15rem; padding: .7rem; color: white; background: #17151a; border: 1px solid var(--line-dark); border-radius: 1rem; box-shadow: 0 18px 60px rgba(0,0,0,.35); }
.profile-menu p { margin: .4rem .55rem .7rem; overflow: hidden; color: rgba(255,255,255,.55); font-size: .72rem; text-overflow: ellipsis; }
.profile-menu button { width: 100%; border: 0; border-radius: .7rem; padding: .7rem; text-align: left; color: white; background: rgba(255,255,255,.06); cursor: pointer; }

.workspace { min-height: calc(100svh - 4.8rem); display: grid; grid-template-columns: minmax(13rem, 18rem) 1fr; }
.sidebar { padding: clamp(2rem,4vw,3.5rem) clamp(1.2rem,2.5vw,2.25rem); background: linear-gradient(155deg, rgba(20,17,26,.96), rgba(13,12,17,.96)); border-right: 1px solid var(--line-light); }
.sidebar__label { margin: 0 0 1rem; color: var(--text-faint); font-size: .66rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.primary-action { width: 100%; border: 0; border-radius: 1.15rem; padding: .9rem; display: flex; align-items: center; gap: .8rem; text-align: left; color: white; background: var(--coral); box-shadow: 0 12px 30px rgba(255,79,88,.13); cursor: pointer; transition: transform .22s ease, background .22s ease, box-shadow .22s ease; }
.primary-action:hover { transform: translateY(-2px); background: var(--coral-bright); box-shadow: 0 16px 36px rgba(255,79,88,.2); }
.primary-action__icon { width: 2.25rem; height: 2.25rem; border-radius: .7rem; display: grid; place-items: center; font-weight: 750; background: rgba(255,255,255,.12); }
.primary-action strong, .primary-action small { display: block; }
.primary-action strong { font-size: .88rem; }
.primary-action small { margin-top: .14rem; color: rgba(255,255,255,.68); font-size: .67rem; }
.sidebar__actions { margin-top: 1rem; display: grid; gap: .2rem; }
.sidebar__actions button { border: 0; border-radius: .75rem; padding: .72rem .5rem; display: flex; gap: .65rem; align-items: center; text-align: left; color: var(--text-soft); background: transparent; cursor: pointer; transition: color .2s ease, background .2s ease, transform .2s ease; }
.sidebar__actions button:hover { color: var(--text); background: rgba(255,255,255,.065); transform: translateX(2px); }
.sidebar__actions span { width: 1.2rem; color: var(--coral); font-weight: 800; text-align: center; }
.sidebar__rule { height: 1px; margin: 2rem 0; background: var(--line-light); }
.side-note { display: flex; gap: .65rem; align-items: flex-start; color: var(--text-faint); }
.side-note__pulse { flex: 0 0 auto; width: .55rem; height: .55rem; margin-top: .28rem; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(217,255,103,.09), 0 0 14px rgba(217,255,103,.18); }
.side-note p { margin: 0; font-size: .68rem; line-height: 1.5; }
.side-note strong { color: var(--text-soft); }

.content { min-width: 0; padding: clamp(2rem,5vw,4.75rem); }
.content__heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.content h2 { margin: 0; font: 620 clamp(3.2rem,7vw,7rem)/.8 var(--display); letter-spacing: -.065em; }
.content__count { margin: 0 0 .25rem; color: var(--text-faint); font-size: .75rem; }
.drop-zone { margin: clamp(2rem,4vw,3.4rem) 0; min-height: 6.75rem; padding: 1rem 1.2rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; border: 1px dashed rgba(255,255,255,.2); border-radius: 1.25rem; background: rgba(255,255,255,.025); cursor: pointer; transition: border-color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease; }
.drop-zone:hover, .drop-zone.is-over { border-color: var(--coral); background: rgba(255,79,88,.06); box-shadow: inset 0 0 0 1px rgba(255,79,88,.08); transform: translateY(-2px); }
.drop-zone__mark { position: relative; width: 3.2rem; height: 3.2rem; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.025); }
.drop-zone__mark span { width: 1px; height: 1.3rem; background: var(--text); }
.drop-zone__mark i { position: absolute; width: .55rem; height: .55rem; border-right: 1px solid var(--text); border-bottom: 1px solid var(--text); transform: translateY(.2rem) rotate(45deg); }
.drop-zone strong, .drop-zone span { display: block; }
.drop-zone strong { font-size: .9rem; }
.drop-zone > div > span { margin-top: .25rem; color: var(--text-faint); font-size: .72rem; }
.drop-zone button { border: 1px solid var(--line-light); border-radius: 999px; padding: .6rem .95rem; color: var(--text); background: rgba(255,255,255,.055); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.drop-zone button:hover { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.1); }
.list-heading, .entry { display: grid; grid-template-columns: minmax(12rem,1fr) minmax(8rem,.35fr) minmax(7rem,.3fr) 3rem; align-items: center; gap: 1rem; }
.list-heading { padding: 0 1rem .65rem; color: var(--text-faint); font-size: .63rem; font-weight: 720; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--line-light); }
.entry { position: relative; min-height: 4.6rem; padding: .65rem 1rem; border-bottom: 1px solid var(--line-light); animation: row-in .38s cubic-bezier(.2,.75,.2,1) both; }
.entry:hover { background: rgba(255,255,255,.035); }
.entry__name { min-width: 0; border: 0; padding: 0; display: flex; align-items: center; gap: .8rem; text-align: left; background: none; cursor: pointer; }
.entry__icon { flex: 0 0 auto; width: 2.35rem; height: 2.35rem; border: 1px solid rgba(255,255,255,.1); border-radius: .75rem; display: grid; place-items: center; color: var(--text); background: var(--surface-raised); }
.entry__icon--folder { color: var(--ink); background: var(--lime); }
.entry__icon--text { background: var(--coral); }
.entry__icon svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.entry__name strong { overflow: hidden; display: block; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.entry__meta { color: var(--text-faint); font-size: .7rem; }
.entry__menu { width: 2.2rem; height: 2.2rem; border: 0; border-radius: 50%; color: var(--text-faint); background: transparent; cursor: pointer; }
.entry__menu:hover { color: white; background: var(--surface-hover); }
.entry-actions { position: absolute; z-index: 5; right: 1rem; top: 3.65rem; min-width: 9rem; padding: .38rem; border: 1px solid var(--line-dark); border-radius: .85rem; color: white; background: #17151a; box-shadow: 0 16px 40px rgba(0,0,0,.28); }
.entry-actions button { width: 100%; border: 0; border-radius: .55rem; padding: .58rem .7rem; display: block; color: white; text-align: left; background: none; cursor: pointer; }
.entry-actions button:hover { background: rgba(255,255,255,.08); }
.entry-actions button.danger { color: #ff8a91; }
.empty { padding: clamp(3rem,8vw,7rem) 1rem; text-align: center; color: var(--text-faint); }
.empty__glyph { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border: 1px solid var(--line-light); border-radius: 50%; display: grid; place-items: center; color: var(--coral); background: rgba(255,255,255,.025); font-size: 1.4rem; }
.empty h3 { margin: 0; color: var(--text); font: 620 2rem var(--display); letter-spacing: -.04em; }
.empty p { margin: .45rem 0 0; font-size: .78rem; }

.drop-curtain { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; color: white; background: rgba(9,8,13,.88); backdrop-filter: blur(18px); }
.drop-curtain > div { width: min(82vw, 42rem); aspect-ratio: 1.8; border: 1px dashed rgba(255,255,255,.35); border-radius: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(111,60,255,.3), transparent 58%); }
.drop-curtain span { font-size: 3rem; color: var(--lime); animation: drop-bob 1s ease-in-out infinite; }
.drop-curtain strong { margin-top: .7rem; font: 620 clamp(1.8rem,4vw,3.5rem) var(--display); letter-spacing: -.045em; }
.drop-curtain small { margin-top: .35rem; color: rgba(255,255,255,.55); }
.transfer-tray { position: fixed; z-index: 40; right: 1rem; bottom: 1rem; width: min(24rem, calc(100vw - 2rem)); max-height: 45vh; overflow: auto; padding: .55rem; color: white; background: rgba(18,16,22,.94); border: 1px solid var(--line-dark); border-radius: 1.1rem; box-shadow: 0 24px 80px rgba(0,0,0,.35); backdrop-filter: blur(22px); }
.transfer { padding: .72rem; }
.transfer + .transfer { border-top: 1px solid var(--line-dark); }
.transfer__line { display: flex; justify-content: space-between; gap: 1rem; font-size: .72rem; }
.transfer__line strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.transfer__line span { color: rgba(255,255,255,.5); }
.transfer__bar { height: 2px; margin-top: .65rem; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.12); }
.transfer__bar i { display: block; height: 100%; background: var(--coral); transition: width .2s ease; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 1.25rem; padding: .75rem 1rem; color: white; background: var(--ink); border: 1px solid var(--line-dark); border-radius: 999px; transform: translateX(-50%); box-shadow: 0 12px 40px rgba(0,0,0,.3); font-size: .76rem; animation: toast-in .25s ease both; }

.dialog { width: min(92vw, 30rem); border: 1px solid rgba(255,255,255,.15); border-radius: 1.4rem; padding: 0; color: white; background: #131117; box-shadow: 0 35px 120px rgba(0,0,0,.48); }
.dialog::backdrop { background: rgba(9,8,13,.74); backdrop-filter: blur(8px); }
.dialog form, .dialog > div { padding: 1.6rem; }
.dialog h2 { margin: 0 0 1.5rem; font: 620 2.6rem/.95 var(--display); letter-spacing: -.05em; }
.dialog label span { display: block; margin-bottom: .45rem; color: rgba(255,255,255,.5); font-size: .68rem; }
.dialog input { width: 100%; border: 1px solid var(--line-dark); border-radius: .8rem; padding: .85rem; color: white; background: rgba(255,255,255,.06); }
.dialog__actions { margin-top: 1.5rem; display: flex; justify-content: flex-end; gap: .6rem; }
.dialog__actions button { border: 0; border-radius: 999px; padding: .75rem 1rem; color: rgba(255,255,255,.72); background: rgba(255,255,255,.07); cursor: pointer; }
.dialog__actions .button--coral { color: white; background: var(--coral); }
.dialog__actions .button--danger { color: white; background: #a92f37; }
.dialog--text { width: min(92vw, 44rem); }
.dialog pre { max-height: 52vh; overflow: auto; margin: 0; padding: 1rem; color: rgba(255,255,255,.78); background: #09080d; border-radius: .8rem; white-space: pre-wrap; overflow-wrap: anywhere; font: .82rem/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

@keyframes rise-in { from { opacity: 0; transform: translateY(25px); } to { opacity: 1; transform: none; } }
@keyframes orbit-in { from { opacity: 0; transform: translate(42vw,-22vh) scale(.75) rotate(-28deg); } to { opacity: 1; } }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%,8px); } }
@keyframes drop-bob { 50% { transform: translateY(7px); } }

@media (max-width: 840px) {
  .topbar { grid-template-columns: auto 1fr auto; gap: .8rem; }
  .topbar .breadcrumbs { display: none; }
  .search { min-width: 0; }
  .profile { max-width: none; }
  .profile span { display: none; }
  .workspace { display: block; }
  .sidebar { position: sticky; z-index: 10; top: 4.8rem; padding: .65rem 1rem; display: flex; gap: .45rem; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line-light); }
  .sidebar__label, .sidebar__rule, .side-note, .primary-action small { display: none; }
  .primary-action { width: auto; min-width: max-content; border-radius: 999px; padding: .42rem .75rem .42rem .42rem; }
  .primary-action__icon { width: 2rem; height: 2rem; border-radius: 50%; }
  .sidebar__actions { margin: 0; display: flex; gap: .25rem; }
  .sidebar__actions button { min-width: max-content; border: 1px solid var(--line-light); border-radius: 999px; padding: .63rem .8rem; background: rgba(255,255,255,.045); }
  .content { padding: 2rem 1rem 7rem; }
  .list-heading { display: none; }
  .entry { grid-template-columns: minmax(0,1fr) auto 2.5rem; gap: .5rem; padding: .65rem .2rem; }
  .entry__meta--type { display: none; }
  .entry__meta--date { text-align: right; font-size: .62rem; }
  .entry-actions { right: .2rem; }
}

@media (max-width: 560px) {
  .topbar { min-height: 4.35rem; grid-template-columns: auto 1fr auto; padding: .7rem 1rem; }
  .brand span { display: none; }
  .search { min-height: 2.35rem; }
  .workspace { min-height: calc(100svh - 4.35rem); }
  .sidebar { top: 4.35rem; }
  .content h2 { font-size: 3.5rem; }
  .drop-zone { grid-template-columns: auto 1fr; min-height: 5.4rem; padding: .8rem; }
  .drop-zone__mark { width: 2.7rem; height: 2.7rem; }
  .drop-zone button { display: none; }
  .entry__meta--date { display: none; }
  .entry { grid-template-columns: minmax(0,1fr) 2.5rem; }
  .auth { padding: 1.3rem; }
  .auth__credit { right: 1.3rem; bottom: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
