:root {
  color-scheme: dark;
  --bg: #0c101f;
  --surface: #131b2b;
  --raised: #1e2738;
  --line: #384458;
  --ink: #f4f1ea;
  --muted: #acb5c5;
  --accent: #e6d8c2;
  --accent-hover: #f1e7d8;
  --danger: #ffb5a9;
  --gutter: clamp(16px,3vw,48px);
  font: 16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;
}
* { box-sizing: border-box }
body { margin: 0; background: var(--bg); color: var(--ink) }
h1, h2, p { margin: 0 }
h1 { font-size: clamp(22px,2.4vw,30px); font-weight: 650; line-height: 1.2 }
h2 { font-size: 19px; font-weight: 640; line-height: 1.25 }
a { color: inherit }
button, input, select { font: inherit; color: inherit }
button, summary { cursor: pointer }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px }
svg { display: inline-block; width: 18px; height: 18px; vertical-align: middle; flex: none }
[hidden] { display: none !important }

.app { width: min(100%,1440px); margin: auto; padding: 0 var(--gutter) 28px }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; border-bottom: 1px solid var(--line) }
.brand { background: transparent; border: 0; padding: 5px 0; text-align: left }
.wordmark { color: var(--ink); font-size: clamp(19px,3.5vw,26px); font-weight: 650; line-height: 1.2; letter-spacing: .1px; white-space: nowrap }
.wordmark em { color: var(--accent); font-weight: 450 }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 9px; background: transparent; text-decoration: none; font-size: 14px; font-weight: 600 }
.btn:hover { background: var(--raised); border-color: var(--muted) }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg) }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover) }
.btn.icon { min-width: 40px; padding: 4px }
.btn:disabled { opacity: .46; cursor: default }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }

.app:has(> .explorer) {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr);
  overflow: hidden;
}
.app:has(> .explorer) > .bar {
  min-height: 58px;
  background: var(--bg);
  padding: 0 max(20px,env(safe-area-inset-right)) 0 max(20px,env(safe-area-inset-left));
}
.app:has(> .explorer) .wordmark { font-size: clamp(19px,2vw,24px) }
.top-right .btn { min-height: 34px; color: var(--muted); font-size: 13px }
.explorer {
  display: grid;
  grid-template-columns: clamp(220px,16vw,312px) minmax(0,1fr);
  position: relative;
  min-height: 0;
}
.request-box, .guest-hero, .file-table, .linkrow, dialog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.explorer-side {
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  min-width: 0;
  min-height: 0;
  background: var(--surface);
  border-right: 1px solid var(--line);
}
.side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 39px;
  padding: 6px 15px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}
