:root {
  --cream: #111816;
  --cream-deep: #18211d;
  --lime: #263a24;
  --lime-strong: #b9dc55;
  --sage: #233129;
  --charcoal: #16211c;
  --charcoal-soft: #c5d1c5;
  --on-dark: #edf3ea;
  --ink: #edf3ea;
  --muted: #9cad9e;
  --line: rgba(236, 243, 234, .14);
  --card: rgba(31, 45, 38, .82);
  --shadow: 0 24px 60px rgba(0, 0, 0, .25);
  --alert: #ef9a8a;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --sidebar-width: 286px;
  color-scheme: dark;
}


* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { min-width: 320px; background: var(--cream); }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: radial-gradient(circle at 84% 8%, color-mix(in srgb, var(--lime) 52%, transparent), transparent 28rem), var(--cream);
  color: var(--ink);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

button, input, select { font: inherit; }
button, a, select, input { -webkit-tap-highlight-color: transparent; }
button, a { color: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--lime-strong);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--charcoal);
  color: var(--on-dark);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
  background: var(--cream);
  transition: grid-template-columns .25s ease;
}

.app-shell.sidebar-collapsed { grid-template-columns: 94px minmax(0, 1fr); }

.sidebar {
  display: flex;
  position: sticky;
  top: 0;
  align-self: start;
  flex-direction: column;
  gap: 24px;
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  padding: 26px 18px 20px;
  background: var(--charcoal);
  color: #edf3ea;
  overflow: hidden;
}

.sidebar-topline, .topbar, .workspace-heading, .storage-card-heading, .section-label-row, .preview-header, .sidebar-footer, .topbar-actions, .workspace-tools {
  display: flex;
  align-items: center;
}

.sidebar-topline { justify-content: space-between; gap: 10px; }

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(217, 237, 154, .54);
  border-radius: 50%;
  color: var(--lime-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.brand-name { font-size: 19px; font-weight: 700; letter-spacing: -.04em; }

.icon-button, .small-icon-button, .view-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: inherit;
}

