/* styles/tokens.css */
:root {
  color-scheme: dark;
  --bg: #1b1b1b;
  --surface: #242424;
  --surface-2: #2e2e2e;
  --line: #333;
  --line-2: #3a3a3a;
  --text: #e8e8e8;
  --text-2: #cfcfcf;
  --muted: #9a9a9a;
  --muted-2: #8f8f8f;
  --accent: #8ab4f8;
  --accent-bg: #12304a;
  --accent-text: #cfe1ff;
  --accent-ink: #0b1a33;
  --prod-bg: #3d2410;
  --prod-fg: #f6a85f;
  --test-bg: #12304a;
  --test-fg: #8ab4f8;
  --stage-bg: #2e2246;
  --stage-fg: #c6a9ff;
  --local-bg: #143122;
  --local-fg: #6fd99a;
  --gh-bg: #2a2a2a;
  --gh-fg: #cfcfcf;
  --tag-teal-bg: #0f3b3a;
  --tag-teal-fg: #5fd4c4;
  --tag-pink-bg: #45192e;
  --tag-pink-fg: #f49ac1;
  --tag-yellow-bg: #3a3010;
  --tag-yellow-fg: #f2cc60;
  --tag-red-bg: #4a1a17;
  --tag-red-fg: #ff8a80;
  --tag-cyan-bg: #0e3440;
  --tag-cyan-fg: #67d5f0;
  --tag-grey-bg: #333333;
  --tag-grey-fg: #b8b8b8;
  --red-fg: #ff8a80;
  --yellow-fg: #f2cc60;
  --warn-bg: #36260c;
  --warn-fg: #ffc46b;
  --warn-line: #6e4b14;
  --pri-high: var(--red-fg);
  --pri-med: var(--yellow-fg);
  --pri-low: var(--muted-2);
  --mono:
    ui-monospace,
    "JetBrains Mono",
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  --sans:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
}

/* styles/base.css */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: calc(13px * var(--fs, 1));
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
input,
textarea,
select {
  font: inherit;
  color: var(--text);
}
option {
  background: var(--surface);
  color: var(--text);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.mono {
  font-family: var(--mono);
}
.muted {
  color: var(--muted);
}

/* styles/ui/button.css */
.btn {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover {
  background: var(--surface-2);
}
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  font-weight: 600;
}
.btn.primary:hover {
  filter: brightness(1.05);
}
.btn.sm {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: calc(12px * var(--fs, 1));
}
.btn.icon {
  min-width: 44px;
  padding: 0;
  justify-content: center;
}
.btn.icon svg,
.btn svg {
  width: 16px;
  height: 16px;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.ghost:hover {
  background: var(--surface-2);
}

/* styles/ui/search.css */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0 14px;
  min-height: 44px;
}
.search svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: 0 0 auto;
}
.search input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: calc(14px * var(--fs, 1));
}
.search input::placeholder {
  color: var(--muted);
}
.kbd {
  font-family: var(--mono);
  font-size: calc(11px * var(--fs, 1));
  color: #bdbdbd;
  background: #2b2b2b;
  border: 1px solid #3d3d3d;
  border-radius: 4px;
  padding: 1px 6px;
}

/* styles/ui/chip.css */
.chip {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  font-size: calc(12px * var(--fs, 1));
}
.chip:hover {
  background: var(--surface-2);
}
.chip.on {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent-text);
  font-weight: 500;
}

/* styles/ui/pickers.css */
.pri-pick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.pri-pick button {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--muted);
  font-size: calc(12px * var(--fs, 1));
}
.pri-pick button:hover {
  background: var(--surface-2);
}
.pri-pick button.on {
  border-color: var(--pc, var(--accent));
  background: var(--surface-2);
  color: var(--text);
  font-weight: 500;
}
.pri-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--pc);
  flex: 0 0 auto;
}
.pri-high {
  --pc: var(--pri-high);
}
.pri-med {
  --pc: var(--pri-med);
}
.pri-low {
  --pc: var(--pri-low);
}
.note-in {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  min-height: 52px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: calc(13px * var(--fs, 1));
  line-height: 1.45;
}
.note-in:focus {
  border-color: var(--accent);
  outline: 0;
}
.due-pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.due-pick[hidden] {
  display: none;
}
.due-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 6px;
  align-items: center;
}
.due-row[hidden],
.due-sum[hidden],
.due-add-time[hidden],
.due-quick[hidden] {
  display: none;
}
.due-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.due-q {
  min-height: 28px;
  padding: 0 10px;
  background: var(--surface);
}
.due-q[aria-pressed=true] {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent-text);
  font-weight: 600;
}
.due-pick-date {
  border-style: dashed;
  background: transparent;
}
.due-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-height: 28px;
}
.due-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: calc(12px * var(--fs, 1));
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.due-now svg {
  width: 12px;
  height: 12px;
}
.due-now.overdue {
  color: var(--tag-red-fg);
  background: var(--tag-red-bg);
}
.due-now.today {
  color: var(--tag-yellow-fg);
  background: var(--tag-yellow-bg);
}
.due-now.soon {
  color: var(--accent-text);
  background: var(--accent-bg);
}
.due-add-time {
  min-height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--accent);
  font-size: calc(12px * var(--fs, 1));
}
.due-add-time:hover {
  background: var(--surface-2);
}
.due-sum .due-cal {
  margin-left: auto;
}
.due-in {
  min-height: 32px;
  width: 100%;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: calc(13px * var(--fs, 1));
  font-variant-numeric: tabular-nums;
}
.due-in:focus {
  border-color: var(--accent);
  outline: 0;
}
.due-clr {
  min-width: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
}
.due-clr:hover {
  background: var(--surface-2);
  color: var(--text);
}
.due-cal {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-2);
  cursor: pointer;
}
.due-cal input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}
.due-cal.off {
  color: var(--muted-2);
  cursor: default;
}

