:root {
  color-scheme: dark;
  --bg: #070b13;
  --panel: #101827;
  --surface: #0c1320;
  --line: #27354b;
  --text: #f4f7ff;
  --muted: #a4b1c6;
  --accent: #95b8ff;
  --blue: #7c8eff;
  --success: #87e5c2;
  --danger: #ff9caf;
  --focus: #9fc3ff;
  --action: linear-gradient(135deg, #285ec3, #5652c8);
  --panel-glass: rgba(12, 19, 32, .94);
  --nav-glass: rgba(7, 11, 19, .91);
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
  --radius: 16px;
}

html {
  background: var(--bg);
  scroll-padding-top: 6rem;
}

body {
  isolation: isolate;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
}

::selection {
  background: #375483;
  color: #fff;
}

:where(a, button, input, select, textarea, summary):focus-visible,
.dropzone:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

:where(button, summary, select) {
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: .65;
  transform: none;
}

button:disabled:hover {
  filter: none;
  transform: none;
}

.site-video,
.site-video-shade {
  position: fixed;
  z-index: -2;
  inset: 0;
  pointer-events: none;
}

.site-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.72) brightness(.76);
}

.site-video-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 19, .9) 0%, rgba(7, 11, 19, .68) 45%, rgba(7, 11, 19, .36) 100%),
    linear-gradient(180deg, rgba(7, 11, 19, .12) 0%, rgba(7, 11, 19, .6) 55%, #070b13 100%);
}