.icon-button { width: 36px; height: 36px; font-size: 19px; }
.sidebar .icon-button { border-color: rgba(237, 243, 234, .15); color: #dfe9cb; }
.icon-button:hover, .small-icon-button:hover, .view-button:hover { background: color-mix(in srgb, var(--lime) 44%, transparent); }

.eyebrow, .nav-label, .sidebar-version {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sidebar .eyebrow, .sidebar .nav-label, .sidebar-version { color: #93a08f; }

.library-nav { display: grid; gap: 6px; }
.nav-label { display: block; padding: 0 10px 7px; }
.library-link, .folder-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #b2bfb0;
  text-align: left;
}

.library-link:hover, .library-link.is-active, .folder-link:hover { background: rgba(217, 237, 154, .13); color: #f1f7e8; }
.library-link.is-active { box-shadow: inset 3px 0 var(--lime-strong); }
[data-icon] { display: inline-grid; flex: 0 0 auto; place-items: center; line-height: 0; }
[data-icon] > svg { display: block; width: 18px; height: 18px; }
.icon-button [data-icon] > svg { width: 19px; height: 19px; }
.small-icon-button [data-icon] > svg { width: 14px; height: 14px; }
.search-field [data-icon] > svg { width: 16px; height: 16px; }
.sort-direction [data-icon] > svg { width: 18px; height: 18px; }
.select-toggle [data-icon] > svg, .subtle-button [data-icon] > svg { width: 16px; height: 16px; }
.view-button [data-icon] > svg { width: 18px; height: 18px; }
.preview-action [data-icon] > svg, .preview-nav-button [data-icon] > svg { width: 16px; height: 16px; }
.drop-zone-mark[data-icon] > svg, .empty-state-mark[data-icon] > svg { width: 25px; height: 25px; }
.nav-icon svg { display: block; width: 18px; height: 18px; }
.file-card-icon svg { display: block; width: 34px; height: 34px; }
.file-list-icon svg { display: block; width: 20px; height: 20px; }
.preview-placeholder svg { display: block; width: 31px; height: 31px; }
.nav-icon { width: 18px; color: var(--lime-strong); font-size: 18px; text-align: center; }
.library-label, .folder-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.folder-section { display: grid; gap: 8px; min-height: 0; }
.library-nav + .folder-section { margin-top: -18px; }
.section-label-row { justify-content: space-between; gap: 6px; padding: 0; }
.folder-section-toggle { flex: 1; justify-content: flex-start; min-width: 0; padding: 8px 10px; text-align: left; }
.folder-section-toggle .folder-section-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-section-nav-icon svg { width: 18px; height: 18px; }
.folder-section-toggle .folder-section-chevron, .folder-chevron { display: inline-grid; flex: 0 0 12px; place-items: center; width: 12px; height: 18px; color: #8c9c8a; font-size: 0; line-height: 1; }
.folder-section-toggle .folder-section-chevron { margin-left: 0; transition: transform .2s ease; }
.folder-section-toggle .folder-section-chevron::before, .folder-chevron.has-children::before { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; content: ""; transform: translateY(-1px) rotate(45deg); }
.folder-section.is-collapsed .folder-section-chevron::before, .folder-chevron.has-children:not(.is-expanded)::before { transform: translateY(-1px) rotate(-45deg); }
.folder-section.is-collapsed .folder-tree { display: none; }
.small-icon-button { position: relative; display: grid; place-items: center; width: 25px; height: 25px; padding: 0; border-color: rgba(237, 243, 234, .15); color: #a8b9a5; font-size: 0; line-height: 1; }
.small-icon-button::before, .small-icon-button::after { display: none; }
.folder-tree { display: grid; gap: 4px; min-height: 0; max-height: calc((36px * 10) + (4px * 9)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--lime-strong) transparent; }
.folder-tree::-webkit-scrollbar { width: 7px; }
.folder-tree::-webkit-scrollbar-track { background: transparent; }
.folder-tree::-webkit-scrollbar-thumb { border-radius: 999px; background: color-mix(in srgb, var(--lime-strong) 72%, transparent); }
.folder-tree::-webkit-scrollbar-thumb:hover { background: var(--lime-strong); }
.folder-link { min-height: 36px; padding-block: 5px; padding-inline-start: calc(10px + (var(--folder-depth, 0) * 22px)); font-size: 13px; }
.folder-icon { color: var(--lime-strong); }

.sidebar-spacer { flex: 1; min-height: 18px; }
.storage-card { padding: 15px; border: 1px solid rgba(237, 243, 234, .13); border-radius: var(--radius-md); background: rgba(255, 255, 255, .06); }
.storage-card-heading { gap: 7px; color: #dce7d7; font-size: 13px; }
.storage-value { margin-left: auto; color: var(--lime-strong); font-size: 11px; }
.storage-dot, .connection-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime-strong); box-shadow: 0 0 0 4px rgba(185, 220, 85, .12); }
.storage-track { height: 6px; margin-top: 14px; overflow: hidden; border-radius: 999px; background: rgba(237, 243, 234, .15); }
.storage-fill { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--lime-strong); transition: width .3s ease; }
.storage-card p { margin: 9px 0 0; color: #91a293; font-size: 11px; }

.sidebar-footer { justify-content: space-between; gap: 8px; padding: 0 10px; }
.plain-link { color: #dce7d7; font-size: 12px; }
.plain-link:hover { color: var(--lime-strong); }

.page-shell { min-width: 0; min-height: 100vh; }
.topbar { justify-content: space-between; gap: 20px; min-height: 78px; padding: 18px clamp(22px, 4vw, 62px); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.breadcrumb-slash { color: var(--lime-strong); }
.topbar-actions { justify-content: flex-end; gap: 9px; }
.connection-pill, .topbar-button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: 12px; white-space: nowrap; }
.topbar-button:hover, .topbar-link:hover { border-color: var(--lime-strong); color: var(--ink); }
.topbar-link { background: var(--charcoal); color: var(--on-dark); border-color: var(--charcoal); }
.topbar-link:hover { background: var(--lime-strong); color: var(--charcoal); }

.dashboard-main { position: relative; max-width: 1500px; margin: 0 auto; padding: clamp(34px, 5vw, 70px) clamp(22px, 4vw, 62px) 28px; }
.welcome-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 185px; }
.welcome-copy h1 { max-width: 700px; margin: 10px 0 6px; color: var(--ink); font-size: clamp(36px, 4.6vw, 66px); line-height: .98; letter-spacing: -.07em; }
.welcome-copy p { margin: 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 19px); }
.orbit-art { position: relative; flex: 0 0 auto; width: 170px; height: 170px; margin-right: 4%; border-radius: 50%; background: var(--charcoal); box-shadow: 0 22px 38px rgba(24, 32, 29, .17); transform: rotate(-12deg); }
.orbit { position: absolute; inset: 24px; border: 1px solid rgba(185, 220, 85, .5); border-radius: 50%; }
.orbit-two { inset: 45px; }.orbit-three { inset: 65px; }
.orbit-core { position: absolute; inset: 0; display: grid; place-items: center; color: var(--lime-strong); font-size: 24px; font-weight: 700; letter-spacing: .08em; }
.orbit-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--lime-strong); }
.orbit-dot-one { top: 21px; left: 98px; }.orbit-dot-two { top: 88px; left: 21px; }.orbit-dot-three { right: 23px; bottom: 22px; }

.workspace-panel { margin-top: 30px; padding: clamp(21px, 3vw, 34px); border: 1px solid color-mix(in srgb, var(--lime-strong) 28%, var(--line)); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--lime) 66%, transparent); box-shadow: var(--shadow); }
.workspace-heading-copy { min-width: 0; }
.folder-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.folder-breadcrumb-link { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: inherit; }
.folder-breadcrumb-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.folder-breadcrumb-current { overflow: hidden; max-width: min(52vw, 620px); color: var(--ink); font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.folder-breadcrumb-separator { color: var(--lime-strong); }
.workspace-heading { justify-content: space-between; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.workspace-heading h2 { margin: 0; color: var(--ink); font-size: clamp(28px, 3vw, 42px); line-height: 1; letter-spacing: -.06em; }
.workspace-tools { justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.search-field, .sort-field select { display: flex; align-items: center; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--muted); }
.search-field { gap: 7px; padding: 0 12px; }
.search-field input { width: 130px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-field input::placeholder { color: var(--muted); }
.sort-field select { padding: 0 12px; color: var(--ink); }
.subtle-button { display: inline-flex; align-items: center; gap: 5px; min-height: 42px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--ink); font-size: 12px; }
.subtle-button:hover { border-color: var(--lime-strong); background: var(--card); }
.view-toggle { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.view-button { width: 35px; height: 34px; border: 0; border-radius: 8px; color: var(--muted); }
.view-button.is-active { background: var(--charcoal); color: var(--on-dark); }
.status-message { min-height: 22px; padding: 14px 2px 4px; color: var(--muted); font-size: 12px; }

.drop-zone { display: grid; place-items: center; gap: 4px; min-height: 150px; margin: 10px 0 14px; padding: 25px; border: 2px dashed color-mix(in srgb, var(--lime-strong) 80%, var(--charcoal)); border-radius: var(--radius-md); background: color-mix(in srgb, var(--cream) 42%, transparent); text-align: center; }
.drop-zone-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--lime-strong); border-radius: 50%; color: var(--lime-strong); font-size: 23px; }
.drop-zone strong { color: var(--ink); }.drop-zone span { color: var(--muted); font-size: 12px; }
.file-area { position: relative; min-height: 355px; margin-top: 14px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--cream) 68%, transparent); overflow: hidden; }
.file-grid, .file-list { min-height: 355px; padding: 23px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.file-list { display: grid; gap: 8px; }
.file-card { display: grid; grid-template-rows: 118px auto; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); overflow: visible; box-shadow: 0 9px 20px rgba(24, 32, 29, .05); }
.file-card:hover { border-color: color-mix(in srgb, var(--lime-strong) 75%, var(--line)); transform: translateY(-2px); }
.file-card-thumb { display: grid; place-items: center; position: relative; width: 100%; padding: 0; border: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; background: color-mix(in srgb, var(--sage) 75%, transparent); color: var(--lime-strong); overflow: hidden; }
.file-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-card-thumb img.file-card-document-preview { object-fit: contain; padding: 10px; background: var(--cream-deep); }
.video-play-badge svg { display: block; width: 13px; height: 13px; margin-left: 1px; }
.video-play-badge { padding-left: 0; }
.video-play-badge { position: absolute; z-index: 2; top: 8px; left: 8px; display: grid; place-items: center; width: 30px; height: 30px; padding-left: 2px; border-radius: 999px; background: rgba(18, 26, 23, .74); color: var(--lime-strong); font-size: 12px; line-height: 1; box-shadow: 0 2px 10px rgba(0, 0, 0, .32); }
.file-card-icon { font-size: 34px; }
.file-card-body { display: grid; gap: 7px; min-width: 0; padding: 13px; border-radius: 0 0 var(--radius-md) var(--radius-md); }
.file-card-name { overflow: hidden; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 650; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.file-card-meta { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.file-card-actions { display: flex; gap: 5px; }
.file-action { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-size: 15px; line-height: 1; text-align: center; }
.file-action > svg { display: block; width: 14px; height: 14px; }
.file-action-icon { display: block; width: 14px; height: 14px; }
.file-action:hover, .file-action.is-active { border-color: var(--lime-strong); color: var(--lime-strong); }
.file-action-menu { position: relative; display: inline-block; }
.file-action-menu > summary { list-style: none; cursor: pointer; }
.file-action-menu > summary::-webkit-details-marker { display: none; }
.file-action-menu[open] > .file-action-more { border-color: var(--lime-strong); background: var(--lime); color: var(--charcoal); }
.file-action-menu-popover.file-action-menu-floating { position: fixed; top: auto; right: auto; bottom: auto; z-index: 60; }
.file-action-menu-popover { position: absolute; z-index: 25; right: 0; bottom: calc(100% + 7px); display: grid; min-width: 178px; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); box-shadow: var(--shadow); }
.file-action-menu-item { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); font: inherit; font-size: 12px; text-align: left; white-space: nowrap; }
.file-action-menu-item:hover:not(:disabled), .file-action-menu-item:focus-visible { background: var(--lime); color: var(--charcoal); outline: 0; }
.file-action-menu-item:disabled { cursor: not-allowed; color: var(--muted); opacity: .55; }
.file-list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 58px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.file-list-row:hover { border-color: var(--lime-strong); }
.file-list-main { display: flex; align-items: center; gap: 10px; min-width: 0; border: 0; background: transparent; text-align: left; }
.file-list-icon { color: var(--lime-strong); font-size: 20px; }.file-list-name { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; }.file-list-meta { color: var(--muted); font-size: 11px; }
.file-list-actions { display: flex; gap: 5px; }
.empty-state { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 40px; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state-mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 3px; border: 1px solid var(--lime-strong); border-radius: 50%; color: var(--lime-strong); font-size: 31px; }
.empty-state h3 { margin: 0; color: var(--ink); font-size: 22px; letter-spacing: -.04em; }.empty-state p { max-width: 430px; margin: 0; color: var(--muted); }
.primary-button { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 18px; border-radius: 999px; background: var(--charcoal); color: var(--on-dark); font-size: 13px; font-weight: 650; }
.primary-button:hover { background: var(--lime-strong); color: var(--charcoal); }

