:root {
  color-scheme: light;
  --ink: #25263a;
  --muted: #88899b;
  --soft: #a9aabc;
  --line: #ececf3;
  --surface: #fff;
  --canvas: #f6f6fb;
  --violet: #5b5ce2;
  --violet-dark: #4d4ed0;
  --violet-soft: #eeefff;
  --lavender: #f4f2ff;
  --blue: #5e8ae9;
  --green: #36a883;
  --red: #e06572;
  --amber: #d89439;
  --shadow: 0 12px 36px rgba(43, 42, 89, .07);
  --shadow-sm: 0 3px 12px rgba(43, 42, 89, .045);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(91, 92, 226, .34); outline-offset: 2px; }
::selection { background: #dfdfff; color: #393aa7; }
.icon { width: 19px; height: 19px; display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 22px; height: 22px; }
.initial-loader { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--muted); font-size: 14px; }
.initial-loader.is-slow { flex-direction: column; gap: 10px; padding: 24px; text-align: center; }
.loading-help { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.brand-mark { width: 34px; height: 34px; position: relative; display: inline-flex; border-radius: 11px; background: linear-gradient(140deg, #8687ff, #5859dc); box-shadow: 0 5px 12px rgba(91,92,226,.22); }
.brand-mark::before { content: ""; position: absolute; inset: 7px 7px 7px 11px; border: 1.8px solid rgba(255,255,255,.93); border-radius: 6px; }
.brand-mark::after { content: ""; position: absolute; width: 8px; height: 8px; right: 6px; bottom: 6px; background: #fff; border-radius: 3px; box-shadow: -4px -4px 0 -1px rgba(91,92,226,.72); }
/* App frame */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px 18px; display: flex; flex-direction: column; background: #fff; border-right: 1px solid #efeff5; z-index: 30; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 12px 30px; font-size: 19px; font-weight: 760; letter-spacing: -.65px; }
.brand-word { color: var(--ink); }
.brand-word span { color: var(--violet); }
.sidebar-label { padding: 0 13px; margin: 2px 0 10px; color: #adaebc; font-size: 10px; font-weight: 750; letter-spacing: 1.35px; text-transform: uppercase; }
.nav-list { display: grid; gap: 5px; }
.nav-link { position: relative; display: flex; min-height: 43px; align-items: center; gap: 13px; padding: 0 13px; color: #77798e; border-radius: 12px; font-size: 13px; font-weight: 590; transition: color .16s ease, background .16s ease, transform .16s ease; }
.nav-link:hover { background: #f7f7fc; color: var(--ink); transform: translateX(1px); }
.nav-link.active { color: var(--violet); background: #f0f0ff; font-weight: 680; }
.nav-link.active::before { content: ""; position: absolute; left: -16px; height: 22px; width: 3px; border-radius: 0 4px 4px 0; background: var(--violet); }
.nav-link .icon { color: #999aab; }
.nav-link.active .icon { color: var(--violet); }
.nav-spacer { height: 25px; }
.sidebar-bottom { margin-top: auto; }
.storage-mini { padding: 16px 14px 14px; border: 1px solid #eeeefa; border-radius: 15px; background: linear-gradient(155deg, #fbfbff, #f5f4ff); }
.storage-mini-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: #53556c; font-size: 11px; font-weight: 700; }
.storage-mini-head .icon { color: var(--violet); }
.storage-mini-line { color: #9293a5; font-size: 10px; margin-bottom: 11px; }
.progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: #e7e7f3; }
.progress-fill { height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, #7778f5, #5d5ddd); transition: width .32s ease; }
.storage-mini-foot { display: flex; justify-content: space-between; margin-top: 8px; color: #9a9bad; font-size: 10px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; padding: 15px 8px 0; margin-top: 15px; border-top: 1px solid #f0f0f5; }
.avatar { width: 34px; height: 34px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 12px; background: linear-gradient(145deg,#e2e1ff,#c4c5ff); color: #5152bc; font-size: 12px; font-weight: 750; }
.profile-meta { min-width: 0; flex: 1; }
.profile-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #34354a; font-size: 11px; font-weight: 680; }
.profile-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; color: #a0a1af; font-size: 10px; }
.icon-button { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #85869a; transition: all .16s ease; }
.icon-button:hover { border-color: var(--line); background: #fafaff; color: var(--violet); }
.mobile-menu, .sidebar-backdrop { display: none; }
/* Main workspace */
.main-area { min-width: 0; padding: 0 38px 40px; }
.topbar { height: 78px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid #ececf2; }
.search-wrap { position: relative; width: min(430px, 50vw); }
.search-wrap .icon { position: absolute; left: 15px; top: 50%; color: #a0a1b0; transform: translateY(-50%); }
.search-input { width: 100%; height: 42px; padding: 0 16px 0 43px; border: 1px solid #ebebf2; border-radius: 13px; background: #fff; color: var(--ink); font-size: 12px; outline: none; transition: all .18s ease; }
.search-input::placeholder { color: #a5a6b5; }
.search-input:focus { border-color: #c4c4ff; box-shadow: 0 0 0 3px rgba(91,92,226,.08); }
.topbar-spacer { flex: 1; }
.topbar-note { color: #a5a6b5; font-size: 11px; }
.topbar-avatar { border: 0; cursor: pointer; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 29px 0 25px; }
.eyebrow { margin-bottom: 7px; color: #9394a7; font-size: 10px; font-weight: 730; letter-spacing: 1.2px; text-transform: uppercase; }
.page-title { margin: 0; color: #27283d; font-size: clamp(25px, 3vw, 32px); font-weight: 720; letter-spacing: -1.1px; line-height: 1.18; }
.page-subtitle { margin: 7px 0 0; color: #9697a7; font-size: 12px; line-height: 1.55; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid transparent; border-radius: 11px; background: #fff; color: #626379; font-size: 12px; font-weight: 650; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border .16s ease; }
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.button .icon { width: 17px; height: 17px; }
.button-primary { color: #fff; background: linear-gradient(135deg,#7475ee,#595ade); box-shadow: 0 5px 13px rgba(91,92,226,.2); }
.button-primary:hover { background: linear-gradient(135deg,#6869e8,#4e4fce); box-shadow: 0 8px 18px rgba(91,92,226,.23); }
.button-secondary { border-color: #e8e8f0; background: #fff; color: #65667b; }
.button-secondary:hover { border-color: #d7d7f4; background: #fcfcff; }
.button-quiet { background: transparent; color: #77788e; }
.button-danger { border-color: #f5dce0; background: #fff8f9; color: #c34d61; }
.button-small { min-height: 32px; padding: 0 10px; border-radius: 9px; font-size: 11px; }
.button-full { width: 100%; }
/* Dashboard */
.hero-card { position: relative; overflow: hidden; min-height: 188px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 32px; border: 1px solid #e8e7fb; border-radius: 21px; background: linear-gradient(112deg,#f1f0ff 0%,#f8f7ff 56%,#eef6ff 100%); }
.hero-card::after { content: ""; position: absolute; width: 205px; height: 205px; right: 65px; top: -105px; border: 1px solid rgba(113,114,225,.11); border-radius: 50%; box-shadow: 0 0 0 28px rgba(113,114,225,.035), 0 0 0 56px rgba(113,114,225,.025); }
.hero-copy { position: relative; z-index: 1; max-width: 520px; }
.hero-kicker { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; color: #6667c8; font-size: 11px; font-weight: 690; }
.hero-kicker .icon { width: 15px; height: 15px; }
.hero-title { margin: 0; color: #2c2d49; font-size: clamp(22px,3vw,29px); letter-spacing: -.9px; line-height: 1.24; }
.hero-title em { color: var(--violet); font-style: normal; }
.hero-copy p { margin: 9px 0 17px; color: #83849d; font-size: 12px; line-height: 1.6; }
.hero-art { position: relative; z-index: 1; width: 155px; height: 118px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.cloud-plate { position: absolute; width: 114px; height: 82px; border: 1px solid rgba(117,119,223,.14); border-radius: 21px; background: rgba(255,255,255,.58); transform: rotate(-9deg); box-shadow: 0 12px 28px rgba(91,92,226,.06); }
.cloud-plate.back { transform: rotate(9deg) translate(7px,-4px); background: rgba(222,224,255,.58); }
.cloud-center { position: relative; width: 53px; height: 53px; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: linear-gradient(145deg,#8182f6,#595ade); color: white; box-shadow: 0 10px 18px rgba(91,92,226,.26); }
.cloud-center .icon { width: 27px; height: 27px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 19px 0 22px; }
.stat-card { min-width: 0; padding: 17px 18px 16px; border: 1px solid #ededf3; border-radius: 16px; background: #fff; box-shadow: 0 2px 9px rgba(33,34,66,.018); }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: #9293a5; font-size: 10px; font-weight: 620; }
.stat-icon { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #f2f1ff; color: var(--violet); }
.stat-icon.blue { color: #5283dd; background: #edf5ff; }
.stat-icon.green { color: #36a883; background: #eafaF4; }
.stat-icon.amber { color: #d89439; background: #fff5e7; }
.stat-value { margin-top: 13px; color: #303147; font-size: 22px; font-weight: 730; letter-spacing: -.5px; }
.stat-foot { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: #a0a1af; font-size: 10px; }
.stat-foot .good { color: var(--green); }
.dashboard-columns { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(235px,.8fr); gap: 17px; }
.panel { min-width: 0; border: 1px solid #ededf3; border-radius: 17px; background: #fff; box-shadow: 0 2px 10px rgba(33,34,66,.02); }
.panel-head { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 18px; border-bottom: 1px solid #f1f1f6; }
.panel-title { margin: 0; color: #3a3b50; font-size: 13px; font-weight: 690; }
.panel-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--violet); font-size: 10px; font-weight: 680; }
.panel-body { padding: 12px 16px 15px; }
.recent-item { min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 7px 3px; border-bottom: 1px solid #f5f5f8; }
.recent-item:last-child { border-bottom: 0; }
.file-type-icon { width: 37px; height: 37px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 12px; background: #f2f1ff; color: var(--violet); }
.file-type-icon.pdf { background: #fff0f1; color: #e06471; }
.file-type-icon.image { background: #eef7ff; color: #5285dc; }
.file-type-icon.video { background: #fff2e8; color: #dd8747; }
.file-type-icon.audio { background: #f8efff; color: #9960d0; }
.file-type-icon.archive { background: #fff6e8; color: #c28b37; }
.file-type-icon.word { background: #edf4ff; color: #4381d0; }
.file-type-icon.excel { background: #eaf8f0; color: #36a37a; }
.recent-meta { min-width: 0; flex: 1; }
.file-name { overflow: hidden; color: #414256; font-size: 11px; font-weight: 640; text-overflow: ellipsis; white-space: nowrap; }
.file-detail { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: #a2a3b0; font-size: 9px; }
.recent-date { flex: 0 0 auto; color: #a1a2af; font-size: 9px; }
.quick-panel { padding: 16px; }
.quick-panel h3 { margin: 0 0 4px; color: #3a3b50; font-size: 13px; }
.quick-panel > p { margin: 0 0 14px; color: #9a9baa; font-size: 10px; line-height: 1.45; }
.quick-action { width: 100%; min-height: 50px; display: flex; align-items: center; gap: 11px; margin-top: 8px; padding: 0 11px; border: 1px solid #f0f0f5; border-radius: 12px; background: #fff; color: #5d5e73; text-align: left; transition: all .16s ease; }
.quick-action:hover { border-color: #dbdbfa; background: #fbfbff; transform: translateY(-1px); }
.quick-action .stat-icon { width: 30px; height: 30px; }
.quick-action strong { display: block; color: #47485d; font-size: 10px; font-weight: 680; }
.quick-action span:not(.stat-icon) { display: block; margin-top: 3px; color: #a2a3b0; font-size: 9px; }
/* File browser */
.toolbar { display: flex; align-items: center; gap: 9px; margin: -5px 0 15px; }
.toolbar-spacer { flex: 1; }
.select-control { height: 36px; padding: 0 28px 0 11px; border: 1px solid #e9e9f0; border-radius: 10px; background-color: #fff; color: #76778a; font-size: 10px; outline: none; }
.view-toggle { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #ededf3; border-radius: 10px; background: #fff; }
.view-toggle .icon-button { width: 30px; height: 28px; border-radius: 7px; }
.view-toggle .icon-button.active { background: #f0f0ff; color: var(--violet); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; color: #a0a1ae; font-size: 10px; }
.breadcrumbs button { padding: 2px 1px; border: 0; background: transparent; color: #85869a; font-size: 10px; }
.breadcrumbs button:hover { color: var(--violet); }
.breadcrumbs strong { color: #55566e; font-weight: 650; }
.section-caption { margin: 22px 0 10px; color: #8c8da0; font-size: 10px; font-weight: 720; letter-spacing: .55px; text-transform: uppercase; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(205px,1fr)); gap: 11px; margin-bottom: 19px; }
.folder-card { min-width: 0; display: flex; align-items: center; gap: 11px; padding: 13px 13px; border: 1px solid #ededf4; border-radius: 14px; background: #fff; transition: all .17s ease; cursor: pointer; }
.folder-card:hover { border-color: #dcdcfa; background: #fdfdff; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.folder-symbol { width: 39px; height: 35px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 11px; background: #f1f0ff; color: #7273e8; }
.folder-card:nth-child(3n+2) .folder-symbol { background: #eef6ff; color: #5c8cde; }
.folder-card:nth-child(3n+3) .folder-symbol { background: #fdf3e8; color: #d69a4e; }
.folder-card-text { min-width: 0; flex: 1; }
.folder-card-name { overflow: hidden; color: #4a4b60; font-size: 11px; font-weight: 670; text-overflow: ellipsis; white-space: nowrap; }
.folder-card-sub { margin-top: 4px; color: #a4a5b1; font-size: 9px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 12px; }
.file-card { min-width: 0; position: relative; padding: 14px; border: 1px solid #ededf3; border-radius: 15px; background: #fff; transition: all .17s ease; }
.file-card:hover { border-color: #dedeF8; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.file-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.file-card .file-type-icon { width: 42px; height: 42px; }
.file-card .icon-button { width: 29px; height: 29px; }
.file-card-name { display: block; width: 100%; overflow: hidden; margin: 12px 0 5px; padding: 0; border: 0; background: transparent; color: #414256; font-size: 11px; font-weight: 660; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.file-card-name:hover { color: var(--violet); }
.file-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: #a2a3b0; font-size: 9px; }
.star-button { color: #b0b1bf; }
.star-button.starred { color: #e7a842; }
.file-list { overflow: hidden; border: 1px solid #ededf3; border-radius: 15px; background: #fff; }
.file-list-head, .file-row { display: grid; grid-template-columns: minmax(180px,1.7fr) minmax(90px,.7fr) minmax(95px,.8fr) 70px; align-items: center; gap: 12px; padding: 0 16px; }
.file-list-head { min-height: 38px; border-bottom: 1px solid #f1f1f5; color: #a1a2b0; font-size: 9px; font-weight: 680; text-transform: uppercase; letter-spacing: .55px; }
.file-row { min-height: 57px; border-bottom: 1px solid #f4f4f7; }
.file-row:last-child { border-bottom: 0; }
.file-row-main { min-width: 0; display: flex; align-items: center; gap: 10px; }
.file-row-main .file-type-icon { width: 34px; height: 34px; border-radius: 10px; }
.file-row-name { min-width: 0; overflow: hidden; border: 0; padding: 0; background: transparent; color: #494a5f; font-size: 10px; font-weight: 640; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.file-row-sub, .file-row-size, .file-row-date { color: #a0a1ae; font-size: 9px; }
.file-row-size, .file-row-date { white-space: nowrap; }
.file-row-actions { display: flex; justify-content: flex-end; gap: 2px; }
.file-row-actions .icon-button { width: 28px; height: 28px; }
.file-menu { display: flex; justify-content: flex-end; }
.file-menu-list { position: absolute; z-index: 10; right: 11px; top: 47px; min-width: 152px; padding: 5px; border: 1px solid #ebebf2; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.file-menu-list button { width: 100%; min-height: 33px; display: flex; align-items: center; gap: 9px; padding: 0 9px; border: 0; border-radius: 8px; background: transparent; color: #66677b; font-size: 10px; text-align: left; }
.file-menu-list button:hover { background: #f6f6fc; color: var(--violet); }
.file-menu-list button.danger { color: #c85d6b; }
.file-menu-list button .icon { width: 15px; height: 15px; }
.empty-state { min-height: 195px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; }
.empty-art { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 21px; background: linear-gradient(145deg,#f1f0ff,#edf6ff); color: #7374e7; }
.empty-art .icon { width: 29px; height: 29px; }
.empty-state h3 { margin: 13px 0 5px; color: #525369; font-size: 13px; }
.empty-state p { max-width: 300px; margin: 0; color: #a0a1af; font-size: 10px; line-height: 1.55; }
.empty-state .button { margin-top: 15px; }
/* Storage */
.storage-overview { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(250px,.85fr); gap: 16px; }
.storage-card { padding: 22px; border: 1px solid #ededf3; border-radius: 17px; background: #fff; }
.storage-card-title { margin: 0; color: #46475c; font-size: 13px; font-weight: 680; }
.storage-number { margin: 16px 0 4px; color: #303147; font-size: 31px; font-weight: 740; letter-spacing: -1.2px; }
.storage-caption { color: #9a9baa; font-size: 10px; }
.storage-large-track { height: 9px; margin: 19px 0 10px; border-radius: 99px; background: #eeeeF5; overflow: hidden; }
.storage-large-track .progress-fill { background: linear-gradient(90deg,#8586fa,#5758d7); }
.storage-key { display: flex; justify-content: space-between; color: #9293a4; font-size: 10px; }
.breakdown-list { display: grid; gap: 16px; margin-top: 18px; }
.breakdown-item { display: grid; grid-template-columns: 84px 1fr 50px; align-items: center; gap: 10px; }
.breakdown-name { color: #6b6c80; font-size: 10px; }
.breakdown-bar { height: 7px; overflow: hidden; border-radius: 99px; background: #f0f0f5; }
.breakdown-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#8a8bf8,#6263dc); }
.breakdown-value { color: #9c9dac; font-size: 9px; text-align: right; }
/* Settings/profile */
.settings-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(230px,.8fr); gap: 15px; }
.settings-card { padding: 20px; border: 1px solid #ededf3; border-radius: 16px; background: #fff; }
.settings-card h3 { margin: 0 0 4px; color: #45465c; font-size: 13px; }
.settings-card > p { margin: 0 0 17px; color: #9a9baa; font-size: 10px; line-height: 1.55; }
.form-field { display: grid; gap: 7px; margin-bottom: 14px; }
.form-field label { color: #6e6f83; font-size: 10px; font-weight: 660; }
.form-input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #e9e9f0; border-radius: 10px; background: #fff; color: var(--ink); font-size: 12px; outline: none; transition: border .16s ease, box-shadow .16s ease; }
.form-input:focus { border-color: #b8b9f4; box-shadow: 0 0 0 3px rgba(91,92,226,.08); }
.form-input[readonly], .form-input:disabled { background: #f8f8fb; color: #9c9dad; }
.inline-alert { display: none; margin: 0 0 14px; padding: 10px 12px; border: 1px solid #f0d9dc; border-radius: 10px; background: #fff8f8; color: #bd5965; font-size: 10px; line-height: 1.5; }
.inline-alert.show { display: block; }
.note-card { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid #ededf3; border-radius: 13px; background: #fcfcff; color: #9899aa; font-size: 10px; line-height: 1.55; }
.note-card .icon { color: var(--violet); }
/* Auth */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.02fr) minmax(400px,.98fr); background: #fff; }
.auth-side { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: 34px 6vw 27px; background: linear-gradient(143deg,#f2f1ff 0%,#f8f8ff 53%,#edf5ff 100%); }
.auth-side::before, .auth-side::after { content: ""; position: absolute; border: 1px solid rgba(96,97,215,.08); border-radius: 50%; }
.auth-side::before { width: 480px; height: 480px; right: -140px; top: 19%; box-shadow: 0 0 0 38px rgba(96,97,215,.025),0 0 0 76px rgba(96,97,215,.018); }
.auth-side::after { width: 210px; height: 210px; left: -80px; bottom: -60px; }
.auth-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 760; letter-spacing: -.65px; }
.auth-quote { position: relative; z-index: 1; max-width: 500px; margin: auto 0; padding: 50px 0; }
.auth-quote .eyebrow { color: #7172d9; }
.auth-quote h1 { max-width: 460px; margin: 12px 0; color: #2f304b; font-size: clamp(34px,4.5vw,54px); font-weight: 720; letter-spacing: -2.1px; line-height: 1.09; }
.auth-quote h1 span { color: var(--violet); }
.auth-quote p { max-width: 380px; margin: 14px 0 0; color: #85869d; font-size: 13px; line-height: 1.75; }
.auth-points { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 30px; }
.auth-point { display: inline-flex; align-items: center; gap: 7px; color: #777991; font-size: 10px; }
.auth-point .icon { width: 16px; height: 16px; color: #6667db; }
.auth-copyright { position: relative; z-index: 1; color: #a2a3b2; font-size: 10px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 34px 8%; }
.auth-form-wrap { width: 100%; max-width: 390px; }
.auth-mobile-brand { display: none; }
.auth-title { margin: 0; color: #2f3045; font-size: 26px; font-weight: 720; letter-spacing: -.8px; }
.auth-intro { margin: 8px 0 24px; color: #9697a7; font-size: 11px; line-height: 1.6; }
.auth-form .form-field { margin-bottom: 15px; }
.auth-form .form-input { height: 45px; }
.password-wrap { position: relative; }
.password-wrap .form-input { padding-right: 43px; }
.password-toggle { position: absolute; right: 6px; top: 50%; width: 33px; height: 33px; transform: translateY(-50%); border: 0; border-radius: 8px; background: transparent; color: #999aaa; }
.password-toggle:hover { color: var(--violet); background: #f6f6ff; }
.auth-forgot { display: block; margin-top: -3px; margin-bottom: 16px; color: var(--violet); font-size: 10px; font-weight: 650; text-align: right; }
.auth-submit { width: 100%; min-height: 44px; margin-top: 4px; }
.auth-switch { margin-top: 19px; color: #9293a2; font-size: 10px; text-align: center; }
.auth-switch a { color: var(--violet); font-weight: 680; }
.auth-legal { margin-top: 23px; padding-top: 15px; border-top: 1px solid #f0f0f5; color: #a3a4b0; font-size: 9px; line-height: 1.6; }
/* Dialogs and notices */
.modal { width: min(510px,calc(100vw - 26px)); max-height: min(90vh,820px); padding: 0; overflow: auto; border: 1px solid #e9e9f0; border-radius: 19px; background: #fff; color: var(--ink); box-shadow: 0 24px 80px rgba(28,29,63,.2); }
.modal::backdrop { background: rgba(36,37,65,.36); backdrop-filter: blur(3px); }
.modal-wide { width: min(700px,calc(100vw - 26px)); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 15px; border-bottom: 1px solid #f0f0f5; }
.modal-head h2 { margin: 0; color: #36374c; font-size: 15px; font-weight: 700; }
.modal-head p { margin: 5px 0 0; color: #9a9baa; font-size: 10px; line-height: 1.5; }
.modal-body { padding: 19px 22px 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.upload-zone { min-height: 165px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 19px; border: 1px dashed #bfc0ed; border-radius: 15px; background: linear-gradient(140deg,#fbfaff,#f5f7ff); color: #7475dc; text-align: center; transition: all .16s ease; }
.upload-zone.dragging { border-color: #696ae2; background: #f0f0ff; box-shadow: inset 0 0 0 2px rgba(91,92,226,.06); }
.upload-zone .empty-art { width: 45px; height: 45px; border-radius: 15px; }
.upload-zone .empty-art .icon { width: 22px; height: 22px; }
.upload-zone strong { margin-top: 9px; color: #5657b6; font-size: 11px; }
.upload-zone span { margin-top: 5px; color: #a1a2b1; font-size: 9px; }
.upload-queue { display: grid; gap: 8px; margin-top: 13px; }
.upload-queue-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #f0f0f5; border-radius: 11px; }
.upload-file-meta { min-width: 0; }
.upload-file-name { overflow: hidden; color: #56576b; font-size: 10px; font-weight: 640; text-overflow: ellipsis; white-space: nowrap; }
.upload-file-status { margin-top: 4px; color: #a1a2b0; font-size: 9px; }
.upload-progress { height: 4px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #efeff5; }
.upload-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#8c8df8,#5657d8); transition: width .15s linear; }
.preview-frame { min-height: 200px; display: flex; align-items: center; justify-content: center; overflow: auto; border-radius: 12px; background: #f6f6fa; }
.preview-frame img, .preview-frame video, .preview-frame iframe { display: block; max-width: 100%; max-height: 65vh; border: 0; }
.preview-frame audio { width: min(420px,100%); }
.preview-note { color: #8e8fa1; font-size: 10px; line-height: 1.55; text-align: center; }
.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { max-width: min(390px,calc(100vw - 40px)); display: flex; align-items: flex-start; gap: 9px; padding: 12px 14px; border: 1px solid #e9e9f0; border-radius: 12px; background: #fff; color: #525367; box-shadow: 0 10px 32px rgba(29,30,60,.14); font-size: 10px; line-height: 1.45; animation: toast-in .2s ease both; }
.toast .icon { color: var(--green); }
.toast.error .icon { color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.spinner { width: 15px; height: 15px; display: inline-block; border: 2px solid #e4e4f2; border-top-color: var(--violet); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-panel { min-height: 155px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #999aab; font-size: 10px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
@media (max-width: 1120px) {
  .app-shell { grid-template-columns: 226px minmax(0,1fr); }
  .main-area { padding-right: 25px; padding-left: 25px; }
  .stats-grid { gap: 10px; }
  .stat-card { padding: 15px; }
  .dashboard-columns { grid-template-columns: minmax(0,1.35fr) minmax(220px,.8fr); }
}
@media (max-width: 850px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-104%); transition: transform .22s ease; box-shadow: 14px 0 44px rgba(30,31,61,.12); }
  .app-shell.mobile-open .sidebar { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(35,36,61,.3); }
  .app-shell.mobile-open .sidebar-backdrop { display: block; }
  .mobile-menu { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ebebf2; border-radius: 11px; background: #fff; color: #77788e; }
  .main-area { padding-right: 26px; padding-left: 26px; }
  .topbar { height: 68px; }
  .search-wrap { width: min(390px,56vw); }
  .dashboard-columns { grid-template-columns: minmax(0,1.2fr) minmax(210px,.8fr); }
  .auth-shell { grid-template-columns: .82fr 1.18fr; }
  .auth-side { padding-right: 4vw; padding-left: 4vw; }
  .auth-main { padding: 28px 6%; }
}
@media (max-width: 650px) {
  .main-area { padding: 0 16px 26px; }
  .topbar { height: 62px; gap: 9px; }
  .topbar-note { display: none; }
  .search-wrap { width: auto; flex: 1; }
  .search-input { height: 38px; padding-left: 37px; font-size: 11px; }
  .search-wrap .icon { left: 12px; width: 16px; height: 16px; }
  .topbar-avatar { display: none; }
  .page-heading { align-items: flex-start; padding: 24px 0 18px; }
  .page-heading.compact { display: block; }
  .page-heading.compact .heading-actions { margin-top: 15px; }
  .page-title { font-size: 26px; }
  .page-subtitle { max-width: 340px; font-size: 11px; }
  .heading-actions { gap: 7px; }
  .button { min-height: 38px; padding: 0 11px; font-size: 10px; }
  .button .icon { width: 16px; height: 16px; }
  .hero-card { min-height: 170px; padding: 22px 20px; }
  .hero-art { width: 90px; transform: scale(.8); transform-origin: right center; margin-right: -7px; }
  .hero-copy p { max-width: 285px; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 12px 0 14px; }
  .stat-card { padding: 13px; }
  .stat-value { margin-top: 10px; font-size: 20px; }
  .dashboard-columns, .storage-overview, .settings-grid { grid-template-columns: 1fr; gap: 12px; }
  .quick-panel { order: -1; }
  .toolbar { flex-wrap: wrap; }
  .toolbar-spacer { flex-basis: 100%; order: 3; height: 0; }
  .folder-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .folder-card { padding: 10px; gap: 8px; }
  .folder-symbol { width: 34px; height: 32px; }
  .folder-card-name { font-size: 10px; }
  .file-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .file-card { padding: 11px; }
  .file-card .file-type-icon { width: 37px; height: 37px; }
  .file-list-head { display: none; }
  .file-row { grid-template-columns: minmax(0,1fr) auto; min-height: 64px; gap: 7px; padding: 0 10px; }
  .file-row-size { display: none; }
  .file-row-date { grid-column: 1; margin: -12px 0 9px 44px; }
  .file-row-actions { grid-column: 2; grid-row: 1 / span 2; }
  .recent-date { display: none; }
  .auth-shell { display: block; min-height: 100vh; }
  .auth-side { display: none; }
  .auth-main { min-height: 100vh; align-items: flex-start; padding: 29px 23px 35px; }
  .auth-form-wrap { max-width: 420px; margin: auto; }
  .auth-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 49px; font-size: 18px; font-weight: 760; }
  .auth-mobile-brand .brand-mark { width: 32px; height: 32px; }
  .auth-title { font-size: 25px; }
  .auth-intro { margin-bottom: 21px; }
  .modal-head { padding: 17px 17px 13px; }
  .modal-body { padding: 16px 17px 18px; }
  .toast-region { left: 12px; right: 12px; bottom: 12px; }
  .toast { max-width: none; }
}
@media (max-width: 390px) {
  .main-area { padding-right: 12px; padding-left: 12px; }
  .heading-actions .button { padding: 0 9px; }
  .heading-actions .button .button-label { display: none; }
  .folder-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-card { min-height: auto; }
  .file-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .file-card-name { font-size: 10px; }
}
