/* Onhand components. Every value is a token from tokens.css; the only literals are the 1px/2px/3px strokes declared there. */
body { margin: 0; font-family: var(--font-sans); background: var(--surface); color: var(--ink); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
.oh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.oh-icon { flex: none; display: inline-block; vertical-align: middle; }
.oh-strong { font-weight: 700; }
.oh-muted { color: var(--ink-muted); }
.oh-money { font-family: var(--font-display); font-size: 32px; line-height: 36px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.oh-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* focus: a 2px gap in the page colour, then a solid 3px ring */
.oh-btn:focus-visible, .oh-avail-switch:focus-visible, .oh-vote-btn:focus-visible, .oh-chip-btn:focus-visible, .oh-field-box:focus-within {
  outline: var(--stroke-focus) solid var(--focus-ring); outline-offset: 2px; }

/* Button */
.oh-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); box-sizing: border-box;
  font: inherit; font-weight: 700; padding: 0 var(--space-5); border-radius: var(--radius-md); cursor: pointer;
  border: var(--stroke-control) solid transparent; background: var(--surface-raised); color: var(--ink); min-width: var(--tap-min); text-align: center; }
.oh-btn-label { white-space: normal; }
.oh-btn-md { min-height: var(--tap-min); font-size: 16px; line-height: 20px; }
.oh-btn-lg { min-height: var(--tap-primary); font-size: 18px; line-height: 22px; padding: 0 var(--space-6); }
.oh-btn-hero { min-height: var(--tap-hero); font-size: 20px; line-height: 24px; padding: 0 var(--space-8); border-radius: var(--radius-lg); }
.oh-btn-full { width: 100%; }
.oh-btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.oh-btn-accent { background: var(--accent); border-color: var(--accent-deep); color: var(--on-accent); }
.oh-btn-quiet { background: var(--surface-raised); border-color: var(--line-strong); color: var(--ink); }
.oh-btn-danger { background: var(--surface-raised); border-color: var(--danger); color: var(--danger); }
.oh-btn:disabled { cursor: not-allowed; background: var(--surface-sunken); border-color: var(--line-strong); color: var(--ink-muted); }
.oh-btn:not(:disabled):active { transform: translateY(1px); }

/* AvailabilityToggle */
.oh-avail { display: grid; gap: var(--space-3); }
.oh-avail-switch { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); width: 100%; min-height: var(--tap-hero); box-sizing: border-box;
  padding: var(--space-3) var(--space-4); font: inherit; text-align: left; cursor: pointer; border-radius: var(--radius-lg);
  background: var(--surface-raised); color: var(--ink); border: var(--stroke-control) solid var(--line-strong); }
.oh-avail-switch.is-on { background: var(--accent); border-color: var(--accent-deep); color: var(--on-accent); }
.oh-avail-text { display: grid; gap: 2px; }
.oh-avail-label { font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 700; }
.oh-avail-state { font-size: 14px; line-height: 20px; font-weight: 700; }
.oh-avail-track { position: relative; flex: none; width: 72px; height: 40px; border-radius: var(--radius-pill); background: var(--surface-sunken); border: var(--stroke-control) solid var(--line-strong); box-sizing: border-box; }
.oh-avail-knob { position: absolute; top: 2px; left: 2px; width: 32px; height: 32px; border-radius: var(--radius-pill); display: grid; place-items: center;
  background: var(--surface-raised); color: var(--ink-muted); border: var(--stroke-control) solid var(--line-strong); box-sizing: border-box; transition: left 180ms ease-out; }