.preview-panel { display: grid; grid-template-rows: auto 1fr; position: absolute; z-index: 4; top: 31px; right: 20px; bottom: 28px; width: min(390px, calc(100% - 40px)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--cream) 94%, transparent); box-shadow: var(--shadow); overflow: hidden; }
.preview-panel[hidden] { display: none; }
.preview-header { justify-content: space-between; gap: 15px; padding: 21px; border-bottom: 1px solid var(--line); color: var(--ink); }.preview-header h2 { margin: 6px 0 0; color: var(--ink); font-size: 20px; letter-spacing: -.04em; }
.preview-body { display: grid; place-content: center; justify-items: center; gap: 12px; padding: 24px; color: var(--muted); text-align: center; }.preview-body p { margin: 0; }.preview-placeholder { color: var(--lime-strong); font-size: 0; }.preview-image { max-width: 100%; max-height: 48vh; border-radius: var(--radius-sm); object-fit: contain; }.preview-fallback { display: grid; gap: 12px; justify-items: center; }.preview-open { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--charcoal); color: var(--on-dark); font-size: 12px; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 clamp(22px, 4vw, 62px) 28px; color: var(--muted); font-size: 11px; }

.app-shell.sidebar-collapsed .brand-name, .app-shell.sidebar-collapsed .library-label, .app-shell.sidebar-collapsed .nav-label, .app-shell.sidebar-collapsed .folder-section, .app-shell.sidebar-collapsed .storage-card, .app-shell.sidebar-collapsed .plain-link, .app-shell.sidebar-collapsed .sidebar-version { display: none; }
.app-shell.sidebar-collapsed .sidebar { align-items: center; padding-inline: 12px; }.app-shell.sidebar-collapsed .sidebar-topline { display: grid; justify-items: center; gap: 16px; }.app-shell.sidebar-collapsed .library-nav { width: 100%; }.app-shell.sidebar-collapsed .library-link { justify-content: center; padding-inline: 0; }.app-shell.sidebar-collapsed .sidebar-footer { justify-content: center; }