.tree-dismiss, .sidebar-backdrop, .tree-reveal { display: none }
.tree {
  margin: 0;
  padding: 2px 8px 10px;
  overflow: auto;
  overscroll-behavior: contain;
}
.tree, .table-scroll, .side-content { scrollbar-width: thin; scrollbar-color: #53647c var(--surface) }
.tree ul { margin: 0 0 0 10px; padding: 0 0 0 2px; list-style: none; border-left: 1px solid var(--line) }
.tree-item { display: flex; align-items: center; min-width: 0; border-radius: 7px; margin-bottom: 1px }
.tree-item:hover, .tree-item[data-context], .nav:hover { background: var(--raised); color: var(--ink) }
.tree-item:has([aria-current="location"]), .nav[aria-current="page"] {
  background: var(--raised);
  color: var(--accent);
  box-shadow: inset 2px 0 var(--accent);
}
.tree-open, .tree-toggle, .path-part, .nav {
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.tree-open, .tree-toggle { display: flex; align-items: center; padding: 0 }
.tree-open { flex: 1; min-height: 33px; gap: 6px; padding-right: 5px; font-size: 13px; font-weight: 560 }
.tree-root .tree-open { font-weight: 650 }
.tree-open span, .path-part span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.tree-open svg, .tree-toggle svg { width: 14px; height: 14px }
.tree-open svg, .nav svg { color: var(--accent) }
.tree-toggle, .tree-spacer { width: 22px; min-height: 31px; flex: none; justify-content: center; color: var(--muted) }
.tree-toggle[aria-expanded="true"] svg { transform: rotate(90deg) }
.tree-open:focus-visible, .tree-toggle:focus-visible, .nav:focus-visible, .path-part:focus-visible { outline-offset: -2px; border-radius: 6px }
.side-links {
  display: grid;
  gap: 1px;
  padding: 7px 8px max(7px,env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 5px 10px; border-radius: 7px; color: var(--muted); font-size: 13px }
.nav svg { width: 16px }

.explorer-content { display: flex; flex-direction: column; min-width: 0; min-height: 0 }
.workspace-toolbar {
  flex: none;
  display: grid;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  z-index: 3;
}
.folder-heading, .folder-title, .heading-actions, .history-controls, .pathbar, .table-foot, .selection-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.folder-heading { justify-content: space-between; gap: 12px }
.folder-heading h1 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(20px,2vw,27px) }
.heading-actions { flex: none; flex-wrap: wrap }
.heading-actions .btn, .pathbar .btn, .path, .search { min-height: 36px }
.heading-actions .btn, .workspace-toolbar-simple .btn { font-size: 13px; white-space: nowrap }
.heading-actions .btn svg { width: 16px }
.history-controls { flex: none; gap: 3px }
.history-controls .btn { min-width: 34px; border-color: transparent; color: var(--muted) }
.history-controls .btn:hover { border-color: var(--line); color: var(--ink) }
.history-controls .btn svg { width: 16px }
.path {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: auto;
  scrollbar-width: thin;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.path-part { flex: none; max-width: 200px; padding: 4px 6px; border-radius: 5px; font-size: 13px }
.path-part span { display: block }
.path-part:hover { background: var(--raised) }
.path-part[aria-current="location"] { color: var(--accent); font-weight: 650 }
.path svg { width: 13px; color: var(--muted) }
.search { display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted) }
.search:focus-within { outline: 2px solid var(--accent); outline-offset: 1px }
.search svg { width: 15px }
.search input { width: clamp(115px,17vw,230px); min-width: 0; padding: 4px 0; border: 0; background: transparent; color: var(--ink); font-size: 13px }
.search input:focus-visible { outline: 0 }
.search input::placeholder { color: var(--muted) }
.view-toolbar, .view-switch { display: flex; align-items: center; gap: 6px }
.view-toolbar { justify-content: space-between }
.view-switch { gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface) }
.view-switch .btn, .sort-trigger { min-height: 32px; border-radius: 6px; font-size: 13px; white-space: nowrap }
.view-switch .btn { padding: 4px 10px; border: 0; color: var(--muted) }
.view-switch .btn[aria-pressed="true"] { background: var(--raised); color: var(--accent); box-shadow: inset 0 0 0 1px var(--line) }
.view-switch .btn svg, .sort-trigger svg { width: 16px; height: 16px }
.toolbar-menu { position: relative }
.toolbar-menu summary { list-style: none }
.toolbar-menu summary::-webkit-details-marker { display: none }
.toolbar-menu summary svg:last-child:not(:first-child) { width: 13px }
.action-list {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  z-index: 4;
  display: grid;
  min-width: 174px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px #06091199;
}
.action-list .btn { border: 0; justify-content: flex-start; white-space: nowrap }
.action-list .sort-option { width: 100%; justify-content: space-between; min-height: 34px; font-size: 13px }
.sort-option svg { width: 16px; visibility: hidden }
.sort-option[aria-pressed="true"] { color: var(--accent) }
.sort-option[aria-pressed="true"] svg { visibility: visible }
.menu-divider { height: 1px; margin: 4px 5px; background: var(--line) }
#file-actions .action-list { inset: auto 0 calc(100% + 5px) auto }
.context-menu {
  position: fixed;
  z-index: 9;
  display: grid;
  width: max-content;
  min-width: 205px;
  max-width: calc(100vw - 16px);
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 14px 36px #060911ab;
}
.context-menu .btn { justify-content: flex-start; min-height: 34px; padding: 5px 9px; border: 0; border-radius: 6px; font-size: 13px }
.context-menu .btn:focus-visible { outline-offset: -2px }
.context-menu .btn svg { width: 16px; height: 16px; color: var(--accent) }
.context-menu [data-action="trash"], .context-menu [data-action="trash"] svg { color: var(--danger) }
.selection-readout, .file-status, .table-foot { color: var(--muted); font-size: 13px }
.file-status { overflow-wrap: anywhere }
.file-status:empty { display: none }

.file-panel { display: grid; grid-template-rows: minmax(0,1fr) auto; flex: 1; min-height: 0; min-width: 0; background: var(--surface) }
.table-scroll, .side-content { overflow: auto; overscroll-behavior: contain; min-height: 0 }
.table-scroll:focus-visible { outline-offset: -2px }
.side-content { flex: 1; padding: 14px 18px }
.explorer-table { width: 100%; min-width: 550px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 14px; text-align: left }
.explorer-table th, .explorer-table td { padding: 0 10px; height: 39px; text-align: left }
.explorer-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  height: 36px;
  border-bottom: 1px solid var(--line);
  background: var(--raised);
  color: var(--muted);
  white-space: nowrap;
}
.explorer-table th:nth-child(1) { width: 42px }
.explorer-table th:nth-child(3) { width: clamp(96px,9vw,155px) }
.explorer-table th:nth-child(4) { width: clamp(100px,9vw,155px) }
.explorer-table th:nth-child(5) { width: clamp(145px,14vw,220px) }
.explorer-table th:nth-child(6) { width: 51px }
.explorer-table th:first-child, .explorer-table td:first-child { padding-left: 16px }
.explorer-table th button { border: 0; background: transparent; padding: 4px 0; color: inherit; font-size: 13px; font-weight: 650 }
.explorer-table th button:hover, .explorer-table th[aria-sort] button { color: var(--accent) }
.explorer-table th[aria-sort="ascending"] button::after { content: ' ↑' }
.explorer-table th[aria-sort="descending"] button::after { content: ' ↓' }
.explorer-table tr + tr td { border-top: 1px solid color-mix(in srgb,var(--line) 60%,transparent) }
.explorer-table tr:hover td, .explorer-table [data-selected] td, .explorer-table [data-context] td { background: var(--raised) }
.selection { display: block; width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: pointer }
.row-name { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; min-height: 36px; padding: 4px 0; border: 0; background: transparent; text-align: left; font-weight: 560 }
.row-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.row-name svg { width: 16px; color: var(--muted) }
.row-name[data-folder] svg { color: var(--accent) }
.explorer-table td:nth-child(n+3) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums }
.explorer-table td .btn.icon { min-width: 32px; min-height: 34px; padding: 3px; border: 0; color: var(--accent) }
.explorer-table td .btn.icon:hover { background: var(--line) }
.explorer-table td .btn.icon svg { width: 16px }
.file-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%,160px),1fr));
  gap: 10px;
  padding: 14px 18px;
}
.file-card { position: relative; min-width: 0 }
.card-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 72px;
  padding: 9px 29px 9px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  text-align: left;
  user-select: none;
}
.card-button:hover, .file-card[data-selected] .card-button, .file-card[data-context] .card-button {
  background: var(--raised);
  border-color: var(--muted);
}
.file-card[data-selected] .card-button, .file-card[data-context] .card-button { border-color: var(--accent) }
.file-card > .selection { position: absolute; top: 10px; right: 9px }
.card-art {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--raised);
  color: var(--muted);
}
.card-art svg { width: 21px; height: 21px }
.card-art.card-folder { background: #2a2a32; color: var(--accent) }
.card-caption { min-width: 0 }
.card-name, .card-caption small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.card-name { font-size: 13px; font-weight: 600 }
.card-caption small { margin-top: 3px; color: var(--muted); font-size: 12px }
.thumbnail-cards { grid-template-columns: repeat(auto-fill,minmax(min(100%,144px),1fr)) }
.thumbnail-cards .card-button { display: grid; gap: 7px; padding: 6px 6px 8px }
.thumbnail-cards .card-art { width: 100%; height: auto; aspect-ratio: 4 / 3 }
.thumbnail-cards .card-art svg { width: 34px; height: 34px }
.thumbnail-cards .card-caption { padding-inline: 4px }
.preview-image { visibility: hidden }
.preview-image.is-ready { visibility: visible }
.card-art .preview-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.table-empty, .empty { color: var(--muted); padding: 32px 12px; text-align: center }
.table-foot {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  min-height: 42px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 4px 16px max(4px,env(safe-area-inset-bottom));
}
.selection-tools .btn { min-height: 32px; font-size: 13px }

.links { display: grid; gap: 10px }
.linkrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px }
.linkrow>div:nth-child(2) { flex: 1; min-width: 135px; overflow-wrap: anywhere }
.linkrow b, .linkrow small { display: block }
.linkrow small { margin-top: 3px; color: var(--muted) }
.file-icon, .folder-icon { display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--raised); color: var(--accent) }

