:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --surface2: #243044;
  --text: #e6edf3;
  --textMuted: #8b9cb3;
  --border: #2d3f56;
  --gridLine: #263548;
  --headerBg: #15202b;
  --rowHover: #1e2d3f;
  --accent: #58a6ff;
  --accentFg: #0d1117;
  --danger: #f85149;
  --warning: #d29922;
  --success: #3fb950;
  --ansiRed: #f85149;
  --ansiGreen: #3fb950;
  --ansiYellow: #d29922;
  --ansiBlue: #58a6ff;
  --ansiMagenta: #bc8cff;
  --ansiCyan: #39c5cf;
  --ansiWhite: #e6edf3;
  --fontBody: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --fontMono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --rowH: 36px;
  --headerH: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--fontBody);
  font-size: 14px;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

a {
  color: var(--accent);
}

.app-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.brand h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-title-link {
  text-decoration: none;
  color: inherit;
}

.brand-title-link:hover h1 {
  color: var(--accent);
}

.brand .tagline {
  margin: 0;
  font-size: 0.78rem;
  color: var(--textMuted);
}

.header-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--headerBg);
}

.toolbar input[type="search"],
.toolbar select,
.toolbar button,
.btn {
  font: inherit;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 0.35rem 0.55rem;
}

.toolbar input[type="search"] {
  min-width: 160px;
  flex: 1 1 140px;
}

.toolbar-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

/* Explicit keyboard selection (state.kb) — not the same as :focus */
.toolbar-kb-slot.is-kb-toolbar-slot-active,
.toolbar-search-slot.is-kb-toolbar-slot-active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.toolbar:focus {
  outline: none;
}

.modal .list-row.is-modal-kb-active,
.modal footer .btn.is-modal-kb-active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.toolbar-right {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

button.primary {
  background: var(--accent);
  color: var(--accentFg);
  border-color: transparent;
  font-weight: 600;
}

button.ghost {
  background: transparent;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  background: var(--surface2);
  color: var(--textMuted);
}

.chip button {
  border: none;
  background: none;
  color: inherit;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.grid-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  position: relative;
}

#virt-inner {
  min-width: min-content;
}

.grid-table {
  border-collapse: separate;
  border-spacing: 0;
  width: max-content;
  table-layout: fixed;
}

.grid-table th,
.grid-table td {
  border-right: 1px solid var(--gridLine);
  border-bottom: 1px solid var(--gridLine);
  height: var(--rowH);
  padding: 0 6px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.grid-table thead th.th-select {
  position: sticky;
  left: 0;
  z-index: 5;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  cursor: default;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.75rem;
  box-shadow: 1px 0 0 var(--gridLine);
}

.grid-table tbody td.td-select {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 40px;
  min-width: 40px;
  max-width: 40px;
  text-align: center;
  padding: 0 4px;
  background: var(--bg);
  box-shadow: 1px 0 0 var(--gridLine);
}

.grid-table tbody tr:hover td.td-select {
  background: var(--rowHover);
}

.grid-table td.td-title {
  max-width: none;
  text-overflow: clip;
}

.grid-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--headerBg);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--textMuted);
  height: var(--headerH);
  cursor: pointer;
  user-select: none;
}

.grid-table th .th-label {
  pointer-events: none;
}

.grid-table th .col-resize-handle {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  z-index: 4;
  box-sizing: border-box;
}

.grid-table th .col-resize-handle:hover {
  background: var(--surface2);
}

body.col-resizing {
  cursor: col-resize !important;
  user-select: none;
}

.grid-table th.sorted-asc::after {
  content: " ▲";
  font-size: 0.65em;
}

.grid-table th.sorted-desc::after {
  content: " ▼";
  font-size: 0.65em;
}

.grid-table tbody tr:hover td {
  background: var(--rowHover);
}

/* ---------- Grid status / risk highlights ---------- */
.grid-table td.td-status.status-triage {
  background: rgba(245, 158, 11, 0.16); /* yellow */
  color: var(--text);
}

.grid-table td.td-status.status-not-started {
  background: rgba(59, 130, 246, 0.16); /* blue */
  color: var(--text);
}

