Skip to content

Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.

64.8 KB
Raw Blame
/* Approved V3 product canvas. This file loads last so every production page
   uses the frozen visual contract while retaining its real data adapters. */
.hr-ui {
  --bg: #0b0d12;
  --bg-raised: #11141b;
  --bg-soft: #151923;
  --bg-hover: #1a1f2b;
  --bg-active: #202637;
  --panel: rgba(19, 23, 32, 0.92);
  --panel-solid: #131720;
  --panel-high: #181d28;
  --glass: rgba(17, 20, 27, 0.78);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.15);
  --divider: rgba(255, 255, 255, 0.065);
  --text: #f3f5fa;
  --text-soft: #c1c7d2;
  --text-muted: #858d9d;
  --text-faint: #626a79;
  --accent: #7b8cff;
  --accent-bright: #9aa7ff;
  --accent-soft: rgba(123, 140, 255, 0.15);
  --cyan: #58d8e8;
  --cyan-soft: rgba(88, 216, 232, 0.14);
  --green: #56d39b;
  --green-soft: rgba(86, 211, 155, 0.14);
  --yellow: #f2bd62;
  --yellow-soft: rgba(242, 189, 98, 0.14);
  --red: #ff6f7d;
  --red-soft: rgba(255, 111, 125, 0.14);
  --purple: #b793ff;
  --shadow-lg: 0 28px 90px rgba(0, 0, 0, 0.42), 0 2px 10px rgba(0, 0, 0, 0.22);
  --shadow-md: 0 16px 50px rgba(0, 0, 0, 0.26);
  --radius-xs: 6px;
  --radius-sm: 9px;
  --radius-md: 13px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --sidebar-width: 224px;
  --titlebar-height: 52px;
  --toolbar-height: 68px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Compatibility aliases used by the existing real-data components. */
  --hr-canvas: var(--bg);
  --hr-canvas-raised: var(--bg-raised);
  --hr-surface: var(--panel);
  --hr-surface-strong: var(--panel-solid);
  --hr-surface-soft: var(--bg-soft);
  --hr-overlay: rgba(4, 7, 14, 0.48);
  --hr-text: var(--text);
  --hr-text-soft: var(--text-soft);
  --hr-text-faint: var(--text-muted);
  --hr-border: var(--border);
  --hr-border-strong: var(--border-strong);
  --hr-accent: var(--accent);
  --hr-accent-hover: var(--accent-bright);
  --hr-accent-soft: var(--accent-soft);
  --hr-accent-text: var(--accent-bright);
  --hr-positive: var(--green);
  --hr-positive-soft: var(--green-soft);
  --hr-warning: var(--yellow);
  --hr-warning-soft: var(--yellow-soft);
  --hr-negative: var(--red);
  --hr-negative-soft: var(--red-soft);
  --hr-info: var(--accent-bright);
  --hr-info-soft: var(--accent-soft);
  --hr-focus: var(--accent);
  --hr-shadow-sm: none;
  --hr-shadow-lg: var(--shadow-lg);
  --hr-radius-sm: var(--radius-sm);
  --hr-radius-md: var(--radius-md);
  --hr-radius-lg: var(--radius-lg);

  width: 100%;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-size: calc(16px * var(--hr-text-scale));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hr-ui[data-theme='light'] {
  --bg: #eef0f4;
  --bg-raised: #f7f8fa;
  --bg-soft: #f1f3f7;
  --bg-hover: #e8ebf1;
  --bg-active: #e1e5ee;
  --panel: rgba(252, 252, 253, 0.92);
  --panel-solid: #fcfcfd;
  --panel-high: #fff;
  --glass: rgba(247, 248, 250, 0.82);
  --border: rgba(26, 32, 45, 0.1);
  --border-strong: rgba(26, 32, 45, 0.17);
  --divider: rgba(26, 32, 45, 0.075);
  --text: #171a21;
  --text-soft: #424957;
  --text-muted: #737b8a;
  --text-faint: #9aa0aa;
  --accent: #5a6fe8;
  --accent-bright: #475dd8;
  --accent-soft: rgba(90, 111, 232, 0.12);
  --cyan: #14899b;
  --cyan-soft: rgba(20, 137, 155, 0.1);
  --green: #16875a;
  --green-soft: rgba(22, 135, 90, 0.1);
  --yellow: #a56600;
  --yellow-soft: rgba(165, 102, 0, 0.1);
  --red: #c94150;
  --red-soft: rgba(201, 65, 80, 0.1);
  --purple: #7552cc;
  --shadow-lg: 0 26px 80px rgba(37, 45, 65, 0.18), 0 2px 10px rgba(37, 45, 65, 0.08);
  --shadow-md: 0 14px 42px rgba(37, 45, 65, 0.12);
  color-scheme: light;
}

html,
body,
#root {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  margin: 0;
  background: #0b0d12;
}