/* styles/ui/badge.css */
.badge {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: calc(10px * var(--fs, 1));
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 3px;
}
.badge.PROD {
  background: var(--prod-bg);
  color: var(--prod-fg);
}
.badge.TEST {
  background: var(--test-bg);
  color: var(--test-fg);
}
.badge.STAGE {
  background: var(--stage-bg);
  color: var(--stage-fg);
}
.badge.LOCAL {
  background: var(--local-bg);
  color: var(--local-fg);
}
.badge.GH {
  background: var(--gh-bg);
  color: var(--gh-fg);
}
[data-tag=teal] {
  --tag-bg: var(--tag-teal-bg);
  --tag-fg: var(--tag-teal-fg);
}
[data-tag=pink] {
  --tag-bg: var(--tag-pink-bg);
  --tag-fg: var(--tag-pink-fg);
}
[data-tag=yellow] {
  --tag-bg: var(--tag-yellow-bg);
  --tag-fg: var(--tag-yellow-fg);
}
[data-tag=red] {
  --tag-bg: var(--tag-red-bg);
  --tag-fg: var(--tag-red-fg);
}
[data-tag=cyan] {
  --tag-bg: var(--tag-cyan-bg);
  --tag-fg: var(--tag-cyan-fg);
}
[data-tag=grey] {
  --tag-bg: var(--tag-grey-bg);
  --tag-fg: var(--tag-grey-fg);
}
.badge.tag {
  background: var(--tag-bg);
  color: var(--tag-fg);
}

/* styles/ui/row.css */
.row {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px 9px 8px;
  border-radius: 8px;
  min-height: 44px;
  color: var(--text);
}
.row:hover,
.row.focus {
  background: var(--surface-2);
}
.row.hidden {
  display: none;
}
.row .grip {
  color: #555;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  cursor: grab;
}
.row .ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-family: var(--mono);
  font-size: calc(9px * var(--fs, 1));
  font-weight: 600;
  background: var(--gh-bg);
  color: var(--text);
  overflow: hidden;
}
.row .ico img {
  width: 16px;
  height: 16px;
  display: block;
}
.row .txt {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.row .ttl {
  font-size: calc(13px * var(--fs, 1));
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row .url {
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted-2);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.row .crumb {
  font-size: calc(10px * var(--fs, 1));
  color: var(--muted);
  margin-top: 3px;
}
.row .more {
  position: absolute;
  right: 6px;
  top: 6px;
  min-width: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
}
.row .more svg {
  width: 14px;
  height: 14px;
}
.row:hover .more,
.row.focus .more,
.row .more:focus-visible {
  display: inline-flex;
}
.row:hover .badge,
.row.focus .badge {
  margin-right: 28px;
}
mark {
  background: #4d3f12;
  color: #ffe08a;
  border-radius: 2px;
  padding: 0 1px;
}

/* styles/ui/menu.css */
.menu {
  position: fixed;
  z-index: 50;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}
.menu button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
}
.menu button:hover {
  background: var(--surface-2);
  color: var(--text);
}
.menu button.danger {
  color: #ff9a8a;
}
.menu button svg {
  width: 14px;
  height: 14px;
}
.menu hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 4px 0;
}
.menu .swatches {
  display: flex;
  gap: 4px;
  padding: 4px 6px;
}
.menu .sw {
  min-height: 28px;
  width: 28px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--c, transparent);
  justify-content: center;
}
.menu .sw.none {
  border-color: var(--line-2);
  background: transparent;
}
.menu .sw:hover {
  background: var(--c, var(--surface-2));
  filter: brightness(1.1);
}
.menu .sw.on {
  border-color: var(--text);
}
[data-color=red] {
  --c: var(--red-fg);
}
[data-color=orange] {
  --c: var(--prod-fg);
}
[data-color=yellow] {
  --c: var(--yellow-fg);
}
[data-color=green] {
  --c: var(--local-fg);
}
[data-color=blue] {
  --c: var(--test-fg);
}
[data-color=purple] {
  --c: var(--stage-fg);
}

/* styles/ui/edit.css */
.edit {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.edit label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: calc(10px * var(--fs, 1));
  color: var(--muted);
}
.edit input {
  background: var(--bg);
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  padding: 5px 8px;
  width: 100%;
  font-size: calc(13px * var(--fs, 1));
}
.edit input.url-in {
  font-family: var(--mono);
  font-size: calc(11px * var(--fs, 1));
  color: var(--text-2);
}
.edit .actions {
  display: flex;
  gap: 6px;
}
.edit-pri {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: calc(10px * var(--fs, 1));
  color: var(--muted);
}
.edit-pri .pri-pick {
  max-width: 360px;
}
.edit-due {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: calc(10px * var(--fs, 1));
  color: var(--muted);
}
.edit-due .due-pick {
  max-width: 360px;
}
.edit .due-cal {
  flex-direction: row;
  gap: 8px;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-2);
}
.edit .due-cal.off {
  color: var(--muted-2);
}
.edit .due-cal input {
  width: 16px;
  padding: 0;
}
.edit .due-in {
  min-height: 30px;
  padding: 0 8px;
}

/* styles/ui/toast.css */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: calc(13px * var(--fs, 1));
  z-index: 60;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  gap: 12px;
  align-items: center;
}
.toast button {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-weight: 600;
}

/* styles/ui/motion.css */
@media (prefers-reduced-motion: no-preference) {
  .row,
  .chip,
  .btn {
    transition: background-color 0.12s;
  }
}

/* styles/ui/seg.css */
.sel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: calc(12px * var(--fs, 1));
}
.sel b {
  color: var(--text);
  font-weight: 500;
}
.sel select {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-weight: 500;
  font-size: calc(12px * var(--fs, 1));
  padding: 0;
}
.seg {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}
.seg button {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: calc(12px * var(--fs, 1));
  font-weight: 500;
}
.seg button.on {
  background: var(--accent-bg);
  color: var(--accent-text);
}

/* styles/views/shell.css */
body {
  min-height: 100vh;
  display: flex;
}