.grid-table td.td-days-to-target.dtt-unset {
  background: rgba(245, 158, 11, 0.16); /* yellow (unset) */
}

.grid-table td.td-days-to-target.dtt-overdue {
  background: rgba(220, 38, 38, 0.18); /* red */
  color: var(--text);
}

.grid-table td.td-days-to-target.dtt-at-risk {
  background: rgba(249, 115, 22, 0.18); /* orange */
  color: var(--text);
}

.grid-table td.td-days-to-target.dtt-on-track {
  background: rgba(34, 197, 94, 0.16); /* green */
  color: var(--text);
}

/* Keyboard navigation: active row + cell (see state.keyboardIndex / keyboardColKey). */
.grid-table tbody tr.is-keyboard-row td {
  background: color-mix(in srgb, var(--accent) 11%, var(--bg));
}

.grid-table tbody tr.is-keyboard-row:hover td {
  background: color-mix(in srgb, var(--accent) 14%, var(--rowHover));
}

.grid-table tbody tr.is-keyboard-row td.td-select {
  background: color-mix(in srgb, var(--accent) 11%, var(--bg));
}

.grid-table tbody tr.is-keyboard-row:hover td.td-select {
  background: color-mix(in srgb, var(--accent) 14%, var(--rowHover));
}

.grid-table tbody tr.is-keyboard-row td.is-keyboard-cell {
  background: color-mix(in srgb, var(--accent) 24%, var(--surface));
  box-shadow: inset 0 0 0 2px var(--accent);
}

.grid-table tbody tr.is-keyboard-row:hover td.is-keyboard-cell {
  background: color-mix(in srgb, var(--accent) 28%, var(--rowHover));
}

.grid-table thead th.is-keyboard-col {
  color: var(--accent);
  box-shadow: inset 0 -3px 0 var(--accent);
}

.grid-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours-cell-inner {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
}

.hours-combo-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  min-width: 0;
}

.cell-kb-shell {
  min-height: calc(var(--rowH) - 4px);
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.cell-kb-shell .cell-select {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.cell-kb-shell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 3px;
}

.hours-cell-inner:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 3px;
}

.hours-combo-seg {
  width: 2.75rem;
  min-width: 2rem;
  max-width: 4rem;
  text-align: right;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  padding: 0 2px;
}

.hours-combo-seg:focus {
  outline: 1px solid var(--accent);
  outline-offset: 0;
  border-radius: 3px;
}

.hours-combo-sep {
  flex-shrink: 0;
  padding: 0 1px;
  color: var(--textMuted);
  user-select: none;
  pointer-events: none;
}

.grid-table td.readonly {
  color: var(--textMuted);
  font-size: 0.85rem;
}

.title-cell-wrap {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.title-cell-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  width: 100%;
  min-height: calc(var(--rowH) - 4px);
}

/* Text + fade share this shell so the gradient stays on the right edge of the text area (not mid-string). */
.title-input-shell {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.title-input-shell .title-inline-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding-right: 2px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  height: calc(var(--rowH) - 4px);
  overflow: hidden;
  white-space: nowrap;
}

.title-input-shell.is-title-kb-field-highlight {
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.title-input-shell .title-actions-fade {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2.75rem;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to left, var(--bg), transparent);
  opacity: 1;
}

.grid-table tbody tr:hover td.td-title .title-input-shell .title-actions-fade {
  background: linear-gradient(to left, var(--rowHover), transparent);
}

.grid-table tbody tr.is-keyboard-row td.td-title .title-input-shell .title-actions-fade {
  background: linear-gradient(to left, color-mix(in srgb, var(--accent) 11%, var(--bg)), transparent);
}

.grid-table tbody tr.is-keyboard-row:hover td.td-title .title-input-shell .title-actions-fade {
  background: linear-gradient(to left, color-mix(in srgb, var(--accent) 14%, var(--rowHover)), transparent);
}

.title-actions {
  position: static;
  flex-shrink: 0;
  display: flex;
  gap: 2px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 2;
}

.title-cell-inner:hover .title-actions,
.title-cell-inner:focus-within .title-actions,
.grid-table td.td-title.is-keyboard-cell .title-actions {
  opacity: 1;
  pointer-events: auto;
}