.guest-top { justify-content: center }
.guest-body { max-width: 790px; margin: 25px auto 0 }
.guest-body.ask { max-width: 640px }
.guest-hero { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: clamp(16px,3vw,28px); margin-bottom: 14px }
.guest-hero h1, .request-box h1 { overflow-wrap: anywhere }
.guest-hero p, .subtitle { margin-top: 8px; color: var(--muted) }
.file-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px }
.file-row + .file-row { border-top: 1px solid var(--line) }
.file-name { min-width: 0; overflow-wrap: anywhere }
.file-name b, .file-name small { display: block }
.file-name small, .file-size { color: var(--muted); font-size: 13px }
.mobile-size { display: none }
.request-box { padding: clamp(17px,3vw,30px) }
.request-heading { display: flex; align-items: center; gap: 12px }
.drop { display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 140px; padding: 12px; margin: 16px 0 12px; border: 1px dashed var(--muted); border-radius: 10px; background: var(--bg); text-align: center }
.drop.drag { border-color: var(--accent); background: var(--raised) }
.drop p, .request-foot p, .upload-progress { color: var(--muted); font-size: 13px }
.queue { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none }
.queue:empty { margin: 0 }
.queue li, .request-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px }
.queue li { padding: 6px 8px; border-radius: 8px; background: var(--raised); overflow-wrap: anywhere }
.queue small { color: var(--muted) }
.request-foot { flex-wrap: wrap }
.upload-progress:not(:empty) { margin-top: 10px; overflow-wrap: anywhere }