/* styles/views/sidebar.css */
.side-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--side-w, 264px);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.side-img {
  position: absolute;
  inset: calc(var(--side-blur, 0px) * -3);
  background: var(--side-img, none) center / cover no-repeat;
  filter: blur(var(--side-blur, 0px));
}
.side-shade {
  position: absolute;
  inset: 0;
  background: var(--side-color, var(--bg));
  opacity: var(--side-dark, 1);
}
.side {
  --fs: var(--fs-side, 1);
  container: side / inline-size;
  z-index: 1;
  flex: 0 0 var(--side-w, 264px);
  width: var(--side-w, 264px);
  border-right: 1px solid #2c2c2c;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 14px;
}
.logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  flex: 0 0 auto;
}
.brand h1 {
  margin: 0;
  font-size: calc(15px * var(--fs, 1));
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search.sm {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.search.sm input {
  font-size: calc(12px * var(--fs, 1));
}
#searchIcon svg,
#gearIcon svg,
#plusIcon svg,
#catIcon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.btn.icon.sm {
  min-width: 32px;
  min-height: 32px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 8px 0 6px;
  border-radius: 8px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-2);
  position: relative;
  cursor: pointer;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
}
.nav:hover {
  background: #2a2a2a;
}
.nav.on {
  background: var(--accent-bg);
  color: var(--accent-text);
  font-weight: 500;
}
.nav[draggable=true] {
  cursor: grab;
}
.nav[draggable=true]:active {
  cursor: grabbing;
}
.nav .grip {
  color: #555;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.nav .t {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav .n {
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted);
  font-family: var(--mono);
}
.nav.dragging {
  opacity: 0.45;
  outline: 1px dashed var(--accent);
}
.nav.drop-before::before,
.nav.drop-after::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav.drop-before::before {
  top: -2px;
}
.nav.drop-after::after {
  bottom: -2px;
}
.nav.drop-into {
  outline: 2px solid var(--accent);
  background: var(--accent-bg);
}
.nav.unsorted {
  margin-top: 8px;
  border-top: 1px solid #2c2c2c;
  border-radius: 0 0 8px 8px;
  padding-top: 2px;
}
.newFolder {
  justify-content: flex-start;
  margin-top: 6px;
  color: var(--muted);
}
.newFolder.newCat {
  margin-top: 0;
}
.side-foot {
  margin-top: auto;
  padding: 12px 6px 0;
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: calc(12px * var(--fs, 1));
}
.side-foot > span {
  flex: 1 1 auto;
}
.side-foot .btn {
  min-height: 28px;
  min-width: 28px;
}
.side-foot .btn > span {
  display: flex;
}
.cat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
  border-radius: 6px;
  color: var(--text-2);
}
.cat:first-child {
  margin-top: 0;
}
.cat[draggable=true] {
  cursor: grab;
}
.cat .cat-toggle,
.cat .cat-label {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  border-radius: 6px;
  font-size: calc(12px * var(--fs, 1));
  font-weight: 600;
  cursor: inherit;
}
.cat .cat-label {
  padding-left: 24px;
  color: var(--muted);
}
.cat .cat-toggle:hover {
  background: #242424;
}
.cat[data-color] .cat-toggle {
  color: var(--c);
}
.cat .t {
  flex: 0 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat .n {
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 400;
}
.cat.drop-before::before,
.cat.drop-after::after,
.grp.part.drop-before::before,
.grp.part.drop-after::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.cat.drop-before::before,
.grp.part.drop-before::before {
  top: -2px;
}
.cat.drop-after::after,
.grp.part.drop-after::after {
  bottom: -2px;
}
.cat.dragging,
.grp.part.dragging {
  opacity: 0.45;
}
.cat .cat-toggle svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transform: rotate(90deg);
}
.cat.closed .cat-toggle svg {
  transform: none;
}
.cat.has-on {
  color: var(--accent-text);
}
.cat .more {
  min-width: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
}
.cat .more svg {
  width: 14px;
  height: 14px;
}
.cat:hover .more,
.cat:focus-within .more {
  display: inline-flex;
}
.cat .more:hover {
  background: #2a2a2a;
}
.cat.drop-into {
  outline: 2px solid var(--accent);
  background: var(--accent-bg);
  color: var(--accent-text);
}
.cat-empty {
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted);
  padding: 4px 8px 8px 30px;
}
@media (prefers-reduced-motion: no-preference) {
  .cat .cat-toggle svg {
    transition: transform 0.12s;
  }
}
.search-row {
  display: flex;
  margin-bottom: 4px;
}
.search-row .search.sm {
  flex: 1 1 auto;
  min-width: 0;
  margin-bottom: 0;
}
.view-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  padding: 2px;
  margin-bottom: 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface);
}
.view-tabs::before,
.view-tabs::after {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: calc(100% / 3 - 0.5px);
  width: 1px;
  background: var(--line-2);
  pointer-events: none;
}
.view-tabs::after {
  left: calc(200% / 3 - 0.5px);
}
.view-tabs:has(.on)::before,
.view-tabs:has(.on)::after {
  opacity: 0;
}
.view-tab {
  min-width: 0;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: calc(12px * var(--fs, 1));
  font-weight: 500;
  white-space: nowrap;
}
.view-tab:hover {
  background: var(--surface-2);
  color: var(--text);
}
.view-tab svg {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
}
@container side (width < 268px) {
  .view-tab {
    gap: 0;
  }
  .view-tab > span:not(.lbl) {
    display: none;
  }
}
@container side (width < 202px) {
  .view-tab > span:not(.lbl) {
    display: block;
  }
  .view-tab .lbl {
    display: none;
  }
}
.view-tab.on {
  background: var(--accent-bg);
  color: var(--accent-text);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.view-tab.drop-into {
  outline: 2px solid var(--accent);
  background: var(--accent-bg);
  color: var(--accent-text);
}
.home-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.home-fab[hidden] {
  display: none;
}
.home-fab:hover {
  filter: brightness(1.08);
}
.home-fab svg {
  width: 22px;
  height: 22px;
  display: block;
}
.resizer {
  flex: 0 0 6px;
  width: 6px;
  margin-left: -6px;
  height: 100vh;
  position: sticky;
  top: 0;
  cursor: col-resize;
  z-index: 5;
  touch-action: none;
}
.resizer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 2px;
  width: 2px;
  border-radius: 2px;
  background: transparent;
  transition: background-color 0.12s;
}
.resizer:hover::after,
.resizer:focus-visible::after,
body.resizing .resizer::after {
  background: var(--accent);
}
.resizer:focus-visible {
  outline: none;
}
body.resizing {
  cursor: col-resize;
  user-select: none;
}

