:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #18203a;
  background: #f4f6fc;
  --accent: #4747e7;
  --ink: #18203a;
  --muted: #626e87;
  --line: #e6e9f3;
  --white: #fff;
}
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; }
[hidden] { display: none !important; }
button, input, a { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid #6868f1; outline-offset: 3px;
}
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 1.15rem; font-weight: 760; letter-spacing: -.045em; }
.brand img { width: 36px; height: 36px; }
.eyebrow { color: #4c50aa; font-size: .69rem; font-weight: 800; letter-spacing: .16em; margin: 0 0 8px; }
.muted { color: var(--muted); }
.button, .icon-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; font-weight: 680; white-space: nowrap;
}
.button { padding: 10px 15px; min-height: 42px; font-size: .88rem; }
.button:disabled { opacity: .55; cursor: wait; }
.primary { background: var(--accent); color: white; box-shadow: 0 4px 10px #4747e726; }
.primary:hover { background: #3939ce; }
.secondary { background: white; color: var(--ink); border-color: #dfe3ef; }
.secondary:hover, .icon-button:hover { background: #eff1fc; }
.icon-button { width: 37px; height: 37px; padding: 0; background: transparent; color: #565f7b; }
.danger { background: #b32240; color: white; }
.danger:hover { background: #941c34; }
.welcome {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
  padding: clamp(16px, 4vw, 60px); gap: clamp(16px, 4vw, 72px); background: #fafbff;
}
.login-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(12px, 3vw, 40px); }
.login-hero { margin: auto 0; max-width: 520px; padding: 60px 0; }
.login-hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.login-hero .eyebrow svg { width: 15px; height: 15px; }
.login-hero h1 { font-size: clamp(2.8rem, 6.4vw, 6.2rem); letter-spacing: -.08em; line-height: .98; margin: 17px 0 23px; }
.login-hero h1 span { color: var(--accent); }
.login-hero > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; line-height: 1.65; max-width: 400px; }
.login-link { margin-top: 12px; padding: 13px 18px; }
.login-link svg { margin-left: 6px; }
.login-art {
  isolation: isolate; position: relative; overflow: hidden; min-height: 260px; border-radius: 32px;
  background: radial-gradient(ellipse at 68% 19%, #8580ff, transparent 54%),
    linear-gradient(145deg, #2925ab, #5147e9 55%, #9488fd);
}
.orbit { position: absolute; inset: 50% auto auto 50%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #ffffff4d; transform: translate(-50%, -50%); }
.orbit-outer { width: 92%; }.orbit-inner { width: 64%; }
.tile {
  display: grid; place-items: center; position: absolute; color: white; border: 1px solid #ffffff6b;
  background: #ffffff25; box-shadow: 0 20px 60px #1a146860; aspect-ratio: 1; border-radius: 25%;
  backdrop-filter: blur(12px);
}
.tile svg { width: 54%; height: 54%; stroke-width: 1.35; }
.tile-main { width: 36%; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-12deg); background: #ffffff37; }
.tile-small { width: 18%; top: 19%; left: 62%; transform: rotate(14deg); }
.tile-lock { width: 17%; top: 65%; left: 23%; transform: rotate(-9deg); }
.layout { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0,1fr); }
.sidebar {
  background: #fbfcff; border-right: 1px solid var(--line); display: flex; flex-direction: column;
  align-items: stretch; gap: 12px; padding: 26px 17px 19px; min-height: 100vh;
}
.sidebar .brand { margin: 0 8px 32px; }
.nav-caption { color: var(--muted); font-size: .66rem; font-weight: 760; letter-spacing: .13em; margin: 0 10px; }
.nav-current { display: flex; align-items: center; gap: 10px; text-align: left; background: #eaeaff; color: #3e3cba; border: 0; border-radius: 10px; padding: 11px; font-weight: 720; }
.sidebar-bottom { margin-top: auto; color: var(--muted); display: flex; align-items: center; gap: 8px; padding: 8px; font-size: .8rem; }
.sidebar-bottom svg { width: 16px; height: 16px; }
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); background: #fbfcff;
}
.search { display: flex; align-items: center; gap: 9px; flex: 1; max-width: 400px; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); background: #f2f4fb; border-radius: 10px; color: var(--muted); }
.search input { min-width: 0; width: 100%; border: 0; padding: 0; color: var(--ink); background: transparent; font-size: .88rem; }
.search input:focus-visible { outline-offset: 2px; }
.account { display: flex; align-items: center; gap: 9px; font-size: .85rem; font-weight: 680; min-width: 0; }
#account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.avatar { background: #e9e7ff; color: #3f3eb0; border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; }
.content { max-width: 1380px; margin: auto; padding: 32px clamp(16px, 4vw, 48px); }
.title-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.title-row h1 { margin: 0; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.065em; line-height: 1.1; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; }
.file-panel { position: relative; min-height: 380px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 10px 25px #29396108; }
.panel-top { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .82rem; }
#breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; font-weight: 670; }
#breadcrumbs button { border: 0; background: transparent; color: #4a4cae; padding: 4px; text-align: left; border-radius: 4px; }
#breadcrumbs button:hover { background: #eff0fd; }
#breadcrumbs span { overflow-wrap: anywhere; }
#breadcrumbs svg { width: 13px; height: 13px; color: #8a92a7; }
#file-count { flex-shrink: 0; }
.listing { min-width: 0; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th { color: var(--muted); font-size: .76rem; text-align: left; font-weight: 650; background: #fafbff; }
th, td { padding: 10px 12px; border-bottom: 1px solid #eff1f7; }
th:first-child, td:first-child { padding-left: 18px; }
th:nth-child(2) { width: 150px; } th:nth-child(3) { width: 105px; } th:last-child { width: 84px; }
td { font-size: .84rem; color: var(--muted); }
td:last-child { text-align: right; padding-right: 14px; }
tr:hover td { background: #fafbff; }
tr:last-child td { border-bottom: 0; }
.entry { display: flex; align-items: center; gap: 10px; padding: 0; max-width: 100%; border: 0; color: var(--ink); background: transparent; text-align: left; font-weight: 650; }
.entry:hover .entry-name { color: var(--accent); }
.entry-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.entry-icon, .empty-icon { display: grid; place-items: center; flex: 0 0 auto; color: #5351cd; background: #ececff; width: 35px; height: 35px; border-radius: 9px; }
.entry-icon.document { color: #326c85; background: #e9f4f8; }
.entry-actions { display: flex; justify-content: flex-end; gap: 2px; }
.entry-actions .icon-button { width: 29px; height: 30px; }
.entry-actions .icon-button svg { width: 17px; height: 17px; }
.entry-actions details { position: relative; }
.entry-actions summary { list-style: none; }
.entry-actions summary::-webkit-details-marker { display: none; }
.entry-menu { position: absolute; z-index: 2; right: 0; min-width: 136px; display: grid; gap: 2px; border: 1px solid var(--line); background: white; padding: 4px; border-radius: 10px; box-shadow: 0 8px 22px #26245226; }
.entry-menu button { border: 0; background: transparent; border-radius: 6px; text-align: left; padding: 7px 8px; color: var(--ink); }
.entry-menu button:hover { background: #eff1fc; }
.entry-menu button:last-child { color: #a71e3e; }
.empty { min-height: 305px; display: grid; align-content: center; justify-items: center; text-align: center; padding: 25px; }
.empty-icon { width: 65px; height: 65px; border-radius: 20px; margin-bottom: 11px; }
.empty-icon svg { width: 32px; height: 32px; }
.empty h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.025em; }
.empty p { color: var(--muted); margin: 7px 0 0; font-size: .9rem; }
.drop-overlay { display: none; }
.file-panel.dragging .drop-overlay { position: absolute; inset: 5px; display: grid; align-content: center; justify-items: center; gap: 10px; border: 2px dashed #6561eb; border-radius: 14px; color: #3632b3; background: #eeeeffed; pointer-events: none; font-weight: 750; }
.drop-overlay svg { width: 36px; height: 36px; }
dialog, .notice, .transfer { border: 1px solid var(--line); border-radius: 15px; color: var(--ink); background: white; box-shadow: 0 12px 40px #2b28642b; }
dialog { width: min(460px, calc(100% - 30px)); padding: 22px; }
dialog::backdrop { background: #17173965; }
.dialog-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dialog-title h2 { margin: 0; letter-spacing: -.035em; }
dialog p { overflow-wrap: anywhere; }
dialog label { display: grid; gap: 6px; font-size: .87rem; font-weight: 650; margin: 14px 0; }
dialog input { width: 100%; padding: 10px; border: 1px solid #cfd4e5; border-radius: 8px; color: var(--ink); }
dialog .actions { justify-content: flex-end; margin-top: 16px; }
.form-error, .login-hero .login-error { color: #a71e3e !important; }
.destination { border: 1px solid var(--line); border-radius: 10px; padding: 9px; }
.destination-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .85rem; }
.destination-header strong { overflow-wrap: anywhere; }
.destination-header .button { min-height: 34px; padding: 5px 8px; font-size: .75rem; }
#destination-items { display: grid; gap: 3px; max-height: 175px; overflow: auto; margin-top: 6px; }
#destination-items button { display: flex; gap: 7px; align-items: center; border: 0; border-radius: 6px; padding: 7px; background: #f5f6fe; color: var(--ink); text-align: left; overflow-wrap: anywhere; }
#destination-items button:hover { background: #e9eaff; }
#destination-items p { margin: 3px; font-size: .83rem; }
.notice, .transfer { position: fixed; right: 18px; max-width: min(390px, calc(100vw - 36px)); padding: 13px 17px; z-index: 3; overflow-wrap: anywhere; }
.notice { bottom: 18px; }
.notice[data-error="true"] { color: #a71e3e; }
.transfer { bottom: 78px; display: grid; gap: 8px; width: min(320px, calc(100vw - 36px)); }
.transfer progress { width: 100%; accent-color: var(--accent); }
@media (max-width: 760px) {
  .welcome { grid-template-columns: 1fr; gap: 0; }
  .login-hero { padding: 35px 0 26px; }
  .login-art { min-height: 210px; max-height: 280px; }
  .tile-main { width: min(36%, 160px); }
  .tile-small, .tile-lock { width: min(18%, 85px); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; border-right: 0; padding: 10px 16px; flex-direction: row; align-items: center; justify-content: space-between; }
  .sidebar .brand { margin: 0; }
  .nav-caption, .sidebar-bottom { display: none; }
  .nav-current { padding: 8px; font-size: .82rem; }
  .topbar { padding: 10px 16px; }
  #account-name { display: none; }
  .content { padding-top: 24px; }
  th:nth-child(2), td:nth-child(2) { display: none; }
  th:nth-child(3) { width: 75px; }
}
@media (max-width: 400px) {
  th:nth-child(3), td:nth-child(3) { display: none; }
  .button { padding-inline: 10px; }
}