.title-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface2) 85%, transparent);
  color: var(--textMuted);
  cursor: pointer;
}

.title-action-btn:hover {
  color: var(--accent);
  background: color-mix(in srgb, var(--surface2) 100%, transparent);
}

.title-action-btn.is-title-kb-lightbulb-highlight {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface2));
  opacity: 1;
  pointer-events: auto;
}

.readonly-inline {
  padding: 0.35rem 0;
  color: var(--textMuted);
  font-variant-numeric: tabular-nums;
}

.bulk-slot.bulk-action-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0.4rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--danger) 12%, var(--headerBg));
}

.bulk-bar-full {
  width: 100%;
  min-width: 0;
}

.bulk-pseudo-row {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  width: 100%;
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex-shrink: 0;
}

.bulk-spacer-cols {
  flex-shrink: 0;
  align-self: stretch;
  min-height: 1.75rem;
  box-sizing: border-box;
  border-right: 1px dashed color-mix(in srgb, var(--border) 80%, transparent);
}

.bulk-pseudo-grid {
  display: grid;
  gap: 4px 8px;
  align-items: end;
  flex: 1 1 200px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 1px;
}

/* Reserves grid width for columns that have no bulk editor (e.g. days-to-target). */
.bulk-col-placeholder {
  box-sizing: border-box;
  flex-shrink: 0;
  pointer-events: none;
}

.bulk-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.bulk-field-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--textMuted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bulk-inline-select,
.bulk-date-inp {
  height: auto;
  min-height: 28px;
  font-size: 0.85rem;
}

.bulk-date-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.bulk-count {
  font-size: 0.85rem;
  color: var(--textMuted);
}

.btn.danger {
  background: transparent;
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
  font-weight: 600;
}

.btn.danger:hover {
  background: color-mix(in srgb, var(--danger) 15%, transparent);
}

.cell-input,
.cell-select {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  height: calc(var(--rowH) - 4px);
}

.cell-checkbox {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.badge {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge-priority {
  background: var(--surface2);
  border: 1px solid var(--border);
}

.theme-sysadmin .badge-status {
  font-family: var(--fontMono);
}

/* Sysadmin: body font comes from palette (--fontBody); reinforce UI chrome for monospace feel */
.theme-sysadmin #app,
.theme-sysadmin .modal,
.theme-sysadmin .overlay .panel {
  font-family: var(--fontBody);
}

.td-project {
  padding-left: 2px;
}

.project-cell-wrap {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
  height: 100%;
  padding: 0 4px 0 2px;
}

.project-cell-wrap .project-select {
  flex: 1 1 auto;
  min-width: 0;
}

.project-swatch {
  flex-shrink: 0;
  width: 9px;
  align-self: center;
  height: 22px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--text) 20%, transparent);
}

.td-project-colored {
  box-shadow: inset 4px 0 0 0 var(--project-color);
}

/* Vibrant Chalk art: multi-accent, neon/chalk energy */
.theme-vibrant-chalk a {
  color: var(--accentSecondary);
}

.theme-vibrant-chalk a:hover {
  color: var(--accentTertiary);
}

.theme-vibrant-chalk .btn.primary,
.theme-vibrant-chalk button.primary {
  background: linear-gradient(
    125deg,
    var(--accent) 0%,
    var(--accentSecondary) 42%,
    var(--accentTertiary) 100%
  );
  color: var(--accentFg);
  border-color: transparent;
  box-shadow:
    0 0 24px color-mix(in srgb, var(--accent) 45%, transparent),
    0 0 18px color-mix(in srgb, var(--accentSecondary) 28%, transparent);
}

.theme-vibrant-chalk .toolbar {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(
    90deg,
    var(--accent),
    var(--accentSecondary),
    var(--accentTertiary)
  ) 1;
  box-shadow: 0 6px 22px color-mix(in srgb, var(--accent) 12%, transparent);
}

.theme-vibrant-chalk .app-header {
  border-bottom-color: color-mix(in srgb, var(--accentSecondary) 40%, var(--border));
}