.hr-ui *,
.hr-ui *::before,
.hr-ui *::after { box-sizing: border-box; }
.hr-ui [hidden] { display: none !important; }
.hr-ui button,
.hr-ui input,
.hr-ui select,
.hr-ui textarea { font: inherit; }
.hr-ui button { color: inherit; }
.hr-ui ::selection { color: #fff; background: rgba(123, 140, 255, 0.62); }
.hr-ui ::-webkit-scrollbar { width: 10px; height: 10px; }
.hr-ui ::-webkit-scrollbar-track { background: transparent; }
.hr-ui ::-webkit-scrollbar-thumb { min-height: 40px; border: 3px solid transparent; border-radius: 99px; background: color-mix(in srgb, var(--text-muted) 42%, transparent); background-clip: padding-box; }

/* Window shell */
.hr-app-frame {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  grid-template-rows: var(--titlebar-height) minmax(0, 1fr);
  background: radial-gradient(circle at 82% -16%, rgba(103, 119, 245, 0.11), transparent 34%), var(--bg);
}

.hr-titlebar {
  position: relative;
  z-index: 20;
  display: grid;
  height: var(--titlebar-height);
  grid-column: 1 / -1;
  grid-row: 1;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  border-bottom: 1px solid var(--divider);
  background: color-mix(in srgb, var(--glass) 95%, transparent);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-app-region: drag;
}

.hr-titlebar__platform { border-right: 1px solid var(--divider); }
.hr-titlebar__main { display: flex; min-width: 0; align-items: center; padding: 0 22px; }
.hr-window-title { display: flex; min-width: 0; align-items: center; gap: 10px; color: var(--text-soft); font-size: 14px; font-weight: 650; }
.hr-window-title span:nth-child(2) { color: var(--text-muted); font-weight: 450; }
.hr-window-title span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hr-navigation {
  position: relative;
  z-index: 10;
  display: flex;
  min-width: 0;
  min-height: 0;
  height: auto;
  grid-column: 1;
  grid-row: 2;
  flex-direction: column;
  border-right: 1px solid var(--divider);
  background: color-mix(in srgb, var(--glass) 91%, transparent);
  padding: 0;
  backdrop-filter: blur(22px) saturate(120%);
}

.hr-navigation__brand { display: flex; min-width: 0; height: 68px; align-items: center; gap: 11px; margin: 0 12px; padding: 0 10px; }
.hr-navigation__brand > span:last-child { display: block; min-width: 0; line-height: 1.2; }
.hr-navigation__brand strong { display: block; color: var(--text); font-size: 16px; font-weight: 680; letter-spacing: -0.01em; }
.hr-navigation__brand small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.hr-product-mark { position: relative; display: grid; width: 34px; height: 34px; flex: 0 0 34px; overflow: hidden; border: 1px solid rgba(137, 151, 255, 0.35); border-radius: 11px; background: linear-gradient(145deg, #697cff, #7658d9); box-shadow: 0 8px 26px rgba(101, 116, 242, 0.25); color: #fff; place-items: center; }
.hr-product-mark::before,
.hr-product-mark::after { position: absolute; width: 15px; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, 0.95); content: ''; }
.hr-product-mark::before { transform: translateY(-4px) rotate(-32deg); }
.hr-product-mark::after { transform: translateY(4px) rotate(-32deg); }

.hr-navigation nav { display: flex; flex-direction: column; gap: 4px; padding: 7px 10px; }
.hr-navigation nav button,
.hr-navigation__settings { display: flex; width: 100%; height: 42px; min-height: 42px; align-items: center; gap: 12px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); padding: 0 12px; text-align: left; cursor: pointer; transition: 150ms var(--ease); }
.hr-navigation nav button:hover,
.hr-navigation__settings:hover { background: var(--bg-hover); color: var(--text-soft); }
.hr-navigation nav button[aria-current='page'],
.hr-navigation__settings[aria-current='page'] { border-color: transparent; background: var(--accent-soft); color: var(--accent-bright); }
.hr-navigation nav button .hr-icon,
.hr-navigation__settings .hr-icon { width: 19px; height: 19px; }
.hr-navigation nav button span,
.hr-navigation__settings span { min-width: 0; overflow: hidden; font-size: 15px; font-weight: 570; text-overflow: ellipsis; white-space: nowrap; }
.hr-navigation__spacer { flex: 1; }
.hr-navigation__foot { display: block; margin: 0; border-top: 1px solid var(--divider); padding: 10px; color: var(--text-muted); font-size: 12px; }
.hr-navigation__health { display: flex; min-width: 0; align-items: center; gap: 10px; margin: 3px 2px 10px; padding: 7px 9px; }
.hr-navigation__health > span:last-child { display: block; min-width: 0; }
.hr-navigation__health strong { display: block; overflow: hidden; color: var(--text-soft); font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.hr-navigation__health small { display: block; margin-top: 2px; overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hr-navigation__status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px var(--yellow-soft); }
.hr-navigation__status-dot[data-ready] { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

.hr-app-main { position: relative; min-width: 0; min-height: 0; height: 100%; grid-column: 2; grid-row: 2; overflow: hidden; }
.hr-app-main > div:not([class]) { width: 100%; height: 100%; min-height: 0; }

/* Page frame */
.hr-page { display: flex; width: 100%; height: 100%; min-height: 0; flex-direction: column; }
.hr-page.hr-business-page { width: 100%; max-width: none; margin: 0; padding: 0; }
.hr-page-toolbar { position: relative; z-index: 4; display: flex; min-height: var(--toolbar-height); align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--divider); background: color-mix(in srgb, var(--bg) 82%, transparent); padding: 0 28px; backdrop-filter: blur(18px); }
.hr-page-title-wrap { min-width: 0; }
.hr-page-title { margin: 0; color: var(--text); font-size: 22px; font-weight: 720; letter-spacing: -0.025em; line-height: 1.2; }
.hr-page-subtitle { margin: 4px 0 0; overflow: hidden; color: var(--text-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.hr-toolbar-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.hr-page-content { min-height: 0; flex: 1; overflow: auto; padding: 26px 28px 36px; }
.hr-page-content--flush { overflow: hidden; padding: 0; }

/* Controls and surfaces */
.hr-button,
.hr-business-page button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 9px; background: var(--bg-soft); color: var(--text-soft); padding: 0 14px; font-size: 12px; font-weight: 550; line-height: normal; white-space: nowrap; cursor: pointer; transition: 150ms var(--ease); }
.hr-button:hover:not(:disabled),
.hr-business-page button:hover:not(:disabled) { border-color: color-mix(in srgb, var(--border-strong) 45%, var(--accent)); background: var(--bg-hover); color: var(--text); transform: translateY(-1px); }
.hr-button:active:not(:disabled),
.hr-business-page button:active:not(:disabled) { transform: translateY(0); }
.hr-button--primary,
.hr-business-page .hr-button--primary,
.hr-business-page .primary { border-color: transparent; background: linear-gradient(145deg, var(--accent), #6b68dc); color: #fff; box-shadow: 0 8px 24px rgba(103, 116, 238, 0.22); }
.hr-button--primary:hover:not(:disabled),
.hr-business-page .hr-button--primary:hover:not(:disabled),
.hr-business-page .primary:hover:not(:disabled) { border-color: transparent; background: linear-gradient(145deg, var(--accent-bright), #7a76e9); color: #fff; }
.hr-button--quiet { border-color: transparent; background: transparent; }
.hr-button--danger,
.hr-business-page .hr-button--danger { border-color: color-mix(in srgb, var(--red) 34%, transparent); background: var(--red-soft); color: var(--red); }
.hr-icon-button { display: inline-grid; width: 34px; min-width: 34px; height: 34px; min-height: 34px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--text-muted); padding: 0; place-items: center; transition: 150ms var(--ease); }
.hr-icon { width: 18px; height: 18px; }
.hr-panel { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--panel); box-shadow: none; backdrop-filter: none; }
.hr-status { min-height: 24px; gap: 6px; border-color: var(--border); border-radius: 99px; background: var(--bg-soft); padding: 2px 8px; color: var(--text-muted); font-size: 12px; font-weight: 620; line-height: normal; }
.hr-status[data-tone='positive'] { border-color: color-mix(in srgb, var(--green) 24%, transparent); background: var(--green-soft); color: var(--green); }
.hr-status[data-tone='warning'] { border-color: color-mix(in srgb, var(--yellow) 24%, transparent); background: var(--yellow-soft); color: var(--yellow); }
.hr-status[data-tone='negative'] { border-color: color-mix(in srgb, var(--red) 24%, transparent); background: var(--red-soft); color: var(--red); }
.hr-status--plain::before { display: none; }
.hr-ui button:focus-visible,
.hr-ui summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.hr-global-alert,
.hr-global-notice { position: absolute; z-index: 40; top: 12px; right: 18px; width: min(480px, calc(100% - 36px)); margin: 0; border-radius: 11px; box-shadow: var(--shadow-md); font-size: 12px; }
.hr-toast-stack { position: fixed; z-index: 200; top: 68px; right: 18px; display: grid; gap: 8px; pointer-events: none; }
.hr-toast { display: flex; min-width: 260px; max-width: 420px; align-items: center; gap: 9px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--panel-high); box-shadow: var(--shadow-md); padding: 11px 13px; color: var(--text-soft); font-size: 13px; animation: hr-v3-toast-in 220ms var(--ease); }
.hr-toast .hr-icon { width: 17px; height: 17px; color: var(--green); }
.hr-toast[data-tone='error'] .hr-icon { color: var(--red); }

/* Home */
.hr-home-page .hr-page-content { padding: 26px 28px 36px; }
.hr-home { display: grid; width: 100%; max-width: 1080px; margin: 0 auto; gap: 22px; padding: 8px 10px 36px; }
.hr-home-welcome { max-width: 750px; padding: 24px 0 18px; }
.hr-home-welcome .hr-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 9px; color: var(--accent-bright); font-size: 12px; font-weight: 720; letter-spacing: 0.04em; text-transform: none; }
.hr-home-welcome h1 { max-width: none; margin: 20px 0 14px; color: var(--text); font-size: clamp(27px, 3vw, 39px); font-weight: 660; letter-spacing: -0.035em; line-height: 1.45; white-space: pre-line; }
.hr-home-welcome > p { max-width: 620px; margin: 14px 0; color: var(--text-muted); font-size: 14px; line-height: 1.9; }
.hr-home-read-state { display: flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%; margin: 14px 0 0; border-radius: 11px; background: var(--accent-soft); padding: 9px 11px; color: var(--accent-bright); font-size: 12px; }

.hr-setup-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.hr-business-page .hr-setup-step { display: flex; min-width: 0; min-height: 166px; align-items: flex-start; justify-content: flex-start; gap: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); color: var(--text); padding: 24px 20px; font-size: 16px; font-weight: 400; line-height: normal; text-align: left; white-space: normal; cursor: pointer; transition: border-color 180ms, background 180ms, transform 180ms; }
.hr-setup-step:hover { border-color: var(--border-strong); background: var(--bg-hover); transform: translateY(-2px); }
.hr-setup-step.is-next { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: linear-gradient(135deg, var(--accent-soft), var(--panel)); }
.hr-setup-step__number { display: grid; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--text-muted); font-size: 12px; place-items: center; }
.hr-setup-step.is-done .hr-setup-step__number { border-color: transparent; background: var(--green-soft); color: var(--green); }
.hr-setup-step__number .hr-icon { width: 15px; height: 15px; }
.hr-setup-step__copy { display: block; min-width: 0; flex: 1; }
.hr-setup-step__copy > strong { display: block; color: var(--text); font-size: 15px; font-weight: 700; line-height: 28px; }
.hr-setup-step__copy > span { display: block; min-height: 44px; margin: 10px 0 20px; color: var(--text-muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; white-space: normal; }
.hr-setup-step__copy > small { display: flex; align-items: center; gap: 8px; color: var(--accent-bright); font-size: 12px; }
.hr-setup-step__copy > small .hr-icon { width: 14px; height: 14px; }

.hr-home-ready,
.hr-running-card { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.hr-home-ready > .hr-icon,
.hr-running-card > .hr-icon { color: var(--accent); }
.hr-home-ready > div,
.hr-running-card > div { min-width: 0; flex: 1; line-height: normal; }
.hr-home-ready strong,
.hr-running-card strong { font-size: 16px; line-height: normal; }
.hr-home-ready p,
.hr-running-card p { margin: 6px 0 0; overflow: hidden; color: var(--text-muted); font-size: 12px; line-height: normal; text-overflow: ellipsis; white-space: nowrap; }
.hr-home-daily { display: grid; gap: 22px; }
.hr-attention { margin: 0; border: 0; padding: 0; background: transparent; }
.hr-attention .hr-section-heading { display: none; }
.hr-attention-list { display: grid; gap: 8px; }
.hr-attention-list > button,
.hr-attention-static { min-height: 56px; border-color: color-mix(in srgb, var(--yellow) 28%, var(--border)); border-radius: 11px; background: var(--yellow-soft); padding: 12px 16px; }

.hr-list-panel { padding: 0; overflow: hidden; }
.hr-list-panel > .hr-section-heading { min-height: 52px; margin: 0; border-bottom: 1px solid var(--divider); padding: 0 17px; }
.hr-list-panel > .hr-section-heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
.hr-list-panel > .hr-section-heading .hr-button { min-height: 32px; }
.hr-record-list > button { display: flex; width: 100%; min-height: 83px; align-items: center; gap: 16px; border: 0; border-bottom: 1px solid var(--divider); background: transparent; padding: 18px 24px; color: inherit; text-align: left; transition: 140ms var(--ease); }
.hr-record-list > button:last-child { border-bottom: 0; }
.hr-record-list > button:hover:not(:disabled) { background: var(--bg-hover); }
.hr-record-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--bg-active); color: var(--accent-bright); place-items: center; }
.hr-record-list > button > span:nth-child(2) { display: block; min-width: 0; flex: 1; }
.hr-record-list strong { display: block; overflow: hidden; color: var(--text); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.hr-record-list small,
.hr-record-list span > span { display: block; margin-top: 7px; overflow: hidden; color: var(--text-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.hr-record-tag { flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); border-radius: 99px; background: var(--accent-soft); color: var(--accent-bright); padding: 3px 8px; font-size: 12px; }
.hr-record-time { flex: 0 0 auto; color: var(--text-muted); font-size: 12px; }
.hr-record-list > button > .hr-icon { width: 16px; color: var(--text-muted); }
.hr-compact-empty { border: 0; padding: 28px 24px; color: var(--text-muted); font-size: 12px; }

.hr-value-panel { overflow: hidden; padding: 0; }
.hr-value-panel > summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; padding: 19px 24px; color: var(--text-muted); font-size: 12px; cursor: pointer; }
.hr-value-panel > summary::-webkit-details-marker { display: none; }
.hr-value-panel > summary strong { margin-left: 18px; color: var(--text-soft); font-weight: 500; }
.hr-value-panel > summary > span:last-child { display: flex; align-items: center; gap: 8px; }
.hr-value-panel[open] > summary .hr-icon { transform: rotate(180deg); }
.hr-value-facts { display: flex; gap: 32px; border-top: 1px solid var(--divider); padding: 20px 24px; flex-wrap: wrap; }
.hr-value-panel:not([open]) > .hr-value-facts { display: none; }
.hr-value-facts > div { display: grid; gap: 8px; border: 0; background: transparent; padding: 0; }
.hr-value-facts small { color: var(--text-muted); font-size: 12px; }
.hr-value-facts strong { color: var(--text); font-size: 22px; font-weight: 600; }
.hr-value-facts p { width: 100%; margin: 0; color: var(--text-muted); font-size: 11px; }
.hr-business-page .hr-home-task-link { display: flex; width: fit-content; min-height: 0; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--text-muted); padding: 4px; font-size: 12px; font-weight: 400; line-height: normal; cursor: pointer; }

/* Settings */
.hr-settings-wrap { width: min(860px, 100%); margin: 0 auto; }
.hr-settings-group { margin-bottom: 21px; }
.hr-settings-group > h2 { margin: 0 0 9px 3px; color: var(--text-muted); font-size: 11px; font-weight: 700; line-height: normal; letter-spacing: 0.06em; text-transform: uppercase; }
.hr-settings-list { overflow: hidden; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); }
.hr-settings-row { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 22px; border-bottom: 1px solid var(--divider); padding: 11px 15px; }
.hr-settings-row:last-child { border-bottom: 0; }
.hr-settings-copy { min-width: 0; }
.hr-settings-copy strong { display: block; color: var(--text); font-size: 13px; font-weight: 700; line-height: normal; }
.hr-settings-copy span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.hr-worker-settings-control { display: flex; align-items: center; gap: 8px; }
.hr-worker-settings-input { width: 96px; }
.hr-settings-inline-error { border-top: 1px solid var(--divider); padding: 9px 15px; color: var(--red); font-size: 11px; }
.hr-settings-segmented { display: inline-flex; flex: 0 0 auto; gap: 2px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg-soft); padding: 3px; }
.hr-settings-segmented button { min-width: 0; min-height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--text-muted); padding: 0 11px; font-size: 13px; font-weight: 600; line-height: normal; }
.hr-settings-segmented button[aria-pressed='true'] { background: var(--panel-high); color: var(--text); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.18); }
.hr-settings-row > .hr-button .hr-icon { width: 16px; height: 16px; }
.hr-settings-clear-options { overflow: hidden; border: 1px solid var(--border); border-radius: 12px; }
.hr-settings-clear-options > label { display: flex; min-height: 74px; align-items: flex-start; gap: 13px; border-bottom: 1px solid var(--divider); padding: 17px 18px; cursor: pointer; }
.hr-settings-clear-options > label:last-child { border-bottom: 0; }
.hr-settings-clear-options input { width: 16px; height: 16px; flex: 0 0 16px; margin: 2px 0 0; accent-color: var(--accent); }
.hr-settings-clear-options span { min-width: 0; }
.hr-settings-clear-options strong { display: block; color: var(--text); font-size: 13px; }
.hr-settings-clear-options small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 11px; line-height: 1.6; }
.hr-settings-clear-options + .hr-callout { justify-content: flex-start; }
.hr-settings-clear-options + .hr-callout > .hr-icon { flex: 0 0 17px; }