@media (max-width: 980px) {
  .welcome-row { min-height: 150px; }.orbit-art { width: 130px; height: 130px; }.orbit { inset: 18px; }.orbit-two { inset: 35px; }.orbit-three { inset: 50px; }.orbit-dot-one { top: 16px; left: 75px; }.orbit-dot-two { top: 67px; left: 16px; }.orbit-dot-three { right: 17px; bottom: 17px; }
  .workspace-heading { align-items: flex-start; flex-direction: column; }.workspace-tools { width: 100%; justify-content: flex-start; }
}

@media (max-width: 700px) {
  .app-shell, .app-shell.sidebar-collapsed { display: block; }.sidebar, .app-shell.sidebar-collapsed .sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: min(286px, 87vw); transform: translateX(-102%); transition: transform .25s ease; }.app-shell:not(.sidebar-collapsed) .sidebar { transform: translateX(0); box-shadow: 16px 0 50px rgba(0, 0, 0, .24); }.app-shell.sidebar-collapsed .sidebar { align-items: stretch; padding: 26px 18px 20px; }.app-shell.sidebar-collapsed .brand-name, .app-shell.sidebar-collapsed .library-label, .app-shell.sidebar-collapsed .nav-label, .app-shell.sidebar-collapsed .folder-section, .app-shell.sidebar-collapsed .storage-card, .app-shell.sidebar-collapsed .plain-link, .app-shell.sidebar-collapsed .sidebar-version { display: initial; }.app-shell.sidebar-collapsed .sidebar-topline { display: flex; }.app-shell.sidebar-collapsed .library-link { justify-content: flex-start; padding-inline: 10px; }.app-shell.sidebar-collapsed .sidebar-footer { justify-content: space-between; }
  .page-shell { min-height: 100vh; }.topbar { min-height: 67px; padding: 14px 18px; }  .mobile-menu { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 16px; cursor: pointer; }  .mobile-menu:hover, .mobile-menu:focus-visible { border-color: var(--lime-strong); color: var(--ink); }  .topbar { display: grid; grid-template-columns: auto 1fr; align-items: center; min-height: 67px; padding: 14px 18px; }.connection-pill, .topbar-link .button-label { display: none; }.topbar-link { font-size: 0; }.topbar-link span { font-size: 17px; }.topbar-actions { gap: 6px; }
  .dashboard-main { padding: 31px 16px 24px; }.welcome-row { align-items: flex-start; min-height: 135px; }.orbit-art { width: 92px; height: 92px; margin-right: 0; }.orbit { inset: 13px; }.orbit-two { inset: 25px; }.orbit-three { inset: 35px; }.orbit-core { font-size: 15px; }.orbit-dot { width: 5px; height: 5px; }.orbit-dot-one { top: 11px; left: 54px; }.orbit-dot-two { top: 46px; left: 11px; }.orbit-dot-three { right: 12px; bottom: 12px; }.welcome-copy h1 { font-size: 37px; }
  .workspace-panel { margin-top: 18px; padding: 17px; border-radius: 20px; }.workspace-tools { display: grid; grid-template-columns: 1fr auto; }.sort-field { grid-column: 1 / -1; }.tool-row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: nowrap; }.tool-row .subtle-button { padding-inline: 11px; }.tool-row .button-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }.search-field { grid-column: 1 / -1; }.search-field input { width: 100%; }.sort-field select { width: 100%; }.subtle-button { justify-self: end; }.view-toggle { grid-column: 1 / -1; justify-self: end; }.file-grid, .file-list { padding: 14px; }.file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }.page-footer { flex-direction: column; padding-inline: 18px; }
  .preview-panel { position: relative; inset: auto; width: auto; min-height: 270px; margin-top: 16px; }.preview-panel[hidden] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* RustVault refinement: keep actions visible and make files feel tangible. */
