/* ==========================================================================
   Call Wizards — Careers (board, job detail, application, HR admin)
   Uses the site design tokens from site.css.
   ========================================================================== */

.js .no-js-only { display: none; }
.link-btn { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; padding: 6px 2px; }
.link-btn:hover { color: var(--primary-deep); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--primary-soft); color: var(--primary-deep); padding: 2px 7px; border-radius: 6px; }

/* ---------- Board ---------- */
.jobs__note { max-width: 34ch; color: var(--muted); margin: 0; font-size: .98rem; }
.job-filters {
  position: sticky; top: calc(var(--header-h) + 34px); z-index: 20;
  display: grid; grid-template-columns: minmax(220px, 1.1fr) auto auto; gap: 12px; align-items: center;
  padding: 12px; border-radius: 22px; background: rgba(255,255,255,.88); border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-1);
}
.job-filters__search { position: relative; }
.job-filters__search .icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.job-filters input[type=search], .job-filters select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--canvas); border: 1.5px solid transparent; border-radius: 14px;
  min-height: 48px; padding: 10px 14px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.job-filters input[type=search] { padding-left: 46px; }
.job-filters input:focus, .job-filters select:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(91,63,217,.14); }
.job-filters__countries { display: flex; gap: 6px; border: 0; margin: 0; padding: 0; flex-wrap: wrap; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem; border: 1.5px solid var(--border); background: #fff; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.chip small { font-weight: 600; font-size: .75rem; opacity: .6; }
.chip:hover span { border-color: var(--primary); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2.5px solid var(--primary); outline-offset: 2px; }
.job-filters__selects { display: flex; gap: 8px; }
.job-filters__selects select { min-width: 180px; }
@media (max-width: 1180px) {
  .job-filters { grid-template-columns: 1fr 1fr; }
  .job-filters__search { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .job-filters { position: static; grid-template-columns: 1fr; }
  .job-filters__countries { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; scrollbar-width: none; }
  .job-filters__selects { flex-wrap: wrap; }
  .job-filters__selects select { flex: 1 1 160px; min-width: 0; }
}

.jobs__status { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 28px 0 16px; }
.jobs__status p { margin: 0; color: var(--muted); }
.jobs__status strong { color: var(--ink); font-size: 1.15rem; }

.job-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.job-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  animation: card-in .5s var(--ease) both;
}
.job-card[hidden] { display: none; }
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: rgba(91,63,217,.28); }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.job-card__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.job-card__dept { font-size: .82rem; color: var(--muted); font-weight: 500; }
.job-card__title { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.2; }
.job-card__title a { text-decoration: none; }
.job-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }  /* whole card → details */
.job-card__title a:hover { color: var(--primary); }
.job-card__title a:focus-visible { outline: none; }
.job-card:has(.job-card__title a:focus-visible) { outline: 2.5px solid var(--primary); outline-offset: 3px; }
.job-card__meta { display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.job-card__meta li { display: flex; gap: 8px; align-items: flex-start; }
.job-card__meta .icon { flex-shrink: 0; margin-top: 3px; color: var(--primary); }
.job-card__summary { margin: 0; color: var(--muted); font-size: .96rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.job-card__actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }

.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: var(--primary-soft); color: var(--primary-deep); }
.badge__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--in { background: #FDEEDC; color: #8A4413; }
.badge--lk { background: #DDF1EE; color: #0B5F57; }

.salary-box { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, var(--primary-soft), #F6F2FF); border: 1px solid rgba(91,63,217,.12); }
.salary-box strong { font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); }
.salary-box span { font-size: .86rem; color: var(--muted); line-height: 1.45; }
.salary-box small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.salary-box--large { padding: 24px 26px; border-radius: 20px; }
.salary-box--large strong { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.salary-box--large span { font-size: 1rem; }

.jobs__empty { text-align: center; padding: 56px 24px; border-radius: 24px; border: 1.5px dashed var(--border); background: var(--surface); }
.jobs__empty .kicker-icon { margin-inline: auto; }
.jobs__empty h3 { font-size: 1.5rem; margin-bottom: 8px; }
.jobs__empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 20px; }

@media (max-width: 860px) { .job-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .job-card { padding: 20px; } .job-card__actions .btn { flex: 1 1 auto; } }

/* Hiring steps */
.hire-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; counter-reset: h; }
.hire-steps li { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); position: relative; }
.hire-steps li.is-current { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,63,217,.12); }
.hire-steps__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .85rem; margin-bottom: 14px; }
.hire-steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.hire-steps p { font-size: .92rem; color: var(--muted); margin: 0; }
.hire-steps--compact { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hire-steps--compact li { display: grid; grid-template-columns: 36px 1fr; gap: 2px 16px; padding: 16px 18px; }
.hire-steps--compact .hire-steps__n { grid-row: span 2; margin: 0; }
@media (max-width: 1000px) { .hire-steps:not(.hire-steps--compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hire-steps:not(.hire-steps--compact) { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Job detail ---------- */
.job-detail__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.job-detail__main > section { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--border); }
.job-detail__main > section:last-of-type { border-bottom: 0; }
.job-h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 18px; }
.job-lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }
.job-detail__main p { color: #3D3953; }
.job-sub { font-weight: 600; margin: 24px 0 12px; color: var(--ink) !important; }
.job-small { font-size: .9rem; color: var(--muted) !important; margin: 12px 0 0; }
.tick-list { display: grid; gap: 10px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.tick-list .icon { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.tick-list--soft li { background: transparent; border-style: dashed; }
.benefit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.benefit-grid li { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); font-weight: 500; }
.benefit-grid .icon { color: var(--primary); flex-shrink: 0; }
.career-path { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; position: relative; max-width: 760px; }
.career-path li { position: relative; padding: 18px 14px 0 0; }
.career-path li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--border); }
.career-path li::after { content: ""; position: absolute; top: -5px; left: 0; width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--border); }
.career-path li.is-current::before { background: linear-gradient(90deg, var(--primary), var(--border)); }
.career-path li.is-current::after { border-color: var(--primary); background: var(--primary); }
.career-path span { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.career-path strong { display: block; margin-top: 4px; line-height: 1.3; }
@media (max-width: 700px) {
  .career-path { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); gap: 14px; padding-left: 20px; }
  .career-path li { padding: 0; }
  .career-path li::before { top: 6px; bottom: -20px; left: -15px; right: auto; width: 3px; height: auto; }
  .career-path li:last-child::before { display: none; }
  .career-path li::after { top: 2px; left: -20px; }
  .benefit-grid { grid-template-columns: minmax(0, 1fr); }
}
.eeo p:first-child { padding: 18px 20px; border-radius: 16px; background: var(--canvas-2); }