/* Model catalog */
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
.hr-empty-state { display: grid; min-height: 100%; align-content: center; justify-items: center; padding: 40px; text-align: center; }
.hr-empty-state__icon { display: grid; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-bright); place-items: center; }
.hr-empty-state__icon .hr-icon { width: 24px; height: 24px; }
.hr-empty-state h2 { margin: 14px 0 0; color: var(--text); font-size: 17px; font-weight: 700; line-height: normal; }
.hr-empty-state p { max-width: 420px; margin: 12px 0 24px; color: var(--text-muted); font-size: 13px; line-height: 1.85; }
.hr-empty-state button .hr-icon { width: 16px; height: 16px; }
.hr-routing-page .hr-empty-state { padding: 28px; }
.hr-routing-page .hr-empty-state p { margin: 7px 0 18px; line-height: 1.6; }
.hr-sessions-page .hr-empty-state p { max-width: 380px; }
.hr-add-model-choices { display: grid; gap: 12px; }
.hr-add-model-choices > button { display: flex; width: 100%; min-height: 100px; align-items: center; gap: 18px; border: 1px solid var(--border); border-radius: 12px; background: transparent; color: var(--text); padding: 22px; text-align: left; transition: 150ms var(--ease); }
.hr-add-model-choices > button:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.hr-add-model-choices > button > div { min-width: 0; flex: 1; }
.hr-add-model-choices strong { display: block; margin-top: 1px; font-size: 14px; font-weight: 700; line-height: normal; }
.hr-add-model-choices small { display: block; margin-top: 5px; color: var(--text-muted); font-size: 11px; font-weight: 400; line-height: 1.45; }
.hr-add-model-choices > button > .hr-icon { width: 16px; color: var(--text-faint); }
.hr-add-choice__icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-bright); place-items: center; }
.hr-callout { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); color: var(--text-soft); padding: 13px 15px; font-size: 12px; line-height: 1.8; }
.hr-callout[data-tone='warning'] { border-color: color-mix(in srgb, var(--yellow) 28%, var(--border)); background: var(--yellow-soft); color: var(--yellow); }
.hr-callout p { margin: 4px 0 0; color: var(--text-muted); }
.hr-picker-search { position: relative; display: block; margin: 0 !important; }
.hr-picker-search::before { position: absolute; z-index: 1; top: 50%; left: 12px; width: 12px; height: 12px; border: 1.5px solid var(--text-muted); border-radius: 50%; content: ''; transform: translateY(-60%); pointer-events: none; }
.hr-picker-search::after { position: absolute; top: calc(50% + 4px); left: 22px; width: 6px; height: 1.5px; border-radius: 99px; background: var(--text-muted); content: ''; transform: rotate(45deg); pointer-events: none; }
.hr-picker-search input { width: 100%; height: 40px; border: 1px solid var(--border-strong); border-radius: 9px; outline: 0; background: var(--bg-soft); color: var(--text); padding: 0 11px 0 34px; font-size: 13px; }
.hr-picker-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hr-picker-list { display: block; min-height: 260px; overflow: hidden; margin-top: 16px; border: 1px solid var(--border); border-radius: 12px; }
.hr-picker-list .hr-picker-choice { display: flex; min-height: 76px; align-items: center; gap: 14px; margin: 0; border: 0; border-bottom: 1px solid var(--divider); border-radius: 0; padding: 14px 16px; }
.hr-picker-list .hr-picker-choice:last-child { border-bottom: 0; }
.hr-picker-choice > .hr-button { min-width: 62px; }
.hr-picker-empty { display: grid; min-height: 260px; padding: 40px; text-align: center; place-items: center; }
.hr-picker-empty .hr-empty-state__icon { margin: 0 auto 14px; }
.hr-picker-empty h3 { margin: 0 0 7px; color: var(--text); font-size: 17px; font-weight: 700; line-height: normal; }
.hr-picker-empty p { max-width: 380px; margin: 12px auto 24px; color: var(--text-muted); font-size: 13px; line-height: 1.85; }

