/*
 * BeeSigma Agent Workforce — Apple-inspired clarity layer
 * The original component rules stay underneath so product behaviour remains unchanged.
 */

:root {
  color-scheme: light;
  --apple-bg: #f5f5f7;
  --apple-surface: rgba(255, 255, 255, 0.84);
  --apple-surface-solid: #ffffff;
  --apple-raised: #fbfbfd;
  --apple-text: #1d1d1f;
  --apple-secondary: #6e6e73;
  --apple-tertiary: #86868b;
  --apple-line: rgba(0, 0, 0, 0.08);
  --apple-line-strong: rgba(0, 0, 0, 0.14);
  --apple-honey: #ffad0a;
  --apple-honey-deep: #9a6200;
  --apple-blue: #0071e3;
  --apple-green: #28a745;
  --apple-red: #d92d20;
  --apple-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 14px 40px rgba(0, 0, 0, 0.06);
  --apple-shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.03), 0 24px 60px rgba(0, 0, 0, 0.1);
  --display: "SF Pro Display", "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
  --text: "SF Pro Text", "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", Menlo, monospace;

  --ink: var(--apple-text);
  --ink-2: #3a3a3c;
  --paper: var(--apple-bg);
  --paper-bright: var(--apple-surface-solid);
  --paper-deep: #eeeef0;
  --line: var(--apple-line);
  --line-dark: var(--apple-line-strong);
  --coral: var(--apple-honey);
  --teal: var(--apple-blue);
  --teal-soft: rgba(0, 113, 227, 0.16);
  --green: var(--apple-green);
  --red: var(--apple-red);
  --shadow: var(--apple-shadow);
  --serif: var(--display);
  --sans: var(--text);
  --muted: var(--apple-secondary);

  --bee-bg: var(--apple-bg);
  --bee-bg-2: #ececf0;
  --bee-panel: var(--apple-surface-solid);
  --bee-panel-2: var(--apple-raised);
  --bee-border: var(--apple-line);
  --bee-border-strong: var(--apple-line-strong);
  --bee-text: var(--apple-text);
  --bee-muted: var(--apple-secondary);
  --bee-dim: var(--apple-tertiary);
  --bee-honey: var(--apple-honey);
  --bee-honey-2: #ffc64d;
  --bee-amber: #ff9500;
  --bee-cream: var(--apple-surface-solid);
  --bee-ink: var(--apple-text);
  --bee-pine: #30b980;
  --bee-gradient: linear-gradient(135deg, #ffc847 0%, #ffad0a 58%, #ff9500 100%);
}

* {
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  background: var(--apple-bg);
  color: var(--apple-text);
  font-family: var(--text);
}

body {
  background:
    radial-gradient(circle at 74% -18%, rgba(255, 193, 71, 0.2), transparent 31rem),
    linear-gradient(180deg, #fafafa 0, var(--apple-bg) 38rem);
}

button,
input,
textarea,
select {
  font-family: var(--text);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.3);
  outline-offset: 2px;
}

.paper-noise {
  display: none;
}

.kicker {
  color: var(--apple-honey-deep);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.muted {
  color: var(--apple-secondary);
}

code {
  background: #eeeef0;
  border-radius: 6px;
  color: var(--apple-text);
}

/* Controls */
.button {
  min-height: 48px;
  border-color: transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.09);
}

.button.primary {
  background: var(--apple-text);
  border-color: var(--apple-text);
  color: #fff;
  box-shadow: none;
}

.button.primary:hover {
  background: #000;
  border-color: #000;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
}

.button.primary:disabled {
  background: #d2d2d7;
  border-color: #d2d2d7;
  color: #fff;
  cursor: not-allowed;
  transform: none;
}

.button.secondary {
  background: #fff;
  border-color: var(--apple-line-strong);
  color: var(--apple-text);
}

input,
textarea,
select {
  border: 1px solid var(--apple-line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--apple-text);
  padding: 12px 14px;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.11);
}

.panel {
  border: 1px solid var(--apple-line);
  border-radius: 24px;
  background: var(--apple-surface);
  box-shadow: var(--apple-shadow);
  color: var(--apple-text);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

/* Login */
.login-screen {
  min-height: 100vh;
  gap: 14px;
  padding: 14px;
  background: var(--apple-bg);
}

.login-story,
.login-panel {
  border: 1px solid var(--apple-line);
  border-radius: 30px;
  box-shadow: var(--apple-shadow);
}

.login-story {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 182, 24, 0.38), transparent 25rem),
    linear-gradient(145deg, #fffdf7, #f7f1e2 58%, #f4dfaa);
  color: var(--apple-text);
}

.login-story::before {
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 0 0 55px rgba(0, 0, 0, 0.015), 0 0 0 110px rgba(0, 0, 0, 0.012);
}

.login-story::after {
  color: rgba(0, 0, 0, 0.035);
}

.story-copy h1 {
  color: var(--apple-text);
  font-family: var(--display);
  font-weight: 760;
  letter-spacing: -0.065em;
}

.story-copy h1 em {
  color: #c67c00;
}

.story-copy p,
.story-proof p {
  color: #5d584f;
}

.story-proof {
  border-color: rgba(0, 0, 0, 0.1);
}

.login-panel {
  background: rgba(255, 255, 255, 0.78);
  color: var(--apple-text);
  backdrop-filter: blur(32px) saturate(150%);
  -webkit-backdrop-filter: blur(32px) saturate(150%);
}

.login-panel .muted,
.login-panel .local-note,
.demo-accounts small {
  color: var(--apple-secondary);
}

.demo-accounts button {
  border-color: var(--apple-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--apple-text);
}

.demo-accounts button:hover,
.demo-accounts button.active {
  border-color: rgba(255, 173, 10, 0.55);
  background: #fff9eb;
  box-shadow: inset 0 0 0 1px rgba(255, 173, 10, 0.28);
}

.login-panel input {
  border-color: var(--apple-line-strong);
  background: #fff;
  color: var(--apple-text);
}

/* App shell */
.app-shell {
  grid-template-columns: 252px minmax(0, 1fr);
  background: transparent;
  color: var(--apple-text);
}

.sidebar {
  width: 252px;
  padding: 28px 18px 18px;
  border-right: 1px solid var(--apple-line);
  background: rgba(248, 248, 250, 0.82);
  color: var(--apple-text);
  backdrop-filter: blur(36px) saturate(180%);
  -webkit-backdrop-filter: blur(36px) saturate(180%);
}

.brand-lockup strong {
  color: var(--apple-text);
  font-family: var(--display);
  font-weight: 760;
  letter-spacing: -0.045em;
}

.brand-lockup strong em {
  color: #d88700;
}

.brand-lockup small {
  color: var(--apple-secondary);
  font-family: var(--mono);
  letter-spacing: 0.16em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  clip-path: none;
  background: var(--bee-gradient);
  color: #2d2008;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.42), 0 7px 18px rgba(255, 173, 10, 0.2);
}

.brand-lockup.compact .brand-mark {
  width: 38px;
  height: 38px;
}

.main-nav {
  gap: 6px;
  margin-top: 46px;
}

.main-nav button {
  grid-template-columns: 30px 1fr;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: var(--apple-secondary);
}

.main-nav button:hover {
  border-color: var(--apple-line);
  background: rgba(255, 255, 255, 0.58);
  color: var(--apple-text);
}