/* styles/views/home.css */
.page.home-mode {
  padding: 0;
  gap: 0;
}
.home {
  position: relative;
  height: 100vh;
  overflow: clip;
  background: var(--home-bg, #185a63);
  contain: strict;
  container-type: inline-size;
}
.home-bg {
  position: absolute;
  inset: calc(var(--blur, 2px) * -3);
  background-size: cover;
  background-position: center;
  opacity: var(--img-op, 1);
  filter: blur(var(--blur, 2px));
}
.home-shade {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--dark, 0.65);
}
.home-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  overflow-y: auto;
}
.home-clock {
  font-weight: 200;
  color: #fff;
  line-height: 1;
  font-size: min(var(--clock, 170px), 17cqi);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}
.home-date {
  color: #fff;
  font-size: max(15px, calc(min(var(--clock, 170px), 17cqi) * 0.15));
  opacity: 0.92;
  margin-bottom: var(--tiles-gap, 80px);
  min-height: 1em;
}
.home-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--tile, 56px));
  justify-content: center;
  gap: 22px 20px;
  width: 100%;
  max-width: calc(var(--per-row, 12) * var(--tile, 56px) + (var(--per-row, 12) - 1) * 20px);
}
.home .tile {
  width: var(--tile, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: calc(11px * var(--fs, 1));
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 12px;
}
.home .tile .ic {
  width: var(--tile, 56px);
  height: var(--tile, 56px);
  border-radius: calc(var(--tile, 56px) * 0.25);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition: transform 0.12s;
  color: #222;
  font-family: var(--mono);
  font-weight: 600;
  font-size: calc(var(--tile, 56px) * 0.28);
}
.home .tile .ic img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}
.home .tile .ic.custom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home .tile .lbl {
  max-width: calc(var(--tile, 56px) + 18px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.home.no-labels .tile .lbl {
  display: none;
}
.home .tile:hover .ic,
.home .tile:focus-visible .ic {
  transform: translateY(-2px);
}
img.wait {
  opacity: 0;
}
.home .tile.dragging {
  opacity: 0.4;
}
.home-empty {
  margin: 14px 0 0;
  max-width: 420px;
  text-align: center;
  color: #fff;
  opacity: 0.85;
  font-size: calc(13px * var(--fs, 1));
  line-height: 1.5;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.home .tile.drop-before .ic {
  box-shadow: -8px 0 0 -3px var(--accent), 0 4px 14px rgba(0, 0, 0, 0.35);
}
.home-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.home-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 2px 0 4px;
  border-radius: 6px;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-2);
  cursor: grab;
}
.home-link:hover {
  background: var(--surface-2);
}
.home-link.dragging {
  opacity: 0.45;
}
.home-link .grip {
  color: var(--muted-2);
  display: flex;
}
.home-link .grip svg {
  width: 12px;
  height: 12px;
}
.home-link .mini {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: #fff;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--mono);
  font-size: calc(9px * var(--fs, 1));
  font-weight: 600;
}
.home-link .mini img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.home-link .nm {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-link .x {
  min-width: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-link .x svg {
  width: 12px;
  height: 12px;
}
.home-link .x:hover {
  background: var(--surface-2);
  color: var(--red-fg);
}
.home-link.drop-before::before,
.home-link.drop-after::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.home-link.drop-before::before {
  top: -1px;
}
.home-link.drop-after::after {
  bottom: -1px;
}
.home-add {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
}
.home-add input {
  min-width: 0;
  min-height: 28px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0 8px;
  font-size: calc(12px * var(--fs, 1));
}
@media (prefers-reduced-motion: reduce) {
  .home .tile .ic {
    transition: none;
  }
}

/* styles/views/folder/page.css */
.page {
  --fs: var(--fs-page, 1);
  flex: 1 1 auto;
  min-width: 0;
  padding: 16px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.head h2 {
  margin: 0;
  font-size: calc(18px * var(--fs, 1));
  font-weight: 600;
  cursor: text;
}
.head h2 input {
  background: var(--bg);
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 600;
  font-size: calc(16px * var(--fs, 1));
}
.head .cnt {
  font-size: calc(12px * var(--fs, 1));
}
.head .btn.add {
  margin-left: auto;
  min-height: 36px;
  border-radius: 8px;
  font-size: calc(12px * var(--fs, 1));
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar .search {
  flex: 1 1 260px;
  max-width: 420px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
}
.toolbar .search input {
  font-size: calc(12px * var(--fs, 1));
}
.toolbar .note {
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted);
  width: 100%;
  margin-top: -4px;
}

/* styles/views/folder/list.css */
.list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.grp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 10px 6px;
  font-size: calc(11px * var(--fs, 1));
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--mono);
  cursor: pointer;
  border: 0;
  background: transparent;
  width: 100%;
}
.grp .line {
  flex: 1 1 auto;
  height: 1px;
  background: #2c2c2c;
}
.grp.PROD {
  color: var(--prod-fg);
}
.grp.TEST {
  color: var(--test-fg);
}
.grp.STAGE {
  color: var(--stage-fg);
}
.grp.LOCAL {
  color: var(--local-fg);
}
.grp.tag {
  color: var(--tag-fg);
}
.grp.NONE {
  color: var(--muted);
}
.grp .chev {
  width: 12px;
  height: 12px;
  transition: transform 0.12s;
  transform: rotate(90deg);
}
.grp.closed .chev {
  transform: none;
}
.grp.part {
  position: relative;
  cursor: default;
  color: var(--text-2);
  padding-right: 4px;
  border-radius: 6px;
}
.grp.part[draggable=true] {
  cursor: grab;
}
.grp.part[data-color] {
  color: var(--c);
}
.grp.part .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex: 0 0 auto;
}
.grp.part.NONE {
  color: var(--muted);
}
.grp.part .part-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 4px;
  margin-left: -4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  border-radius: 6px;
}
.grp.part .part-toggle:hover {
  color: var(--text);
}
.grp.part .more {
  min-width: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.grp.part .more svg {
  width: 14px;
  height: 14px;
}
.grp.part .slot {
  min-width: 28px;
}
.grp.part:hover .more,
.grp.part .more:focus-visible {
  opacity: 1;
}
.grp.part .more:hover {
  background: var(--surface-2);
}
.grp.part.drop-into,
.grp.prig.drop-into {
  outline: 2px solid var(--accent);
  background: var(--accent-bg);
  color: var(--accent-text);
}
.grp.prig {
  color: var(--pc, var(--muted));
  border-radius: 6px;
}
.pri-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.pri-filter .chip {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.row .pri-bar {
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--pc);
}
.row .due-col {
  flex: 0 0 auto;
  min-width: 200px;
  display: flex;
  justify-content: flex-end;
}
.row .due-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  white-space: nowrap;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--sans);
  font-size: calc(11px * var(--fs, 1));
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.row .due-chip svg {
  width: 12px;
  height: 12px;
}
.row .due-chip.overdue {
  color: var(--tag-red-fg);
  background: var(--tag-red-bg);
  border-color: transparent;
}
.row .due-chip.today {
  color: var(--tag-yellow-fg);
  background: var(--tag-yellow-bg);
  border-color: transparent;
}
.row .due-chip.soon {
  color: var(--accent-text);
  background: var(--accent-bg);
  border-color: transparent;
}
.row .note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: calc(12px * var(--fs, 1));
  line-height: 1.45;
  color: var(--text-2);
  white-space: pre-wrap;
  word-break: break-word;
}
.row .note svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: var(--pri-med);
}
.newPart {
  margin-top: 8px;
  color: var(--muted);
}
.row .url,
.row .ttl {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-all;
}
.row.url-mode .txt {
  flex-direction: column-reverse;
}
.row.url-mode .url {
  font-size: calc(13px * var(--fs, 1));
  color: var(--text);
  margin-top: 0;
  line-height: 1.5;
}
.row.url-mode .ttl {
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted-2);
  font-weight: 400;
  margin-top: 0;
  font-family: var(--sans);
}
.row .ttl:empty,
.row .url:empty {
  display: none;
}
.row .crumb {
  font-family: var(--sans);
}
.row.dragging {
  opacity: 0.4;
}
.row.drop-before::before,
.row.drop-after::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.row.drop-before::before {
  top: -2px;
}
.row.drop-after::after {
  bottom: -2px;
}
.row .acts {
  display: inline-flex;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: 4px;
  margin-top: -2px;
}
.row .act {
  min-width: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.45;
}
.row .act svg {
  width: 14px;
  height: 14px;
}
.row:hover .act,
.row .act:focus-visible {
  opacity: 1;
}
.row .act:hover {
  background: var(--surface-2);
  color: var(--text);
}
.row .act.del:hover,
.row .act.del:focus-visible {
  color: var(--red-fg);
}
.row .more {
  position: static;
  transform: none;
  display: inline-flex;
}
.row .badge {
  margin-right: 0;
}
.row:hover .badge,
.row.focus .badge {
  margin-right: 0;
}
.head .btn.ghost.sm.icon {
  min-width: 32px;
  min-height: 32px;
}
.empty {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed #3d3d3d;
  border-radius: 10px;
}
.subnote {
  padding: 8px 10px;
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted);
}