.sound-toggle {
  display: grid;
  position: fixed;
  z-index: 20;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid #53678a;
  background: #111a2b;
  color: #c7daff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}

.sound-toggle:hover {
  border-color: var(--accent);
  background: #1c2b46;
}

.sound-toggle.is-playing {
  color: var(--success);
  border-color: #2f806a;
}

.sound-toggle svg {
  display: block;
  width: 1.48rem;
  height: 1.48rem;
}

.topbar {
  background: var(--nav-glass);
  border-color: var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.brand b,
.account,
.nav a:hover {
  color: var(--text);
}

.brand-mark {
  flex: none;
  background: var(--action);
  color: #fff;
  box-shadow: 0 6px 20px rgba(55, 88, 181, .3);
}

.nav,
.nav a,
.text-button {
  color: var(--muted);
}

.nav .nav-cta,
.primary,
.side-action {
  background: var(--action);
  color: #fff;
  box-shadow: 0 10px 28px rgba(41, 79, 166, .23);
}

.secondary {
  background: var(--panel);
  color: var(--text);
  border-color: var(--line);
}

.secondary:hover:not(:disabled) {
  border-color: #59739a;
}

.eyebrow,
.upload-icon {
  color: var(--accent);
}

.landing {
  position: relative;
}

.hero-badge {
  border-color: #354f78;
  background: #182b49;
  color: #c8dbff;
}

.hero-badge span,
.status-dot {
  background: var(--success);
  box-shadow: 0 0 12px rgba(111, 222, 182, .35);
}

.hero h1,
.section-intro h2,
.feature-grid h2 {
  color: var(--text);
}

.hero h1 span {
  background: linear-gradient(90deg, #aacaff, #b5a6ff);
  background-clip: text;
  color: transparent;
}

.hero-copy > p:not(.eyebrow),
.trust-row,
.feature-grid p,
.proof-strip span,
.site-footer {
  color: var(--muted);
}

.trust-row span::before {
  color: var(--success);
}

.hero-actions {
  flex-wrap: wrap;
}

.hero-visual {
  border-color: #34425c;
  background: rgba(11, 18, 31, .91);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.window-bar,
.visual-sidebar {
  border-color: var(--line);
}

.window-bar small,
.visual-title small,
.visual-file small,
.visual-folders small {
  color: var(--muted);
}

.visual-sidebar {
  background: #101b2b;
}

.visual-sidebar span {
  background: #304362;
}

.visual-content {
  color: #eef3ff;
}

.visual-folders article,
.visual-file {
  background: #162236;
  border-color: #2b3a55;
}

.visual-folders i,
.visual-folders i::before {
  background: #6489ce;
}

.file-icon {
  background: #462d42;
  color: #ffc0cc;
}

.visual-file em {
  color: var(--success);
  background: #193732;
}

.upload-state {
  border: 1px solid #344d6e;
  background: #0c1829;
  color: var(--text);
}

.proof-strip,
.feature-grid article {
  border-color: var(--line);
  background: var(--panel-glass);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .2);
}

.proof-strip div {
  border-color: var(--line);
}

.feature-grid article > span.feature-icon {
  color: var(--accent);
  background: #203452;
}

.closing-cta {
  border: 1px solid #415688;
  background: linear-gradient(135deg, #1b3867, #302863);
  box-shadow: var(--shadow);
}

.closing-cta .primary {
  background: #f1f5ff;
  color: #23395e;
}

.site-footer {
  border-color: var(--line);
  padding-bottom: 5rem;
}

.auth-shell,
.share-shell {
  background: radial-gradient(ellipse at center top, rgba(52, 89, 156, .23), transparent 60%);
  padding-block: 2.5rem 4.75rem;
}

.auth-card,
.share-card,
.account-card,
.admin-panel,
.stat-grid article {
  min-width: 0;
  background: var(--panel-glass);
  border-color: var(--line);
  box-shadow: var(--shadow);
  color: var(--text);
}

.auth-card .intro,
.auth-card > p:not(.eyebrow),
.share-card .file-meta,
.account-card > p,
.account-profile p {
  color: var(--muted);
  font-size: 1rem;
}

.auth-card input,
.unlock-form input,
.new-folder input,
.copy-row input,
.file-search input,
.settings-form input,
.settings-form select,
.share-menu input,
.report-box select,
.report-box textarea {
  background: var(--surface);
  color: var(--text);
  border-color: #3a4d6d;
}

.auth-card input:focus,
.unlock-form input:focus,
.new-folder input:focus,
.file-search input:focus,
.settings-form input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(127, 171, 251, .13);
}

.login-form label,
.unlock-form label,
.form-grid label,
.dropzone small {
  font-size: .875rem;
}

.dropzone {
  position: relative;
  min-width: 0;
  background: rgba(38, 65, 112, .26);
  border-color: #6482b7;
  color: var(--text);
}

.dropzone:hover,
.dropzone.is-dragging {
  background: #1a2d4d;
  border-color: var(--focus);
}

.dropzone b,
.dropzone small {
  overflow-wrap: anywhere;
}

[data-resumable].is-uploading .dropzone {
  cursor: progress;
}

.drive-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  background: rgba(7, 11, 19, .89);
}

.sidebar {
  min-width: 0;
  background: rgba(12, 19, 32, .93);
  border-color: var(--line);
}

.side-link,
.storage-meter {
  color: var(--muted);
}

.side-link.active,
.side-link:hover {
  background: #233651;
  color: #dce8ff;
}

.storage-meter {
  border-color: var(--line);
}

.storage-meter b {
  color: var(--text);
}

.storage-meter .meter {
  background: #26334b;
}

.drive-content {
  min-width: 0;
  background: rgba(10, 16, 27, .85);
  padding-bottom: 5rem;
}

.drive-title h1 {
  color: var(--text);
}

.file-search button,
.file-search a,
.share-menu summary,
.row-actions button,
.new-folder button,
.copy-row button,
.admin-user button,
.report-list button,
.device-list button {
  background: var(--panel);
  color: var(--text);
  border-color: #3a4d6d;
}

.folder-card,
.file-table,
.share-list-row {
  background: var(--panel-glass);
  border-color: var(--line);
}

.folder-card {
  overflow-wrap: anywhere;
}

.folder-card:hover {
  border-color: #6584b6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
}

.folder-card form button:hover {
  color: var(--danger);
}

.file-table {
  overflow: visible;
}

.file-row {
  border-color: var(--line);
}

.file-row.heading {
  border-radius: 13px 13px 0 0;
  background: #1a263b;
  color: #b3c3de;
}

.row-actions {
  gap: .375rem;
}

.row-actions button {
  min-height: 2.4rem;
}

.share-menu form {
  background: #172236;
  border-color: #3a4d6d;
}

.empty-state h3 {
  color: var(--text) !important;
}

.empty-state p,
.share-file small,
.share-card .share-foot {
  color: var(--muted);
}

.share-result {
  background: #122c2a;
  border-color: #30574d;
}

[data-resumable] {
  min-width: 0;
}

.upload-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .625rem;
}

.upload-controls:has(.upload-status:empty):has(button[hidden]) {
  display: none;
}

.upload-controls [hidden],
.queue-item [hidden] {
  display: none;
}

.upload-status {
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.upload-status:empty,
.upload-queue:empty,
.upload-results:empty {
  display: none;
}

.upload-panel .upload-controls {
  grid-column: 1 / -1;
}

.queue-item {
  grid-template-columns: minmax(0, 1fr) minmax(4.5rem, auto);
  align-items: start;
  gap: .55rem .75rem;
  background: var(--surface);
  border-color: var(--line);
}

.queue-item b {
  font-size: .875rem;
}

.queue-item small,
.queue-item > .queue-state {
  font-size: .8125rem;
  color: var(--muted);
}

.queue-item > .queue-state {
  max-width: 18rem;
  text-align: right;
  overflow-wrap: anywhere;
}

.queue-item[data-phase="error"] > .queue-state {
  color: var(--danger);
}

.queue-item[data-phase="complete"] > .queue-state {
  color: var(--success);
}

.queue-item[data-phase="cancelled"] > .queue-state {
  color: var(--muted);
}

.queue-progress {
  display: block;
  grid-column: 1 / -1;
  appearance: none;
  width: 100%;
  height: .35rem;
  overflow: hidden;
  border: 0;
  border-radius: .5rem;
  color: var(--accent);
  background: #26334b;
}

.queue-progress::-webkit-progress-bar {
  background: #26334b;
  border-radius: .5rem;
}

.queue-progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: .5rem;
}

.queue-progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: .5rem;
}

