:root {
  color-scheme: dark;
  --page-text: #eef5f5;
  --page-muted: #a3b7b8;
  --page-line: rgba(214, 238, 238, 0.12);
  /* The window: sampled from MyMole's own screenshots in the Native theme. */
  --window: #ffffff;
  --sidebar: #f9f9f9;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --tertiary: #9a9aa0;
  --separator: #e5e5e7;
  --stripe: #f4f6f5;
  --card-line: #e3e3e6;
  --selection: #2a63d8;
  --checkbox: #2f6fe4;
  --accent: #147073;
  --accent-strong: #266366;
  --accent-text: #136c6f;
  --accent-soft: #e4f1f1;
  --ok-text: #2f8f46;
  --ok-soft: #e9f3e8;
  --review-text: #2f9a4a;
  --caution: #c46a12;
  --caution-soft: #fff4e5;
  --danger: #e5484d;
  --ring-full: #f54746;
  --ring-busy: #f49545;
  --ring-fine: #1f9b84;
  --memory: #f49545;
  --ui-font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono-font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-family: var(--ui-font-family);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ui-icon {
  display: block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -12%, rgba(53, 212, 201, 0.14), transparent 34rem),
    linear-gradient(180deg, #0f2326, #081214 72%);
  color: var(--page-text);
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  margin: 0;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: default;
  opacity: 0.45;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid #3d8bfd;
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Page shell, shared with the other web demos                         */










.demo-shell {
  width: min(1480px, 92vw);
  margin-inline: auto;
  padding: clamp(0.75rem, 1.5vw, 1.1rem) 0 2rem;
}

.demo-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 0.9rem;
}

.eyebrow {
  margin: 0 0 0.3rem;
  color: #5fd9cf;
  font-size: 0.74rem;
  font-weight: 860;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.2vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.demo-intro p:not(.eyebrow) {
  max-width: 760px;
  margin: 0.55rem 0 0;
  color: var(--page-muted);
  font-size: 1rem;
}

.demo-cues {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.38rem;
  max-width: 440px;
}



.demo-footnote {
  max-width: 820px;
  margin: 0.9rem auto 0;
  color: var(--page-muted);
  font-size: 0.82rem;
  text-align: center;
}

.noscript-note {
  margin-top: 1rem;
  border: 1px solid var(--page-line);
  border-radius: 12px;
  padding: 1rem;
}

/* ------------------------------------------------------------------ */
/* The window                                                          */
/* ------------------------------------------------------------------ */

.app-window {
  position: relative;
  display: grid;
  --mm-sidebar-inset: 8px;
  grid-template-columns: calc(var(--demo-sidebar-width) + var(--mm-sidebar-inset)) minmax(0, 1fr);
  height: clamp(620px, calc(100svh - 190px), 820px);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 22px;
  background: var(--window);
  color: var(--text);
  color-scheme: light;
  font-size: 13px;
  line-height: 1.35;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.45);
}

.app-window.is-sidebar-hidden {
  grid-template-columns: 0 minmax(0, 1fr);
}

.app-window.is-sidebar-hidden .mm-sidebar {
  visibility: hidden;
}

.icon-button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 0;
  color: var(--secondary);
}

.icon-button:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.icon-button .ui-icon {
  width: 18px;
  height: 18px;
}

/* Sidebar: a floating macOS 26 source list. */
.mm-sidebar {
  position: relative;
  z-index: 2;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  margin: var(--mm-sidebar-inset) 0 var(--mm-sidebar-inset) var(--mm-sidebar-inset);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  background: var(--sidebar);
  padding: 10px 8px 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.mm-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 2px 0 8px;
}

.mm-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 6px 12px;
  font-size: 15px;
}

.mm-brand img {
  display: block;
  border-radius: 7px;
}

.mm-nav {
  display: grid;
  min-height: 0;
  gap: 1px;
  overflow-y: auto;
}

.mm-nav-group {
  margin: 10px 6px 4px;
  color: var(--tertiary);
  font-size: 11px;
}

.mm-nav-group:first-child {
  margin-top: 0;
}

.mm-nav button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: var(--demo-sidebar-row-height);
  border: 0;
  border-radius: var(--demo-sidebar-row-radius);
  background: transparent;
  padding: 0 9px;
  color: var(--text);
  font-size: 13px;
  text-align: left;
}

.mm-nav button:hover {
  background: rgba(0, 0, 0, 0.045);
}

.mm-nav button .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--icon);
}

.mm-nav button small {
  color: var(--secondary);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.mm-nav button.is-active {
  background: var(--selection);
  color: #ffffff;
}

.mm-nav button.is-active .ui-icon,
.mm-nav button.is-active small {
  color: rgba(255, 255, 255, 0.9);
}

.mm-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: auto 0 0;
  padding: 10px 10px 2px;
  color: var(--secondary);
  font-size: 11px;
}

.mm-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
}

.mm-status.is-busy span {
  background: #ff9f0a;
}

/* Main column */
.mm-main {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.mm-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 16px 6px 14px;
}

.mm-sidebar-show {
  display: none;
}

.app-window.is-sidebar-hidden .mm-sidebar-show {
  display: inline-grid;
  margin-left: 64px;
}

.mm-title {
  min-width: 0;
  flex: 0 1 auto;
}

.mm-toolbar-center {
  flex: 0 0 auto;
  margin-inline: auto;
}

.mm-title h2 {
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-title p {
  overflow: hidden;
  margin: 1px 0 0;
  color: var(--secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-toolbar-center:empty,
.mm-toolbar-actions:empty {
  display: none;
}

.mm-toolbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.toolbar-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 5px rgba(0, 0, 0, 0.08);
}

.toolbar-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  padding: 0 12px;
  color: var(--secondary);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 5px rgba(0, 0, 0, 0.08);
}

.segmented {
  display: inline-flex;
  gap: 2px;
  border-radius: 999px;
  background: var(--card);
  padding: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 6px rgba(0, 0, 0, 0.08);
}

.segmented button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 14px;
  color: var(--text);
}

.segmented button.is-active {
  background: var(--track);
}

.mm-pane {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  outline: 0;
}

/* Fields and buttons */
.search-field {
  display: flex;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  background: var(--field);
  padding: 0 9px;
  color: var(--secondary);
}

.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 5px 0;
  color: var(--text);
  outline: 0;
}

.search-field input::placeholder {
  color: var(--tertiary);
}

.search-field:focus-within {
  box-shadow: 0 0 0 3px rgba(42, 99, 216, 0.25);
}

.toolbar-search {
  width: clamp(150px, 22vw, 300px);
  min-height: 34px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 5px rgba(0, 0, 0, 0.08);
}

.select-field select {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: var(--field);
  padding: 0 26px 0 10px;
  color: var(--text);
}

.mm-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--field);
  padding: 0 14px;
  color: var(--accent-text);
  text-decoration: none;
  white-space: nowrap;
}

.mm-button:hover {
  background: var(--field-hover);
}

.mm-button.primary {
  min-height: 32px;
  background: var(--accent-strong);
  padding: 0 16px;
  color: #ffffff;
}

.mm-button.primary:hover {
  background: var(--accent);
}

.mm-button.destructive {
  background: var(--danger);
  color: #ffffff;
}

.mm-button.destructive:hover {
  background: #d63c41;
}

.link-button {
  border: 0;
  border-radius: 6px;
  background: var(--accent-soft);
  padding: 2px 8px;
  color: var(--accent-text);
  font-size: 12px;
}

.tint-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: var(--accent-soft);
  padding: 4px 10px;
  color: var(--accent-text);
  font-size: 12px;
}

.tint-button .ui-icon {
  width: 14px;
  height: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--card-line);
  border-radius: 7px;
  background: var(--card-hover);
  padding: 4px 9px;
  color: var(--secondary);
  font-size: 11px;
}

.pill .ui-icon {
  width: 13px;
  height: 13px;
}

.pill-ok {
  border-color: #cfe6cd;
  background: var(--ok-soft);
  color: var(--ok-text);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  padding: 1px 7px;
  font-size: 11px;
  white-space: nowrap;
}

.badge .ui-icon {
  width: 11px;
  height: 11px;
}

.badge-safe,
.badge-review {
  background: var(--ok-soft);
  color: var(--review-text);
}

.badge-data {
  background: var(--caution-soft);
  color: var(--caution);
}

.badge-lock {
  padding: 3px;
  color: var(--tertiary);
}

.badge-lock .ui-icon {
  width: 13px;
  height: 13px;
}

.mm-card {
  border: 1px solid var(--card-line);
  border-radius: 12px;
  background: var(--card);
}

/* ------------------------------------------------------------------ */
/* Dashboard                                                           */
/* ------------------------------------------------------------------ */

.dash {
  padding: 18px 24px 24px;
}

.dash-top {
  display: grid;
  grid-template-columns: minmax(200px, 228px) minmax(0, 1fr);
  gap: 14px;
}

.ring-card {
  display: grid;
  place-items: center;
  padding: 18px;
}

.disk-ring {
  position: relative;
  width: min(190px, 100%);
  aspect-ratio: 1;
}

.disk-ring svg {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 9;
}

.ring-track {
  stroke: var(--track);
}