.main-nav button.active {
  border-color: var(--apple-line);
  background: #fff;
  color: var(--apple-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 22px rgba(0, 0, 0, 0.05);
}

.main-nav button::after {
  display: none;
}

.main-nav .nav-index {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 8px;
  background: #ededf0;
  color: var(--apple-secondary);
  font-family: var(--mono);
}

.main-nav button.active .nav-index {
  background: #fff2d3;
  color: #946000;
}

.main-nav b {
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

.main-nav small {
  color: var(--apple-tertiary);
  font-size: 10px;
}

.sidebar-quote {
  margin: auto 4px 18px;
  padding: 16px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.sidebar-quote i {
  color: #c67c00;
  font-size: 24px;
}

.sidebar-quote p {
  margin: 1px 0 0;
  color: var(--apple-secondary);
  font-family: var(--text);
  font-size: 11px;
  line-height: 1.55;
}

.user-card {
  border: 1px solid var(--apple-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
}

.user-card > span {
  background: #fff0c7;
  color: #7f5200;
  font-family: var(--display);
}

.user-card strong {
  color: var(--apple-text);
}

.user-card small,
.user-card button {
  color: var(--apple-secondary);
}

.main-stage {
  grid-column: 2;
  min-height: 100vh;
  background: transparent;
}

.topbar {
  height: 72px;
  padding: 0 clamp(28px, 4vw, 72px);
  border-color: var(--apple-line);
  background: rgba(250, 250, 252, 0.78);
  color: var(--apple-text);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
}

.context-label {
  color: var(--apple-tertiary);
  font-family: var(--mono);
  font-size: 8px;
}

.topbar strong {
  color: var(--apple-text);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 650;
}

.top-actions {
  gap: 9px;
}

.language-switch {
  width: 88px;
  height: 40px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #e9e9ed;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.035);
}

.language-switch a {
  height: 32px;
  color: var(--apple-secondary);
  font-family: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.language-switch a:hover {
  background: rgba(255, 255, 255, 0.62);
  color: var(--apple-text);
}

.language-switch a.active {
  background: #fff;
  color: var(--apple-text);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
}

.environment-pill {
  min-width: 208px;
  height: 44px;
  border-color: var(--apple-line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--apple-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.environment-pill:hover {
  border-color: var(--apple-line-strong);
  background: #fff;
}

.environment-pill small,
.environment-pill i {
  color: var(--apple-secondary);
}

.environment-pill b {
  color: var(--apple-text);
}

.icon-button {
  width: 44px;
  height: 44px;
  border-color: var(--apple-line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--apple-text);
  box-shadow: none;
}

.icon-button:hover {
  border-color: var(--apple-line-strong);
  background: #fff;
}

.status-dot {
  background: #a1a1a6;
  box-shadow: 0 0 0 4px rgba(161, 161, 166, 0.13);
}

.status-dot.online {
  background: #34c759;
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.13);
}

/* Marketplace hierarchy */
.view {
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: clamp(44px, 5vw, 78px) clamp(28px, 4vw, 72px) 100px;
}

.page-heading {
  align-items: flex-end;
  gap: 56px;
  margin-bottom: 40px;
}

.page-heading > div:first-child {
  min-width: 0;
}

.page-heading h1 {
  max-width: 940px;
  margin-top: 16px;
  color: var(--apple-text);
  font-family: var(--display);
  font-size: clamp(50px, 5.15vw, 76px);
  font-weight: 720;
  line-height: 1.02;
  letter-spacing: -0.062em;
}

.page-heading h1 em {
  color: #c67c00;
  background: linear-gradient(100deg, #c77700, #ff9f0a 58%, #d68100);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-heading p {
  color: var(--apple-secondary);
}

.heading-note {
  width: 210px;
  height: auto;
  min-height: 104px;
  flex: 0 0 210px;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--apple-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--apple-shadow);
  backdrop-filter: blur(18px);
}

.heading-note span {
  color: var(--apple-text);
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  writing-mode: horizontal-tb;
}

.heading-note p {
  margin: 0;
  color: var(--apple-secondary);
  font-size: 11px;
  line-height: 1.55;
}

.market-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 0.75fr)) minmax(270px, 1.55fr);
  gap: 12px;
  margin-bottom: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.market-summary > div {
  min-height: 116px;
  padding: 22px;
  border: 1px solid var(--apple-line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025);
}

.market-summary > div:last-child {
  border: 1px solid rgba(255, 173, 10, 0.22);
}

.market-summary small {
  color: var(--apple-secondary);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0;
}

.market-summary strong {
  margin-top: 10px;
  color: var(--apple-text);
  font-family: var(--display);
  font-size: 36px;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.market-summary .local-principle {
  gap: 18px;
  background: linear-gradient(135deg, #fff9e9, #ffefc1);
  color: var(--apple-text);
}

.local-principle span {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid rgba(154, 98, 0, 0.16);
  border-radius: 999px;
  color: #8d5a00;
  font-family: var(--mono);
  font-size: 8px;
}

.market-summary .local-principle p {
  color: #5c4a26;
  font-family: var(--text);
  font-size: 12px;
  line-height: 1.55;
}

.section-toolbar {
  gap: 24px;
  margin-bottom: 20px;
}

.section-toolbar .muted {
  max-width: 640px;
  color: var(--apple-secondary);
  font-size: 12px;
  text-align: right;
}

.segmented {
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: #e9e9ed;
}

.segmented button {
  min-width: 92px;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--apple-secondary);
  font-size: 12px;
  font-weight: 650;
}

.segmented button.active {
  background: #fff;
  color: var(--apple-text);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.segmented button.active::after {
  display: none;
}

.workflow-filter {
  display: grid;
  grid-template-columns: 1.12fr repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 56px;
}

.workflow-filter button {
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--apple-line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--apple-secondary);
  box-shadow: none;
}

.workflow-filter button:hover {
  border-color: var(--apple-line-strong);
  background: #fff;
  transform: translateY(-1px);
}

.workflow-filter button.active {
  border-color: var(--apple-text);
  background: var(--apple-text);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.workflow-filter b {
  font-family: var(--mono);
  font-size: 11px;
}

.workflow-filter span {
  font-size: 10px;
}

.workflow-catalog {
  gap: 72px;
}

.workflow-group {
  --workflow-accent: var(--apple-honey);
  gap: 22px;
}

.workflow-group.crm {
  --workflow-accent: #5e5ce6;
}

.workflow-group.fin {
  --workflow-accent: #20a66a;
}

.workflow-group-head {
  align-items: center;
  padding: 0 2px 17px;
  border-color: var(--apple-line);
}

.workflow-group-head > div {
  grid-template-columns: auto auto 1fr;
  gap: 12px;
}

.workflow-group-head span,
.workflow-group.crm .workflow-group-head span,
.workflow-group.fin .workflow-group-head span {
  padding: 5px 8px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--workflow-accent) 14%, white);
  color: color-mix(in srgb, var(--workflow-accent) 78%, black);
  font-family: var(--mono);
  font-size: 9px;
}

.workflow-group-head h2 {
  color: var(--apple-text);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.workflow-group-head p {
  color: var(--apple-secondary);
  font-size: 12px;
}

.workflow-group-head > small {
  color: var(--apple-secondary);
  font-family: var(--text);
  font-size: 10px;
  font-weight: 550;
}

.workflow-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.employee-card,
.employee-card.featured {
  min-height: 424px;
  border: 1px solid var(--apple-line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--apple-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025), 0 10px 30px rgba(0, 0, 0, 0.035);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.employee-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--workflow-accent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.employee-card:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: var(--apple-shadow-hover);
  transform: translateY(-4px);
}

.employee-card:hover::before {
  opacity: 1;
}

.employee-card-head {
  padding: 22px 22px 5px;
}

.agent-hex {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  clip-path: none;
  background: #fff0c7;
  color: #8b5900;
  font-family: var(--mono);
  box-shadow: inset 0 0 0 1px rgba(154, 98, 0, 0.08);
}

.employee-card.stone .agent-hex {
  background: #ececf0;
  color: #515154;
}

.employee-card.pine .agent-hex {
  background: #dcf6e9;
  color: #087944;
}

.employee-name,
.employee-card.featured .employee-name {
  color: var(--apple-secondary);
  font-size: 10px;
}

.portrait-state,
.employee-card.featured .portrait-state {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f1f3;
  color: var(--apple-secondary);
  font-family: var(--text);
  font-size: 9px;
  font-weight: 650;
}

.portrait-state::before {
  width: 6px;
  height: 6px;
  background: var(--apple-honey);
}

.employee-body {
  padding: 15px 22px 22px;
}

.employee-role,
.employee-card.featured .employee-role {
  color: var(--apple-tertiary);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 650;
}

.employee-body h3 {
  margin: 10px 0 8px;
  color: var(--apple-text);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.employee-tagline,
.employee-card.featured .employee-tagline {
  min-height: 62px;
  margin-bottom: 14px;
  color: var(--apple-secondary);
  font-family: var(--text);
  font-size: 12px;
  line-height: 1.58;
}

.capability-tags span,
.employee-card.featured .capability-tags span {
  border: 0;
  border-radius: 999px;
  background: #f1f1f3;
  color: #515154;
  font-size: 9px;
  padding: 5px 8px;
}

.skill-chips {
  margin-top: 10px;
}

.skill-chips span,
.employee-card.featured .skill-chips span {
  border: 1px solid rgba(154, 98, 0, 0.12);
  border-radius: 999px;
  background: #fff8e7;
  color: #815200;
  font-size: 9px;
  padding: 5px 8px;
}

.employee-output {
  margin-top: auto;
  padding: 13px 14px;
  border-radius: 15px;
  background: #f5f5f7;
}

.employee-output small {
  color: var(--apple-tertiary);
  font-family: var(--mono);
  font-size: 7px;
}

.employee-output b,
.employee-card.featured .employee-output b {
  margin-top: 5px;
  color: var(--apple-text);
  font-size: 10px;
  line-height: 1.4;
}

.employee-meta {
  align-items: center;
  margin-top: 13px;
  padding-top: 13px;
  border-color: var(--apple-line);
}

.employee-meta > span {
  color: var(--apple-tertiary);
  font-size: 8px;
}

.text-button,
.employee-card.featured .text-button {
  border: 0;
  color: var(--apple-blue);
  font-size: 10px;
  font-weight: 650;
}

.text-button:hover {
  color: #005bb5;
}

.employment-stamp {
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: #e5f7eb;
  color: #16733a;
  font-family: var(--text);
  font-size: 9px;
  transform: none;
}

.empty-state {
  border: 1px solid var(--apple-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
}

/* Other product views */
.compact-heading h1 {
  font-size: clamp(44px, 4.5vw, 64px);
}

.academy-seal {
  border-color: rgba(154, 98, 0, 0.26);
  background: #fff8e7;
  color: #8b5900;
}

.report-date-block {
  border-color: var(--apple-line);
}

.report-date-block small,
.panel-title small,
.skill-card > p,
.catalog-item small,
.academy-toolbar p small,
.coverage-note {
  color: var(--apple-secondary);
}

.academy-toolbar,
.report-toolbar,
.report-card,
.employee-builder,
.catalog-panel {
  border-radius: 24px;
}

.skill-card {
  min-height: 300px;
  border-color: var(--apple-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--apple-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025), 0 10px 30px rgba(0, 0, 0, 0.035);
}

.skill-card::before {
  width: 3px;
  background: var(--apple-honey);
}

.skill-card:hover {
  box-shadow: var(--apple-shadow-hover);
}

.skill-card h3,
.panel-title h3,
.catalog-item b {
  color: var(--apple-text);
  font-family: var(--display);
}

.skill-number {
  color: #e8e8ed;
}

.skill-version,
.skill-compat {
  color: var(--apple-secondary);
}

.skill-version b {
  color: var(--apple-text);
}

.skill-compat {
  border-color: var(--apple-line);
}

.skill-state {
  border: 0;
  background: #f1f1f3;
  color: var(--apple-secondary);
}

.skill-state.update {
  background: #fff0c7;
  color: #7e5000;
}

.skill-state.mastered {
  background: #e1f6e8;
  color: #126c35;
}

.skill-state.locked {
  border: 0;
  background: #ededf0;
  color: var(--apple-tertiary);
}

.skill-card button {
  border-radius: 999px;
  background: var(--apple-text);
  color: #fff;
}

.skill-card button:disabled {
  background: #d2d2d7;
  color: #fff;
}

.report-metrics {
  gap: 12px;
  border: 0;
  background: transparent;
}

.metric {
  border: 1px solid var(--apple-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
}

.metric:last-child {
  border: 1px solid var(--apple-line);
}

.metric.highlight {
  border-color: var(--apple-text);
  background: var(--apple-text);
  color: #fff;
}

.report-card,
.metric,
.category-row,
.signal-list p,
.work-row,
.conversation-row,
.catalog-item {
  border-color: var(--apple-line);
}

.category-bar,
.gauge-ring {
  background-color: #ededf0;
}

.gauge-ring::after {
  background: #fff;
}

.panel-title > span {
  border: 0;
  background: #fff0c7;
  color: #815200;
}

.work-status {
  border: 0;
  background: #ededf0;
  color: #515154;
}

.work-status.completed {
  border: 0;
  background: #e1f6e8;
  color: #126c35;
}

.work-status.failed {
  border: 0;
  background: #ffe8e6;
  color: #a61b13;
}

.skill-picker,
.md-editors,
.md-editors details {
  border-color: var(--apple-line);
}

.check-skill,
.md-editors summary {
  border-color: var(--apple-line);
  background: #f7f7f9;
  color: var(--apple-text);
}

.check-skill:has(input:checked) {
  border-color: rgba(255, 173, 10, 0.5);
  background: #fff8e7;
}

.md-editors textarea {
  border-color: var(--apple-line);
  background: #fff;
  color: var(--apple-text);
}

/* Modals */
.modal-backdrop {
  background: rgba(45, 45, 50, 0.36);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.modal-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--apple-text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}

.modal-close {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ededf0;
  color: #515154;
  font-size: 20px;
}

.modal-employee-head {
  background: linear-gradient(140deg, #fffdfa, #fff5da);
}

.modal-portrait,
.modal-portrait.honey,
.modal-portrait.stone,
.modal-portrait.pine {
  background: transparent;
  color: var(--apple-text);
  font-family: var(--display);
}

.modal-employee-copy > p,
.modal-card .muted,
.modal-card .skill-chips span {
  color: var(--apple-secondary);
}

.modal-section {
  border-color: var(--apple-line);
}

.modal-card input,
.modal-card textarea,
.modal-card select {
  border-color: var(--apple-line-strong);
  background: #fff;
  color: var(--apple-text);
}

.modal-card .capability-tags span {
  border: 0;
  background: #ededf0;
  color: #515154;
}

.modal-card .skill-chips span {
  border-color: rgba(154, 98, 0, 0.12);
  background: #fff8e7;
  color: #815200;
}

.modal-card .button.secondary {
  border-color: var(--apple-line-strong);
  color: var(--apple-text);
}

.employment-log,
.environment-card .command-panel {
  border-radius: 16px;
  background: #1d1d1f;
  color: #f5f5f7;
}

/* Local hiring journey */
.employment-section {
  background: #fff;
}

.employment-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.employment-heading h3 {
  margin: 5px 0 7px;
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 740;
  letter-spacing: -0.03em;
}

.employment-heading p {
  margin: 0;
  color: var(--apple-secondary);
  font-size: 15px;
}

.employment-heading > strong {
  color: var(--apple-text);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.hire-journey {
  --hire-progress: 0%;
  padding: 20px;
  border: 1px solid var(--apple-line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fafafc, #f4f4f7);
  overflow: hidden;
}

.hire-track-shell {
  padding: 0 28px;
}

.hire-track-stage {
  position: relative;
  height: 94px;
}

.hire-track-line,
.hire-track-fill {
  position: absolute;
  top: 75px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 999px;
}

.hire-track-line {
  background: #d7d7dc;
}

.hire-track-fill {
  right: auto;
  width: var(--hire-progress);
  background: linear-gradient(90deg, #4b97ec, #0071e3 72%, #ffb423);
  box-shadow: 0 0 10px rgba(0, 113, 227, 0.22);
  transition: width 850ms cubic-bezier(0.22, 0.8, 0.24, 1);
}

.hire-origin,
.hire-destination {
  position: absolute;
  top: 62px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #f7f7f9;
  border-radius: 50%;
  background: #e4e4e9;
  color: #6e6e73;
  font-size: 15px;
  font-style: normal;
}

.hire-origin {
  left: -15px;
}

.hire-destination {
  right: -15px;
  transition: background 220ms ease, color 220ms ease, box-shadow 220ms ease;
}

.hire-agent {
  position: absolute;
  bottom: 16px;
  left: var(--hire-progress);
  z-index: 3;
  width: 56px;
  height: 78px;
  transform: translateX(-50%);
  transition: left 850ms cubic-bezier(0.22, 0.8, 0.24, 1);
}

.hire-agent-aura {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 188, 46, 0.88), rgba(255, 207, 89, 0.26) 42%, transparent 72%);
  opacity: 0;
  transform: scale(0.74);
}

.hire-agent svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.agent-antenna,
.agent-smile,
.agent-arm,
.agent-leg {
  fill: none;
  stroke: #252527;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agent-antenna,
.agent-smile {
  stroke-width: 2.2;
}

.agent-arm,
.agent-leg {
  stroke-width: 5;
  transform-box: fill-box;
  transform-origin: top center;
}

.agent-head {
  fill: #fff;
  stroke: #252527;
  stroke-width: 2.5;
}

.agent-eye {
  fill: #0071e3;
}

.agent-torso {
  fill: #252527;
}

.agent-badge {
  fill: #ffb423;
}

.hire-agent text {
  fill: #2b210f;
  font: 800 5.5px var(--mono);
}

.hire-journey.is-moving .hire-agent svg {
  animation: hire-agent-bob 520ms ease-in-out infinite alternate;
}

.hire-journey.is-moving .agent-arm.left,
.hire-journey.is-moving .agent-leg.right {
  animation: hire-limb-forward 520ms ease-in-out infinite alternate;
}

.hire-journey.is-moving .agent-arm.right,
.hire-journey.is-moving .agent-leg.left {
  animation: hire-limb-back 520ms ease-in-out infinite alternate;
}

.hire-track-labels {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
  color: var(--apple-secondary);
  font-size: 12px;
  font-weight: 620;
}

.hire-status {
  min-height: 48px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--apple-line);
}

.hire-working,
.hire-success {
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.45;
}

.hire-working:not([hidden]),
.hire-success:not([hidden]) {
  display: flex;
}

.hire-working i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--apple-blue);
  box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.3);
  animation: hire-status-pulse 1.35s ease-out infinite;
}

.hire-success {
  color: #147a43;
  font-size: 19px;
}

.hire-step-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.hire-step-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px;
  border-radius: 12px;
  background: #ededf1;
  color: #77777c;
  font-size: 12px;
  line-height: 1.25;
}

.hire-step-list li span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font: 700 10px var(--mono);
}

.hire-step-list li.complete { color: #166c42; background: #e8f6ee; }
.hire-step-list li.current { color: #075cae; background: #e8f2ff; }
.hire-step-list li.failed { color: #a5262f; background: #fff0f1; }

.hire-journey.is-failed .hire-working i { background: #d92d3a; box-shadow: none; animation: none; }

.hire-failure {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #f0c9cc;
  border-radius: 15px;
  background: #fff6f6;
  color: #7f1d26;
}

.hire-failure b { display: block; font-size: 16px; line-height: 1.45; }
.hire-failure p { margin: 7px 0 0; color: #75494d; line-height: 1.5; }
.hire-failure .button { min-height: 50px; margin-top: 14px; }

.hire-log-details {
  margin-top: 12px;
  border: 1px solid var(--apple-line);
  border-radius: 15px;
  background: #fff;
  overflow: hidden;
}

.hire-log-details summary {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  color: #515154;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}

.hire-log-details summary::-webkit-details-marker {
  display: none;
}

.hire-log-details summary::after {
  content: "+";
  margin-left: 10px;
  color: var(--apple-secondary);
  font-size: 20px;
  font-weight: 400;
}

.hire-log-details[open] summary::after {
  content: "−";
}

.hire-log-details summary span {
  margin-left: auto;
  color: var(--apple-secondary);
  font-size: 12px;
  font-weight: 560;
}

.hire-log-details .employment-log {
  max-height: 220px;
  margin: 0 8px 8px;
  border-radius: 11px;
}

.hire-renewal {
  margin: 12px 2px 0;
  color: var(--apple-secondary);
  font-size: 13px;
}

.hire-journey.is-completing .hire-agent svg {
  animation: hire-gold-flash 480ms 900ms ease-in-out 3;
}

.hire-journey.is-completing .hire-agent-aura {
  animation: hire-gold-aura 480ms 900ms ease-in-out 3;
}

.hire-journey.is-settled .hire-track-fill {
  background: linear-gradient(90deg, #4b97ec, #0071e3 70%, #ffc442);
}

.hire-journey.is-settled .hire-destination {
  background: #e5f6eb;
  color: #147a43;
  box-shadow: 0 0 0 5px rgba(20, 122, 67, 0.08);
}

/* Once the hire has settled the track and step list are history; keep only the
   success line so the next step (connecting a channel) sits near the top. */
.hire-journey.is-settled .hire-track-shell,
.hire-journey.is-settled .hire-track-labels,
.hire-journey.is-settled .hire-step-list {
  display: none;
}

.hire-journey.is-settled .hire-status {
  min-height: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@keyframes hire-agent-bob {
  to { transform: translateY(-2px); }
}

@keyframes hire-limb-forward {
  to { transform: rotate(14deg); }
}

@keyframes hire-limb-back {
  to { transform: rotate(-14deg); }
}

@keyframes hire-status-pulse {
  60% { box-shadow: 0 0 0 8px rgba(0, 113, 227, 0); }
  100% { box-shadow: 0 0 0 8px rgba(0, 113, 227, 0); }
}

@keyframes hire-gold-flash {
  0%, 100% { filter: none; transform: scale(1); }
  50% { filter: brightness(1.55) saturate(1.7) sepia(0.45) drop-shadow(0 0 5px #ffc43d) drop-shadow(0 0 16px #ffb423); transform: scale(1.08); }
}

@keyframes hire-gold-aura {
  0%, 100% { opacity: 0; transform: scale(0.72); }
  50% { opacity: 1; transform: scale(1.16); }
}

.device-row {
  border-color: var(--apple-line);
  border-radius: 15px;
  background: #f7f7f9;
}

/* Employee profile · Feishu connection */
.channel-section {
  background: #fbfbfd;
}

.channel-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.channel-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #e8f0ff;
  color: #1769e0;
  font-size: 22px;
  font-weight: 760;
}

.channel-icon.connected {
  background: #e5f6eb;
  color: #168048;
}

.channel-heading h3 {
  margin: 3px 0 4px;
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.channel-heading p {
  margin: 0;
  color: var(--apple-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.channel-state {
  border-radius: 999px;
  background: #ededf0;
  color: #6e6e73;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 680;
  white-space: nowrap;
}

.channel-state.online {
  background: #e5f6eb;
  color: #147a43;
}

.channel-ready {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 16px 18px;
  border-radius: 18px;
  background: #eef8f1;
  color: #1f6b3a;
}

.channel-ready > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: #d7efde;
  font-weight: 800;
}

.channel-ready b,
.channel-ready p { display: block; margin: 0; }
.channel-ready p { margin-top: 3px; color: #4f715b; }

.channel-activation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: center;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid #cfe0f7;
  border-radius: 18px;
  background: linear-gradient(145deg, #f1f7ff 0%, #fbfdff 100%);
}

.channel-activation-copy {
  min-width: 0;
}

.channel-activation h4 {
  margin: 4px 0 7px;
  color: var(--apple-text);
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 730;
  letter-spacing: -0.02em;
}

.channel-activation p {
  max-width: 760px;
  margin: 0;
  color: #515a68;
  font-size: 15px;
  line-height: 1.55;
}

.channel-activation code {
  display: inline-block;
  max-width: 100%;
  margin-top: 10px;
  padding: 5px 9px;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: rgba(0, 113, 227, 0.08);
  color: #24588e;
  font: 650 12px/1.35 var(--mono);
}

.channel-open-app {
  align-self: center;
  min-height: 52px;
  padding-inline: 20px;
  white-space: nowrap;
  text-decoration: none;
}

.channel-activation > small {
  grid-column: 1 / -1;
  padding-top: 12px;
  border-top: 1px solid rgba(31, 79, 129, 0.12);
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.channel-route {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  margin-bottom: 16px;
  padding: 10px 16px;
  border: 1px solid var(--apple-line);
  border-radius: 15px;
  background: #fff;
  font: 650 14px/1.3 var(--mono);
}

.channel-route i {
  color: var(--apple-secondary);
  font-style: normal;
}

.feishu-form {
  display: grid;
  gap: 16px;
}

.feishu-create-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-height: 44px;
  padding: 7px 12px;
  color: var(--apple-blue);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.feishu-create-link:hover {
  color: #004f9e;
}

.feishu-create-link:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(0, 113, 227, 0.24);
  outline-offset: 2px;
}

.feishu-fields,
.feishu-advanced > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feishu-form label {
  gap: 9px;
  color: #3a3a3c;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.feishu-form input,
.feishu-form select {
  min-height: 52px;
  font-size: 16px;
}

.feishu-advanced,
.channel-update {
  border: 1px solid var(--apple-line);
  border-radius: 15px;
  background: #fff;
}

.feishu-advanced summary,
.channel-update > summary {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  color: #515154;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  list-style: none;
}

.feishu-advanced summary::-webkit-details-marker,
.channel-update > summary::-webkit-details-marker {
  display: none;
}

.feishu-advanced summary::after,
.channel-update > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--apple-secondary);
  font-size: 20px;
  font-weight: 400;
}

.feishu-advanced[open] summary::after,
.channel-update[open] > summary::after {
  content: "−";
}

.feishu-advanced > div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 16px 16px;
}

.channel-update {
  margin-bottom: 12px;
}

.channel-update .feishu-form {
  padding: 0 16px 16px;
}

.channel-security {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  color: var(--apple-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.channel-security span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e5f6eb;
  color: #147a43;
  font-size: 12px;
  font-weight: 800;
}

.channel-section .button {
  min-height: 52px;
}

.button.danger {
  border: 1px solid rgba(190, 38, 51, 0.18);
  background: #fff;
  color: #b42331;
}

.button.danger:hover {
  background: #fff2f3;
  box-shadow: none;
}

.button.danger:disabled {
  border-color: var(--apple-line);
  color: #a1a1a6;
  cursor: not-allowed;
  transform: none;
}

/* Employee profile · safe dismissal */
.dismiss-section {
  background: #fbfbfd;
}

.dismiss-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.dismiss-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: #fff0f0;
  color: #c82d38;
  font-size: 29px;
  font-weight: 450;
}

.dismiss-icon.working {
  position: relative;
  background: #f0f0f3;
}

.dismiss-icon.working::after {
  content: "";
  width: 22px;
  height: 22px;
  border: 3px solid #d7d7dc;
  border-top-color: #515154;
  border-radius: 50%;
  animation: channel-spin 900ms linear infinite;
}

.dismiss-heading h3 {
  margin: 3px 0 4px;
  font-family: var(--sans);
  font-size: 23px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.dismiss-heading p {
  margin: 0;
  color: var(--apple-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.dismiss-missing {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  padding: 15px;
  border-radius: 15px;
  background: #fff8e8;
  color: #5e470f;
}

.dismiss-missing > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffb423;
  color: #2e2208;
  font-weight: 800;
}

.dismiss-missing b,
.dismiss-missing p {
  display: block;
}

.dismiss-missing p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.45;
}

.dismiss-trigger {
  min-height: 54px;
  margin-top: 20px;
  border: 1px solid rgba(200, 45, 56, 0.18);
  background: #fff;
  color: #b42331;
}

.dismiss-trigger:hover {
  background: #fff2f3;
  box-shadow: none;
}

.dismiss-trigger:disabled {
  border-color: var(--apple-line);
  background: #f1f1f3;
  color: #86868b;
  cursor: not-allowed;
  transform: none;
}

.dismiss-confirm {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid rgba(200, 45, 56, 0.16);
  border-radius: 18px;
  background: #fff7f7;
}

.dismiss-confirm h4 {
  margin: 0 0 8px;
  color: #8d1722;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.dismiss-confirm > p {
  margin: 0;
  color: #6e3a3f;
  font-size: 15px;
}

.dismiss-confirm code {
  background: rgba(200, 45, 56, 0.08);
  color: #8d1722;
  font-size: 13px;
}

.dismiss-confirm ul {
  display: grid;
  gap: 9px;
  margin: 17px 0 20px;
  padding-left: 21px;
  color: #3a3a3c;
  font-size: 15px;
  line-height: 1.48;
}

.dismiss-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 10px;
}

.dismiss-actions .button {
  min-height: 54px;
}

.button.destructive {
  border: 1px solid #c92d3a;
  background: #c92d3a;
  color: #fff;
}

.button.destructive:hover {
  background: #ad1f2c;
  border-color: #ad1f2c;
  box-shadow: 0 9px 22px rgba(173, 31, 44, 0.18);
}

.button.destructive:disabled {
  border-color: #e3a5ab;
  background: #e3a5ab;
  cursor: wait;
  transform: none;
}

.dismiss-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  margin-top: 20px;
  padding: 17px;
  border: 1px solid var(--apple-line);
  border-radius: 16px;
  background: #fff;
}

.dismiss-progress i {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  border: 3px solid #dedee3;
  border-top-color: #515154;
  border-radius: 50%;
  animation: channel-spin 900ms linear infinite;
}

.dismiss-progress b,
.dismiss-progress span {
  display: block;
}

.dismiss-progress b {
  font-size: 16px;
}

.dismiss-progress span,
.dismiss-preserved {
  margin-top: 4px;
  color: var(--apple-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.dismiss-preserved {
  margin: 14px 2px 0;
}

.channel-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--apple-line);
}

.channel-progress i {
  width: 24px;
  height: 24px;
  border: 3px solid #d7e5ff;
  border-top-color: var(--apple-blue);
  border-radius: 50%;
  animation: channel-spin 900ms linear infinite;
}

.channel-progress b,
.channel-progress span {
  display: block;
}

.channel-progress b {
  font-size: 15px;
}

.channel-progress span {
  margin-top: 4px;
  color: var(--apple-secondary);
  font-size: 13px;
}

.channel-error {
  margin: 0 0 16px;
  padding: 13px 15px;
  border-radius: 13px;
  background: #fff0f1;
  color: #a51d2a;
  font-size: 14px;
  line-height: 1.5;
}

@keyframes channel-spin {
  to { transform: rotate(360deg); }
}

.toast {
  right: 24px;
  bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 0;
  border-radius: 14px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

@media (max-width: 1450px) {
  .workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-card,
  .employee-card.featured {
    min-height: 390px;
  }
}

@media (max-width: 1120px) {
  .market-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .market-summary .local-principle {
    grid-column: 1 / -1;
    min-height: 90px;
  }

  .page-heading {
    align-items: flex-start;
  }
}

@media (max-width: 820px) {
  body {
    background: linear-gradient(180deg, #fafafa, var(--apple-bg) 26rem);
  }

  .login-screen {
    gap: 8px;
    padding: 8px;
  }

  .login-story,
  .login-panel {
    border-radius: 24px;
  }

  .login-story {
    min-height: 470px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: auto 8px 8px;
    width: auto;
    height: 72px;
    padding: 7px;
    border: 1px solid var(--apple-line);
    border-radius: 22px;
    background: rgba(250, 250, 252, 0.88);
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.14);
  }

  .sidebar > .brand-lockup,
  .sidebar-quote,
  .user-card {
    display: none;
  }

  .main-nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    margin: 0;
  }

  .main-nav button {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    min-height: 56px;
    padding: 7px 4px;
    text-align: center;
  }

  .main-nav .nav-index {
    width: 24px;
    height: 24px;
    font-size: 8px;
  }

  .main-nav b {
    font-size: 9px;
  }

  .main-nav small {
    display: none;
  }

  .main-stage {
    padding-bottom: 92px;
  }

  .topbar {
    height: 64px;
    padding: 0 14px;
    background: rgba(250, 250, 252, 0.88);
  }

  .topbar > div:first-child {
    display: none;
  }

  .top-actions {
    width: 100%;
  }

  .app-language {
    margin-left: 0;
  }

  .environment-pill {
    min-width: 0;
    flex: 1;
  }

  .view {
    width: 100%;
    padding: 34px 16px 38px;
  }

  .page-heading {
    display: grid;
    gap: 22px;
    margin-bottom: 26px;
  }

  .page-heading h1,
  html[data-language="en"] .page-heading h1 {
    font-size: 43px;
    line-height: 1.02;
  }

  .heading-note {
    display: flex;
    width: 100%;
    min-height: 82px;
    padding: 16px 18px;
  }

  .heading-note span {
    font-size: 34px;
  }

  .market-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-bottom: 34px;
  }

  .market-summary > div {
    min-height: 104px;
    padding: 17px;
  }

  .market-summary .local-principle {
    grid-column: 1 / -1;
    min-height: 92px;
  }

  .section-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .section-toolbar .muted {
    margin: 0;
    text-align: left;
  }

  .segmented {
    width: auto;
  }

  .workflow-filter {
    display: flex;
    gap: 8px;
    margin: 0 -16px 42px;
    padding: 0 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .workflow-filter::-webkit-scrollbar {
    display: none;
  }

  .workflow-filter button,
  .workflow-filter button:first-child {
    grid-column: auto;
    flex: 0 0 auto;
    min-width: 138px;
  }

  .workflow-catalog {
    gap: 56px;
  }

  .workflow-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .workflow-group-head > div {
    grid-template-columns: auto 1fr;
  }

  .workflow-group-head p {
    grid-column: 1 / -1;
    line-height: 1.5;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .employee-card,
  .employee-card.featured,
  html[data-language="en"] .employee-card {
    min-height: 0;
  }

  .employee-tagline,
  html[data-language="en"] .employee-tagline {
    min-height: 0;
  }

  .compact-heading h1 {
    font-size: 43px;
  }

  .academy-seal {
    display: none;
  }

  .academy-toolbar,
  .report-toolbar {
    border-radius: 20px;
  }

  .report-metrics {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:last-child {
    border: 1px solid var(--apple-line);
  }

  .modal {
    padding: 8px;
  }

  .modal-card {
    border-radius: 24px;
  }

  .modal-employee-head {
    grid-template-columns: 96px 1fr;
  }

  .modal-employee-copy {
    padding: 28px 20px;
  }

  .modal-section {
    padding: 22px 20px;
  }

  .employment-heading h3 {
    font-size: 22px;
  }

  .employment-heading > strong {
    font-size: 23px;
  }

  .hire-journey {
    padding: 17px 15px;
  }

  .hire-track-shell {
    padding: 0 25px;
  }

  .hire-working {
    font-size: 16px;
  }

  .hire-success {
    font-size: 18px;
  }

  .hire-step-list {
    grid-template-columns: 1fr;
  }

  .hire-step-list li {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .hire-log-details summary {
    min-height: 54px;
    font-size: 15px;
  }

  .channel-heading {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .channel-state {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .feishu-fields,
  .feishu-advanced > div {
    grid-template-columns: 1fr;
  }

  .channel-section .button,
  .dismiss-section .button,
  .feishu-form input,
  .feishu-form select,
  .feishu-advanced summary,
  .channel-update > summary {
    min-height: 54px;
  }

  .feishu-create-link {
    min-height: 48px;
    font-size: 16px;
  }

  .channel-activation {
    grid-template-columns: 1fr;
    padding: 17px;
  }

  .channel-activation h4 {
    font-size: 20px;
  }

  .channel-activation p {
    font-size: 16px;
  }

  .channel-open-app {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
  }

  .dismiss-confirm {
    padding: 19px;
  }

  .dismiss-actions {
    grid-template-columns: 1fr;
  }

  .dismiss-heading h3 {
    font-size: 22px;
  }

  .dismiss-heading p,
  .dismiss-confirm > p,
  .dismiss-confirm ul,
  .dismiss-preserved {
    font-size: 16px;
  }

  .toast {
    right: 14px;
    bottom: 94px;
    left: 14px;
    text-align: center;
  }
}

@media (max-width: 460px) {
  .language-switch {
    width: 78px;
  }

  .environment-pill {
    padding-right: 11px;
  }

  .environment-pill i {
    display: none;
  }

  .page-heading h1,
  html[data-language="en"] .page-heading h1 {
    font-size: 38px;
  }

  .market-summary strong {
    font-size: 32px;
  }

  .local-principle {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .employee-card-head {
    grid-template-columns: auto 1fr;
  }

  .portrait-state {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .modal-employee-head {
    grid-template-columns: 1fr;
  }

  .modal-portrait {
    min-height: 88px;
    font-size: 48px;
  }

  .modal-employee-copy {
    padding: 24px 20px;
  }

  .modal-close {
    width: 48px;
    height: 48px;
  }

  .channel-heading h3 {
    font-size: 21px;
  }

  .channel-route {
    flex-wrap: wrap;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .hire-agent,
  .hire-track-fill {
    transition: none !important;
  }

  .hire-agent svg,
  .hire-agent-aura,
  .agent-arm,
  .agent-leg,
  .hire-working i {
    animation: none !important;
  }
}

/* Quiet marketplace — editorial hierarchy, fewer repeated messages */
.sidebar .user-card {
  margin-top: auto;
}

.nav-count {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: #fff0c7;
  color: #8a5700;
  font: 700 9px/1 var(--mono);
  font-style: normal;
  vertical-align: 1px;
}

.nav-count.hidden {
  display: none;
}

#marketplace {
  width: min(100%, 1480px);
}

.market-heading {
  display: block;
  margin-bottom: 58px;
}

.market-heading > div:first-child {
  max-width: 790px;
}

.market-heading .kicker {
  color: #9a6200;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.market-heading h1,
html[data-language="en"] .market-heading h1 {
  max-width: 760px;
  margin-top: 18px;
  font-family: "New York", "Iowan Old Style", "Songti SC", "STSong", serif;
  font-size: clamp(56px, 4.7vw, 74px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.052em;
}

.market-heading h1 em {
  color: #a76905;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.market-heading p {
  max-width: 500px;
  margin-top: 20px;
  color: #6d6a63;
  font-size: 16px;
  line-height: 1.65;
}

.market-toolbar {
  min-height: 76px;
  margin-bottom: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--apple-line);
  border-bottom: 1px solid var(--apple-line);
}

.market-toolbar .segmented {
  padding: 3px;
  background: #eae9e5;
}

.market-toolbar .segmented button {
  min-width: 118px;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13px;
}

.market-toolbar .segmented button > span {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  margin-left: 5px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.055);
  color: inherit;
  font: 700 10px/1 var(--mono);
}

.market-toolbar .segmented button.active > span {
  background: #f1efe9;
}

.market-toolbar .muted {
  max-width: none;
  color: #76736d;
  font-size: 12px;
}

.workflow-filter {
  display: flex;
  gap: 6px;
  margin: 0 0 52px;
}

.workflow-filter button,
.workflow-filter button:first-child {
  width: auto;
  min-width: 0;
  min-height: 40px;
  padding: 9px 14px;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  color: #706d67;
  justify-content: flex-start;
  gap: 7px;
}

.workflow-filter button:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.75);
  transform: none;
}

.workflow-filter button.active {
  border-color: #292824;
  background: #292824;
  color: #fff;
  box-shadow: none;
}

.workflow-filter b {
  font-family: var(--text);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
}

.workflow-filter span {
  color: inherit;
  font-size: 11px;
  opacity: 0.72;
}

.workflow-catalog {
  gap: 68px;
}

.workflow-group {
  gap: 18px;
}

.workflow-group-head {
  padding: 0;
  border: 0;
}

.workflow-group-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workflow-group-head span,
.workflow-group.crm .workflow-group-head span,
.workflow-group.fin .workflow-group-head span {
  min-width: 40px;
  padding: 5px 7px;
  border-radius: 999px;
  text-align: center;
}

.workflow-group-head h2 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.workflow-grid {
  gap: 14px;
}

.employee-card,
.employee-card.featured {
  min-height: 332px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025), 0 8px 25px rgba(0, 0, 0, 0.025);
}

.employee-card::before {
  display: none;
}

.employee-card:hover {
  border-color: rgba(0, 0, 0, 0.13);
  box-shadow: 0 18px 42px rgba(31, 30, 27, 0.08);
  transform: translateY(-3px);
}

.employee-card-head {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 20px 20px 2px;
}

.agent-hex,
.employee-card.stone .agent-hex,
.employee-card.pine .agent-hex {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--workflow-accent) 14%, #fff);
  color: color-mix(in srgb, var(--workflow-accent) 76%, #342c1f);
}

.employee-identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.employee-name,
.employee-card.featured .employee-name {
  overflow: hidden;
  color: #363531;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-role,
.employee-card.featured .employee-role {
  color: #8a8780;
  font: 700 8px/1.2 var(--mono);
  letter-spacing: 0.1em;
}

.portrait-state,
.employee-card.featured .portrait-state {
  padding: 5px 8px;
  background: #f3f2ef;
  color: #6d6a64;
}

.employee-body {
  padding: 17px 20px 20px;
}

.employee-body h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 680;
  line-height: 1.18;
}

.employee-tagline,
.employee-card.featured .employee-tagline {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #6c6963;
  font-size: 12px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.capability-tags {
  min-height: 25px;
}

.capability-tags span,
.employee-card.featured .capability-tags span {
  padding: 5px 8px;
  background: #f3f2ef;
  color: #5f5c56;
}

.employee-output {
  margin-top: auto;
  padding: 14px 0 0;
  border-top: 1px solid var(--apple-line);
  border-radius: 0;
  background: transparent;
}

.employee-output small {
  font-size: 7px;
  letter-spacing: 0.08em;
}

.employee-output b,
.employee-card.featured .employee-output b {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: #3f3d38;
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.employee-meta {
  margin-top: 12px;
  padding-top: 0;
  border: 0;
}

.employee-meta > span {
  color: #8a8780;
  font-size: 9px;
}

.text-button,
.employee-card.featured .text-button {
  color: #8c5800;
  font-size: 11px;
}

@media (max-width: 820px) {
  .market-heading {
    margin-bottom: 38px;
  }

  .main-nav .nav-index {
    display: none;
  }

  .main-nav b {
    font-size: 11px;
  }

  .market-heading h1,
  html[data-language="en"] .market-heading h1 {
    font-size: 44px;
    line-height: 1.09;
  }

  .market-heading p {
    margin-top: 16px;
    font-size: 15px;
  }

  .market-toolbar {
    align-items: center;
    flex-direction: row;
    min-height: 72px;
    margin-bottom: 14px;
  }

  .market-toolbar .segmented {
    width: 100%;
  }

  .market-toolbar .segmented button {
    min-width: 0;
    min-height: 44px;
    flex: 1;
  }

  .market-toolbar .muted {
    display: none;
  }

  .workflow-filter {
    margin: 0 -16px 36px;
    padding: 0 16px 6px;
  }

  .workflow-filter button,
  .workflow-filter button:first-child {
    min-width: auto;
    min-height: 42px;
  }

  .workflow-group-head {
    align-items: center;
    flex-direction: row;
  }

  .workflow-grid {
    gap: 12px;
  }

  .employee-card,
  .employee-card.featured,
  html[data-language="en"] .employee-card {
    min-height: 0;
  }

  .employee-body h3 {
    font-size: 25px;
  }

  .text-button,
  .employee-card.featured .text-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 460px) {
  .market-heading h1,
  html[data-language="en"] .market-heading h1 {
    font-size: 40px;
  }

  .market-heading p {
    max-width: 310px;
  }

  .workflow-filter span {
    display: none;
  }

  .employee-card-head {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }

  .portrait-state {
    grid-column: auto;
    justify-self: auto;
  }
}

/* Action-first hiring — compact enough to complete from the first viewport */
#marketplace {
  padding-top: 34px;
}

.market-heading {
  margin-bottom: 30px;
}

.market-heading > div:first-child {
  max-width: 880px;
}

.market-heading h1,
html[data-language="en"] .market-heading h1 {
  max-width: 860px;
  margin-top: 12px;
  font-size: clamp(48px, 4vw, 62px);
  line-height: 1.06;
}

.market-heading p {
  max-width: 620px;
  margin-top: 12px;
  font-size: 15px;
}

.employee-modal-card {
  width: min(1040px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
}

.modal-employee-head {
  grid-template-columns: 118px minmax(0, 1fr);
  min-height: 140px;
}

.modal-portrait,
.modal-portrait.honey,
.modal-portrait.stone,
.modal-portrait.pine {
  min-height: 0;
  border-right: 1px solid var(--apple-line);
  font-size: 44px;
}

.modal-employee-copy {
  min-width: 0;
  padding: 22px 72px 20px 26px;
}

.modal-employee-copy h2 {
  margin: 3px 0 5px;
  font-size: 34px;
  line-height: 1.08;
}

.modal-employee-copy > p {
  display: -webkit-box;
  max-width: 760px;
  margin: 0 0 10px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.modal-employee-copy .capability-tags {
  min-height: 0;
  gap: 5px;
}

.modal-employee-copy .capability-tags span {
  padding: 5px 8px;
  font-size: 10px;
}

.hire-deployment-section {
  padding: 22px 28px;
  background: #fff;
}

.hire-deployment-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 230px);
  align-items: center;
  gap: 28px;
}

.hire-deployment-head h3 {
  margin: 4px 0 5px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.hire-deployment-head p {
  max-width: 620px;
  margin: 0;
  color: var(--apple-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.hire-cta-stack {
  display: grid;
  gap: 8px;
}

.hire-cta-stack .button {
  min-height: 52px;
  font-size: 15px;
}

.hire-cta-stack .button.primary:disabled {
  border-color: #d7d7dc;
  background: #e5e5e9;
  color: #57575c;
}

/* Employment confirmation and demo account charge */
.hire-confirm-modal {
  z-index: 140;
}

.hire-confirm-card {
  width: min(720px, calc(100vw - 32px));
  padding: 34px;
  overflow: visible;
}

.hire-confirm-card h2 {
  margin: 8px 0 14px;
  color: var(--apple-text);
  font-family: var(--display);
  font-size: 32px;
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hire-confirm-sentence {
  max-width: 640px;
  margin: 0;
  color: var(--apple-secondary);
  font-size: 17px;
  line-height: 1.72;
}

.hire-confirm-sentence strong {
  color: var(--apple-text);
  font-weight: 720;
}

.hire-confirm-ledger {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 26px 0 18px;
  padding: 18px;
  border: 1px solid var(--apple-line);
  border-radius: 20px;
  background: #f7f8f9;
}

.hire-confirm-ledger > div {
  min-width: 0;
}

.hire-confirm-ledger small,
.hire-confirm-ledger strong {
  display: block;
}

.hire-confirm-ledger small {
  color: var(--apple-secondary);
  font-size: 11px;
  line-height: 1.35;
}
.hire-confirm-ledger .activation-charge-breakdown { margin-top:8px; font-size:11px; line-height:1.6; white-space:normal; }

.hire-confirm-ledger strong {
  margin-top: 6px;
  color: var(--apple-text);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 730;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.hire-confirm-ledger > span {
  color: #a1a1a6;
  font-size: 22px;
  font-weight: 400;
}

.hire-confirm-ledger .balance-after {
  padding-left: 14px;
  border-left: 1px solid var(--apple-line);
}

.hire-confirm-ledger .balance-after strong {
  color: #176c4c;
}

.hire-confirm-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #eef3f8;
  color: #4d5e72;
}

.hire-confirm-note > span {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border-radius: 50%;
  background: #dbe7f3;
  font: 750 12px/1 var(--serif);
}

.hire-confirm-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.hire-account-warning {
  margin: 12px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(190, 38, 51, 0.14);
  border-radius: 13px;
  background: #fff4f5;
  color: #a62b36;
  font-size: 13px;
  font-weight: 650;
}

.hire-confirm-actions {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(240px, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.hire-confirm-actions .button {
  min-height: 54px;
  font-size: 15px;
}

.hire-deployment-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
  gap: 14px;
  margin-top: 18px;
}

.hire-device-field {
  display: grid;
  gap: 6px;
  color: #4c4b47;
  font-size: 11px;
  font-weight: 700;
}

.hire-device-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 14px;
}

.deployment-package {
  display: grid;
  align-content: center;
  min-height: 66px;
  padding: 11px 15px;
  border: 1px solid var(--apple-line);
  border-radius: 14px;
  background: #f7f7f8;
}

.deployment-package span,
.deployment-package b {
  display: block;
}

.deployment-package span {
  color: var(--apple-secondary);
  font-size: 11px;
}

.deployment-package b {
  margin-top: 4px;
  color: var(--apple-text);
  font-size: 13px;
  font-weight: 680;
}

.deployment-checks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.deployment-checks .prerequisite {
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f5f5f7;
  color: #65645f;
  font-size: 11px;
  line-height: 1.25;
}

.deployment-checks .prerequisite.ok {
  background: #edf8f0;
  color: #28643a;
}

.employee-profile-details {
  padding: 0;
  background: #fafafa;
}

.employee-profile-details > summary {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  cursor: pointer;
  list-style: none;
}

.employee-profile-details > summary::-webkit-details-marker {
  display: none;
}

.employee-profile-details > summary span {
  display: grid;
  gap: 3px;
}

.employee-profile-details > summary small {
  color: #9a6200;
  font: 700 8px/1.2 var(--mono);
  letter-spacing: 0.13em;
}

.employee-profile-details > summary b {
  color: #464540;
  font-size: 14px;
  font-weight: 650;
}

.employee-profile-details > summary i {
  color: var(--apple-secondary);
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.employee-profile-details > summary i::after {
  content: "＋";
  margin-left: 8px;
}

.employee-profile-details[open] > summary {
  border-bottom: 1px solid var(--apple-line);
}

.employee-profile-details[open] > summary i::after {
  content: "−";
}

.employee-profile-content {
  padding: 22px 28px 26px;
}

.employee-profile-description {
  max-width: 760px;
  margin: 0 0 18px;
  color: #55534e;
  font-size: 14px;
  line-height: 1.6;
}

.employee-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 26px;
}

.employee-profile-grid p {
  margin: 0 0 9px;
  font-size: 13px;
  line-height: 1.55;
}

.profile-label {
  display: block;
  margin-bottom: 9px;
  color: #77746d;
  font-size: 11px;
  font-weight: 700;
}

.workspace-file-list {
  margin: 17px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--apple-line);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 820px) {
  #marketplace {
    padding-top: 24px;
  }

  .market-heading {
    margin-bottom: 24px;
  }

  .market-heading h1,
  html[data-language="en"] .market-heading h1 {
    margin-top: 10px;
    font-size: 38px;
    line-height: 1.07;
  }

  .market-heading p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.5;
  }

  .employee-modal-card {
    width: 100%;
    max-height: calc(100dvh - 12px);
    border-radius: 24px;
  }

  .modal-employee-head {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 112px;
  }

  .modal-portrait,
  .modal-portrait.honey,
  .modal-portrait.stone,
  .modal-portrait.pine {
    min-height: 0;
    font-size: 30px;
  }

  .modal-employee-copy {
    padding: 17px 50px 15px 16px;
  }

  .modal-employee-copy h2 {
    font-size: 27px;
  }

  .modal-employee-copy > p {
    margin-bottom: 8px;
    font-size: 13px;
    -webkit-line-clamp: 1;
  }

  .hire-deployment-section {
    padding: 17px 16px;
  }

  .hire-deployment-head {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .hire-deployment-head h3 {
    font-size: 21px;
  }

  .hire-deployment-head p {
    font-size: 13px;
  }

  .hire-cta-stack .button {
    min-height: 54px;
    font-size: 16px;
  }

  .hire-confirm-card {
    width: 100%;
    padding: 28px 18px 18px;
    border-radius: 24px;
  }

  .hire-confirm-card h2 {
    padding-right: 36px;
    font-size: 27px;
  }

  .hire-confirm-sentence {
    font-size: 16px;
    line-height: 1.65;
  }

  .hire-confirm-ledger {
    grid-template-columns: 1fr;
    gap: 0;
    margin: 20px 0 14px;
    padding: 6px 16px;
  }

  .hire-confirm-ledger > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 58px;
    border-bottom: 1px solid var(--apple-line);
  }

  .hire-confirm-ledger > div:last-child {
    border-bottom: 0;
  }
  .hire-confirm-ledger > .activation-charge { display:grid; grid-template-columns:1fr auto; gap:6px 14px; padding:14px 0; }
  .hire-confirm-ledger .activation-charge-breakdown { grid-column:1 / -1; margin:0; }

  .hire-confirm-ledger strong {
    margin: 0;
    font-size: 18px;
  }

  .hire-confirm-ledger > span {
    display: none;
  }

  .hire-confirm-ledger .balance-after {
    padding-left: 0;
    border-left: 0;
  }

  .hire-confirm-actions {
    grid-template-columns: 1fr;
  }

  .hire-confirm-actions .button.primary {
    order: -1;
  }

  .hire-confirm-actions .button {
    min-height: 56px;
    font-size: 16px;
  }

  .hire-deployment-body {
    grid-template-columns: 1fr;
    gap: 9px;
    margin-top: 13px;
  }

  .deployment-package {
    min-height: 56px;
  }

  .deployment-checks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 9px;
  }

  .deployment-checks .prerequisite {
    min-height: 48px;
    align-items: flex-start;
    padding: 7px;
    font-size: 11px;
  }

  .employee-profile-details > summary {
    min-height: 56px;
    padding: 0 18px;
  }

  .employee-profile-content {
    padding: 18px;
  }

  .employee-profile-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 460px) {
  .modal {
    padding: 6px;
  }

  .modal-employee-copy .capability-tags span:nth-child(n + 3) {
    display: none;
  }

  .deployment-package {
    display: none;
  }

  .employee-profile-details > summary b {
    font-size: 13px;
  }
}

/* 2026-08-30: mobile session access, workflow orientation and live report readiness */
.mobile-logout {
  display: none;
}

.workflow-group.gtm {
  --workflow-card-surface: #fff7e6;
  --workflow-card-line: #eadbb9;
}

.workflow-group.crm {
  --workflow-card-surface: #f1f2ff;
  --workflow-card-line: #d8d9f0;
}

.workflow-group.fin {
  --workflow-card-surface: #edf8f2;
  --workflow-card-line: #cfe5d9;
}

.workflow-group .employee-card,
.workflow-group .employee-card.featured {
  border-color: var(--workflow-card-line);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.84), var(--workflow-card-surface));
}

.workflow-group .employee-card:hover {
  border-color: color-mix(in srgb, var(--workflow-accent) 28%, var(--workflow-card-line));
}

.report-connection-overview {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid var(--apple-line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.025), 0 10px 30px rgba(0, 0, 0, 0.025);
}

.report-connection-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}

.report-connection-signal {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: #ededf0;
}

.report-connection-signal i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #a1a1a6;
  box-shadow: 0 0 0 5px rgba(142, 142, 147, 0.12);
}

.report-connection-overview[data-state="online"] .report-connection-signal {
  background: #e8f8ed;
}

.report-connection-overview[data-state="online"] .report-connection-signal i {
  background: #30c76f;
  box-shadow: 0 0 0 5px rgba(48, 199, 111, 0.14);
}

.report-connection-head h2 {
  margin: 3px 0 4px;
  color: var(--apple-text);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.report-connection-head p {
  margin: 0;
  color: var(--apple-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.report-connection-head .button {
  min-height: 44px;
  padding: 10px 17px;
  white-space: nowrap;
}

.report-connection-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--apple-line);
}

.report-connection-facts > div {
  min-height: 100px;
  padding: 17px 20px;
  border-right: 1px solid var(--apple-line);
}

.report-connection-facts > div:last-child {
  border-right: 0;
}

.report-connection-facts small,
.report-connection-facts span {
  display: block;
  color: var(--apple-secondary);
}

.report-connection-facts small {
  margin-bottom: 7px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.report-connection-facts strong {
  display: block;
  margin-bottom: 3px;
  color: var(--apple-text);
  font-family: var(--display);
  font-size: 28px;
  font-weight: 680;
  line-height: 1.05;
}

.report-connection-facts strong i {
  color: var(--apple-tertiary);
  font-family: var(--text);
  font-size: 13px;
  font-style: normal;
  font-weight: 550;
}

.report-connection-facts span {
  font-size: 11px;
  line-height: 1.4;
}

.report-connection-facts .report-sync-word {
  font-size: 20px;
  line-height: 1.45;
}

.report-empty {
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid #ead9af;
  border-radius: 20px;
  background: #fff9e9;
  text-align: left;
}

.report-empty h3 {
  margin: 5px 0 6px;
  color: var(--apple-text);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 680;
}

.report-empty p {
  max-width: 780px;
  margin: 0;
  color: var(--apple-secondary);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 820px) {
  #refresh {
    display: none;
  }

  .top-actions {
    gap: 7px;
  }

  .environment-pill {
    min-width: 0;
    flex: 1;
  }

  .mobile-logout {
    display: inline-flex;
    min-width: 64px;
    height: 44px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--apple-line);
    border-radius: 999px;
    background: #fff;
    color: var(--apple-text);
    font-size: 12px;
    font-weight: 700;
  }

  .report-connection-head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    padding: 18px;
  }

  .report-connection-signal {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .report-connection-head h2 {
    font-size: 20px;
  }

  .report-connection-head .button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 50px;
    font-size: 15px;
  }

  .report-connection-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-connection-facts > div {
    min-height: 96px;
    padding: 16px 18px;
  }

  .report-connection-facts > div:nth-child(2n) {
    border-right: 0;
  }

  .report-connection-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--apple-line);
  }

  .report-empty {
    padding: 18px;
  }
}

@media (max-width: 460px) {
  .app-language {
    width: 72px;
  }

  .mobile-logout {
    min-width: 58px;
    padding: 0 10px;
    font-size: 11px;
  }

  .report-connection-facts strong {
    font-size: 26px;
  }

  .report-connection-facts span {
    font-size: 11px;
  }
}