.queue-actions {
  grid-column: 1 / -1;
  justify-self: end;
}

.queue-actions:has(button[hidden]) {
  display: none;
}

.queue-cancel {
  min-height: 2rem;
  padding: .25rem .5rem;
  border: 1px solid transparent;
  border-radius: .5rem;
  background: transparent;
  color: var(--muted);
  font-size: .8125rem;
  cursor: pointer;
}

.queue-cancel:hover:not(:disabled) {
  color: var(--text);
  border-color: #4b5f82;
}

.result-card {
  min-width: 0;
  background: #112724;
  border-color: #315a53;
}

.result-details {
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-card small,
.result-card b,
.result-actions a,
.result-actions button {
  font-size: .875rem;
}

.result-actions {
  flex-wrap: wrap;
}

.result-actions a,
.result-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  background: #15352f;
  border-color: #42756a;
  color: #e0fff3;
}

.result-actions a:hover,
.result-actions button:hover {
  border-color: var(--success);
}

.result-actions .result-delete {
  background: transparent;
  border-color: #5a5160;
  color: #ffd5de;
}

.result-actions .result-copy {
  font-weight: 650;
}

.admin-heading h1,
.account-profile h1,
.panel-title h2,
.account-meta b {
  color: var(--text);
}

.admin-heading p,
.panel-title p,
.stat-grid span,
.stat-grid small,
.admin-user small,
.account-meta span {
  color: var(--muted);
}

.switch-row,
.admin-user,
.account-meta,
.device-list,
.report-list article {
  border-color: var(--line);
}

.avatar,
.count-pill {
  background: #223957;
  color: #c4ddff;
}

.clean-state {
  background: #17372c;
  color: var(--success);
}

