/* Recruiter and admin screens (R1–R10, /admin/welcome). WP4. Builds on base.css tokens and components.
   Colours come from {T}/brand.css (--brand, --brand-ink, --accent, --accent-ink, --brand-text, --accent-text). */
body[data-app="admin"] main{max-width:1180px}
body[data-app="admin"] a{color:var(--brand-text,var(--brand))}
body[data-app="admin"] .btn-link{color:var(--brand-text,var(--brand))}
body[data-app="admin"] .btn-primary,body[data-app="admin"] a.btn-primary{color:var(--brand-ink)}
body[data-app="admin"] a.btn-secondary{color:var(--text)}
.admin-skip:focus{position:static!important;width:auto;height:auto;margin:0;clip:auto;padding:var(--space-2)}
/* chrome */
.admin-header{margin:calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-4)}
.admin-header-inner{max-width:none}
.brand-logo img{max-height:36px;width:auto;display:block}
.admin-who{font-size:.9rem}
.btn-small{min-height:36px;padding:var(--space-1) var(--space-3);font-size:.92rem}
.admin-layout{display:flex;flex-direction:column;gap:var(--space-4)}
.admin-nav-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--space-1)}
.admin-nav-link{display:block;padding:var(--space-2) var(--space-3);border-radius:var(--radius);text-decoration:none;font-weight:600;min-height:44px}
body[data-app="admin"] .admin-nav-link{color:var(--text)}
.admin-nav-link[aria-current="page"]{background:var(--brand);color:var(--brand-ink)!important}
.admin-main{min-width:0;flex:1}
.admin-content:focus{outline:none}
@media (min-width:900px){
  .admin-layout{flex-direction:row;align-items:flex-start}
  .admin-nav{flex:0 0 190px;position:sticky;top:var(--space-4)}
  .admin-nav-list{flex-direction:column}
  .admin-header{margin:calc(-1 * var(--space-5)) calc(-1 * var(--space-5)) var(--space-5)}
}
/* layout helpers */
.admin-page-head{display:flex;flex-wrap:wrap;gap:var(--space-3);align-items:flex-start;justify-content:space-between}
.admin-page-head h1,.admin-page-head h2{margin:0}
.admin-grid{display:grid;gap:var(--space-4);grid-template-columns:1fr}
@media (min-width:640px){.admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1000px){.admin-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-wide{grid-column:span 1}}
.admin-form-row{display:grid;gap:var(--space-3);grid-template-columns:1fr}
@media (min-width:640px){.admin-form-row{grid-template-columns:1fr 1fr}}
.admin-inline-form{align-items:flex-end}
.admin-inline-form .field{flex:1;min-width:200px}
.admin-filters{display:grid;gap:var(--space-3);grid-template-columns:1fr;align-items:end}
@media (min-width:760px){.admin-filters{grid-template-columns:2fr 1fr 1fr auto}}
.admin-note{border-left:4px solid var(--accent);padding:var(--space-2) var(--space-3);background:var(--surface);color:var(--muted);font-size:.95rem;border-radius:0 var(--radius) var(--radius) 0}
.admin-empty{border:1px dashed var(--border);border-radius:var(--radius);background:var(--surface)}
.admin-actions{gap:var(--space-3)}
.admin-table td{white-space:nowrap}
.admin-table td:first-child{white-space:normal}
.link-danger{color:var(--danger)!important}
/* stats */
.stat .stat-label{color:var(--muted);font-size:.92rem;margin:0}
.stat-value{font-size:1.9rem;font-weight:700;line-height:1.15;margin:0}
.stat .meter{margin-top:var(--space-2)}
/* checklist */
.check-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:var(--space-2)}
.check-item{display:flex;gap:var(--space-3);align-items:center;flex-wrap:wrap}
.check-mark{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;border:2px solid var(--border);font-weight:700;flex:0 0 auto}
.check-item.done .check-mark{background:var(--ok);border-color:var(--ok);color:#fff}
.check-item.done>span:nth-child(2){color:var(--muted);text-decoration:line-through}
.check-action{margin-left:auto}
.admin-tips li+li{margin-top:var(--space-2)}
/* copy fields */
.copy-row{flex-wrap:nowrap}
.copy-input{flex:1;min-width:0;min-height:44px;padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-radius:var(--radius);background:var(--bg);font:inherit;font-size:.92rem;color:var(--text)}
/* tags */
.band-interview_ready{color:var(--ok);border-color:currentColor}
.band-almost_ready{color:var(--warn);border-color:currentColor}
.band-getting_started{color:var(--muted)}
.status-invited,.status-joined,.status-practising{color:var(--muted)}
/* candidate detail */
.readiness-line{display:flex;flex-wrap:wrap;gap:var(--space-2);align-items:center}
.trend{color:var(--muted);font-size:.95rem}
.session-card h3{margin:0}
.dim-bars{max-width:520px}
.dim-bars>*+*{margin-top:var(--space-2)}
.bar-label{font-weight:600;font-size:.95rem}
.not-shared{color:var(--muted);font-style:italic}
.shared-answers>summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}
.question-block{border-top:1px solid var(--border);padding-top:var(--space-3)}
.attempt{padding-left:var(--space-3);border-left:3px solid var(--border)}
.answer-text{margin:0;padding:var(--space-3);background:var(--bg);border-radius:var(--radius);white-space:pre-wrap;overflow-wrap:anywhere}
.summary-headline{font-weight:600}
.dim-rows{list-style:none;padding:0;margin:0}
.dim-row{display:grid;grid-template-columns:minmax(9rem,auto) auto 1fr;gap:var(--space-1) var(--space-3);align-items:center;padding:var(--space-1) 0}
.dim-reason{color:var(--muted);font-size:.92rem}
@media (max-width:639px){.dim-row{grid-template-columns:1fr auto}.dim-reason{grid-column:1/-1}}
h4{margin:0 0 var(--space-1);font-size:1rem}
/* jobs */
.job-cards{list-style:none;padding:0;margin:0;display:grid;gap:var(--space-4);grid-template-columns:1fr}
@media (min-width:760px){.job-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.job-card h2{font-size:1.15rem;margin:0}
.pool-list{margin:0;padding-left:1.5rem;display:flex;flex-direction:column;gap:var(--space-4)}
.pool-item textarea{width:100%;min-height:3.5rem;padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-radius:var(--radius);font:inherit;resize:vertical;background:var(--surface);color:var(--text)}
.pool-item textarea[aria-invalid="true"]{border-color:var(--danger)}
.pool-item select{min-height:40px;border:1px solid var(--border);border-radius:var(--radius);padding:0 var(--space-2);font:inherit;background:var(--surface);color:var(--text)}
.pool-preview li+li{margin-top:var(--space-2)}
.picker-results{list-style:none;padding:0;margin:0}
.picker-results li{padding:var(--space-1) 0}
.danger-zone{border-color:var(--danger)}
/* branding */
.brand-editor{display:grid;gap:var(--space-5);grid-template-columns:1fr}
@media (min-width:900px){.brand-editor{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.colour-row{flex-wrap:nowrap}
.colour-row input[type=color]{width:56px;height:44px;padding:2px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);flex:0 0 auto}
.colour-row input[type=text]{flex:1;min-height:44px;padding:var(--space-2) var(--space-3);border:1px solid var(--border);border-radius:var(--radius);font:inherit;font-family:ui-monospace,Menlo,Consolas,monospace;text-transform:lowercase}
.colour-row input[aria-invalid="true"]{border-color:var(--danger)}
.brand-preview{display:flex;flex-direction:column;gap:var(--space-4);padding:var(--space-4);background:var(--bg);border:1px solid var(--border);border-radius:var(--radius)}
.preview-card{background:var(--surface);border:1px solid var(--border);border-top:6px solid var(--brand);border-radius:var(--radius);padding:var(--space-4);display:flex;flex-direction:column;gap:var(--space-2);align-items:flex-start}
.preview-head{display:flex;gap:var(--space-2);align-items:center}
.preview-logo img{max-height:32px;width:auto;display:block}
.preview-title{font-size:1.2rem;font-weight:700;margin:0;color:var(--text)}
.preview-btn{display:inline-block;background:var(--brand);color:var(--brand-ink);padding:var(--space-2) var(--space-4);border-radius:var(--radius);font-weight:600}
.preview-link{color:var(--brand-text,var(--brand));text-decoration:underline;font-size:.92rem}
.preview-badge{border-top-color:var(--accent)}
.preview-score{font-size:2.2rem;font-weight:800;line-height:1;color:var(--text)}
.preview-band{display:inline-block;background:var(--accent);color:var(--accent-ink);padding:2px var(--space-2);border-radius:999px;font-weight:600;font-size:.88rem}
/* plan */
.plan-founding{border-top:6px solid var(--accent)}
.plan-cards{align-items:stretch}
.plan-card{flex:1 1 260px}
.plan-price s{color:var(--muted)}
/* wizard */
.wizard-dots{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--space-3)}
.wizard-dots li{display:flex;align-items:center;gap:var(--space-2);color:var(--muted);font-size:.92rem}
.wizard-dot{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;border:2px solid var(--border);font-weight:700;background:var(--surface)}
.wizard-dots li.done .wizard-dot{background:var(--ok);border-color:var(--ok);color:#fff}
.wizard-dots li.current{color:var(--text);font-weight:600}
.wizard-dots li.current .wizard-dot{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
@media (max-width:639px){.wizard-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.wizard-dots li.current .wizard-label{position:static;width:auto;height:auto;clip:auto}}
/* sign-in and one-time link pages */
.admin-auth{max-width:440px}
.auth-card{margin-top:var(--space-5)}
.auth-brand{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-2)}
.auth-logo{max-height:56px;width:auto}
.auth-agency{font-weight:700;color:var(--muted);margin:0}
.auth-forgot>summary{cursor:pointer;color:var(--brand-text,var(--brand));text-decoration:underline;min-height:44px;display:flex;align-items:center}
.auth-forgot[open]>summary{margin-bottom:var(--space-3)}
.field-error:empty{display:none}
@media (forced-colors:active){.admin-nav-link[aria-current="page"]{border:2px solid CanvasText}.check-item.done .check-mark,.wizard-dots li.done .wizard-dot{background:CanvasText;color:Canvas}}
/* resume (docs/RESUME.md) */
.resume-text{white-space:pre-wrap;word-break:break-word;max-height:24rem;overflow:auto;background:var(--surface-2,var(--surface));border:1px solid var(--border);border-radius:var(--radius);padding:var(--space-3);font-size:.92rem;margin-top:var(--space-2)}
.resume-block summary,.invite-resume summary{cursor:pointer;font-weight:600;min-height:44px;display:flex;align-items:center}

@media (pointer:coarse){.btn-small{min-height:44px}.table .btn-link{display:inline-flex;align-items:center;min-height:44px}}
