/* reorg -- a planning surface, not a file manager. Dense rows, quiet chrome,
   colour reserved for the two things that matter: what changed, and what git
   thinks. Everything else stays out of the way. */

/* Dark is the default and the light palette is the override, so the two live in
   mixins applied three ways: unconditionally (dark), under the OS preference
   (light), and under an explicit data-theme when the toolbar overrides the OS.
   color-scheme matters as much as the variables -- without it the browser paints
   scrollbars, form controls, and the canvas in its own light scheme regardless of
   what these say, which reads as a half-light page. */

:root,
:root[data-theme='dark'] {
  --bg: #0f1012;
  --bg-2: #16181c;
  --panel: #1b1e23;
  --panel-2: #22262d;
  --ink: #e6e4df;
  --ink-dim: #c4c1c9;
  --ink-faint: #b7b3c0;
  --rule: #2b2f37;

  --accent: #ffc16b;
  --accent-strong: #ffd18c;
  --moved: #8ac5ff;
  --renamed: #ddbaff;
  --new: #92e4b6;
  --trashed: #ffaaaa;

  --git-tracked: #92e4b6;
  --git-ignored: #b7b3c0;
  --git-untracked: #ffc16b;
  --git-nested: #ffc16b;

  color-scheme: dark;
}

:root {
  --row-h: 24px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

/* The OS asks for light, and nothing has overridden it. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #fbfaf7;
    --bg-2: #f2f0ea;
    --panel: #fff;
    --panel-2: #f6f4ef;
    --ink: #1d1c1a;
    --ink-dim: #45413c;
    --ink-faint: #4d4a45;
    --rule: #ddd9d0;
    --accent: #643b00;
    --accent-strong: #402500;
    --moved: #003f87;
    --renamed: #55247f;
    --new: #00572f;
    --trashed: #8f1515;
    --git-tracked: #00572f;
    --git-ignored: #4d4a45;
    --git-untracked: #643b00;
    --git-nested: #783006;

    color-scheme: light;
  }
}

/* Explicitly chosen light, whatever the OS says. Duplicated rather than shared
   with the block above because a media query cannot be reused as a selector, and
   pulling both into a @supports/@layer indirection would cost more clarity than
   the repetition does. */
:root[data-theme='light'] {
  --bg: #fbfaf7;
  --bg-2: #f2f0ea;
  --panel: #fff;
  --panel-2: #f6f4ef;
  --ink: #1d1c1a;
  --ink-dim: #45413c;
  --ink-faint: #4d4a45;
  --rule: #ddd9d0;
  --accent: #643b00;
  --accent-strong: #402500;
  --moved: #003f87;
  --renamed: #55247f;
  --new: #00572f;
  --trashed: #8f1515;
  --git-tracked: #00572f;
  --git-ignored: #4d4a45;
  --git-untracked: #643b00;
  --git-nested: #783006;

  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.5 var(--mono);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
h1, h2 { margin: 0; font: inherit; }
.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;
  top: 6px;
  left: 6px;
  z-index: 100;
  padding: 7px 10px;
  border-radius: 4px;
  color: var(--bg);
  background: var(--accent);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* ============================ top bar ============================ */
.topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
}
.brand {
  display: flex;
  align-items: baseline;
  min-width: 90px;
  max-width: min(28vw, 340px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 15px;
}
.brand-sub {
  min-width: 0;
  margin-left: 10px;
  font-weight: 400;
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toolbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.spacer { flex: 1 1 auto; }

.btn {
  font: inherit;
  font-size: 11px;
  color: var(--ink);
  background: var(--panel-2);
  border: 1px solid var(--rule);
  border-radius: 4px;
  min-height: 28px;
  padding: 4px 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { border-color: var(--ink-faint); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Active controls use --accent-strong because their labels sit on a surface tinted
   with --accent and need to clear the enhanced contrast threshold */
.btn.on { background: color-mix(in srgb, var(--accent) 18%, transparent); border-color: var(--accent); color: var(--accent-strong); }
.btn.primary { border-color: var(--new); color: var(--new); }
.btn.primary:hover { background: color-mix(in srgb, var(--new) 15%, transparent); }
.btn.danger { border-color: var(--trashed); color: var(--trashed); }
.btn.danger:hover { background: color-mix(in srgb, var(--trashed) 14%, transparent); }
.btn.ghost { background: none; border-color: transparent; color: var(--ink-dim); font-size: 15px; min-width: 30px; min-height: 30px; padding: 0 6px; }
.btn.ghost:hover { color: var(--ink); }
.btn[disabled] { border-color: var(--rule); background: var(--panel); color: var(--ink-faint); opacity: 1; cursor: not-allowed; }
.btn[disabled]:hover { border-color: var(--rule); background: var(--panel); }
.sep { width: 1px; height: 16px; background: var(--rule); margin: 0 3px; }

.savestate { flex: 0 0 auto; font-size: 10.5px; color: var(--ink-faint); text-align: right; white-space: nowrap; }
.savestate.dirty { color: var(--accent); }
.savestate.error { color: var(--trashed); }

/* ============================ layout ============================ */
.stage { flex: 1 1 auto; display: flex; min-height: 0; }
.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tree-pane { flex: 1 1 auto; }
.side-pane { flex: 0 0 0; width: 0; overflow: hidden; border-left: 1px solid var(--rule); background: var(--bg-2); }
.side-pane[hidden] { display: none; }
.stage.split .side-pane { flex: 0 0 var(--side-w, 42%); width: auto; }
.resizer { flex: 0 0 0; width: 0; }
.stage.split .resizer { flex: 0 0 7px; width: 7px; cursor: col-resize; background: var(--rule); }
.stage.split .resizer:hover, .resizer.dragging { background: var(--accent); }

.pane-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--panel);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.pane-head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.pane-head .dot.alt { background: var(--moved); }
.pane-hint { text-transform: none; letter-spacing: 0; color: var(--ink-faint); }
.filter {
  margin-left: auto;
  font: inherit;
  font-size: 11px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 4px;
  min-height: 28px;
  padding: 3px 8px;
  width: 210px;
  text-transform: none;
  letter-spacing: 0;
}
.filter:focus-visible, textarea.note:focus-visible, .planner-dialog input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.filter[aria-invalid='true'] { border-color: var(--trashed); }
.filter-status {
  display: none;
  color: var(--trashed);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.filter-status:not(:empty) { display: inline; }
.scope-banner {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--accent) 7%, var(--bg));
  color: var(--ink-dim);
  font-size: 10.5px;
}
.scope-banner strong { color: var(--ink); font-weight: 600; }
.scope-banner.bad {
  border-bottom-color: var(--trashed);
  background: color-mix(in srgb, var(--trashed) 9%, var(--bg));
}
.scroll { flex: 1 1 auto; overflow: auto; padding: 8px 6px 32px; }
.scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ============================ tree ============================ */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 11px; padding-left: 9px; border-left: 1px solid var(--rule); }
.tree [role='treeitem'] { outline: none; }
.tree [role='treeitem']:focus-visible > .row {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.row {
  --tree-item-gap: 5px;
  display: flex;
  align-items: center;
  gap: var(--tree-item-gap);
  min-height: var(--row-h);
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: grab;
  user-select: none;
  position: relative;
}
.row:hover { background: var(--bg-2); }
.row.sel { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.row.dragging { opacity: .35; }
.row.drop-into { background: color-mix(in srgb, var(--new) 18%, transparent); border-color: var(--new); }
.row.drop-before::before, .row.drop-after::after {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.row.drop-before::before { top: -2px; }
.row.drop-after::after { bottom: -2px; }
.row.filtered-out { display: none; }
.row.dimmed { opacity: .3; }

.twist {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  color: var(--ink-faint);
  background: transparent;
  font: inherit;
  font-size: 9px;
  text-align: center;
  cursor: pointer;
}
.twist:hover { background: var(--panel-2); color: var(--ink); }
.twist:focus-visible { outline: 2px solid var(--accent); }
.twist[disabled] { cursor: not-allowed; opacity: 1; }
.icon { flex: 0 0 13px; width: 13px; text-align: center; color: var(--ink-dim); font-size: 10px; }
.row.kind-dir > .icon { display: none; }
.row.kind-dir > .twist:not([hidden]) + .icon + .name {
  margin-left: calc(-1 * var(--tree-item-gap));
}
.name { color: var(--ink); white-space: nowrap; }
.name.dir { color: var(--accent); font-weight: 500; }
.name.dir::after { content: "/"; color: var(--ink-faint); font-weight: 400; }
.name.link { color: var(--moved); font-style: italic; }
.name[contenteditable="true"] {
  outline: none; background: var(--bg); border-radius: 2px;
  box-shadow: 0 0 0 1px var(--accent); padding: 0 3px; cursor: text;
}
.meta { font-size: 10px; color: var(--ink-faint); white-space: nowrap; }
.desc {
  font-size: 10.5px; color: var(--ink-dim); font-style: italic;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 52ch; margin-left: 4px;
}
.tags { display: flex; gap: 3px; align-items: center; }

.tag {
  font-size: 8.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 0 4px; border-radius: 2px; line-height: 1.6; border: 1px solid;
}
.tag.moved   { color: var(--moved);   border-color: color-mix(in srgb, var(--moved) 45%, transparent); }
.tag.renamed { color: var(--renamed); border-color: color-mix(in srgb, var(--renamed) 45%, transparent); }
.tag.new     { color: var(--new);     border-color: color-mix(in srgb, var(--new) 45%, transparent); }
.tag.trashed { color: var(--trashed); border-color: color-mix(in srgb, var(--trashed) 45%, transparent); }
.tag.note    { color: var(--accent);  border-color: color-mix(in srgb, var(--accent) 45%, transparent); cursor: help; }
.tag.limited { color: var(--ink-dim); border-color: var(--ink-faint); }

.row.st-new .name { color: var(--new); }
.row.st-trashed .name { color: var(--trashed); text-decoration: line-through; }
.row.st-trashed .icon { color: var(--trashed); }
.was { font-size: 10px; color: var(--ink-faint); }

/* git layer: a status stripe on the left edge, plus dimming for noise */
body.git-on .row { padding-left: 12px; }
body.git-on .row::before {
  content: ""; position: absolute; left: 2px; top: 3px; bottom: 3px;
  width: 3px; border-radius: 2px; background: transparent;
}
body.git-on .g-tracked::before   { background: var(--git-tracked); }
body.git-on .g-ignored::before   { background: var(--git-ignored); }
body.git-on .g-untracked::before { background: var(--git-untracked); }
body.git-on .g-nested::before    { background: var(--git-nested); }
body.git-on .g-ignored .name, body.git-on .g-ignored .name.dir { color: var(--git-ignored); }
body.git-on .g-untracked .name { color: var(--git-untracked); }
body.git-on .g-nested .name::after { content: " \2387"; color: var(--git-nested); font-size: 10px; }
body.git-on .g-nested .name.dir::after { content: "/ \2387"; color: var(--git-nested); }

/* Heat: relative size. Pushed to a fixed right-hand column with margin-left:auto,
   because bars are only comparable when they share a baseline -- floating them
   after each row's text puts every bar at a different x and tells you nothing. */
.heat {
  flex: 0 0 64px; width: 64px; height: 4px; margin-left: auto;
  border-radius: 2px; background: var(--rule); overflow: hidden;
}
.heat > i { display: block; height: 100%; background: var(--accent); opacity: .75; }
body:not(.heat-on) .heat { display: none; }
/* With heat off, nothing should stretch: keep rows hugging their content. */
.row > .tags { margin-right: 0; }

@keyframes flash { from { background: color-mix(in srgb, var(--accent) 40%, transparent); } to { background: transparent; } }
.row.flash { animation: flash 1.1s ease-out; }

/* ============================ delta rail ============================ */
.delta {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 7px 14px;
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
}
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 10px; letter-spacing: .05em;
  min-height: 26px; padding: 2px 9px; border-radius: 13px;
  border: 1px solid var(--rule); background: var(--panel);
  color: var(--ink-dim); cursor: pointer;
}
.chip:hover { border-color: var(--ink-faint); }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.chip[disabled] { background: var(--bg-2); color: var(--ink-faint); opacity: 1; cursor: not-allowed; }
.chip[disabled]:hover { border-color: var(--rule); }
.chip.on { border-color: var(--accent); color: var(--ink); }
.chip b { margin-right: 4px; font-weight: 700; }
.chip.moved b { color: var(--moved); }
.chip.renamed b { color: var(--renamed); }
.chip.new b { color: var(--new); }
.chip.trashed b { color: var(--trashed); }
.chip[disabled] b { color: inherit; }
.chip.flat { border-color: transparent; cursor: default; color: var(--ink-faint); }
.chip.flat:hover { border-color: transparent; }
.selection-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-left: auto;
  padding-left: 10px;
  border-left: 1px solid var(--rule);
}
.selection-label {
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-dim);
  font-size: 10.5px;
}
.selection-label b { color: var(--ink); font-weight: 600; }
.selection-actions .btn { min-height: 26px; padding: 2px 8px; font-size: 10px; }

/* ============================ side pane ============================ */
.side-section { margin-bottom: 16px; }
.side-section h3 {
  margin: 0 0 7px; font-size: 11px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-dim); font-weight: 600;
}
.side-path {
  font-size: 11px; color: var(--ink-dim); word-break: break-all;
  padding: 6px 8px; background: var(--panel); border: 1px solid var(--rule);
  border-radius: 4px; margin-bottom: 10px;
}
.side-path b { color: var(--ink); }

pre.head {
  margin: 0; padding: 9px 10px; overflow: auto; max-height: none;
  background: var(--panel); border: 1px solid var(--rule); border-radius: 4px;
  font-size: 11.5px; line-height: 1.55; white-space: pre; tab-size: 4;
  counter-reset: ln;
}
pre.head .l { display: block; }
pre.head .l::before {
  counter-increment: ln; content: counter(ln);
  display: inline-block; width: 3.5ch; margin-right: 12px;
  color: var(--ink-faint); text-align: right; user-select: none;
}
.note-empty { color: var(--ink-faint); font-size: 11.5px; line-height: 1.6; }

.op-list { display: flex; flex-direction: column; gap: 1px; margin: 0 0 10px; }
.op {
  font-size: 11px; padding: 3px 8px; border-radius: 3px;
  background: var(--panel); color: var(--ink-dim);
  white-space: pre-wrap; word-break: break-all;
}
.op.mkdir { border-left: 2px solid var(--new); }
.op.move, .op.unstage { border-left: 2px solid var(--moved); }
.op.stage { border-left: 2px solid var(--renamed); }
.op.trash { border-left: 2px solid var(--trashed); }

.problem {
  overflow-wrap: anywhere;
  font-size: 11.5px; line-height: 1.55; padding: 8px 10px; margin-bottom: 6px;
  border-radius: 4px; border-left: 3px solid var(--trashed);
  background: color-mix(in srgb, var(--trashed) 10%, transparent);
  color: var(--ink);
}
.ok-note {
  font-size: 11.5px; padding: 8px 10px; border-radius: 4px;
  border-left: 3px solid var(--new);
  background: color-mix(in srgb, var(--new) 10%, transparent);
}

textarea.note {
  width: 100%; min-height: 90px; resize: vertical;
  font: inherit; font-size: 11.5px; line-height: 1.55;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 4px; padding: 7px 9px;
}

.note-card {
  border: 1px solid var(--rule); border-left: 3px solid var(--accent);
  border-radius: 4px; padding: 8px 10px; margin-bottom: 7px; background: var(--panel);
}
.note-card .note-target { font-size: 10px; color: var(--ink-faint); word-break: break-all; }
.note-card .note-body { font-size: 11.5px; line-height: 1.55; white-space: pre-wrap; margin: 3px 0 6px; }
.note-card .note-acts { display: flex; gap: 6px; }

kbd {
  font: inherit; font-size: 10px; padding: 0 4px;
  background: var(--panel-2); border: 1px solid var(--rule);
  border-radius: 3px; color: var(--ink-dim);
}
.shortcuts { font-size: 11.5px; line-height: 1.9; color: var(--ink-dim); }
.shortcuts b { color: var(--ink); font-weight: 500; }

/* ============================ context menu + toast ============================ */
.menu {
  position: fixed; z-index: 70; min-width: 168px; padding: 4px;
  background: var(--panel-2); border: 1px solid var(--rule); border-radius: 6px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, .45);
}
.menu-item {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 4px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}
.menu-item:hover { background: var(--panel); }
.menu-item:focus-visible { outline: 2px solid var(--accent); }
.menu-item.danger { color: var(--trashed); }
.menu-sep { height: 1px; background: var(--rule); margin: 4px 2px; }