/* styles/views/schedule.css */
.grp.dueg {
  color: var(--muted);
}
.grp.dueg.overdue {
  color: var(--tag-red-fg);
}
.grp.dueg.today {
  color: var(--tag-yellow-fg);
}
.grp.dueg.soon {
  color: var(--accent);
}

/* styles/views/folder/matrix.css */
.matrix {
  overflow-x: auto;
  border: 1px solid #2c2c2c;
  border-radius: 12px;
  background: #1f1f1f;
}
.matrix table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  font-size: calc(13px * var(--fs, 1));
}
.matrix th {
  text-align: left;
  font-size: calc(11px * var(--fs, 1));
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #1b1b1b;
  white-space: nowrap;
}
.matrix th.env {
  text-align: center;
}
.matrix th .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.matrix td {
  padding: 0;
  border-bottom: 1px solid #2a2a2a;
  vertical-align: middle;
}
.matrix tr:hover td {
  background: #232323;
}
.matrix .res {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 240px;
}
.matrix .res b {
  font-weight: 500;
  font-family: var(--mono);
  font-size: calc(12px * var(--fs, 1));
  word-break: break-all;
}
.matrix .cell {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 8px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: calc(12px * var(--fs, 1));
  font-weight: 500;
  font-family: var(--mono);
  border: 1px solid transparent;
  max-width: 220px;
}
.pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pill.PROD {
  background: var(--prod-bg);
  color: var(--prod-fg);
  border-color: #5a361a;
}
.pill.TEST {
  background: var(--test-bg);
  color: var(--test-fg);
  border-color: #1e4a70;
}
.pill.STAGE {
  background: var(--stage-bg);
  color: var(--stage-fg);
  border-color: #45336a;
}
.pill.LOCAL {
  background: var(--local-bg);
  color: var(--local-fg);
  border-color: #1f4a33;
}
.pill.tag {
  background: var(--tag-bg);
  color: var(--tag-fg);
  border-color: color-mix(in srgb, var(--tag-fg) 35%, transparent);
}
.matrix th .dot[data-tag] {
  background: var(--tag-fg);
}
.pill.derive {
  color: #6f6f6f;
  border: 1px dashed #3d3d3d;
  background: transparent;
}
.pill.derive:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.pill.none {
  color: #4a4a4a;
  border: 0;
}
.matrix-note {
  font-size: calc(12px * var(--fs, 1));
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* styles/views/narrow.css */
@media (max-width: 760px) {
  body {
    flex-direction: column;
  }
  .side {
    position: static;
    height: auto;
    width: auto;
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 1px solid #2c2c2c;
    background: var(--side-color, var(--bg));
  }
  .side-backdrop {
    display: none;
  }
  .page {
    padding: 14px;
  }
  .row {
    flex-wrap: wrap;
  }
  .row .txt {
    flex-basis: 0;
  }
  .row .due-col {
    order: 1;
    flex-basis: 100%;
    min-width: 0;
    justify-content: flex-start;
    padding-left: 52px;
  }
}

/* styles/views/settings/index.css */
#settingsBtn.on {
  background: var(--accent-bg);
  color: var(--accent-text);
}
.page.settings-mode {
  padding: 0;
  gap: 0;
}
.set-view {
  height: 100vh;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.set-top {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 28px 0;
}
.set-top h2 {
  margin: 0;
  font-size: calc(20px * var(--fs, 1));
  font-weight: 600;
  outline: none;
}
.set-status {
  font-size: calc(12px * var(--fs, 1));
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.set-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--local-fg);
}
.set-done {
  margin-left: auto;
  min-height: 36px;
  border-radius: 8px;
}
.set-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 4px;
  padding: 12px 28px 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.set-tab {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.set-tab:hover {
  color: var(--text);
}
.set-tab.on {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.set-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 28px 96px;
}
.set-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 24px;
  align-items: start;
  max-width: 1180px;
}
.set-grid.one {
  grid-template-columns: minmax(0, 760px);
}
.set-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.set-aside {
  position: sticky;
  top: 0;
}
.set-label {
  margin: 0;
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.set-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  min-width: 0;
}
.set-card h3 {
  margin: 0 0 2px;
  font-size: calc(14px * var(--fs, 1));
  font-weight: 600;
}
.set-card .sub {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: calc(12px * var(--fs, 1));
}
.set-card .sub[hidden] {
  display: none;
}
.set-card #lookNote {
  margin: 10px 0 0;
}
.set-f {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 36px;
  color: var(--text-2);
}
.set-f + .set-f {
  margin-top: 4px;
}
.set-f .seg,
.set-f input[type=color],
.set-f .switch {
  justify-self: start;
}
.set-rng {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.set-rng input {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  accent-color: var(--accent);
}
.set-rng input:disabled {
  opacity: 0.4;
}
.set-rng output {
  flex: 0 0 44px;
  text-align: right;
  font-family: var(--mono);
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted);
}
.set-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.set-card input[type=color] {
  width: 44px;
  height: 28px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: transparent;
}
.set-card select,
.set-card textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: calc(13px * var(--fs, 1));
}
.set-card textarea {
  font-family: var(--mono);
  font-size: calc(12px * var(--fs, 1));
  resize: vertical;
}
.switch {
  appearance: none;
  position: relative;
  width: 36px;
  height: 20px;
  margin: 0;
  border-radius: 10px;
  background: var(--line-2);
  cursor: pointer;
  transition: background-color 0.12s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  transition: transform 0.12s;
}
.switch:checked {
  background: var(--accent);
}
.switch:checked::after {
  transform: translateX(16px);
  background: var(--accent-ink);
}
@media (prefers-reduced-motion: reduce) {
  .switch,
  .switch::after {
    transition: none;
  }
}

