:root {
  /* Neon-on-near-black palette */
  --bg: #06070c;
  --bg-elev: #0b0e16;
  --bg-row: #10141f;
  --bg-row-hover: #161c2b;
  --bg-row-selected: rgba(0, 229, 255, 0.09);
  --border: #1c2334;
  --border-bright: #2b3550;
  --text: #e9edf6;
  --text-dim: #7f8aa0;
  --accent: #00e5ff;
  --accent-strong: #4df0ff;
  --accent-2: #c26bff;
  --accent-ink: #03222b;
  --good: #2dffab;
  --bad: #ff5470;
  --warn: #ffc857;
  --glow-accent: 0 0 14px rgba(0, 229, 255, 0.35);
  --glow-good: 0 0 10px rgba(45, 255, 171, 0.45);
  --glow-bad: 0 0 10px rgba(255, 84, 112, 0.45);
  --radius: 10px;
  --row-h: 40px;
  /* File-list grid columns — one definition shared by header + rows,
     redefined per breakpoint. */
  --list-cols: 40px 1fr 110px 170px 108px;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo,
    "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

/* The HTML `hidden` attribute defaults to `display: none` via the UA
   stylesheet, but author styles like `display: flex` on .dropzone/.uploads
   override that. This rule restores the expected behaviour. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  grid-template-columns: 1fr;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  /* Ambient neon wash — two faint orbs, cyan top-left, violet bottom-right. */
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(0, 229, 255, 0.07), transparent 60%),
    radial-gradient(1000px 500px at 105% 110%, rgba(194, 107, 255, 0.06), transparent 60%),
    var(--bg);
}

::selection { background: rgba(0, 229, 255, 0.25); }

input[type="checkbox"] { accent-color: var(--accent); }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 10px 16px;
  background: rgba(11, 14, 22, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.brand .logo {
  color: var(--accent);
  font-size: 20px;
  text-shadow: var(--glow-accent);
}
.brand-name {
  letter-spacing: 0.6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.crumbs {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  min-width: 0;
}
.crumb {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: color 0.12s ease, background 0.12s ease;
}
.crumb:hover { background: var(--bg-row-hover); color: var(--text); }
.crumb.current {
  color: var(--accent-strong);
  background: var(--bg-row);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}
.crumb-sep { color: var(--text-dim); padding: 0 2px; }

.topbar-right { display: flex; gap: 12px; align-items: center; }
.search input {
  background: var(--bg-row);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 8px;
  width: 240px;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search input::placeholder { color: var(--text-dim); }
.search input:focus {
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bg-row);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  white-space: nowrap;
}
.status .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-dim);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.status.ok .dot { background: var(--good); box-shadow: var(--glow-good); }
.status.bad .dot { background: var(--bad); box-shadow: var(--glow-bad); }
.status.ok { color: var(--text); }
.status.bad { color: var(--bad); }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}
.toolbar-left, .toolbar-right { display: flex; gap: 8px; align-items: center; }
.muted { color: var(--text-dim); font-size: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-row);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease,
    box-shadow 0.12s ease, transform 0.05s ease;
}
.btn:hover:not(:disabled) {
  background: var(--bg-row-hover);
  border-color: var(--border-bright);
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--glow-accent);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #00b8d9);
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}
.btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  box-shadow: var(--glow-accent);
}
.btn.ghost { background: transparent; }
.btn.tiny { padding: 3px 8px; font-size: 11px; }
.upload-label { cursor: pointer; }

