/* Page-area styles on top of console.css (design.md).
   Owner: Agent 1: Jobs, Candidates, Schedules, Reports lists, online applications, the organisation overview, logs and prompt sets.
   Only this area's own patterns belong here; shared components live in console.css. */

/* A long value in a table cell (a job title, a session id): one line, clipped,
   with the full text in its title (design.md 4.9 "Person": the email truncates
   the same way). */
.cell-clip{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.cell-clip.sm{max-width:180px}

/* The ok note's sibling for any other tone (design.md 4.9 "Ok note"): a queued
   or failed invite under the Schedules Focus column. */
.tone-note{display:inline-flex;align-items:center;gap:5px;color:var(--tone,var(--text-2));font-size:12.5px;font-weight:500;white-space:nowrap}
.tone-note .i{width:13px;height:13px;stroke-width:2.2}

/* Online applications: the review tag and the "Read resume" action sit under
   the applicant's contact line. */
.person-text .review-tag,.person-text .read-resume{align-self:flex-start;margin-top:6px}
.person .avatar .i{width:17px;height:17px}

/* Organisation / interviewer overview: the hero, two-up card grids, and the
   "next interviews" / "latest reports" lists. */

/* The hero on the product's grain gradient (design.md 2.9): the sidebar's
   texture and blue glow, composed for a wide, short box -- the glow sits top
   right behind the shortcuts, so the text on the left stays on the calm base. */
.ov-hero{
  display:flex;align-items:center;justify-content:space-between;gap:20px 32px;
  padding:26px 28px;border:1px solid rgba(25,50,110,.12);border-radius:20px;
  background-color:#E8E9EC;
  background-image:
    var(--grain-light),
    radial-gradient(ellipse 55% 160% at 90% 0%, rgba(37,99,235,.42) 0%, rgba(52,112,238,.3) 30%, rgba(96,140,242,.14) 62%, rgba(160,184,238,0) 100%),
    radial-gradient(ellipse 45% 140% at 6% 120%, rgba(80,130,242,.2) 0%, rgba(110,152,242,0) 100%),
    linear-gradient(to right, #ECEDF0 0%, #E6E8EC 55%, #DFE5F0 100%);
  background-size:200px 200px, 100% 100%, 100% 100%, 100% 100%;
  background-repeat:repeat, no-repeat, no-repeat, no-repeat;
  background-blend-mode:overlay, normal, normal, normal;
}
:root[data-theme="dark"] .ov-hero{
  border-color:rgba(255,255,255,.07);
  background-color:#121419;
  background-image:
    var(--grain-dark),
    radial-gradient(ellipse 55% 160% at 90% 0%, rgba(61,123,247,.42) 0%, rgba(50,110,235,.26) 32%, rgba(40,90,200,.1) 64%, rgba(20,30,60,0) 100%),
    radial-gradient(ellipse 45% 140% at 6% 120%, rgba(61,123,247,.16) 0%, rgba(61,123,247,0) 100%),
    linear-gradient(to right, #16181D 0%, #14161B 60%, #13161D 100%);
}
.ov-hero-text{min-width:0}
.ov-eyebrow{display:inline-flex;align-items:center;padding:4px 11px;border:1px solid rgba(37,99,235,.28);border-radius:999px;background:rgba(255,255,255,.6);color:var(--brand);font-size:11.5px;font-weight:600;line-height:1.4;letter-spacing:.09em;text-transform:uppercase}
.ov-hero-title{margin:12px 0 6px;color:#0F1724;font-size:24px;font-weight:600;line-height:1.2;letter-spacing:-.02em}
.ov-hero-desc{max-width:64ch;margin:0;color:#2A3444;font-size:14px;line-height:1.55}
:root[data-theme="dark"] .ov-eyebrow{border-color:rgba(143,178,255,.3);background:rgba(255,255,255,.06);color:#8FB2FF}
:root[data-theme="dark"] .ov-hero-title{color:#F3F5F8}
:root[data-theme="dark"] .ov-hero-desc{color:#C4CCD8}
.ov-hero-actions{flex:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ov-hero-actions .btn{justify-content:center;min-width:150px}
@media (max-width:720px){
  .ov-hero{flex-direction:column;align-items:stretch;padding:20px}
  .ov-hero-title{font-size:21px}
  .ov-hero-actions .btn{min-width:0}
}
.two-up{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.two-up > *{min-width:0}
.ov-span{grid-column:1/-1}
.ov-list{display:flex;flex-direction:column}
.ov-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -10px;padding:11px 10px;border-radius:12px;color:inherit;text-decoration:none;transition:background .12s var(--ease)}
a.ov-row:hover{background:var(--hover)}
.ov-row + .ov-row{box-shadow:0 -1px 0 var(--line)}
.ov-row-text{flex:1;min-width:0}
.ov-row-end{flex:none;text-align:right}
.ov-empty{padding:20px 8px 8px}
.ov-empty .empty-box p{margin-bottom:0}
/* An insight strip with nothing to say, or KPI boxes cleared by a failed load,
   take no room in the page's gap. */
#overviewInsights:empty,#logsInsights:empty,#overviewMetrics:empty,#logsOverview:empty,#logsCharts:empty{display:none}
@media (max-width:1100px){
  .two-up{grid-template-columns:minmax(0,1fr)}
}

/* Logs: each tab's toolbar, messages and table panel stack like the page;
   the audit toolbar has no search, so its chips start at the left. */
.logs-panel{display:flex;flex-direction:column;gap:14px;min-width:0}
.logs-panel > .toolbar{margin:0}
.logs-tools{margin-left:0}
#logsTabs{align-self:flex-start}
.dot-label{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.logs-detail{gap:18px;padding-bottom:24px}
.logs-flow-card > .dlg-body{padding-bottom:24px}
.logs-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.logs-json{display:flex;flex-direction:column;gap:8px;min-width:0}
.logs-json-title{margin:0;color:var(--text);font-size:13.5px;font-weight:600}
.logs-json pre.code{max-height:320px}
.logs-flow-card{display:flex;flex-direction:column}
pre.code.logs-pre{max-height:min(62vh,640px);font-size:12px}
@media (max-width:720px){
  .logs-compare{grid-template-columns:minmax(0,1fr)}
}

/* Interview Orchestrator: the prompt set form's brief editor and the variable
   palette beside it. */
.field textarea.ps-editor{min-height:380px;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px;line-height:1.6}
.ps-group{gap:8px}
.ps-group-label{margin:0;color:var(--text-3);font-size:12.5px;font-weight:500}
.ps-vars{display:flex;flex-direction:column;gap:6px}
.ps-var{display:flex;flex-direction:column;align-items:flex-start;gap:1px;width:100%;min-width:0;padding:7px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);font-size:13px;font-weight:500;line-height:1.35;text-align:left;cursor:pointer;transition:background .15s var(--ease),border-color .15s var(--ease),transform .25s var(--spring)}
.ps-var:hover{background:var(--brand-soft);border-color:var(--brand-line)}
.ps-var:active{transform:scale(.98)}
.ps-var code{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;font-weight:400;color:var(--text-3)}
.ps-var:hover code{color:var(--brand)}

/* Reports: the bulk bar's guidance beside the count (design.md 4.13). */
.bulk-hint{color:var(--brand);font-size:13px;font-weight:400;opacity:.8}

/* Reports: the candidate comparison dialog. */
.compare-loading{display:flex;flex-direction:column;gap:20px}
.compare-radar{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:20px;align-items:center}
.compare-canvas{position:relative;height:256px;min-width:0}
.compare-legend{display:flex;flex-direction:column;gap:0}
.compare-legend-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line)}
.compare-legend-row:last-child{border-bottom:0}
.compare-legend-row .name,.compare-legend-row .sub{display:block}
.compare-legend-row .sub{max-width:none;white-space:normal}
.compare-swatch{flex:none;width:10px;height:10px;border-radius:50%}
.compare-matrix{width:100%;border-collapse:collapse;font-size:13.5px}
.compare-matrix th,.compare-matrix td{padding:12px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;white-space:normal}
.compare-matrix thead th{color:var(--text-3);font-size:12.5px;font-weight:500;vertical-align:bottom}
.compare-matrix thead th .name,.compare-matrix thead th .sub{display:block}
.compare-matrix thead th .name{font-size:14px}
.compare-matrix tbody th{width:200px;color:var(--text-2);font-weight:500;background:var(--sunk)}
.compare-matrix td{color:var(--text)}
.compare-matrix tbody tr:last-child th,.compare-matrix tbody tr:last-child td{border-bottom:0}
.compare-matrix th:first-child,.compare-matrix td:first-child{padding-left:22px}
@media (max-width:720px){
  .compare-radar{grid-template-columns:minmax(0,1fr)}
}
