:root {
  color-scheme: light;
  --ink: #20242a;
  --muted: #6d7480;
  --soft: #eef1f5;
  --line: rgba(125, 137, 153, 0.28);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-2: rgba(246, 248, 251, 0.78);
  --accent: #0a84ff;
  --accent-dark: #0066cc;
  --amber: #ff9f0a;
  --green: #32d74b;
  --red: #ff453a;
  --violet: #bf5af2;
  --shadow: 0 26px 80px rgba(42, 50, 62, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(10, 132, 255, 0.22), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(255, 159, 10, 0.18), transparent 26%),
    radial-gradient(circle at 52% 86%, rgba(191, 90, 242, 0.14), transparent 30%),
    linear-gradient(135deg, #eef3f9 0%, #f7f8fb 45%, #edf0f5 100%);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

[data-icon] {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

[data-icon] svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.1;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
}

.login-panel {
  display: grid;
  width: min(440px, 100%);
  gap: 24px;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(28px) saturate(1.15);
}

.login-brand,
.brand-row,
.topbar,
.topbar-actions,
.section-head,
.preview-top,
.detail-actions {
  display: flex;
  align-items: center;
}

.login-brand,
.brand-row {
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(145deg, #0a84ff, #5e5ce6 58%, #ff9f0a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px rgba(10, 132, 255, 0.22);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 34px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 28px;
}

h3 {
  margin-bottom: 6px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.slider-verify {
  display: grid;
  gap: 9px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.slider-label strong {
  color: var(--accent-dark);
  font-size: 12px;
}

.slider-track {
  position: relative;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(239, 243, 248, 0.72)),
    repeating-linear-gradient(90deg, rgba(10, 132, 255, 0.08) 0 1px, transparent 1px 14px);
}

.slider-track::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  content: "拖动到最右侧";
  font-size: 13px;
  pointer-events: none;
}

.slider-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(10, 132, 255, 0.18), rgba(50, 215, 75, 0.24));
  transition: width 0.08s ease;
}

.slider-thumb {
  position: absolute;
  left: 3px;
  top: 3px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 8px 18px rgba(10, 132, 255, 0.24);
  touch-action: none;
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

.slider-thumb svg {
  transform: rotate(135deg);
}

.slider-verify.dragging .slider-thumb {
  box-shadow: 0 10px 24px rgba(10, 132, 255, 0.32);
}

.slider-verify.verified .slider-track::after {
  color: var(--accent-dark);
  content: "验证通过";
  font-weight: 800;
}

.slider-verify.verified .slider-thumb {
  background: var(--green);
}

.slider-verify.verified .slider-fill {
  background: linear-gradient(90deg, rgba(50, 215, 75, 0.22), rgba(10, 132, 255, 0.16));
}

.login-form input,
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.login-form input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
}

.login-form input:focus,
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(8, 124, 137, 0.12);
}

.login-form button,
.upload-zone button,
.detail-actions button {
  display: inline-flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  background: var(--accent);
}

.login-form button:hover,
.upload-zone button:hover,
.detail-actions button:hover {
  background: var(--accent-dark);
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
}

.login-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.app-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: calc(100vh - 40px);
  margin: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: var(--shadow);
  backdrop-filter: blur(30px) saturate(1.18);
}

.sidebar {
  display: flex;
  position: sticky;
  top: 0;
  height: calc(100vh - 40px);
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-right: 1px solid var(--line);
  background: rgba(245, 247, 251, 0.62);
  backdrop-filter: blur(28px) saturate(1.12);
}

.sidebar::before {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  content: "";
  width: 54px;
  height: 12px;
  background:
    radial-gradient(circle at 6px 6px, #ff5f57 0 5px, transparent 6px),
    radial-gradient(circle at 27px 6px, #febc2e 0 5px, transparent 6px),
    radial-gradient(circle at 48px 6px, #28c840 0 5px, transparent 6px);
}

.brand-row {
  margin-bottom: 28px;
}

.brand-row strong,
.brand-row span {
  display: block;
}

.brand-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.folder-nav {
  display: grid;
  gap: 6px;
}

.folder-nav button,
.ghost-button,
.icon-button,
.segmented button {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
}

.folder-nav button {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 10px;
  text-align: left;
}

.folder-nav button.active,
.folder-nav button:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 22px rgba(42, 50, 62, 0.08);
}

.folder-nav [data-icon] {
  color: var(--accent);
}

.storage-card,
.summary-strip article,
.upload-zone,
.file-section,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(24, 32, 42, 0.06);
  backdrop-filter: blur(18px) saturate(1.08);
}

.storage-card {
  padding: 16px;
}

.quota-card {
  position: relative;
  overflow: hidden;
}

.quota-card::after {
  position: absolute;
  right: -30px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(50, 215, 75, 0.2), transparent 62%);
  content: "";
  pointer-events: none;
}