/* ---------- Clipboard chip (pending move/copy banner) ---------- */
.clipboard-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 12px;
  min-height: 24px;
  background: linear-gradient(
    to right,
    rgba(0, 229, 255, 0.12),
    rgba(0, 229, 255, 0.02)
  );
  border-bottom: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  font-size: 12px;
  line-height: 1.2;
  animation: chip-in 0.15s ease-out;
}
.clipboard-chip.is-copy {
  background: linear-gradient(
    to right,
    rgba(45, 255, 171, 0.12),
    rgba(45, 255, 171, 0.02)
  );
  border-left-color: var(--good);
}
@keyframes chip-in {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--accent);
  flex: 0 0 16px;
}
.clipboard-chip.is-copy .chip-icon { color: var(--good); }
.chip-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chip-text strong { font-weight: 600; }
.chip-from {
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip-from code {
  background: var(--bg-row);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}
.chip-actions {
  display: inline-flex;
  gap: 6px;
  flex: 0 0 auto;
}

/* ---------- Listing ---------- */
.listing {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  position: relative;
}
.list-header, .row {
  display: grid;
  grid-template-columns: var(--list-cols);
  align-items: center;
  padding: 0 16px;
  column-gap: 8px;
}
.list-header {
  height: 36px;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
}
.cell-check { display: flex; align-items: center; justify-content: center; }

.viewport {
  position: relative;
  overflow-y: auto;
  scrollbar-width: thin;
  min-height: 0;
}
.spacer { width: 1px; }
.rows { position: absolute; top: 0; left: 0; right: 0; }

.row {
  height: var(--row-h);
  border-bottom: 1px solid rgba(28, 35, 52, 0.6);
  cursor: pointer;
  transition: background 0.1s ease, box-shadow 0.1s ease;
}
.row:hover { background: var(--bg-row-hover); }
.row.selected {
  background: var(--bg-row-selected);
  box-shadow: inset 2px 0 0 var(--accent);
}
/* Entries queued for a pending Move look "lifted" — half-opacity with a
   dashed left edge so the user can tell at a glance what's about to move. */
.row.clipped {
  opacity: 0.55;
}
.row.clipped .cell-name::before {
  content: "";
  display: inline-block;
  width: 2px;
  height: 18px;
  margin-right: 6px;
  background: repeating-linear-gradient(
    to bottom,
    var(--accent) 0,
    var(--accent) 3px,
    transparent 3px,
    transparent 6px
  );
  vertical-align: middle;
}
/* Files while a cut/copy is pending — radio is disabled and the row is
   slightly faded so it's obvious they aren't valid paste destinations.
   Opacity is intentionally gentle so file names stay clearly readable;
   the disabled radio carries most of the "can't pick this" signal. */
.row.not-a-target {
  opacity: 0.7;
  cursor: default;
}
.row.not-a-target:hover { background: transparent; }
.row.not-a-target .cell-check { cursor: not-allowed; }

.row .cell-name {
  display: flex; align-items: center; gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.row .name {
  overflow: hidden;
  text-overflow: ellipsis;
}
.row.dir .name { color: var(--text); font-weight: 500; }
.row .cell-size, .row .cell-mtime {
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  font-size: 12px;
}

/* Hover-revealed row actions (edit / delete). On touch devices there is no
   hover, so they're always visible (see the `hover: none` rule below). */
.cell-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.row:hover .cell-actions,
.row.editing .cell-actions,
.cell-actions:focus-within { opacity: 1; }
@media (hover: none) {
  .cell-actions { opacity: 1; }
}
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  font-family: inherit;
  transition: background 0.12s ease, color 0.12s ease,
    border-color 0.12s ease, box-shadow 0.12s ease;
}
.row-action:hover {
  background: var(--bg-row-hover);
  color: var(--accent-strong);
  border-color: var(--border-bright);
}
.row-action.danger:hover {
  color: var(--bad);
  border-color: rgba(255, 84, 112, 0.4);
  box-shadow: 0 0 8px rgba(255, 84, 112, 0.25);
}
.row-action:disabled { opacity: 0.5; cursor: progress; }

.row .name-input {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--bg-row);
  border: 1px solid var(--accent);
  box-shadow: var(--glow-accent);
  color: var(--text);
  border-radius: 4px;
  padding: 2px 6px;
  font: inherit;
  outline: none;
}

.empty {
  position: absolute;
  inset: 36px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  pointer-events: none;
}

