:root {
  color-scheme: dark;
  --paper: #050507;
  --ink: #f2f4ff;
  --secondary: #aeb7ce;
  --line: #2b3042;
  --accent: #89dfff;
  --surface: #10121b;
  --cyan: #01e6fd;
  --blue: #1754fa;
  --violet: #c241fd;
  --spectrum: linear-gradient(112deg, var(--cyan), #0198ff 32%, var(--blue) 59%, #7c40fa 80%, var(--violet));
  --action: linear-gradient(110deg, var(--cyan), #218cff 36%, #5f7cff 59%, #9b62ff 80%, #c94dff);
  font-family: "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #01d7f9; outline-offset: 3px; }
[hidden] { display: none !important; }
.narrow-only { display: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.2; letter-spacing: -.045em; }
h2 { font-size: 1.16rem; line-height: 1.5; }
button, .primary, .secondary, .danger, .text-button, .icon-button { touch-action: manipulation; }
.ico { display: block; width: 1.2em; height: 1.2em; flex: none; }
.site-header { background: #090a10; border-bottom: 1px solid #252837; }
.header-inner, .desk, .login-main { width: min(calc(100% - 56px), 1056px); margin: 0 auto; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 73px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.04em; font-size: 1.38rem; }
.brand-mark { width: 35px; height: 35px; position: relative; display: inline-block; background: linear-gradient(135deg, #0d2946, #27143d); border-radius: 11px; box-shadow: inset 0 0 0 1px #596da566; }
.brand-mark b { position: absolute; width: 11px; height: 17px; border: 2px solid #01e6fd; border-radius: 3px; transform: skewY(-16deg); }
.brand-mark b:first-child { left: 8px; top: 11px; }
.brand-mark b:last-child { right: 8px; top: 7px; background: #17203e; border-color: #ba88ff; }
.private-label, .card-label, .text-button, .primary, .secondary, .danger, .icon-button, .retention-note, .file-note { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.private-label, .text-button, .file-note, .retention-note { font-size: .9rem; color: var(--secondary); }
.private-label .ico { width: 16px; }
.text-button, .icon-button { background: transparent; border: 0; padding: 8px 10px; min-height: 40px; border-radius: 8px; }
.text-button:hover, .icon-button:hover { background: #1f263b; color: var(--accent); }
.icon-button { width: 40px; height: 40px; color: var(--secondary); }
.primary, .secondary, .danger { min-height: 45px; border: 1px solid transparent; border-radius: 10px; font-size: .98rem; font-weight: 650; padding: 10px 19px; }
.primary { color: #070b1c; background: var(--action); box-shadow: inset 0 1px 0 #ffffff48; }
.primary:hover { filter: brightness(1.09); }
.primary:active { filter: brightness(.95); }
.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); }
.danger { background: #a43155; color: white; }
.login-main { display: flex; align-items: center; justify-content: center; min-height: calc(100svh - 74px); padding: 56px 0 94px; }
.login-card { width: min(100%, 920px); display: grid; grid-template-columns: 1.12fr 1fr; overflow: hidden; border-radius: 23px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 22px 68px -42px #000000b3; }
.login-form-panel { padding: clamp(32px, 5vw, 60px) clamp(28px, 4.5vw, 52px); }
.login-intro p, .page-title p { color: var(--secondary); line-height: 1.8; margin-top: 12px; }
#login-form { margin-top: 34px; }
#login-form label { display: block; margin-bottom: 9px; font-size: .95rem; font-weight: 650; }
.password-wrap { display: flex; align-items: center; padding: 0 5px 0 14px; gap: 10px; min-height: 50px; color: var(--secondary); border: 1px solid #434d69; border-radius: 10px; background: #0c101a; }
.password-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #01bdfc24; }
.password-wrap > .ico { width: 18px; }
.password-wrap input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; height: 46px; color: var(--ink); }
.password-wrap input:focus-visible { outline: none; }
.password-wrap input::placeholder { color: #99a3bb; }
.login-submit { width: 100%; margin-top: 16px; min-height: 49px; }
.retention-note { margin-top: 29px; gap: 7px; line-height: 1.6; }
.retention-note .ico { width: 16px; }
.error { color: #ff9eaf; font-size: .92rem; line-height: 1.6; }
#login-error { margin-top: 8px; }
.illustration {
  background: radial-gradient(ellipse at 15% 82%, #0045a76b, transparent 60%),
    radial-gradient(ellipse at 87% 20%, #8c28dd5c, transparent 57%),
    linear-gradient(132deg, #080e1b, #10162f 55%, #130d22);
  position: relative; overflow: hidden; display: grid; place-items: center; min-height: 300px;
}
.illustration::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#91baff22 1px, transparent 1.3px); background-size: 18px 18px; }
.orb { width: 430px; height: 430px; border: 1px solid #8d8eff24; border-radius: 50%; position: absolute; }
.orb-one { top: -285px; right: -110px; border-color: #bb64ff61; box-shadow: 0 0 0 28px #ab56ff0e, 0 0 0 54px #a95bff08; }
.orb-two { left: -295px; bottom: -285px; border-color: #01c0ff5c; box-shadow: 0 0 0 34px #247cff12, 0 0 0 68px #198dff09; }
.device-scene { position: relative; width: 282px; height: 205px; transform: rotate(-5deg); }
.laptop { position: absolute; width: 207px; height: 142px; left: 8px; top: 30px; }
.laptop-screen { position: absolute; inset: 0 8px 11px; border: 5px solid #819cf0; border-radius: 12px 12px 5px 5px; background: #162348; box-shadow: inset 0 0 0 2px #253675, 6px 11px 0 #02051c80; }
.laptop-base { position: absolute; bottom: 0; left: -6px; right: -6px; height: 13px; border-radius: 2px 2px 15px 15px; background: linear-gradient(#a6b9f6 30%, #526fbd); }
.laptop-base::after { content: ""; display: block; width: 38px; height: 4px; background: #384b86; margin: 0 auto; border-radius: 0 0 8px 8px; }
.mini-dots { display: flex; gap: 4px; margin: 11px 12px; }
.mini-dots b { width: 4px; height: 4px; border-radius: 50%; background: #81a4f4; }
.mini-folder { width: 62px; height: 39px; position: absolute; top: 45px; left: 25px; background: #1465e6; border-radius: 0 5px 6px 6px; transform: rotate(-4deg); box-shadow: 3px 4px 0 #071b5480; }
.mini-folder::before { content: ""; width: 29px; height: 7px; position: absolute; top: -6px; border-radius: 5px 6px 0 0; background: #2e8aff; }
.mini-folder span { position: absolute; inset: 10px -2px -2px 1px; border-radius: 4px; background: var(--spectrum); transform: skewX(-6deg); }
.mini-rows { position: absolute; top: 55px; left: 103px; width: 43px; }
.mini-rows b { display: block; height: 4px; background: #738acf; border-radius: 2px; margin-bottom: 9px; }
.mini-rows b:last-child { width: 65%; }
.phone { position: absolute; right: 15px; bottom: 11px; width: 65px; height: 108px; border: 4px solid #c5afff; border-radius: 13px; background: #30265d; box-shadow: 4px 7px 0 #11082699; transform: rotate(12deg); }
.phone-island, .phone-line { position: absolute; width: 20px; height: 4px; background: #c5afff; left: 50%; transform: translateX(-50%); border-radius: 8px; }
.phone-island { top: 3px; }.phone-line { bottom: 5px; width: 17px; height: 2px; }
.mini-photo { overflow: hidden; background: #8782f9; height: 32px; width: 38px; position: absolute; left: 9px; top: 31px; border: 2px solid #d7c5ff; border-radius: 5px; }
.mini-photo::before { content: ""; width: 6px; height: 6px; border-radius: 50%; position: absolute; top: 4px; right: 5px; background: #9af6ff; }
.mini-photo b { position: absolute; width: 33px; height: 26px; top: 16px; left: -2px; transform: rotate(32deg); background: #4c43ce; box-shadow: 15px -9px 0 #af58ee; }
.sync-tile { position: absolute; right: 24px; top: 17px; background: linear-gradient(125deg, #60e9ff, #a797ff); color: #101633; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; transform: rotate(11deg); box-shadow: 2px 5px 0 #030a2380; }
.sync-tile .ico { width: 23px; height: 23px; }
.desk { padding: 48px 0 65px; }
.page-title { margin-bottom: 28px; }
.tools-grid { display: grid; grid-template-columns: minmax(0, 2.55fr) minmax(214px, 1fr); gap: 16px; }
.drop-zone, .capacity, .files-panel, .queue-section { border-radius: 16px; }
.drop-zone { display: flex; align-items: center; gap: 19px; padding: 27px; background: linear-gradient(110deg, #0a1d2e, #10182e 55%, #1c142c); border: 1.5px dashed #5367a4; transition: background .15s, border-color .15s; }
.drop-zone.dragging { background: #182b4b; border-color: #01cffe; }
.upload-symbol { background: #17395c; color: #6deaff; width: 55px; height: 55px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.upload-symbol .ico { width: 27px; height: 27px; }
.drop-text { flex: 1; }
.drop-text p, .capacity > p:last-child, .empty p, .queue-meta, .file-detail { font-size: .89rem; line-height: 1.6; color: var(--secondary); }
.drop-text p { margin-top: 5px; }
.drop-zone .primary { flex: none; }
.capacity { background: var(--surface); border: 1px solid var(--line); padding: 20px 23px; }
.card-label { font-size: .9rem; font-weight: 620; justify-content: flex-start; }
.card-label .ico { color: var(--accent); }
.storage-count { margin: 8px 0; color: var(--secondary); font-size: .95rem; }
.storage-count strong { color: var(--ink); font-size: 1.28rem; font-variant-numeric: tabular-nums; }
progress { width: 100%; height: 6px; display: block; appearance: none; border: 0; background: #252c40; color: #467bff; border-radius: 20px; overflow: hidden; }
progress::-webkit-progress-bar { background: #252c40; border-radius: 20px; }
progress::-webkit-progress-value { background: var(--spectrum); border-radius: 20px; }
progress::-moz-progress-bar { background: var(--spectrum); border-radius: 20px; }
.capacity > p:last-child { margin-top: 8px; }
.files-panel, .queue-section { margin-top: 24px; padding: 22px 26px; background: var(--surface); border: 1px solid var(--line); }
.files-head, .section-heading, .dialog-head, .dialog-foot, .queue-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.files-heading { display: flex; align-items: center; gap: 10px; }
#file-count { background: #222a43; color: #cad7ff; font-size: .85rem; border-radius: 6px; padding: 3px 8px; font-variant-numeric: tabular-nums; }
.file-note { justify-content: flex-start; margin: 4px 0 17px; gap: 6px; }
.file-note .ico { width: 15px; }
.list-error { padding: 8px 0; }
.file-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; align-items: center; gap: 13px; padding: 15px 0; border-top: 1px solid #292f40; }
.file-icon, .empty-icon { display: grid; place-items: center; width: 42px; height: 46px; border-radius: 10px; color: #8ccaff; background: #172a42; }
.file-icon.image { background: #132d40; color: #6ae7ff; }.file-icon.video { background: #2b2044; color: #d3adff; }
.file-icon.audio { background: #30213c; color: #f2b6ff; }
.file-icon .ico { width: 21px; height: 21px; }
.file-name, .queue-name { display: block; font-weight: 630; font-size: 1rem; overflow-wrap: anywhere; line-height: 1.5; }
.file-detail { margin-top: 2px; }
.file-expiry { font-size: .87rem; color: var(--secondary); }
.file-actions { display: flex; align-items: center; gap: 3px; }
.file-actions .text-button { color: var(--accent); }
.empty { padding: 25px 0 29px; text-align: center; border-top: 1px solid #292f40; }
.empty-icon { width: 51px; height: 49px; margin: 0 auto 11px; color: #8d9fca; background: #20263a; }
.empty-icon .ico { width: 25px; height: 25px; }
.empty strong { display: block; margin-bottom: 5px; font-size: 1rem; }
.queue-row { padding: 13px 0 7px; }
.queue-row + .queue-row { margin-top: 6px; border-top: 1px solid var(--line); }
.queue-row progress { margin: 7px 0; }
.queue-meta.failed { color: #ff9eaf; }
.toast { position: fixed; left: 50%; bottom: max(25px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: 90vw; width: max-content; background: #1c2543; color: white; padding: 12px 18px; border-radius: 10px; box-shadow: 0 6px 19px #0000006b; z-index: 3; }
dialog { border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: var(--surface); padding: 20px; max-height: 88svh; width: min(92vw, 680px); }
dialog::backdrop { background: #02030bc4; }
.dialog-head h2, #delete-name { overflow-wrap: anywhere; min-width: 0; }
.dialog-head .icon-button { flex: none; }
.dialog-foot { margin-top: 13px; }
.dialog-foot span, .delete-dialog > p { color: var(--secondary); font-size: .94rem; }
#viewer { display: grid; place-items: center; margin-top: 10px; background: #06070d; border-radius: 10px; overflow: hidden; }
#viewer > * { max-width: 100%; max-height: 58svh; min-width: 0; display: block; }
#viewer audio { margin: 25px 0; }
.delete-dialog { width: min(92vw, 405px); }
.delete-dialog > p { margin: 11px 0; }
.delete-dialog .dialog-foot { justify-content: flex-end; margin-top: 22px; }
@media (max-width: 800px) {
  .drop-zone { flex-wrap: wrap; gap: 12px; padding: 22px; }
  .drop-zone .primary { margin-left: 67px; }
  .file-row { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .file-expiry { grid-column: 2; grid-row: 2; }
  .file-actions { grid-column: 3; grid-row: 1 / 3; }
  .file-row { row-gap: 2px; }
}
@media (max-width: 650px) {
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .header-inner, .desk, .login-main { width: calc(100% - 34px); }
  .header-inner { min-height: 61px; }
  .login-main { min-height: calc(100svh - 62px); padding: 26px 0 46px; }
  .login-card { display: flex; flex-direction: column-reverse; max-width: 440px; border-radius: 17px; }
  .illustration { min-height: 137px; height: 137px; }
  .device-scene { transform: scale(.61) rotate(-5deg); }
  .illustration { display: flex; align-items: center; justify-content: center; }
  .login-form-panel { padding: 26px 24px 27px; }
  .login-intro p { margin-top: 9px; }
  #login-form { margin-top: 23px; }
  .retention-note { margin-top: 19px; }
  .desk { padding-top: 29px; }
  .page-title { margin-bottom: 20px; }
  .page-title p { margin-top: 8px; }
  .tools-grid { display: block; }
  .drop-zone { padding: 20px; }
  .drop-zone .primary { margin: 0; width: 100%; }
  .drop-text h2 { font-size: 1.1rem; }
  .capacity { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 15px; padding: 13px 17px; margin-top: 12px; }
  .capacity .storage-count { grid-column: 2; grid-row: 1; margin: 0; }
  .capacity progress { grid-column: 1; grid-row: 2; }
  .capacity > p:last-child { margin: 0; font-size: .8rem; }
  .capacity .storage-count strong { font-size: 1.05rem; }
  .files-panel, .queue-section { padding: 14px 15px; margin-top: 17px; }
  .file-row { grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; }
  .file-icon { width: 34px; height: 39px; grid-row: 1 / 3; align-self: start; }
  .file-actions { grid-row: 3; grid-column: 2; justify-content: flex-start; flex-wrap: wrap; margin-left: -7px; }
  .file-actions .text-button, .file-actions .icon-button { min-height: 42px; }
  .file-note { margin-bottom: 12px; }
  #logout { margin-right: -6px; }
}
@media (max-width: 360px) {
  .login-form-panel { padding: 22px 17px; }
  .upload-symbol { width: 40px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