.brand { cursor: pointer; }
.folder-icon, .file-card-folder-icon, .file-list-folder-icon { display: inline-grid; flex: 0 0 auto; place-items: center; color: var(--lime-strong); }
.folder-icon svg { width: 17px; height: 17px; }
.file-card-folder-icon { width: 50px; height: 50px; }
.file-card-folder-icon svg { width: 50px; height: 50px; }
.file-list-folder-icon svg { width: 22px; height: 22px; }
.preview-panel { position: fixed; top: 50%; right: clamp(18px, 3vw, 48px); bottom: auto; height: min(720px, calc(100vh - 40px)); max-height: calc(100vh - 40px); transform: translateY(-50%); grid-template-rows: auto auto minmax(0, 1fr) auto; }
.file-area { overflow: visible; }
.preview-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 21px; border-bottom: 1px solid var(--line); }
.preview-menu-host, .file-viewer-menu-host { position: relative; display: inline-flex; align-items: center; }
.preview-menu-host .file-action-menu-popover, .file-viewer-menu-host .file-action-menu-popover { top: calc(100% + 7px); right: 0; bottom: auto; }
.preview-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 12px; font-weight: 650; }
.preview-action:hover { border-color: var(--lime-strong); background: var(--lime); }
.preview-view { border-color: var(--charcoal); background: var(--charcoal); color: var(--on-dark); }
.preview-view:hover { border-color: var(--lime-strong); background: var(--lime-strong); color: var(--charcoal); }
.preview-body { min-height: 0; overflow: auto; align-content: center; }
.preview-content { display: block; width: 100%; max-width: 100%; min-height: 220px; max-height: 330px; margin-inline: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream-deep); object-fit: contain; }  .preview-video-frame { position: relative; display: grid; place-items: center; width: 100%; }  .preview-video-frame .preview-content { width: auto; }
/* Portrait photos and vertical video keep their own aspect ratio and centre in
   the panel instead of being stretched to its full width. */