/* ---------- Uploads panel ---------- */
.uploads {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: min(320px, calc(100vw - 32px));
  max-height: 50vh;
  background: rgba(11, 14, 22, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(0, 229, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 20;
}
.uploads-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.uploads ul {
  list-style: none;
  margin: 0; padding: 0;
  overflow-y: auto;
}
.uploads li {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 8px;
  align-items: center;
}
.uploads li:last-child { border-bottom: none; }
.uploads .u-name {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uploads .u-state { font-size: 11px; color: var(--text-dim); }
.uploads .u-state.ok { color: var(--good); }
.uploads .u-state.err { color: var(--bad); }
.uploads .bar {
  grid-column: 1 / -1;
  height: 4px;
  background: var(--bg-row);
  border-radius: 2px;
  overflow: hidden;
}
.uploads .bar > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
  transition: width 0.1s linear;
}
.uploads li.done .bar > div { background: var(--good); box-shadow: none; }
.uploads li.err .bar > div { background: var(--bad); box-shadow: none; }

/* ---------- Dropzone ---------- */
.dropzone {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 12, 0.75);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  pointer-events: none;
}
.dropzone-inner {
  border: 2px dashed var(--accent);
  border-radius: 16px;
  padding: 40px 60px;
  font-size: 18px;
  background: rgba(0, 229, 255, 0.07);
  color: var(--text);
  box-shadow: var(--glow-accent), inset 0 0 30px rgba(0, 229, 255, 0.06);
  animation: dropzone-pulse 1.6s ease-in-out infinite;
  text-align: center;
}
@keyframes dropzone-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(0, 229, 255, 0.3), inset 0 0 30px rgba(0, 229, 255, 0.05); }
  50%      { box-shadow: 0 0 26px rgba(0, 229, 255, 0.5), inset 0 0 30px rgba(0, 229, 255, 0.1); }
}

/* ---------- User / sign-out ---------- */
.user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  background: var(--bg-row);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  max-width: 280px;
}
.user-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  max-width: 200px;
}

/* ---------- Login page ---------- */
.login-body {
  display: grid;
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: center;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  background:
    radial-gradient(900px 500px at 50% -15%, rgba(0, 229, 255, 0.12), transparent 60%),
    radial-gradient(700px 500px at 85% 115%, rgba(194, 107, 255, 0.10), transparent 60%),
    var(--bg);
}
.login-card {
  width: min(420px, calc(100vw - 32px));
  background: rgba(11, 14, 22, 0.9);
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 32px 32px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(0, 229, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.login-brand {
  justify-content: center;
  margin-bottom: 4px;
  font-size: 18px;
}
.login-title {
  font-size: 20px;
  margin: 0;
}
.login-sub {
  color: var(--text-dim);
  font-size: 13px;
  margin: 0;
}
.login-error {
  background: rgba(255, 84, 112, 0.1);
  border: 1px solid rgba(255, 84, 112, 0.35);
  color: var(--bad);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
  word-break: break-word;
}
.login-btn {
  justify-content: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.login-foot {
  margin: 4px 0 0;
  font-size: 11px;
}

/* ---------- Inline text editor (modal) ---------- */
/* Lock background scroll while the editor is open. */
body.editor-open { overflow: hidden; }

.editor-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  background: rgba(4, 5, 9, 0.82);
  backdrop-filter: blur(4px);
  animation: editor-fade 0.12s ease-out;
}
@keyframes editor-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.editor-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--bg);
  border: none;
  overflow: hidden;
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  min-height: 56px;
}
.editor-title-block {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.editor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-row);
  border: 1px solid var(--border);
  font-size: 16px;
  color: var(--accent);
  flex: 0 0 32px;
}
.editor-title-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.editor-path {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}
.editor-meta { display: inline-flex; align-items: center; }
.editor-dirty { color: var(--warn); }

.editor-actions {
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

.editor-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 200, 87, 0.1);
  border-bottom: 1px solid rgba(255, 200, 87, 0.35);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}
.editor-warning-icon {
  flex: 0 0 auto;
  color: var(--warn);
  font-size: 16px;
  line-height: 1.2;
}
.editor-warning-msg { flex: 1 1 auto; }