.theme-vibrant-chalk .brand h1 {
  background: linear-gradient(
    95deg,
    var(--accent),
    var(--accentSecondary) 50%,
    var(--accentTertiary)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.theme-vibrant-chalk .toolbar input[type="search"]:focus-visible {
  outline: 2px solid var(--accentSecondary);
  border-color: var(--accent);
}

.theme-vibrant-chalk .cell-checkbox {
  accent-color: var(--accentSecondary);
}

.badge-status-untriaged {
  background: color-mix(in srgb, var(--ansiYellow) 35%, transparent);
  color: var(--text);
}

.badge-status-not_started {
  background: color-mix(in srgb, var(--ansiBlue) 35%, transparent);
}

.badge-status-in_progress {
  background: color-mix(in srgb, var(--ansiMagenta) 30%, transparent);
}

.badge-status-ready_for_release {
  background: color-mix(in srgb, var(--ansiGreen) 35%, transparent);
}

.badge-status-done {
  background: color-mix(in srgb, var(--ansiGreen) 28%, transparent);
  color: var(--text);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: flex;
  justify-content: flex-end;
}

.overlay.overlay-center {
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.overlay.overlay-item-editor.overlay-center {
  padding: 0.65rem;
}

.panel.item-editor-panel {
  width: min(1440px, 98vw);
  max-width: 100%;
  height: min(94vh, 960px);
  max-height: min(94vh, 960px);
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
}

.item-editor-body.panel-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.75rem 1rem;
}

.item-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1rem 1.25rem;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.item-editor-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.item-editor-md-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--textMuted);
  margin-bottom: 0.35rem;
}

.unified-md-card {
  flex: 1;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--headerBg);
}

.notion-md-editor {
  flex: 1;
  min-height: 16rem;
  overflow: auto;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

.notion-md-editor:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent);
}

.notion-md-editor h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.45rem 0 0.35rem;
}

.notion-md-editor h2 {
  font-size: 1.18rem;
  font-weight: 650;
  margin: 0.4rem 0 0.3rem;
}

.notion-md-editor h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0.35rem 0 0.25rem;
}

.notion-md-editor p {
  margin: 0.3rem 0;
  min-height: 1.2em;
}

.notion-md-editor ul {
  margin: 0.35rem 0 0.35rem 1.15rem;
}

.notion-md-editor li {
  margin: 0.15rem 0;
}

.notion-md-editor code:not(.md-fence code) {
  font-family: var(--fontMono);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  padding: 0.06em 0.32em;
  border-radius: 4px;
  font-size: 0.9em;
}

.notion-md-editor a {
  color: var(--accent);
  text-decoration: underline;
}

.md-fence-block {
  margin: 0.55rem 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}

.md-fence-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid var(--border);
  background: var(--headerBg);
  font-size: 0.78rem;
}

.md-fence-toolbar-label {
  color: var(--textMuted);
}

select.md-fence-lang {
  font: inherit;
  font-size: 0.82rem;
  padding: 0.22rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.notion-md-editor .md-fence {
  margin: 0;
  border: none;
  border-radius: 0;
  padding: 0.55rem 0.7rem;
  overflow-x: auto;
  font-family: var(--fontMono);
  font-size: 0.84rem;
  line-height: 1.45;
  background: color-mix(in srgb, var(--bg) 92%, var(--surface));
  color: var(--text);
  white-space: pre;
  tab-size: 2;
}

.notion-md-editor .md-fence code {
  font-family: inherit;
  font-size: inherit;
  background: none;
  padding: 0;
  border-radius: 0;
}

.item-editor-side {
  min-width: 0;
  overflow: auto;
  padding-right: 0.25rem;
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}

@media (max-width: 800px) {
  .overlay.overlay-item-editor.overlay-center {
    padding: 0;
    align-items: stretch;
  }

  .panel.item-editor-panel {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border-left: none;
    box-shadow: none;
  }

  .item-editor-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .item-editor-side {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    max-height: none;
  }

  .item-editor-main {
    min-height: 200px;
  }
}

.th-sort-muted {
  cursor: help;
  opacity: 0.72;
}

.hint-text {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--textMuted);
  line-height: 1.35;
}

.panel {
  width: min(520px, 100vw);
  height: 100%;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.25);
}