img.preview-content, video.preview-content { width: auto; max-width: 100%; min-width: 0; height: auto; min-height: 0; max-height: min(330px, 46vh); margin-inline: auto; object-fit: contain; }
iframe.preview-content { height: 330px; background: var(--cream); }
iframe.file-viewer-content { width: 100%; height: 100%; background: var(--cream); }
/* A media element has no intrinsic width of its own, so give the panel one. */
audio.preview-content { width: min(100%, 300px); min-height: 0; height: 42px; }
.preview-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--cream-deep) 60%, transparent); }
.preview-nav-button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: 12px; font-weight: 650; }
.preview-nav-button:hover:not(:disabled) { border-color: var(--lime-strong); background: var(--lime); }
.preview-nav-button:disabled { cursor: not-allowed; opacity: .35; }
.preview-position { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.file-viewer-navigation { display: inline-flex; align-items: center; gap: 6px; }
.file-viewer-navigation .preview-nav-button { min-width: 30px; min-height: 30px; padding: 5px 8px; }
.preview-fallback small { max-width: 230px; color: var(--muted); font-size: 12px; }
.preview-header .icon-button, .file-viewer-header .icon-button, .file-operation-header .icon-button { width: 42px; height: 42px; border-color: var(--lime-strong); background: var(--charcoal); color: var(--on-dark); font-size: 23px; line-height: 1; }
/* Large folders render hundreds of cards at once; skipping off-screen layout
   keeps scrolling smooth while the 256px thumbnails load. */
.file-card { content-visibility: auto; contain-intrinsic-size: auto 210px; }
.preview-header .icon-button:hover, .file-viewer-header .icon-button:hover, .file-operation-header .icon-button:hover { border-color: var(--lime-strong); background: var(--lime-strong); color: var(--charcoal); }
.file-operation-dialog { position: fixed; z-index: 45; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(17, 24, 22, .68); backdrop-filter: blur(7px); }
.file-operation-dialog[hidden] { display: none; }
.file-operation-shell { display: grid; width: min(440px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); box-shadow: var(--shadow); }
.file-operation-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; border-bottom: 1px solid var(--line); }
.file-operation-header h2 { max-width: 320px; margin: 6px 0 0; overflow: hidden; color: var(--ink); font-size: 20px; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.file-operation-body { display: grid; gap: 8px; padding: 20px; }
.file-operation-field { color: var(--muted); font-size: 12px; font-weight: 650; }
.file-operation-select { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.file-operation-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 20px; }
.file-info-shell { width: min(500px, 100%); }
.file-info-list { display: grid; grid-template-columns: minmax(90px, auto) minmax(0, 1fr); gap: 10px 18px; margin: 0; padding: 22px; }
.file-info-list dt { color: var(--muted); font-size: 12px; font-weight: 650; }
.file-info-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 13px; }
.file-viewer { position: fixed; z-index: 30; inset: 0; display: grid; --viewer-gap: clamp(10px, 2vw, 26px); padding: var(--viewer-gap); background: rgba(24, 32, 29, .68); backdrop-filter: blur(9px); }
/* The shell height is stated in viewport units, so the media rows below get a
   definite height to resolve against; a percentage height would collapse to
   auto and let a portrait image or video run off the bottom of the screen. */