.ring-fill {
  stroke: var(--ring-full);
  stroke-linecap: round;
  transition: stroke-dasharray 500ms ease;
}

.disk-ring.is-busy .ring-fill {
  stroke: var(--ring-busy);
}

.disk-ring.is-fine .ring-fill {
  stroke: var(--ring-fine);
}

.ring-label {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring-label strong {
  font-size: 30px;
  line-height: 1.1;
}

.ring-label span,
.ring-label small {
  color: var(--secondary);
  font-size: 11px;
}

.dash-right {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 16px 18px;
}

.stat-card p {
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
}

.stat-card strong {
  font-size: 28px;
  line-height: 1.15;
}

.stat-card small {
  color: var(--secondary);
  font-size: 11px;
}

.meter {
  display: block;
  height: 5px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--track);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--memory);
  transition: width 600ms ease;
}

.smart-scan {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
}

.smart-scan-copy {
  min-width: 0;
  flex: 1;
}

.smart-scan h3,
.section-title {
  margin: 0 0 4px;
  font-size: 13px;
}

.smart-scan p {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 11px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid var(--card-line);
  border-radius: 6px;
  background: var(--field-soft);
  padding: 3px 9px;
  color: var(--secondary);
  font-size: 11px;
}

.chip.is-done {
  color: var(--text);
}

/* ------------------------------------------------------------------ */
/* Shared pane layout                                                   */
/* ------------------------------------------------------------------ */

.pane-stack {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.pane-stack:has(> :nth-child(2):last-child) {
  grid-template-rows: auto minmax(0, 1fr);
}

.pane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--separator);
  padding: 14px 24px 14px;
}

.pane-summary {
  display: grid;
  min-width: 0;
  justify-items: start;
  gap: 8px;
}

.summary-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin: 0;
}

.summary-line strong {
  font-size: 26px;
  line-height: 1.1;
}

.summary-line span {
  color: var(--secondary);
  font-size: 13px;
}

.pane-head-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.pane-head-tools .search-field {
  width: clamp(160px, 20vw, 240px);
}

.pane-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--separator);
  padding: 10px 24px 14px;
}

.footer-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.footer-copy p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--secondary);
}

.footer-detail {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--secondary);
  font-size: 11px;
}

.footer-detail .ui-icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
}

.scanning-panel {
  display: grid;
  max-width: 420px;
  margin: 80px auto;
  justify-items: center;
  gap: 10px;
  padding: 0 24px;
  text-align: center;
}

.scanning-panel p {
  margin: 0;
}

.scanning-panel small {
  color: var(--secondary);
}

.progress {
  display: block;
  width: 220px;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--track);
}

.progress span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: mm-progress 1s ease-in-out infinite alternate;
}

@keyframes mm-progress {
  from { transform: translateX(-30%); }
  to { transform: translateX(180%); }
}

.empty-state,
.map-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 50px 20px;
  color: var(--secondary);
  text-align: center;
}

.empty-state .ui-icon {
  width: 28px;
  height: 28px;
}

.empty-state h3 {
  margin: 0;
  color: var(--text);
  font-size: 13px;
}

/* Tables */
.table-scroll {
  min-height: 0;
  overflow: auto;
  padding: 0 8px;
}

.mm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.mm-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  border-bottom: 1px solid var(--separator);
  background: var(--card);
  padding: 9px 8px;
  color: var(--text);
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}

.mm-table td {
  overflow: hidden;
  padding: 0 8px;
  height: 40px;
  color: var(--secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-table td:first-child {
  border-radius: 8px 0 0 8px;
}

.mm-table td:last-child {
  border-radius: 0 8px 8px 0;
}

.mm-table tbody tr:nth-child(even) td {
  background: var(--stripe);
}

.mm-table tbody tr.is-selected td {
  background: var(--row-selected);
}

.mm-table .col-check {
  width: 34px;
  padding-right: 0;
}

.mm-table .col-name {
  width: auto;
  color: var(--text);
}

.mm-table .col-size {
  width: 96px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.mm-table th.col-size {
  text-align: right;
}

.sort-mark {
  display: inline-block;
  width: 10px;
  height: 10px;
  vertical-align: -1px;
}

.mm-table .col-date {
  width: 124px;
}

.mm-table .col-category,
.mm-table .col-what {
  width: 160px;
}

.mm-table .col-location {
  width: 230px;
}

.mm-table input[type="checkbox"],
.map-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--checkbox);
  cursor: pointer;
}

.mm-table input[type="checkbox"]:disabled,
.map-row input[type="checkbox"]:disabled {
  cursor: not-allowed;
}

.row-name {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
  font-size: 13px;
  text-align: left;
}

.name-text {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-name .badge {
  margin-left: auto;
}

.row-location {
  display: none;
}

.empty-row td {
  height: 80px;
  text-align: center;
}

.kind-icon {
  width: 15px;
  height: 15px;
}

.kind-developerCaches,
.kind-appCaches,
.kind-containerCaches,
.kind-logs,
.kind-downloads,
.kind-rebuild {
  color: #4caf62;
}

.kind-developerCaches {
  color: #59b36b;
}

.kind-devices {
  color: var(--caution);
}

.kind-folder {
  color: #2e6165;
}

.kind-file {
  color: #8a8a90;
}

/* ------------------------------------------------------------------ */
/* Disk Map                                                            */
/* ------------------------------------------------------------------ */

.map-pane {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.map-crumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--separator);
  padding: 4px 24px 8px;
}

.crumb-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 7px;
  background: var(--field-soft);
  padding: 4px 10px 4px 6px;
  color: var(--secondary);
}

.crumb-back .ui-icon {
  width: 13px;
  height: 13px;
}

.crumb-trail {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.crumb-trail button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 3px 6px;
  color: var(--secondary);
}

.crumb-trail button[aria-current] {
  color: var(--text);
}

.crumb-trail button:hover {
  background: var(--field);
}

.crumb-home,
.crumb-sep {
  width: 13px;
  height: 13px;
  color: var(--tertiary);
}

.map-body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 40%);
}

.map-chart {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  padding: 18px;
}

.map-chart svg {
  display: block;
  width: min(100%, 560px);
  max-height: 100%;
  aspect-ratio: 1;
}

.map-chart path {
  stroke: var(--window);
  stroke-width: 0.5;
  cursor: pointer;
  transition: opacity 120ms ease;
}

.map-chart svg:hover path {
  opacity: 0.86;
}

.map-chart svg path:hover {
  opacity: 1;
  stroke: #1d1d1f;
  stroke-width: 0.7;
}

.map-hole {
  fill: var(--window);
}

.map-hole[data-clickable] {
  cursor: pointer;
}

.map-center {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 30%;
  max-width: 170px;
  justify-items: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  text-align: center;
}

.map-center span {
  overflow: hidden;
  max-width: 100%;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-center strong {
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.15;
  white-space: nowrap;
}

.map-center small {
  color: var(--secondary);
  font-size: 11px;
}

.map-inspector {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  border-left: 1px solid var(--separator);
}

.inspector-head {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 14px 16px 10px;
}

.inspector-head h3 {
  margin: 0;
  font-size: 13px;
}

.inspector-head p {
  margin: -6px 0 0;
  color: var(--secondary);
  font-size: 11px;
}

.inspector-head .search-field {
  width: 100%;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inspector-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--separator);
  padding: 8px 16px;
  color: var(--secondary);
  font-size: 11px;
}

/* ------------------------------------------------------------------ */
/* Uninstall                                                           */
/* ------------------------------------------------------------------ */

.app-grid-scroll {
  min-height: 0;
  overflow: auto;
  padding: 18px 24px 24px;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 14px;
}

.app-card-tile {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-height: 142px;
  border: 1px solid var(--card-line);
  border-radius: 12px;
  background: var(--card);
  padding: 16px 10px 14px;
  color: var(--text);
  text-align: center;
}

.app-card-tile:hover {
  border-color: var(--card-line-strong);
  background: var(--card-hover);
}

.app-card-tile small {
  color: var(--secondary);
  font-size: 11px;
}

.app-name {
  overflow: hidden;
  max-width: 100%;
  margin-top: 4px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-flag {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 5px;
  background: #fff1d6;
  padding: 1px 6px;
  color: #a35c00;
  font-size: 10px;
}

.app-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--icon-a), var(--icon-b));
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.app-icon svg {
  width: 62%;
  height: 62%;
  fill: none;
  stroke: #ffffff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.app-icon-sheet {
  width: 58px;
  height: 58px;
  border-radius: 13px;
}

/* ------------------------------------------------------------------ */
/* History and the panes only the Mac app has                          */
/* ------------------------------------------------------------------ */

.history-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 16px 24px 24px;
}

.history-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 18px;
}

.history-row h3 {
  margin: 0;
  font-size: 13px;
}

.history-row p {
  margin: 0;
  color: var(--secondary);
  font-size: 11px;
}

/* ------------------------------------------------------------------ */
/* Sheets and the undo shelf                                           */
/* ------------------------------------------------------------------ */

.mm-sheet-backdrop {
  position: absolute;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--backdrop);
  padding: 20px;
  backdrop-filter: blur(1.5px);
}

.mm-sheet {
  display: grid;
  width: min(640px, 100%);
  max-height: 100%;
  gap: 12px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  background: var(--card);
  padding: 26px 28px 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  outline: 0;
}