.panel-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-header h2 {
  margin: 0;
  font-size: 1rem;
  flex: 1;
}

.panel-body {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--textMuted);
  margin-bottom: 0.25rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font: inherit;
  padding: 0.4rem 0.5rem;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.panel-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  width: min(560px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.modal-card header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}

.modal-card .modal-body {
  padding: 0.75rem 1rem;
  overflow: auto;
  flex: 1;
}

.modal-card footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.howto-h3 {
  margin: 1rem 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--textMuted);
}

.howto-h3:first-child {
  margin-top: 0;
}

.howto-p {
  margin: 0.35rem 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.howto-krow {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) 1fr;
  gap: 0.5rem 0.75rem;
  align-items: baseline;
  margin: 0.4rem 0;
  font-size: 0.88rem;
  line-height: 1.4;
}

.howto-keys {
  font-family: var(--fontMono);
  font-size: 0.78rem;
  color: var(--accent);
  white-space: nowrap;
}

.howto-desc {
  color: var(--text);
  min-width: 0;
}

.list-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--gridLine);
}

.list-row.dragging {
  opacity: 0.6;
}

.drag-handle {
  cursor: grab;
  color: var(--textMuted);
  user-select: none;
}

.toast-wrap {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.toast {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  max-width: 320px;
}

.toast.err {
  border-color: var(--danger);
}

.trial-banner {
  font-size: 0.78rem;
  padding: 0.25rem 0.75rem;
  background: color-mix(in srgb, var(--warning) 25%, var(--surface));
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.warn-text {
  color: var(--warning);
  font-size: 0.78rem;
}

.md-preview {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  background: var(--bg);
  max-height: 200px;
  overflow: auto;
  font-size: 0.9rem;
}

.md-preview h1,
.md-preview h2,
.md-preview h3 {
  margin: 0.4rem 0;
}

.md-preview p {
  margin: 0.35rem 0;
}

.md-preview code {
  background: var(--surface2);
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  font-family: var(--fontMono);
  font-size: 0.85em;
}

.md-preview pre.md-fence,
.unified-md-preview pre.md-fence {
  margin: 0.5rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  background: var(--surface2);
  border: 1px solid var(--gridLine);
  overflow-x: auto;
}

.md-preview pre.md-fence code,
.unified-md-preview pre.md-fence code {
  display: block;
  padding: 0;
  background: none;
  font-family: var(--fontMono);
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre;
}

.md-preview ul {
  margin: 0.35rem 0;
  padding-left: 1.25rem;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}

.theme-swatch {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  text-align: left;
  background: var(--surface2);
  color: var(--text);
}

.theme-swatch.active {
  border-color: var(--accent);
}

.theme-swatch-preview {
  height: 36px;
  border-radius: 4px;
  margin-bottom: 0.35rem;
  background: linear-gradient(
    90deg,
    var(--p-bg) 0%,
    var(--p-surface) 40%,
    var(--p-accent) 100%
  );
}

.empty-state {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--textMuted);
}

.tests-page {
  padding: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.tests-page pre {
  background: var(--surface2);
  padding: 0.75rem;
  border-radius: 8px;
  overflow: auto;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .grid-table th,
  .grid-table td {
    max-width: 200px;
  }
}

/* ---------- Project pages ---------- */

.page-header-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-wrap: wrap;
}

.page-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--textMuted);
}

.page-header-right-cluster {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-header-bar .page-title {
  font-size: 1.1rem;
  margin: 0;
}

.page-header-right-cluster .page-title {
  margin-left: 0;
}

.crumb-sep {
  color: var(--textMuted);
}

.crumb-link {
  color: var(--accent);
  text-decoration: none;
}

.crumb-current {
  color: var(--text, #fff);
  font-weight: 600;
}

.items-grid-crumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  color: var(--textMuted);
  font-size: 0.9rem;
}

.project-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.section-title {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.section-sub {
  margin: 0 0 0.6rem;
  color: var(--textMuted);
  font-size: 0.85rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--textMuted);
}

.kpi-value {
  font-size: 1.4rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.kpi-sub {
  font-size: 0.75rem;
  color: var(--textMuted);
}

.project-edit-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
}

.project-edit-row input[type="text"] {
  flex: 1 1 220px;
}

.field-label {
  font-size: 0.75rem;
  color: var(--textMuted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-header-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
  margin-right: 0.5rem;
}

.desc-edit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  min-height: 120px;
}

@media (max-width: 720px) {
  .desc-edit-row {
    grid-template-columns: 1fr;
  }
}

.desc-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: var(--surface2);
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem;
  font: inherit;
  font-size: 0.9rem;
}