.is-on .oh-avail-track { background: var(--on-accent); border-color: var(--on-accent); }
.is-on .oh-avail-knob { left: 34px; background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.oh-avail-hint { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (prefers-reduced-motion: reduce) { .oh-avail-knob { transition: none; } }

/* StatusPill */
.oh-pill { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-pill);
  font-size: 14px; line-height: 20px; font-weight: 700; border: var(--stroke-control) solid transparent; white-space: nowrap; }
.oh-pill-requested { background: var(--accent); color: var(--on-accent); border-color: var(--accent-deep); }
.oh-pill-matched, .oh-pill-on-the-way { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-soft); }
.oh-pill-on-site, .oh-pill-done { background: var(--success-soft); color: var(--success); border-color: var(--success-soft); }
.oh-pill-paid { background: var(--success); color: var(--on-success); border-color: var(--success); }
.oh-pill-cancelled { background: var(--danger-soft); color: var(--danger); border-color: var(--danger-soft); }

/* JourneyTracker */
.oh-track { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; padding: var(--space-2) 0; }
.oh-track-step { position: relative; display: grid; justify-items: center; gap: var(--space-2); text-align: center; }
.oh-track-step::before { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: var(--stroke-control); background: var(--line-strong); }
.oh-track-step:first-child::before { display: none; }
.oh-track-step.is-done::before, .oh-track-step.is-current::before { background: var(--success); }
.oh-track-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: var(--radius-pill); display: grid; place-items: center; box-sizing: border-box;
  background: var(--surface-raised); color: var(--ink-muted); border: var(--stroke-control) solid var(--line-strong); }
.oh-track-step.is-done .oh-track-dot { background: var(--success); color: var(--on-success); border-color: var(--success); }
.oh-track-step.is-current .oh-track-dot { background: var(--brand); color: var(--on-brand); border-color: var(--brand); box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px var(--brand); }
.oh-track-step.is-cancelled .oh-track-dot { color: var(--danger); border-color: var(--danger); }
.oh-track-label { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.oh-track-step.is-current .oh-track-label { color: var(--ink); font-weight: 700; }
.oh-track-step.is-done .oh-track-label { color: var(--ink); }
.oh-track-updated { grid-column: 1 / -1; margin: var(--space-2) 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); text-align: center; }

/* SkillChip */
.oh-chip { display: inline-flex; align-items: center; gap: var(--space-1); min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-sm);
  font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); background: var(--surface-sunken); border: var(--stroke-control) solid var(--surface-sunken); box-sizing: border-box; }
.oh-chip.is-verified { background: var(--success-soft); color: var(--success); border-color: var(--success-soft); }
.oh-chip-btn { font: inherit; cursor: pointer; min-height: var(--tap-min); background: var(--surface-raised); border-color: var(--line-strong); }
.oh-chip-btn.is-on { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }

/* JobCard */
.oh-job { display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-md); background: var(--surface-raised); border: var(--stroke-control) solid var(--line); max-width: 420px; box-sizing: border-box; }
[data-theme="site"] .oh-job { border-color: var(--line-strong); }
.oh-job-top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.oh-job-rate { font-size: 14px; line-height: 20px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.oh-job-title { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 700; }
.oh-job-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: 18px; line-height: 26px; }
.oh-job-meta li { display: flex; align-items: center; gap: var(--space-2); }
.oh-job-meta .oh-icon { color: var(--ink-muted); }
.oh-job-hirer { margin: 0; font-size: 16px; line-height: 24px; }
.oh-job-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-2); }
.oh-job-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); text-align: center; }

/* PayBreakdown */
.oh-pay { display: grid; gap: var(--space-3); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--surface-raised); border: var(--stroke-control) solid var(--line); max-width: 420px; box-sizing: border-box; }
[data-theme="site"] .oh-pay { border-color: var(--line-strong); }
.oh-pay-title { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 700; }
.oh-pay-rows { margin: 0; display: grid; gap: var(--space-2); }
.oh-pay-row { display: flex; justify-content: space-between; gap: var(--space-3); margin: 0; }
.oh-pay-row dt { color: var(--ink-muted); }
.oh-pay-row dd { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.oh-pay-row.is-fee dd { color: var(--ink-muted); }
.oh-pay-net { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding-top: var(--space-3); border-top: var(--stroke-control) solid var(--line-strong); }
.oh-pay-net-label { font-weight: 700; font-size: 18px; line-height: 26px; }
.oh-pay-when { margin: 0; display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink); font-weight: 700; }
.oh-pay-when .oh-icon { color: var(--accent-deep); }
.oh-pay-when.is-paid { background: var(--success-soft); color: var(--success); }
.oh-pay-when.is-paid .oh-icon { color: var(--success); }

