/* Palette and compact geometry follow marketplace-frontend's globals.css. */
:root {
  --base: #f0eee9;
  --surface: #f8f7f4;
  --line: rgba(53, 46, 47, .16);
  --ink: #352e2f;
  --muted: #68615e;
  --blue: #6a88b8;
  --blue-dark: #49658f;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--base);
  font-synthesis: none;
  line-height: 1.5;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 5vw; border-bottom: 1px solid var(--line); }
.account { display: flex; align-items: center; gap: 16px; }
.brand { font-size: 14px; letter-spacing: .12em; font-weight: 600; text-decoration: none; color: inherit; }
.brand span { font-weight: 400; letter-spacing: 0; margin-left: 16px; color: var(--muted); }
main { max-width: 1120px; margin: auto; padding: 32px 32px 48px; min-height: 80vh; position: relative; }
#boot, #login { position: absolute; top: 32px; left: 32px; right: 32px; }
#content[hidden] { display: block!important; visibility: hidden; pointer-events: none; }
#signout[hidden] { display: inline-block!important; visibility: hidden; }
h1 { font-family: "Times New Roman", Georgia, serif; font-size: 52px; font-weight: 400; letter-spacing: -.045em; margin: 4px 0 8px; line-height: 1.1; }
h2 { font-size: 19px; font-weight: 500; margin: 0; }
h3 { font-size: 15px; font-weight: 500; margin-top: 28px; }
.eyebrow { font-size: 11px; letter-spacing: .12em; font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); font-size: 13px; line-height: 1.65; }
.heading, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.heading { margin-bottom: 8px; }
.section-heading { margin: 32px 0 16px; }
button { font: inherit; font-size: 13px; font-weight: 500; background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 10px 16px; min-height: 44px; cursor: pointer; color: inherit; }
button:hover { background: #e5e2dc; }
button:disabled { opacity: .45; cursor: default; }
.primary { background: var(--ink); color: var(--base); border-color: var(--ink); }
.primary:hover { background: #51494a; }
.tag { font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 5px 9px; background: #e5e2dc; border-radius: 4px; }
.health { padding: 28px 30px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid #9b928a; border-radius: 4px; }
.health { min-height: 190px; position: relative; }
.health h2 { min-height: 39px; }
.health p { min-height: 42px; }
.metric { min-height: 148px; }
.history-table { height: 270px; overflow-y: auto; scrollbar-gutter: stable; }
.history-table table { table-layout: fixed; min-width: 740px; }
.history-table th:first-child { width: 33%; }
.history-table th:nth-child(2) { width: 23%; }
.history-table th:nth-child(3) { width: 20%; }
.history-table th:nth-child(4) { width: 13%; }
.history-table th { position: sticky; top: 0; z-index: 1; }
#refresh { min-width: 116px; }
#signin { min-width: 210px; }
#environment { width: 92px; text-align: center; }
.message-slot { min-height: 40px; }
.message-slot p { margin: 4px 0; padding: 9px 12px; font-size: 12px; }
.detail { min-height: 410px; }
.detail .table-wrap { min-height: 178px; }
.loading #health-title, .loading #health-note, .loading .metric strong, .loading .metric p,
.detail.loading #run-description, .detail.loading #run-context {
  color: transparent; background: #e6e3dd; border-radius: 4px;
}
.loading .metric p { min-height: 22px; }
.loading #runs td { height: 76px; color: var(--muted); }
.health h2 { font-size: 26px; letter-spacing: -.025em; font-weight: 400; margin-top: 6px; }
.health p { font-size: 14px; margin: 8px 0 0; color: var(--muted); max-width: 90ch; padding-right: 190px; }
.health button { position: absolute; right: 20px; bottom: 16px; }
.health.good { border-left-color: #55735d; }
.health.attention { border-left-color: #b2512e; background: #f8f1e9; }
.health.active { border-left-color: var(--blue); background: #edf0f4; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.metric { border: 1px solid var(--line); background: var(--surface); border-radius: 4px; padding: 24px 28px; }
.metric h2 { font-size: 12px; color: var(--muted); font-weight: 400; }
.metric strong { display: block; font-size: 22px; font-weight: 400; letter-spacing: -.025em; margin-top: 8px; }
.metric p { margin: 5px 0 0; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
table { border-collapse: collapse; width: 100%; white-space: nowrap; font-size: 13px; }
th { text-align: left; font-size: 11px; letter-spacing: .035em; font-weight: 500; color: var(--muted); background: #e9e7e2; padding: 14px 18px; }
td { padding: 16px 18px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
td:last-child { text-align: right; }
td[colspan] { text-align: left; white-space: normal; }
.badge { display: inline-block; padding: 4px 9px; font-size: 11px; font-weight: 500; border-radius: 4px; background: #e9e7e2; color: #5c5650; }
.badge.succeeded { background: #e5ebe3; color: #385b41; }
.badge.failed, .badge.blocked, .badge.stalled { background: #f3e4d9; color: #8b4225; }
.badge.running { background: #e2e8f0; color: #405d87; }
.pagination { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.detail { margin-top: 28px; padding: 0 28px 28px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); scroll-margin-top: 24px; }
.detail .section-heading { margin-top: 24px; }
.detail p { margin: 8px 0; }
.detail table td:last-child { text-align: left; }
summary { cursor: pointer; font-size: 13px; padding: 20px 0 0; font-weight: 500; }
pre { background: #352e2f; color: #f0eee9; padding: 20px; border-radius: 4px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 350px; overflow: auto; font-size: 12px; line-height: 1.7; }
.freshness { margin-top: 28px; font-size: 12px; }
.welcome { padding: 60px 0; max-width: 540px; }
.welcome h1 { font-size: 72px; }
.welcome button { margin-top: 20px; }
[role=alert] { background: #f8eee5; border: 1px solid #d8bba5; padding: 14px; border-radius: 4px; color: #8b4225; font-size: 14px; }
footer { font-size: 11px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
[hidden] { display: none!important; }
@media(max-width:640px) {
  main { padding: 28px 20px 40px; }
  .brand span { display: none; }
  .metrics { grid-template-columns: 1fr; gap: 12px; }
  .metric, .health { padding: 20px; }
  .health h2 { font-size: 23px; }
  .health { min-height: 260px; }
  .health p { padding-right: 0; }
  #boot, #login { top: 28px; left: 20px; right: 20px; }
  .health h2 { min-height: 69px; }
  .message-slot { min-height: 64px; }
  .section-heading { align-items: flex-start; gap: 8px; flex-direction: column; }
  h1 { font-size: 40px; }
  .detail { padding: 0 16px 20px; }
  .detail .section-heading { flex-direction: row; align-items: center; }
  .welcome h1 { font-size: 54px; }
  th, td { padding: 12px; }
  .history-table { height: 344px; }
  .history-table table { min-width: 0; }
  .history-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .history-table tr { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; padding: 16px; border-bottom: 1px solid var(--line); }
  .history-table td { padding: 0; border: 0; grid-column: 1; font-size: 12px; white-space: normal; }
  .history-table td:last-child:not([colspan]) { grid-column: 2; grid-row: 1 / 5; align-self: center; }
  .history-table td:nth-child(3)::before { content: 'Products checked · '; color: var(--muted); }
  .history-table td:nth-child(4)::before { content: 'Duration · '; color: var(--muted); }
  .history-table td[colspan] { grid-column: 1 / -1; }
  footer { align-items: flex-start; font-size: 10px; }
}
