:root {
  color-scheme: dark;
  --bg: #090b10;
  --surface: rgba(18, 21, 29, .78);
  --surface-solid: #12151d;
  --line: rgba(255,255,255,.085);
  --muted: #8f96a5;
  --text: #f4f6fa;
  --accent: #73e8be;
  --accent-strong: #44d9a4;
  --danger: #ff6b78;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; }
button, input { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }
.ambient { position: fixed; width: 480px; height: 480px; border-radius: 50%; filter: blur(110px); opacity: .12; pointer-events: none; }
.ambient-one { background: #2df6b3; left: -210px; top: -210px; }
.ambient-two { background: #4668ff; right: -240px; bottom: -260px; }
.shell { min-height: 100vh; position: relative; z-index: 1; }
.login-view { width: min(420px, calc(100% - 40px)); min-height: 100vh; margin: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 0; }
.brand-mark, .mini-mark { display: grid; place-items: center; background: linear-gradient(145deg, rgba(115,232,190,.18), rgba(115,232,190,.05)); border: 1px solid rgba(115,232,190,.26); box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.brand-mark { width: 74px; height: 74px; border-radius: 22px; margin-bottom: 28px; }
.brand-mark svg { width: 39px; }
.brand-mark path, .mini-mark path { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: 11px; letter-spacing: .22em; font-weight: 750; }
h1 { margin: 0; font-size: clamp(34px, 6vw, 48px); letter-spacing: -.045em; }
.subtitle { color: var(--muted); margin: 10px 0 35px; }
.login-form { width: 100%; }
.login-form label { display: block; font-size: 13px; font-weight: 650; margin: 0 0 9px; }
.password-wrap { position: relative; }
.password-wrap input { width: 100%; height: 54px; padding: 0 52px 0 16px; color: var(--text); background: rgba(18,21,29,.9); border: 1px solid var(--line); border-radius: 13px; outline: none; transition: .2s; }
.password-wrap input:focus { border-color: rgba(115,232,190,.55); box-shadow: 0 0 0 4px rgba(115,232,190,.08); }
.icon-button { position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; border: 0; background: transparent; cursor: pointer; border-radius: 9px; }
.icon-button:hover { background: rgba(255,255,255,.05); }
.icon-button svg { width: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.primary-button, .secondary-button, .danger-button { border: 0; border-radius: 12px; height: 50px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 720; cursor: pointer; transition: transform .15s, opacity .15s, background .15s; }
.primary-button { width: 100%; margin-top: 14px; background: var(--accent); color: #07120e; }
.primary-button:hover { background: var(--accent-strong); transform: translateY(-1px); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.primary-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.form-error { color: var(--danger); min-height: 20px; text-align: center; font-size: 13px; margin: 12px 0 0; }
.session-note { color: #717887; font-size: 12px; margin-top: 30px; display: flex; gap: 7px; align-items: center; }
.session-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.vault-view { min-height: 100vh; }
.topbar { height: 78px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - 1160px) / 2)); background: rgba(9,11,16,.74); backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 5; }
.wordmark { display: flex; align-items: center; gap: 12px; }
.mini-mark { width: 39px; height: 39px; border-radius: 11px; }
.mini-mark svg { width: 23px; }
.wordmark strong, .wordmark span { display: block; }
.wordmark strong { font-size: 14px; }
.wordmark span { font-size: 11px; color: var(--muted); margin-top: 2px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.connection-status { color: var(--muted); font-size: 12px; display: flex; gap: 7px; align-items: center; }
.connection-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px rgba(115,232,190,.6); }
.connection-status.offline i { background: var(--danger); box-shadow: none; }
.secondary-button { height: 38px; background: rgba(255,255,255,.055); border: 1px solid var(--line); font-size: 12px; }
.secondary-button:hover { background: rgba(255,255,255,.09); }
.content { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 56px 0 80px; }
.title-row { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.title-row h2 { font-size: 30px; letter-spacing: -.035em; margin: 0; }
.primary-button.compact { width: auto; height: 44px; margin: 0; }
.drop-zone { height: 170px; border: 1px dashed rgba(115,232,190,.25); border-radius: var(--radius); background: linear-gradient(140deg, rgba(115,232,190,.05), rgba(18,21,29,.5)); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: .2s; margin-bottom: 22px; }
.drop-zone:hover, .drop-zone.dragging { border-color: rgba(115,232,190,.65); background: rgba(115,232,190,.075); }
.upload-icon { width: 43px; height: 43px; border-radius: 12px; display: grid; place-items: center; background: rgba(115,232,190,.1); margin-bottom: 11px; }
.upload-icon svg { width: 22px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone strong { font-size: 14px; }
.drop-zone span { color: var(--muted); font-size: 12px; margin-top: 5px; }
.transfer-card, .files-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(16px); }
.transfer-card { padding: 19px; margin-bottom: 22px; }
.transfer-head, .transfer-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.transfer-head strong { max-width: 80%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.transfer-head span { color: var(--accent); }
.progress-track { height: 5px; background: rgba(255,255,255,.07); border-radius: 10px; margin: 13px 0 10px; overflow: hidden; }
.progress-bar { width: 0; height: 100%; background: var(--accent); border-radius: inherit; transition: width .15s; }
.transfer-foot { color: var(--muted); }
.transfer-foot button { border: 0; background: none; color: var(--danger); cursor: pointer; }
.files-card { overflow: hidden; min-height: 170px; }
.files-header, .file-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 160px 92px; align-items: center; gap: 18px; padding: 0 20px; }
.files-header { height: 46px; color: #777e8d; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.file-row { min-height: 68px; border-bottom: 1px solid rgba(255,255,255,.055); }
.file-row:last-child { border-bottom: 0; }
.file-main { display: flex; min-width: 0; align-items: center; gap: 12px; }
.file-icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.05); }
.file-icon svg { width: 18px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.file-name { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 620; }
.file-meta { color: var(--muted); font-size: 12px; }
.row-actions { display: flex; justify-content: flex-end; gap: 4px; }
.row-action { border: 0; background: transparent; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; }
.row-action:hover { background: rgba(255,255,255,.06); }
.row-action.delete:hover { background: rgba(255,107,120,.1); }
.row-action svg { width: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.row-action.delete:hover svg { stroke: var(--danger); }
.empty-state { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.empty-state svg { width: 31px; fill: none; stroke: #626a79; stroke-width: 1.5; margin-bottom: 12px; }
.empty-state strong { font-size: 13px; }
.empty-state span { color: var(--muted); font-size: 12px; margin-top: 5px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 20; background: #1b2029; border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; font-size: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.35); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-color: rgba(255,107,120,.35); color: #ffb0b7; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.7); display: grid; place-items: center; backdrop-filter: blur(7px); }
.dialog { width: min(390px, calc(100% - 36px)); text-align: center; padding: 28px; border-radius: 19px; background: #151922; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.dialog-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 16px; display: grid; place-items: center; background: rgba(255,107,120,.1); }
.dialog-icon svg { width: 22px; fill: none; stroke: var(--danger); stroke-width: 1.8; }
.dialog h3 { margin: 0; font-size: 18px; }
.dialog p { color: var(--muted); font-size: 13px; margin: 9px 0 24px; word-break: break-word; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-actions button { height: 43px; }
.danger-button { background: var(--danger); color: #21080b; }

@media (max-width: 700px) {
  .topbar { padding: 0 18px; }
  .connection-status { display: none; }
  .content { width: min(100% - 28px, 1160px); padding-top: 36px; }
  .files-header { display: none; }
  .file-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 13px 14px; }
  .file-row > .file-meta { display: none; }
  .title-row { align-items: center; }
  .title-row h2 { font-size: 25px; }
  .drop-zone { height: 145px; }
  .primary-button.compact span { display: none; }
  .primary-button.compact { width: 44px; padding: 0; }
}