.toast {
  position: fixed; bottom: 54px; left: 50%;
  transform: translateX(-50%) translateY(14px);
  max-width: min(680px, 90vw);
  background: var(--panel-2); color: var(--ink);
  border: 1px solid var(--rule); border-radius: 6px;
  padding: 9px 15px; font-size: 12px; line-height: 1.5;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none; z-index: 80;
  transition: opacity .18s, transform .18s;
  white-space: pre-wrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.bad { border-color: var(--trashed); }

/* ============================ dialogs ============================ */
.planner-dialog {
  width: min(480px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 18px 70px rgba(0, 0, 0, .55);
}
.planner-dialog::backdrop { background: rgba(0, 0, 0, .66); }
.planner-dialog form { padding: 18px; }
.planner-dialog h2 { margin-bottom: 8px; color: var(--ink); font-size: 15px; font-weight: 700; }
.dialog-intro { margin: 0 0 14px; color: var(--ink-dim); }
.planner-dialog label { display: block; margin-bottom: 5px; color: var(--ink); font-size: 11px; font-weight: 600; }
.planner-dialog input,
.planner-dialog select {
  width: 100%;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  background: var(--bg);
  font: inherit;
}
.dialog-field { margin-bottom: 12px; }
.dialog-create {
  margin: 15px 0;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  color: var(--ink-dim);
}
.dialog-create legend {
  padding: 0 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}
.dialog-create > p:first-of-type { margin: 0 0 10px; }
.dialog-inline { display: flex; align-items: stretch; gap: 7px; }
.dialog-inline input { min-width: 0; }
.dialog-inline .btn { flex: 0 0 auto; }
.field-error {
  min-height: 1.5em;
  margin: 4px 0 0;
  color: var(--trashed);
  font-size: 10.5px;
}
.field-error:empty { visibility: hidden; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 14px; }

@media (max-width: 900px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
  }
  .brand { max-width: none; }
  .topbar > .spacer { display: none; }
  .toolbar {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
  }
  .savestate {
    grid-column: 2;
    grid-row: 1;
    max-width: 26ch;
  }
  .stage.split .tree-pane { display: none; }
  .stage.split .resizer { display: none; }
  .stage.split .side-pane {
    flex: 1 1 auto;
    width: 100%;
    border-left: 0;
  }
  .selection-actions {
    flex: 1 0 100%;
    margin-left: 0;
    padding: 6px 0 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }
  .selection-label { max-width: none; margin-right: auto; }
}

@media (max-width: 560px) {
  :root { --row-h: 28px; }
  .topbar { padding: 8px 10px; }
  .toolbar { gap: 5px; }
  .toolbar .sep { display: none; }
  .btn { min-height: 32px; }
  .pane-head {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 5px 8px;
    padding: 7px 10px;
  }
  .pane-head .filter {
    grid-column: 1 / -1;
    width: 100%;
    margin-left: 0;
  }
  .pane-head .filter-status { grid-column: 1 / -1; }
  .side-pane .pane-head { display: flex; }
  .scope-banner { padding: 7px 10px; }
  .scroll { padding-left: 3px; padding-right: 3px; }
  .delta { padding: 7px 10px; }
  .selection-actions { flex-wrap: wrap; }
  .selection-label { flex: 1 0 100%; }
  .selection-actions .btn { min-height: 32px; }
  .dialog-inline { align-items: stretch; flex-direction: column; }
  .dialog-inline .btn { min-height: 34px; }
  .toast { bottom: 84px; }
}

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