/*
 * OHE Admin Dashboard v2 — Component CSS
 *
 * Ported from atelier-os mock §181-560. Loaded after shell.css and before
 * legacy style.css; rules here win over style.css for the new view markup.
 *
 * Namespace: short, semantic. Pattern matches shell.css. Vars only — no
 * raw color literals (the only inline literals are gradient stops that
 * appear verbatim in the locked mock CSS).
 *
 * Source: Internal/OHE Admin Dashboard/mocks/atelier-os.html
 * Locked: 2026-04-29 (DASHBOARD-005c · Phase 1.2)
 */

/* ============ PAGE HEAD ============ */
.pagehead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.pagehead h1 {
  font-family: var(--type-display);
  font-weight: 600;
  font-size: var(--fs-h1);
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
}
.pagehead .meta {
  font-size: 12px;
  color: var(--secondary);
  margin-top: 4px;
  font-weight: 500;
}
.pagehead .meta strong {
  color: var(--ink);
  font-weight: 600;
  margin: 0 4px;
}
.pagehead .crumbs {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tertiary);
  font-weight: 700;
  margin-bottom: 5px;
}
.pagehead .crumbs em {
  font-style: normal;
  color: var(--accent);
}
.pagehead .actions {
  display: flex;
  gap: 8px;
}

/* ============ BUTTONS ============ */
.btn {
  font-family: var(--type-ui);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 13px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}