.hr-models-page .hr-page-content--flush { overflow: hidden; }
.models-feature { display: block; width: 100%; height: 100%; min-height: 0; }
.models-feature > p[role='status'],
.models-feature > p[role='alert'],
.hr-models-page > .hr-page-content > .notice,
.hr-models-page > .hr-page-content > .alert,
.hr-models-page > .hr-page-content > p[role='status'] { position: absolute; z-index: 20; top: 78px; right: 18px; width: min(460px, calc(100% - 36px)); margin: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--panel-high); box-shadow: var(--shadow-md); padding: 12px 14px; color: var(--text-soft); font-size: 12px; }
.models-layout,
.hr-master-detail { display: grid; width: 100%; height: 100%; min-width: 0; min-height: 0; grid-template-columns: clamp(280px, 28vw, 400px) minmax(0, 1fr); gap: 0; }
.hr-object-list { display: flex; min-width: 0; min-height: 0; flex-direction: column; overflow: hidden; border: 0; border-right: 1px solid var(--divider); background: color-mix(in srgb, var(--panel) 62%, transparent); padding: 0; }
.hr-master-detail > .hr-object-list { position: static; top: auto; max-height: none; align-self: stretch; overflow: hidden; }
.hr-master-toolbar { display: grid; gap: 10px; border-bottom: 1px solid var(--divider); padding: 13px; }
.hr-search-box { position: relative; display: block; margin: 0 !important; }
.hr-search-box::before { position: absolute; z-index: 1; top: 50%; left: 12px; width: 12px; height: 12px; border: 1.5px solid var(--text-muted); border-radius: 50%; content: ''; transform: translateY(-60%); pointer-events: none; }
.hr-search-box::after { position: absolute; top: calc(50% + 4px); left: 22px; width: 6px; height: 1.5px; border-radius: 99px; background: var(--text-muted); content: ''; transform: rotate(45deg); pointer-events: none; }
.hr-search-box input,
.hr-master-toolbar input { width: 100%; height: 38px; border: 1px solid var(--border-strong); border-radius: 9px; outline: none; background: var(--bg-soft); color: var(--text); padding: 0 11px 0 34px; font-size: 13px; }
.hr-search-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hr-search-box input::placeholder { color: var(--text-faint); }
.hr-source-tabs { display: flex; min-width: 0; gap: 4px; overflow-x: auto; }
.hr-source-tabs button { min-width: 0; min-height: 30px; flex: 1; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); padding: 0 7px; font-size: 11px; white-space: nowrap; }
.hr-source-tabs button[aria-pressed='true'] { background: var(--bg-active); color: var(--text-soft); }
.hr-master-list { min-height: 0; flex: 1; overflow: auto; }
.hr-object-row { display: flex !important; width: 100% !important; min-width: 0; min-height: 68px !important; align-items: center; gap: 12px !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--divider) !important; border-radius: 0 !important; background: transparent !important; color: inherit !important; padding: 9px 13px !important; text-align: left !important; }
.hr-object-row:hover { background: var(--bg-hover) !important; }
.hr-object-row[aria-current='page'] { background: var(--accent-soft) !important; }
.hr-model-tile { display: grid; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--bg-active); color: var(--accent-bright); font-size: 10px; font-weight: 760; place-items: center; }
.hr-model-tile--large { width: 42px; height: 42px; flex-basis: 42px; border-radius: 12px; font-size: 12px; }
.hr-choice-copy { display: block; min-width: 0; flex: 1; }
.hr-choice-copy strong { display: block; overflow: hidden; color: var(--text); font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.hr-choice-copy small { display: block; margin-top: 4px; overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hr-status--compact { min-height: 22px; flex: 0 0 auto; padding: 1px 7px; font-size: 10px; }
.hr-list-empty { display: grid; min-height: 260px; align-content: center; justify-items: center; padding: 26px; text-align: center; }
.hr-list-empty strong { margin-top: 12px; font-size: 13px; }
.hr-list-empty p { margin: 7px 0 14px; color: var(--text-muted); font-size: 11px; }
.hr-list-empty button { min-height: 32px; }

.hr-detail-pane { min-width: 0; min-height: 0; overflow: auto; border: 0; border-radius: 0; background: transparent; padding: 0; }
.hr-detail-inner { width: 100%; max-width: 900px; padding: 28px 30px; }
.hr-detail-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 24px; }
.hr-detail-identity { display: flex; min-width: 0; align-items: center; gap: 14px; }
.hr-detail-identity h2 { margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 22px; font-weight: 680; letter-spacing: -0.025em; }
.hr-detail-identity p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; }
.hr-detail-section { border-top: 1px solid var(--divider); padding: 24px 0; }
.hr-detail-section h3 { margin: 0; color: var(--text); font-size: 14px; font-weight: 650; }
.hr-detail-section > p { margin: 10px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.8; }
.hr-detail-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hr-detail-section__head button { min-height: 32px; border-color: transparent; background: transparent; }
.hr-model-capabilities { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 16px; }
.hr-model-capabilities > span { display: flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 12px; }
.hr-model-check { display: grid; width: 15px; height: 15px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 750; place-items: center; }
.hr-model-route-list { display: grid; gap: 8px; margin-top: 12px; }
.hr-model-route-list > button { display: flex; width: 100%; min-height: 58px; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); padding: 9px 12px; text-align: left; }
.hr-model-route-list > button > :last-child { color: var(--text-faint); font-size: 16px; }
.hr-model-route-icon { display: grid; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-bright); place-items: center; }
.hr-native-details { border-top: 1px solid var(--divider); padding: 0; color: var(--text-muted); font-size: 12px; }
.hr-native-details > summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; color: var(--text-soft); font-size: 13px; font-weight: 620; list-style: none; cursor: default; }
.hr-native-details > summary::-webkit-details-marker { display: none; }
.hr-native-details > summary::after { color: var(--text-muted); content: '⌄'; }
.hr-native-details[open] > summary::after { transform: rotate(180deg); }
.hr-native-details dl { display: grid; gap: 10px; margin: 16px 0 0; }
.hr-native-details dl > div { display: grid; grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr); gap: 16px; }
.hr-native-details dt { color: var(--text-muted); }
.hr-native-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--text-soft); }
.hr-back-to-list { display: none !important; }
.model-row { display: flex !important; align-items: center !important; gap: 9px !important; margin: 0 !important; border-bottom: 1px solid var(--divider); padding: 12px 0 !important; color: var(--text-soft) !important; }
.model-row input { width: 16px !important; height: 16px; accent-color: var(--accent); }
.key-row,
.key-editor-row { border-color: var(--divider); padding: 12px 0; }
.model-actions { position: sticky; bottom: -28px; z-index: 3; margin: 0 -30px; border-top: 1px solid var(--divider); background: color-mix(in srgb, var(--bg) 94%, transparent); padding: 14px 30px; backdrop-filter: blur(18px); }

