:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 13px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
body { margin: 0; overflow: hidden; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button:disabled { opacity: .35; cursor: default; }
button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
svg { width: 17px; height: 17px; display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
[data-icon] { display: inline-grid; place-items: center; flex: none; }
.app {
  --workspace-top: 6px;
  --toolbar-height: 54px;
  position: relative; height: 100vh; display: grid;
  grid-template-columns: var(--locations-width, 193px) minmax(0, 1fr);
  background: var(--window-chrome);
}
.app > .side, .app > .workspace { grid-row: 1; }
.app > .side { grid-column: 1; }
.app > .workspace { grid-column: 2; }
.side {
  --side-inset: 11px;
  display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 10px 0 9px;
  background: var(--window-chrome);
  overflow: clip;
}
.side > * { min-width: 0; }
.brand {
  display: flex; align-items: center; gap: 5px; margin-inline: var(--side-inset);
  padding: 0 4px 9px; user-select: none;
}
.brand-icon { flex: none; display: block; width: 32px; height: 32px; }
.brand-wordmark { flex: none; display: block; }
:root[data-theme-mode="dark"] .brand-wordmark { filter: invert(1); }
.brand-version { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1; }
.brand-update-badge {
  margin-top: 5px; padding: 1px 4px; border-radius: 4px;
  color: var(--on-primary); background: var(--primary); font-size: 9px; font-weight: 680; line-height: 1.3;
}
.rail-heading {
  margin: 0 10px 6px; color: var(--muted); font-size: 11px; font-weight: 590;
}
.rail-collapse {
  display: flex; align-items: center; gap: 6px; width: 100%; min-height: 22px;
  padding: 2px 3px; border-radius: 6px; color: inherit; font-size: inherit; font-weight: inherit; text-align: left;
}
.rail-collapse > span:first-child { flex: 1; min-width: 0; }
.rail-collapse:hover { color: var(--ink); background: var(--selected); }
.rail-collapse > span:last-child { color: var(--muted); }
.rail-collapse svg { width: 12px; height: 12px; transition: transform .12s ease; }
.rail-collapse[aria-expanded="false"] svg { transform: rotate(-90deg); }
.side-nav {
  display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden auto; scrollbar-width: thin;
  padding-top: 2px; margin-top: -2px;
}
.side-nav > * { flex-shrink: 0; }
.system-locations { padding-inline: var(--side-inset); }
.external-volumes { padding:12px var(--side-inset) 0; }
.external-volumes .rail-heading { margin-bottom:4px; }
.volume-name { min-width:0; overflow:hidden; text-overflow:ellipsis; }
.side nav button, .side-foot button {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px;
  margin: 1px 0; padding: 5px 8px 5px 9px; border-radius: 8px; text-align: left;
  white-space: nowrap; font-weight: 500;
}
.side nav button span:first-child, .side-foot button span:first-child { color: var(--muted); }
.side nav button:hover, .side-foot button:hover { background: var(--selected); }
.side nav button[aria-current] { color: var(--accent); background: var(--selected); font-weight: 650; }
.side nav button[aria-current] span:first-child { color: var(--accent); }
.side nav .rail-collapse { width: 100%; min-height: 22px; margin: 0; padding: 2px 3px; }
.home-locations { margin-inline-start: 18px; margin-bottom: 6px; }
.side nav .home-locations button { min-height: 27px; margin-bottom: 0; font-size: 12px; }
.side nav .home-locations svg { width: 15px; height: 15px; }
.side-foot { flex: none; margin-inline: var(--side-inset); padding-top: 8px; }
.side-foot button { gap: 6px; padding-inline: 8px 5px; }
.favorites {
  display: flex; flex-direction: column; flex: 1; min-height: 73px;
  padding: 12px var(--side-inset) 3px;
}
.favorites .rail-heading, .favorites-empty { flex: none; }
.favorites .rail-heading { margin-bottom: 4px; }
.favorites-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.favorites-empty {
  margin: 0 2px 1px; padding: 10px 7px; border: 1px dashed var(--line-strong); border-radius: 8px;
  color: var(--muted); font-size: 11px; text-align: center;
}
.favorites[data-drag-over] { background: var(--selected); outline: 1px dashed var(--focus); outline-offset: -1px; }
.favorites-list { flex: 1; min-height: 0; overflow: hidden auto; scrollbar-width: thin; padding: 2px; margin: -2px; }
.favorites .favorite-name, .side-foot .rail-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#content [data-file-drag-id] { -webkit-user-select: none; user-select: none; }
.keyhint { margin-left: auto; color: var(--muted); font-size: 10px; }
.settings-update-badge {
  margin-left: auto; flex: none; padding: 2px 6px; border-radius: 5px;
  color: var(--accent); background: var(--selected); font-size: 10px; font-weight: 650;
}
.workspace {
  --inspector-inset: 8px;
  position: relative; display: grid; grid-template-rows: var(--toolbar-height) minmax(0, 1fr) 36px;
  min-width: 0; min-height: 0; margin: var(--workspace-top) 8px 8px 0; border-radius: 10px;
  background: var(--workspace-surface);
}
.app:has(> .side[hidden]) > .workspace { margin-inline-start: 8px; }
.toolbar {
  display: flex; align-items: center; gap: 14px; padding: 0 26px; min-width: 0;
}
.history, .view-switch { display: flex; align-items: center; flex: none; }
.history { gap: 2px; }
.icon-button { width: 29px; height: 28px; padding: 0; border-radius: 6px; color: var(--secondary-ink); display: inline-grid; place-items: center; }
.icon-button:not(:disabled):hover { background: var(--hover); color: var(--accent); }
.icon-button[aria-pressed="true"] { background: var(--selected); color: var(--accent); box-shadow: 0 1px 2px rgb(var(--shadow-color) / 0.078); }
.icon-button svg { width: 15px; height: 15px; }
.breadcrumb { display: flex; align-items: center; gap: 6px; overflow: auto hidden; scrollbar-width: none; white-space: nowrap; min-width: 0; margin-right: auto; }
.breadcrumb > span[data-icon] { color: var(--muted); }
.breadcrumb .sep { color: var(--muted); font-size: 14px; }
.breadcrumb button, .breadcrumb .current { padding: 4px 3px; color: var(--muted); font-size: 12px; }
.breadcrumb .current { color: var(--ink); font-weight: 620; }
.breadcrumb button:hover { color: var(--accent); text-decoration: underline; }
.search {
  position: relative; flex: 0 1 306px; min-width: 170px; color: var(--muted);
}
.search-field {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 8px 0 10px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  transition: background .1s, border-color .1s;
}
.search-field:hover { background: var(--surface-raised); }
.search-field:focus-within { border-color: var(--focus); }
.search[data-expanded] { z-index: 11; }
.search[data-expanded] .search-field { border-radius: 9px 9px 0 0; border-color: var(--line-strong); border-bottom-color: var(--line); }
.search svg { width: 14px; height: 14px; }
.search input { flex: 1; width: 0; min-width: 0; padding: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 13px; }
.search input::placeholder { color: var(--muted); }
.search kbd { flex: none; color: var(--muted); font-family: inherit; font-size: 10px; }
#search-clear { display: grid; place-items: center; flex: 0 0 22px; height: 22px; padding: 0; border-radius: 50%; }
#search-clear:hover { background: var(--hover); color: var(--ink); }
#search-clear svg { width: 11px; height: 11px; stroke-width: 2; }
#search-scope {
  flex: none; min-height: 24px; padding: 3px 6px; border-radius: 5px; font-size: 11px; font-weight: 600; white-space: nowrap;
  background: var(--hover);
}
#search-scope[aria-pressed="true"] { color: var(--accent); background: var(--surface-tinted); }
#search-scope:hover { color: var(--accent); background: var(--selected); }
.search-popover {
  position: absolute; inset: 100% 0 auto; overflow: hidden; border: 1px solid var(--line-strong); border-top: 0;
  border-radius: 0 0 9px 9px; background: var(--surface); box-shadow: 0 12px 28px rgb(var(--shadow-color) / .16);
  animation: file-search-fade .15s ease-out both;
}
@keyframes file-search-fade { from { opacity: 0; } to { opacity: 1; } }
.search-result-list { position: relative; display: grid; gap: 1px; padding: 4px; max-height: min(385px, calc(100vh - 135px)); overflow: auto; scrollbar-width: thin; }
.search-glide {
  position: absolute; z-index: 0; inset: 0 4px auto; border-radius: 6px; background: var(--hover);
  transition: transform .16s ease-out, height .16s ease-out; pointer-events: none;
}
.search-result {
  display: flex; align-items: center; gap: 7px; position: relative; z-index: 1; width: 100%; min-width: 0;
  min-height: 38px; padding: 4px 7px; text-align: left; border-radius: 6px; color: var(--ink); cursor: default;
}
.search-result-icon { display: grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 6px; color: var(--accent); background: var(--surface-tinted); }
.search-result-icon svg { width: 13px; height: 13px; }
.search-result-text { min-width: 0; display: grid; flex: 1; gap: 1px; }
.search-result-name, .search-result-path { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-result-name { font-size: 13px; line-height: 1.25; }
.search-result-path { color: var(--muted); font-size: 11px; line-height: 1.3; }
.search-result-name mark { padding: 0; border-radius: 2px; color: var(--accent); background: var(--selected); font-weight: 680; }
.search-summary-match { flex: none; padding: 2px 4px; border-radius: 4px; color: var(--accent); background: var(--surface-tinted); font-size: 10px; white-space: nowrap; }
.search-empty { display: grid; justify-items: center; gap: 4px; padding: 21px 12px 22px; text-align: center; font-size: 12px; }
.search-empty strong { font-size: 13px; color: var(--ink); font-weight: 620; }
.search-empty-icon { width: 31px; height: 31px; margin-bottom: 3px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-subtle); }
.search-status { margin: 0; padding: 6px 9px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.35; }
.search-result[data-preview-selected] { background: var(--selected); }
.search-file-preview {
  position: fixed; z-index: 1; margin: 0; padding: 7px; min-width: 0;
  border: 1px solid var(--line-strong); border-radius: 11px;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 10px 24px rgb(var(--shadow-color) / .17); pointer-events: none;
}
.search-file-preview[data-placement="left"]::after,
.search-file-preview[data-placement="right"]::after {
  content: ""; position: absolute; top: var(--preview-arrow);
  width: 8px; height: 8px; background: var(--surface);
  transform: translateY(-50%) rotate(45deg);
}
.search-file-preview[data-placement="left"]::after {
  right: -5px; border-top: 1px solid var(--line-strong); border-right: 1px solid var(--line-strong);
}
.search-file-preview[data-placement="right"]::after {
  left: -5px; border-bottom: 1px solid var(--line-strong); border-left: 1px solid var(--line-strong);
}
.search-file-preview-art {
  --finder-folder-size: 54px;
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3;
  max-height: min(132px, 35vh); overflow: hidden; border-radius: 6px;
  background: var(--surface-subtle); color: var(--accent);
}
.search-file-preview-art svg { width: 32px; height: 32px; stroke-width: 1.4; }
.search-file-preview-art img { width: 100%; height: 100%; object-fit: contain; }
.search-file-preview-art img.search-preview-icon { max-width: 56px; max-height: 56px; }
.search-file-preview-name { margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
#content [data-revealed-item] { outline: 2px solid var(--accent); outline-offset: -2px; }
:root[data-file-search-reduced-motion] :is(.search-popover, .search-glide) { animation: none; transition: none; }
@media (prefers-reduced-motion: reduce) { .search-popover, .search-glide { animation: none; transition: none; } }
.view-switch { padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-subtle); }
.view-switch .icon-button { height: 25px; }
.content { --zoom: 1; overflow: auto; min-width: 0; padding: 25px 34px 27px; container-type: inline-size; }
.heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.heading > div { min-width: 0; }
h1 { margin: 0; font-size: 37px; line-height: 1.22; letter-spacing: -.055em; font-weight: 710; overflow-wrap: anywhere; }
.subtitle { margin: 7px 0 0; font-size: 12px; color: var(--muted); }
.folder-readme { max-inline-size: 76ch; margin: -5px 0 22px; padding-inline-start: 12px; border-inline-start: 2px solid var(--line-strong); }
.folder-readme-excerpt {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  margin: 0; font-size: 13px; line-height: 1.6; color: var(--secondary-ink);
  white-space: pre-line; overflow-wrap: anywhere; user-select: text;
}
.folder-readme-excerpt[data-empty] { color: var(--muted); }
.folder-readme-open {
  display: inline-flex; align-items: center; gap: 3px; min-height: 22px; margin-top: 3px;
  padding: 0; font-size: 12px; font-weight: 600; color: var(--accent);
}
.folder-readme-open:hover { text-decoration: underline; }
.folder-readme-open svg { width: 13px; height: 13px; }
.new-folder {
  display: flex; flex: none; align-items: center; gap: 6px; margin: 0 0 2px;
  padding: 7px 10px; min-height: 32px; background: var(--surface-tinted); border: 1px solid var(--line);
  border-radius: 8px; color: var(--accent); font-size: 12px; font-weight: 620;
}
.new-folder:hover { background: var(--selected); }
.new-folder svg { width: 15px; height: 15px; }
.favorite-folder { display: grid; place-items: center; width: 32px; padding: 0; }
.favorite-folder[aria-pressed="true"] { background: var(--selected); }
.favorite-folder[aria-pressed="true"] svg { fill: currentColor; }
.file-table { border: 1px solid var(--line-soft); background: var(--surface); border-radius: 11px; overflow: hidden; }
.file-header, .file-row { display: grid; grid-template-columns: minmax(130px, 1fr) 131px 70px 60px; align-items: center; gap: 10px; padding: 0 14px; min-width: 0; }
.file-header { min-height: 31px; background: var(--surface-raised); border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; font-weight: 550; }
.file-row { min-height: calc(41px * var(--zoom)); font-size: calc(12px * var(--zoom)); border-bottom: 1px solid var(--line-soft); outline-offset: -2px; cursor: default; }
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: var(--surface-subtle); }
.file-row[aria-selected="true"] { background: var(--selected); }
.name-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.name-cell span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.file-chip { --finder-folder-size: 25px; width: 27px; height: 25px; border-radius: 6px; color: var(--accent); background: var(--hover); display: inline-grid; place-items: center; flex: none; font: 8px ui-monospace, SFMono-Regular, monospace; font-weight: 700; }
.file-chip[data-kind="PDF"] { background: var(--danger-surface); color: var(--danger); }
.file-chip[data-kind="PNG"], .file-chip[data-kind="JPG"] { background: var(--info-surface); color: var(--info); }
.file-chip svg { width: 14px; height: 14px; }
.file-chip:has(.finder-folder-icon, .browser-image) { background: transparent; }
.file-chip .browser-image { max-width: 27px; max-height: 25px; border-radius: 3px; }
.file-meta { color: var(--muted); font-size: calc(11px * var(--zoom)); white-space: nowrap; }
.row-actions { display: flex; justify-content: end; gap: 1px; opacity: 0; }
.file-row:hover .row-actions, .file-row:focus-within .row-actions, .file-row[aria-selected="true"] .row-actions { opacity: 1; }
.row-actions button { width: 27px; height: 26px; }
.show-more { border-radius: 6px; color: var(--accent); padding: 7px 10px; margin: 5px 0; }
.show-more:hover { background: var(--selected); }
.media-strip > .show-more { flex: none; align-self: center; white-space: nowrap; }
.empty { display: grid; place-items: center; align-content: center; min-height: 240px; color: var(--muted); text-align: center; }
.empty svg { width: 31px; height: 31px; color: var(--accent); stroke-width: 1.15; }
.status { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 25px 0 34px; color: var(--muted); font-size: 11px; }
.status > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.status-controls, .zoom { display: flex; align-items: center; flex: none; gap: 2px; }
.status-controls { gap: 8px; }
.zoom { padding-left: 7px; }
.zoom .icon-button { width: 23px; height: 25px; }
.zoom input { width: 86px; margin: 0 2px; accent-color: var(--primary); }
.zoom-value { font-variant-numeric: tabular-nums; min-width: 43px; font-size: 11px; padding: 4px; border-radius: 5px; color: var(--accent); }
.zoom-value:hover { background: var(--selected); }
.grouping { min-width: 0; flex: none; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-subtle); font: inherit; font-size: 12px; color: var(--secondary-ink); }
.list-group { display: block; padding: 8px 14px; color: var(--muted); background: var(--surface-raised); border-bottom: 1px solid var(--line-soft); font-weight: 650; font-size: calc(11px * var(--zoom)); }
.toast { position: fixed; right: 19px; bottom: 44px; z-index: 12; max-width: min(550px, 80%); display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); box-shadow: 0 9px 32px rgb(var(--shadow-color) / 0.133); }
.toast-message { min-width: 0; overflow-wrap: anywhere; }
.toast-folder-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
@media (max-width: 930px) {
  .app { grid-template-columns: var(--locations-width, 159px) minmax(0, 1fr); }
  .toolbar { gap: 8px; padding-inline: 16px; }
  .content { padding-inline: 23px; }
  .status { padding-left: 23px; }
  .file-header, .file-row { grid-template-columns: minmax(120px, 1fr) 107px 62px 57px; }
}