.login-wrap { display: grid; place-items: center; min-height: min(540px,calc(100svh - 104px)); padding: 20px 0 }
.login-wrap .request-box { width: min(430px,100%) }
.login-wrap .form { margin-top: 18px }
dialog { width: min(510px,calc(100% - 30px)); padding: 0; color: var(--ink) }
dialog::backdrop { background: #060911b8 }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 17px; border-bottom: 1px solid var(--line) }
.modal-body { padding: 17px }
.modal-head h2 { min-width: 0; overflow-wrap: anywhere }
dialog:has(.file-preview) { width: min(800px,calc(100% - 24px)) }
.file-preview { display: grid; place-items: center; min-height: 132px; border-radius: 8px; background: var(--bg); text-align: center }
.file-preview > img { grid-area: 1 / 1; max-width: 100%; max-height: 58dvh; object-fit: contain }
.file-preview > p { grid-area: 1 / 1 }
.preview-placeholder svg { width: 46px; height: 46px; color: var(--muted) }
.preview-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 13px }
.preview-footer .btn { color: var(--ink) }
.form { display: grid; gap: 12px }
.form label { display: grid; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 600 }
.form input, .form select { width: 100%; min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--ink) }
.form .actions { justify-content: flex-end }
.folder-options { max-height: 164px; overflow: auto; margin: 8px 0 }
.form label + .actions { margin-top: 8px }
.inline-error { color: var(--danger) }
.share-target, .share-password-caption { display: flex; align-items: center; gap: 8px }
.share-target { min-width: 0; color: var(--muted); font-size: 13px }
.share-target svg { width: 16px; height: 16px; color: var(--accent) }
.share-target span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.share-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,31%); gap: 9px }
.share-form input, .share-form select { font-size: 14px; min-width: 0 }
.share-fields input[readonly] { color: var(--muted) }
.share-password-caption { justify-content: space-between }
.share-password-caption small { font-size: 12px; font-weight: 500; color: var(--accent) }
.share-address { display: grid; gap: 6px }
.share-pending { color: var(--muted); font-size: 12px }
.share-link-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px }
.share-link-tools { display: flex; gap: 7px }
.share-link-tools .btn, .share-footer .btn { font-size: 13px; white-space: nowrap }
.share-link-tools .btn svg { width: 15px; height: 15px }
.share-link-tools .btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent) }
.share-qr {
  display: grid;
  justify-items: center;
  padding: 4px 0;
}
.share-qr img { display: block; max-width: 100%; height: auto; border-radius: 6px }
.share-qr-error { color: var(--danger); font-size: 13px }
.share-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line) }
.share-footer .actions { margin-left: auto }
.share-remove { color: var(--muted) }
.share-feedback { color: var(--accent); font-size: 13px }
.share-feedback:empty { display: none }
.guest-password { margin-top: 16px }
.guest-password > .btn { justify-self: start }
.notice { position: fixed; z-index: 10; right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); max-width: min(390px,calc(100% - 32px)); padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--raised); color: var(--ink); box-shadow: 0 5px 20px #06091180; font-size: 14px; overflow-wrap: anywhere }