/* Routing */
.hr-routing-page .hr-page-content--flush { overflow: hidden; }
.hr-routing-page > .hr-page-content > .notice,
.hr-routing-page > .hr-page-content > .alert,
.hr-routing-page > .hr-page-content > p[role='status'],
.hr-routing-page > .hr-page-content > p[role='alert'] { position: absolute; z-index: 30; top: 78px; right: 18px; width: min(460px, calc(100% - 36px)); margin: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--panel-high); box-shadow: var(--shadow-md); padding: 12px 14px; color: var(--text-soft); font-size: 12px; }
.hr-route-tile { color: #fff; background: #8c66c8; }
.hr-route-tile[data-mode='smart_saving'] { background: #6676ed; }
.hr-route-tile[data-mode='free_first'] { background: #218a6d; }
.hr-routing-page .hr-detail-pane { position: relative; }
.hr-routing-page .hr-master-list { height: 100%; }
.hr-routing-page .hr-object-row { min-height: 62px !important; justify-content: flex-start; }
.hr-detail-fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.full-editor { width: 100%; max-width: 900px; margin: 0; padding: 26px 30px 40px; }
.full-editor > fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.hr-editor-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0; border-bottom: 1px solid var(--divider); padding: 0 0 20px; }
.hr-editor-title > div:first-child { display: flex; min-width: 0; align-items: center; gap: 9px; }
.hr-editor-title h2 { margin: 0; overflow-wrap: anywhere; color: var(--text); font-size: 24px; font-weight: 700; letter-spacing: normal; line-height: normal; }
.hr-status-tag { display: inline-flex; min-height: 24px; align-items: center; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 99px; background: var(--bg-soft); color: var(--text-muted); padding: 2px 8px; font-size: 11px; font-weight: 620; }
.hr-status-tag::before { width: 6px; height: 6px; flex: 0 0 6px; margin-right: 5px; border-radius: 50%; background: currentColor; content: ''; }
.hr-status-tag[data-tone='positive'] { border-color: color-mix(in srgb, var(--green) 24%, transparent); background: var(--green-soft); color: var(--green); }
.hr-status-tag[data-tone='warning'] { border-color: color-mix(in srgb, var(--yellow) 24%, transparent); background: var(--yellow-soft); color: var(--yellow); }
.hr-editor-title__actions { flex: 0 0 auto; }
.hr-editor-section { border-bottom: 1px solid var(--divider); padding: 22px 0; }
.hr-editor-section:last-child { border-bottom: 0; }
.hr-editor-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.hr-editor-section-heading > div { min-width: 0; }
.hr-editor-section-heading h3 { margin: 0; color: var(--text); font-size: 15px; font-weight: 700; line-height: normal; }
.hr-editor-section-heading p { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.hr-editor-identity { display: grid; grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.4fr); gap: 10px; }
.full-editor label { margin: 0; color: var(--text-soft); font-size: 12px; }
.full-editor input:not([type='checkbox']):not([type='radio']),
.full-editor select,
.full-editor textarea { width: 100%; min-height: 40px; border: 1px solid var(--border-strong); border-radius: 9px; outline: 0; background: var(--bg-soft); color: var(--text); padding: 0 11px; font-size: 13px; }
.full-editor textarea { padding-top: 10px; padding-bottom: 10px; }
.full-editor input:focus,
.full-editor select:focus,
.full-editor textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.full-editor input::placeholder,
.full-editor textarea::placeholder { color: var(--text-faint); }
.hr-editor-modes { margin: 0; border-top: 0; }
.hr-mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hr-business-page .hr-mode-grid > button { display: block; min-height: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); padding: 14px 12px !important; color: var(--text-soft); font-size: 16px; font-weight: 400; line-height: normal; text-align: left; }
.hr-mode-grid > button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.hr-business-page .hr-mode-grid strong { display: block; font-size: 13px; font-weight: 700; line-height: normal; }
.hr-business-page .hr-mode-grid small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 10px; line-height: 1.4; }
.hr-business-page .hr-mode-grid > button[aria-pressed='true'] small { line-height: 1.7; }
.hr-mode-grid > button:not([aria-pressed='true']) small { display: none; }
.hr-route-lane { min-width: 0; border: 1px solid var(--border); border-radius: 13px; background: var(--bg-soft); padding: 14px; }
.hr-route-lane.is-primary { border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); background: linear-gradient(180deg, var(--accent-soft), var(--bg-soft)); }
.hr-lane-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.hr-lane-head > div { min-width: 0; }
.hr-lane-head strong { display: block; color: var(--text); font-size: 14px; font-weight: 700; line-height: normal; }
.hr-lane-head > div > span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 11px; line-height: normal; }
.hr-lane-head > .hr-status { display: inline-flex; flex: 0 0 auto; margin: 0; }
.hr-candidate-list { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.hr-route-candidate { display: grid; width: 100%; min-width: 0; min-height: 54px; overflow: hidden; align-items: center; grid-template-columns: 15px 22px 34px minmax(0, 1fr) auto; grid-template-areas: "drag index avatar main main" ". . . effort controls"; column-gap: 9px; row-gap: 7px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-high); padding: 8px; }
.hr-route-candidate > * { min-width: 0; }
.hr-drag-handle { display: flex; grid-area: drag; color: var(--text-faint); cursor: grab; }
.hr-drag-handle .hr-icon { width: 18px; height: 18px; }
.hr-candidate-index { display: grid; width: 22px; height: 22px; grid-area: index; border-radius: 7px; background: var(--bg-active); color: var(--text-muted); font-size: 10px; font-weight: 720; place-items: center; }
.hr-candidate-avatar { display: grid; width: 34px; height: 34px; grid-area: avatar; border-radius: 10px; background: linear-gradient(145deg, #5078d8, #6559c9); color: #fff; font-size: 12px; font-weight: 760; line-height: normal; place-items: center; }
.hr-route-candidate:nth-child(3n + 2) .hr-candidate-avatar { background: linear-gradient(145deg, #8c66c8, #6654b7); }
.hr-route-candidate:nth-child(3n) .hr-candidate-avatar { background: linear-gradient(145deg, #218a6d, #277963); }
.hr-candidate-main { min-width: 0; grid-area: main; }
.hr-candidate-main strong { display: block; overflow: hidden; color: var(--text); font-size: 12px; font-weight: 700; line-height: normal; text-overflow: ellipsis; white-space: nowrap; }
.hr-candidate-main span { display: block; margin-top: 3px; overflow: hidden; color: var(--text-muted); font-size: 10px; line-height: normal; text-overflow: ellipsis; white-space: nowrap; }
.hr-candidate-effort { min-width: 0; grid-area: effort; justify-self: start; }
.hr-effort-static { display: inline-flex; min-height: 29px; align-items: center; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-soft); color: var(--text-soft); padding: 0 8px; font-size: 10px; }
.full-editor .hr-effort-select { width: auto; min-width: 108px; max-width: 150px; min-height: 29px; height: 29px; border-radius: 7px; padding: 0 24px 0 8px; font-size: 10px; }
.hr-effort-budget { display: flex; align-items: center; gap: 6px; }
.full-editor .hr-effort-budget input { width: 96px !important; min-height: 29px !important; height: 29px; border-radius: 7px; font-size: 10px; }
.hr-effort-budget > span:last-child { color: var(--text-muted); font-size: 10px; }
.hr-candidate-controls { display: flex; align-items: center; grid-area: controls; justify-self: end; gap: 3px; }
.hr-business-page .hr-candidate-controls .hr-icon-button { display: inline-grid; width: 27px; min-width: 27px; height: 27px; min-height: 27px; border-color: transparent; border-radius: 7px; background: transparent; padding: 0 !important; place-items: center; }
.hr-candidate-controls .hr-icon { width: 13px; height: 13px; }
.hr-business-page .full-editor .hr-add-model { display: flex; width: 100%; min-height: 38px; margin-top: 8px; border: 1px dashed var(--border-strong); border-radius: 9px; background: transparent; color: var(--text-muted); padding: 0 12px !important; gap: 6px; font-size: 12px !important; font-weight: 400; line-height: normal; }
.hr-add-model .hr-icon { width: 14px; height: 14px; }
.hr-free-lane { margin-top: 16px; }
.hr-mini-route { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.hr-lane-connector { display: grid; min-height: 160px; color: var(--text-faint); place-items: center; }
.hr-option-panel { display: grid; gap: 9px; margin-top: 12px; }
.hr-business-page .hr-option-row { display: flex; width: 100%; min-height: 0; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); color: var(--text); padding: 13px !important; text-align: left; }
.hr-business-page .hr-option-row[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); }
.hr-option-row > span:first-child { min-width: 0; }
.hr-option-row strong { display: block; font-size: 13px; font-weight: 650; }
.hr-option-row small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 11px; }
.hr-option-choice { display: inline-flex; min-height: 24px; align-items: center; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 99px; color: var(--text-muted); padding: 2px 8px; font-size: 12px; }
.hr-option-choice.is-selected { border-color: color-mix(in srgb, var(--accent) 24%, transparent); background: var(--accent-soft); color: var(--accent-bright); }
.hr-fallback-heading { margin-top: 20px; }
.hr-keywords { margin-top: 18px; }
.hr-keyword-box { display: flex; flex-wrap: wrap; gap: 7px; }
.hr-keyword-chip { display: inline-flex; min-height: 29px; align-items: center; gap: 5px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-soft); color: var(--text-soft); padding: 0 8px 0 10px; font-size: 11px; }
.hr-business-page .hr-keyword-chip button { display: grid; width: 18px; min-width: 18px; height: 18px; min-height: 18px; border: 0; background: transparent; padding: 0 !important; place-items: center; }
.hr-keyword-chip .hr-icon { width: 12px; height: 12px; }
.hr-keyword-add { display: flex; gap: 7px; margin-top: 10px; }
.hr-keyword-add input { max-width: 340px; }
.hr-switch { position: relative; display: block; width: 40px; height: 23px; flex: 0 0 40px; border-radius: 99px; background: var(--bg-active); }
.hr-switch::after { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--text-muted); content: ''; transition: 180ms var(--ease); }
.hr-switch.is-on { background: var(--accent); }
.hr-switch.is-on::after { left: 20px; background: #fff; }
.full-editor .check { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; line-height: 1.65; }
.full-editor .check input { width: 16px !important; height: 16px; margin-top: 2px; accent-color: var(--accent); }
.hr-execution-agent { border-top: 1px solid var(--divider); padding: 22px 0; }
.hr-executor-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.hr-executor-grid > button { display: flex; min-width: 175px; min-height: 68px; align-items: center; gap: 12px; flex: 1; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-soft); padding: 14px 16px; text-align: left; }
.hr-executor-grid > button[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); }
.hr-executor-grid > button > span:last-child { min-width: 0; flex: 1; }
.hr-executor-grid strong { display: block; font-size: 13px; }
.hr-executor-grid small { display: block; margin-top: 5px; color: var(--text-muted); font-size: 11px; }
.hr-editor-actions { position: static; justify-content: flex-end; border-top: 1px solid var(--divider); background: transparent; padding: 18px 0 0; }
.hr-editor-actions > details { margin-right: auto; }
.hr-editor-actions > details > summary { color: var(--text-muted); font-size: 12px; cursor: pointer; }
.full-editor .hr-native-details > summary { line-height: normal; }
.hr-route-usage { max-width: 900px; margin: 0; padding: 0 30px 30px; }
.full-editor > p.muted-text { margin: 10px 0; color: var(--text-muted); font-size: 11px; }
.full-editor > p[role='status'],
.full-editor > .alert { position: static; margin: 14px 0 0; border-radius: 11px; box-shadow: none; }