.file-viewer-shell { display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(1900px, 100%); height: min(1400px, calc(100vh - 2 * var(--viewer-gap))); max-height: calc(100vh - 2 * var(--viewer-gap)); margin: auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--cream); box-shadow: 0 30px 100px rgba(0, 0, 0, .34); }
.file-viewer-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.file-viewer-header h2 { max-width: min(60vw, 760px); margin: 5px 0 0; overflow: hidden; color: var(--ink); font-size: clamp(17px, 2vw, 25px); letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.file-viewer-actions { display: flex; align-items: center; gap: 8px; }
.file-viewer-body { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; place-items: center; padding: clamp(16px, 3vw, 42px); overflow: auto; background: color-mix(in srgb, var(--cream-deep) 62%, transparent); }
.file-viewer-content { display: block; max-width: 100%; max-height: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--cream); object-fit: contain; }
/* Auto in both axes so the media scales down to the box instead of taking the
   box's width and growing past the bottom of the screen. */
img.file-viewer-content, video.file-viewer-content { width: auto; height: auto; }
iframe.file-viewer-content { width: 100%; height: 100%; min-height: 560px; border: 0; }
audio.file-viewer-content { width: min(620px, 100%); height: 48px; }
body.file-viewer-open { overflow: hidden; }

@media (max-width: 700px) {
  .preview-panel { position: relative; top: auto; right: auto; bottom: auto; width: auto; height: auto; max-height: none; transform: none; }
  .file-viewer { padding: 0; }
  .file-viewer-shell { height: 100%; border-radius: 0; }
  .file-viewer-header { padding: 15px; }
  .file-viewer-header h2 { max-width: 48vw; }
  .file-viewer-body { padding: 15px; }
  iframe.file-viewer-content { min-height: 430px; }
}