.btn:hover {
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.btn.primary {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.btn.primary:hover { background: #000; }
.btn.accent {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.btn.accent:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.btn.ghost:hover { background: var(--surface-2); }

/* ============ KPI STRIP ============ */
.kpis {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.kpi {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.kpi:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.kpi .label {
  font-size: 9.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 4px;
}
.kpi .value {
  font-family: var(--type-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.kpi .value .unit {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--secondary);
  margin-left: 3px;
  font-family: var(--type-ui);
}
.kpi .sub {
  font-size: 10.5px;
  color: var(--tertiary);
  margin-top: 4px;
  font-weight: 500;
}
.kpi.featured::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

/* ============ COMMAND CENTER LAYOUT ============ */
.cc-body {
  display: grid;
  grid-template-columns: 62% 38%;
  gap: 14px;
  flex: 1;
  min-height: 0;
  margin-bottom: 14px;
}
.cc-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

/* ============ PANEL ============ */
.panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider-soft);
}
.panel.flush {
  padding: 0;
}
.panel.fill {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.panel.compact {
  flex-shrink: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.panel.flush .panel-head {
  padding: 10px 16px 8px;
  margin: 0;
}
.panel-head .title {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
}
.panel-head .title .num {
  color: var(--accent);
  margin-right: 5px;
}
.panel-head .tag {
  font-size: 9.5px;
  color: var(--tertiary);
  font-weight: 600;
  letter-spacing: .04em;
  background: var(--surface-2);
  padding: 2px 7px;
  border-radius: 8px;
  border: 1px solid var(--divider-soft);
}

/* ============ PANEL TABLE ============ */
.panel-table {
  flex: 1;
  overflow: auto;
  margin: 0 -16px;
  border-top: 1px solid var(--divider-soft);
}
.panel.flush .panel-table {
  margin: 0;
}
.panel.compact .panel-table {
  flex: 0 0 auto;
  overflow: visible;
}
.panel-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.panel-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 10px;
  text-align: left;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  padding: 7px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--divider);
}
.panel-table thead th.r {
  text-align: right;
}
.panel-table tbody td {
  padding: 8px 16px;
  border-bottom: 1px solid var(--divider-soft);
  vertical-align: middle;
  font-weight: 500;
  color: var(--ink);
}
.panel-table tbody tr:last-child td {
  border-bottom: 0;
}
.panel-table tbody tr {
  transition: background .1s;
}
.panel-table tbody tr:hover {
  background: var(--surface-2);
}
.panel-table tbody tr.overdue {
  background: var(--accent-soft);
}
.panel-table tbody tr.overdue:hover {
  background: #F7E6E4;
}
.panel-table tbody tr.overdue td:first-child {
  position: relative;
}
.panel-table tbody tr.overdue td:first-child::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}
.panel-table tbody tr.empty-row td {
  text-align: center;
  color: var(--tertiary);
  font-weight: 500;
  padding: 18px 16px;
}
.panel-table td.num {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary);
  font-variant-numeric: tabular-nums;
}
.panel-table td.num.r {
  text-align: right;
  color: var(--ink);
}
.panel-table td.r {
  text-align: right;
}
.panel-table td.name em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  font-size: 12.5px;
  display: block;
}
.panel-table td.name .meta {
  font-size: 10.5px;
  color: var(--tertiary);
  font-weight: 500;
  margin-top: 1px;
}
.panel-table td.client {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 12px;
}
.panel-table .proj-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.panel-table .proj-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.panel-table .row-action {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--divider-soft);
  border-radius: var(--radius-sm);
  padding: 4px 9px;
  cursor: pointer;
  font-family: var(--type-ui);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
}
.panel-table .row-action:hover {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}
.panel-table .row-action.qc {
  border-color: var(--accent);
  color: var(--accent);
}
.panel-table .row-action.qc:hover {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.panel-table .row-action.danger {
  border-color: var(--divider-soft);
  color: var(--negative);
  font-size: 13px;
  padding: 2px 8px;
  line-height: 1;
}
.panel-table .row-action.danger:hover {
  background: var(--negative);
  color: var(--surface);
  border-color: var(--negative);
}
.panel-table th.row-action-col,
.panel-table td.row-action-col {
  width: 36px;
  text-align: right;
}

/* Multi-button action cell: stack neatly on tight widths */
.panel-table td.row-actions-cell {
  white-space: nowrap;
}
.panel-table td.row-actions-cell .row-action + .row-action {
  margin-left: 4px;
}
.panel-table .row-action.ghost {
  color: var(--tertiary);
  border-color: var(--divider-soft);
  background: transparent;
}
.panel-table .row-action.ghost:hover {
  color: var(--ink-2);
  border-color: var(--ink-2);
  background: var(--surface);
}

/* On Hold panel — collapsed by default via <details> */
.held-panel summary {
  cursor: pointer;
  list-style: none;
}
.held-panel summary::-webkit-details-marker { display: none; }
.held-panel summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  color: var(--tertiary);
  font-size: 9px;
  transition: transform .12s ease;
}
.held-panel[open] summary::before {
  transform: rotate(90deg);
}

/* ============ STATUS PILL ============ */
.status {
  font-size: 10.5px;
  color: var(--ink-2);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: .02em;
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--info);
  box-shadow: 0 0 0 2px rgba(10, 102, 194, .15);
}
.status.engineering::before { background: var(--info); box-shadow: 0 0 0 2px rgba(10, 102, 194, .15); }
.status.drafting::before    { background: var(--warning); box-shadow: 0 0 0 2px rgba(180, 83, 9, .15); }
.status.qc::before          { background: var(--accent); box-shadow: 0 0 0 2px rgba(155, 44, 44, .15); }
.status.eor::before         { background: var(--accent-2); box-shadow: 0 0 0 2px rgba(127, 29, 29, .15); }
.status.client::before      { background: var(--tertiary); box-shadow: 0 0 0 2px rgba(134, 134, 139, .15); }
.status.revision::before    { background: var(--warning); box-shadow: 0 0 0 2px rgba(180, 83, 9, .15); }
.status.delivered::before,
.status.complete::before    { background: var(--positive); box-shadow: 0 0 0 2px rgba(31, 122, 58, .15); }
.status.invoice::before     { background: var(--positive); box-shadow: 0 0 0 2px rgba(31, 122, 58, .15); }
.status.estimate::before    { background: var(--tertiary); box-shadow: 0 0 0 2px rgba(134, 134, 139, .15); }