.job-glance { position: sticky; top: calc(var(--header-h) + 48px); }
.job-glance__card { padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); display: grid; gap: 12px; }
.job-glance dl { margin: 0 0 8px; display: grid; gap: 0; }
.job-glance dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: .94rem; }
.job-glance dt { color: var(--muted); }
.job-glance dd { margin: 0; font-weight: 500; }
@media (max-width: 1000px) {
  .job-detail__grid { grid-template-columns: minmax(0, 1fr); }
  .job-glance { position: static; order: -1; }
}

/* ---------- Application ---------- */
.hero--apply .hero__frame { min-height: clamp(360px, 50svh, 500px); }
.hero--apply .hero__content { padding-top: calc(var(--header-h) + 56px); }
.hr-table td:nth-child(2) input { min-width: 230px; }
.hr-table td:nth-child(3) input { min-width: 340px; }
.apply { padding-top: clamp(40px, 5vw, 72px); }
.apply__grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.stepper { position: sticky; top: calc(var(--header-h) + 48px); }
.stepper ol { display: grid; gap: 4px; counter-reset: s; }
.stepper button {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-align: left;
  color: var(--muted); transition: background .2s, color .2s;
}
.stepper button:hover { background: var(--surface); color: var(--ink); }
.stepper__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); flex-shrink: 0; transition: background .3s, color .3s, border-color .3s; }
.stepper__text { display: grid; line-height: 1.25; font-weight: 600; font-size: .95rem; }
.stepper__text small { font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.stepper button[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.stepper button[aria-current] .stepper__icon { background: var(--primary); color: #fff; border-color: var(--primary); }
.stepper button.is-done .stepper__icon { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.stepper button.has-error .stepper__icon { background: #FDECEC; color: #B42318; border-color: #F5C2C2; }
.stepper__saved { margin: 16px 12px 0; font-size: .84rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.stepper__saved::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2F9E6B; }
.no-js .stepper { display: none; }

.apply-form { padding: clamp(22px, 4vw, 48px); border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); position: relative; }
.apply-progress { height: 4px; border-radius: 4px; background: var(--canvas-2); overflow: hidden; margin-bottom: 28px; }
.apply-progress span { display: block; height: 100%; width: 12.5%; background: linear-gradient(90deg, var(--primary), var(--violet-glow)); transition: width .5s var(--ease); }
.no-js .apply-progress { display: none; }
.apply-step { border: 0; padding: 0; margin: 0 0 48px; min-width: 0; }
.js .apply-step { display: none; margin: 0; }
.js .apply-step.is-active { display: block; animation: step-in .45s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } }
.apply-step legend { display: grid; gap: 4px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.1; margin-bottom: 24px; padding: 0; }
.apply-step__n { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.apply-step__intro { color: var(--muted); margin: -8px 0 24px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field--wide { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; align-content: start; position: relative; }
.field label, .field__label { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.field label small { font-weight: 400; color: var(--muted); }
.req { color: #B42318; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--canvas); border: 1.5px solid var(--border); border-radius: 14px; padding: 13px 15px; min-height: 50px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; line-height: 1.55; }
.field input[type=file] { padding: 11px; background: #fff; border-style: dashed; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(91,63,217,.15); }
.field [aria-invalid="true"] { border-color: #B42318; background: #FFF8F8; }
.field__error { color: #B42318; font-size: .88rem; font-weight: 500; }
.field__help { font-size: .86rem; color: var(--muted); }
.field__tag { justify-self: start; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber-ink); background: #FDEEDC; padding: 3px 9px; border-radius: var(--r-pill); }
.field--role { padding: 18px; border-radius: 18px; background: #FFFBF6; border: 1px solid #F6DFC4; }
.counter { justify-self: end; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -4px; }
.counter.is-ok { color: #2F7A55; }
.role-confirm { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--primary-soft); color: var(--primary-deep); }
.role-confirm div { display: grid; }
.role-confirm span { font-size: .9rem; color: var(--muted); }
.check { display: flex !important; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--canvas); border: 1.5px solid var(--border); cursor: pointer; font-weight: 500 !important; }
.check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; accent-color: var(--primary); flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
@media (max-width: 640px) { .field-grid { grid-template-columns: minmax(0, 1fr); } }

.apply-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border); }
.apply-nav [data-next], .apply-nav [data-submit] { margin-left: auto; }
.no-js .apply-nav [data-next], .no-js .apply-nav [data-prev] { display: none; }
.apply-privacy { margin: 28px 0 0; font-size: .86rem; color: var(--muted); }

.error-summary { padding: 18px 22px; border-radius: 18px; background: #FDECEC; border: 1px solid #F5C2C2; color: #7A1C1C; margin-bottom: 28px; }
.error-summary h2 { display: flex; gap: 10px; align-items: center; font-size: 1.1rem; margin-bottom: 10px; }
.error-summary ul { display: grid; gap: 6px; list-style: disc; padding-left: 22px; font-size: .94rem; }
.error-summary a { color: #7A1C1C; font-weight: 500; }

.review { margin-top: 32px; padding: 24px; border-radius: 20px; background: var(--canvas); border: 1px solid var(--border); }
.review h3 { font-size: 1.3rem; }
.review section { padding: 14px 0; border-top: 1px solid var(--border); }
.review section:first-of-type { margin-top: 12px; }
.review h4 { display: flex; justify-content: space-between; align-items: center; font-size: 1rem; margin: 0 0 8px; }
.review h4 button { font-size: .85rem; color: var(--primary); font-weight: 600; text-decoration: underline; }
.review dl { display: grid; grid-template-columns: minmax(140px, 38%) 1fr; gap: 4px 16px; margin: 0; font-size: .9rem; }
.review dt { color: var(--muted); }
.review dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.review dd.missing { color: #B42318; font-weight: 600; }
@media (max-width: 560px) { .review dl { grid-template-columns: minmax(0, 1fr); } .review dt { margin-top: 8px; } }

@media (max-width: 960px) {
  .apply__grid { grid-template-columns: minmax(0, 1fr); }
  .stepper { position: sticky; top: calc(var(--header-h) + 22px); z-index: 10; background: rgba(246,244,239,.92); backdrop-filter: blur(12px); margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter); }
  .stepper ol { display: flex; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .stepper li { flex-shrink: 0; }
  .stepper button { padding: 6px 10px 6px 6px; }
  .stepper__text { font-size: .85rem; }
  .stepper__text small { display: none; }
  .stepper__saved { display: none; }
}
@media (max-width: 560px) {
  .stepper__text { display: none; }
  .stepper button[aria-current] .stepper__text { display: grid; }
  .apply-nav .btn { flex: 1 1 auto; }
}

/* ---------- Success ---------- */
.applied { max-width: 860px; display: grid; gap: 22px; }
.applied__ref { text-align: center; padding: 36px 24px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1); }
.applied__ref span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.applied__ref strong { display: block; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: .02em; margin: 6px 0 8px; font-variant-numeric: tabular-nums; color: var(--primary-deep); overflow-wrap: anywhere; }
.applied__ref p { margin: 0; color: var(--muted); }
.applied__subject code { display: block; padding: 12px 14px; white-space: normal; overflow-wrap: anywhere; }
.applied__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.applied__body { width: 100%; margin-top: 16px; font: .86rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--canvas); color: var(--ink); resize: vertical; }

/* ==========================================================================
   HR admin
   ========================================================================== */
.hr-body { background: var(--canvas); }
.hr-top { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.hr-top__bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.hr-top__bar img { height: 26px; width: auto; }
.hr-top__tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); }
.hr-tabs { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.hr-tabs a { padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-weight: 500; font-size: .94rem; color: rgba(255,255,255,.8); }
.hr-tabs a:hover { color: #fff; background: rgba(255,255,255,.08); }
.hr-tabs a[aria-current] { background: #fff; color: var(--ink); }
.hr-main { padding: 36px 0 80px; }
.hr-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.hr-head h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.hr-head p { margin: 6px 0 0; color: var(--muted); }
.hr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.hr-stats div { padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.hr-stats strong { display: block; font-size: 1.8rem; letter-spacing: -.03em; }
.hr-stats span { font-size: .86rem; color: var(--muted); }
@media (max-width: 760px) { .hr-stats { grid-template-columns: 1fr 1fr; } }
.hr-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.hr-toolbar input, .hr-toolbar select, .hr-input { font: inherit; font-size: 15px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--border); background: #fff; color: var(--ink); min-height: 44px; }
.hr-toolbar input:focus, .hr-toolbar select:focus, .hr-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,63,217,.15); }
.hr-table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); background: var(--surface); }
.hr-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.hr-table th { text-align: left; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 14px 16px; background: var(--canvas); border-bottom: 1px solid var(--border); white-space: nowrap; }
.hr-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.hr-table tr:last-child td { border-bottom: 0; }
.hr-table tr:hover td { background: #FBFAF7; }
.hr-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.hr-table input.hr-input { min-height: 38px; padding: 7px 10px; width: 100%; min-width: 180px; font-size: 14px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: .76rem; font-weight: 700; }
.pill--ok { background: #E6F4EC; color: #1E6B44; }
.pill--bad { background: #FDECEC; color: #9B1C1C; }
.pill--wait { background: var(--canvas-2); color: var(--muted); }
.pill--closed { background: var(--canvas-2); color: var(--muted); }
.hr-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.hr-actions form { margin: 0; }
.btn--danger { --bg: #fff; --fg: #B42318; --bd: #F5C2C2; }
.btn--danger:hover { --bg: #B42318; --fg: #fff; --bd: #B42318; }
.btn--tiny { min-height: 34px; padding: 6px 12px; font-size: .84rem; }
.hr-pre { white-space: pre-wrap; font: .9rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; overflow-x: auto; }
.hr-login { min-height: 100svh; display: grid; place-items: center; padding: 24px; background: radial-gradient(80% 120% at 0% 100%, rgba(123,92,255,.4), transparent 60%), var(--ink); }
.hr-login form { width: min(420px, 100%); background: var(--surface); padding: 36px; border-radius: 28px; display: grid; gap: 16px; box-shadow: var(--shadow-2); }
.hr-login img { height: 34px; width: auto; justify-self: start; }
.hr-flash { margin-bottom: 18px; }
.hr-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.hr-form .field textarea { min-height: 120px; }
@media (max-width: 700px) { .hr-form { grid-template-columns: minmax(0, 1fr); } }