/* styles/views/settings/appearance.css */
.theme-sws {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.theme-sw {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}
.theme-sw.on,
.theme-custom.on {
  border-color: var(--text);
}
.theme-custom {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: block;
  background:
    conic-gradient(
      #ff8a80,
      #f2cc60,
      #6fd99a,
      #5fd4c4,
      #8ab4f8,
      #c6a9ff,
      #f49ac1,
      #ff8a80);
  cursor: pointer;
}
.theme-custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}
.theme-custom:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* styles/views/settings/duplicates.css */
.dup-body {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.dup-body > .set-f {
  grid-template-columns: max-content auto;
}
.dup-list {
  display: grid;
  gap: 8px;
  justify-self: stretch;
}
.dup-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.dup-url {
  font-family: var(--mono);
  font-size: calc(12px * var(--fs, 1));
  word-break: break-all;
  margin-bottom: 4px;
}
.dup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 32px;
}
.dup-where {
  display: grid;
  min-width: 0;
}
.dup-alt {
  font-family: var(--mono);
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted);
  word-break: break-all;
}
.dup-date,
.dup-empty {
  color: var(--muted);
  font-size: calc(12px * var(--fs, 1));
}
.dup-empty {
  margin: 0;
}

/* styles/views/settings/shortcuts.css */
.keys-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.keys-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  border-top: 1px solid var(--line);
}
.keys-row:first-child {
  border-top: 0;
}
.keys-what {
  color: var(--text-2);
  font-size: calc(13px * var(--fs, 1));
}
.keys {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.keys-combo {
  display: inline-flex;
  gap: 3px;
}
.keys-or,
.keys-none {
  color: var(--muted);
  font-size: calc(12px * var(--fs, 1));
}
.keys-actions {
  margin-top: 12px;
}

/* styles/views/settings/home-page.css */
.home-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.home-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 2px 0 6px;
  border-radius: 6px;
  font-size: calc(13px * var(--fs, 1));
  color: var(--text-2);
  cursor: grab;
}
.home-link:hover {
  background: var(--surface-2);
}
.home-link.dragging {
  opacity: 0.45;
}
.home-link .grip {
  color: var(--muted-2);
  display: flex;
}
.home-link .grip svg {
  width: 12px;
  height: 12px;
}
.home-link .mini {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 5px;
  background: #fff;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--mono);
  font-size: calc(9px * var(--fs, 1));
  font-weight: 600;
}
.home-link .mini img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.home-link .nm {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-link .x {
  min-width: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-link .x svg {
  width: 12px;
  height: 12px;
}
.home-link .x:hover {
  background: var(--surface-2);
  color: var(--red-fg);
}
.home-link.drop-before::before,
.home-link.drop-after::after {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.home-link.drop-before::before {
  top: -1px;
}
.home-link.drop-after::after {
  bottom: -1px;
}
.home-add {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 10px;
}
.home-add input {
  min-width: 0;
  min-height: 32px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0 10px;
  font-size: calc(12px * var(--fs, 1));
}
.home-preview {
  position: relative;
  height: 240px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--home-bg, #185a63);
}
.pv-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 12px;
}
.pv-clock {
  font-size: calc(52px * var(--fs, 1));
  font-weight: 200;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pv-date {
  font-size: calc(12px * var(--fs, 1));
  opacity: 0.92;
  margin: 6px 0 calc(var(--tiles-gap, 80px) / 4);
  min-height: 1em;
}
.pv-tiles {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.pv-tile {
  width: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: calc(9px * var(--fs, 1));
}
.pv-tile .ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  color: #222;
  font-family: var(--mono);
  font-size: calc(10px * var(--fs, 1));
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pv-tile .ic img {
  width: 62%;
  height: 62%;
  object-fit: contain;
}
.pv-tile .lbl {
  max-width: 48px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.home-preview.no-labels .pv-tile .lbl {
  display: none;
}
@media (max-width: 1000px) {
  .set-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .set-aside {
    position: static;
    order: -1;
  }
}

/* styles/views/settings/tags.css */
.env-tab {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1600px;
}
.env-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.set-card h3 .step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-bg);
  color: var(--accent-text);
  font-size: calc(11px * var(--fs, 1));
  vertical-align: 1px;
}
.set-card .sub b {
  color: var(--text-2);
  font-weight: 600;
}
.set-card .sub svg {
  width: 11px;
  height: 11px;
  vertical-align: -1px;
}
.env-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
}
.env-intro > div > p:not(.sub) {
  margin: 0 0 10px;
  color: var(--text-2);
  line-height: 1.6;
}
.env-intro .sub {
  margin: 12px 0 0;
}
.env-legend {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  font-size: calc(12px * var(--fs, 1));
  color: var(--text-2);
}
.env-tab .badge {
  margin: 0;
  min-width: 52px;
  text-align: center;
  font-size: calc(11px * var(--fs, 1));
  padding: 3px 8px;
}
.env-tab .badge.none {
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 500;
}
.env-try {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 14px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.env-try .set-label {
  margin: 4px 0 0;
}
#envTry,
#userName {
  width: 100%;
  min-height: 36px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: calc(12px * var(--fs, 1));
}
.env-samples {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.env-samples .chip {
  min-height: 28px;
  font-family: var(--mono);
  font-size: calc(11px * var(--fs, 1));
}
.env-out {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.env-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.env-result .t {
  flex: 1 1 auto;
  min-width: 0;
}
.env-result .u,
.env-other .u {
  font-family: var(--mono);
  font-size: calc(12px * var(--fs, 1));
  word-break: break-all;
}
.env-result .why {
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted);
  margin-top: 3px;
}
.env-others {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.env-other {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: calc(12px * var(--fs, 1));
}
.env-other.miss {
  color: var(--muted);
}
.env-rule,
.env-site {
  position: relative;
  display: grid;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.env-rule {
  grid-template-columns: 18px minmax(0, 1fr) 200px 28px;
}
.env-site {
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)) 28px;
}
.env-sites {
  overflow-x: auto;
}
.env-sites.wide > .env-site {
  min-width: calc(var(--cols) * 120px + 36px);
}
.tag-row {
  position: relative;
  display: grid;
  grid-template-columns: 18px 64px 96px minmax(0, 1fr) auto 28px;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.tag-row.add {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
}
.tag-name {
  text-transform: uppercase;
  font-weight: 600;
}
.tag-name::placeholder {
  text-transform: none;
  font-weight: 400;
}
.tag-builtin {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 4px 0 10px;
}
.tag-builtin .sub {
  margin: 0;
  color: var(--muted);
  font-size: calc(12px * var(--fs, 1));
}
.tag-sws {
  display: flex;
  gap: 2px;
}
.tag-sw {
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  border-radius: 6px;
  background: transparent;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.tag-sw::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--tag-fg);
}
.tag-sw:hover {
  background: var(--surface-2);
}
.tag-sw[aria-pressed=true] {
  box-shadow: inset 0 0 0 2px var(--text);
}
.env-rule.head,
.env-site.head {
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted);
  margin: 0 0 2px;
}
.env-rule.add,
.env-site.add {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
}
.env-rule .grip,
.tag-row .grip {
  color: var(--muted-2);
  display: flex;
  justify-content: center;
  cursor: grab;
}
.env-rule .grip svg,
.tag-row .grip svg {
  width: 12px;
  height: 12px;
}
.env-rule.dragging,
.tag-row.dragging {
  opacity: 0.45;
}
.env-rule.drop-before::before,
.env-rule.drop-after::after,
.tag-row.drop-before::before,
.tag-row.drop-after::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.env-rule.drop-before::before,
.tag-row.drop-before::before {
  top: -3px;
}
.env-rule.drop-after::after,
.tag-row.drop-after::after {
  bottom: -3px;
}
.env-in {
  min-width: 0;
  min-height: 32px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 0 9px;
  font-family: var(--mono);
  font-size: calc(12px * var(--fs, 1));
}
.env-in::placeholder {
  color: var(--muted-2);
  font-family: var(--sans);
}
.env-sel {
  min-height: 32px;
  min-width: 0;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  padding: 0 6px;
  font-size: calc(12px * var(--fs, 1));
  font-weight: 600;
}
.env-sel.PROD {
  background: var(--prod-bg);
  color: var(--prod-fg);
}
.env-sel.TEST {
  background: var(--test-bg);
  color: var(--test-fg);
}
.env-sel.STAGE {
  background: var(--stage-bg);
  color: var(--stage-fg);
}
.env-sel.LOCAL {
  background: var(--local-bg);
  color: var(--local-fg);
}
.env-sel.tag {
  background: var(--tag-bg);
  color: var(--tag-fg);
}
.env-tab .x {
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.env-tab .x svg {
  width: 12px;
  height: 12px;
}
.env-tab .x:hover {
  background: var(--surface-2);
  color: var(--red-fg);
}
.env-tab .x.add {
  color: var(--accent);
}
.env-tab .x.add svg {
  width: 14px;
  height: 14px;
}
.env-tab .x.add:hover {
  background: var(--accent-bg);
  color: var(--accent-text);
}
.env-empty {
  margin-top: 4px;
  padding: 14px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  color: var(--muted);
  font-size: calc(12px * var(--fs, 1));
  text-align: center;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.env-copy textarea {
  min-height: 110px;
}
.env-actions {
  margin-top: 8px;
}
.env-copy details {
  margin-top: 10px;
  color: var(--muted);
  font-size: calc(12px * var(--fs, 1));
}
.env-copy summary {
  cursor: pointer;
  color: var(--text-2);
  padding: 6px 0;
}
.env-copy pre {
  margin: 6px 0 0;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: calc(11px * var(--fs, 1));
  color: var(--text-2);
  overflow-x: auto;
}
@media (max-width: 1100px) {
  .env-intro {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1699px) {
  .env-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* styles/views/board.css */
.page.board-mode {
  --fs: var(--fs-board, 1);
}
.board {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.blane-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: calc(11px * var(--fs, 1));
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.blane-h[data-color] {
  color: var(--c);
}
.blane-h .line {
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.blane {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.bcol {
  position: relative;
  flex: 0 0 320px;
  width: 320px;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.bcol.unsorted {
  border-style: dashed;
}
.bcol.dragging {
  opacity: 0.4;
}
.bcol.drop-into {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.bcol.drop-before::before,
.bcol.drop-after::after {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.bcol.drop-before::before {
  left: -8px;
}
.bcol.drop-after::after {
  right: -8px;
}
.bcol-h {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 8px;
  border-bottom: 1px solid var(--line);
}
.bcol-h[draggable=true] {
  cursor: grab;
}
.bcol-name {
  flex: 0 1 auto;
  min-width: 0;
  min-height: 28px;
  padding: 0 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  font-size: calc(13px * var(--fs, 1));
  font-weight: 600;
  overflow-wrap: anywhere;
}
.bcol-name:hover {
  color: var(--accent);
  text-decoration: underline;
}
.bcol-n {
  margin-right: auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: calc(11px * var(--fs, 1));
}
.bcol-h .more {
  min-width: 28px;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bcol-h .more svg {
  width: 14px;
  height: 14px;
}
.bcol-h .more:hover {
  background: var(--surface-2);
  color: var(--text);
}
.bcards {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  min-height: 48px;
  overflow-y: auto;
}
.bcards > * {
  flex-shrink: 0;
}
.bsec {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--text-2);
  font-family: var(--mono);
  font-size: calc(11px * var(--fs, 1));
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bsec[data-color] {
  color: var(--c);
}
.bsec.NONE {
  color: var(--muted);
}
.bsec .dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--c);
}
.bsec .n {
  margin-left: auto;
  color: var(--muted);
}
.bsec.drop-into {
  outline: 2px solid var(--accent);
  background: var(--accent-bg);
  color: var(--accent-text);
}
.bcard {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  cursor: grab;
}
.bcard:hover {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.bcard.dragging {
  opacity: 0.35;
}
.bcard.drop-before::before,
.bcard.drop-after::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.bcard.drop-before::before {
  top: -4px;
}
.bcard.drop-after::after {
  bottom: -4px;
}
.bcard .ico {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gh-bg);
  font-family: var(--mono);
  font-size: calc(9px * var(--fs, 1));
  font-weight: 600;
}
.bcard .ico img {
  width: 16px;
  height: 16px;
  display: block;
}
.bcard-txt {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bcard-ttl {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: calc(13px * var(--fs, 1));
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.bcard-url {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--mono);
  font-size: calc(11px * var(--fs, 1));
  line-height: 1.4;
  color: var(--muted-2);
}
.bcard-url:empty {
  display: none;
}
.bcard-del {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 28px;
  min-height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.bcard-del svg {
  width: 14px;
  height: 14px;
}
.bcard:hover .bcard-del,
.bcard:focus-within .bcard-del,
.bcard-del:focus-visible {
  opacity: 1;
}
.bcard-del:hover,
.bcard-del:focus-visible {
  background: var(--surface);
  color: var(--red-fg);
}
.bempty {
  padding: 10px 6px;
  color: var(--muted);
  font-size: calc(12px * var(--fs, 1));
}
.bcol-add {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 8px 8px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px dashed var(--line-2);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: calc(12px * var(--fs, 1));
}
.bcol-add svg {
  width: 14px;
  height: 14px;
}
.bcol-add:hover {
  border-color: var(--muted);
  color: var(--text);
}
.bcol-form {
  flex: 0 0 auto;
  margin: 0 8px 8px;
}
@media (max-width: 760px) {
  .bcol {
    flex-basis: min(320px, calc(100vw - 48px));
    width: min(320px, calc(100vw - 48px));
  }
}

/* styles/views/palette.css */
.pal-shade {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 16px 16px;
  background: rgba(0, 0, 0, 0.45);
}
.pal {
  width: min(640px, 100%);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.pal-q {
  min-height: 48px;
  padding: 0 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-size: calc(15px * var(--fs, 1));
}
.pal-q:focus-visible {
  outline: none;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.pal-list {
  overflow: auto;
  padding: 4px;
}
.pal-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 40px;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.pal-item.sel {
  background: var(--accent-bg);
}
.pal-item .ico {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: calc(9px * var(--fs, 1));
  font-weight: 600;
  background: var(--gh-bg);
  overflow: hidden;
}
.pal-item .ico img {
  width: 16px;
  height: 16px;
}
.pal-item .pal-sym {
  background: none;
  color: var(--muted);
}
.pal-item .pal-sym svg {
  width: 16px;
  height: 16px;
}
.pal-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pal-t,
.pal-s {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pal-t {
  font-size: calc(13px * var(--fs, 1));
}
.pal-s {
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted);
}
.pal-item .badge {
  margin-top: 0;
}
.pal-kind {
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted);
}
.pal-empty {
  padding: 14px;
  color: var(--muted);
  font-size: calc(13px * var(--fs, 1));
}
.pal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-size: calc(11px * var(--fs, 1));
  color: var(--muted);
}

/* newtab.css */
