:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --panel: #11151c;
  --panel-raised: #151a22;
  --border: #252c37;
  --border-bright: #343e4c;
  --text: #f3f5f7;
  --muted: #8f99a7;
  --accent: #c9ff5a;
  --accent-soft: rgba(201, 255, 90, .1);
  --danger: #ff7474;
  --shadow: 0 26px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -15%, rgba(112, 143, 78, .19), transparent 34rem),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.shell {
  width: min(100% - 40px, 1060px);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 710;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-bright);
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #151a21;
  box-shadow: inset 0 1px rgba(255,255,255,.05);
}

.brand-mark svg { width: 20px; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.account { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); }
.status-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--accent-soft); }
.account-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-button { border: 0; color: var(--muted); background: transparent; cursor: pointer; padding: 6px 0 6px 8px; }
.text-button:hover { color: var(--text); }

main { flex: 1; }
.login-view { max-width: 780px; margin: 0 auto; padding: 136px 0 110px; text-align: center; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 760; letter-spacing: .18em; }
.login-view h1 { margin: 24px 0 22px; font-size: clamp(44px, 6.6vw, 74px); line-height: 1.04; letter-spacing: -.058em; font-weight: 690; }
.login-view h1 span { color: #929aa4; }
.login-view > p { max-width: 610px; margin: 0 auto; color: var(--muted); font-size: 16px; line-height: 1.8; }

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 50px;
  padding: 0 21px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: #11150a;
  background: var(--accent);
  text-decoration: none;
  font-weight: 720;
  font-size: 14px;
  box-shadow: 0 10px 32px rgba(201,255,90,.1);
  transition: transform .18s ease, box-shadow .18s ease;
}
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 14px 38px rgba(201,255,90,.17); }
.primary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.login-button { margin-top: 38px; }
.trust-row { margin-top: 32px; display: flex; justify-content: center; gap: 26px; color: #707a87; font-size: 12px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.app-view { padding: 66px 0 82px; }
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.intro h1 { margin: 12px 0 8px; font-size: clamp(34px, 5vw, 48px); letter-spacing: -.045em; line-height: 1.08; }
.intro p { margin: 0; color: var(--muted); font-size: 14px; }
.retention-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; background: rgba(16,20,27,.8); color: #aab2bd; font-size: 12px; white-space: nowrap; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.dropzone {
  min-height: 270px;
  border: 1px dashed #3b4653;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(21,26,34,.92), rgba(15,19,25,.92));
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.025);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragging { border-color: #788b57; background: linear-gradient(180deg, rgba(27,34,40,.96), rgba(17,22,27,.96)); }
.dropzone.dragging { transform: scale(1.004); }
.upload-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 17px; }
.upload-icon svg { width: 29px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.dropzone strong { font-size: 17px; letter-spacing: -.01em; }
.dropzone > span { margin-top: 8px; color: var(--muted); font-size: 12px; }
.secondary-button { margin-top: 21px; min-height: 38px; padding: 0 16px; border: 1px solid var(--border-bright); border-radius: 8px; color: #dce1e7; background: #1b212a; cursor: pointer; font-size: 12px; font-weight: 650; }
.secondary-button:hover { border-color: #536070; background: #202731; }

.upload-panel { margin-top: 14px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.upload-panel-head { display: flex; justify-content: space-between; color: #cbd1d8; font-size: 12px; margin-bottom: 11px; }
.progress-track { height: 5px; overflow: hidden; border-radius: 99px; background: #262d36; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .14s linear; }
.notice { margin-top: 14px; border: 1px solid rgba(255,116,116,.3); border-radius: 10px; padding: 12px 14px; background: rgba(255,116,116,.08); color: #ffb0b0; font-size: 13px; }
.notice.success { border-color: rgba(201,255,90,.22); background: var(--accent-soft); color: #dcffa1; }

.files-section { margin-top: 42px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.01em; }
.section-head p { margin: 0; color: var(--muted); font-size: 11px; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 9px; display: grid; place-items: center; color: var(--muted); background: var(--panel); cursor: pointer; }
.icon-button:hover { color: var(--text); border-color: var(--border-bright); }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-button.loading svg { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.file-list { display: grid; gap: 8px; }
.file-row { min-height: 76px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(17,21,28,.91); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px; align-items: center; transition: border-color .16s ease, background .16s ease; }
.file-row:hover { border-color: var(--border-bright); background: var(--panel-raised); }
.file-main { min-width: 0; display: flex; align-items: center; gap: 13px; }
.file-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: #181e26; color: #aab3bf; font-size: 10px; font-weight: 780; letter-spacing: .04em; }
.file-copy { min-width: 0; }
.file-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #e9edf1; font-size: 13px; font-weight: 630; }
.file-meta { margin-top: 6px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.file-meta .separator { width: 2px; height: 2px; background: #66707d; border-radius: 50%; }
.countdown { color: var(--accent); font-variant-numeric: tabular-nums; }
.file-actions { display: flex; align-items: center; gap: 7px; }
.download-link, .delete-button { height: 34px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 11px; font-weight: 670; }
.download-link { border: 1px solid var(--border-bright); color: #e6ebef; background: #1b212a; }
.download-link:hover { border-color: #596575; }
.download-link svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.delete-button { padding: 0 9px; border: 1px solid transparent; color: #727d8a; background: transparent; cursor: pointer; }
.delete-button:hover { color: var(--danger); background: rgba(255,116,116,.07); }
.delete-button svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.empty-state { min-height: 190px; border: 1px solid var(--border); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); background: rgba(17,21,28,.55); }
.empty-state svg { width: 38px; margin-bottom: 14px; fill: none; stroke: #47515e; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.empty-state strong { color: #bec5cd; font-size: 13px; }
.empty-state span { margin-top: 7px; font-size: 11px; }

footer { min-height: 70px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; align-items: center; color: #59626e; font-size: 10px; letter-spacing: .03em; }

[hidden] { display: none !important; }

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1060px); }
  .topbar { min-height: 70px; }
  .account-name { max-width: 110px; }
  .login-view { padding: 96px 0 74px; }
  .login-view h1 { font-size: 42px; }
  .trust-row { flex-direction: column; gap: 10px; align-items: center; }
  .app-view { padding: 46px 0 64px; }
  .intro { display: block; }
  .retention-pill { margin-top: 20px; }
  .dropzone { min-height: 245px; }
  .file-row { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .file-actions { padding-left: 55px; }
  .download-link { flex: 1; justify-content: center; }
  footer { align-items: flex-start; justify-content: center; flex-direction: column; gap: 5px; }
}