/* ============ DUE CHIP ============ */
.due {
  font-size: 12px;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.due .day {
  color: var(--secondary);
  font-weight: 500;
}
.due.warn {
  color: var(--accent);
}
.due.warn .day {
  color: var(--accent);
}
.due .tag-overdue {
  font-size: 9.5px;
  letter-spacing: .08em;
  font-weight: 700;
  margin-left: 4px;
}

/* ============ RIGHT STACK ============ */
.right-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

/* ============ COMPACT CALENDAR ============ */
.cal-mini {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider-soft);
  flex-shrink: 0;
}
.cal-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}
.cal-mini-head .name {
  font-family: var(--type-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
}
.cal-mini-head .summary {
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--secondary);
  font-weight: 600;
  flex: 1;
  text-align: center;
}
.cal-mini-head .summary .pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 700;
  margin-right: 5px;
}
.cal-mini-head .nav {
  display: flex;
  gap: 1px;
  align-items: center;
}
.cal-mini-head .nav button {
  background: transparent;
  border: 1px solid transparent;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  cursor: pointer;
  color: var(--secondary);
  font-size: 14px;
  line-height: 1;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cal-mini-head .nav button:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.cal-mini-dows {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--divider-soft);
  margin-bottom: 5px;
}
.cal-mini-dows .dow {
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tertiary);
  font-weight: 700;
  text-align: center;
}
.cal-mini-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-mini-cell {
  background: var(--surface-2);
  border: 1px solid var(--divider-soft);
  border-radius: 5px;
  padding: 4px 5px;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  font-size: 10.5px;
}
.cal-mini-cell:hover {
  background: var(--surface);
  border-color: var(--divider);
}
.cal-mini-cell.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  pointer-events: none;
}
.cal-mini-cell.past { opacity: .45; }
.cal-mini-cell.weekend { background: var(--surface-2); }
.cal-mini-cell.weekend.past { background: transparent; }
.cal-mini-cell.today {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.cal-mini-cell.has-overdue {
  background: var(--accent-soft);
  border-color: #EBC8C5;
}
.cal-mini-cell .n {
  font-family: var(--type-display);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -.01em;
}
.cal-mini-cell.today .n { color: var(--surface); }
.cal-mini-cell.past:not(.has-overdue) .n { color: var(--secondary); }
.cal-mini-cell .c {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--surface);
  padding: 0 4px;
  border-radius: 6px;
  background: var(--ink-2);
  min-width: 14px;
  text-align: center;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.cal-mini-cell.today .c { background: var(--accent); }
.cal-mini-cell .c.high { background: var(--warning); }
.cal-mini-cell .c.overdue { background: var(--accent); }

/* ============ FILTER ROW ============ */
.filter-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}
.filter-field.grow { flex: 1; }
.filter-field.action { justify-content: flex-end; min-width: 0; }
.filter-field > label {
  font-size: 9.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
}
.filter-input,
select.filter-input,
input.filter-input {
  font-family: var(--type-ui);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  width: 100%;
  height: 32px;
}
.filter-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(29, 29, 31, .08);
}
.filter-input::placeholder { color: var(--tertiary); }

/* ============ EDIT-CELL INPUTS (HTMX edit-in-place affordance) ============ */
.panel-table.index .edit-input,
.editable-cell .edit-input {
  font-family: var(--type-ui);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  outline: none;
  width: 100%;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.panel-table.index select.edit-input,
.editable-cell select.edit-input {
  cursor: pointer;
}
.panel-table.index .edit-input:focus,
.editable-cell .edit-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(29, 29, 31, .12);
}