.settings-dialog {
  width: min(752px, calc(100vw - 38px)); max-height: calc(100vh - 36px);
  padding: 0; border: 1px solid var(--line); border-radius: 19px;
  color: var(--ink); background: var(--surface-raised); box-shadow: 0 18px 90px rgb(var(--shadow-color) / 0.251);
  overflow: hidden;
}
.settings-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.settings-dialog::backdrop { background: rgb(var(--shadow-color) / 0.231); backdrop-filter: blur(4px); }
.settings-head, .settings-footer { display: flex; justify-content: space-between; align-items: center; padding: 15px 22px; }
.settings-head { align-items: flex-start; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.settings-head h2 { margin: 0; font-size: 25px; font-weight: 695; }
.settings-body {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: start; gap: 16px;
}
.appearance-field { margin: 0 0 14px; padding: 0; min-width: 0; border: 0; }
.appearance-field:last-child { margin-bottom: 0; }
.appearance-field legend { margin-bottom: 7px; color: var(--secondary-ink); font-size: 12px; font-weight: 580; }
.tone-options {
  display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 3px; padding: 3px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-tinted);
}
.tone-options label, .texture-choice { display: block; position: relative; cursor: pointer; min-width: 0; }
.tone-options input, .texture-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tone-options label span {
  display: block; padding: 5px 3px; border-radius: 6px; color: var(--secondary-ink);
  text-align: center; font-size: 12px; white-space: nowrap;
}
.tone-options input:checked + span { color: var(--accent); font-weight: 650; background: var(--surface); box-shadow: 0 1px 4px rgb(var(--shadow-color) / 0.125); }
.tone-options input:focus-visible + span, .texture-choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.texture-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.texture-choice {
  padding: 4px; border: 1px solid var(--line); border-radius: 8px;
  color: var(--secondary-ink); background: var(--surface); text-align: center;
}
.texture-choice:hover { border-color: var(--line-strong); }
.texture-choice:has(input:checked) { border-color: var(--focus); color: var(--accent); background: var(--selected); box-shadow: 0 0 0 1px color-mix(in srgb, var(--focus) 21%, transparent); }
.texture-swatch { display: block; width: 100%; height: 19px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgb(var(--shadow-color) / 0.071); }
.texture-name { display: block; padding: 3px 0 1px; font-size: 11px; white-space: nowrap; }
.appearance-switches { border-top: 1px solid var(--line); }
.appearance-switch {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  min-height: 35px; padding: 4px 0; color: var(--ink); border-bottom: 1px solid var(--line);
  font-size: 12px; font-weight: 535; cursor: pointer;
}
.appearance-switch small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 450; }
.appearance-switch input {
  appearance: none; width: 31px; height: 17px; margin: 0; border: 0; border-radius: 30px;
  position: relative; flex: none; background: var(--switch-off); cursor: pointer; transition: background .18s;
}
.appearance-switch input::before {
  content: ''; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px;
  border-radius: 100%; background: var(--surface); box-shadow: 0 1px 3px rgb(var(--shadow-color) / 0.188); transition: transform .18s;
}
.appearance-switch input:checked { background: var(--primary); }
.appearance-switch input:checked::before { transform: translateX(14px); }
.appearance-preview {
  display: flex; flex-direction: column;
}
#appearance-preview { display: grid; align-content: center; flex: 1; min-width: 0; min-height: 248px; }
#appearance-preview[aria-busy="true"]::before { content: '正在读取示例…'; text-align: center; color: var(--muted); font-size: 11px; }
#appearance-preview-hint, .preview-error { margin: 0; text-align: center; color: var(--muted); font-size: 11px; }
.settings-footer { gap: 12px; border-top: 1px solid var(--line); }
.settings-done, .settings-reset { padding: 6px 10px; min-height: 30px; border-radius: 7px; font-size: 12px; font-weight: 610; }
.settings-done { padding-inline: 16px; color: var(--on-primary); background: var(--primary); }
.settings-done:hover { background: var(--primary-hover); }
.settings-reset { display: flex; align-items: center; gap: 5px; color: var(--accent); }
.settings-reset:not(:disabled):hover { background: var(--selected); }
.settings-reset svg { width: 14px; height: 14px; }
.appearance-status { margin-left: auto; color: var(--danger); font-size: 11px; }