.desc-preview {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: color-mix(in srgb, var(--surface2) 60%, transparent);
  overflow: auto;
}

.desc-preview:empty::before {
  content: "Preview";
  color: var(--textMuted);
}

.progress-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent), var(--success));
  transition: width 0.2s ease;
}

.status-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  font-size: 0.75rem;
  color: var(--textMuted);
}

.tag-muted {
  opacity: 0.7;
}

.tag-status-untriaged {
  border-color: color-mix(in srgb, var(--warning) 50%, var(--border));
  color: var(--warning);
}

.tag-status-not_started {
  border-color: color-mix(in srgb, var(--textMuted) 50%, var(--border));
}

.tag-status-in_progress {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  color: var(--accent);
}

.tag-status-ready_for_release {
  border-color: color-mix(in srgb, var(--success) 50%, var(--border));
  color: var(--success);
}

.tag-status-done {
  border-color: color-mix(in srgb, var(--success) 45%, var(--border));
  color: var(--success);
}

/* Charts */

.chart-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

.chart-empty {
  padding: 0.75rem;
  color: var(--textMuted);
  text-align: center;
}

.chart-empty.small {
  padding: 0.25rem;
  font-size: 0.75rem;
}

.chart-grid {
  stroke: var(--border);
  stroke-opacity: 0.45;
  stroke-width: 1;
}

.chart-axis-label {
  fill: var(--textMuted);
  font-size: 10px;
}

.chart-area {
  fill-opacity: 0.18;
  stroke: none;
}

.chart-area-opened {
  fill: var(--accent);
}

.chart-area-closed {
  fill: var(--success);
}

.chart-area-open {
  fill: var(--warning);
  fill-opacity: 0.22;
}

.chart-line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-line-opened {
  stroke: var(--accent);
}

.chart-line-closed {
  stroke: var(--success);
}

.chart-line-open {
  stroke: var(--warning);
}

.chart-bar {
  fill: var(--accent);
  fill-opacity: 0.85;
}

.chart-hover-target {
  cursor: default;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--textMuted);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  display: inline-block;
}

.legend-swatch.legend-opened {
  background: color-mix(in srgb, var(--accent) 50%, transparent);
  border: 1px solid var(--accent);
}

.legend-swatch.legend-closed {
  background: color-mix(in srgb, var(--success) 50%, transparent);
  border: 1px solid var(--success);
}

/* Risk lists */

.risk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 760px) {
  .risk-grid {
    grid-template-columns: 1fr;
  }
}

.risk-section.risk-overdue {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
}

.risk-section.risk-at_risk {
  border-color: color-mix(in srgb, var(--warning) 45%, var(--border));
}

.risk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.risk-table th,
.risk-table td {
  padding: 0.35rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.risk-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--textMuted);
}

.risk-link {
  color: var(--accent);
  text-decoration: none;
}

.risk-link:hover {
  text-decoration: underline;
}

/* Activity */

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
}

.activity-row {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.activity-when {
  color: var(--textMuted);
  font-variant-numeric: tabular-nums;
  min-width: 64px;
}

/* Projects index */

.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
}

.project-card.archived {
  opacity: 0.65;
}

.project-card-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.project-card-swatch {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.project-card-name {
  margin: 0;
  font-size: 1rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-card-stats .kpi-card {
  flex: 1 1 80px;
  padding: 0.4rem 0.55rem;
}

.project-card-stats .kpi-value {
  font-size: 1rem;
}

.project-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.project-card-new {
  border-style: dashed;
  background: color-mix(in srgb, var(--surface2) 60%, transparent);
}

.spark-wrap {
  width: 100%;
  height: 36px;
}

.spark-svg {
  width: 100%;
  height: 36px;
  display: block;
}

.spark-area {
  fill: var(--accent);
  fill-opacity: 0.18;
}

.spark-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
}

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

.small {
  font-size: 0.8rem;
}

/* Header: How-to + split New item */

.howto-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.howto-header-btn:hover {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
}

.howto-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 35%, var(--surface2));
  color: var(--accentFg);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.howto-header-label {
  line-height: 1.1;
}