/* Notice */
.oh-notice { display: grid; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-md); border: var(--stroke-control) solid transparent; max-width: 420px; box-sizing: border-box; }
.oh-notice-head { display: flex; gap: var(--space-2); align-items: flex-start; }
.oh-notice-title { margin: 0; font-weight: 700; font-size: 18px; line-height: 26px; }
.oh-notice-head .oh-icon { margin-top: 1px; }
.oh-notice-body { margin: 0; }
.oh-notice-body p { margin: 0; }
.oh-notice-reason { margin: 0; font-size: 14px; line-height: 20px; }
.oh-notice-action { margin-top: var(--space-1); }
.oh-notice-info { background: var(--brand-soft); color: var(--ink); } .oh-notice-info .oh-notice-head { color: var(--brand); }
.oh-notice-success { background: var(--success-soft); color: var(--ink); } .oh-notice-success .oh-notice-head { color: var(--success); }
.oh-notice-warning { background: var(--surface-raised); border-color: var(--accent-deep); color: var(--ink); } .oh-notice-warning .oh-notice-head { color: var(--accent-deep); }
.oh-notice-danger { background: var(--danger-soft); color: var(--ink); } .oh-notice-danger .oh-notice-head { color: var(--danger); }
[data-theme="site"] .oh-notice { border-color: var(--line-strong); }
[data-theme="site"] .oh-notice-warning { border-color: var(--accent-deep); }

/* TextField */
.oh-field { display: grid; gap: var(--space-2); max-width: 420px; }
.oh-field-label { font-size: 14px; line-height: 20px; font-weight: 700; }
.oh-field-box { display: flex; align-items: center; min-height: var(--tap-primary); box-sizing: border-box; border-radius: var(--radius-sm);
  background: var(--surface-raised); border: var(--stroke-control) solid var(--line-strong); padding: 0 var(--space-4); gap: var(--space-2); }
.oh-field-box input { flex: 1; min-width: 0; font: inherit; font-size: 18px; line-height: 26px; background: transparent; border: 0; outline: 0; color: var(--ink); padding: 0; }
.oh-field-box input::placeholder { color: var(--ink-muted); }
.oh-field-prefix, .oh-field-suffix { color: var(--ink-muted); font-weight: 700; font-size: 18px; }
.has-error .oh-field-box { border-color: var(--danger); }
.oh-field-error { margin: 0; display: flex; align-items: center; gap: var(--space-1); color: var(--danger); font-weight: 700; font-size: 14px; line-height: 20px; }
.oh-field-hint { margin: 0; color: var(--ink-muted); font-size: 14px; line-height: 20px; }
.oh-field-box:has(input:disabled) { background: var(--surface-sunken); }

/* RehireVote */
.oh-vote { display: grid; gap: var(--space-4); max-width: 420px; }
.oh-vote-q { margin: 0; font-family: var(--font-display); font-size: 26px; line-height: 32px; font-weight: 700; }
.oh-vote-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.oh-vote-btn { display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--tap-hero); font: inherit; font-size: 20px; font-weight: 700; cursor: pointer;
  border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); border: var(--stroke-control) solid var(--line-strong); }
.oh-vote-btn.is-yes.is-on { background: var(--success); color: var(--on-success); border-color: var(--success); }
.oh-vote-btn.is-no.is-on { background: var(--surface-raised); color: var(--danger); border-color: var(--danger); }
.oh-vote-tags-label { margin: 0 0 var(--space-2); font-weight: 700; }
.oh-vote-note { margin: 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

/* preview helpers */
.oh-demo { padding: var(--space-4); display: grid; gap: var(--space-4); max-width: 480px; }
.oh-demo-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
