@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',sans-serif;color-scheme:dark;--bg:#10121a;--panel:#171a25;--panel-2:#1d2130;--panel-3:#24293a;--text:#f2f3f8;--muted:#9299ad;--line:rgba(255,255,255,.075);--accent:#9185ff;--accent-2:#6c61e8;--mint:#45c9a7;--amber:#e7b76a;--danger:#f07883;--shadow:0 18px 55px rgba(0,0,0,.28);--radius:18px}
:root[data-theme="light"]{color-scheme:light;--bg:#f5f6fa;--panel:#fff;--panel-2:#f0f1f7;--panel-3:#e8eaf2;--text:#202335;--muted:#777f94;--line:rgba(25,32,58,.09);--accent:#7064e8;--accent-2:#5c50d5;--mint:#1b9d7e;--amber:#b17b2c;--danger:#d44f60;--shadow:0 18px 55px rgba(30,35,65,.12)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-size:14px;min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer}svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.hidden{display:none!important}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:700;color:var(--accent);margin:0 0 11px}.svg-library{position:absolute;width:0;height:0;overflow:hidden}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(ellipse at 50% 30%,rgba(119,104,255,.13),transparent 50%),var(--bg)}.login-card{width:min(100%,420px);background:var(--panel);border:1px solid var(--line);border-radius:26px;padding:42px;box-shadow:var(--shadow)}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;overflow:hidden;flex:none}.brand-mark img{width:100%;height:100%}.brand-mark.large{width:54px;height:54px;border-radius:17px;margin-bottom:30px}.login-card h1{font:800 32px Manrope,sans-serif;letter-spacing:-1.2px;margin:0 0 8px}.login-copy{line-height:1.7;margin:0 0 30px}.login-card label{display:block;font-size:12px;font-weight:600;margin:0 0 9px}.password-wrap{position:relative}.password-wrap input{width:100%;height:48px;background:var(--panel-2);border:1px solid var(--line);border-radius:11px;color:var(--text);padding:0 48px 0 14px;outline:none}.password-wrap input:focus,.search-box:focus-within,textarea:focus,input:focus{border-color:var(--accent)}.reveal{position:absolute;right:5px;top:5px}.primary-button{border:0;border-radius:11px;background:var(--accent);color:white;font-weight:700;padding:0 17px;height:44px;display:inline-flex;align-items:center;justify-content:center;gap:12px;transition:.2s}.primary-button:hover{background:var(--accent-2);transform:translateY(-1px)}.primary-button svg{width:17px}.primary-button.full{width:100%;margin-top:16px}.error-text{color:var(--danger);font-size:12px;min-height:16px;margin:10px 0 0}.login-foot{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;margin-top:28px}.login-foot svg{width:15px;color:var(--mint)}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:var(--panel);border-right:1px solid var(--line);padding:27px 17px 18px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--text);font:800 17px Manrope,sans-serif;letter-spacing:-.5px;padding:0 8px 42px}.brand>span:last-child{line-height:1.2}.brand-accent,.mobile-brand span{color:var(--accent)}.brand small{display:block;font:600 8px 'DM Sans';letter-spacing:1.6px;color:var(--muted);margin-top:5px}.nav-label{font-size:9px;font-weight:700;letter-spacing:1.5px;color:var(--muted);padding:0 11px 12px}.main-nav{display:grid;gap:5px}.nav-item{height:43px;border:0;background:transparent;color:var(--muted);border-radius:10px;display:flex;align-items:center;gap:12px;padding:0 11px;text-align:left;width:100%;font-size:12px;font-weight:600;transition:.18s}.nav-item svg{width:17px;height:17px}.nav-item:hover{background:var(--panel-2);color:var(--text)}.nav-item.active{background:rgba(145,133,255,.13);color:var(--accent)}.nav-item kbd{margin-left:auto;font-size:9px;color:var(--muted)}.nav-count,.theme-mode{margin-left:auto;font-size:10px;color:var(--muted);background:var(--panel-2);padding:3px 7px;border-radius:6px}.sidebar-bottom{margin-top:auto}.storage-card{padding:15px 12px;background:var(--panel-2);border:1px solid var(--line);border-radius:12px;margin-bottom:15px}.storage-head{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-bottom:10px}.storage-head strong{color:var(--text);font-size:10px}.storage-track{height:4px;border-radius:8px;background:var(--panel-3);overflow:hidden}.storage-track span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--accent),var(--mint));border-radius:8px}.storage-card small{display:block;font-size:9px;color:var(--muted);margin-top:9px}.profile{border-top:1px solid var(--line);margin-top:14px;padding:17px 4px 0;display:flex;align-items:center;gap:10px}.avatar{width:33px;height:33px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(140deg,#8276f6,#43c6a7);color:white;font-weight:800}.profile strong,.profile small{display:block}.profile strong{font-size:11px}.profile small{font-size:9px;color:var(--muted);margin-top:4px}.online-dot{width:7px;height:7px;border-radius:50%;background:var(--mint);margin-left:auto}
.main-content{margin-left:248px;max-width:1600px;padding:0 54px 24px}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}.breadcrumb{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:11px}.breadcrumb svg{width:13px}.breadcrumb strong{color:var(--text);font-weight:600}.top-actions{display:flex;align-items:center;gap:15px}.connection{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:10px}.connection i,.app-footer i{width:6px;height:6px;border-radius:50%;background:var(--amber);display:inline-block}.connection.connected i,.app-footer .connected i{background:var(--mint);box-shadow:0 0 0 3px rgba(69,201,167,.12)}.icon-button{width:34px;height:34px;border:0;border-radius:9px;background:transparent;color:var(--muted);display:grid;place-items:center}.icon-button:hover{background:var(--panel-2);color:var(--text)}.icon-button svg{width:17px}.mobile-brand,.theme-mobile{display:none}.avatar.mini{border:0;width:30px;height:30px;font-size:12px}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;padding:40px 0 26px}.page-heading h1{font:800 clamp(25px,3vw,34px) Manrope,sans-serif;letter-spacing:-1.5px;margin:0 0 8px}.page-heading h1 span{color:var(--accent)}.page-heading .muted{margin:0;font-size:12px}.upload-trigger{height:42px}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.quick-card{min-height:83px;padding:15px;border:1px solid var(--line);border-radius:14px;background:var(--panel);display:flex;align-items:center;gap:12px;text-align:left;color:var(--text);transition:.2s}.quick-card:hover{border-color:rgba(145,133,255,.4);transform:translateY(-2px)}.quick-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:11px}.quick-icon svg{width:18px}.quick-icon.violet{background:rgba(145,133,255,.14);color:var(--accent)}.quick-icon.mint{background:rgba(69,201,167,.13);color:var(--mint)}.quick-icon.amber{background:rgba(231,183,106,.13);color:var(--amber)}.quick-card strong,.quick-card small{display:block}.quick-card strong{font-size:11px}.quick-card small{font-size:9px;color:var(--muted);margin-top:5px}.quick-arrow{margin-left:auto;color:var(--muted);width:15px}.library-section{margin-top:39px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:17px}.section-head h2{font:700 17px Manrope,sans-serif;letter-spacing:-.4px;margin:0 0 5px}.section-head p{font-size:10px;margin:0}.list-tools{display:flex;gap:9px;align-items:center}.search-box{width:230px;height:36px;border:1px solid var(--line);border-radius:9px;display:flex;align-items:center;gap:8px;padding:0 9px;background:var(--panel)}.search-box svg{width:15px;color:var(--muted)}.search-box input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:10px;min-width:0}.search-box kbd{font-size:9px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:2px 5px}.view-switch{display:flex;border:1px solid var(--line);border-radius:8px;padding:3px;background:var(--panel)}.view-switch button{width:27px;height:26px;display:grid;place-items:center;border:0;background:transparent;color:var(--muted);border-radius:5px}.view-switch button svg{width:14px}.view-switch button.selected{background:var(--panel-3);color:var(--text)}.items-container{min-height:180px}.item-list{border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel)}.item-row{display:flex;align-items:center;gap:13px;padding:13px 16px;border-bottom:1px solid var(--line);min-height:68px}.item-row:last-child{border-bottom:0}.file-symbol{width:38px;height:38px;display:grid;place-items:center;flex:none;border-radius:11px;background:var(--panel-2);color:var(--accent)}.file-symbol svg{width:18px}.file-symbol.image{color:var(--mint)}.file-symbol.archive{color:var(--amber)}.file-symbol.note{color:var(--mint)}.file-symbol.link{color:var(--amber)}.item-main{min-width:0;flex:1}.item-main strong{display:block;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-main small{display:block;color:var(--muted);font-size:9px;margin-top:5px}.item-meta{font-size:9px;color:var(--muted);white-space:nowrap}.item-actions{display:flex;gap:3px;opacity:.7}.item-actions button{width:29px;height:29px;display:grid;place-items:center;border:0;border-radius:7px;background:transparent;color:var(--muted)}.item-actions button:hover{background:var(--panel-3);color:var(--text)}.item-actions svg{width:14px}.item-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:12px}.item-grid .item-row{border:1px solid var(--line);border-radius:13px;background:var(--panel);padding:15px;align-items:flex-start;min-height:120px;flex-wrap:wrap}.item-grid .item-meta{width:100%;padding-left:51px}.item-grid .item-actions{margin-left:auto}.empty-state,.loading-state{min-height:190px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--muted);gap:10px;font-size:11px}.empty-state .empty-icon{width:47px;height:47px;border-radius:15px;display:grid;place-items:center;background:var(--panel);color:var(--accent)}.empty-state strong{font-size:13px;color:var(--text)}.empty-state p{margin:0}.spinner{width:20px;height:20px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-footer{display:flex;justify-content:space-between;color:var(--muted);font-size:9px;padding:27px 0 0}.footer-dot{padding:0 5px}.app-footer span:last-child{display:flex;align-items:center;gap:7px}
.modal-backdrop{position:fixed;inset:0;background:rgba(5,7,13,.65);backdrop-filter:blur(7px);z-index:20;display:grid;place-items:center;padding:20px}.modal{width:min(100%,510px);background:var(--panel);border:1px solid var(--line);border-radius:20px;padding:25px;box-shadow:var(--shadow)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.modal-head h2{font:750 21px Manrope,sans-serif;margin:0;letter-spacing:-.7px}.modal textarea,.modal input[type=text],.modal input[type=url]{width:100%;border:1px solid var(--line);background:var(--panel-2);border-radius:10px;padding:13px;color:var(--text);outline:0;font-size:12px}.modal textarea{min-height:155px;resize:vertical;line-height:1.6}.field-label{display:block;font-size:11px;font-weight:600;margin:0 0 8px}.modal-field{margin-bottom:16px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:18px}.secondary-button{height:40px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--muted);font-weight:600;font-size:11px}.drop-zone{border:1px dashed rgba(145,133,255,.5);background:rgba(145,133,255,.06);border-radius:13px;padding:30px 15px;text-align:center;color:var(--muted)}.drop-zone.dragover{background:rgba(145,133,255,.13);border-color:var(--accent)}.drop-zone svg{width:28px;height:28px;color:var(--accent);margin-bottom:10px}.drop-zone strong{display:block;color:var(--text);font-size:12px}.drop-zone p{font-size:10px;margin:6px 0 0}.upload-progress{height:5px;background:var(--panel-3);border-radius:8px;margin-top:15px;overflow:hidden}.upload-progress span{height:100%;width:0;display:block;background:var(--mint);transition:width .15s}.toast-region{position:fixed;right:22px;bottom:22px;z-index:40;display:grid;gap:8px}.toast{background:var(--panel-3);border:1px solid var(--line);border-radius:10px;padding:12px 15px;box-shadow:var(--shadow);font-size:11px;display:flex;align-items:center;gap:9px;animation:toast-in .2s ease}.toast svg{width:15px;color:var(--mint)}.toast.error svg{color:var(--danger)}@keyframes toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(max-width:1100px){.main-content{padding:0 32px 22px}.sidebar{width:220px}.main-content{margin-left:220px}.quick-actions{gap:9px}.quick-card{padding:12px}}
@media(max-width:760px){.sidebar{width:100%;height:64px;inset:auto 0 0;border-right:0;border-top:1px solid var(--line);padding:5px 8px calc(5px + env(safe-area-inset-bottom));display:block}.brand,.nav-label,.sidebar-bottom{display:none}.main-nav{height:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:3px}.nav-item{height:52px;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:3px;font-size:9px}.nav-item svg{width:17px;height:17px}.nav-item kbd,.nav-count{display:none}.main-content{margin:0;padding:0 18px 92px}.topbar{height:60px}.breadcrumb{display:none}.mobile-brand{display:flex;align-items:center;gap:7px;font:800 14px Manrope,sans-serif}.mobile-brand img{width:27px;height:27px}.top-actions{gap:9px}.connection span{display:none}.theme-mobile{display:grid}.avatar.mini{display:grid}.page-heading{padding:28px 0 21px;align-items:flex-start;gap:10px}.page-heading h1{font-size:25px;line-height:1.18}.page-heading .muted{font-size:10px;max-width:250px;line-height:1.5}.upload-trigger{height:37px;padding:0 11px;gap:6px;font-size:10px;white-space:nowrap}.upload-trigger svg{width:14px}.quick-actions{grid-template-columns:1fr;gap:8px}.quick-card{min-height:65px;padding:10px 12px}.quick-icon{width:36px;height:36px}.quick-card small{font-size:9px}.library-section{margin-top:28px}.section-head{align-items:flex-start;gap:12px;flex-direction:column}.section-head h2{font-size:16px}.list-tools{width:100%}.search-box{flex:1;width:auto}.view-switch{display:none}.item-row{padding:11px 10px;gap:9px}.file-symbol{width:34px;height:34px}.item-main strong{font-size:10px}.item-main small{font-size:8px}.item-meta{display:none}.item-actions{opacity:1}.item-actions button{width:27px;height:27px}.app-footer{font-size:8px;gap:10px}.app-footer span:last-child{white-space:nowrap}.modal{padding:20px}.login-card{padding:30px 24px}.toast-region{left:15px;right:15px;bottom:82px}.toast{justify-content:center}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}



/* ============================================================
   PERSONALDROP — "DROPZONE" REDESIGN
   A new visual direction: horizontal app bar, warm workspace,
   bold hero panel, bento actions and card-based library.
   Existing IDs and JS hooks are intentionally preserved.
   ============================================================ */
:root {
  --bg: #f3f5f1;
  --panel: #ffffff;
  --panel-2: #f7f8f5;
  --panel-3: #e9eee8;
  --text: #17251f;
  --muted: #718078;
  --line: #e2e8e1;
  --accent: #176b52;
  --accent-2: #0f503d;
  --mint: #27a67d;
  --amber: #d88b37;
  --danger: #d94d58;
  --shadow: 0 18px 48px rgba(29, 55, 42, .08);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #101914;
  --panel: #18251e;
  --panel-2: #202f27;
  --panel-3: #2b3c32;
  --text: #f0f5f0;
  --muted: #a1b0a5;
  --line: #304137;
  --accent: #67d2a7;
  --accent-2: #38b98a;
  --mint: #73d9b3;
  --amber: #e6ae68;
  --danger: #ff7c86;
  --shadow: 0 18px 48px rgba(0, 0, 0, .24);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background:
    radial-gradient(ellipse at 12% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 21px; height: 21px; }
.hidden { display: none !important; }

/* A real app bar replaces the old fixed sidebar */
.sidebar {
  position: sticky;
  top: 0;
  inset: auto;
  width: 100%;
  height: 82px;
  padding: 0 max(28px, calc((100vw - 1440px) / 2));
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 42px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 0;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  z-index: 10;
}
.brand {
  padding: 0;
  gap: 12px;
  font-size: 20px;
  letter-spacing: -1px;
  flex: none;
}
.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-2);
}
.brand small { font-size: 9px; letter-spacing: 1.8px; margin-top: 3px; }
.nav-label { display: none; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
}
.nav-item {
  width: auto;
  min-height: 43px;
  padding: 0 15px;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: row;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-item svg { width: 18px; height: 18px; }
.nav-item.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, var(--panel));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 13%, transparent);
}
.nav-item:hover { background: var(--panel-2); color: var(--text); }
.nav-item kbd { display: none; }
.nav-count, .theme-mode {
  margin-left: 2px;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 7px;
  background: var(--panel-3);
}
.sidebar-bottom {
  margin: 0 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
}
.storage-card { display: none; }
.sidebar-bottom > .nav-item {
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  justify-content: center;
  font-size: 0;
  gap: 0;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.sidebar-bottom > .nav-item svg { width: 19px; height: 19px; }
.sidebar-bottom > .nav-item .theme-mode { display: none; }
.profile { display: none; }
.online-dot { display: none; }

/* Main canvas and top context bar */
.main-content {
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 42px 46px;
}
.topbar {
  height: 62px;
  border: 0;
  border-bottom: 1px solid var(--line);
}
.breadcrumb { font-size: 13px; gap: 10px; }
.breadcrumb strong { font-weight: 800; }
.top-actions { gap: 12px; }
.connection {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
}
.connection i, .app-footer i { width: 8px; height: 8px; }
.icon-button { width: 40px; height: 40px; border-radius: 12px; }
.avatar.mini { width: 38px; height: 38px; border-radius: 13px; }

/* Hero: intentionally new composition and color treatment */
.page-heading {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  margin: 30px 0 24px;
  padding: 38px 42px;
  align-items: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 15%, rgba(180, 239, 207, .23), transparent 16rem),
    linear-gradient(118deg, #164f3d 0%, #176b52 53%, #278a68 100%);
  color: #f6fff9;
  box-shadow: 0 18px 45px rgba(20, 91, 65, .18);
}
:root[data-theme="dark"] .page-heading {
  background:
    radial-gradient(circle at 85% 15%, rgba(160, 239, 198, .17), transparent 16rem),
    linear-gradient(118deg, #173d30 0%, #1d6048 58%, #27785a 100%);
}
.page-heading::after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  right: 9%;
  top: -125px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(255,255,255,.035), 0 0 0 58px rgba(255,255,255,.025);
  pointer-events: none;
}
.page-heading > div, .page-heading > button { position: relative; z-index: 1; }
.page-heading .eyebrow { color: #b9ead1; font-size: 11px; letter-spacing: 2px; margin-bottom: 14px; }
.page-heading h1 {
  color: #fff;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -2px;
  margin: 0 0 13px;
}
.page-heading h1 span { color: #a7efc8; }
.page-heading .muted { color: rgba(244,255,248,.78); font-size: 15px; }
.upload-trigger {
  height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  background: #f7fff9;
  color: #15543e;
  box-shadow: 0 8px 20px rgba(0,0,0,.13);
  font-size: 14px;
  font-weight: 800;
}
.upload-trigger:hover { background: white; color: #0e3f2f; }

/* Bento quick actions */
.quick-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.quick-card {
  min-height: 126px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 6px 22px rgba(28, 53, 39, .035);
  gap: 15px;
}
.quick-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  box-shadow: var(--shadow);
}
.quick-icon {
  width: 53px;
  height: 53px;
  border-radius: 17px;
}
.quick-icon svg { width: 24px; height: 24px; }
.quick-icon.violet { background: #eeeaff; color: #7159d9; }
.quick-icon.mint { background: #e0f6ec; color: #16865f; }
.quick-icon.amber { background: #fff1dc; color: #b87822; }
:root[data-theme="dark"] .quick-icon.violet { background: #393151; color: #c1b1ff; }
:root[data-theme="dark"] .quick-icon.mint { background: #214a3b; color: #7ee0b6; }
:root[data-theme="dark"] .quick-icon.amber { background: #4a3a27; color: #f1bd72; }
.quick-card strong { font-size: 15px; font-weight: 800; }
.quick-card small { font-size: 12px; margin-top: 5px; }
.quick-arrow { width: 19px; }

/* Library is a visual card collection rather than a compact file table */
.library-section { margin-top: 46px; }
.section-head { margin-bottom: 20px; align-items: center; }
.section-head h2 { font-size: 23px; font-weight: 850; letter-spacing: -.7px; margin-bottom: 4px; }
.section-head p { font-size: 13px; }
.list-tools { gap: 10px; }
.search-box {
  width: 280px;
  height: 46px;
  padding: 0 13px;
  border-radius: 13px;
  background: var(--panel);
  border-color: var(--line);
}
.search-box svg { width: 18px; }
.search-box input { font-size: 13px; }
.search-box kbd { font-size: 10px; }
.view-switch { border-radius: 12px; padding: 4px; }
.view-switch button { width: 34px; height: 32px; border-radius: 8px; }
.view-switch button svg { width: 17px; }

/* Two-column file cards with strong visual hierarchy */
.item-list, .item-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.item-row, .item-grid .item-row {
  position: relative;
  min-height: 112px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 5px 20px rgba(27, 51, 37, .035);
  gap: 14px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.item-row:hover, .item-grid .item-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}
.file-symbol {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--panel-2);
}
.file-symbol svg { width: 24px; height: 24px; }
.file-symbol.image { background: #e3f5ec; color: #16865f; }
.file-symbol.archive { background: #fff0d9; color: #b87822; }
.file-symbol.note { background: #e8edff; color: #5a6fc7; }
.file-symbol.link { background: #fff0e6; color: #c46c36; }
:root[data-theme="dark"] .file-symbol.image { background: #214a3b; color: #7ee0b6; }
:root[data-theme="dark"] .file-symbol.archive { background: #4a3a27; color: #f1bd72; }
:root[data-theme="dark"] .file-symbol.note { background: #303c5d; color: #aebeff; }
:root[data-theme="dark"] .file-symbol.link { background: #50372b; color: #f1a77a; }
.item-main strong { font-size: 14px; font-weight: 800; }
.item-main small { font-size: 12px; margin-top: 6px; }
.item-meta { font-size: 11px; align-self: flex-end; margin-left: auto; }
.item-actions { opacity: 1; }
.item-actions button {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--panel-2);
}
.item-actions button:hover { background: var(--panel-3); }
.item-actions svg { width: 17px; }
.empty-state, .loading-state {
  min-height: 250px;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 20px;
  font-size: 14px;
}
.empty-state .empty-icon { width: 58px; height: 58px; border-radius: 18px; }
.empty-state .empty-icon svg { width: 26px; height: 26px; }
.empty-state strong { font-size: 17px; }
.empty-state p { font-size: 13px; }
.app-footer { padding-top: 30px; font-size: 12px; }

/* Dialogs and controls match the new card system */
.primary-button {
  min-height: 48px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: 14px;
}
:root[data-theme="dark"] .primary-button { color: #10241a; }
.secondary-button { min-height: 46px; border-radius: 12px; font-size: 14px; }
.modal { border-radius: 22px; padding: 29px; box-shadow: var(--shadow); }
.modal-head h2 { font-size: 24px; }
.field-label { font-size: 13px; }
.modal textarea, .modal input[type=text], .modal input[type=url] { font-size: 14px; border-radius: 12px; }
.drop-zone { border-radius: 18px; padding: 42px 20px; }
.toast { border-radius: 14px; font-size: 14px; }

/* Login gets a split editorial treatment while retaining the same form IDs */
.login-screen {
  background:
    radial-gradient(circle at 18% 20%, rgba(39,166,125,.12), transparent 28rem),
    radial-gradient(circle at 85% 85%, rgba(216,139,55,.10), transparent 25rem),
    var(--bg);
}
.login-card {
  width: min(100%, 490px);
  padding: 46px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.login-card h1 { font-size: 39px; letter-spacing: -1.8px; }
.login-copy { font-size: 15px; line-height: 1.7; }
.login-card label { font-size: 13px; }
.password-wrap input { height: 54px; border-radius: 13px; font-size: 15px; }
.login-foot { font-size: 12px; }

/* Responsive: mobile becomes a compact bottom dock, not a squeezed desktop bar */
@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 76px;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
    display: block;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    z-index: 15;
  }
  .brand, .sidebar-bottom, .nav-label { display: none; }
  .main-nav {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
  .nav-item {
    width: 100%;
    height: 60px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 4px;
    font-size: 11px;
    border-radius: 12px;
  }
  .nav-item svg { width: 21px; height: 21px; }
  .nav-count, .nav-item kbd { display: none; }
  .main-content { padding: 0 24px 112px; }
  .page-heading { min-height: 220px; padding: 30px; margin-top: 22px; border-radius: 23px; }
  .page-heading h1 { font-size: clamp(30px, 6vw, 42px); }
  .quick-actions { gap: 11px; }
  .quick-card { min-height: 105px; padding: 16px; }
  .library-section { margin-top: 34px; }
}
@media (max-width: 620px) {
  .main-content { padding: 0 16px 108px; }
  .topbar { height: 58px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 850; }
  .mobile-brand img { width: 31px; height: 31px; }
  .mobile-brand span { color: var(--accent); }
  .breadcrumb { display: none; }
  .connection { padding: 7px 9px; font-size: 11px; }
  .page-heading {
    min-height: auto;
    display: block;
    padding: 28px 23px 23px;
    margin: 17px 0 15px;
  }
  .page-heading h1 { font-size: 31px; letter-spacing: -1.3px; }
  .page-heading .muted { font-size: 13px; line-height: 1.55; }
  .page-heading::after { right: -120px; top: -145px; }
  .upload-trigger { width: 100%; margin-top: 23px; height: 48px; }
  .quick-actions { grid-template-columns: 1fr; gap: 9px; }
  .quick-card { min-height: 80px; padding: 13px 15px; border-radius: 16px; }
  .quick-icon { width: 44px; height: 44px; border-radius: 14px; }
  .quick-card strong { font-size: 14px; }
  .quick-card small { font-size: 11px; }
  .section-head { align-items: stretch; flex-direction: column; gap: 13px; }
  .section-head h2 { font-size: 21px; }
  .section-head p { font-size: 12px; }
  .list-tools { width: 100%; }
  .search-box { width: auto; flex: 1; height: 44px; }
  .view-switch { display: none; }
  .item-list, .item-grid { grid-template-columns: 1fr; gap: 9px; }
  .item-row, .item-grid .item-row { min-height: 88px; padding: 13px; gap: 10px; border-radius: 15px; }
  .file-symbol { width: 43px; height: 43px; border-radius: 13px; }
  .item-main strong { font-size: 13px; }
  .item-main small { font-size: 11px; }
  .item-meta { display: none; }
  .item-actions button { width: 32px; height: 32px; }
  .app-footer { flex-direction: column; gap: 9px; font-size: 11px; }
  .login-card { padding: 34px 25px; }
  .modal { padding: 21px; }
  .toast-region { left: 13px; right: 13px; bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