/* Agent connections */
.hr-agents-page .hr-page-content--flush { position: relative; overflow: hidden; }
.hr-agent-tabs { display: inline-flex; position: absolute; z-index: 8; top: 12px; left: 20px; gap: 2px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); padding: 3px; }
.hr-agent-tabs button { min-height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted); padding: 0 11px; font-size: 13px; font-weight: 600; }
.hr-agent-tabs button[aria-selected='true'] { background: var(--panel-high); color: var(--text); box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2); }
.hr-agents-page .hr-master-detail { padding-top: 62px; }
.hr-agents-page .hr-object-list { background: color-mix(in srgb, var(--panel) 54%, transparent); }
.hr-agents-page .hr-object-row { min-height: 62px !important; }
.hr-agents-page .hr-brand-icon,
.hr-agents-page .hr-brand-icon[data-size='small'],
.hr-agents-page .hr-brand-icon[data-size='large'] { width: 34px; height: 34px; flex: 0 0 34px; }
.hr-agents-page .hr-detail-inner { max-width: none; padding: 28px 30px; }
.hr-agents-page .hr-detail-hero { gap: 12px; border-bottom: 1px solid var(--divider); padding: 0 0 22px; }
.hr-agents-page .hr-detail-identity h2 { font-size: 23px; font-weight: 700; line-height: normal; }
.hr-agents-page .hr-detail-identity p { font-size: 13px; line-height: normal; }
.hr-agent-facet { min-height: 0; border-top: 0; border-bottom: 1px solid var(--divider); padding: 24px 0; }
.hr-agent-facet .hr-detail-section__head { gap: 18px; margin-bottom: 13px; }
.hr-agent-facet .hr-detail-section__head h3 { font-weight: 700; line-height: normal; }
.hr-agent-facet .hr-detail-section__head button { min-height: 36px; color: var(--text-soft); line-height: normal; }
.hr-agent-facet > p { margin: 13px 0; line-height: 1.9; }
.hr-agent-facet > p strong { color: var(--text); font-weight: 500; }
.hr-agent-route { display: flex; min-height: 62px; align-items: center; gap: 14px; margin-top: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; }
.hr-agent-route > span:nth-child(2) { min-width: 0; flex: 1; }
.hr-agent-route strong { display: block; overflow: hidden; color: var(--text); font-size: 13px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.hr-agent-route small { display: block; margin-top: 4px; overflow: hidden; color: var(--text-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.hr-agent-route > .hr-icon { width: 15px; color: var(--text-faint); }
.hr-agents-page .hr-native-details > summary { line-height: normal; }
.hr-agent-task-empty { min-height: 100%; }
.hr-agents-page .hr-task-workspace { padding-top: 62px; }
.hr-task-list-title { display: grid; min-height: 49px; align-items: center; border-bottom: 1px solid var(--divider); padding: 13px; color: var(--text-soft); font-size: 12px; font-weight: 620; }
.hr-task-row { min-height: 58px !important; }
.hr-agents-page .hr-task-detail { width: min(820px, 100%); max-width: none; padding: 28px 30px; }
.hr-task-detail .hr-detail-hero { gap: 24px; border-bottom: 1px solid var(--divider); padding: 0 0 22px; }
.hr-task-detail .hr-detail-identity h2 { font-size: 23px; line-height: normal; }
.hr-task-detail .hr-detail-identity p { font-size: 13px; line-height: normal; }
.hr-task-actions { display: flex; min-height: 0; gap: 10px; margin: 18px 0; padding: 0; flex-wrap: wrap; }
.hr-task-detail > .hr-detail-section { min-height: 0; border-top: 0; border-bottom: 1px solid var(--divider); padding: 24px 0; }
.hr-task-detail > .hr-detail-section h3 { margin: 0 0 13px; line-height: 20px; }
.hr-task-detail > .hr-detail-section > .hr-task-text { max-width: 760px; margin: 16px 0; color: var(--text-soft); font-size: 16px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.hr-task-facts { margin-top: 14px; border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.hr-task-facts > div { display: grid; min-height: 48px; align-items: center; grid-template-columns: minmax(0, 1fr) minmax(110px, .45fr) minmax(90px, .35fr); gap: 12px; border-bottom: 1px solid var(--divider); padding: 10px 13px; color: var(--text-muted); font-size: 11px; }
.hr-task-facts > div:last-child { border-bottom: 0; }
.hr-task-facts strong { color: var(--text); font-size: 12px; }
.hr-task-detail > .hr-callout { justify-content: flex-start; margin: 0; padding: 12px 13px; }
.hr-task-detail > .hr-callout > .hr-icon { flex: 0 0 17px; color: var(--accent-bright); }
.hr-task-detail > .hr-native-details > summary { line-height: 18px; }
.hr-dialog-copy { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.8; }
.hr-page-state { position: absolute; z-index: 30; top: 72px; right: 18px; width: min(460px, calc(100% - 36px)); margin: 0; border: 1px solid var(--border); border-radius: 11px; background: var(--panel-high); box-shadow: var(--shadow-md); padding: 12px 14px; color: var(--text-soft); font-size: 12px; }
.hr-agent-form fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.hr-agent-form label { display: grid; gap: 7px; margin-bottom: 16px; color: var(--text-soft); font-size: 12px; }
.hr-agent-form .hr-agent-plan-list { display: grid; gap: 9px; }
.hr-agent-form .hr-agent-plan-list > legend { margin-bottom: 10px; color: var(--text); font-size: 15px; font-weight: 620; line-height: normal; }
.hr-agent-form .agent-plan-choice { display: grid; min-width: 0; align-items: start; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; margin: 0; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-soft); padding: 12px 13px; color: var(--text-soft); cursor: pointer; }
.hr-agent-form .agent-plan-choice:hover { border-color: var(--border-strong); background: var(--bg-active); }
.hr-agent-form .agent-plan-choice:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 62%, var(--border)); background: var(--accent-soft); }
.hr-agent-form .agent-plan-choice input { width: 16px; height: 16px; min-width: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.hr-agent-form .agent-plan-choice > span { display: block; min-width: 0; }
.hr-agent-form .agent-plan-choice strong { display: block; color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.45; }
.hr-agent-form .agent-plan-choice small { display: block; margin-top: 3px; overflow-wrap: anywhere; color: var(--text-muted); font-size: 11px; line-height: 1.55; }
.hr-agent-form select,
.hr-agent-form textarea { width: 100%; border: 1px solid var(--border-strong); border-radius: 9px; outline: 0; background: var(--bg-soft); color: var(--text); font: inherit; }
.hr-agent-form select { height: 42px; padding: 0 11px; }
.hr-agent-form textarea { min-height: 92px; resize: vertical; padding: 10px 11px; line-height: 1.6; }
.hr-agent-form select:focus,
.hr-agent-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hr-agent-form .check { display: flex; min-height: 48px; align-items: flex-start; gap: 10px; margin: 0; border-bottom: 1px solid var(--divider); padding: 12px 4px; }
.hr-agent-form .check input { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; accent-color: var(--accent); }
.hr-agent-form .check > span { display: block; min-width: 0; }
.hr-agent-form .check strong { display: block; color: var(--text); font-size: 13px; font-weight: 620; }
.hr-agent-form .check small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 11px; line-height: 1.55; }
.hr-agent-form > p { color: var(--text-muted); font-size: 12px; line-height: 1.7; }
.hr-dialog .hr-agent-blockers { margin: 16px 0 0; font-size: 12px; line-height: 1.6; }
.hr-dialog .hr-agent-blockers > strong { display: block; margin-bottom: 6px; color: var(--text); }
.hr-dialog .hr-agent-blockers p { margin: 0; }
.hr-dialog .hr-agent-blocker + .hr-agent-blocker { margin-top: 10px; }
.hr-dialog .hr-agent-blockers details { margin-top: 7px; color: var(--text-muted); }
.hr-dialog .hr-agent-blockers > .hr-button { margin-top: 12px; background: var(--surface); }
.hr-agent-inline-feedback { margin: 16px 0 0; font-size: 12px; line-height: 1.65; }
.hr-agent-inline-feedback > button { margin-left: 8px; }
.hr-agent-inline-feedback details { margin-top: 7px; }

/* Sessions */
.hr-sessions-page .session-detail { min-width: 0; min-height: 100%; padding: 0; }
.hr-sessions-page .hr-transcript-head { min-height: 0; align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 18px 148px 18px 22px; }
.hr-sessions-page .hr-transcript-head h2 { font-size: 17px; line-height: 1.6; }
.hr-sessions-page .hr-transcript-head p { line-height: 16px; }
.hr-sessions-page .hr-session-filters .hr-search-box input { height: 40px; min-height: 40px; }
.hr-sessions-page .hr-session-segments button { height: 30px; min-height: 30px; padding: 0 11px; font-size: 13px; line-height: normal; }
.hr-sessions-page .hr-session-item .hr-status--compact { min-height: 24px; padding: 2px 8px; font-size: 12px; line-height: normal; }
.hr-sessions-page .hr-request-body { width: min(760px, 100%); max-width: none; margin: 0 auto; padding: 28px; }
.hr-sessions-page .hr-session-gap { margin: 0 0 18px; }
.hr-sessions-page .session-message { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; margin: 0 0 22px; border: 0; padding: 0; }
.hr-sessions-page .session-message:first-of-type { padding-top: 0; }
.hr-sessions-page .hr-message-avatar { border-radius: 9px; }
.hr-sessions-page .hr-message-copy h4 { display: flex; min-height: 24px; align-items: center; gap: 8px; margin: 0; font-size: 12px; font-weight: 670; }
.hr-sessions-page .hr-message-content { margin-top: 5px; font-size: 14px; line-height: 1.9; }
.hr-message-badge { display: inline-flex; min-height: 24px; align-items: center; border: 1px solid var(--border); border-radius: 99px; background: var(--bg-soft); color: var(--text-muted); padding: 2px 8px; font-size: 12px; font-weight: 620; }
.hr-message-badge[data-tone='info'] { border-color: color-mix(in srgb, var(--accent) 24%, transparent); background: var(--accent-soft); color: var(--accent-bright); }
.hr-message-badge[data-tone='warning'] { border-color: color-mix(in srgb, var(--yellow) 24%, transparent); background: var(--yellow-soft); color: var(--yellow); }
.hr-sessions-page .hr-session-privacy { margin-top: 0; }
.hr-sessions-page .hr-request-facts-button { top: 14px; }
.hr-fact-section { border-bottom: 1px solid var(--divider); padding: 13px 0; }
.hr-fact-section:first-of-type { padding-top: 0; }
.hr-fact-section h3 { margin: 0 0 9px; color: var(--text-muted); font-size: 10px; font-weight: 700; line-height: normal; letter-spacing: .06em; text-transform: uppercase; }
.hr-fact-kv { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 7px 10px; margin: 11px 0; font-size: 11px; line-height: normal; }
.hr-fact-kv dt { color: var(--text-muted); }
.hr-fact-kv dd { margin: 0; color: var(--text-soft); text-align: right; }
.hr-attempt { position: relative; margin-left: 7px; border-left: 1px solid var(--border-strong); padding: 0 0 16px 17px; }
.hr-attempt:last-child { padding-bottom: 0; }
.hr-attempt::before { position: absolute; top: 3px; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted); content: ''; }
.hr-attempt.is-success::before { background: var(--green); }
.hr-attempt.is-failed::before { background: var(--red); }
.hr-attempt strong { display: block; color: var(--text); font-size: 11px; line-height: 13px; }
.hr-attempt span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 10px; line-height: 1.45; }
.hr-inspector-warning { border: 1px solid color-mix(in srgb, var(--yellow) 24%, var(--border)); border-radius: 9px; background: var(--yellow-soft); color: var(--yellow); padding: 9px 10px; font-size: 11px; }