.browse-tools { display:flex; align-items:center; gap:4px; flex:none; }
.browse-tool {
  display:flex; align-items:center; gap:5px; min-height:29px; padding:3px 7px; border:1px solid var(--line);
  border-radius:7px; background:var(--surface-subtle); color:var(--secondary-ink); white-space:nowrap; font-size:11px;
}
.browse-tool:hover { background:var(--hover); color:var(--accent); }
.browse-tool svg { width:14px; height:14px; }
.tool-chevron { color:var(--muted); }
.file-header button { padding:4px 0; text-align:left; color:inherit; }
.file-header button:hover { color:var(--accent); }
.file-header [aria-sort="ascending"] button::after { content:" ↑"; }
.file-header [aria-sort="descending"] button::after { content:" ↓"; }
.browser-group + .browser-group { margin-top:20px; }
.browser-group-title { margin:0 0 14px; color:var(--secondary-ink); font-size:calc(13px * var(--zoom)); }
.browser-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(100%,calc(104px * var(--zoom))),1fr)); gap:9px; }
.browser-tile {
  display:flex; flex-direction:column; align-items:center; gap:4px; min-width:0; width:100%; min-height:calc(110px * var(--zoom));
  padding:6px 4px; border-radius:9px; text-align:center; cursor:default;
}
.browser-tile:hover,.column-item:hover { background:var(--hover); }
.browser-tile[aria-pressed="true"], .column-item[aria-pressed="true"], .column-item.column-path { background:var(--selected); color:var(--accent); }
.browser-tile-art {
  position:relative; display:grid; place-items:center; overflow:hidden; width:100%; height:calc(74px * var(--zoom)); min-width:0;
}
.browser-image,.browser-file-icon { max-width:calc(100% - 8px); max-height:calc(100% - 8px); width:auto; height:auto; object-fit:contain; }
.browser-tile-art .browser-image,.browser-tile-art .browser-file-icon {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
}
.browser-image { border-radius:4px; box-shadow:0 2px 8px rgb(var(--shadow-color) / 0.161),0 0 0 1px rgb(var(--shadow-color) / 0.071); }
.finder-folder-icon {
  display: inline-grid; place-items: center; flex: none; vertical-align: middle;
  width: var(--finder-folder-size, 16px); height: var(--finder-folder-size, 16px);
  color: var(--folder-color, var(--accent));
  background: var(--finder-folder-image, none) center / contain no-repeat;
}
[data-native-folder-icon] .finder-folder-icon > svg { display: none; }
[data-native-folder-icon] [data-custom-color] .finder-folder-icon {
  background-color: var(--folder-color);
  background-blend-mode: luminosity;
  mask: var(--finder-folder-image) center / contain no-repeat;
}
.finder-folder-icon > svg { width: 100%; height: 100%; }
.browser-folder-icon { --finder-folder-size: calc(74px * var(--zoom)); }
.browser-name { max-width:100%; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:max(10px,calc(12px * var(--zoom))); }
.browser-type { padding:6px 8px; border-radius:7px; color:var(--accent); background:var(--hover); font-size:10px; }
.column-view { display:flex; min-height:285px; max-height:calc(100vh - 210px); overflow:auto hidden; border:1px solid var(--line-soft); border-radius:10px; background:var(--surface); }
.browser-column { flex:0 0 calc(212px * var(--zoom)); min-width:150px; display:flex; flex-direction:column; }
.browser-column + .browser-column { border-left:1px solid var(--line-soft); }
.column-title { margin:0; padding:9px 10px; border-bottom:1px solid var(--line-soft); background:var(--surface-raised); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.column-items { flex:1; min-height:0; overflow:auto; padding:4px; }
.column-item {
  width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center;
  gap:7px; border-radius:5px; min-height:calc(29px * var(--zoom)); padding:4px 6px; text-align:left;
}
.column-icon { color:var(--folder-color,var(--accent)); }
.column-icon svg,.column-chevron svg { width:14px; height:14px; }
.column-chevron { justify-self:end; color:var(--muted); }
.column-group { padding:8px 7px 3px; color:var(--muted); font-size:10px; }
.column-empty,.column-return { margin:8px; color:var(--muted); font-size:11px; }
.column-return:hover { color:var(--accent); background:var(--selected); }
.media-view { display:grid; gap:12px; }
.media-stage {
  display:grid; grid-template-columns:1fr auto; grid-template-rows:auto auto auto; gap:6px;
  min-width:0; padding:12px 15px; border:1px solid var(--line); border-radius:11px; background:var(--surface-subtle);
}
.media-art { grid-column:1/-1; display:grid; place-items:center; overflow:hidden; min-width:0; height:clamp(150px,36vh,360px); }
.media-art .browser-folder-icon { --finder-folder-size: 127px; }
.media-caption, .media-details { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.media-caption { grid-column:1; font-weight:620; }
.media-details { grid-column:1; font-size:11px; color:var(--muted); }
.media-open { grid-column:2; grid-row:2/4; align-self:center; padding:7px 9px; border-radius:7px; color:var(--accent); background:var(--selected); }
.media-strip { display:flex; overflow:auto hidden; gap:12px; padding:2px 0 8px; }
.media-group { flex:none; }
.media-tiles { display:flex; }
.media-tiles .browser-tile { width:calc(92px * var(--zoom)); min-height:0; }
.media-tiles .browser-tile-art { height:calc(51px * var(--zoom)); }
.media-tiles .browser-folder-icon { --finder-folder-size: calc(48px * var(--zoom)); }
.folder-color-picker,.file-info-dialog,.trash-dialog { padding:14px; border:1px solid var(--line); border-radius:14px; color:var(--ink); background:var(--surface-raised); box-shadow:0 12px 42px rgb(var(--shadow-color) / 0.22); }
.folder-color-picker { position:fixed; inset:auto; margin:0; width:min(258px,calc(100vw - 20px)); max-height:calc(100vh - 20px); }
.folder-color-picker::backdrop { background:transparent; }
.swatch-preview { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:8px; }
.swatch-preview h2,.file-info-dialog h2 { margin:0; font-size:13px; }
#swatch-chip { width:34px; height:34px; border-radius:8px; box-shadow:inset 0 0 0 1px rgb(var(--shadow-color) / 0.157); transition:background .2s; }
#swatch-code { margin-top:2px; color:var(--muted); font:10px ui-monospace,monospace; }
.swatch-palette { display:grid; grid-template-columns:repeat(3,1fr); justify-items:center; gap:10px; margin:13px 7px 10px; }
.swatch { width:33px; height:33px; border-radius:50%; background:var(--swatch); transition:transform .12s,box-shadow .15s; }
.swatch:hover { transform:scale(1.09); }
.swatch[aria-checked="true"] { box-shadow:0 0 0 2px var(--surface),0 0 0 4px var(--swatch); }
.swatch:focus-visible { outline-color:var(--accent); outline-offset:4px; }
.swatch-reset { width:100%; padding:7px; color:var(--accent); border-radius:6px; }
.swatch-reset:not(:disabled):hover { background:var(--selected); }
.folder-cover-settings { margin-top:9px; padding-top:10px; border-top:1px solid var(--line); }
.folder-cover-header,.folder-cover-actions { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.folder-cover-header h3 { margin:0; font:inherit; font-weight:600; }
#folder-cover-mode { color:var(--muted); font-size:11px; }
.folder-cover-actions { flex-wrap:wrap; margin-top:7px; }
.folder-cover-actions button { display:inline-flex; align-items:center; gap:5px; min-height:28px; padding:4px 7px; border-radius:6px; }
.folder-cover-actions button:not(:disabled):hover { background:var(--selected); }
#folder-cover-select { color:var(--accent); background:var(--surface-tinted); }
#folder-cover-select svg { display:block; width:14px; height:14px; }
#folder-cover-status { margin:6px 0 0; color:var(--secondary-ink); font-size:11px; }
.file-info-dialog { width:min(460px,calc(100vw - 32px)); }
.file-info-dialog header { display:flex; align-items:center; justify-content:space-between; }
.file-info-dialog dl { display:grid; grid-template-columns:auto minmax(0,1fr); gap:7px 15px; margin:9px 0 0; }
.file-info-dialog dt { color:var(--muted); }
.file-info-dialog dd { margin:0; overflow-wrap:anywhere; user-select:text; }
.file-tag-list { display:flex; flex-wrap:wrap; gap:4px; min-width:0; }
.file-tag {
  display:inline-flex; align-items:center; gap:5px; max-width:100%; padding:3px 7px;
  border-radius:999px; color:var(--accent); background:var(--selected); font-size:11px; overflow-wrap:anywhere;
}
.file-tag-remove:not(:disabled):hover { background:var(--hover); }
.file-tag-remove svg { width:12px; height:12px; }
.context-file-tags { margin-top:3px; }
.context-file-tags .file-tag { color:var(--context-accent); background:var(--context-hover); }
.search-metadata-hint {
  display:inline-grid; place-items:center; flex:none; width:14px; height:14px;
  border:1px solid currentColor; border-radius:50%; color:var(--muted); font-size:10px; font-weight:650;
}
.context-item .search-metadata-hint { color:var(--context-muted); }
.search-metadata-hint:hover { color:var(--accent); }
.search-metadata-bubble {
  position:fixed; z-index:40; inset:0 auto auto 0; pointer-events:none;
  width:max-content; max-width:min(220px,calc(100vw - 20px)); margin:0; padding:8px 11px; overflow:visible;
  border:1px solid var(--line-strong); border-radius:9px; background:var(--surface-raised);
  box-shadow:0 6px 19px rgb(var(--shadow-color) / .18), inset 0 1px var(--shine);
  color:var(--ink); font:500 12px/1.45 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  text-align:start; white-space:normal;
}
.search-metadata-bubble::after {
  content:''; position:absolute; width:7px; height:7px; left:var(--hint-arrow-x,50%); bottom:-5px;
  border-right:1px solid var(--line-strong); border-bottom:1px solid var(--line-strong);
  background:var(--surface-raised); transform:translateX(-50%) rotate(45deg);
}
.search-metadata-bubble[data-below]::after { bottom:auto; top:-5px; transform:translateX(-50%) rotate(225deg); }
.file-tags-dialog { color:var(--ink); }
.file-tags-name { margin:1px 0 9px; color:var(--muted); overflow-wrap:anywhere; }
.file-tags-form { display:flex; align-items:center; gap:6px; margin-top:11px; }
.file-tags-form input {
  flex:1; min-width:0; padding:7px 9px; border:1px solid var(--line-strong);
  border-radius:7px; background:var(--surface); color:var(--ink);
}
#file-tags-ai { flex:none; }
.file-tags-status { margin:10px 0 0; color:var(--muted); font-size:12px; }
.file-tags-choices { margin-top:12px; }
.file-tags-choices h3 { margin:0 0 5px; font-size:11px; font-weight:600; color:var(--muted); }
.file-tags-options {
  align-content:start; gap:6px; padding:3px; max-height:min(210px, 34vh); overflow:auto;
}
.file-tag-option {
  padding:4px 9px; border:1px solid var(--line); background:var(--surface);
  color:var(--secondary-ink); font-size:12px; text-align:left;
}
.file-tag-option[aria-pressed="true"], .file-tag-new {
  background:var(--surface-tinted); color:var(--accent); border-color:var(--line-strong);
}
.file-tag-option:not(:disabled):hover { background:var(--selected); color:var(--accent); }
.file-tag-option svg { width:12px; height:12px; }
.file-tags-suggestion { margin-top:9px; padding:9px; border:1px solid var(--line); border-radius:8px; }
.file-tags-suggestion p { margin:4px 0; color:var(--muted); overflow-wrap:anywhere; }
.file-tag-suggestion-actions { display:flex; gap:6px; margin-top:6px; }
.trash-dialog { width:min(360px,calc(100vw - 32px)); padding:18px; }
.trash-dialog::backdrop { background:rgb(var(--shadow-color) / 0.20); }
.trash-dialog h2 { margin:0; font-size:14px; overflow-wrap:anywhere; }
.trash-dialog p { margin:8px 0 16px; color:var(--muted); }
.trash-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.trash-actions button { padding:6px 12px; min-height:30px; border-radius:7px; background:var(--surface-subtle); }
.trash-actions button:hover { background:var(--hover); }
.trash-actions button[value="trash"] { background:var(--danger); color:var(--surface); }
.trash-actions button[value="trash"]:hover { background:color-mix(in srgb,var(--danger) 88%,var(--ink)); }
@media (max-width: 900px) {
  .browse-tool { padding-inline:5px; }
  #sort-menu span:not([data-icon]),#group-menu span:not([data-icon]),.tool-chevron { display:none; }
}
@media(prefers-reduced-motion:reduce) { .swatch,#swatch-chip { transition:none; } }
.media-art { position:relative; }
.media-art .browser-image,.media-art .browser-file-icon { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); }

.context-layer {
  --context-accent: var(--accent);
  --context-muted: var(--muted);
  --context-line: rgb(var(--shadow-color) / 0.125);
  --context-hover: color-mix(in srgb, var(--accent) 9%, transparent);
  position: fixed; inset: 0; z-index: 30; pointer-events: none; user-select: none;
}
.context-panel {
  position: fixed; width: min(248px, calc(100vw - 16px)); max-height: calc(100vh - 16px);
  padding: 6px; border: 1px solid var(--context-line); border-radius: 14px;
  overflow: auto; overscroll-behavior: contain; pointer-events: auto;
  background: var(--surface-glass); color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  backdrop-filter: blur(14px) saturate(1.25);
  box-shadow: 0 18px 46px -16px rgb(var(--shadow-color) / 0.4), 0 4px 12px rgb(var(--shadow-color) / 0.078);
  transform-origin: top left;
  animation: context-appear .15s cubic-bezier(.22,.61,.36,1);
}
.context-panel:focus { outline: none; }
.context-flyout { width: min(176px, calc(100vw - 16px)); border-radius: 12px; }
.context-flyout-left { transform-origin: top right; }
.context-header { display: flex; align-items: center; gap: 10px; padding: 5px 8px 9px; }
.context-badge {
  --finder-folder-size: 24px;
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  border-radius: 9px; color: color-mix(in srgb, var(--context-accent) 75%, var(--ink));
  background: color-mix(in srgb, var(--context-accent) 15%, transparent);
}
.context-badge svg { width: 19px; height: 19px; }
.context-meta { display: grid; gap: 3px; min-width: 0; }
.context-meta strong, .context-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.context-meta strong { font-size: 13px; font-weight: 680; }
.context-meta small { font-size: 11px; color: var(--context-muted); }
.context-group + .context-group, .context-header + .context-group {
  margin-top: 3px; padding-top: 3px; border-top: 1px solid var(--context-line);
}
.context-label { padding: 4px 9px 2px; color: var(--context-muted); font-size: 10px; font-weight: 650; }
.context-item {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 29px;
  padding: 4px 8px; border-radius: 7px; font-size: 13px; text-align: left; white-space: nowrap;
}
.context-item:focus-visible { outline-offset: -2px; }
.context-item:enabled:is(:hover,:focus-visible,[aria-expanded="true"]) { background: var(--context-hover); }
.context-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.context-leading { display: grid; place-items: center; width: 16px; flex: none; color: var(--context-muted); }
.context-leading svg, .context-caret svg { width: 15px; height: 15px; }
.context-caret, .context-key { color: var(--context-muted); }
.context-key { font-size: 11px; }
.context-item[aria-checked="true"] .context-leading { color: var(--context-accent); }
.context-switch { position: relative; width: 28px; height: 16px; flex: none; border-radius: 10px; background: var(--switch-off); }
.context-switch::before {
  content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--surface); transition: transform .15s ease;
}
.context-item[aria-checked="true"] .context-switch { background: linear-gradient(105deg,var(--primary),var(--primary)); }
.context-item[aria-checked="true"] .context-switch::before { transform: translateX(12px); }
.context-danger, .context-danger .context-leading { color: var(--danger); }
.context-danger { --context-hover: color-mix(in srgb, var(--danger) 8%, transparent); }
.context-separator { height: 1px; margin: 4px 3px; background: var(--context-line); }
@keyframes context-appear {
  from { opacity: 0; transform: translateY(4px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.context-layer[data-reduced-motion] .context-panel { animation: none; }
.context-layer[data-reduced-motion] .context-switch::before { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .context-panel { animation: none; }
  .context-switch::before { transition: none; }
}

.heading-actions { display: flex; flex: none; gap: 7px; }
#draft-folder-readme { color: var(--on-primary); background: var(--primary); border-color: transparent; }
#draft-folder-readme:not(:disabled):hover { background: var(--primary-hover); }

#appearance-dialog {
  --settings-canvas: color-mix(in srgb, var(--canvas) 90%, var(--accent));
  height: min(748px, calc(100vh - 36px)); background: var(--settings-canvas);
}
:root[data-theme-mode="dark"] #appearance-dialog { --settings-canvas: var(--canvas); }
#appearance-dialog :is(.settings-head, .settings-footer) { background: var(--surface); }
#appearance-dialog .settings-head { padding: 17px 22px 0; }
#appearance-dialog .settings-head > div { min-width: 0; }
#appearance-dialog .settings-head h2 { font-size: 27px; line-height: 1.16; font-weight: 730; }
.settings-sections { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-top: 12px; }
.settings-sections button {
  min-height: 34px; padding: 4px 11px; border-bottom: 2px solid transparent; border-radius: 7px 7px 0 0;
  color: var(--muted); font-size: 13px; font-weight: 560;
}
.settings-sections button:hover { color: var(--ink); background: var(--surface-subtle); }
.settings-sections [aria-pressed="true"] {
  color: var(--accent); border-bottom-color: var(--accent); background: var(--surface-tinted); font-weight: 680;
}
.settings-sections button:focus-visible { outline-offset: -2px; }
.settings-pane { padding: 18px 22px 22px; min-width: 0; overflow: auto; }
.general-settings, .folder-access-settings, .summary-settings fieldset {
  display: grid; gap: 16px; align-items: start;
}
.general-settings {
  grid-template-columns: minmax(0, 1.53fr) minmax(0, 1fr);
  align-content: start;
}
.folder-access-settings, .summary-settings fieldset { grid-template-columns: repeat(2, minmax(0,1fr)); }
.folder-access-settings { align-items: stretch; align-content: start; }
.settings-card-stack { display: grid; gap: 16px; min-width: 0; margin: 0; }
.settings-card {
  min-width: 0; padding: 15px 16px;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, var(--surface)); border-radius: 12px;
  background: var(--surface); box-shadow: 0 2px 6px rgb(var(--shadow-color) / 0.07);
}
.settings-card-heading {
  display: flex; align-items: center; gap: 9px; margin: 0 0 12px; padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.settings-card-heading h3 { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.25; font-weight: 680; }
.settings-card-icon {
  display: grid; place-items: center; flex: none; width: 32px; height: 32px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  color: var(--accent); background: linear-gradient(150deg,var(--selected),var(--surface-subtle));
  box-shadow: inset 0 1px var(--shine);
}
.settings-card-icon svg { width: 17px; height: 17px; }
.settings-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.about-settings { display: grid; align-content: start; gap: 14px; }
.about-overview { display: grid; gap: 15px; padding: 18px; }
.about-product { display: flex; align-items: center; gap: 14px; }
.about-product img { flex: none; }
.about-product h3 { margin: 0 0 5px; font-size: 22px; font-weight: 680; }
.about-product p { color: var(--secondary-ink); }
.about-settings .about-update-error { margin-top: 7px; color: var(--danger); }
.about-update-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
#about-check-updates { flex: none; white-space: nowrap; }
.about-update-checked { color: var(--muted); font-size: 11px; }
.about-history { padding: 0; }
.about-history summary {
  display: flex; align-items: center; min-height: 46px; padding-inline: 16px;
  cursor: pointer; list-style: none; color: var(--ink); font-size: 14px; font-weight: 680;
}
.about-history summary::-webkit-details-marker { display: none; }
.about-history summary::after {
  content: ""; width: 7px; height: 7px; margin-left: auto;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .16s ease;
}
.about-history[open] summary::after { transform: rotate(225deg); }
.about-history summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.about-history > :not(summary) { margin-inline: 16px; }
.about-history p { margin-block: 0 14px; }
.about-release-history { padding-bottom: 16px; }
.about-release-history { display: grid; }
.about-release + .about-release { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.about-release-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 9px; }
.about-release-heading h4 { margin: 0; font-size: 13px; font-weight: 650; }
.about-release-current { padding: 2px 6px; border-radius: 5px; color: var(--primary); background: var(--surface-subtle); font-size: 10px; }
.about-release-date { margin-left: auto; color: var(--muted); font-size: 11px; }
.about-release-notes { color: var(--secondary-ink); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.about-release-notes p { color: inherit; line-height: inherit; }
.about-release-notes > :first-child { margin-top: 0; }
.about-release-notes > :last-child { margin-bottom: 0; }
.about-release-plain { white-space: pre-wrap; }
.side-foot .license-sidebar {
  min-height: 32px; margin: 2px 0; padding-inline: 8px 5px; border-radius: 8px;
  color: var(--secondary-ink); white-space: nowrap;
}
.side-foot .license-sidebar > span:first-child { color: var(--muted); }
.license-sidebar strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 560; }
.license-sidebar[data-urgent] strong { color: var(--danger); }
.license-settings { display: grid; align-content: start; gap: 16px; }
.license-status-card { padding: 18px; background: linear-gradient(115deg,color-mix(in srgb,var(--accent) 8%,var(--surface)),var(--surface)); }
.license-status-top { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.license-status-copy { flex: 1; min-width: 0; }
.license-eyebrow { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; }
.license-status-copy h3 { margin: 0; font-size: 20px; font-weight: 690; }
.license-status-badge,.license-plan-recommended { flex: none; border-radius: 6px; padding: 4px 7px; color: var(--accent); background: var(--surface-tinted); font-size: 11px; font-weight: 650; }
.license-status-card progress { display: block; width: 100%; height: 5px; margin-top: 13px; accent-color: var(--primary); }
.license-status-card #license-expiry { margin-top: 8px; }
.license-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 12px; }
.license-section-heading h3 { margin: 0; font-size: 14px; font-weight: 680; }
.license-section-heading > span { color: var(--muted); font-size: 11px; }
.license-plans { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.license-plan { min-width: 0; display: flex; flex-direction: column; align-items: start; gap: 12px; padding: 16px 13px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.license-plan-featured { border-color: color-mix(in srgb,var(--accent) 53%,var(--line)); background: linear-gradient(145deg,color-mix(in srgb,var(--accent) 19%,var(--surface)),color-mix(in srgb,var(--accent) 8%,var(--surface))); box-shadow: 0 4px 16px rgb(var(--shadow-color) / .07); }
.license-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 5px; width: 100%; min-height: 24px; }
.license-plan-head h4 { margin: 0; font-size: 14px; font-weight: 650; }
.license-plan-recommended { padding: 3px 6px; font-size: 10px; background: var(--primary); color: var(--on-primary); }
.license-plan-price { display: flex; align-items: baseline; gap: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.license-plan-price > span { font-size: 17px; font-weight: 600; }
.license-plan-price strong { font-size: 34px; letter-spacing: -.055em; line-height: 1; }
.license-plan-price small { margin-left: 3px; color: var(--muted); font-size: 10px; }
.license-plan .license-plan-metaphor { color: var(--secondary-ink); font-size: 12px; }
.license-plan .license-plan-description { margin: 0; min-height: 36px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.license-plan-duration { margin-top: auto; color: var(--secondary-ink); font-size: 11px; }
.license-plan .settings-done { width: 100%; margin-top: 2px; }
.license-plan-footnote { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.license-ai-card { display: flex; align-items: center; gap: 10px; }
.license-ai-card > div { flex: 1; min-width: 0; }
.license-ai-card h3 { margin: 0 0 5px; font-size: 12px; }
.license-ai-card .settings-reset { flex: none; white-space: nowrap; }
.license-activation-form { display: flex; gap: 8px; margin-bottom: 9px; }
.license-activation-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; background: var(--canvas); color: var(--ink); font: inherit; font-size: 12px; }
.license-activation-form input:disabled { opacity: .65; }
.license-activation-form button { flex: none; }
.license-activation-status:empty { display: none; }
.license-activation-status { margin-top: 8px !important; color: var(--danger) !important; }
.license-help { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.license-help summary { cursor: pointer; color: var(--secondary-ink); }
.license-help p { margin-top: 8px; }
@media (max-width: 660px) { .license-plans { grid-template-columns: 1fr; } .license-plan { padding: 16px; } .license-plan .license-plan-description { min-height: 0; } .license-ai-card { flex-wrap: wrap; } }
.settings-switch-row { margin: 0; padding: 0; min-height: 25px; border: 0; }
.settings-card .settings-row-help { margin: 3px 0 0; }
.settings-switch-row input:disabled { opacity: .55; cursor: default; }
.settings-pane .appearance-switch input::before { background: var(--on-primary); }
.startup-folder-line {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px;
  padding: 5px 5px 5px 9px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-subtle);
}
.startup-path { display: flex; align-items: center; min-width: 95px; flex: 1; gap: 6px; color: var(--secondary-ink); font-size: 11px; }
.startup-path svg { width: 14px; height: 14px; color: var(--accent); }
#startup-folder-path { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#startup-folder-path[data-placeholder] { color: var(--muted); }
.settings-card-button {
  justify-content: center; flex: none; padding-inline: 9px;
  border: 1px solid var(--line); background: var(--surface-raised); white-space: nowrap;
}
.startup-folder-line .settings-card-button { min-height: 27px; padding-block: 3px; font-size: 11px; }
.settings-card #island-settings-status { margin-top: 7px; color: var(--danger); }
#island-settings-status:empty { display: none; }
.settings-desktop-preview { position: static; align-self: stretch; gap: 11px; }
.island-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
#settings-island-state {
  padding: 2px 7px; border: 1px solid var(--line); border-radius: 20px;
  color: var(--muted); background: var(--surface); font-size: 10px; white-space: nowrap;
}
.settings-desktop-preview:has([data-enabled]) #settings-island-state {
  color: var(--accent); background: var(--selected); border-color: var(--line-strong);
}
#settings-island-preview {
  flex: 1; position: relative; isolation: isolate; min-height: 153px; overflow: hidden;
  border: 1px solid color-mix(in srgb,var(--accent) 28%,var(--line));
  border-radius: 10px;
  background: radial-gradient(ellipse at 78% 91%,var(--surface-tinted),transparent 64%),
    radial-gradient(ellipse at 10% 65%,color-mix(in srgb,var(--wave-2) 54%,var(--surface)),transparent 68%),
    linear-gradient(150deg,color-mix(in srgb,var(--accent) 51%,var(--surface)),
      color-mix(in srgb,var(--wave-0) 42%,var(--surface)));
  box-shadow: inset 0 0 0 1px var(--shine);
}
#settings-island-preview::before {
  content: ''; position: absolute; inset: 56% -16% -47% -19%; transform: rotate(-16deg); z-index: -1;
  border-top: 1px solid var(--shine); border-radius: 48% 43% 0 0;
  background: linear-gradient(124deg,color-mix(in srgb,var(--surface) 73%,transparent),transparent 90%);
}
.settings-preview-menubar {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  height: 20px; padding-inline: 8px; color: var(--muted); background: var(--surface-glass);
}
.settings-preview-menubar svg { width: 10px; height: 10px; }
.settings-preview-menubar-items { display: flex; gap: 3px; }
.settings-preview-menubar-items i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.settings-preview-notch {
  position: absolute; top: 0; left: 50%; z-index: 3; transform: translateX(-50%);
  width: 45px; height: 17px; border-radius: 0 0 6px 6px; background: #211e28;
}
.settings-preview-tray {
  position: absolute; top: 7px; left: 50%; z-index: 2; display: flex; justify-content: center; align-items: flex-end; gap: 5px;
  width: 106px; height: 48px; padding-bottom: 8px; opacity: 0; transform: translateX(-50%) scale(.55,.45);
  transform-origin: top center; transition: transform 220ms cubic-bezier(.2,.8,.27,1),opacity 160ms;
  border: 1px solid var(--shine); border-radius: 7px 7px 13px 13px;
  color: var(--ink); background: color-mix(in srgb,var(--surface-raised) 83%,transparent);
  box-shadow: 0 6px 15px rgb(var(--shadow-color) / .21); font-size: 10px; font-weight: 650;
}
.settings-preview-tray svg { width: 12px; height: 12px; color: var(--accent); }
#settings-island-preview[data-enabled] .settings-preview-tray { opacity: 1; transform: translateX(-50%) scale(1); }
.settings-preview-base {
  position: absolute; bottom: 9px; left: 50%; transform: translateX(-50%); width: 44px; height: 4px;
  border-radius: 8px; background: color-mix(in srgb,var(--surface) 79%,transparent);
}
.folder-access-settings .settings-card { display: flex; flex-direction: column; min-height: 198px; align-items: start; gap: 9px; }
.folder-access-settings .settings-card-heading { margin-bottom: 1px; }
.folder-access-settings .settings-card-button { margin-top: auto; }
.settings-permission-path {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 5px 7px;
  border: 1px solid var(--line); border-radius: 7px; color: var(--accent); background: var(--surface-tinted);
  font-size: 11px; font-weight: 570;
}
.settings-permission-path svg { width: 10px; height: 10px; }
.summary-settings fieldset { border: 0; padding: 0; margin: 0; min-width: 0; align-items: stretch; }
.summary-settings label, .settings-field-label { font-size: 12px; font-weight: 650; }
.summary-settings label:where(:not(.appearance-switch,.settings-control-row)) { display: block; }
.summary-settings :is(select,textarea,input:not([role="switch"])) {
  color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 9px; min-height: 32px; font: inherit; font-size: 13px; font-weight: 450;
}
.summary-settings :is(input:not([role="switch"]),textarea) { display: block; width: 100%; margin-top: 5px; }
.summary-settings textarea { line-height: 1.52; resize: vertical; }
.summary-settings textarea::placeholder { color: var(--muted); }
.summary-settings .settings-control-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; min-height: 32px;
}
.settings-control-row > label { flex: none; }
.settings-control-row .ai-select-trigger {
  max-width: min(53%, 265px); justify-content: space-between; min-height: 32px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised);
}
.settings-control-row .ai-select-trigger:hover { border-color: var(--line-strong); background: var(--surface-subtle); }
.summary-settings input.ai-rounds-input { width: 65px; margin-top: 0; flex: none; }
.summary-settings .settings-card p { margin-top: 6px; }
.ai-settings-wide { grid-column: 1 / -1; }
.ai-model-settings-head { flex-wrap: wrap; }
.ai-model-source {
  display: inline-grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; margin-left: auto; padding: 3px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface-subtle);
}
.ai-model-source button, .ai-provider-choice {
  min-width: 0; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 650;
}
.ai-model-source button { min-height: 28px; padding: 3px 14px; border: 1px solid transparent; border-radius: 6px; }
.ai-model-source button:hover { color: var(--ink); }
.ai-model-source button[aria-pressed="true"] { color: var(--accent); border-color: var(--line); background: var(--surface-raised); }
.ai-free-settings {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface-subtle);
}
.ai-free-settings > span { flex: none; color: var(--accent); }
.ai-free-settings > span svg { display: block; width: 17px; height: 17px; }
.ai-free-settings strong { color: var(--ink); font-size: 12px; font-weight: 650; }
.ai-free-settings p { line-height: 1.55; }
.ai-provider-presets { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-top: 12px; }
.ai-provider-choice {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 63px; padding: 6px 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised);
}
.ai-provider-choice:hover { color: var(--ink); border-color: var(--line-strong); }
.ai-provider-choice[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--surface-tinted); }
.ai-provider-logo {
  display: grid; flex: none; place-items: center; width: 27px; height: 27px;
  border-radius: 6px; color: var(--accent); background: var(--surface-subtle);
}
.ai-provider-logo:has(img) { background: #fff; }
.ai-provider-choice[data-preset="kimi"] .ai-provider-logo { background: #16161a; }
.ai-provider-logo :is(img,svg) { display: block; width: 20px; height: 20px; }
#ai-provider-configurations { margin-top: 10px; }
#ai-provider-configuration { max-width: 65%; }
.ai-providers { margin-top: 10px; }
.ai-provider { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); }
.ai-provider-heading { display: flex; min-height: 30px; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ai-provider h4 { margin: 0; font-size: 13px; font-weight: 670; }
.ai-provider-heading a { min-height: 28px; text-decoration: none; }
.ai-provider h4.ai-provider-model-heading { margin: 12px 0 7px; padding-top: 10px; border-top: 1px solid var(--line); }
.ai-provider-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 8px; margin-bottom: 9px; }
.ai-model-rows { display: grid; gap: 6px; margin-bottom: 8px; }
.ai-model-row {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto auto; align-items: end; gap: 7px;
  padding: 8px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface-subtle);
}
.summary-settings :is(.ai-provider-fields, .ai-model-row) label { margin: 0; min-width: 0; }
.ai-model-row > button { grid-column: 4; min-height: 32px; white-space: nowrap; }
.ai-field-label { display: block; font-size: 12px; font-weight: 650; }
.ai-model-row .ai-select-trigger { margin-top: 5px; }
#ai-default-model-field { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.summary-settings #ai-default-model-help { margin-top: 2px; font-size: 11px; }
.summary-settings .settings-note {
  display: flex; align-items: flex-start; gap: 5px; margin-top: 8px; font-size: 11px;
}
.settings-note svg { width: 13px; height: 13px; color: var(--accent); }
#summary-model-prompt { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
#summary-mode-help, #assistant-rounds-help, #summary-prompt-help { font-size: 11px; }
.summary-settings #assistant-shortcut-status { color: var(--muted); margin: 6px 0; }
.ai-provider-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ai-provider-actions [data-provider-action="remove"] { margin-left: auto; }
.ai-provider-actions [data-provider-action="remove"], .ai-model-row > button { color: var(--danger); }
@media (max-width: 650px) {
  .settings-body, .general-settings, .folder-access-settings, .summary-settings fieldset { grid-template-columns: minmax(0,1fr); }
  .folder-access-settings .settings-card { min-height: 0; }
  #settings-island-preview { min-height: 150px; }
}
@media (max-width: 535px) {
  .ai-provider-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-model-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .ai-model-row > button { grid-column: 2; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) { .settings-preview-tray { transition: none; } }
:root[data-file-search-reduced-motion] .settings-preview-tray { transition: none; }

.summary-dialog { width: min(660px, calc(100vw - 38px)); }
.summary-dialog .settings-head h2 { font-size: 21px; }
#summary-target { margin: 5px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; }
.summary-body { min-height: 100px; overflow: auto; padding: 14px 22px 20px; }
#summary-progress { margin: 0 0 9px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.summary-block { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.summary-block h3 { margin: 0 0 6px; font-size: 13px; overflow-wrap: anywhere; }
.summary-point-text { margin: 0; font-size: 13px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
.summary-sources { margin-top: 3px; }
.summary-source, .summary-evidence summary { color: var(--accent); font-size: 11px; cursor: pointer; overflow-wrap: anywhere; }
.summary-source { padding: 2px 4px; border-radius: 4px; }
.summary-source:hover { background: var(--selected); }
.summary-evidence blockquote {
  margin: 4px 0 2px; padding: 3px 7px; border-left: 2px solid var(--line);
  color: var(--muted); font-size: 12px; overflow-wrap: anywhere; user-select: text;
}

.summary-queue { position: relative; }
#summary-queue-button[aria-expanded="true"] { background: var(--selected); color: var(--accent); }
.summary-queue progress, .summary-queue-panel progress { display: block; width: 100%; height: 5px; accent-color: var(--primary); }
.summary-queue #summary-queue-rail-progress { width: calc(100% - 22px); margin: 0 11px 5px; }
.summary-queue-panel {
  --queue-left: max(12px, calc(var(--locations-width, 193px) - 7px));
  position: fixed; z-index: 10; bottom: 94px; left: var(--queue-left);
  width: min(365px, calc(100vw - var(--queue-left) - 12px)); padding: 11px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-raised);
  box-shadow: 0 12px 42px rgb(var(--shadow-color) / 0.22);
}
.summary-queue-panel header, .summary-queue-panel footer, .summary-queue-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.summary-queue-panel h2 { margin: 0; font-size: 14px; }
.summary-queue-panel p { margin: 5px 0 7px; color: var(--muted); font-size: 11px; }
#summary-queue-list { max-height: min(260px, calc(100vh - 220px)); overflow: auto; list-style: none; padding: 0; margin: 6px 0 0; }
.summary-queue-row { padding: 5px 0; border-bottom: 1px solid var(--line); }
.summary-queue-row:last-child { border-bottom: 0; }
.summary-queue-info { min-width: 0; display: grid; gap: 3px; }
.summary-queue-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.summary-queue-state { color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.summary-queue-action { min-height: 24px; padding: 3px 7px; border-radius: 6px; font-size: 11px; color: var(--accent); }
.summary-queue-action:hover { background: var(--selected); }

.workspace { grid-template-columns: minmax(0, 1fr) var(--inspector-width, 0px); }
.workspace > .toolbar, .workspace > .status { grid-column: 1 / -1; }
.workspace > .content {
  grid-row: 2; grid-column: 1; padding-bottom: 72px; scroll-padding-bottom: 72px;
}
.workspace > .status { grid-row: 3; }
.content:focus { outline: none; }
#history-swipe {
  position: absolute; grid-area: 2 / 1 / 3 / 2; inset: 0; z-index: 6;
  pointer-events: none; overflow: hidden;
}
.history-swipe-cue {
  position: absolute; inset-block-start: 50%; inset-inline-start: 0; translate: 0 -50%;
  display: flex; align-items: center; gap: 7px; max-width: calc(100% - 12px);
  opacity: 0; transform: translateX(-12px); transition: opacity .12s, transform .16s ease-out;
}
#history-swipe[data-direction="forward"] .history-swipe-cue {
  inset-inline: auto 0; flex-direction: row-reverse; transform: translateX(12px);
}
#history-swipe[data-visible] .history-swipe-cue { opacity: 1; transform: translateX(0); }
.history-swipe-drop {
  position: relative; flex: none; display: grid; place-items: center;
  width: var(--history-drop-width, 22px); height: 108px; color: var(--muted);
}
.history-swipe-drop .history-swipe-shape {
  position: absolute; inset: 0; width: 100%; height: 100%; stroke: none; fill: var(--window-chrome);
  filter: drop-shadow(0 2px 4px rgb(var(--shadow-color) / .12));
}
#history-swipe[data-direction="forward"] .history-swipe-shape { transform: scaleX(-1); }
#history-swipe-arrow { position: relative; }
.history-swipe-caption {
  display: grid; gap: 2px; min-width: 0; max-width: 216px; padding: 7px 10px;
  border-radius: 8px; background: var(--workspace-surface); color: var(--ink);
  box-shadow: 0 2px 11px rgb(var(--shadow-color) / .14); white-space: nowrap;
}
.history-swipe-caption strong { overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 12px; }
.history-swipe-caption span { color: var(--muted); font-size: 11px; }
#history-swipe[data-ready] :is(.history-swipe-drop, .history-swipe-caption span) { color: var(--accent); }
:root[data-file-search-reduced-motion] .history-swipe-cue { transition: none; }
@media (prefers-reduced-motion: reduce) { .history-swipe-cue { transition: none; } }
.file-inspector {
  grid-row: 2; grid-column: 2; min-width: 0; min-height: 0; display: flex;
  flex-direction: column; margin-inline-end: var(--inspector-inset); border-radius: 8px;
  background: var(--inspector-surface); overflow: clip;
}
.file-inspector > * { min-width: 190px; }
[data-sidebar-sliding] {
  position: absolute; inset-block: 0; width: var(--sidebar-slide-width); z-index: 7;
}
.app > .side[data-sidebar-sliding] { grid-area: 1 / 1 / 2 / -1; inset-inline-start: 0; }
.workspace > .file-inspector[data-sidebar-sliding] {
  grid-area: 2 / 1 / 3 / -1; inset-inline-end: 0;
  width: calc(var(--sidebar-slide-width) - var(--inspector-inset));
}
.inspector-head { padding: 16px 15px; }
.inspector-head h2, .inspector-summary h3, .inspector-tags h3 { margin: 0; font-size: 13px; font-weight: 650; }
.inspector-empty {
  display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center;
  gap: 7px; padding: 18px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.55;
}
.inspector-empty p { margin: 0; }
#inspector-empty-title { font-size: 13px; color: var(--ink); font-weight: 650; }
.inspector-empty-icon { width: 44px; height: 44px; margin-bottom: 5px; border-radius: 13px; color: var(--accent); background: var(--selected); }
.inspector-empty-icon svg { width: 23px; height: 23px; stroke-width: 1.4; }
.inspector-content { padding: 16px 15px; overflow: auto; overflow-x: hidden; }
.inspector-file { display: flex; align-items: flex-start; gap: 8px; color: var(--accent); }
.inspector-file h3 { margin: 0; min-width: 0; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
#inspector-metadata { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 11px; margin: 14px 0; font-size: 11px; }
#inspector-metadata dt { color: var(--muted); }
#inspector-metadata dd { margin: 0; overflow-wrap: anywhere; user-select: text; }
.inspector-summary, .inspector-tags { padding-top: 13px; border-top: 1px solid var(--line-soft); }
.inspector-tags { padding-bottom:9px; }
.inspector-tags .file-tag-list:not(:empty) { margin-top:7px; }
#inspector-edit-tags { padding-left:0; }
#inspector-summary-text { margin: 8px 0; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }
#inspector-summary-text:not([data-state="ready"]) { color: var(--muted); }
#inspector-generate { padding-left: 0; }
@container (max-width: 425px) {
  .heading { align-items: flex-start; flex-wrap: wrap; gap: 9px; }
  .heading h1 { font-size: 29px; }
  :is(.file-header, .file-row) {
    grid-template-columns: minmax(0, 1fr) 76px 49px 54px;
    gap: 5px; padding-inline: 8px;
  }
}
.panel-resizer {
  position: relative; z-index: 9; width: 32px; min-width: 0; justify-self: start;
  margin-inline-start: -16px; cursor: ew-resize; touch-action: none; -webkit-tap-highlight-color: transparent;
  user-select: none;
}
#locations-resizer { grid-row: 1; grid-column: 2; margin-block: calc(var(--workspace-top) + var(--toolbar-height)) 44px; }
#inspector-resizer { grid-row: 2; grid-column: 2; margin-block: 8px; }
.panel-resizer svg {
  position: absolute; left: -24px; top: 50%; transform: translateY(-50%); width: 80px; height: 160px;
  overflow: visible; pointer-events: none; opacity: 0;
}
.panel-resizer:focus-visible { outline: none; }
.panel-resizer:focus-visible::after {
  content: ''; position: absolute; left: -8px; top: 50%; transform: translateY(-50%);
  width: 48px; height: 132px; border: 2px solid var(--focus); border-radius: 18px; pointer-events: none;
}

.appearance-swatches { display: grid; gap: 6px; }
.theme-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.effect-swatches { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.appearance-swatches .texture-swatch { height: 23px; }
@media (min-width: 651px) {
  .settings-body > .appearance-preview { position: sticky; top: 0; align-self: start; }
}
.effect-preview-track {
  position: relative; isolation: isolate; height: 52px; overflow: hidden; margin: 14px 0 5px;
  border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(var(--surface), var(--surface-subtle));
}
.effect-preview-track::before {
  content: ''; position: absolute; inset: 14px 12px;
  background: repeating-linear-gradient(to bottom, var(--line-strong) 0 1px, transparent 1px 8px);
}
#effect-preview-wave {
  position: absolute; inset: -5px -14%;
  background: radial-gradient(ellipse 62% 138% at 50% 105%, transparent 58%,
    color-mix(in srgb, var(--wave-0) 64%, transparent) 64%,
    color-mix(in srgb, var(--wave-1) 74%, transparent) 70%,
    color-mix(in srgb, var(--wave-2) 67%, transparent) 77%,
    color-mix(in srgb, var(--wave-3) 50%, transparent) 84%, transparent 92%);
  opacity: .72;
}
#preview-effect { align-self: center; }
@media (max-height: 660px) {
  #appearance-preview { min-height: 198px; }
}
