/* webview/styles.css */
:root {
  --bg: #08080a;
  --bg-deep: #050506;
  --surface: #0f0f12;
  --surface-2: #151519;
  --surface-3: #1c1c21;
  --key: #17171b;
  --key-hi: #23232a;
  --line: rgba(255,255,255,.085);
  --line-2: rgba(255,255,255,.14);
  --line-3: rgba(255,255,255,.26);
  --text: #f5f5f6;
  --text-2: #9a9aa4;
  --text-3: #626270;
  --inv-bg: #ffffff;
  --inv-text: #0a0a0c;
  --ring: #ffffff;
  --draft: #e3b341;
  --warning: #f2a544;
  --danger: #ff6b5e;
  --shadow: 0 1px 2px rgba(0,0,0,.6), 0 12px 32px rgba(0,0,0,.45);
  --radius: 10px;
  --radius-s: 7px;
  --rail: 232px;
  --inspector: 404px;
  --mono:
    ui-monospace,
    "SF Mono",
    "JetBrains Mono",
    Menlo,
    monospace;
  --sans:
    -apple-system,
    "SF Pro Text",
    "Inter",
    system-ui,
    "Segoe UI",
    sans-serif;
  color-scheme: dark;
}
:root[data-theme=light],
body.vscode-light {
  --bg: #f4f4f2;
  --bg-deep: #ececea;
  --surface: #ffffff;
  --surface-2: #fafaf9;
  --surface-3: #f1f1ef;
  --key: #ffffff;
  --key-hi: #f0f0ee;
  --ring: #0c0c0e;
  --line: rgba(0,0,0,.10);
  --line-2: rgba(0,0,0,.16);
  --line-3: rgba(0,0,0,.34);
  --text: #0c0c0e;
  --text-2: #5b5b64;
  --text-3: #8b8b95;
  --inv-bg: #0c0c0e;
  --inv-text: #ffffff;
  --draft: #9a6b00;
  --warning: #a45400;
  --danger: #c0392b;
  --shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.08);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 13px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.006em;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 560;
  letter-spacing: -0.018em;
}
p {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
code,
.mono {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0;
}
code {
  color: inherit;
  background: none;
  padding: 0;
  border-radius: 0;
}
.muted {
  color: var(--text-2);
}
.dim {
  color: var(--text-3);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.app {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  height: 100vh;
  overflow: hidden;
}
.rail {
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  border-right: 1px solid var(--line);
  min-height: 0;
}
.rail-device {
  padding: 18px 18px 16px;
  border-bottom: 1px solid var(--line);
}
.rail-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.mark-glyph {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--inv-bg);
  color: var(--inv-text);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
}
.rail-mark .nm {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rail-mark .btn {
  margin-left: auto;
  flex: none;
}
.rail-picker-label {
  display: block;
  margin-top: 12px;
  margin-bottom: 5px;
  font-size: 10px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.rail-picker {
  width: 100%;
  font-size: 11px;
}
.rail-product {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 520;
}
.rail-meta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-3);
  font-family: var(--mono);
}
.rail-status {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rail-message {
  margin: 0 12px 12px;
  flex: none;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 6px 7px 9px;
  border-left: 2px solid var(--text-2);
  border-radius: 0 7px 7px 0;
  background: var(--surface-2);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-2);
  overflow-wrap: anywhere;
  max-height: 160px;
  overflow-y: auto;
}
.rail-message.err {
  border-left-color: var(--danger);
  color: var(--text);
}
.rail-message span {
  flex: 1;
  min-width: 0;
}
.rail-message .btn {
  flex: none;
  margin-top: -2px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-2);
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}
.dot.on {
  background: var(--text);
}
.dot.draft {
  background: var(--draft);
}
.dot.warn {
  background: var(--warning);
}
.dot.err {
  background: var(--danger);
}
.rail-nav {
  padding: 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.rail-group {
  padding: 14px 8px 6px;
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.nav-item {
  display: grid;
  grid-template-columns: 16px 1fr;
  align-items: center;
  gap: 10px;
  padding: 8px 9px;
  border-radius: var(--radius-s);
  color: var(--text-2);
  font-size: 13px;
  text-align: left;
  width: 100%;
  transition: background .12s ease, color .12s ease;
}
.nav-item:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav-item[aria-current=true] {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 520;
}
.nav-item:disabled,
.nav-item:disabled:hover {
  color: var(--text-3);
  background: transparent;
  cursor: default;
}
.nav-item[aria-current=true]:disabled {
  background: var(--surface-2);
}
.nav-item svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  opacity: .85;
}
.rail-foot {
  padding: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
}
.rail-foot .rail-history {
  margin-right: auto;
  margin-left: -9px;
  color: var(--text-3);
}
.rail-foot .rail-history:hover {
  color: var(--text);
}
.rail-history .c {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  margin-left: 5px;
}
.rail-choose {
  margin-top: 10px;
}
.rail-progress {
  margin: 0 12px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-2);
}
.rail-build {
  padding: 0 12px 10px;
  font-size: 10.5px;
  font-family: var(--mono);
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--bg);
}
.topbar {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.topbar h1 {
  font-size: 19px;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar .sub {
  margin-top: 3px;
  font-size: 12px;
  line-height: 17px;
  height: 34px;
  color: var(--text-2);
  max-width: 62ch;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.topbar > div:first-child {
  min-width: 0;
}
.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.theme-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}
.content {
  flex: 1;
  overflow: auto;
  min-height: 0;
}
.pad {
  padding: 20px 24px 120px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface-2);
  transition:
    background .12s ease,
    border-color .12s ease,
    opacity .12s ease;
}
.btn:hover {
  background: var(--surface-3);
  border-color: var(--line-3);
}
.btn.ghost {
  background: none;
  border-color: transparent;
  color: var(--text-2);
}
.btn.ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}
.btn.primary {
  background: var(--inv-bg);
  color: var(--inv-text);
  border-color: transparent;
  font-weight: 560;
}
.btn.primary:hover {
  opacity: .88;
  background: var(--inv-bg);
}
.btn.tiny {
  height: 24px;
  padding: 0 9px;
  font-size: 11.5px;
  border-radius: 6px;
}
.btn.icon {
  width: 30px;
  padding: 0;
  justify-content: center;
}
.btn[disabled] {
  opacity: .4;
  pointer-events: none;
}
.btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.seg {
  display: inline-flex;
  padding: 2px;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.seg button {
  height: 24px;
  padding: 0 11px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-2);
}
.seg button[aria-pressed=true] {
  background: var(--surface-3);
  color: var(--text);
  font-weight: 520;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
[hidden] {
  display: none !important;
}
.field {
  display: grid;
  gap: 6px;
}
.field > span,
.label {
  font-size: 11px;
  color: var(--text-2);
  letter-spacing: .01em;
}
.input,
select.input {
  height: 32px;
  padding: 0 10px;
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--text);
  font-size: 12.5px;
  outline: none;
  transition: border-color .12s ease, background .12s ease;
  appearance: none;
}
.input:focus {
  border-color: var(--line-3);
  background: var(--surface-3);
}
.input.mono {
  font-family: var(--mono);
  font-size: 12px;
}
select.input {
  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--text-3) 50%),
    linear-gradient(
      135deg,
      var(--text-3) 50%,
      transparent 50%);
  background-position: calc(100% - 15px) 14px, calc(100% - 10px) 14px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}