/* Dialogs */
.hr-dialog-backdrop { top: 0; padding: 24px; background: rgba(4, 7, 14, 0.48); backdrop-filter: blur(8px); animation: hr-v3-fade 150ms var(--ease); }
.hr-dialog { width: min(580px, calc(100vw - 48px)); max-height: calc(100vh - 48px); border: 1px solid var(--border-strong); border-radius: 18px; background: var(--panel-high); box-shadow: var(--shadow-lg); animation: hr-v3-rise 150ms var(--ease); }
.hr-dialog__header { align-items: flex-start; border-bottom: 1px solid var(--divider); padding: 24px 26px 20px; }
.hr-dialog__header h2 { margin: 0; font-size: 19px; font-weight: 620; line-height: 1.5; }
.hr-dialog__header p { max-width: 450px; margin: 7px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.75; }
.hr-dialog__body { padding: 22px 26px; }
.hr-dialog__footer { border-top: 1px solid var(--divider); background: var(--panel-solid); padding: 16px 26px; gap: 12px; }
.hr-dialog__header .hr-icon-button { width: 34px; min-width: 34px; height: 34px; min-height: 34px; border: 0; background: transparent; }
.hr-dialog .mc-field { display: grid; gap: 7px; margin: 0 0 20px; }
.hr-dialog .model-connections .mc-grid--single { gap: 0; }
.hr-dialog .mc-field > label { display: flex; margin: 0 0 9px; color: var(--text-soft); font-size: 12px; font-weight: 620; line-height: 1.6; }
.hr-dialog .mc-field > input,
.hr-dialog .mc-field > select { width: 100%; min-width: 0; height: 40px; min-height: 40px; margin: 0; border: 1px solid var(--border-strong); border-radius: 9px; outline: 0; background-color: var(--bg-soft); color: var(--text); padding: 0 11px; font-size: 13px; }
.hr-dialog .mc-field > select { padding-right: 36px; }
.hr-dialog .mc-field > input:focus,
.hr-dialog .mc-field > select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hr-dialog .mc-connection-error { padding: 12px 13px; }
.hr-dialog .mc-note { margin: 12px 0; font-size: 12px; line-height: normal; }
.hr-dialog-backdrop--drawer { justify-content: flex-end; padding: 0; backdrop-filter: none; }
.hr-dialog--drawer { width: min(400px, 90vw); height: 100%; max-height: 100%; border-width: 0 0 0 1px; border-radius: 0; box-shadow: -30px 0 80px rgba(0, 0, 0, 0.4); }