.split-new-item {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  vertical-align: middle;
}

.split-new-item__main {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 1px solid color-mix(in srgb, var(--accentFg) 25%, transparent);
  padding-left: 0.65rem;
  padding-right: 0.55rem;
}

.split-new-item__caret {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  padding: 0.35rem 0.45rem;
  min-width: 2rem;
}

.split-chevron {
  font-size: 0.65rem;
  opacity: 0.9;
  line-height: 1;
}

.split-new-item__menu {
  position: absolute;
  top: calc(100% + 4px);
  /* Align to left edge of split control so the panel grows into the viewport (toolbar sits on the right). */
  left: 0;
  right: auto;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 1rem));
  z-index: 120;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 0.25rem 0;
  flex-direction: column;
  gap: 0;
  /* Do not use display:flex unconditionally — it overrides the [hidden] attribute in some engines. */
  display: none;
}

.split-new-item__menu:not([hidden]) {
  display: flex;
}

.split-new-item__subwrap {
  position: relative;
}

.split-new-item__subtrigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  cursor: default;
  color: var(--text);
}

.split-new-item__subtrigger .sub-arrow {
  color: var(--textMuted);
  font-size: 0.9rem;
}

.split-new-item__submenu {
  display: none;
  position: absolute;
  /* Open to the left of “Default behavior” so the panel stays on-screen when the split button is on the right. */
  left: auto;
  right: calc(100% + 4px);
  top: 0;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 1rem));
  z-index: 121;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  padding: 0.2rem 0;
}

.split-new-item__subwrap:hover .split-new-item__submenu,
.split-new-item__subwrap:focus-within .split-new-item__submenu {
  display: block;
}

.split-new-item__subrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  text-align: left;
  padding: 0.4rem 0.65rem;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.split-new-item__subrow:hover {
  background: var(--surface2);
}

.menu-check {
  display: inline-block;
  width: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--success);
}

.split-new-item__toprow {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.75rem;
  margin: 0;
  border: none;
  border-top: 1px solid var(--border);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.split-new-item__toprow:hover {
  background: var(--surface2);
}

/* Products hub */

.products-hub-header {
  margin-bottom: 0;
}

.products-menu-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

.products-menu-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.products-new-product {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem 1rem;
  background: var(--surface);
  margin-bottom: 1.25rem;
}

.products-new-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.products-new-hint {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

.products-new-fields {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.products-new-name,
.products-new-desc {
  width: 100%;
  box-sizing: border-box;
}

.products-new-desc {
  resize: vertical;
  min-height: 2.75rem;
  font-family: inherit;
}

.products-new-fields .btn {
  align-self: flex-start;
}

.products-new-err {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--danger, #dc2626);
}

.products-empty {
  margin: 0 0 1rem;
}

.products-menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.product-menu-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  background: var(--surface);
}

.product-menu-name {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.product-menu-desc {
  margin: 0 0 0.65rem;
  font-size: 0.85rem;
  line-height: 1.35;
}

.product-menu-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.products-menu-foot {
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.products-menu-foot a {
  color: var(--accent);
}

/* How-to macro picker */
.howto-action-wrap {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.5rem;
}

.howto-action-grid {
  min-width: min(560px, 100%);
  max-height: 240px;
  overflow: auto;
  padding: 0.35rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.howto-action-grid:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 2px;
}

.howto-action-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  cursor: pointer;
}

.howto-action-row:hover {
  background: var(--surface2);
}

.howto-action-row.is-selected {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.howto-action-keys {
  flex: 0 0 180px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  color: var(--textMuted);
  white-space: pre-line;
  margin-top: 0.05rem;
}

.howto-action-desc {
  flex: 1 1 auto;
  font-size: 0.9rem;
  line-height: 1.25;
}
