/* kthxbye-specific styles on top of TCP UI (web/tcp-ui/tcp-ui.css). Keep this small: anything
   reusable belongs in TCP UI itself. */

:root { --tone-tests: #17a589; --tone-jobs: #4f7cff; --tone-monitor: #8a5cf5; }

/* Sign-in */
.signin {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent),
    radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--navy) 22%, transparent), transparent),
    var(--bg);
}
.signin-card { width: min(440px, 100%); padding: 32px; display: grid; gap: 14px; text-align: center; }
.signin-brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 6px; }
.signin-brand img { height: 34px; padding: 4px 6px; background: #fff; border-radius: 8px; }
.signin-brand span { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.signin-card .callout { text-align: left; }

/* Top bar bits */
.menu-toggle { display: none; }
.user-button { padding: 0 6px; gap: 8px; }
.user-button .user-name { font-weight: 800; color: var(--text); }
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .user-button .user-name { display: none; }
}

/* Full-bleed panes (workbench, app pages) */
.frames { flex: 1; display: flex; min-height: 0; }
.frames iframe { flex: 1; width: 100%; border: 0; background: var(--surface); }
.pane-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.pane-toolbar .title { display: flex; align-items: center; gap: 8px; font-weight: 800; }

/* Dashboard */
.greeting { font-size: 27px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.project-card { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.project-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; min-width: 0; }
.project-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.project-title h3 { margin: 0; font-size: 17px; }
.project-title .mono { font-size: 12px; color: var(--muted); }
.facts { display: grid; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex: 1; }
.fact { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; font-size: 14px; min-width: 0; }
.fact .badge { justify-self: start; }
.fact-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.fact-value { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; color: var(--text); }
.fact-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.fact-value.ok .fact-dot { background: var(--success); }
.fact-value.warn .fact-dot { background: var(--warning); }
.fact-value.bad .fact-dot { background: var(--danger); }
.fact-value.bad { color: var(--danger-text); }
.fact-value.busy .fact-dot { background: var(--cyan); animation: pulse 2s ease-in-out infinite; }
.fact-value.idle { color: var(--muted); font-weight: 600; }
.fact-note { color: var(--muted); font-weight: 600; font-size: 13px; white-space: nowrap; }
.project-last { display: flex; align-items: center; gap: 8px; padding: 12px 20px; font-size: 13px; color: var(--muted); min-width: 0; }
.project-last .truncate { flex: 1; min-width: 0; }
.project-last .when { flex: none; color: var(--faint); font-weight: 700; font-size: 12px; }
.client-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.attention-item .main-text strong { font-size: 15px; }

/* Activity feed */
.feed-item { align-items: flex-start; }
.feed-item .main-text { overflow-wrap: anywhere; }
.feed-item pre.code { margin-top: 6px; padding: 6px 10px; font-size: 12px; }
.feed-item .when { flex: none; align-self: flex-start; color: var(--faint); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Logs */
.logs-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.logs-view pre.log { flex: 1; margin: 0; border-radius: 0; box-shadow: none; min-height: 0; }

/* Deploys and approvals */
.deploy-log-row td { padding: 0 14px 14px; }
.deploy-log-row pre.log { max-height: 360px; }
.request.pending { box-shadow: var(--shadow-1), 0 0 0 1px color-mix(in srgb, var(--cyan) 55%, var(--border)); }
.request pre.code { margin-top: 10px; }

/* Tests */
.latest-head { display: flex; align-items: center; gap: 16px; }
.latest-head h2 { margin: 0 0 4px; font-size: 22px; }
.latest-head .main-text { flex: 1; min-width: 0; }
.results-table .suite-row td { background: var(--surface-2); padding-top: 8px; padding-bottom: 8px; }
.results-table .result-fail .primary { color: var(--danger-text); }
.results-table .result-skip .primary { color: var(--muted); }
.running-card { box-shadow: 0 0 0 1px var(--cyan), var(--shadow, none); }
.readiness .list-item { align-items: flex-start; }

/* Jobs */
.job-card.problem { box-shadow: 0 0 0 1px var(--danger), var(--shadow, none); }
.job-card .card-header h3 .badge { font-size: 12px; }
.failures-row td { background: var(--surface-2); }
.failures { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }

/* Monitoring */
.findings .list-item { padding-left: 0; padding-right: 0; }
.latest-run.problems { box-shadow: 0 0 0 1px var(--danger), var(--shadow, none); }

/* Empty placeholders (sections not drawn yet) take no space in stacks */
.stack > div:empty { display: none; }

/* Inbox */
.inbox-heading { font-size: 17px; margin: 6px 0 0; display: flex; align-items: center; gap: 8px; }
.option-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); box-shadow: 0 0 0 1px var(--border); cursor: pointer; background: var(--surface); }
.option-card:hover { box-shadow: 0 0 0 1px var(--border-strong); }
.option-card.selected { box-shadow: 0 0 0 2px var(--cyan); background: color-mix(in srgb, var(--cyan) 6%, var(--surface)); }
.option-card input { margin-top: 4px; accent-color: var(--cyan-strong); }
.option-card .option-text { display: grid; gap: 4px; flex: 1; min-width: 0; }
.option-card .who { color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.option-card .who .icon { width: 14px; height: 14px; }
.decision-card .context .prose { margin-top: 8px; font-size: 14px; }
.change-card .prose { font-size: 15px; }

/* Dashboard: attention and activity side by side, the same height */
.home-pair { align-items: stretch; }
.home-pair > div { display: flex; }
.home-pair > div > .card { flex: 1; display: flex; flex-direction: column; }
.home-pair > div > .card > .card-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.home-pair > div > .card > .card-body:has(> .list) { justify-content: flex-start; }

/* Connect your Claude account (servers) */
.frames-layer { position: relative; }
.connect-claude { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(3px); z-index: 2; }
.connect-card { width: min(520px, 100%); padding: 18px 8px; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Containers: long image names wrap inside the table instead of widening it */
.image-cell { max-width: 220px; overflow-wrap: anywhere; }
