:root {
  color-scheme: dark;
  --ink: #eef2ff;
  --muted: #9da8c4;
  --faint: #64708d;
  --line: rgba(255, 255, 255, .14);
  --glass: rgba(22, 30, 59, .58);
  --accent: #77f0cc;
  --accent-2: #9f9dff;
  --danger: #ff9c9c;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: #080d1b; color: var(--ink); font-family: "Space Grotesk", system-ui, sans-serif; }
body::before, body::after { content: ""; position: fixed; z-index: -2; pointer-events: none; }
body::before { inset: 0; background: radial-gradient(circle at 12% 8%, rgba(119,240,204,.13), transparent 34%), radial-gradient(circle at 84% 68%, rgba(159,157,255,.17), transparent 42%), linear-gradient(135deg, #080d1b 0%, #10172f 55%, #0b1020 100%); }
body::after { inset: 0; z-index: -1; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, black, transparent 80%); }

.shell { width: min(1160px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; padding: 28px 0 30px; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -.04em; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid rgba(119,240,204,.58); color: var(--accent); background: rgba(119,240,204,.1); border-radius: 8px; }
.brand-mark svg { width: 16px; height: 16px; }
.server-state, .panel-kicker, .drop-meta, footer { font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: .12em; }
.server-state { display: flex; gap: 9px; align-items: center; color: var(--muted); }
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(119,240,204,.9); }
.state-divider { width: 1px; height: 14px; background: var(--line); }
.intro { max-width: 680px; padding: 76px 0 56px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--accent); font-family: "DM Mono", monospace; font-size: 11px; letter-spacing: .16em; }
.eyebrow-line { width: 42px; height: 1px; background: var(--accent); opacity: .55; }
h1 { margin: 0; font-size: clamp(46px, 7vw, 84px); line-height: .95; letter-spacing: -.075em; font-weight: 600; }
h1 em { color: var(--accent-2); font-style: normal; }
.lede { max-width: 490px; margin: 24px 0 0; color: var(--muted); line-height: 1.65; font-size: 16px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 20px; align-items: stretch; }
.dropzone, .recent-panel { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--glass); box-shadow: 0 24px 70px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.08); backdrop-filter: blur(22px); }
.dropzone { min-height: 420px; padding: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 10px; transition: border-color .2s, background .2s, transform .2s; }
.dropzone.is-dragging { border-color: var(--accent); background: rgba(42, 61, 87, .72); transform: translateY(-2px); }
.dropzone-glow { position: absolute; top: -100px; left: 50%; width: 380px; height: 260px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(119,240,204,.14), transparent 68%); pointer-events: none; }
.upload-icon { width: 65px; height: 65px; display: grid; place-items: center; color: var(--accent); border: 1px solid rgba(119,240,204,.35); background: rgba(119,240,204,.08); border-radius: 50%; margin-bottom: 24px; }
.upload-icon svg { width: 28px; height: 28px; stroke-width: 1.5; }
.drop-title { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.04em; }
.drop-subtitle { margin: 10px 0 23px; color: var(--muted); font-size: 14px; }
.browse-button { border: 0; padding: 0; color: var(--accent); background: transparent; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.drop-meta { margin: 0; color: var(--faint); }
.drop-meta span { margin: 0 8px; color: var(--accent-2); }
.selected-file { width: min(100%, 420px); display: flex; align-items: center; gap: 11px; margin-top: 24px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); border-radius: 7px; text-align: left; }
.file-symbol { width: 29px; height: 29px; display: grid; place-items: center; color: var(--accent-2); background: rgba(159,157,255,.12); border-radius: 5px; }
.file-symbol svg { width: 15px; }
.selected-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.selected-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.selected-copy span { color: var(--muted); font: 10px "DM Mono", monospace; }
.icon-button { display: grid; place-items: center; padding: 5px; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.icon-button:hover { color: var(--ink); }
.icon-button svg { width: 16px; }
.upload-button { min-width: 164px; margin-top: 26px; padding: 12px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--accent); border-radius: 6px; color: #07151a; background: var(--accent); font: 600 13px "Space Grotesk", sans-serif; cursor: pointer; box-shadow: 0 0 24px rgba(119,240,204,.16); transition: transform .2s, box-shadow .2s, opacity .2s; }
.upload-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(119,240,204,.25); }
.upload-button:disabled { cursor: wait; opacity: .6; }
.upload-button svg { width: 16px; }
.progress-wrap { width: min(100%, 420px); margin-top: 24px; }
.progress-head { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); font: 10px "DM Mono", monospace; }
.progress-track { height: 5px; overflow: hidden; background: rgba(255,255,255,.1); border-radius: 99px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--accent); border-radius: inherit; transition: width .15s ease; }
.status { min-height: 18px; margin: 16px 0 -3px; color: var(--accent); font-size: 12px; }
.status.error { color: var(--danger); }
.recent-panel { display: flex; flex-direction: column; min-height: 420px; border-radius: 10px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; padding: 28px 27px 20px; border-bottom: 1px solid var(--line); }
.panel-kicker { margin: 0 0 9px; color: var(--accent); }
h2 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.file-count { min-width: 28px; height: 28px; display: grid; place-items: center; color: var(--accent); border: 1px solid rgba(119,240,204,.3); border-radius: 6px; font: 12px "DM Mono", monospace; }
.file-list { flex: 1; padding: 11px 15px; overflow: auto; }
.empty-state { height: 100%; min-height: 235px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--faint); text-align: center; }
.empty-state svg { width: 24px; margin-bottom: 12px; opacity: .75; }
.empty-state p { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.empty-state span { font-size: 12px; }
.file-row { display: flex; align-items: center; gap: 11px; padding: 13px 11px; border-bottom: 1px solid rgba(255,255,255,.08); }
.file-row:last-child { border-bottom: 0; }
.row-icon { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: var(--accent-2); background: rgba(159,157,255,.1); border-radius: 5px; }
.row-icon svg { width: 15px; }
.row-copy { min-width: 0; flex: 1; }
.row-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.row-copy span { display: block; margin-top: 4px; color: var(--faint); font: 10px "DM Mono", monospace; }
.download-button { display: grid; place-items: center; padding: 6px; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.download-button:hover { color: var(--accent); }
.download-button svg { width: 16px; }
.panel-foot { display: flex; align-items: center; gap: 8px; padding: 18px 27px; color: var(--faint); border-top: 1px solid var(--line); font-size: 11px; }
.panel-foot svg { width: 15px; color: var(--accent); }
footer { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 48px; color: var(--faint); }
.footer-rule { height: 1px; width: 40px; background: var(--line); }

@media (max-width: 800px) {
  .shell { width: min(100% - 30px, 600px); padding-top: 20px; }
  .server-state { font-size: 9px; }
  .intro { padding: 58px 0 40px; }
  .workspace { grid-template-columns: 1fr; }
  .dropzone, .recent-panel { min-height: 390px; }
  footer { padding-top: 34px; }
}
@media (max-width: 460px) {
  .shell { width: calc(100% - 24px); }
  .topbar { padding-bottom: 17px; }
  .server-state span:nth-last-child(-n+2) { display: none; }
  .intro { padding: 47px 0 34px; }
  h1 { font-size: 52px; }
  .lede { font-size: 14px; }
  .dropzone { min-height: 370px; padding: 30px 18px; }
  .panel-heading { padding: 23px 20px 17px; }
  .panel-foot { padding: 16px 20px; }
  footer { font-size: 8px; }
}