.input-row {
  display: flex;
  gap: 6px;
}
.input-row .input {
  flex: 1;
}
.sw {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.sw input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sw .track {
  width: 30px;
  height: 18px;
  border-radius: 9px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  position: relative;
  transition: background .15s ease, border-color .15s ease;
  flex: none;
}
.sw .track::after {
  content: "";
  position: absolute;
  inset: 2px auto 2px 2px;
  width: 12px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform .15s cubic-bezier(.3, .8, .3, 1), background .15s ease;
}
.sw input:checked + .track {
  background: var(--inv-bg);
  border-color: transparent;
}
.sw input:checked + .track::after {
  transform: translateX(12px);
  background: var(--inv-text);
}
.sw .txt {
  font-size: 12.5px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-2);
}
.chip .mono {
  font-size: 10.5px;
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.card-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}
.card-h h3 {
  font-size: 13px;
}
.card-h .right {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}
.card-b {
  padding: 15px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.stack {
  display: grid;
  gap: 14px;
}
.hr {
  height: 1px;
  background: var(--line);
  margin: 14px -15px;
}
.board-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  min-width: 0;
}
.board-card .board {
  border: 0;
  border-radius: 0;
  background: var(--surface);
}
.board-card > :first-child {
  border-radius: 13px 13px 0 0;
}
.board-card > :last-child {
  border-radius: 0 0 13px 13px;
}
.board-card > .layerbar-wrap {
  display: flex;
  align-items: flex-start;
  background: var(--surface-2);
  box-shadow: inset 0 1px 0 var(--line);
}
.layer-tabs {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 2px;
  padding: 0 10px 7px;
  position: relative;
  box-shadow: inset 0 1px 0 var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.layer-tabs::-webkit-scrollbar {
  display: none;
}
.layer-tabs > * {
  flex: none;
}
.layer-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 33px;
  padding: 0 13px 0 11px;
  border: 1px solid transparent;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  color: var(--text-2);
  font-size: 12.5px;
  white-space: nowrap;
}
.layer-tab:hover {
  color: var(--text);
  background: var(--surface-3);
}
.layer-tab[aria-selected=true] {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  font-weight: 520;
}
.layer-tab.on {
  color: var(--text);
  background: color-mix(in srgb, var(--tab-tint, var(--text-3)) 16%, var(--surface-2));
  border-color: color-mix(in srgb, var(--tab-tint, var(--text-3)) 60%, transparent);
}
.layer-tab.on:hover {
  background: color-mix(in srgb, var(--tab-tint, var(--text-3)) 24%, var(--surface-2));
}
.layer-tab .swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .18);
  flex: none;
}
.layer-tab .idx {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}
.layerbar-wrap > .layer-edit {
  flex: none;
  margin: 0 10px 0 10px;
}
.board-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 2px 14px 6px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
}
.board-foot > * {
  flex: none;
}
.board-foot > .board-foot-text {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.board-foot b {
  color: var(--text);
  font-weight: 560;
}
.board-foot .right {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.layer-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 11px 0 9px;
  border-radius: 7px;
  border: 1px solid transparent;
  color: var(--text-2);
  font-size: 12.5px;
  white-space: nowrap;
}
.layer-chip:hover {
  background: var(--surface-2);
  color: var(--text);
}
.layer-chip[aria-pressed=true] {
  background: var(--surface-3);
  border-color: var(--line-2);
  color: var(--text);
  font-weight: 520;
}
.layer-chip .swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .18);
  flex: none;
}
.layer-chip .idx {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}
.layer-chip.link {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.layer-chip.link:hover {
  border-color: var(--line-3);
  background: var(--surface-3);
}
.layer-chip.dirty::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--draft);
}
.layer-chip.staged {
  border-style: dashed;
  border-color: var(--draft);
}
.layer-edit {
  position: relative;
  z-index: 41;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 33px;
  padding: 0 12px 0 11px;
  border: 1px solid transparent;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  color: var(--text-2);
  font-size: 12.5px;
  white-space: nowrap;
}
.layer-edit::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 9px;
  bottom: 9px;
  width: 1px;
  background: var(--line);
}
.layer-edit svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  flex: none;
}
.layer-edit:hover {
  color: var(--text);
  background: var(--surface-3);
}
.layer-edit[aria-expanded=true] {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-2);
}
.layerbar-wrap {
  position: relative;
  min-width: 0;
}
.layerpanel {
  position: absolute;
  z-index: 40;
  bottom: calc(100% - 1px);
  right: 10px;
  width: min(620px, calc(100% - 20px));
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px 12px 0 12px;
  background: var(--surface);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.layerpanel .list-row {
  gap: 10px;
}
.lp-row {
  grid-template-columns: 18px 20px minmax(0, 1fr) 92px 82px;
  align-items: center;
}
.lp-row .lp-base,
.lp-row [data-base] {
  justify-self: end;
}
.lp-row.base {
  box-shadow: inset 0 1px 0 var(--line-2);
}
.lp-grip {
  width: 18px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--text-3);
  cursor: grab;
  touch-action: none;
}
.lp-grip svg {
  width: 10px;
  height: 16px;
  fill: currentColor;
}
.lp-grip:hover,
.lp-grip:focus-visible {
  color: var(--text);
  background: var(--surface-3);
}
.lp-grip:disabled {
  cursor: default;
  opacity: .4;
}
.list.sorting,
.list.sorting .lp-grip {
  cursor: grabbing;
  user-select: none;
}
.lp-row.dragging {
  position: relative;
  z-index: 1;
  background: var(--surface-3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  border-radius: 7px;
}
.layerpanel-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.layerpanel-body > .list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.layerpanel-actions {
  margin: 0 -14px -14px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
}
.layerflow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--inspector);
  min-height: 0;
}
.workspace.wide {
  grid-template-columns: minmax(0, 1fr);
}
.stage {
  position: relative;
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.board {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    radial-gradient(
      120% 90% at 50% 0%,
      rgba(255, 255, 255, .035),
      transparent 60%),
    var(--surface);
  padding: 10px 14px 6px;
}
:root[data-theme=light] .board {
  background:
    radial-gradient(
      120% 90% at 50% 0%,
      rgba(0, 0, 0, .02),
      transparent 60%),
    var(--surface);
}
.board svg {
  display: block;
  width: 100%;
  height: auto;
}
.board,
.board-legend {
  -webkit-user-select: none;
  user-select: none;
}
.keys-pad .board {
  width: 100%;
}
.kc-rect {
  fill: var(--key);
  stroke: var(--line-2);
  stroke-width: 1;
  transition: fill .12s ease, stroke .12s ease;
}
.kc:hover .kc-rect {
  fill: var(--key-hi);
  stroke: var(--line-3);
}
.kc-label {
  fill: var(--text);
  font-family: var(--sans);
  font-weight: 500;
  text-anchor: middle;
  dominant-baseline: middle;
  letter-spacing: -.02em;
}
.kc-sub {
  fill: var(--text);
  font-family: var(--sans);
  font-weight: 700;
  opacity: .78;
  text-anchor: middle;
  dominant-baseline: middle;
}
.kc-sep {
  opacity: .42;
}
.kc-trns .kc-label {
  fill: var(--text-3);
}
.kc-trns .kc-rect,
.kc-under .kc-rect,
.kc-ball.glass circle {
  fill-opacity: .42;
  stroke: none;
  filter: blur(1.8px);
}
.kc-glow.kc-glow-trns {
  opacity: .28;
}
.kc-none .kc-rect {
  fill: transparent;
  stroke: var(--line);
}
.kc.sel .kc-rect {
  stroke: var(--text);
  stroke-width: 2;
  fill: var(--key-hi);
}
.board.picking {
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.kc.pickable {
  cursor: crosshair;
}
.kc.pickable .kc-rect {
  stroke-dasharray: 0;
}
.pickbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 12px;
}
.pickbar .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
}
.kc.sel .kc-label {
  fill: var(--text);
}
.kc-mark {
  fill: var(--text-2);
}
.kc-ring {
  fill: none;
  stroke: var(--ring);
  stroke-width: 2.4;
}
.kc.dragging {
  cursor: grabbing;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55));
}
.kc.dragging .kc-rect {
  transition: none;
}
.kc.drop-target .kc-rect {
  filter: brightness(1.3) drop-shadow(0 0 5px var(--ring));
}
.board [data-key] {
  touch-action: none;
}
.board [tabindex]:focus {
  outline: none;
}
.board [tabindex]:not(.sel):focus-visible {
  outline: 1.5px solid var(--text-2);
  outline-offset: -6px;
}
.sv-field,
.hue-ramp {
  touch-action: none;
  cursor: crosshair;
}
.kc-reach {
  fill: none;
  stroke: var(--ring);
  stroke-width: 2.2;
  stroke-dasharray: 0 4.4;
  stroke-linecap: round;
}
.kc-badge {
  fill: var(--text-3);
  font-family: var(--mono);
  font-size: 9px;
  text-anchor: middle;
}
.kc-ball circle {
  transition: fill .12s ease, stroke .12s ease;
}
.kc-ball[data-trackball] {
  cursor: crosshair;
}
.kc-ball[data-trackball]:hover circle {
  stroke: var(--text);
}
.kc-dotn {
  font-family: var(--mono);
  font-size: 5.8px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
}
.kc-badgetext {
  fill: #f5f5f3;
  font-family: var(--mono);
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
}
.legend-item .ldot {
  width: 9px;
  height: 9px;
  margin: 1.5px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
  border: 1.5px solid rgba(255, 255, 255, .5);
}
.kc-led {
  opacity: .95;
}
.kc-glow {
  filter: blur(7px);
  opacity: .5;
}
.board-legend {
  display: flex;
  gap: 8px 18px;
  padding: 8px 6px 4px;
  flex-wrap: wrap;
  align-items: center;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 12px;
  color: var(--text-3);
}
.legend-item .lkey {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  flex: none;
  border: 1.5px solid var(--ring);
}
.legend-item .lkey.sel {
  background: var(--key-hi);
}
.legend-item .lkey.indicated {
  border-style: dotted;
}
.legend-item .lkey.transparent {
  border: 0;
  background: var(--text-3);
  opacity: .5;
  filter: blur(.8px);
}
.inspector {
  border-left: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.insp-head {
  padding: 16px 16px 13px;
  border-bottom: 1px solid var(--line);
}
.insp-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.insp-title {
  margin-top: 7px;
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.insp-title h3 {
  font-size: 17px;
  letter-spacing: -.02em;
}
.insp-body {
  overflow: auto;
  padding: 4px 0 24px;
  flex: 1;
}
.sect {
  border-bottom: 1px solid var(--line);
  padding: 15px 16px;
}
.sect:last-child {
  border-bottom: 0;
}
.sect-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}
.sect-h h4 {
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.sect-h .right {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.kv {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 4px 10px;
  font-size: 12px;
}
.kv dt {
  color: var(--text-3);
}
.kv dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
}
.branch {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  overflow: hidden;
}
.branch + .branch {
  margin-top: 8px;
}
.branch-h {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
}
.branch-n {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-2);
}
.branch-h .t {
  font-size: 12px;
  font-weight: 520;
}
.branch-h .right {
  margin-left: auto;
}
.branch-b {
  padding: 4px 11px 10px;
}
.tier {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px dashed var(--line);
  width: 100%;
  text-align: left;
  border-radius: 6px;
}
.tier:last-child {
  border-bottom: 0;
}
button.tier:hover {
  background: var(--surface-3);
}
.tier .tl {
  font-size: 11px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tier .tl::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--line-3);
  border-radius: 2px;
  flex: none;
}
.tier .tl.tap::before {
  background: var(--text-2);
  border-color: var(--text-2);
}
.tier .tl.hold::before {
  border-radius: 50%;
}
.tier .tl.long::before {
  border-radius: 50%;
  border-style: dashed;
}
.tier .ta {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.tier .th {
  font-size: 10.5px;
  color: var(--text-3);
  white-space: nowrap;
}
.tier.off {
  color: var(--text-3);
}
.tier.off .ta {
  font-size: 11.5px;
}
.tier.editing {
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: start;
  background: var(--surface-3);
  padding: 9px 8px;
}
.tier-edit {
  display: grid;
  gap: 8px;
}
.act {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  max-width: 100%;
  overflow: hidden;
}
.act .k {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act .how {
  color: var(--text-3);
  font-family: var(--sans);
  font-size: 10.5px;
}
.act.empty {
  border-style: dashed;
  color: var(--text-3);
  background: none;
  font-family: var(--sans);
  font-size: 11.5px;
}
.keys-pad {
  display: grid;
  gap: 18px;
}
.keys-pad {
  grid-template-columns: minmax(0, 1fr);
}
.bench {
  overflow: hidden;
}
.keys-pad .bench {
  min-height: 580px;
}
.bench-tabs {
  display: flex;
  align-items: flex-end;
  padding: 6px 10px 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.bench-tablist {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  position: relative;
  padding-bottom: 1px;
  margin-bottom: -1px;
  overflow-x: auto;
  scrollbar-width: none;
}
.bench-tablist::-webkit-scrollbar {
  display: none;
}
.more-left {
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 28px);
  mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 28px);
}
.more-right {
  -webkit-mask-image:
    linear-gradient(
      to left,
      transparent,
      #000 28px);
  mask-image:
    linear-gradient(
      to left,
      transparent,
      #000 28px);
}
.more-left.more-right {
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 28px,
      #000 calc(100% - 28px),
      transparent);
  mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 28px,
      #000 calc(100% - 28px),
      transparent);
}
.bench-tablist > * {
  flex: none;
}
.bench-tabs button[role=tab] {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 35px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  font-size: 12.5px;
  color: var(--text-2);
  font-weight: 480;
  white-space: nowrap;
}
.bench-tabs button[role=tab]:hover {
  color: var(--text);
  background: var(--surface-3);
}
.bench-tabs button[role=tab][aria-selected=true] {
  height: 36px;
  margin-bottom: -1px;
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
  font-weight: 520;
}
.bench-tabs .tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bench-tabs button[data-tab] {
  display: grid;
  grid-template-columns: max-content 3ch;
  justify-content: start;
  gap: 8px;
  text-align: left;
}
.bench-tabs [data-tab=key] {
  width: 80px;
}
.bench-tabs [data-tab=behaviours] {
  width: 126px;
}
.bench-tabs [data-tab=combos] {
  width: 108px;
}
.bench-tabs [data-tab=macros] {
  width: 103px;
}
.bench-tabs [data-tab=pointing] {
  width: 152px;
}
.bench-tabs [data-tab] .c {
  text-align: left;
}
.bench-tabs button[role=tab] > .draft-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  margin: 0;
}
.bench-tabs .n {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}
.bench-tabs .swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .18);
  flex: none;
}
.bench-tabs button[role=tab].off {
  color: var(--text-3);
}
.bench-tabs .tab-step {
  color: var(--text-3);
  font-size: 12px;
  padding: 0 1px;
}
.bench-tabs .tab-sep {
  width: 1px;
  height: 18px;
  background: var(--line-2);
  margin: 0 8px;
}
.bench-tabs [data-ltab=base] {
  width: 136px;
}
.bench-tabs [data-ltab=layers] {
  width: 152px;
}
.bench-tabs [data-ltab=auto] {
  width: 172px;
}
.bench-tabs [data-ltab=pd] {
  width: 166px;
}
.bench-tabs [data-ltab=combo] {
  width: 175px;
}
.bench-tabs [data-ltab=key] {
  width: 164px;
}
.bench-tabs [data-ltab=groups] {
  width: 122px;
}
.bench-tabs .c {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
}
.bench-tabs button[role=tab][aria-selected=true] .c {
  color: var(--text-2);
}
.bench-right {
  flex: none;
  margin: 0 0 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 4px;
  white-space: nowrap;
}
.bench-right:empty {
  display: none;
}
.bench-body {
  padding: 16px 18px 20px;
}
.tab-grid {
  display: grid;
  gap: 26px;
}
.tab-grid.three {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr);
}
.tab-grid.two {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}
.tab-grid .span {
  grid-column: 1 / -1;
}
.tab-grid.idle > section {
  opacity: .5;
}
.tab-grid section {
  min-width: 0;
}
.tab-split {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.tab-split.builder {
  grid-template-columns: 330px minmax(0, 1fr);
}
.tab-split.wide {
  grid-template-columns: minmax(0, 1fr) 330px;
}
.empty-card {
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  padding: 16px;
}
.rowlist {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
}
.rowlist.many {
  max-height: min(560px, calc(100vh - 160px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.rowlist.many > .rowlist-h {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-2);
}
.rowlist-h {
  padding: 9px 12px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.rowitem {
  display: grid;
  gap: 2px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}
.rowitem:last-child {
  border-bottom: 0;
}
.rowitem:hover {
  background: var(--surface-3);
}
.rowitem.on {
  background: var(--surface-3);
  box-shadow: inset 2px 0 0 var(--text);
}
.rowitem .t {
  font-size: 12.5px;
}
.rowitem .m {
  font-size: 10.5px;
  color: var(--text-3);
}
.rowitem.quiet {
  opacity: .62;
}
.group-h {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  background: var(--surface-2);
  transition: background .12s ease, color .12s ease;
}
.group-h:hover {
  background: var(--surface-3);
  color: var(--text-2);
}
.group-h[aria-expanded=true] {
  color: var(--text-2);
}
.group-h .chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line-3);
  border-radius: 4px;
  color: var(--text);
  background: var(--surface-3);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}
.group-h .ttl {
  flex: 1;
  min-width: 0;
}
.group-h .n {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0;
}
.rowlist .group-h {
  background: none;
  border-bottom: 1px solid var(--line);
}
.rowlist .group-h:hover {
  background: var(--surface-3);
}
.rowlist .group-h[aria-expanded=false] {
  border-bottom: 0;
}
.rowlist .rowgroup + .rowgroup .group-h {
  border-top: 1px solid var(--line);
}
.beh-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.beh-intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 13px 0 16px;
}
.beh-intro .note {
  flex: 1;
  min-width: 0;
}
.beh-intro .sw {
  flex: none;
}
.bgrid {
  display: grid;
  grid-template-columns: 140px repeat(3, minmax(150px, 1fr));
  gap: 6px;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 2px;
}
.bgrid .bterm-field {
  gap: 5px;
  align-self: end;
  min-width: 0;
  margin-bottom: 6px;
}
.bterm {
  display: flex;
  align-items: center;
  align-self: end;
  height: 32px;
  margin-bottom: 6px;
  padding: 0 2px;
  font-size: 11px;
  color: var(--text-3);
}
.bhead {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
  font-size: 11.5px;
  color: var(--text-2);
}
.bhead .bn {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
.bhead .bx {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11px;
}
.bhead .bx:hover {
  color: var(--text);
}
.bhead.add {
  justify-content: flex-start;
}
.btier {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
  font-size: 11.5px;
  color: var(--text-3);
}
.fbdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  flex: none;
  display: inline-block;
}
.rowitem .fbdot,
.reach .fbdot {
  margin-right: 3px;
}
.bcell {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-height: 52px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  text-align: center;
  width: 100%;
}
.bcell:hover {
  border-color: var(--line-3);
  background: var(--surface-3);
}
.bcell.on {
  border-color: var(--text);
  background: var(--surface-3);
}
.bcell .bk {
  max-width: 100%;
  font-family: var(--mono);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bcell .bk.named {
  font-family: inherit;
  font-size: 12.5px;
}
.bcell .bl {
  font-size: 10.5px;
  color: var(--text-3);
}
.bcell.empty {
  border-style: dashed;
  background: none;
}
.bcell.empty .plus {
  color: var(--text-3);
  font-size: 14px;
}
.bcell.inherited {
  border-style: dashed;
  background: none;
}
.bcell.inherited .bk {
  color: var(--text-2);
}
.cell-editor {
  margin-top: 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
}
.ce-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}
.ce-head h4 {
  font-size: 13px;
}
.ce-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr) auto;
  gap: 14px;
  padding: 13px;
  align-items: end;
}
.stacklist {
  display: grid;
  gap: 2px;
}
.stackrow {
  display: grid;
  grid-template-columns: 14px 92px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  text-align: left;
  font-size: 12px;
}
.stackrow:hover {
  background: var(--surface-2);
}
.stackrow.on {
  background: var(--surface-3);
}
.stackrow .val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reach {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  font-size: 12px;
}
.reach:hover {
  border-color: var(--line-3);
}
.reach.empty {
  background: none;
  border-style: dashed;
  color: var(--text-3);
}
.reach.static {
  cursor: default;
}
.reach .rl {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.reach .ra {
  font-size: 11.5px;
  color: var(--text-2);
}
@media (max-width: 1180px) {
  .tab-grid.three {
    grid-template-columns: minmax(0, 1fr);
  }
  .tab-split,
  .tab-split.wide {
    grid-template-columns: minmax(0, 1fr);
  }
}
.list {
  display: grid;
}
.list-row {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  text-align: left;
  width: 100%;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row:hover {
  background: var(--surface-2);
}
.list-row[aria-current=true] {
  background: var(--surface-3);
}
.recovery-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.recovery-row .mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.swatch-lg {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  flex: none;
}
.swatch-off {
  background:
    repeating-linear-gradient(
      45deg,
      var(--surface-3) 0 4px,
      transparent 4px 8px);
}
table.t {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
table.t th {
  text-align: left;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  padding: 0 12px 8px;
}
table.t td {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
table.t td.mono {
  font-family: var(--mono);
  font-size: 11.5px;
}
table.t td.t-group {
  padding: 0;
}
table.t.fixed {
  table-layout: fixed;
}
.stat.link {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.stat.link:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.draft-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--draft);
  margin-left: 6px;
  vertical-align: middle;
  flex: none;
}
.kc-draft {
  fill: var(--draft);
  stroke: rgba(0, 0, 0, .55);
  stroke-width: .8;
  pointer-events: none;
}
.draft-dot.corner {
  position: absolute;
  top: 6px;
  right: 6px;
  margin: 0;
}
.draft-dot.lead {
  margin: 0 6px 0 0;
}
.mslot,
.slotcard {
  position: relative;
}
.revealed,
tr.revealed > td {
  background: color-mix(in srgb, var(--draft) 16%, transparent) !important;
}
.settings-group,
.rowitem,
[data-reach] > td {
  transition: background .6s ease;
}
.rv-sect {
  padding: 14px 18px 4px;
}
.rv-block {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-bottom: 8px;
  background: var(--surface);
  overflow: hidden;
}
.rv-block.grouped {
  box-shadow: inset 3px 0 0 var(--draft);
}
.rv-block.grouped.lit {
  background: color-mix(in srgb, var(--draft) 7%, var(--surface));
}
.rv-block.source-warning {
  border-color: color-mix(in srgb, var(--warning) 55%, var(--line));
  background: color-mix(in srgb, var(--warning) 8%, var(--surface));
}
.rv-block.source-trap {
  border-color: color-mix(in srgb, var(--danger) 60%, var(--line));
  background: color-mix(in srgb, var(--danger) 8%, var(--surface));
}
.rv-block.source-focus {
  outline: 2px solid var(--warning);
  outline-offset: 2px;
}
.rv-block.source-trap.source-focus {
  outline-color: var(--danger);
}
.rv-source-label {
  color: var(--warning);
  font-size: 11px;
}
.rv-block.source-trap .rv-source-label {
  color: var(--danger);
}
.rv-group-h {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.rv-group-h .right {
  margin-left: auto;
}
.rv {
  --rv-cols: 70px minmax(150px, 22%) minmax(0, 1fr) 56px 78px;
  --rv-fields: 10px minmax(120px, 26%) minmax(0, 1fr) minmax(0, 1fr);
}
.rv-cols,
.rv-item,
.rv-group-h {
  display: grid;
  grid-template-columns: var(--rv-cols);
  column-gap: 12px;
  align-items: start;
}
.rv-cols {
  padding: 0 12px 6px;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.rv-item {
  padding: 9px 12px;
  row-gap: 4px;
}
.rv-item + .rv-item {
  border-top: 1px solid var(--line);
}
.rv-gutter {
  display: flex;
}
.rv-title {
  display: grid;
  gap: 3px;
  font-size: 12.5px;
  min-width: 0;
}
.rv-title .t {
  overflow-wrap: anywhere;
}
.rv-note {
  font-size: 11px;
  color: var(--text-3);
}
.rv-status {
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--text-3);
  white-space: nowrap;
}
.rv-status.added {
  color: var(--text);
  border-color: var(--text-2);
}
.rv-status.removed {
  color: var(--danger);
  border-color: currentColor;
}
.rv-fields {
  display: grid;
  grid-template-columns: var(--rv-fields);
  gap: 3px 12px;
  font-size: 12px;
  min-width: 0;
}
.rv-k {
  color: var(--text-3);
  min-width: 0;
}
.rv-v {
  font-family: var(--mono);
  font-size: 11.5px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.rv-none {
  color: var(--text-3);
}
.rv-sign {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-3);
}
.rv-sign.added {
  color: var(--text);
}
.rv-sign.removed {
  color: var(--danger);
}
.rv-group-h {
  padding: 7px 12px;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.rv-group-t {
  grid-column: 1 / 4;
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}
.rv-act {
  display: flex;
  justify-content: flex-end;
}
.rv-act.wide {
  grid-column: 4 / 6;
}
.rv-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rv-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  flex: none;
  display: inline-block;
}
.mk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mk-slot {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  width: 34px;
  flex: none;
}
.mk-slot.title {
  width: 20px;
  justify-content: flex-start;
}
.sends {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text);
  font-weight: 520;
  vertical-align: middle;
}
.sends-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sends-tag {
  flex: none;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 0 4px;
  line-height: 14px;
}
.mk-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  border: 1px solid var(--line-2);
  flex: none;
  display: inline-block;
}
.mk-badge {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 18px;
  padding: 0 5px;
  border-radius: 4px;
  flex: none;
  vertical-align: middle;
  border: 1.2px solid rgba(245, 245, 243, .7);
  background: rgba(8, 8, 10, .86);
  color: #f5f5f3;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  font-style: normal;
}
.mk .bn,
.rv-fields .bn {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
}
.ck .sect-h .note {
  margin-left: 10px;
}
.ck-group {
  margin-bottom: 8px;
}
.ck-group > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-2);
  padding: 4px 0 6px;
  list-style-position: inside;
}
.ck-group > summary .tag {
  margin-left: 6px;
}
.ck-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  margin-bottom: 8px;
  padding: 9px 12px;
  display: grid;
  gap: 6px;
}
.ck-item.warning:not(.fixed) {
  border-color: color-mix(in srgb, var(--warning) 55%, var(--line));
  background: color-mix(in srgb, var(--warning) 14%, var(--surface));
}
.ck-item.trap:not(.fixed) {
  border-color: color-mix(in srgb, var(--danger) 60%, var(--line));
  background: color-mix(in srgb, var(--danger) 14%, var(--surface));
}
.ck-item.blocker:not(.fixed) {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 20%, var(--surface));
}
.ck-item.fixed {
  opacity: .7;
}
.ck-h {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: baseline;
}
.ck-level {
  display: grid;
  gap: 2px;
  font-size: 10.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ck-level > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ck-item.trap .ck-level {
  color: var(--danger);
  font-weight: 600;
}
.ck-item.blocker:not(.fixed) .ck-level {
  color: var(--danger);
  font-weight: 600;
}
.ck-item.warning:not(.fixed) .ck-level {
  color: var(--warning);
  font-weight: 600;
}
.ck-t {
  font-size: 12.5px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.ck-act {
  display: flex;
  justify-content: flex-end;
}
.ck-b {
  margin-left: 162px;
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--text-2);
}
.ck-b p {
  margin: 0;
}
.ck-path {
  margin: 0;
  padding-left: 18px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text);
}
.ck-fix {
  color: var(--text-3);
}
.ck-source {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--warning);
  font: inherit;
  cursor: pointer;
}
.ck-item.trap .ck-source {
  color: var(--danger);
}
.ck-source:hover {
  text-decoration: underline;
}
.ck-confirm.warning {
  background: color-mix(in srgb, var(--warning) 14%, var(--surface-2));
}
.ck-confirm.trap {
  background: color-mix(in srgb, var(--danger) 14%, var(--surface-2));
}
.ck-confirm-t {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text);
}
.rv-more {
  grid-column: 1 / -1;
}
.rv-more summary {
  cursor: pointer;
  font-size: 11px;
  color: var(--text-3);
  padding-top: 2px;
}
.rv-more .rv-fields {
  margin-top: 3px;
}
@media (max-width: 760px) {
  .rv-cols {
    display: none;
  }
  .rv-item {
    grid-template-columns: 1fr auto auto;
  }
  .rv-gutter {
    grid-column: 1 / -1;
  }
  .rv-title {
    grid-column: 1;
    grid-row: 2;
  }
  .rv-item > .rv-fields {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .rv-item > .rv-act {
    grid-row: 2;
  }
  .rv-group-h {
    grid-template-columns: 1fr auto;
  }
  .rv-group-t {
    grid-column: 1;
  }
  .rv-act.wide {
    grid-column: 2;
  }
}
table.t.fixed td {
  overflow-wrap: anywhere;
}
[data-reach] {
  cursor: pointer;
}
table.t tr[data-reach]:hover > td {
  background: var(--surface-2);
}
table.t tr[data-picked] > td {
  background: var(--surface-3);
}
table.t tr[data-picked] > td:first-child {
  box-shadow: inset 2px 0 0 var(--text);
}
.del {
  color: var(--text-3);
  text-decoration: line-through;
}
.ins {
  color: var(--text);
}
.commit {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 9px 9px 15px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-3) 88%, transparent);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(140%);
  z-index: 40;
  max-width: calc(100% - 48px);
}
.commit .n {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  white-space: nowrap;
}
.commit .peek {
  display: flex;
  gap: 6px;
  overflow: hidden;
  max-width: 320px;
}
.commit .sep {
  width: 1px;
  height: 20px;
  background: var(--line);
}
.commit.applying {
  border-color: var(--line-3);
}
.commit.readback {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 4px;
  width: min(510px, calc(100% - 48px));
  padding: 12px 15px;
}
.commit.readback .spin {
  grid-row: 1 / 4;
  align-self: center;
}
.commit.readback strong {
  font-size: 13px;
}
.readback-detail {
  font-size: 12px;
  color: var(--text-2);
}
.readback-note {
  font-size: 11px;
  color: var(--text-3);
}
.commit .progress {
  width: 160px;
  height: 4px;
  border-radius: 2px;
  background: var(--surface);
  overflow: hidden;
}
.commit .progress i {
  display: block;
  height: 100%;
  background: var(--text);
}
.commit.ap {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: min(460px, calc(100% - 48px));
  padding: 13px 15px;
}
.commit.ap.failed {
  border-color: var(--danger);
}
.ap-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
}
.ap-head .muted {
  margin-left: auto;
  font-size: 11.5px;
}
.ap-reason {
  font-size: 12.5px;
  color: var(--text);
}
.ap-saved {
  font-size: 11.5px;
  color: var(--text-2);
}
.ap-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.ap-steps li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 9px;
  align-items: center;
  font-size: 12px;
  color: var(--text-3);
}
.ap-steps .mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  display: grid;
  place-items: center;
}
.ap-steps .mark .spin {
  width: 11px;
  height: 11px;
}
.ap-steps li.done {
  color: var(--text-2);
}
.ap-steps li.done .mark {
  background: var(--text-2);
  border-color: var(--text-2);
}
.ap-steps li.active {
  color: var(--text);
  font-weight: 520;
}
.ap-steps li.active .mark {
  border: 0;
}
.ap-steps li.failed {
  color: var(--danger);
  font-weight: 520;
}
.ap-steps li.failed .mark {
  background: var(--danger);
  border-color: var(--danger);
}
.ap-detail {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 400;
  color: var(--text-2);
}
.ap-bar {
  width: 110px;
  height: 4px;
  border-radius: 2px;
  background: var(--surface);
  overflow: hidden;
  flex: none;
}
.ap-bar i {
  display: block;
  height: 100%;
  background: var(--text);
}
.ap-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ap-bytes {
  flex: none;
  white-space: nowrap;
  text-align: right;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
}
.ap-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.spin {
  width: 11px;
  height: 11px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--line-3);
  border-top-color: var(--text);
  display: inline-block;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.hs-cols {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  padding: 12px 18px 0;
  border-bottom: 1px solid var(--line);
}
.hs-step {
  padding: 12px 18px 4px;
}
.hs-step + .hs-step {
  border-top: 1px solid var(--line);
}
.hs-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 0 8px;
  min-width: 0;
}
.hs-time {
  flex: none;
  width: 70px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
}
.hs-label {
  font-size: 13px;
  font-weight: 560;
  overflow-wrap: anywhere;
  min-width: 0;
}
.hs-label .tag {
  margin-left: 6px;
}
.hs-go {
  margin-left: auto;
  flex: none;
  align-self: center;
}
.hs-here {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text);
}
.hs-step.current .rv-block {
  box-shadow: inset 3px 0 0 var(--draft);
}
.hs-step.undone .hs-label,
.hs-step.undone .rv-block {
  opacity: .55;
}
.hs-empty {
  margin: 0 0 10px;
}
.hs .hs-empty:only-child {
  padding: 18px;
}
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(3px);
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 40px;
}
:root[data-theme=light] .scrim {
  background: rgba(0, 0, 0, .3);
}
.sheet {
  width: min(980px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sheet-h {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.sheet-h h2 {
  font-size: 15px;
}
.sheet-b {
  overflow: auto;
  padding: 0 0 6px;
}
.sheet-f {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.sheet-f .right {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.tip {
  position: fixed;
  z-index: 90;
  max-width: 300px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  color: var(--text);
  font-size: 11.5px;
  line-height: 1.45;
  box-shadow: var(--shadow);
  pointer-events: none;
}
.hovercard {
  position: fixed;
  z-index: 90;
  width: 320px;
  padding: 0;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow);
  pointer-events: none;
  overflow: hidden;
}
.hc-head {
  padding: 11px 13px 10px;
  border-bottom: 1px solid var(--line);
}
.hc-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hc-title .t {
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -.02em;
}
.hc-pill {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}
.hc-code {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
}
.hc-sect {
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}
.hc-sect:last-child {
  border-bottom: 0;
}
.hc-h {
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
  margin-bottom: 7px;
}
.hc-sub {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 7px;
}
.hc-branch {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.hc-branch + .hc-branch {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--line);
}
.hc-n {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  padding: 1px 0;
}
.hc-act {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 7px;
  font-size: 11px;
}
.hc-act + .hc-act {
  margin-top: 4px;
}
.hc-stage {
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 5px;
}
.fbdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  flex: none;
  display: inline-block;
}
.hc-target {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text);
}
.hc-life {
  color: var(--text-3);
  font-size: 10.5px;
}
.hc-life.hc-under {
  display: block;
  margin-top: 2px;
}
.hc-flow {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  font-size: 11px;
}
.hc-chip {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 10.5px;
}
.hc-chip.out {
  background: var(--surface-3);
}
.hc-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 7px;
  font-size: 10.5px;
}
.hc-step + .hc-step {
  margin-top: 3px;
}
.hc-step .k {
  color: var(--text-3);
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: .06em;
}
.hc-step .v {
  font-family: var(--mono);
}
.hc-empty {
  font-size: 11px;
  color: var(--text-3);
}
.hc-through {
  background: var(--surface-2);
}
.sheet.picker .sheet-b {
  padding: 0;
}
.pk-mods {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.pk-mod {
  height: 26px;
  padding: 0 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
  color: var(--text-2);
}
.pk-mod:hover {
  border-color: var(--line-3);
  color: var(--text);
}
.pk-mod.on {
  background: var(--inv-bg);
  color: var(--inv-text);
  border-color: transparent;
  font-weight: 520;
}
.picker-side {
  border-right: 1px solid var(--line);
  padding: 12px 8px;
  display: grid;
  align-content: start;
  gap: 1px;
  min-height: 420px;
}
.picker-side button {
  text-align: left;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  color: var(--text-2);
}
.picker-side button:hover {
  background: var(--surface-2);
  color: var(--text);
}
.picker-side button[aria-current=true] {
  background: var(--surface-3);
  color: var(--text);
}
.pk-body {
  padding: 16px 18px 20px;
}
.pk-rows {
  display: grid;
  gap: 6px;
}
.pk-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pk {
  min-width: 78px;
  height: 42px;
  padding: 0 8px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  gap: 1px;
}
.pk:hover {
  border-color: var(--line-3);
  background: var(--surface-3);
}
.pk.on {
  background: var(--inv-bg);
  border-color: transparent;
}
.pk.on .l,
.pk.on .c {
  color: var(--inv-text);
}
.pk[disabled] {
  opacity: .35;
  pointer-events: none;
}
.pk .l {
  font-size: 12.5px;
}
.pk .c {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--text-3);
}
.pk.wide {
  min-width: 120px;
}
.pk-layers {
  display: grid;
  gap: 6px;
}
.pk-layer {
  display: grid;
  grid-template-columns: 16px 130px repeat(3, minmax(0, 150px));
  gap: 8px;
  align-items: center;
}
.pk-layers.owned .pk-layer {
  grid-template-columns: 16px 130px repeat(6, minmax(0, 150px));
}
.pk-layers.owned .pk.wide {
  min-width: 0;
  padding: 0 4px;
}
.pk-layer .nm {
  font-size: 12.5px;
}
.pk-layers.modes .pk-layer {
  grid-template-columns: 16px 220px repeat(2, minmax(0, 150px));
}
.pk-layer .ix {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  text-align: right;
}
.pk-layers.modes .nm {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.pk-layers.modes .nm > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pk-layers.modes .nm .sub {
  font-size: 11px;
  color: var(--text-3);
}
.pk-layer.empty .nm > span:first-child {
  color: var(--text-2);
}
.pk-layers.modes.many {
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 4px;
}
.pk-layers.modes.many .pk-layer {
  grid-template-columns: 20px minmax(0, 1fr) repeat(2, minmax(0, 120px));
}
.pk-layers.modes.many .pk.wide {
  min-width: 0;
}
.pkb {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--bg-deep);
}
.pkb svg {
  display: block;
  width: 100%;
  height: auto;
}
.pkb-key rect {
  fill: var(--key);
  stroke: var(--line-2);
  stroke-width: 1;
}
.pkb-key:hover rect {
  fill: var(--key-hi);
  stroke: var(--line-3);
}
.pkb-key.on rect {
  fill: var(--inv-bg);
  stroke: var(--inv-bg);
}
.pkb-key.on .pkb-main,
.pkb-key.on .pkb-alt {
  fill: var(--inv-text);
}
.pkb-main {
  fill: var(--text);
  font-family: var(--sans);
  font-size: 21px;
  text-anchor: middle;
}
.pkb-main.sm {
  font-size: 15px;
}
.pkb-alt {
  fill: var(--text-3);
  font-family: var(--sans);
  font-size: 15px;
  text-anchor: middle;
}
.sheet-f .chip {
  cursor: pointer;
}
.pd-page {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.pd-slots {
  position: sticky;
  top: 0;
  display: grid;
  gap: 6px;
}
.pd-slots.many {
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}
.pd-empties {
  margin-top: 4px;
}
.pd-empties-h {
  padding: 4px 2px 6px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.pd-chips {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}
.slotchip {
  position: relative;
  height: 28px;
  padding: 0;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-s);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  transition: border-color .12s ease, background .12s ease;
}
.slotchip:hover {
  border-color: var(--line-3);
  color: var(--text-2);
}
.slotchip[aria-current=true] {
  border-style: solid;
  border-color: var(--line-3);
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--text);
}
.slotchip.warn {
  color: var(--draft);
  border-color: color-mix(in srgb, var(--draft) 45%, var(--line));
}
.slotchip > .draft-dot.corner {
  top: 3px;
  right: 3px;
}
.pd-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  flex: none;
  display: inline-block;
}
.pd-swatch.lg {
  width: 16px;
  height: 16px;
  border-radius: 5px;
}
.t td .pd-swatch {
  margin-right: 6px;
  vertical-align: -1px;
}
.slotcard {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  column-gap: 10px;
  row-gap: 3px;
  align-items: center;
  align-content: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
  transition: border-color .12s ease, background .12s ease;
}
.slotcard:hover {
  border-color: var(--line-2);
}
.slotcard[aria-current=true] {
  border-color: var(--line-3);
  background: var(--surface-2);
  box-shadow: inset 2px 0 0 var(--text);
}
.slotcard .nm {
  font-size: 12.5px;
  font-weight: 540;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slotcard .no {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}
.slotcard .meta {
  grid-column: 2 / -1;
  font-size: 11px;
  color: var(--text-3);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.slotcard .meta.mono {
  font-size: 10px;
}
.slotcard .meta.warn {
  color: var(--draft);
}
.slotcard.empty .nm {
  color: var(--text-2);
  font-weight: 480;
}
.pd-editor {
  container: pd / inline-size;
  min-width: 0;
}
.pd-editor .card-h .tag {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.pd-identity {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 12px;
}
.pd-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.pd-grid4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.pd-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 24px;
  align-items: start;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pd-copy {
  display: grid;
  grid-template-columns: minmax(0, 260px) auto;
  justify-content: start;
  gap: 8px;
  align-items: end;
}
.affix {
  position: relative;
  display: block;
}
.affix i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-style: normal;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
}
.affix.unit .input {
  padding-right: 38px;
}
.affix.unit.wide .input {
  padding-right: 78px;
}
.field.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field.inline > span {
  white-space: nowrap;
}
.field.inline select.input {
  height: 28px;
  width: auto;
  min-width: 150px;
  background-position: calc(100% - 15px) 12px, calc(100% - 10px) 12px;
}
.pd-mods {
  display: grid;
  gap: 7px 8px;
  align-items: center;
  justify-items: start;
}
.pd-mods .h {
  font-size: 10.5px;
  color: var(--text-3);
}
.pd-mods .s {
  font-size: 11px;
  color: var(--text-2);
}
.pd-cross {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 16px;
  align-items: center;
  grid-template-areas: ". up ." "left hub right" ". down .";
}
.pd-cross.vertical {
  grid-template-columns: minmax(0, 340px);
  justify-content: center;
  grid-template-areas: "up" "hub" "down";
}
.pd-cross.horizontal {
  grid-template-areas: "left hub right";
}
.pd-cross ~ .field {
  max-width: 340px;
}
.pd-cross.eight {
  grid-template-areas: "upLeft up upRight" "left hub right" "downLeft down downRight";
}
.pd-cross .arm.upLeft {
  grid-area: upLeft;
}
.pd-cross .arm.upRight {
  grid-area: upRight;
}
.pd-cross .arm.downLeft {
  grid-area: downLeft;
}
.pd-cross .arm.downRight {
  grid-area: downRight;
}
.pd-cross .arm.up {
  grid-area: up;
}
.pd-cross .arm.left {
  grid-area: left;
}
.pd-cross .arm.right {
  grid-area: right;
}
.pd-cross .arm.down {
  grid-area: down;
}
.pd-cross .arm > span b {
  font-weight: 600;
  color: var(--text);
  margin-right: 2px;
}
.pd-cross .hub {
  grid-area: hub;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.pd-cross .hub svg {
  width: 64px;
  height: 64px;
}
.pd-cross .hub circle {
  fill: var(--surface-2);
  stroke: var(--line-3);
  stroke-width: 1.2;
}
.pd-cross .hub circle + circle {
  fill: var(--text-3);
  stroke: none;
}
.pd-cross .hub path {
  fill: var(--text-2);
}
.field.unread .input {
  color: var(--text-3);
  border-style: dashed;
}
.pd-lines {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.pd-lines .lbl {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 600;
}
.pd-lines .val {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.pd-lines .btn {
  justify-self: end;
}
.pd-lines .foot {
  grid-column: 2 / -1;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.pd-advanced > summary {
  cursor: pointer;
  border-bottom-color: transparent;
}
.pd-advanced[open] > summary {
  border-bottom-color: var(--line);
}
.pd-advanced .chev {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.5;
  transition: transform .12s ease;
}
.pd-advanced[open] .chev {
  transform: rotate(90deg);
}
.pd-sect + .pd-sect {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pd-ratio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}
.pd-ratio i {
  font-style: normal;
  color: var(--text-3);
  font-family: var(--mono);
}
.pd-taps {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}
.pd-taps > .h {
  font-size: 10.5px;
  color: var(--text-3);
}
.pd-taps .n {
  font-size: 12px;
  color: var(--text-2);
}
.pd-taps .mods {
  grid-column: 2 / -1;
  padding-bottom: 6px;
}
.pd-buttons {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, .8fr);
  gap: 8px 12px;
  align-items: center;
}
.pd-buttons > .h {
  font-size: 10.5px;
  color: var(--text-3);
}
.pd-buttons .n {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-2);
}
.pd-buttons .narrow {
  display: none;
}
.pd-buttons .mods {
  grid-column: 2 / -1;
  padding-bottom: 6px;
}
@container pd (max-width: 720px) {
  .pd-grid4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pd-split {
    grid-template-columns: minmax(0, 1fr);
  }
}
@container pd (max-width: 600px) {
  .pd-identity {
    grid-template-columns: minmax(0, 1fr);
  }
  .pd-cross.pd-cross {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: none;
  }
  .pd-cross .arm.arm {
    grid-area: auto;
  }
  .pd-cross .hub {
    display: none;
  }
  .pd-buttons {
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .pd-taps {
    grid-template-columns: minmax(0, 1fr);
  }
  .pd-taps > .h {
    display: none;
  }
  .pd-taps .mods {
    grid-column: 1;
  }
  .pd-buttons > .h {
    display: none;
  }
  .pd-buttons .narrow {
    display: inline;
  }
  .pd-buttons .blank {
    display: none;
  }
  .pd-buttons > :not(.n) {
    grid-column: 2;
  }
}
@media (max-width: 1020px) {
  .pd-page {
    grid-template-columns: minmax(0, 1fr);
  }
  .pd-slots {
    position: static;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
.meter {
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
}
.meter i {
  display: block;
  height: 100%;
  background: var(--text-2);
}
.macro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 5px;
}
.mslot {
  height: 46px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
}
.mslot .n {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}
.mslot .v {
  font-size: 11.5px;
}
.mslot.filled {
  background: var(--surface-3);
  border-color: var(--line-2);
}
.mslot[aria-current=true] {
  border-color: var(--line-3);
  background: var(--key-hi);
}
.mslot.out {
  opacity: .38;
  border-style: dashed;
  cursor: not-allowed;
}
.mslot.warn {
  border-color: var(--danger);
}
.mslot.warn .v {
  color: var(--danger);
}
.meter.over i {
  background: var(--danger);
}
.meter.near i {
  background: var(--warning);
}
.usage-tables {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.step {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
}
.step + .step {
  margin-top: 6px;
}
.step .grip {
  color: var(--text-3);
  font-size: 12px;
  cursor: grab;
}
.step .kind {
  font-size: 10px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  width: 54px;
}
.tok {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: 5px;
  background: var(--surface-3);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
}
.profile-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 24px -4px;
  padding: 10px 13px;
  border: 1px solid var(--line-2);
  border-left: 2px solid var(--text-2);
  border-radius: 0 9px 9px 0;
  background: var(--surface-2);
  font-size: 12.5px;
}
.stagedot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid var(--line-3);
  display: inline-block;
}
.stagedot.on {
  background: var(--text-2);
  border-color: var(--text-2);
}
.stagestrip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.stagecard {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 8px 9px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  text-align: left;
}
.stagecard:hover {
  border-color: var(--line-2);
}
.stagecard[aria-current=true] {
  border-color: var(--line-3);
  background: var(--surface-2);
}
.stagecard .ord {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-3);
}
.stagecard .nm {
  font-size: 12.5px;
  font-weight: 520;
}
.stagecard .note {
  grid-column: 2 / -1;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.35;
}
.settings-group + .settings-group {
  margin-top: 14px;
}
.import-diff td:first-child {
  white-space: nowrap;
}
.import-diff td:last-child {
  white-space: nowrap;
  text-align: right;
}
.import-diff tr.cat td:first-child {
  font-weight: 600;
}
.import-diff tr.sub td {
  border-top: 0;
  padding-top: 0;
  color: var(--text-2);
}
.import-diff tr.sub td:first-child {
  padding-left: 24px;
}
.profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.profile-action .card-b {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.profile-action-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-2);
}
.profile-action-mark svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}
.profile-action h3 {
  font-size: 15px;
}
.profile-action .btn {
  margin-top: auto;
}
.profile-recovery {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.profile-recovery .copy {
  display: grid;
  gap: 2px;
}
.profile-recovery .state {
  margin-left: auto;
}
.setrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 16px;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
}
.setrow:last-child {
  border-bottom: 0;
}
.setrow.ro {
  opacity: .72;
}
.setrow .nm {
  font-size: 12.5px;
}
.setrow .hint {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 2px;
}
.swatch-pick {
  display: flex;
  gap: 10px;
  align-items: center;
}
.hue-ramp {
  flex: 1;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background:
    linear-gradient(
      90deg,
      #f33,
      #ff0,
      #3f3,
      #0ff,
      #33f,
      #f0f,
      #f33);
  position: relative;
}
.hue-ramp .thumb {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 4px;
  border-radius: 3px;
  background: var(--text);
  box-shadow: 0 0 0 2px var(--surface);
}
.sv-field {
  height: 92px;
  border-radius: 8px;
  border: 1px solid var(--line);
  position: relative;
}
.sv-field .thumb {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5);
  transform: translate(-50%, -50%);
}
.note {
  font-size: 11.5px;
  color: var(--text-3);
  line-height: 1.5;
}
.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--line-3);
  border-radius: 0 8px 8px 0;
  padding: 11px 13px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-2);
}
.callout.warn {
  border-left-color: var(--draft);
}
.share-field > span {
  display: flex;
  justify-content: space-between;
}
.share-field b {
  font-weight: 520;
  color: var(--text);
}
.share-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.share-range:disabled {
  cursor: default;
  opacity: .5;
}
.share-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(
      90deg,
      var(--text-2) var(--share, 0%),
      transparent);
}
.share-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(
      90deg,
      var(--text-2) var(--share, 0%),
      transparent);
}
.share-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-3);
}
.share-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--line-3);
}
.share-range:focus-visible {
  outline: none;
}
.share-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px var(--line-3);
}
.share-range:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px var(--line-3);
}
.tokens {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.token {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.token .sw {
  display: block;
  height: 52px;
}
.token .m {
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-2);
}
.scr-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 70;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface-3) 90%, transparent);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
@media (max-width: 1240px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 820px) {
  .profile-actions {
    grid-template-columns: 1fr;
  }
}
.main {
  position: relative;
}
details > summary::-webkit-details-marker {
  display: none;
}
details > summary {
  list-style: none;
}
.scr-toggle {
  display: none;
}
.screen-stub {
  display: grid;
  gap: 10px;
  padding: 26px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  max-width: 70ch;
}
.read-placeholder {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
}
.read-placeholder .spin {
  width: 24px;
  height: 24px;
}
.read-placeholder h2,
.read-placeholder p {
  margin: 0;
}
.read-placeholder p {
  max-width: 52ch;
  color: var(--text-2);
}
.read-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.app.demo {
  grid-template-rows: auto minmax(0, 1fr);
}
.demo-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 18px;
  border-bottom: 1px solid var(--line-2);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-2);
}
.demo-banner strong {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.demo-banner .copy {
  flex: 1;
  min-width: 0;
}
.demo-banner .acts {
  display: flex;
  gap: 6px;
  flex: none;
}
.dot.demo {
  background: none;
  box-shadow: inset 0 0 0 1.2px var(--text-2);
  width: 7px;
  height: 7px;
}
.sheet.leave-demo {
  width: min(560px, 100%);
}
.sheet.leave-demo .sheet-b {
  padding: 16px 18px;
  color: var(--text-2);
  font-size: 12.5px;
}
.busy-veil {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  display: grid;
  place-items: center;
  z-index: 30;
}
.unavailable {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--draft);
  border-radius: 0 9px 9px 0;
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--text-2);
  max-width: 78ch;
}