.mm-sheet h2 {
  margin: 0;
  font-size: 17px;
}

.sheet-lede,
.sheet-note {
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
}

.sheet-app-head {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sheet-app-head p,
.sheet-app-head small {
  display: block;
  margin: 2px 0 0;
  color: var(--secondary);
  font-size: 11px;
}

.sheet-app-head .mono {
  color: var(--text);
  font-family: var(--mono-font-family);
  font-size: 12px;
}

.sheet-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #f6d9b3;
  border-radius: 10px;
  background: var(--caution-soft);
  padding: 10px 12px;
  color: #6b4207;
}

.sheet-warning > .ui-icon {
  color: var(--caution);
  margin-top: 1px;
}

.sheet-warning p {
  margin: 0 0 4px;
  font-size: 12px;
}

.sheet-warning .mm-button {
  margin-top: 6px;
}

.sheet-groups {
  display: grid;
  gap: 12px;
}

.sheet-groups h3 {
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 12px;
}

.sheet-groups h3 span {
  color: var(--secondary);
}

.sheet-groups p {
  margin: 2px 0 4px;
  color: var(--secondary);
  font-size: 11px;
}

.sheet-groups ul,
.sheet-paths {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sheet-groups li,
.sheet-paths li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 12px;
}

.sheet-groups li:nth-child(odd),
.sheet-paths li:nth-child(odd) {
  background: var(--stripe);
}

.sheet-groups li span,
.sheet-paths li span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-groups li small,
.sheet-paths li small {
  flex: 0 0 auto;
  color: var(--secondary);
  font-size: 12px;
}

.sheet-paths li span {
  font-family: var(--mono-font-family);
  font-size: 11px;
}

.sheet-table {
  max-height: 280px;
  margin: 0 -8px;
}

.leftover-table .col-what {
  width: 140px;
}

.leftover-table .col-location {
  width: 150px;
}

.leftover-table td {
  height: auto;
  padding-block: 8px;
  white-space: normal;
}

.leftover-table .name-text {
  overflow-wrap: anywhere;
  white-space: normal;
}

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.sheet-total {
  margin-right: auto;
  color: var(--secondary);
}

.mm-undo-shelf {
  position: absolute;
  z-index: 15;
  bottom: 74px;
  left: 50%;
  display: flex;
  max-width: calc(100% - 32px);
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  background: rgba(36, 36, 38, 0.94);
  padding: 8px 8px 8px 14px;
  color: #ffffff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.mm-undo-shelf > .ui-icon {
  color: #9bd7cf;
}

.mm-undo-shelf span {
  min-width: 0;
}

.mm-undo-shelf button[data-action="undo"] {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: var(--card);
  padding: 0 14px;
  color: #1d1d1f;
}

.mm-undo-shelf .icon-button {
  color: rgba(255, 255, 255, 0.7);
}