.service-body {
  background: radial-gradient(ellipse at 50% 0, #1a2b4f, var(--bg) 62%);
}

.service-card,
.toast {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

.service-card p,
.service-card small {
  color: var(--muted);
}

.toast {
  max-width: min(26rem, calc(100vw - 2rem));
  overflow-wrap: anywhere;
}

.toast.hide {
  pointer-events: none;
}

.toast.error {
  padding-right: 3rem;
  background: #361824;
  color: #ffd5dd;
  border-color: #96556a;
}

.toast-close {
  position: absolute;
  top: .42rem;
  right: .5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

.toast-close:hover {
  background: rgba(255, 255, 255, .12);
}

@media (max-width: 960px) {
  .drive-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .file-row {
    grid-template-columns: minmax(9rem, 1fr) 4.5rem 5.5rem minmax(7rem, auto);
    gap: .65rem;
  }

  .row-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 780px) {
  .topbar {
    position: relative;
    height: auto;
    min-height: 4.25rem;
    flex-wrap: wrap;
    padding: .75rem 1rem;
    gap: .625rem 1rem;
  }

  .nav {
    flex-wrap: wrap;
    gap: .25rem .5rem;
  }

  .nav > a:not(.nav-cta),
  .nav .nav-cta {
    display: inline-flex;
  }

  .nav > a,
  .nav .text-button {
    align-items: center;
    min-height: 2.5rem;
    padding: .375rem .5rem;
  }

  .site-video-shade {
    background: linear-gradient(180deg, rgba(7, 11, 19, .64), rgba(7, 11, 19, .87) 65%, #070b13);
  }

  .drive-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: .625rem 1rem;
  }

  .side-action,
  .side-link {
    flex: none;
    margin: 0;
    white-space: nowrap;
  }

  .storage-meter {
    flex: none;
    min-width: 11rem;
    margin: 0;
    padding: .125rem 0 .125rem .75rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .storage-meter .meter {
    margin: .35rem 0;
  }

  .file-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .file-row:not(.heading) > .row-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .share-menu form {
    right: auto;
    left: 0;
    max-width: calc(100vw - 4.5rem);
  }

  .upload-panel form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .upload-panel .dropzone {
    grid-column: 1 / -1;
  }

  .upload-panel .primary {
    grid-column: 2;
    grid-row: 2;
  }

  .folder-picker-row .folder-picker {
    height: auto;
    min-height: 2.75rem;
  }

  .sound-toggle {
    width: 2.75rem;
    height: 2.75rem;
  }

  .toast {
    top: auto;
    right: 1rem;
    bottom: 4.25rem;
  }
}

@media (max-width: 440px) {
  .landing {
    padding-inline: 1rem;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 2.9rem);
  }

  .visual-content {
    padding-inline: .75rem;
  }

  .visual-sidebar {
    width: 2.5rem;
  }

  .visual-content {
    margin-left: 2.5rem;
  }

  .visual-file em {
    display: none;
  }

  .upload-panel form {
    grid-template-columns: minmax(0, 1fr);
  }

  .upload-panel .primary {
    grid-column: 1;
    grid-row: auto;
  }

  .queue-item > .queue-state {
    max-width: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-video {
    display: none;
  }

  .site-video-shade {
    background: radial-gradient(ellipse at 75% 10%, #152440, transparent 55%);
  }

  .sound-toggle,
  .dropzone,
  .primary,
  .toast {
    transition: none;
  }
}
.workspace-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .65rem;
  padding: 0;
  margin: 0 0 1.25rem;
  list-style: none;
  color: var(--muted);
  font-size: .875rem;
}

.workspace-crumbs li {
  display: inline-flex;
  align-items: baseline;
  gap: .65rem;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.workspace-crumbs li + li::before {
  content: "/";
  color: var(--muted);
}

.workspace-crumbs a:hover,
.workspace-file a:hover {
  color: var(--accent);
}

.workspace-crumbs [aria-current] {
  color: var(--text);
}

.workspace .drive-title h1 {
  overflow-wrap: anywhere;
}

.workspace-search select,
.workspace-move select,
.workspace-subaction input:not([type="hidden"]) {
  min-width: 0;
  border: 1px solid #3a4d6d;
  border-radius: .6rem;
  background-color: var(--surface);
  color: var(--text);
  padding: .63rem .75rem;
  font: inherit;
}

.workspace-search select {
  width: auto;
}

.workspace-search button,
.workspace-search a {
  font-size: .875rem;
}

.workspace-file {
  display: grid;
  min-width: 0;
  gap: .3rem;
}

.workspace-file small,
.workspace .file-row time {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.workspace .file-row.heading > :last-child {
  text-align: right;
}

.workspace-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: .7rem;
  margin-top: 1.125rem;
  color: var(--muted);
  font-size: .875rem;
}

.workspace-move {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow-wrap: anywhere;
}

.workspace-move h2 {
  margin: 0;
  font-size: 1.1rem;
}

.workspace-move p {
  color: var(--muted);
}

.workspace-move form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: .7rem;
}

.workspace-move label,
.workspace-subaction label {
  display: grid;
  gap: .45rem;
  min-width: 0;
  color: var(--muted);
  font-size: .875rem;
}

.workspace-move label {
  flex: 1 1 12rem;
}

.workspace-move .secondary {
  display: inline-flex;
  align-items: center;
}

.workspace-menu {
  position: relative;
}

.workspace-menu summary {
  min-height: 2.4rem;
  padding: .55rem .7rem;
  border: 1px solid #3a4d6d;
  border-radius: .6rem;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  font-size: .875rem;
  list-style-position: inside;
}

.workspace-menu summary:hover {
  border-color: var(--accent);
}

.workspace-popover {
  position: absolute;
  z-index: 4;
  right: 0;
  top: calc(100% + .45rem);
  display: grid;
  width: min(19rem, calc(100vw - 4.5rem));
  max-height: min(30rem, 68vh);
  gap: .6rem;
  min-width: 0;
  padding: .7rem;
  overflow: auto;
  border: 1px solid #435a7f;
  border-radius: .75rem;
  background: #172236;
  box-shadow: 0 16px 42px rgba(0, 0, 0, .45);
}

.workspace-popover > a,
.workspace-popover > button,
.workspace-popover > form > button {
  width: 100%;
  min-height: 2.5rem;
  padding: .6rem .7rem;
  font-size: .875rem;
  text-align: left;
}

.workspace-popover > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: .875rem;
}

.workspace-subaction form {
  display: grid;
  gap: .6rem;
  padding: .7rem .25rem .3rem;
}

.workspace-subaction label.workspace-check {
  display: flex;
  align-items: center;
}

.workspace-subaction .workspace-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
}

@media (max-width: 780px) {
  .workspace .file-row:not(.heading) > .row-actions {
    flex-wrap: wrap;
  }

  .workspace-popover {
    position: static;
    margin-top: .45rem;
  }

  .workspace-search select {
    min-width: 7rem;
  }

  .workspace-pagination {
    justify-content: center;
  }
}

