/* see.dev workspace shell and Clerk flow; compact table treatment follows QuotaQueue. */
:root {
  color-scheme: light;
  --ink: #17242b;
  --muted: #647076;
  --line: #dce2e1;
  --paper: #fff;
  --subtle: #f7f8f8;
  --green: #20584a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; min-height: 32px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 5px; padding: 5px 11px; white-space: nowrap; }
button:hover { background: var(--subtle); border-color: #b9c6c0; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
a { color: inherit; }
input, select, textarea { display: block; min-width: 0; width: 100%; min-height: 32px; padding: 5px 9px; border: 1px solid #cbd3cf; border-radius: 5px; background: #fff; color: var(--ink); }
textarea { resize: vertical; }
label { display: grid; gap: 5px; font-size: 12px; }
h1 { font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -.6px; margin: 0; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
p { max-width: 850px; }
code { font: 12px/1.5 ui-monospace, SFMono-Regular, monospace; overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
.topbar { min-height: 58px; border-bottom: 1px solid var(--line); padding: 8px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; font-size: 20px; font-weight: 650; letter-spacing: -.7px; }
.brand span { display: inline; font-size: 11px; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-left: 14px; }
#account-bar { display: flex; align-items: center; gap: 12px; font-size: 12px; }
main { width: 100%; margin: 0; padding: 0 24px; min-height: calc(100vh - 115px); }
nav { display: flex; gap: 24px; margin: 0 0 18px; border-bottom: 1px solid var(--line); }
nav button, nav a { border: 0; border-radius: 0; background: none; padding: 12px 0; color: var(--muted); border-bottom: 2px solid transparent; text-decoration: none; font-size: 13px; }
nav button[aria-current] { border-bottom-color: var(--green); color: var(--ink); font-weight: 600; }
nav a:hover { color: var(--ink); }
nav a[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.section-heading p { margin: 4px 0 0; }
.heading-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eyebrow { font-size: 10px; letter-spacing: 1px; color: var(--muted); margin: 0; }
.muted { color: var(--muted); font-size: 12px; }
.metrics { display: flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 6px; margin: 14px 0; background: var(--subtle); }
.metric { display: flex; gap: 8px; align-items: baseline; padding: 8px 14px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.metric h2 { font-size: 12px; font-weight: 400; color: var(--muted); margin: 0; }
.catalog-toolbar { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--subtle); }
.search-field { position: relative; flex: 1; min-width: 220px; }
.search-field input { padding-left: 31px; }
.search-field svg { position: absolute; width: 15px; height: 15px; left: 10px; top: 9px; fill: none; stroke: var(--muted); stroke-width: 1.7; pointer-events: none; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filters select { width: auto; max-width: 225px; font-size: 12px; }
.filter-label { font-size: 12px; color: var(--muted); padding: 0 3px; }
.filter-count { font-size: 11px; white-space: nowrap; color: var(--green); }
#catalog-count { margin: 9px 0; }
.table-meta { display: flex; justify-content: space-between; gap: 12px; margin: 14px 0 9px; }
.table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; min-width: 900px; border-collapse: collapse; text-align: left; font-size: 13px; }
th { height: 36px; color: #59656a; background: var(--subtle); font-size: 12px; font-weight: 550; white-space: nowrap; }
td, th { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
td + td, th + th { border-left: 1px solid #edf0ee; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #f8faf9; }
td { white-space: nowrap; }
td small { display: block; color: var(--muted); font-size: 11px; line-height: 1.4; font-weight: 400; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.date-cell { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.actions-column { text-align: right; width: 1%; }
td button { min-height: 28px; padding: 3px 9px; font-size: 12px; }
.vendor-name { display: inline-flex; align-items: center; gap: 9px; border: 0; background: none; padding: 0; text-align: left; font-size: 13px; font-weight: 550; max-width: 280px; white-space: normal; }
.vendor-name:hover { background: none; color: var(--green); }
.vendor-label { display: grid; min-width: 0; }
.vendor-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vendor-logo { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); font-size: 10px; font-weight: 600; overflow: hidden; }
.vendor-logo img { display: block; width: 24px; height: 24px; object-fit: contain; }
.badge { display: inline-block; padding: 2px 7px; border: 1px solid var(--line); border-radius: 4px; background: #eef2ee; font-size: 11px; font-weight: 500; color: var(--green); white-space: nowrap; }
.badge.warning { background: #fbf1df; color: #805a1a; border-color: #ebd9b9; }
.badge.error { background: #f8eae6; color: #973f30; border-color: #edd0c8; }
.panel { padding: 16px; margin: 16px 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.panel .section-heading h2 { margin: 2px 0 6px; }
#detail-body { display: grid; gap: 14px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 10px; }
.detail-facts, #detail-body dl { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 7px; font-size: 12px; margin: 0; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
#detail-body a { overflow-wrap: anywhere; }
#runtime-body .detail-facts { max-width: 850px; }
form { display: flex; align-items: end; gap: 12px; margin: 16px 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
.form-actions, .detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.form-actions, .wide { grid-column: 1/-1; }
.detail-actions { margin-top: 12px; }
.primary { background: var(--green); border-color: var(--green); color: #fff; }
.primary:hover { background: #184538; }
.quiet { border: 0; background: none; color: var(--muted); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; align-items: start; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.checklist input { width: 15px; height: 15px; min-height: 15px; margin: 3px 0; flex: none; }
.checklist label { display: block; font-size: 12px; }
.checklist small { display: block; color: var(--muted); }
.run-card { padding: 8px 0; border-bottom: 1px solid var(--line); }
.run-meta { display: flex; gap: 8px 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.event-list { list-style: none; padding: 0; margin: 14px 0; }
.event-list li { position: relative; padding: 0 0 18px 18px; border-left: 1px solid var(--line); margin-left: 4px; }
.event-list li:before { content: ""; position: absolute; top: 7px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.event-list li:last-child { padding-bottom: 0; border-left-color: transparent; }
.event-list h3 { font-size: 13px; font-weight: 550; margin: 0 0 4px; }
.event-list p { margin: 4px 0; font-size: 12px; }
.evidence { margin: 12px 0; padding: 10px; border: 1px solid var(--line); background: var(--subtle); }
.evidence img { display: block; max-width: 100%; max-height: 650px; border: 1px solid var(--line); }
.evidence figcaption { font-size: 12px; color: var(--muted); margin: 6px 0; }
.handoff { padding: 12px 14px; background: #fbf5e9; border-left: 3px solid #b2802d; margin: 12px 0; }
.handoff h3 { font-size: 13px; margin: 0 0 4px; }
.handoff p { font-size: 12px; margin: 4px 0; }
.empty { padding: 28px 18px; border: 1px dashed var(--line); border-radius: 6px; }
.empty h2 { margin: 0; }
.empty p { margin: 6px 0 12px; color: var(--muted); }
#load-more-vendors, #load-more-runs { margin-top: 10px; }
.login { padding: 48px 0; max-width: 550px; }
.login h1 { font-size: 38px; line-height: 1.1; margin: 10px 0 18px; }
.login > p { color: var(--muted); }
.login details { margin-top: 24px; }
summary { cursor: pointer; }
#token-login label { flex: 1; }
#notice { background: #e9eee9; padding: 9px 12px; margin: 12px 0; border-left: 3px solid var(--green); }
#notice[data-kind="error"] { background: #f8eae6; border-left-color: #973f30; }
footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 12px 24px; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; }
h2:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
@media (max-width: 1000px) {
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .filters { border-top: 1px solid var(--line); padding-top: 8px; }
}
@media (max-width: 760px) {
  button, td button { min-height: 36px; }
  input, select { min-height: 40px; }
  .topbar { padding: 8px 14px; }
  .brand span, #account-name { display: none; }
  main { padding: 0 14px; }
  nav { gap: 20px; overflow-x: auto; white-space: nowrap; margin-bottom: 14px; }
  .section-heading { align-items: start; gap: 10px; }
  .heading-actions { justify-content: flex-end; gap: 5px; }
  .heading-actions .badge { display: none; }
  .metrics { display: grid; grid-template-columns: 1fr 1fr; }
  .metric { padding: 7px 10px; justify-content: space-between; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .filters label { flex: 1; min-width: 140px; }
  .filters select { width: 100%; max-width: none; font-size: 16px; }
  .filter-label { display: none; }
  .search-field input, select, textarea { font-size: 16px; }
  .search-field svg { top: 13px; }
  .detail-grid, .field-grid { grid-template-columns: 1fr; }
  .detail-grid { gap: 14px; }
  .detail-facts, #detail-body dl { grid-template-columns: 110px minmax(0, 1fr); }
  form { flex-wrap: wrap; }
  footer { padding: 12px 14px; gap: 6px; flex-direction: column; }
}