.mm-undo-shelf .icon-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* ------------------------------------------------------------------ */
/* Narrower windows                                                    */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .mm-table .col-category,
  .mm-table .col-what {
    display: none;
  }

  .dash-top {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .mm-table .col-location {
    display: none;
  }

  .row-location {
    display: block;
    overflow: hidden;
    margin-top: 1px;
    padding-left: 23px;
    color: var(--secondary);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mm-table td {
    height: auto;
    padding-block: 7px;
  }

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

  .ring-card {
    grid-template-columns: auto;
  }

  .disk-ring {
    width: 160px;
  }

  .map-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(220px, 42%) minmax(0, 1fr);
  }

  .map-chart svg {
    width: auto;
    height: 100%;
  }

  .map-inspector {
    border-top: 1px solid var(--separator);
    border-left: 0;
  }

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

@media (max-width: 760px) {







  .demo-shell {
    width: 100%;
    padding: 0.5rem 0.5rem 1.5rem;
  }

  .demo-intro {
    display: block;
    margin-bottom: 0.5rem;
  }

  .demo-intro > div:first-child {
    display: none;
  }


  .app-window {
    height: max(560px, calc(100svh - 120px));
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    border-radius: 16px;
  }

  .app-window.is-sidebar-hidden {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-window.is-sidebar-hidden .mm-sidebar {
    visibility: visible;
  }

  .mm-sidebar {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--separator);
    border-radius: 0;
    padding: 6px 6px 6px;
    box-shadow: none;
  }

  .mm-sidebar-top,
  .mm-brand,
  .mm-nav-group,
  .mm-status,
  .mm-sidebar-show,
  .app-window.is-sidebar-hidden .mm-sidebar-show {
    display: none;
  }

  .mm-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .mm-nav::-webkit-scrollbar {
    display: none;
  }

  .mm-nav button {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 36px;
    gap: 6px;
    padding: 0 11px;
  }

  .mm-nav button small {
    display: none;
  }

  .mm-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    padding: 10px 12px 8px;
  }

  .mm-title {
    flex: 1 1 0;
  }

  .mm-toolbar-center {
    order: 3;
    flex-basis: 100%;
    margin-inline: 0;
  }

  .toolbar-search {
    width: 140px;
  }

  .toolbar-pill {
    padding: 0 10px;
  }

  .dash,
  .app-grid-scroll,
  .history-list,
  .mac-only {
    padding: 12px;
  }

  .dash-stats {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .dash-stats .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .stat-card {
    padding: 12px 14px;
  }

  .stat-card strong {
    font-size: 24px;
  }

  .smart-scan {
    display: grid;
    gap: 10px;
    padding: 14px;
  }

  .smart-scan .mm-button {
    justify-self: start;
  }

  .tools-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .pane-head {
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .pane-head-tools {
    width: 100%;
    justify-content: stretch;
  }

  .pane-head-tools .search-field {
    width: auto;
    flex: 1 1 140px;
  }

  .summary-line strong {
    font-size: 22px;
  }

  .mm-table .col-date {
    display: none;
  }

  .mm-table .col-size {
    width: 78px;
  }

  .table-scroll {
    padding: 0 4px;
  }

  .mm-table td,
  .mm-table th {
    padding-inline: 6px;
  }

  .pane-footer {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px 12px;
  }

  .pane-footer .mm-button.primary {
    flex: 1 0 auto;
  }

  .map-crumbs {
    padding: 4px 12px 8px;
  }

  /* On a phone the Disk Map scrolls as one page: chart, list, then the footer. */
  .map-pane {
    display: block;
    height: auto;
  }

  .map-body {
    display: block;
  }

  .map-chart {
    height: 230px;
  }

  .map-inspector {
    display: block;
  }

  .map-list {
    overflow: visible;
  }



  .disk-ring {
    width: 184px;
  }

  .map-chart {
    padding: 8px;
  }

  .map-center strong {
    font-size: 18px;
  }

  .map-center span {
    font-size: 11px;
  }

  .map-row .badge-safe {
    display: none;
  }

  .app-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 10px;
  }

  .app-card-tile {
    min-height: 124px;
    padding: 14px 6px 10px;
  }

  .app-icon {
    width: 46px;
    height: 46px;
  }

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

  .history-row .mm-button {
    grid-column: 2 / -1;
    justify-self: start;
  }

  .mm-sheet-backdrop {
    align-items: end;
    padding: 8px;
  }

  .mm-sheet {
    padding: 18px 16px 16px;
  }

  .leftover-table .col-location,
  .leftover-table .col-what {
    display: none;
  }

  .leftover-table .row-location {
    display: block;
  }

  .sheet-total {
    width: 100%;
  }

  .mm-undo-shelf {
    bottom: 76px;
    width: calc(100% - 24px);
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .progress span {
    animation: none;
    transform: translateX(60%);
  }

  .ring-fill,
  .meter span,
  .map-chart path {
    transition: none;
  }
}

@media (forced-colors: active) {
  .mm-nav button.is-active {
    outline: 2px solid Highlight;
  }
}

/*
 * Native fidelity layer.
 * MyMole draws its window in SF regular text. Pane titles, card and section
 * titles, the brand and sheet titles are semibold; numbers stay regular, as
 * in the app's own screenshots. Keep the browser window on that scale.
 */
.app-window,
.app-window * {
  font-weight: 400 !important;
}

.app-window :is(.mm-brand span, .mm-title h2, .smart-scan h3, .section-title, .tool-copy strong, .mm-sheet h2, .sheet-groups h3, .inspector-head h3, .history-row h3, .empty-state h3, .sheet-warning b, .sheet-groups h3 span) {
  font-weight: 600 !important;
}

.app-window :is(.ring-label strong, .stat-card strong, .summary-line strong, .map-center strong) {
  font-weight: 500 !important;
}

/* ================================================================== */
/* The MyMole window, matched to the app's current working tree        */
/* ================================================================== */

/* Palette roles (Design/Palette.swift): Native in light by default; the
   themes and Dark in Settings → Appearance swap them. Text, secondary text
   and status colours stay the system's. */
.app-window {
  --card: #ffffff;
  --field: #f0f0f2;
  --field-soft: #f5f5f7;
  --field-hover: #e6e7ea;
  --track: #e8e8ea;
  --card-hover: #fbfbfc;
  --card-line-strong: #d2d2d6;
  --row-selected: #e3eef0;
  --row-hover: #f0f5f6;
  --row-chosen: transparent;
  --icon: #3a3a3c;
  --backdrop: rgba(238, 238, 240, 0.62);
  --menu: rgba(250, 250, 252, 0.98);
  --chart-files: #c7c7cc;
  --green: #2f8f46;
  --green-soft: rgba(52, 199, 89, 0.11);
  --green-line: rgba(52, 199, 89, 0.28);
  --orange: #c46a12;
  --orange-soft: rgba(255, 149, 0, 0.11);
  --orange-line: rgba(255, 149, 0, 0.3);
  --red: #d70015;
  --red-soft: rgba(255, 59, 48, 0.1);
  --red-line: rgba(255, 59, 48, 0.28);
  --blue: #1f6fd6;
  --blue-soft: rgba(0, 122, 255, 0.1);
  --gray-soft: rgba(120, 120, 128, 0.12);
  --accent-soft-line: rgba(20, 112, 115, 0.28);
  --load-low: #34c759;
  --load-mid: #ff9f0a;
  --load-high: #ff453a;
  --space-row: 40px;
  --space-page: 32px;
  --space-lg: 20px;
  --space-md: 15px;
  --space-sm: 10px;
}

.app-window[data-theme="graphite"] {
  --window: #f2f4f7;
  --sidebar: #eceff3;
  --card: #ffffff;
  --separator: #d5dae1;
  --card-line: #d5dae1;
  --accent: #3867a0;
  --accent-strong: #3867a0;
  --accent-text: #36639a;
  --accent-soft: #e6edf6;
  --row-selected: #e1e9f4;
  --row-hover: #edf2f8;
  --accent-soft-line: rgba(56, 103, 160, 0.3);
}

.app-window[data-theme="fjord"] {
  --window: #edf4f4;
  --sidebar: #e6f0f0;
  --card: #f9fcfc;
  --separator: #c9dcdc;
  --card-line: #c9dcdc;
  --accent: #21706e;
  --accent-strong: #21706e;
  --accent-text: #206c6a;
  --accent-soft: #e0efee;
  --row-selected: #dcecec;
  --row-hover: #e9f3f3;
  --stripe: #eef6f6;
}

.app-window[data-theme="paper"] {
  --window: #f7f3ea;
  --sidebar: #f1ece0;
  --card: #fffdf7;
  --separator: #e0d8c6;
  --card-line: #e0d8c6;
  --field: #efe9db;
  --field-soft: #f3eee3;
  --accent: #3f679a;
  --accent-strong: #3f679a;
  --accent-text: #3c6395;
  --accent-soft: #e8edf3;
  --row-selected: #e6e9ee;
  --row-hover: #f2efe6;
  --stripe: #f6f1e6;
}

.app-window[data-appearance="dark"] {
  color-scheme: dark;
  --window: #1e1e20;
  --sidebar: #262628;
  --card: #2a2a2d;
  --text: #f2f2f4;
  --secondary: #a1a1a8;
  --tertiary: #75757c;
  --separator: #3a3a3e;
  --stripe: #252528;
  --card-line: #3a3a3e;
  --card-line-strong: #4a4a50;
  --field: #35353a;
  --field-soft: #303034;
  --field-hover: #404046;
  --track: #3a3a3f;
  --card-hover: #303034;
  --row-selected: #1f4446;
  --row-hover: #2c3a3b;
  --icon: #d6d6da;
  --backdrop: rgba(10, 10, 12, 0.55);
  --menu: rgba(44, 44, 48, 0.98);
  --chart-files: #5a5a60;
  --accent: #177d81;
  --accent-strong: #177d81;
  --accent-text: #23c0c5;
  --accent-soft: rgba(35, 192, 197, 0.14);
  --ok-text: #4cd964;
  --ok-soft: rgba(52, 199, 89, 0.14);
  --caution: #ffb340;
  --caution-soft: rgba(255, 159, 10, 0.14);
  --green: #4cd964;
  --orange: #ffb340;
  --red: #ff6961;
  --blue: #64a8ff;
  --selection: #2f6fe4;
}

.app-window[data-appearance="dark"][data-theme="graphite"] { --window: #1b1e23; --sidebar: #21252b; --card: #252a31; --separator: #3a414b; --card-line: #3a414b; --accent: #3e73b3; --accent-strong: #3e73b3; --accent-text: #90b0d8; }
.app-window[data-appearance="dark"][data-theme="fjord"] { --window: #142221; --sidebar: #192a29; --card: #1c2e2d; --separator: #2c4544; --card-line: #2c4544; --accent: #257d7b; --accent-strong: #257d7b; --accent-text: #38bfbd; --stripe: #18292a; }
.app-window[data-appearance="dark"][data-theme="paper"] { --window: #1f1d19; --sidebar: #26231e; --card: #2a2722; --separator: #3d3930; --card-line: #3d3930; --accent: #4673ad; --accent-strong: #4673ad; --accent-text: #94b0d4; --stripe: #24211c; }

.app-window[data-appearance="dark"] .mm-sidebar {
  border-color: rgba(255, 255, 255, 0.06);
}

.app-window[data-appearance="dark"] .ui-icon {
  color: inherit;
}

/* Compact density: the smaller of each DS.Space and DS.Table pair. */
.app-window[data-density="compact"] {
  --space-row: 34px;
  --space-page: 24px;
  --space-lg: 16px;
  --space-md: 12px;
  --space-sm: 8px;
}

/* ------------------------------------------------------------------ */
/* Toolbar: Back and Forward, the title, the pane's tools              */
/* ------------------------------------------------------------------ */

.pane-history {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 2px;
  border-radius: 999px;
  background: var(--card);
  padding: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 5px rgba(0, 0, 0, 0.08);
}

.pane-history .icon-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.pane-history .icon-button:disabled {
  opacity: 0.3;
}

.toolbar-button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.toolbar-button:disabled {
  opacity: 0.4;
}

.toolbar-labelled {
  display: inline-flex;
  width: auto;
  gap: 6px;
  border-radius: 999px;
  padding: 0 12px;
}

.toolbar-labelled span {
  font-size: 13px;
}

.mm-toolbar-actions {
  flex-wrap: nowrap;
}

.mm-toolbar-center .segmented button {
  white-space: nowrap;
}

.mm-main {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.menu-bar-question {
  padding: 0 var(--space-page) 8px;
}

.menu-bar-question[hidden] + .mm-pane {
  grid-row: 2 / 4;
}

/* ------------------------------------------------------------------ */
/* Pane header, status strip, capsules                                 */
/* ------------------------------------------------------------------ */

.pane-head {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--separator);
  padding: 12px var(--space-page) 12px;
}

.pane-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.metric {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.metric strong {
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}

.metric span {
  color: var(--secondary);
  font-size: 13px;
}

.status-strip {
  display: flex;
  min-height: 24px;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.capsule {
  display: inline-flex;
  height: 24px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(120, 120, 128, 0.28);
  border-radius: 7px;
  background: rgba(120, 120, 128, 0.11);
  padding: 0 10px;
  color: var(--secondary);
  font-size: 11px;
  white-space: nowrap;
}

.capsule .ui-icon {
  width: 11px;
  height: 11px;
  stroke-width: 2;
}

.capsule.tint-green { border-color: var(--green-line); background: var(--green-soft); color: var(--text); }
.capsule.tint-green .ui-icon { color: var(--green); }
.capsule.tint-orange { border-color: var(--orange-line); background: var(--orange-soft); color: var(--text); }
.capsule.tint-orange .ui-icon { color: var(--orange); }
.capsule.tint-red { border-color: var(--red-line); background: var(--red-soft); color: var(--text); }
.capsule.tint-accent { border-color: var(--accent-soft-line); background: var(--accent-soft); color: var(--text); }

.count-capsule b {
  color: var(--text);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.count-capsule.tint-orange b {
  color: var(--orange);
}

.capsule-button {
  border: 0;
  background: transparent;
  padding: 0;
}

.capsule-button:hover .capsule {
  border-color: var(--accent-soft-line);
}

.strip-button {
  display: inline-flex;
  height: 24px;
  align-items: center;
  gap: 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0 8px;
  color: var(--accent-text);
  font-size: 11px;
  white-space: nowrap;
}

.strip-button:hover {
  background: var(--accent-soft);
}

.strip-button .ui-icon {
  width: 11px;
  height: 11px;
  stroke-width: 2;
}

.scan-progress {
  display: inline-block;
  width: 90px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--track);
}

.scan-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 200ms ease;
}

.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-text);
  animation: mm-pulse 1.2s ease-in-out infinite;
}

.pulse-dot.large {
  width: 16px;
  height: 16px;
}

@keyframes mm-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.mm-nav small .pulse-dot {
  width: 7px;
  height: 7px;
}

.mm-nav button.is-active .pulse-dot {
  background: #ffffff;
}

/* DSNotice */
.ds-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(120, 120, 128, 0.28);
  border-radius: 8px;
  background: rgba(120, 120, 128, 0.09);
  padding: 8px 10px 8px 12px;
  color: var(--text);
  font-size: 12px;
}

.ds-notice > .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--secondary);
}

.ds-notice p {
  flex: 1;
  margin: 0;
  white-space: pre-line;
}

.notice-warning { border-color: var(--orange-line); background: var(--orange-soft); }
.notice-warning > .ui-icon { color: var(--orange); }
.notice-critical { border-color: var(--red-line); background: var(--red-soft); }
.notice-critical > .ui-icon { color: var(--red); }
.notice-info { border-color: var(--accent-soft-line); background: var(--accent-soft); }
.notice-info > .ui-icon { color: var(--accent-text); }

.notice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pane-banner {
  padding: 10px var(--space-page) 0;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.mm-button {
  border: 1px solid transparent;
}

.mm-button.small {
  min-height: 24px;
  padding: 0 10px;
  font-size: 12px;
}

.mm-button.large {
  min-height: 34px;
  padding: 0 18px;
}

.mm-button.borderless {
  background: transparent;
}

.mm-button.destructive-text {
  color: var(--red);
}

.mm-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.mm-button .ui-icon {
  width: 14px;
  height: 14px;
}

.menu-button .menu-chevron {
  width: 10px;
  height: 10px;
  margin-right: -4px;
  opacity: 0.7;
}

.menu-button.icon-only {
  padding: 0 8px;
}

.link-button {
  cursor: pointer;
}

.field-clear {
  display: inline-grid;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--tertiary);
  padding: 0;
  color: var(--card);
}

.field-clear .ui-icon {
  width: 10px;
  height: 10px;
  stroke-width: 2.4;
}

.search-field input::-webkit-search-cancel-button {
  display: none;
}

.select-field select {
  max-width: 100%;
  appearance: auto;
}

.segmented.in-pane,
.inspector-filters .segmented,
.status-tile .segmented {
  box-shadow: none;
  background: var(--field);
}

.inspector-filters .segmented button,
.status-tile .segmented button {
  flex: 1;
  min-height: 24px;
  font-size: 12px;
}

.inspector-filters .segmented button.is-active,
.status-tile .segmented button.is-active {
  background: var(--card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Switches, as macOS draws them. */
.switch {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  cursor: pointer;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch-track {
  position: relative;
  width: 32px;
  height: 18px;
  border-radius: 9px;
  background: var(--track);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: background 150ms ease;
}

.switch-track::after {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  content: "";
  transition: transform 150ms ease;
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track::after {
  transform: translateX(14px);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid #3d8bfd;
  outline-offset: 2px;
}

.switch input:disabled + .switch-track {
  opacity: 0.5;
}

/* ------------------------------------------------------------------ */
/* Pages, sections and rows                                            */
/* ------------------------------------------------------------------ */

.ds-page {
  display: grid;
  min-height: 0;
  align-content: start;
  gap: 24px;
  overflow: auto;
  padding: 20px var(--space-page) 28px;
}

.ds-page.narrow > * {
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
}

.ds-section {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.ds-section > h3 {
  margin: 0 0 0 4px;
  font-size: 13px;
}

.ds-card {
  display: grid;
  min-width: 0;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: var(--card);
  padding: 0 var(--space-lg);
}

.ds-card > .lead {
  margin: 0;
  padding: 14px 0;
  color: var(--secondary);
}

.section-footer {
  margin: 0 4px;
  color: var(--secondary);
  font-size: 11px;
}

.ds-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
}

.ds-row + .ds-row,
.ds-card > * + .ds-row {
  border-top: 1px solid var(--separator);
}

.ds-row-text {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 2px;
}

.ds-row-title {
  margin: 0;
  color: var(--text);
}

.ds-row-title:empty {
  display: none;
}

.ds-row-detail p {
  margin: 0;
  color: var(--secondary);
  font-size: 11px;
}

.ds-row-detail .tertiary {
  color: var(--tertiary);
}

.ds-row-trail {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.row-icon,
.ds-icon {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-text);
}

.ds-icon.large {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.row-icon .ui-icon,
.ds-icon .ui-icon {
  width: 15px;
  height: 15px;
}

.value {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.muted {
  color: var(--secondary);
}

.small {
  font-size: 11px;
}

.mono,
.mono-digits {
  font-family: var(--mono-font-family);
  font-size: 11px;
}

.mono-digits {
  font-variant-numeric: tabular-nums;
}

.task-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px !important;
}

.task-status .ui-icon {
  width: 12px;
  height: 12px;
}

.tint-green { color: var(--green) !important; }
.tint-orange { color: var(--orange) !important; }
.tint-red { color: var(--red) !important; }
.tint-accent { color: var(--accent-text) !important; }
.tint-gray { color: var(--secondary) !important; }
.tint-blue { color: var(--blue) !important; }

.capsule.tint-green, .capsule.tint-orange, .capsule.tint-red, .capsule.tint-accent { color: var(--text) !important; }

/* Badges */
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-orange { background: var(--orange-soft); color: var(--orange); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-gray { background: var(--gray-soft); color: var(--secondary); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-accent { background: var(--accent-soft); color: var(--accent-text); }

/* The action bar and its caveat */
.action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  border-top: 1px solid var(--separator);
  background: var(--window);
  padding: 10px var(--space-page) 12px;
}

.action-lead {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.action-text {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
}

.action-text .ui-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-text);
}

.action-trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.caveat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--secondary);
  font-size: 11px;
}

.caveat .ui-icon {
  width: 12px;
  height: 12px;
}

/* Empty, loading and finished states */
.center-card {
  display: grid;
  max-width: 440px;
  margin: 56px auto;
  justify-items: center;
  gap: 8px;
  padding: 0 24px;
  color: var(--secondary);
  text-align: center;
}

.center-card .center-icon {
  width: 38px;
  height: 38px;
  color: var(--tertiary);
  stroke-width: 1.2;
}

.center-card h3 {
  margin: 4px 0 0;
  color: var(--text);
  font-size: 17px;
}

.center-card p {
  margin: 0;
}

.center-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.ds-loading {
  display: grid;
  margin: 70px auto;
  justify-items: center;
  gap: 12px;
  color: var(--secondary);
  text-align: center;
}

.ds-loading p {
  margin: 0;
}

.pulse-bar {
  display: block;
  width: 180px;
  height: 4px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--track);
}

.pulse-bar span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  animation: mm-progress 1.1s ease-in-out infinite alternate;
}

/* ------------------------------------------------------------------ */
/* FileTable                                                           */
/* ------------------------------------------------------------------ */

.pane-stack {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.pane-stack > .table-scroll,
.pane-stack > .ds-page,
.pane-stack > .split-tables,
.pane-stack > .projects-split,
.pane-stack > .map-body,
.pane-stack > .large-files,
.pane-stack > .changes,
.pane-stack > .app-grid-scroll,
.pane-stack > .center-card,
.pane-stack > .ds-loading {
  grid-row: 2;
}

.pane-stack > .action-bar {
  grid-row: 3;
}

.map-pane {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.map-pane > .pane-banner { grid-row: 2; }
.map-pane > .map-body,
.map-pane > .large-files,
.map-pane > .changes,
.map-pane > .center-card { grid-row: 3; }
.map-pane > .action-bar { grid-row: 4; }

.projects-pane {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.table-scroll {
  position: relative;
  padding: 0 calc(var(--space-page) - 12px);
}

.file-table th {
  padding: 0;
}

.th-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  padding: 8px 8px;
  color: var(--text);
  font-size: 11px;
  text-align: inherit;
}

.th-button:hover {
  color: var(--accent-text);
}

th.col-size .th-button,
th.col-freeable .th-button,
th.col-change .th-button,
th.col-items .th-button {
  justify-content: flex-end;
}

.file-table td {
  height: var(--space-row);
}

.file-table tbody tr {
  cursor: default;
  outline: 0;
}

.file-table tbody tr:focus-visible td {
  box-shadow: inset 0 1px 0 #3d8bfd, inset 0 -1px 0 #3d8bfd;
}

.file-table tbody tr.is-selected td {
  background: var(--row-selected) !important;
}

.file-table tbody tr.is-hovered td {
  background: var(--row-hover);
}

.file-table tbody tr.is-dim td {
  opacity: 0.55;
}

.mm-table .col-modified { width: 124px; }
.mm-table .col-kind { width: 180px; }
.mm-table .col-items { width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.mm-table .col-freeable { width: 96px; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.mm-table .col-change { width: 104px; text-align: right; font-variant-numeric: tabular-nums; }
.mm-table .col-change.is-grew { color: var(--orange); }
.mm-table .col-change.is-shrank { color: var(--green); }

.row-text {
  display: grid;
  min-width: 0;
  flex: 1;
}

.row-sub,
.row-mobile {
  overflow: hidden;
  color: var(--secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-mobile {
  display: none;
}

.file-table td.col-name {
  overflow: hidden;
}

.file-table .row-name .badge {
  flex: 0 0 auto;
  margin-left: auto;
}

.kind-icon {
  color: var(--accent-text);
}

.kind-icon.tint-green { color: var(--green) !important; }
.kind-icon.tint-orange { color: var(--orange) !important; }

.table-empty {
  position: absolute;
  inset: 40px 0 0;
  display: grid;
  align-items: start;
  pointer-events: none;
}

.table-empty * {
  pointer-events: auto;
}

/* Table lines: None (stripes), Rows, or Grid (the default). */
.app-window[data-lines="grid"] .file-table tbody tr td,
.app-window[data-lines="rows"] .file-table tbody tr td {
  border-bottom: 1px solid var(--separator);
  background: transparent;
}

.app-window[data-lines="grid"] .file-table tbody tr:nth-child(even) td,
.app-window[data-lines="rows"] .file-table tbody tr:nth-child(even) td {
  background: transparent;
}

.app-window[data-lines="grid"] .file-table td + td,
.app-window[data-lines="grid"] .file-table th + th {
  border-left: 1px solid var(--separator);
}

.app-window[data-lines="grid"] .file-table td:first-child,
.app-window[data-lines="grid"] .file-table td:last-child,
.app-window[data-lines="rows"] .file-table td:first-child,
.app-window[data-lines="rows"] .file-table td:last-child {
  border-radius: 0;
}

.app-window[data-lines="grid"] .file-table tbody tr.is-selected td,
.app-window[data-lines="rows"] .file-table tbody tr.is-selected td {
  border-bottom-color: transparent;
}

.app-window[data-lines="grid"] .file-table td.col-check + td {
  border-left: 0;
}

.app-window[data-lines="grid"] .file-table th.col-check + th {
  border-left: 0;
}

/* ------------------------------------------------------------------ */
/* Menus, dialogs, toasts                                              */
/* ------------------------------------------------------------------ */

.mm-menu {
  position: absolute;
  z-index: 40;
  display: grid;
  min-width: 200px;
  max-width: min(360px, calc(100% - 16px));
  max-height: calc(100% - 16px);
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: var(--menu);
  padding: 5px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
}

.mm-menu.is-popover {
  min-width: 280px;
  padding: 10px 12px;
}

.menu-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 3px 10px 3px 6px;
  color: var(--text);
  font-size: 13px;
  text-align: left;
}

.menu-item.is-nested {
  padding-left: 18px;
}

.menu-item:hover:not(:disabled),
.menu-item:focus-visible {
  background: var(--accent);
  color: #ffffff;
  outline: 0;
}

.menu-item:hover:not(:disabled) small,
.menu-item:focus-visible small,
.menu-item:hover:not(:disabled) kbd,
.menu-item:focus-visible kbd {
  color: rgba(255, 255, 255, 0.85);
}

.menu-check .ui-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.menu-label {
  display: grid;
  min-width: 0;
}

.menu-label small,
.menu-item kbd {
  color: var(--secondary);
  font-family: inherit;
  font-size: 11px;
}

.menu-divider {
  height: 1px;
  margin: 4px 6px;
  background: var(--separator);
}

.menu-header {
  margin: 6px 8px 2px 22px;
  color: var(--secondary);
  font-size: 11px;
}

.mm-menu.is-popover .menu-header {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 13px;
}

.menu-text {
  margin: 2px 8px 4px 22px;
  color: var(--secondary);
  font-size: 12px;
}

.mm-menu.is-popover .menu-text {
  margin: 2px 0 6px;
}

.mm-dialog-backdrop {
  position: absolute;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.12);
  padding: 20px;
}

.mm-dialog {
  display: grid;
  width: min(300px, 100%);
  max-height: 100%;
  justify-items: center;
  gap: 10px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  background: var(--menu);
  padding: 22px 18px 16px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.mm-dialog h2 {
  margin: 0;
  font-size: 13px;
}

.mm-dialog p {
  margin: 0;
  color: var(--text);
  font-size: 11px;
  text-align: center;
}

.dialog-icon {
  border-radius: 12px;
}

.dialog-buttons {
  display: grid;
  width: 100%;
  gap: 8px;
  margin-top: 6px;
}

.dialog-buttons .mm-button {
  width: 100%;
  min-height: 28px;
  background: var(--field);
  color: var(--text);
  white-space: normal;
}

.dialog-buttons .mm-button.primary {
  background: var(--accent);
  color: #ffffff;
}

.dialog-buttons .mm-button.destructive-text {
  color: var(--red);
}

.mm-confirm-toast {
  position: absolute;
  z-index: 25;
  top: 70px;
  right: 16px;
  display: flex;
  max-width: min(560px, calc(100% - 32px));
  align-items: center;
  gap: 10px;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: var(--menu);
  padding: 10px 12px;
  font-size: 12px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

.mm-confirm-toast > .ui-icon {
  color: var(--green);
}

.mm-undo-shelf {
  bottom: 20px;
}

.mm-undo-shelf.above-bar {
  bottom: 74px;
}

.mm-undo-shelf button[data-action="undo"] {
  background: var(--accent);
  color: #ffffff;
}

.mm-undo-shelf button[data-action="undo"][hidden] {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Sheets                                                              */
/* ------------------------------------------------------------------ */

.mm-sheet {
  position: relative;
  width: min(680px, 100%);
}

.mm-sheet[data-kind="batch"],
.mm-sheet[data-kind="orphans"],
.mm-sheet[data-kind="packages"],
.mm-sheet[data-kind="every-download"] {
  width: min(760px, 100%);
}

.mm-sheet[data-kind="palette"] {
  align-self: start;
  width: min(520px, 100%);
  margin-top: 60px;
  gap: 0;
  padding: 0;
}

.sheet-heading {
  display: grid;
  gap: 4px;
}

.sheet-path {
  margin: -6px 0 0;
  color: var(--secondary);
}

.sheet-table {
  max-height: 260px;
  margin: 0 -12px;
  overflow: auto;
}

.sheet-table.short {
  max-height: 180px;
}

.sheet-table.tall {
  max-height: 340px;
}

.sheet-table .table-empty {
  position: static;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.check-row input {
  margin-top: 2px;
  accent-color: var(--checkbox);
}

.check-row span {
  display: grid;
  gap: 1px;
}

.check-row small {
  color: var(--secondary);
  font-size: 11px;
}

.sheet-toast {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: center;
  border-radius: 999px;
  background: rgba(36, 36, 38, 0.94);
  padding: 6px 8px 6px 14px;
  color: #ffffff;
  font-size: 12px;
}

.sheet-toast .icon-button {
  color: rgba(255, 255, 255, 0.7);
}

.review-list {
  display: grid;
  max-height: 300px;
  gap: 0;
  margin: 0 -6px;
  overflow: auto;
  padding: 0;
  list-style: none;
}

.review-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 28px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--separator);
  padding: 8px 6px;
}

.review-icon {
  color: var(--secondary);
}

.review-text {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.review-text .mono {
  overflow: hidden;
  color: var(--secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-warning {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.review-warning .ui-icon {
  width: 12px;
  height: 12px;
}

.review-size {
  font-variant-numeric: tabular-nums;
}

.choice-list {
  display: grid;
  max-height: 320px;
  gap: 2px;
  margin: 0;
  overflow: auto;
  padding: 0;
  list-style: none;
}

.choice-list button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 8px 10px;
  color: var(--text);
  text-align: left;
}

.choice-list button:hover {
  background: var(--row-hover);
}

.choice-list button > span {
  display: grid;
  min-width: 0;
  flex: 1;
}

.choice-list small {
  color: var(--secondary);
  font-size: 11px;
}

.choice-list .ui-icon {
  color: var(--accent-text);
}

.choose-path {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.text-field input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--card-line);
  border-radius: 6px;
  background: var(--card);
  padding: 6px 8px;
  color: var(--text);
}

.palette-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--separator);
  padding: 14px 16px;
  color: var(--secondary);
}

.palette-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  outline: 0;
}

.palette-list {
  display: grid;
  max-height: 320px;
  margin: 0;
  overflow: auto;
  padding: 6px;
  list-style: none;
}

.palette-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  padding: 5px 8px;
  cursor: pointer;
}

.palette-list li.is-chosen {
  background: var(--row-selected);
}

.palette-list li.is-blocked .palette-text > span {
  color: var(--secondary);
}

.palette-text {
  display: grid;
  min-width: 0;
  flex: 1;
}

.palette-text small {
  color: var(--secondary);
  font-size: 11px;
}

.palette-list kbd {
  color: var(--secondary);
  font-family: inherit;
  font-size: 12px;
}

.palette-empty {
  justify-content: center;
  color: var(--secondary);
}

/* ------------------------------------------------------------------ */
/* Dashboard                                                           */
/* ------------------------------------------------------------------ */

.dash {
  padding: 20px var(--space-page) 28px;
}

.ring-card {
  border: 1px solid var(--card-line);
  color: var(--text);
}

.ring-card:hover,
.stat-card.linked:hover,
.list-link:hover {
  border-color: var(--accent-soft-line);
}

.dash-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card.linked {
  border: 1px solid var(--card-line);
  color: var(--text);
  text-align: left;
}

.stat-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: var(--secondary);
  font-size: 12px;
}

.tile-chevron {
  width: 11px;
  height: 11px;
  color: var(--tertiary);
}

.smart-scan .chips {
  gap: 4px;
}

.dash-lists {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.dash-lists .ds-card {
  align-content: start;
  padding: 4px var(--space-lg);
}

.list-link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  margin: 0 -8px;
  padding: 9px 8px;
  color: var(--text);
  text-align: left;
}

.list-link + .list-link {
  border-top-color: var(--separator);
  border-radius: 0;
}

.list-copy {
  display: grid;
  min-width: 0;
}

.list-copy small {
  overflow: hidden;
  color: var(--secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-value {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ */
/* Uninstall                                                           */
/* ------------------------------------------------------------------ */

.app-grid-scroll {
  padding: 18px var(--space-page) 24px;
}

.app-grid {
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
}

.app-card-tile.is-picked {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.app-card-tile.is-protected {
  opacity: 0.6;
}

.app-open-lock,
.app-picked-mark {
  position: absolute;
  top: 8px;
  color: var(--secondary);
}

.app-open-lock {
  left: 8px;
}

.app-open-lock .ui-icon {
  width: 12px;
  height: 12px;
}

.app-picked-mark {
  right: 6px;
  color: var(--accent);
}

.app-picked-mark .ui-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.drop-zone.is-drop-target {
  outline: 3px dashed var(--accent);
  outline-offset: -10px;
  border-radius: 12px;
}

/* ------------------------------------------------------------------ */
/* Projects                                                            */
/* ------------------------------------------------------------------ */

.projects-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  border-bottom: 1px solid var(--separator);
  padding: 12px var(--space-page);
}

.heat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.count-chip {
  display: inline-flex;
  height: 26px;
  align-items: baseline;
  gap: 6px;
  border: 1px solid rgba(120, 120, 128, 0.28);
  border-radius: 7px;
  background: rgba(120, 120, 128, 0.11);
  padding: 4px 10px 0;
  color: var(--secondary);
  font-size: 11px;
}

.count-chip b {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.count-chip.tint-red { border-color: var(--red-line); background: var(--red-soft); color: var(--text) !important; }
.count-chip.tint-red b { color: var(--red); }
.count-chip.tint-orange { border-color: var(--orange-line); background: var(--orange-soft); color: var(--text) !important; }
.count-chip.tint-orange b { color: var(--orange); }
.count-chip.tint-gray b { color: var(--text); }

.projects-total {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.projects-total span {
  display: grid;
}

.projects-total strong {
  font-size: 17px;
}

.projects-total small {
  color: var(--secondary);
  font-size: 11px;
}

.projects-split,
.split-tables {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr);
}

.projects-list,
.split-detail {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.split-tables > .table-scroll + .table-scroll,
.split-tables > .split-detail {
  border-left: 1px solid var(--separator);
}

.list-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--separator);
  padding: 8px 14px;
}

.list-filter .search-field {
  flex: 1 1 160px;
}

.projects-detail {
  display: grid;
  min-height: 0;
  align-content: start;
  overflow: auto;
  border-left: 1px solid var(--separator);
}

.projects-detail .ds-page {
  overflow: visible;
  padding: 16px 20px 24px;
}

.project-head {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--separator);
  padding: 16px 20px 12px;
}

.project-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.project-title h3 {
  flex: 1;
  margin: 0;
  font-size: 17px;
}

.project-title strong {
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.project-head .mono {
  margin: 0;
  color: var(--secondary);
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.project-tools .menu-button {
  margin-left: auto;
}

.footprint-bar {
  display: flex;
  height: 12px;
  gap: 1px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--track);
}

.footprint-bar span {
  min-width: 2px;
}

.ds-row > .footprint-bar {
  flex: 1;
}

.cat-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
}

.outline {
  display: grid;
  padding: 6px 12px 20px;
}

.outline-section {
  margin: 12px 8px 4px;
  color: var(--secondary);
  font-size: 11px;
}

.outline-row {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  padding: 3px 8px;
}

.outline-row:hover {
  background: var(--row-hover);
}

.group-row {
  min-height: 46px;
}

.entry-row {
  padding-left: 42px;
}

.outline-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--checkbox);
}

.tick-slot {
  display: inline-grid;
  width: 16px;
  place-items: center;
  color: var(--tertiary);
}

.tick-slot .ui-icon {
  width: 12px;
  height: 12px;
}

.disclosure {
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--secondary);
}

.disclosure .ui-icon {
  width: 11px;
  height: 11px;
  stroke-width: 2.2;
}

.outline-text {
  display: grid;
  min-width: 0;
  flex: 1;
}

.outline-text small {
  overflow: hidden;
  color: var(--secondary);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-row .ds-row-text {
  flex: 1;
}

/* ------------------------------------------------------------------ */
/* Duplicates and Similar Photos                                       */
/* ------------------------------------------------------------------ */

.similar-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  border-bottom: 1px solid var(--separator);
  padding: 12px 16px;
}

.similar-strip figure {
  position: relative;
  display: grid;
  flex: 0 0 150px;
  gap: 2px;
  margin: 0;
}

.thumb {
  display: block;
  width: 150px;
  height: 110px;
  border-radius: 6px;
}

.best-tag {
  position: absolute;
  top: 4px;
  left: 4px;
  border-radius: 3px;
  background: #34c759;
  padding: 1px 4px;
  color: #ffffff;
  font-size: 10px;
}

.similar-strip figcaption {
  display: grid;
  font-size: 11px;
}

.similar-strip figcaption b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.similar-strip small {
  color: var(--secondary);
}

/* ------------------------------------------------------------------ */
/* Disk Map                                                            */
/* ------------------------------------------------------------------ */

.map-crumbs {
  min-height: 40px;
  padding: 4px var(--space-page);
}

.crumb-back {
  flex: 0 0 auto;
  min-height: 26px;
  padding: 0 10px 0 6px;
  color: var(--text);
  font-size: 12px;
}

.crumb-trail button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.crumb-trail button[aria-current] {
  font-weight: 600;
  opacity: 1;
}

.crumb-icon {
  width: 13px;
  height: 13px;
  color: var(--secondary);
}

.outside-button {
  flex: 0 0 auto;
  margin-left: auto;
}

.map-body {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 44%);
}

.map-body.chart-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.map-body.chart-hidden .map-inspector {
  border-left: 0;
}

.map-chart.is-loading {
  place-items: center;
}

.map-chart.chart-boxes svg,
.map-chart.chart-columns svg {
  width: 100%;
  height: 100%;
  max-height: 100%;
  aspect-ratio: auto;
}

.map-chart rect {
  cursor: pointer;
  stroke: var(--window);
  stroke-width: 0.4;
}

.map-chart rect:hover,
.map-chart [data-slice].is-hovered {
  stroke: var(--text);
  stroke-width: 0.8;
}

.chart-label {
  fill: #1d1d1f;
  font-size: 7px;
  pointer-events: none;
}

.chart-label.small {
  font-size: 6px;
}

.map-hover {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: grid;
  border-radius: 8px;
  background: var(--menu);
  padding: 6px 10px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: opacity 120ms ease;
}

.map-hover.is-visible {
  opacity: 1;
}

.map-hover small {
  color: var(--secondary);
  font-size: 11px;
}

.bars-chart {
  display: grid;
  width: 100%;
  align-content: start;
  gap: 4px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(80px, 30%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 4px 6px;
  color: var(--text);
  text-align: left;
}

.bar-row:hover {
  background: var(--row-hover);
}

.bar-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  height: 16px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--track);
}

.bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bar-size {
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}

.kind-legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: grid;
  gap: 4px;
  border-radius: 10px;
  background: var(--menu);
  padding: 10px;
  font-size: 11px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.kind-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kind-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.map-inspector {
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
}

.inspector-filters {
  display: grid;
  gap: 8px;
  padding: 0 12px 10px;
}

.inspector-filters .search-field {
  width: 100%;
}

.inspector-filters .filter-row {
  align-items: center;
  gap: 6px;
}

.skipped-note,
.whole-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  color: var(--secondary);
  font-size: 11px;
}

.whole-note {
  padding: 0 14px 6px;
}

.skipped-note .ui-icon {
  width: 12px;
  height: 12px;
}

.map-list-scroll {
  border-top: 1px solid var(--separator);
  padding: 0 4px;
}

.map-list-scroll .map-empty {
  padding: 30px 12px;
}

.inspector-foot {
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 8px 12px;
}

.inspector-foot > div:first-child {
  display: grid;
  gap: 1px;
}

.foot-buttons {
  display: flex;
  gap: 6px;
}

.small-files {
  display: flex;
  align-items: center;
  gap: 6px;
}

.large-files,
.changes {
  display: grid;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
}

.large-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--separator);
  padding: 10px var(--space-page);
}