.sign-in-panel { margin: 0 0 20px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.sign-in-panel h3 { margin: 0 0 6px; font-size: 20px; }
.sign-in-panel > p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.sign-in-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.sign-in-field { display: grid; gap: 6px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.sign-in-field input { min-width: 210px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(237, 243, 234, .04); color: var(--ink); font-size: 14px; letter-spacing: 0; text-transform: none; }
.sign-in-field input:focus-visible { border-color: var(--lime-strong); outline: 2px solid color-mix(in srgb, var(--lime) 60%, transparent); outline-offset: 1px; }
.sign-in-submit { margin-top: 0; }
.sign-in-submit[disabled] { opacity: .6; cursor: progress; }
.sign-in-error { margin: 12px 0 0; color: #e6a3a3; font-size: 13px; }
.sign-in-note { margin: 14px 0 0; font-size: 12px; }
.sign-in-note a { border-bottom: 1px solid var(--lime-strong); }

.folder-link.is-dragging { opacity: .45; }
.folder-link.is-drop-target { border-color: var(--lime-strong); background: color-mix(in srgb, var(--lime) 18%, transparent); }
@media (max-width: 700px) {
  .sign-in-form { align-items: stretch; flex-direction: column; }
  .sign-in-field input { min-width: 0; width: 100%; }
}

/* Selection mode: the Select button in the toolbar reveals a white check box in
   the corner of every card, which fills with a dot once the item is chosen. The
   selection bar lives in its own row under the toolbar, so the search and sort
   controls never move. */
.select-check { position: absolute; z-index: 3; top: 8px; right: 8px; display: none; width: 20px; height: 20px; border: 1px solid rgba(24, 32, 29, .26); border-radius: 6px; background: #fff; box-shadow: 0 2px 7px rgba(24, 32, 29, .28); }
.select-check::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: transparent; }
body.is-selecting .select-check { display: block; }
body.is-selecting .file-card { cursor: pointer; }
body.is-selecting .file-card-thumb, body.is-selecting .file-card-name { cursor: pointer; }
body.is-selecting .file-card:hover { border-color: var(--lime-strong); }
.file-card.is-selected { border-color: var(--lime-strong); box-shadow: 0 0 0 2px var(--lime-strong); }
.file-card.is-selected .select-check::after { background: #101410; }
.file-list-row .select-check { position: static; top: auto; right: auto; flex: 0 0 auto; margin-right: 2px; }
.file-list-row.is-selected { border-color: var(--lime-strong); box-shadow: 0 0 0 2px var(--lime-strong); }
.file-list-row.is-selected .select-check::after { background: #101410; }
body.is-selecting .select-toggle { border-color: var(--lime-strong); background: var(--lime); font-weight: 650; }
@media (min-width: 701px) { .tool-row { display: contents; } }
.sort-direction { display: grid; place-items: center; min-width: 42px; padding: 0; font-size: 16px; font-weight: 700; line-height: 1; }
.sort-direction[aria-pressed="true"] { border-color: var(--lime-strong); background: var(--charcoal); color: var(--on-dark); }
.selection-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; margin: 2px 2px 10px; padding: 10px 14px; border: 1px solid var(--lime-strong); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--lime) 24%, var(--card)); }
.selection-bar[hidden] { display: none; }
.selection-count { color: var(--ink); font-size: 13px; font-weight: 650; }
.selection-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.selection-bar .subtle-button { min-height: 36px; background: color-mix(in srgb, var(--cream) 70%, transparent); }
.selection-delete { border-color: color-mix(in srgb, var(--alert) 55%, var(--line)); color: var(--alert); }
.selection-delete:hover { border-color: var(--alert); background: color-mix(in srgb, var(--alert) 12%, var(--card)); }

/* Phone chrome: the top bar carries the wordmark the hidden sidebar would
   otherwise show, and it stays put while the file list scrolls under it. */
.topbar-left { display: contents; }
.topbar-wordmark { display: none; }

@media (max-width: 700px) {
  .topbar { position: sticky; top: 0; z-index: 9; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(12px); }
  .topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .topbar-wordmark { display: inline; color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
  .preview-panel { scroll-margin-top: 84px; }
}

/* A long, unbreakable filename in the header used to blow the panel grid
   column out to the title max-content width, which pushed the preview content
   past the panel edge - so vertical phone photos looked right-aligned and
   cropped. Constrain the column, and truncate the title the way the full file
   viewer already does. */
.preview-panel { grid-template-columns: minmax(0, 1fr); }
.preview-header { min-width: 0; }
.preview-header > div { min-width: 0; }
.preview-header h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