.storage-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.storage-head strong {
  color: var(--ink);
}

.meter {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #dfe8ec;
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width 0.2s ease;
}

.storage-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.workspace {
  min-width: 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.32);
}

.topbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.topbar-actions {
  gap: 10px;
}

.search-box {
  display: flex;
  width: min(380px, 42vw);
  height: 42px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
}

.icon-button,
.ghost-button {
  display: inline-grid;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  place-items: center;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.78);
}

.ghost-button {
  display: inline-flex;
  padding: 0 14px;
  border-color: var(--line);
}

.ghost-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.danger-ghost {
  color: var(--red);
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.summary-strip article {
  padding: 16px;
}

.summary-strip span,
.section-head p,
.file-meta,
.preview-content p,
.security-list dt {
  color: var(--muted);
  font-size: 13px;
}

.summary-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.traffic-stat {
  display: grid !important;
  gap: 4px;
  font-size: 15px !important;
  line-height: 1.25;
}

.traffic-stat em {
  font-style: normal;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 18px;
  align-items: start;
}

.primary-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.upload-zone {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  outline: 0;
}

.upload-zone.dragging {
  border-color: var(--accent);
  background: rgba(8, 124, 137, 0.08);
}

.upload-zone input {
  display: none;
}

.upload-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 8px;
  background: #e5f3f4;
  color: var(--accent);
}

.upload-mark [data-icon],
.upload-mark svg {
  width: 28px;
  height: 28px;
}

.upload-zone strong,
.upload-zone p {
  display: block;
  margin: 0;
}

.upload-zone p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.upload-limit {
  color: var(--accent-dark) !important;
  font-size: 12px !important;
}

.upload-progress {
  height: 7px;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 99px;
  background: rgba(125, 137, 153, 0.2);
}

.upload-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width 0.18s ease;
}

.upload-zone button {
  width: 108px;
}

.file-section {
  padding: 18px;
}

.section-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head p {
  margin-bottom: 0;
}

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.segmented button {
  min-width: 56px;
  height: 32px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
}

.segmented button.active {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(24, 32, 42, 0.08);
}

.path-bar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(246, 248, 251, 0.72);
}

.path-bar span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.path-bar strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.path-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.folder-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px 82px;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
}

.folder-create label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.folder-create input {
  height: 40px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.folder-create input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.12);
}

.folder-create button {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  background: var(--accent);
}

.folder-create .ghost-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
}

.bulk-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid rgba(10, 132, 255, 0.22);
  border-radius: 12px;
  background: rgba(229, 243, 255, 0.74);
}