.large-toolbar .search-field {
  width: 220px;
}

.large-counts {
  font-size: 11px;
  white-space: nowrap;
}

.changes-controls {
  display: grid;
  gap: 8px;
  border-bottom: 1px solid var(--separator);
  padding: 10px var(--space-page);
}

.changes-controls p {
  margin: 0;
}

.changes-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.changes-summary strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}

.changes-summary .is-grew { color: var(--orange); }
.changes-summary .is-shrank { color: var(--green); }

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.check-inline input {
  accent-color: var(--checkbox);
}

/* ------------------------------------------------------------------ */
/* Live Status                                                         */
/* ------------------------------------------------------------------ */

.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.status-tile {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
}

.status-tile small {
  color: var(--secondary);
  font-size: 11px;
}

.status-tile .big {
  font-size: 28px;
  line-height: 1.15;
}

.big-button {
  justify-self: start;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--text);
}

.sparkline {
  display: block;
  width: 100%;
  height: 24px;
}

.sparkline polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.cores {
  display: flex;
  height: 40px;
  align-items: flex-end;
  gap: 3px;
}

.cores span {
  flex: 1;
  border-radius: 2px;
  transition: height 400ms ease;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.kv span {
  color: var(--secondary);
}

.tile-actions {
  display: flex;
  flex-wrap: wrap;
  margin-left: -8px;
}

.process-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 70px;
  align-items: center;
  gap: 8px;
  border-radius: 5px;
  padding: 3px 4px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.process-list li:hover {
  background: var(--row-hover);
}

.process-list li > span:last-child {
  text-align: right;
}

.process-list .strong {
  color: var(--text);
  font-weight: 600 !important;
}

/* ------------------------------------------------------------------ */
/* History and Settings                                                */
/* ------------------------------------------------------------------ */

.history-row {
  display: flex;
  grid-template-columns: none;
  padding: 11px 0;
}

.history-values {
  display: grid;
  justify-items: end;
}

.history-values strong {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.history-values small {
  color: var(--secondary);
  font-size: 11px;
}

.settings-page .ds-row-trail .select-field select {
  min-width: 130px;
}

.theme-preview-row {
  padding: 12px 0;
}

.theme-preview {
  display: grid;
  width: min(320px, 100%);
  gap: 4px;
  border: 1px solid var(--card-line);
  border-radius: 10px;
  background: var(--window);
  padding: 10px;
}

.theme-preview p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-radius: 6px;
  padding: 4px 6px;
  background: var(--card);
}

.theme-preview p.is-selected {
  background: var(--row-selected);
}

.theme-preview p span {
  flex: 1;
}

.theme-preview small {
  color: var(--secondary);
}

.theme-preview .mm-button {
  justify-self: end;
  margin-top: 4px;
}

.accent-icon {
  color: var(--accent-text);
}

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

.slider {
  display: grid;
  width: min(260px, 100%);
  gap: 2px;
}

.slider input {
  width: 100%;
  accent-color: var(--accent);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  color: var(--secondary);
  font-size: 10px;
}

.stepper {
  display: inline-flex;
  gap: 4px;
}

.stepper .mm-button {
  min-width: 28px;
  padding: 0 8px;
}

.each-kind {
  display: block;
}

.each-kind summary {
  cursor: pointer;
  color: var(--text);
}

.each-kind .ds-row {
  padding: 8px 0 8px 14px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.link-row a:not(.mm-button) {
  color: var(--accent-text);
}

/* ------------------------------------------------------------------ */
/* Narrower windows                                                    */
/* ------------------------------------------------------------------ */

@media (max-width: 1180px) {
  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mm-table .col-kind {
    display: none;
  }

  .mm-toolbar {
    flex-wrap: wrap;
  }

  .mm-toolbar-center {
    order: 3;
    flex-basis: 100%;
    display: flex;
    justify-content: center;
  }

  .mm-toolbar-center:empty {
    display: none;
  }
}

@media (max-width: 980px) {
  .projects-split,
  .split-tables {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(220px, 1fr) minmax(0, 1.2fr);
  }

  .projects-detail,
  .split-tables > .table-scroll + .table-scroll,
  .split-tables > .split-detail {
    border-top: 1px solid var(--separator);
    border-left: 0;
  }

  .mm-table .col-modified {
    display: none;
  }

  .row-mobile {
    display: block;
  }

  .row-sub {
    display: none;
  }

  .map-body {
    grid-template-rows: minmax(220px, 42%) minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .app-window {
    --space-page: 12px;
  }

  .pane-history {
    display: none;
  }

  .mm-toolbar-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .toolbar-labelled span {
    display: none;
  }

  .toolbar-labelled {
    width: 34px;
    padding: 0;
  }

  .toolbar-search {
    width: 120px;
  }

  .metric strong {
    font-size: 22px;
  }

  .pane-head-row {
    align-items: stretch;
    flex-direction: column;
  }

  .pane-head-tools {
    width: 100%;
    justify-content: stretch;
  }

  .pane-head-tools .search-field {
    width: auto;
    flex: 1 1 140px;
  }

  .status-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .status-strip::-webkit-scrollbar {
    display: none;
  }

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

  .dash-stats .stat-card:last-child {
    grid-column: auto;
  }

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

  .mm-table .col-location,
  .mm-table .col-kind,
  .mm-table .col-items,
  .mm-table .col-change {
    display: none;
  }

  .mm-table .col-freeable {
    width: 76px;
  }

  .table-scroll {
    padding: 0 4px;
  }

  .action-bar {
    padding: 10px 12px 12px;
  }

  .action-trail {
    width: 100%;
  }

  .action-trail .mm-button.primary {
    flex: 1 0 auto;
  }

  /* On a phone the Disk Map scrolls as one page: chart, list, then the bar. */
  .map-pane {
    display: block;
    height: auto;
  }

  .map-body {
    display: block;
  }

  .map-chart {
    height: 240px;
  }

  .map-inspector {
    display: block;
    border-left: 0;
    border-top: 1px solid var(--separator);
  }

  .map-list-scroll {
    max-height: none;
    overflow: visible;
  }

  .map-pane .action-bar {
    position: sticky;
    z-index: 3;
    bottom: 0;
  }

  .map-crumbs {
    flex-wrap: wrap;
  }

  .outside-button {
    margin-left: 0;
  }

  .large-toolbar .search-field {
    width: 100%;
  }

  .projects-summary {
    padding: 10px 12px;
  }

  .projects-total {
    text-align: left;
  }

  .projects-split,
  .split-tables {
    display: block;
    overflow: auto;
  }

  .projects-pane,
  .pane-stack:has(.split-tables) {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100%;
  }

  .projects-list .table-scroll,
  .split-tables > .table-scroll {
    max-height: 300px;
  }

  .entry-row {
    padding-left: 28px;
  }

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

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

  .ds-row-trail {
    margin-left: auto;
  }

  .history-row .ds-row-text {
    flex-basis: calc(100% - 50px);
  }

  .mm-dialog-backdrop {
    align-items: end;
    padding: 10px;
  }

  .mm-confirm-toast {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }

  .mm-undo-shelf,
  .mm-undo-shelf.above-bar {
    bottom: 76px;
  }

  .review-list li {
    grid-template-columns: 18px minmax(0, 1fr) 28px;
  }

  .review-size {
    grid-column: 2;
  }

  .mm-sheet[data-kind="palette"] {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot,
  .pulse-bar span {
    animation: none;
  }

  .switch-track,
  .switch-track::after,
  .cores span,
  .scan-progress span {
    transition: none;
  }
}

/* Weights: titles semibold, everything else regular, as in the app. */
.app-window :is(.metric strong, .ds-section > h3, .center-card h3, .mm-dialog h2, .ds-row-title b, .project-title h3, .menu-bar-question b, .mm-menu.is-popover .menu-header, .stat-caption + strong, .smart-scan h3, .crumb-trail button[aria-current], .count-capsule b, .count-chip b, .review-text b, .palette-text > span, .similar-strip figcaption b, .check-row b, .changes-summary strong, .projects-total strong, .process-list .strong, .action-text b, .slider-row b) {
  font-weight: 600 !important;
}

.app-window :is(.metric strong, .stat-caption + strong, .projects-total strong, .status-tile .big, .project-title strong) {
  font-weight: 500 !important;
}

/* Sheets are narrower than panes: the name keeps the most room. */
.mm-sheet .mm-table .col-size { width: 84px; }
.mm-sheet .mm-table .col-kind { width: 30%; }
.mm-sheet .mm-table .col-location { width: 24%; }
.mm-sheet .mm-table .col-modified { width: 112px; }
.mm-sheet .mm-table .col-check { width: 30px; }

/* DSIcon: a plain symbol in a fixed column, secondary unless tinted. */
.row-icon,
.ds-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: transparent;
  color: var(--accent-text);
}

.row-icon,
.history-row .ds-icon {
  color: var(--secondary);
}

.row-icon .ui-icon,
.ds-icon .ui-icon {
  width: 16px;
  height: 16px;
}

.ds-icon.large .ui-icon {
  width: 20px;
  height: 20px;
}

.switch-track {
  width: 40px;
  height: 22px;
  border-radius: 11px;
}

.switch-track::after {
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
}

.switch input:checked + .switch-track::after {
  transform: translateX(18px);
}

/* Tables side by side share the width: the name keeps the most room. */
.split-tables .mm-table .col-location { width: 32%; }
.split-tables .mm-table .col-modified { width: 104px; }
.split-tables .mm-table .col-kind { width: 96px; }
.split-tables .mm-table .col-size,
.split-tables .mm-table .col-freeable { width: 84px; }
.split-tables .mm-table .col-items { width: 64px; }
.projects-list .mm-table .col-size,
.projects-list .mm-table .col-freeable { width: 86px; }

.mm-toolbar,
.menu-bar-question,
.mm-pane {
  min-width: 0;
}

.mm-title h2,
.mm-title p {
  max-width: 100%;
}

.map-inspector > .inspector-head { grid-row: 1; }
.map-inspector > .inspector-filters { grid-row: 2; }
.map-inspector > .whole-note { grid-row: 3; }
.map-inspector > .map-list-scroll { grid-row: 4; }
.map-inspector > .inspector-foot { grid-row: 5; }

.switch input {
  z-index: 1;
}