@media (max-width: 485px) {
  .share-link-row { grid-template-columns: 1fr }
  .share-link-tools { flex-wrap: wrap }
}

@media (max-width: 900px) {
  .app { --gutter: 14px }
  .bar { min-height: 62px }
  .explorer { grid-template-columns: 192px minmax(0,1fr) }
  .workspace-toolbar { padding-inline: 12px }
  .explorer-table th:nth-child(5), .explorer-table td:nth-child(5) { display: none }
  .explorer-table { min-width: 386px }
}
@media (max-width: 700px) {
  .app:has(> .explorer) > .bar { min-height: 52px; padding-inline: 12px }
  .explorer { grid-template-columns: minmax(0,1fr) }
  .explorer-side {
    display: none;
    position: absolute;
    inset: 0 auto 0 0;
    width: min(82vw,300px);
    z-index: 6;
    box-shadow: 12px 0 28px #06091188;
  }
  .explorer[data-tree="true"] .explorer-side { display: grid }
  .explorer[data-tree="true"] .sidebar-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 5;
    width: 100%;
    border: 0;
    background: #06091188;
  }
  .tree-reveal, .tree-dismiss { display: inline-flex; min-width: 36px; min-height: 36px }
  .side-heading { padding: 5px 9px 5px 14px }
  .tree-open, .tree-toggle, .nav { min-height: 40px }
  .folder-heading { flex-wrap: wrap }
  .heading-actions { flex: 0 1 auto; margin-left: auto; gap: 5px }
  .pathbar { flex-wrap: wrap; gap: 6px }
  .path { min-width: 90px }
  .pathbar .search { flex: 1 0 100% }
  .pathbar .search input { flex: 1; width: auto }
  .explorer-table { min-width: 0 }
  .explorer-table th:nth-child(4), .explorer-table td:nth-child(4) { display: none }
  .explorer-table th:nth-child(1) { width: 32px }
  .explorer-table th:nth-child(3) { width: 77px }
  .explorer-table th:nth-child(6) { width: 41px }
  .explorer-table th, .explorer-table td { padding: 0 5px }
  .explorer-table th:first-child, .explorer-table td:first-child { padding-left: 9px }
  .table-foot { padding-inline: 10px }
  .file-cards { gap: 8px; padding: 10px 12px }
  .thumbnail-cards { grid-template-columns: repeat(auto-fill,minmax(min(100%,104px),1fr)) }
  .guest-body { margin-top: 16px }
  .file-row { grid-template-columns: auto minmax(0,1fr) auto; gap: 7px; padding: 8px }
  .file-row .btn { padding: 5px 8px; font-size: 13px }
  .file-row .file-icon { width: 30px; height: 34px }
  .file-row .file-size { display: none }
  .mobile-size { display: inline }
}
@media (max-width: 390px) {
  .heading-actions .btn { padding-inline: 6px; gap: 4px; font-size: 12px }
  .heading-actions .btn svg { width: 14px }
  .view-switch .btn, .sort-trigger { gap: 4px; padding-inline: 5px; font-size: 12px }
  .view-switch .btn svg, .sort-trigger svg { width: 13px; height: 13px }
}
@media (max-width: 350px) {
  .view-switch .btn svg { display: none }
}