.bulk-bar span {
  flex: 1;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 800;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-list.grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.file-row {
  display: grid;
  grid-template-columns: 24px 42px minmax(0, 1fr) 104px 104px 36px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  text-align: left;
}

.file-list.grid .file-row {
  grid-template-columns: 1fr;
  align-items: start;
  min-height: 178px;
}

.folder-row {
  grid-template-columns: 42px minmax(0, 1fr) 104px 104px 36px;
}

.row-check {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.file-row:hover,
.file-row.active {
  border-color: rgba(8, 124, 137, 0.45);
  box-shadow: 0 8px 22px rgba(8, 124, 137, 0.1);
}

.file-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  background: var(--accent);
}

.file-icon.image {
  background: #6f7f38;
}

.file-icon.sheet {
  background: var(--green);
}

.file-icon.pdf {
  background: var(--red);
}

.file-icon.archive {
  background: var(--violet);
}

.file-icon.folder-entry {
  background: linear-gradient(145deg, #0a84ff, #5e5ce6);
}

.file-icon.folder-entry svg {
  width: 22px;
  height: 22px;
}

.file-name {
  display: block;
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  display: block;
  margin-top: 4px;
}

.row-action {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--amber);
}

.detail-panel {
  position: sticky;
  top: 24px;
  min-height: 540px;
  padding: 18px;
}

.empty-preview {
  display: grid;
  min-height: 500px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.preview-symbol {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--accent);
}

.preview-symbol [data-icon],
.preview-symbol svg {
  width: 36px;
  height: 36px;
}

.empty-preview h3,
.empty-preview p {
  margin-bottom: 8px;
}

.empty-preview p {
  max-width: 230px;
  color: var(--muted);
}

.preview-content {
  display: grid;
  gap: 14px;
}

.preview-top {
  justify-content: space-between;
}

.file-badge {
  display: inline-grid;
  min-width: 46px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #e5f3f4;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.preview-content h3 {
  margin-bottom: 0;
  line-height: 1.25;
}

.preview-content p {
  margin-bottom: 0;
}

.preview-box {
  overflow: hidden;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.doc-preview {
  padding: 18px;
  line-height: 1.72;
}

.doc-preview strong {
  display: block;
  margin-bottom: 8px;
}

.image-preview {
  display: grid;
  min-height: 230px;
  place-items: center;
  background:
    linear-gradient(45deg, #e4e9ef 25%, transparent 25%),
    linear-gradient(-45deg, #e4e9ef 25%, transparent 25%),
    #f8fafc;
  background-position:
    0 0,
    0 8px;
  background-size: 16px 16px;
}

.image-preview img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.image-placeholder {
  display: grid;
  width: 210px;
  height: 140px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(8, 124, 137, 0.9), rgba(183, 107, 42, 0.78)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='160' viewBox='0 0 240 160'%3E%3Cpath d='M30 122 82 70l38 36 24-22 66 58H30z' fill='%23ffffff' opacity='.35'/%3E%3Ccircle cx='172' cy='45' r='18' fill='%23ffffff' opacity='.45'/%3E%3C/svg%3E");
}

.sheet-preview {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sheet-preview th,
.sheet-preview td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.sheet-preview th {
  background: #eaf4ee;
}

.detail-actions {
  gap: 10px;
}

.detail-actions button {
  flex: 1;
}

.detail-actions .danger-button {
  border: 1px solid rgba(179, 63, 63, 0.35);
  background: #fff;
  color: var(--red);
}

.detail-actions .danger-button:hover {
  background: #fff5f5;
}

.file-edit {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.file-edit label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.file-edit input,
.file-edit select {
  width: 100%;
  height: 38px;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.file-edit button {
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  background: var(--accent);
}

.text-preview {
  max-height: 320px;
  margin: 0;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ink);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.65;
}

.pdf-preview {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.security-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.security-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.security-list dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(23, 32, 43, 0.94);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(20, 26, 34, 0.34);
  backdrop-filter: blur(10px);
}

.modal-panel {
  width: min(380px, 100%);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.modal-panel p {
  color: var(--muted);
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.danger-button {
  display: inline-flex;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(179, 63, 63, 0.35);
  border-radius: 10px;
  color: #fff;
  font-weight: 800;
  background: var(--red);
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
    margin: 0;
    min-height: 100vh;
    border-radius: 0;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    gap: 18px;
    align-items: start;
  }

  .sidebar > div {
    flex: 1;
  }

  .folder-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .storage-card {
    width: 260px;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .app-shell {
    margin: 0;
    min-height: 100vh;
  }

  .workspace,
  .sidebar {
    padding: 16px;
  }

  .sidebar,
  .topbar,
  .topbar-actions,
  .upload-zone,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .storage-card,
  .search-box {
    width: 100%;
  }

  .folder-nav,
  .summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .upload-zone {
    grid-template-columns: 1fr;
  }

  .upload-zone button {
    width: 100%;
  }

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

.file-row > .file-meta {
    display: none;
  }

  .path-bar {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .path-actions {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
  }

  .path-actions .ghost-button {
    width: 100%;
  }

  .folder-create {
    grid-template-columns: 1fr;
  }

  .slider-label {
    flex-direction: column;
    gap: 4px;
  }
}