/* ============ INDEX TABLE (panel-table variant for full-width index views) ============ */
.panel-table.index table {
  min-width: 100%;
  width: max-content;
}
.panel-table.index tbody td {
  white-space: nowrap;
}
.panel-table.index td.notes,
.panel-table.index td.wrap {
  white-space: normal;
}
/* Pin the rightmost action column so it stays visible during horizontal scroll */
.panel-table.index thead th:last-child,
.panel-table.index tbody td:last-child {
  position: sticky;
  right: 0;
  background: var(--surface);
  box-shadow: -1px 0 0 var(--divider);
}
.panel-table.index thead th:last-child {
  background: var(--surface-2);
  z-index: 2;
}
.panel-table.index tbody tr:hover td:last-child {
  background: var(--surface-2);
}
.panel-table.index thead th {
  cursor: default;
  white-space: nowrap;
}
.panel-table.index thead th.sortable {
  cursor: pointer;
  user-select: none;
}
.panel-table.index thead th.sortable:hover {
  color: var(--ink);
}
.panel-table.index thead th.sortable[data-sort="asc"]::after { content: " ↑"; color: var(--accent); }
.panel-table.index thead th.sortable[data-sort="desc"]::after { content: " ↓"; color: var(--accent); }
.panel-table.index td.editable-cell {
  cursor: text;
}
.panel-table.index td.editable-cell:hover {
  background: var(--accent-soft);
}
.panel-table.index td.dim {
  color: var(--tertiary);
  font-weight: 500;
}
.panel-table.index td.notes {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
  font-size: 12px;
}

/* ============ REVENUE CARDS ============ */
.rev-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.rev-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--divider-soft);
}
.rev-card .label {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 8px;
}
.rev-card .figure {
  font-family: var(--type-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  font-variant-numeric: tabular-nums;
}
.rev-card .figure sup {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
  margin-right: 1px;
  padding-top: 5px;
}
.rev-card .pace {
  margin-top: 10px;
  height: 5px;
  background: var(--divider-soft);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.rev-card .pace::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink-2) 100%);
  width: var(--w, 90%);
  border-radius: 3px;
}
.rev-card .pace.behind::after {
  background: linear-gradient(90deg, var(--negative) 0%, var(--accent) 100%);
}
.rev-card .pace-label {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--secondary);
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}
.rev-card .delta {
  font-size: 11px;
  color: var(--secondary);
  margin-top: 6px;
  font-weight: 500;
}
.rev-card .delta .pos {
  color: var(--positive);
  font-weight: 600;
}
.rev-card .delta .neg {
  color: var(--negative);
  font-weight: 600;
}

/* ============ COMMAND PALETTE (DASHBOARD-046) ============ */
/* ⌘K modal — fast keyboard-driven navigation across routes/projects/clients/AHJs */

.cp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 23, .35);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  backdrop-filter: blur(2px);
}
.cp-overlay.open {
  display: flex;
}
.cp-modal {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25), 0 4px 12px rgba(0, 0, 0, .12);
  width: min(640px, 92vw);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--divider);
}
.cp-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--divider-soft);
}
.cp-ico {
  font-size: 16px;
  color: var(--tertiary);
}
.cp-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font: 15px/1.4 'Inter', system-ui, sans-serif;
  color: var(--ink);
}
.cp-input::placeholder {
  color: var(--tertiary);
}
.cp-kbd {
  font: 11px/1 'Inter', system-ui, sans-serif;
  font-weight: 600;
  color: var(--tertiary);
  border: 1px solid var(--divider);
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--surface-2);
}
.cp-results {
  flex: 1;
  overflow-y: auto;
  padding: 6px 0;
}
.cp-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  cursor: pointer;
  border-left: 2px solid transparent;
  text-decoration: none;
  color: var(--ink);
}
.cp-result:hover,
.cp-result.active {
  background: var(--surface-2);
  border-left-color: var(--accent);
}
.cp-result-kind {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tertiary);
  min-width: 56px;
}
.cp-result-body {
  flex: 1;
  min-width: 0;
}
.cp-result-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-result-hint {
  font-size: 11.5px;
  color: var(--secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cp-result-go {
  font-size: 12px;
  color: var(--tertiary);
  opacity: 0;
  transition: opacity .15s;
}
.cp-result.active .cp-result-go {
  opacity: 1;
}
.cp-empty {
  padding: 20px;
  text-align: center;
  color: var(--tertiary);
  font-size: 13px;
}
.cp-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px;
  border-top: 1px solid var(--divider-soft);
  background: var(--surface-2);
  font-size: 11px;
  color: var(--tertiary);
}
.cp-foot kbd {
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 3px;
  padding: 2px 5px;
  margin: 0 3px;
  color: var(--secondary);
}