@keyframes hr-v3-fade { from { opacity: 0; } }
@keyframes hr-v3-rise { from { opacity: 0; transform: translateY(8px) scale(0.99); } }
@keyframes hr-v3-toast-in { from { opacity: 0; transform: translateY(-8px); } }

@media (max-width: 1100px) {
  .hr-setup-actions { grid-template-columns: 1fr; }
  .hr-business-page .hr-setup-step { min-height: 0; padding: 18px 22px; }
  .hr-setup-step__copy > span { min-height: 0; margin: 5px 0 10px; }
  .hr-home-welcome { padding: 8px 0; }
  .hr-home-welcome h1 { font-size: 29px; }
  .models-layout,
  .hr-master-detail { grid-template-columns: 280px minmax(0, 1fr); }
  .hr-detail-inner { padding: 24px; }
}

@media (max-width: 1000px) {
  .hr-ui { --sidebar-width: 76px; }
  .hr-navigation__brand { justify-content: center; margin: 0; padding: 0; }
  .hr-navigation__brand > span:last-child,
  .hr-navigation nav button span,
  .hr-navigation__settings span,
  .hr-navigation__health > span:last-child { display: none; }
  .hr-navigation nav { padding-right: 8px; padding-left: 8px; }
  .hr-navigation nav button,
  .hr-navigation__settings { justify-content: center; padding: 0; }
  .hr-navigation__health { justify-content: center; }
}

@media (max-width: 800px) {
  .hr-page-toolbar { padding: 0 28px; }
  .hr-page-content { padding-right: 20px; padding-left: 20px; }
  .hr-settings-row { align-items: flex-start; flex-direction: column; }
  .hr-settings-segmented { width: 100%; }
  .hr-settings-segmented button { min-width: 0; flex: 1; }
  .hr-value-panel > summary { align-items: flex-start; flex-direction: column; gap: 12px; }
  .models-layout,
  .hr-master-detail { grid-template-columns: 1fr; grid-template-rows: 180px minmax(0, 1fr); }
  .hr-object-list { border-right: 0; border-bottom: 1px solid var(--divider); }
  .hr-master-list { display: flex; height: 90px; overflow: auto; }
  .hr-object-row { width: 260px !important; flex: 0 0 260px; border-right: 1px solid var(--divider) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .hr-ui *, .hr-ui *::before, .hr-ui *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}

/* Route controls use V3 dialog interaction; errors stay in normal flow. */
.hr-field-error { display: block; margin-top: 6px; color: var(--hr-negative); font-size: 12px; overflow-wrap: anywhere; }
.full-editor input[aria-invalid='true'] { border-color: var(--hr-negative); }
.hr-route-error p { margin: 0; white-space: normal; overflow-wrap: anywhere; }
.hr-reasoning-options { display: flex; flex-wrap: wrap; gap: 6px; }
.hr-reasoning-options button[aria-pressed='true'] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.hr-business-page .full-editor button.hr-effort-select { min-height: 29px; height: auto; max-width: 150px; padding: 0 8px; font-size: 10px; overflow-wrap: anywhere; }
.hr-picker-choice > .hr-button { flex: 0 0 auto; }