.editor-body {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  background: var(--bg);
  overflow: hidden;
}
.editor-body .CodeMirror {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}
/* Skin CodeMirror's default light theme to match Portal's dark palette. */
.editor-body .CodeMirror-gutters {
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
}
.editor-body .CodeMirror-linenumber { color: var(--text-dim); }
.editor-body .CodeMirror-cursor { border-left-color: var(--accent); }
.editor-body .CodeMirror-selected { background: rgba(0, 229, 255, 0.14) !important; }
.editor-body .CodeMirror-focused .CodeMirror-selected {
  background: rgba(0, 229, 255, 0.18) !important;
}
.editor-body .CodeMirror-activeline-background { background: var(--bg-row); }
.editor-body .CodeMirror-matchingbracket {
  color: var(--accent) !important;
  border-bottom: 1px solid var(--accent);
}
/* Token colours — neon palette tuned for the dark background. */
.editor-body .cm-keyword    { color: #c792ea; }
.editor-body .cm-atom       { color: #f78c6c; }
.editor-body .cm-number     { color: #f78c6c; }
.editor-body .cm-def        { color: #82aaff; }
.editor-body .cm-variable   { color: var(--text); }
.editor-body .cm-variable-2 { color: #82aaff; }
.editor-body .cm-variable-3 { color: #ffcb6b; }
.editor-body .cm-property   { color: #82aaff; }
.editor-body .cm-operator   { color: #89ddff; }
.editor-body .cm-string     { color: #c3e88d; }
.editor-body .cm-string-2   { color: #c3e88d; }
.editor-body .cm-comment    { color: #6b7280; font-style: italic; }
.editor-body .cm-tag        { color: #f07178; }
.editor-body .cm-attribute  { color: #ffcb6b; }
.editor-body .cm-meta       { color: var(--text-dim); }
.editor-body .cm-header     { color: #82aaff; }
.editor-body .cm-quote      { color: #89ddff; }
.editor-body .cm-hr         { color: var(--text-dim); }
.editor-body .cm-link       { color: var(--accent); }
.editor-body .cm-error      { color: var(--bad); }

/* ---------- Responsive: tablet (≤ 900px) ---------- */
@media (max-width: 900px) {
  /* Drop the "Modified" column — least useful on small screens. */
  :root { --list-cols: 40px 1fr 90px 104px; }
  .cell-mtime { display: none; }
  .search input { width: 180px; }
}

/* ---------- Responsive: phone (≤ 640px) ---------- */
@media (max-width: 640px) {
  /* Name + actions only. Actions stay visible (no hover on touch). */
  :root { --list-cols: 36px 1fr 104px; }
  .cell-size, .cell-mtime { display: none; }

  .topbar { gap: 8px 12px; padding: 8px 12px; }
  .brand { order: 1; }
  .topbar-right { order: 2; margin-left: auto; gap: 8px; }
  .crumbs { order: 3; flex: 1 1 100%; }
  .search { order: 4; flex: 1 1 100%; }
  .search input { width: 100%; }

  /* iOS auto-zooms on focused inputs under 16px — keep it at 16px so the
     page never zooms on mobile. */
  .search input, .row .name-input { font-size: 16px; }

  .status { padding: 5px 8px; }
  .status-text { display: none; }
  .user { max-width: 160px; }
  .user-email { max-width: 100px; }

  .toolbar { padding: 6px 12px; overflow-x: auto; scrollbar-width: none; }
  .toolbar::-webkit-scrollbar { display: none; }
  .toolbar-left, .toolbar-right { flex: 0 0 auto; }
  #selection-summary { display: none; }

  .list-header, .row { padding: 0 10px; }

  /* Comfortable tap targets. */
  .row-action { width: 32px; height: 32px; }
  .btn { padding: 8px 12px; }

  .dropzone-inner { padding: 24px 20px; font-size: 15px; margin: 0 16px; }

  .editor-header { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .editor-path { font-size: 12px; }
  .editor-actions .btn { padding: 8px 14px; }
}
