/* 轻账税 UI redesign — TailAdmin-inspired bright workspace baseline */
:root {
  --ui-canvas: #f5f8fc;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f8fbff;
  --ui-ink: #17233c;
  --ui-muted: #68758d;
  --ui-subtle: #95a1b5;
  --ui-line: #e4eaf2;
  --ui-line-strong: #d6e0ec;
  --ui-blue: #2864f0;
  --ui-blue-deep: #1f4fd1;
  --ui-blue-soft: #edf3ff;
  --ui-cyan: #08a4c7;
  --ui-cyan-soft: #e8faff;
  --ui-green: #16946a;
  --ui-green-soft: #e9f9f2;
  --ui-orange: #d9821f;
  --ui-orange-soft: #fff5e8;
  --ui-red: #d14b58;
  --ui-red-soft: #fff0f2;
  --ui-shadow-sm: 0 2px 9px rgba(37, 61, 96, .05);
  --ui-shadow-md: 0 15px 38px rgba(37, 61, 96, .08);
  --ui-radius-sm: 10px;
  --ui-radius-md: 16px;
  --ui-radius-lg: 22px;
  --ui-ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

body.human-first-ui {
  min-width: 320px;
  color: var(--ui-ink);
  background:
    radial-gradient(circle at 11% -8%, rgba(216, 233, 255, .62), transparent 31rem),
    radial-gradient(circle at 92% 9%, rgba(223, 249, 247, .72), transparent 27rem),
    var(--ui-canvas);
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
  font-size: 14px;
}

body.human-first-ui::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .35;
  background-image: radial-gradient(rgba(86, 112, 146, .13) .6px, transparent .6px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

body.human-first-ui button,
body.human-first-ui input,
body.human-first-ui select { font: inherit; }

body.human-first-ui button { transition: transform 180ms var(--ui-ease), border-color 180ms var(--ui-ease), background-color 180ms var(--ui-ease), box-shadow 180ms var(--ui-ease), color 180ms var(--ui-ease); }
body.human-first-ui button:focus-visible,
body.human-first-ui a:focus-visible,
body.human-first-ui input:focus-visible,
body.human-first-ui select:focus-visible,
body.human-first-ui summary:focus-visible { outline: 3px solid rgba(40, 100, 240, .24); outline-offset: 3px; }

body.human-first-ui .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(218, 228, 240, .9);
  background: rgba(248, 251, 255, .84);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .85);
  backdrop-filter: blur(18px) saturate(150%);
}

body.human-first-ui .header-inner {
  width: min(1280px, calc(100% - 48px));
  height: 72px;
  gap: 26px;
}

body.human-first-ui .brand { gap: 11px; color: var(--ui-ink); }
body.human-first-ui .brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 12px;
  background: linear-gradient(145deg, #3c7aff, #2552d6);
  box-shadow: 0 7px 16px rgba(40, 100, 240, .2);
  font-size: 17px;
}
body.human-first-ui .brand strong { font-size: 16px; letter-spacing: -.045em; }
body.human-first-ui .brand small { color: var(--ui-subtle); font-size: 10px; letter-spacing: .02em; }
body.human-first-ui .header-context { color: var(--ui-muted); font-size: 13px; font-weight: 650; }
body.human-first-ui .header-actions { gap: 9px; }
body.human-first-ui .header-tool-button,
body.human-first-ui .header-settings-button,
body.human-first-ui .quiet-button,
body.human-first-ui .text-button {
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #56708f;
  font-size: 12px;
  font-weight: 700;
}
body.human-first-ui .header-tool-button:hover,
body.human-first-ui .header-settings-button:hover,
body.human-first-ui .quiet-button:hover,
body.human-first-ui .text-button:hover { color: var(--ui-blue); background: var(--ui-blue-soft); border-color: #dbe7ff; }
body.human-first-ui .account-chip {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--ui-line-strong);
  border-radius: 10px;
  color: #4a617e;
  background: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 700;
}
body.human-first-ui .account-chip:hover { border-color: #b9cdf2; color: var(--ui-blue); background: #fff; }

body.human-first-ui .app-shell {
  width: min(1280px, calc(100% - 48px));
  padding: 42px 0 70px;
}

body.human-first-ui .eyebrow {
  margin: 0 0 9px;
  color: #7b8ca5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.human-first-ui .home-hero,
body.human-first-ui .settings-hero,
body.human-first-ui .tools-hero,
body.human-first-ui .subject-header {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

body.human-first-ui .home-hero::after,
body.human-first-ui .subject-header::after {
  position: absolute;
  right: 8%;
  bottom: -9px;
  width: 86px;
  height: 4px;
  border-radius: 99px;
  content: "";
  background: linear-gradient(90deg, var(--ui-cyan), var(--ui-blue));
  opacity: .8;
}

body.human-first-ui .home-hero h1,
body.human-first-ui .settings-hero h1,
body.human-first-ui .tools-hero h1,
body.human-first-ui .subject-heading h1 {
  margin: 0;
  color: var(--ui-ink);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -.065em;
}
body.human-first-ui .home-hero p:not(.eyebrow),
body.human-first-ui .settings-hero p:not(.eyebrow),
body.human-first-ui .tools-hero p:not(.eyebrow),
body.human-first-ui .subject-header-note {
  max-width: 660px;
  margin: 13px 0 0;
  color: var(--ui-muted);
  font-size: 14px;
  line-height: 1.7;
}

body.human-first-ui .primary-button,
body.human-first-ui .secondary-button {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .01em;
}
body.human-first-ui .primary-button {
  border: 1px solid var(--ui-blue);
  color: #fff;
  background: linear-gradient(135deg, #3f7cff, #2455d9);
  box-shadow: 0 8px 17px rgba(40, 100, 240, .18);
}
body.human-first-ui .primary-button:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(40, 100, 240, .22); }
body.human-first-ui .secondary-button {
  border: 1px solid var(--ui-line-strong);
  color: #3d5876;
  background: #fff;
  box-shadow: var(--ui-shadow-sm);
}
body.human-first-ui .secondary-button:hover { transform: translateY(-1px); border-color: #b8ccef; color: var(--ui-blue); background: #fbfdff; }

body.human-first-ui .home-capabilities,
body.human-first-ui .summary-strip,
body.human-first-ui .entity-board,
body.human-first-ui .home-note,
body.human-first-ui .settings-panel,
body.human-first-ui .workflow-launcher,
body.human-first-ui .tool-workbench,
body.human-first-ui .filing-plan-card,
body.human-first-ui .period-dashboard,
body.human-first-ui .subject-tab,
body.human-first-ui .subject-nav {
  border: 1px solid var(--ui-line);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--ui-shadow-sm);
}

body.human-first-ui .home-capabilities {
  display: grid;
  grid-template-columns: minmax(240px, .8fr) minmax(0, 1.5fr);
  gap: 26px;
  margin-bottom: 20px;
  padding: 24px 26px;
  border-radius: var(--ui-radius-lg);
}
body.human-first-ui .capabilities-intro { padding-right: 24px; border-right: 1px solid var(--ui-line); }
body.human-first-ui .capabilities-intro h2 { margin: 0; font-size: 22px; line-height: 1.18; letter-spacing: -.05em; }
body.human-first-ui .capabilities-intro p:not(.eyebrow) { margin: 10px 0 0; color: var(--ui-muted); font-size: 12px; line-height: 1.65; }
body.human-first-ui .capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
body.human-first-ui .capability-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  min-height: 66px;
  padding: 12px 13px;
  border: 1px solid #e5ecf5;
  border-radius: 12px;
  background: #fbfdff;
}
body.human-first-ui .capability-item:hover { transform: translateY(-1px); border-color: #bdd0f5; background: #fff; box-shadow: 0 7px 17px rgba(40, 100, 240, .07); }
body.human-first-ui .capability-item > span { color: var(--ui-blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
body.human-first-ui .capability-item strong { display: block; color: var(--ui-ink); font-size: 12px; }
body.human-first-ui .capability-item small { display: block; margin-top: 5px; color: var(--ui-muted); font-size: 10px; line-height: 1.45; }

body.human-first-ui .summary-strip { grid-template-columns: repeat(3, 1fr); margin-bottom: 20px; overflow: hidden; border-radius: var(--ui-radius-md); }
body.human-first-ui .summary-strip > div { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: center; min-height: 82px; padding: 16px 20px; border-right: 1px solid var(--ui-line); }
body.human-first-ui .summary-strip > div:last-child { border-right: 0; }
body.human-first-ui .summary-strip small { color: var(--ui-muted); font-size: 11px; font-weight: 650; }
body.human-first-ui .summary-strip strong { grid-row: span 2; color: var(--ui-ink); font-size: 31px; line-height: 1; letter-spacing: -.07em; }
body.human-first-ui .summary-strip span { color: var(--ui-subtle); font-size: 10px; }

body.human-first-ui .entity-board { padding: 25px; border-radius: var(--ui-radius-lg); }
body.human-first-ui .board-heading { margin-bottom: 17px; }
body.human-first-ui .board-heading h2 { margin: 0; color: var(--ui-ink); font-size: 22px; letter-spacing: -.05em; }
body.human-first-ui .entity-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
body.human-first-ui .entity-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 92px;
  padding: 17px;
  border: 1px solid #e1e9f3;
  border-radius: 14px;
  color: var(--ui-ink);
  background: linear-gradient(140deg, #fff, #fafdff);
  text-align: left;
}
body.human-first-ui .entity-card:hover { transform: translateY(-2px); border-color: #b8cdf4; box-shadow: 0 13px 25px rgba(40, 100, 240, .1); }
body.human-first-ui .entity-avatar,
body.human-first-ui .subject-avatar { width: 46px; height: 46px; border: 1px solid #d7e6ff; border-radius: 13px; color: var(--ui-blue); background: var(--ui-blue-soft); font-size: 17px; font-weight: 800; }
body.human-first-ui .entity-card h3 { margin: 0 0 5px; font-size: 14px; letter-spacing: -.03em; }
body.human-first-ui .entity-card p { margin: 0; color: var(--ui-muted); font-size: 11px; }
body.human-first-ui .entity-status { margin-top: 6px; color: var(--ui-green); font-size: 10px; font-weight: 750; }
body.human-first-ui .entity-arrow { color: #8ba1bc; font-size: 20px; }
body.human-first-ui .entity-card:hover .entity-arrow { color: var(--ui-blue); transform: translateX(2px); }
body.human-first-ui .home-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 13px; background: rgba(248, 252, 255, .85); }
body.human-first-ui .note-mark { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 8px; color: var(--ui-cyan); background: var(--ui-cyan-soft); font-size: 12px; font-weight: 800; }
body.human-first-ui .home-note strong { color: #426181; font-size: 11px; }
body.human-first-ui .home-note p { margin: 3px 0 0; color: var(--ui-muted); font-size: 11px; line-height: 1.55; }
body.human-first-ui .empty-state { padding: 38px 20px; color: var(--ui-muted); text-align: center; }
body.human-first-ui .empty-orbit { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 12px; border: 1px dashed #b9cae1; border-radius: 14px; color: var(--ui-blue); background: var(--ui-blue-soft); font-size: 23px; }
body.human-first-ui .empty-state h3 { margin: 0; color: var(--ui-ink); font-size: 18px; }
body.human-first-ui .empty-state p { max-width: 430px; margin: 8px auto 16px; font-size: 12px; line-height: 1.65; }

body.human-first-ui .subject-header { align-items: center; margin-bottom: 21px; padding: 18px 21px; border: 1px solid var(--ui-line); border-radius: var(--ui-radius-lg); background: rgba(255, 255, 255, .9); box-shadow: var(--ui-shadow-sm); }
body.human-first-ui .subject-heading { display: flex; gap: 13px; align-items: center; min-width: 0; }
body.human-first-ui .subject-heading h1 { font-size: clamp(25px, 3vw, 34px); }
body.human-first-ui .subject-header-note { margin-top: 6px; font-size: 12px; }
body.human-first-ui .subject-header-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
body.human-first-ui .subject-profile-link { color: var(--ui-blue); font-weight: 750; }

body.human-first-ui .subject-layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); gap: 18px; align-items: start; }
body.human-first-ui .subject-nav { position: sticky; top: 94px; display: grid; gap: 4px; padding: 9px; border-radius: var(--ui-radius-md); }
body.human-first-ui .subject-nav-item {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 1px 8px;
  align-items: center;
  min-height: 56px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #667891;
  background: transparent;
  text-align: left;
}
body.human-first-ui .subject-nav-item > span { grid-row: span 2; color: #9bacbf; font-size: 10px; font-weight: 800; }
body.human-first-ui .subject-nav-item strong { color: inherit; font-size: 12px; }
body.human-first-ui .subject-nav-item small { color: #9aa8bb; font-size: 9px; line-height: 1.25; }
body.human-first-ui .subject-nav-item:hover { color: var(--ui-blue); background: #f5f8ff; border-color: #e0e9fb; }
body.human-first-ui .subject-nav-item.active { color: var(--ui-blue); background: linear-gradient(110deg, #edf3ff, #f6faff); border-color: #d8e5ff; box-shadow: inset 3px 0 0 var(--ui-blue); }
body.human-first-ui .subject-nav-item.active > span { color: var(--ui-blue); }
body.human-first-ui .subject-nav-item.active small { color: #6681ad; }
body.human-first-ui .subject-content { min-width: 0; display: grid; gap: 17px; }
body.human-first-ui .subject-tab { min-width: 0; padding: 23px; border-radius: var(--ui-radius-lg); }
body.human-first-ui .subject-tab[hidden] { display: none !important; }
body.human-first-ui .tab-heading,
body.human-first-ui .period-dashboard-heading,
body.human-first-ui .filing-plan-heading,
body.human-first-ui .settings-panel-heading,
body.human-first-ui .section-heading,
body.human-first-ui .tool-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
body.human-first-ui .tab-heading h2,
body.human-first-ui .period-dashboard-heading h2,
body.human-first-ui .filing-plan-heading h2,
body.human-first-ui .settings-panel-heading h2,
body.human-first-ui .section-heading h2,
body.human-first-ui .tool-panel-heading h2 { margin: 0; color: var(--ui-ink); font-size: 20px; letter-spacing: -.045em; }
body.human-first-ui .tab-heading p:not(.eyebrow),
body.human-first-ui .period-dashboard-heading p:not(.eyebrow),
body.human-first-ui .filing-plan-heading p:not(.eyebrow),
body.human-first-ui .settings-panel-heading p:not(.eyebrow),
body.human-first-ui .section-heading p:not(.eyebrow),
body.human-first-ui .tool-panel-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--ui-muted); font-size: 12px; line-height: 1.6; }

/* The selected workflow must be the first thing users can act on. Keep the
   filing calendar available below it as supporting context, not as the
   primary screen. */
body.human-first-ui .filing-plan-card { order: -1; border-color: #d6e3fb; background: linear-gradient(145deg, #fff, #f7fbff); }
body.human-first-ui .filing-plan-heading { align-items: center; }
body.human-first-ui .filing-plan-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 18px 0 14px; }
body.human-first-ui .filing-plan-stat { display: grid; gap: 4px; min-height: 65px; padding: 11px 12px; border: 1px solid #e2eaf6; border-radius: 12px; background: #fff; }
body.human-first-ui .filing-plan-stat strong { color: var(--ui-blue); font-size: 19px; letter-spacing: -.045em; }
body.human-first-ui .filing-plan-stat small { color: var(--ui-muted); font-size: 10px; }
body.human-first-ui .filing-plan-list { display: grid; gap: 8px; }
body.human-first-ui .filing-plan-item,
body.human-first-ui .filing-pending,
body.human-first-ui .filing-cadence-preview { display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 12px 13px; border: 1px solid #e6edf6; border-radius: 12px; background: #fff; }
body.human-first-ui .filing-plan-item:hover,
body.human-first-ui .filing-cadence-preview:hover { border-color: #c8d9f4; box-shadow: 0 6px 15px rgba(40, 100, 240, .06); }
body.human-first-ui .filing-plan-date { color: #526b89; font-size: 11px; font-weight: 750; }
body.human-first-ui .filing-plan-item-copy strong,
body.human-first-ui .filing-cadence-preview-copy strong { display: block; color: var(--ui-ink); font-size: 12px; }
body.human-first-ui .filing-plan-item-copy small,
body.human-first-ui .filing-cadence-preview-copy small,
body.human-first-ui .filing-cadence-preview-periods { display: block; margin-top: 3px; color: var(--ui-muted); font-size: 10px; line-height: 1.45; }
body.human-first-ui .filing-plan-state { padding: 5px 8px; border-radius: 7px; color: var(--ui-green); background: var(--ui-green-soft); font-size: 10px; font-weight: 750; white-space: nowrap; }
body.human-first-ui .filing-plan-pending-marker,
body.human-first-ui .filing-cadence-preview-marker { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: var(--ui-orange); background: var(--ui-orange-soft); font-size: 12px; font-weight: 800; }
body.human-first-ui .filing-cadence-preview { grid-template-columns: 28px minmax(0, 1fr) auto; }
body.human-first-ui .filing-cadence-preview-group { display: grid; gap: 8px; margin-bottom: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--ui-line); }
body.human-first-ui .filing-cadence-preview-group h3 { margin: 0; color: #536c89; font-size: 12px; }
body.human-first-ui .filing-cadence-preview-intro { margin: 0 0 2px; color: var(--ui-muted); font-size: 10px; line-height: 1.5; }
body.human-first-ui .filing-plan-notes,
body.human-first-ui .filing-calendar-notes { display: grid; gap: 5px; margin-top: 13px; padding: 11px 13px; border-radius: 10px; color: #637590; background: #f5f8fc; }
body.human-first-ui .filing-plan-notes p,
body.human-first-ui .filing-calendar-notes p { margin: 0; font-size: 10px; line-height: 1.55; }

body.human-first-ui .period-dashboard { order: -2; }
body.human-first-ui .subject-content[data-view="overview"] > .period-dashboard { order: -2; }
body.human-first-ui .period-switcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 4px 5px 4px 9px;
  border: 1px solid #dfe7f2;
  border-radius: 10px;
  background: #f8fafd;
}
body.human-first-ui .period-switcher label { color: var(--ui-muted); font-size: 10px; font-weight: 700; white-space: nowrap; }
body.human-first-ui .period-switcher input {
  min-width: 126px;
  height: 30px;
  padding: 0 7px;
  border: 1px solid #d7e0ec;
  border-radius: 7px;
  color: var(--ui-ink);
  background: #fff;
  font-size: 11px;
}
body.human-first-ui .period-switcher .quiet-button {
  display: inline-flex;
  width: auto;
  min-width: 44px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  white-space: nowrap;
}
body.human-first-ui .period-alert { display: flex; gap: 11px; align-items: center; margin: 17px 0 14px; padding: 12px 13px; border: 1px solid #d9ebff; border-radius: 12px; background: #f4f9ff; }
body.human-first-ui .period-alert-dot { flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--ui-blue); box-shadow: 0 0 0 5px #e2edff; }
body.human-first-ui .period-alert strong { color: #355579; font-size: 12px; }
body.human-first-ui .period-alert p { margin: 3px 0 0; color: var(--ui-muted); font-size: 10px; }
body.human-first-ui .period-alert-countdown { margin-left: auto; color: var(--ui-blue); font-size: 11px; font-weight: 750; white-space: nowrap; }
body.human-first-ui .unified-intake { padding: 17px; border: 1px dashed #bad0f1; border-radius: 14px; background: #fbfdff; }
body.human-first-ui .unified-intake-icon { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; color: var(--ui-blue); background: var(--ui-blue-soft); font-size: 18px; font-weight: 700; }
body.human-first-ui .unified-intake-copy h3 { margin: 0; color: var(--ui-ink); font-size: 16px; }
body.human-first-ui .unified-intake-copy p:not(.eyebrow) { margin: 5px 0 0; color: var(--ui-muted); font-size: 11px; line-height: 1.55; }

body.human-first-ui .dashboard-grid,
body.human-first-ui .report-layout,
body.human-first-ui .payroll-layout { gap: 13px; }
body.human-first-ui .dashboard-card,
body.human-first-ui .task-card,
body.human-first-ui .upload-card,
body.human-first-ui .journal-panel,
body.human-first-ui .reconciliation-panel,
body.human-first-ui .payroll-panel,
body.human-first-ui .report-panel,
body.human-first-ui .archive-panel,
body.human-first-ui .tax-identity-card,
body.human-first-ui .tax-breakdown,
body.human-first-ui .guide-panel,
body.human-first-ui .assumption-card,
body.human-first-ui .month-close-panel,
body.human-first-ui .risk-list,
body.human-first-ui .parse-result,
body.human-first-ui .tool-result { border: 1px solid #e3eaf3; border-radius: 13px; background: #fff; box-shadow: none; }
body.human-first-ui .dashboard-card,
body.human-first-ui .task-card,
body.human-first-ui .upload-card,
body.human-first-ui .journal-panel,
body.human-first-ui .reconciliation-panel,
body.human-first-ui .payroll-panel,
body.human-first-ui .report-panel,
body.human-first-ui .archive-panel,
body.human-first-ui .tax-identity-card,
body.human-first-ui .tax-breakdown,
body.human-first-ui .guide-panel,
body.human-first-ui .assumption-card,
body.human-first-ui .month-close-panel,
body.human-first-ui .risk-list,
body.human-first-ui .parse-result,
body.human-first-ui .tool-result { padding: 16px; }
body.human-first-ui .dashboard-card-heading h3,
body.human-first-ui .task-card h3,
body.human-first-ui .upload-card h3 { color: var(--ui-ink); font-size: 14px; }
body.human-first-ui .status-pill,
body.human-first-ui .local-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 5px 9px; border: 1px solid #dbe8f4; border-radius: 8px; color: #53708e; background: #f5f9fd; font-size: 10px; font-weight: 750; white-space: nowrap; }
body.human-first-ui .status-pill { color: #237b61; border-color: #ccebdd; background: var(--ui-green-soft); }
body.human-first-ui .owner-action-bar,
body.human-first-ui .settings-actions,
body.human-first-ui .modal-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
body.human-first-ui label { color: #536984; font-size: 12px; font-weight: 700; }
body.human-first-ui input:not([type="checkbox"]):not([type="radio"]),
body.human-first-ui select,
body.human-first-ui textarea { min-height: 42px; border: 1px solid #d8e2ee; border-radius: 10px; color: var(--ui-ink); background: #fff; }
body.human-first-ui input:not([type="checkbox"]):not([type="radio"]):focus,
body.human-first-ui select:focus,
body.human-first-ui textarea:focus { border-color: #8eace8; box-shadow: 0 0 0 3px rgba(40, 100, 240, .11); }

body.human-first-ui .settings-hero,
body.human-first-ui .tools-hero { align-items: center; }
body.human-first-ui .back-button { margin-bottom: 12px; padding: 0; color: var(--ui-blue); font-size: 12px; font-weight: 750; }
body.human-first-ui .settings-view,
body.human-first-ui .tools-view { display: grid; gap: 16px; }
body.human-first-ui .settings-panel { padding: 23px; border-radius: var(--ui-radius-lg); }
body.human-first-ui .settings-form-grid { gap: 13px; }
body.human-first-ui .settings-panel-heading { margin-bottom: 18px; }
body.human-first-ui .settings-status-message,
body.human-first-ui .form-hint,
body.human-first-ui .settings-boundary { color: var(--ui-muted); font-size: 11px; line-height: 1.6; }
body.human-first-ui .settings-advanced { margin-top: 14px; border-top: 1px solid var(--ui-line); }
body.human-first-ui .settings-advanced summary { padding: 13px 0; color: var(--ui-blue); font-size: 11px; font-weight: 750; }
body.human-first-ui .workflow-launcher { padding: 22px; border-radius: var(--ui-radius-lg); }
body.human-first-ui .workflow-entries { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
body.human-first-ui .workflow-entry { min-height: 95px; padding: 13px; border: 1px solid #e2eaf4; border-radius: 13px; background: #fbfdff; }
body.human-first-ui .workflow-entry:hover { transform: translateY(-2px); border-color: #b9cdf3; background: #fff; box-shadow: 0 10px 20px rgba(40, 100, 240, .07); }
body.human-first-ui .tool-workbench { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 0; overflow: hidden; border-radius: var(--ui-radius-lg); }
body.human-first-ui .tool-list { display: grid; align-content: start; gap: 4px; padding: 9px; border-right: 1px solid var(--ui-line); background: #f9fbfe; }
body.human-first-ui .tool-list-item { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid transparent; border-radius: 10px; color: #5c708b; background: transparent; text-align: left; }
body.human-first-ui .tool-list-item strong { color: inherit; font-size: 12px; }
body.human-first-ui .tool-list-item small { color: #9aa8ba; font-size: 10px; }
body.human-first-ui .tool-list-item:hover { color: var(--ui-blue); background: #f0f5ff; }
body.human-first-ui .tool-list-item.active { color: var(--ui-blue); border-color: #d5e2fb; background: #edf3ff; }
body.human-first-ui .tool-list-item.integrated { opacity: .62; }
body.human-first-ui .tool-panel { min-width: 0; padding: 22px; }

body.human-first-ui .modal-backdrop:not([hidden]) {
  position: fixed !important;
  inset: 0 !important;
  z-index: 120 !important;
  display: grid !important;
  place-items: center !important;
  padding: clamp(16px, 3vw, 32px) !important;
  overflow: auto !important;
  background: rgba(20, 35, 59, .32) !important;
  backdrop-filter: blur(5px);
}
body.human-first-ui .modal-backdrop[hidden] { display: none !important; }
body.human-first-ui .modal,
body.human-first-ui .filing-calendar-modal {
  position: relative !important;
  width: min(650px, 100%) !important;
  max-height: min(820px, calc(100vh - 32px)) !important;
  margin: auto !important;
  overflow: auto;
  padding: 26px;
  border: 1px solid #dce6f1;
  border-radius: 20px;
  color: var(--ui-ink);
  background: #fff;
  box-shadow: 0 26px 72px rgba(21, 43, 76, .22);
}
body.human-first-ui .filing-calendar-modal { width: min(760px, 100%) !important; }
body.human-first-ui .modal h2 { margin: 0; color: var(--ui-ink); font-size: 25px; letter-spacing: -.055em; }
body.human-first-ui .modal > p:not(.eyebrow) { margin: 9px 0 17px; color: var(--ui-muted); font-size: 12px; line-height: 1.65; }
body.human-first-ui .modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid #e3eaf3; border-radius: 9px; color: #7c8da3; background: #f8fbff; font-size: 20px; line-height: 1; }
body.human-first-ui .modal-close:hover { color: var(--ui-blue); border-color: #c4d6f4; background: var(--ui-blue-soft); }
body.human-first-ui .filing-calendar-list { display: grid; gap: 8px; margin-top: 17px; }
body.human-first-ui .filing-calendar-list > * { border-color: #e2eaf4; background: #fbfdff; }
body.human-first-ui .filing-calendar-list .filing-calendar-month { margin-top: 10px; color: #4d6785; font-size: 12px; font-weight: 800; }
body.human-first-ui .entity-form,
body.human-first-ui .account-profile-form { display: grid; gap: 14px; }
body.human-first-ui .entity-form label,
body.human-first-ui .account-profile-form label { display: grid; gap: 7px; }
body.human-first-ui .form-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.human-first-ui footer { display: flex; justify-content: space-between; gap: 16px; width: min(1280px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0 24px; color: #91a0b3; font-size: 10px; }
body.human-first-ui .toast { border: 1px solid #cfe0fb; border-radius: 10px; color: #345b93; background: #f4f8ff; box-shadow: var(--ui-shadow-md); }

body.human-first-ui .auth-gate { min-height: calc(100vh - 72px); padding: 44px 20px 60px; background: transparent; }
body.human-first-ui .auth-panel { width: min(980px, 100%); padding: 42px; border: 1px solid #dce6f1; border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 24px 68px rgba(37, 61, 96, .1); }
body.human-first-ui .auth-intro { padding-right: 34px; border-right: 1px solid var(--ui-line); }
body.human-first-ui .auth-intro-mark { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(145deg, #3c7aff, #2455d9); box-shadow: 0 8px 18px rgba(40,100,240,.2); }
body.human-first-ui .auth-intro h2 { color: var(--ui-ink); font-size: 30px; }
body.human-first-ui .auth-intro > p:not(.eyebrow),
body.human-first-ui .auth-panel > p:not(.eyebrow) { color: var(--ui-muted); }
body.human-first-ui .auth-form label { color: #526984; }
body.human-first-ui .auth-form input:not([type="checkbox"]) { min-height: 48px; border-color: #d2deed; border-radius: 11px; color: var(--ui-ink); }
body.human-first-ui .auth-switch { color: var(--ui-blue) !important; }

@media (max-width: 980px) {
  body.human-first-ui .home-capabilities { grid-template-columns: 1fr; }
  body.human-first-ui .capabilities-intro { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid var(--ui-line); }
  body.human-first-ui .subject-layout { grid-template-columns: 1fr; }
  body.human-first-ui .subject-nav { position: static; display: flex; overflow-x: auto; padding: 7px; }
  body.human-first-ui .subject-nav-item { flex: 0 0 150px; }
  body.human-first-ui .workflow-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.human-first-ui .tool-workbench { grid-template-columns: 190px minmax(0, 1fr); }
}

@media (max-width: 700px) {
  body.human-first-ui .header-inner,
  body.human-first-ui .app-shell,
  body.human-first-ui footer { width: min(100% - 28px, 640px); }
  body.human-first-ui .header-inner { height: 62px; gap: 12px; }
  body.human-first-ui .header-context { display: none; }
  body.human-first-ui .header-tool-button,
  body.human-first-ui .header-settings-button { display: none; }
  body.human-first-ui .brand small { display: none; }
  body.human-first-ui .app-shell { padding-top: 26px; }
  body.human-first-ui .home-hero,
  body.human-first-ui .settings-hero,
  body.human-first-ui .tools-hero,
  body.human-first-ui .subject-header { display: grid; align-items: start; gap: 18px; padding: 17px; }
  body.human-first-ui .home-hero h1,
  body.human-first-ui .settings-hero h1,
  body.human-first-ui .tools-hero h1 { font-size: 32px; }
  body.human-first-ui .home-hero .primary-button,
  body.human-first-ui .subject-header-actions { width: 100%; }
  body.human-first-ui .subject-header-actions { display: grid; grid-template-columns: 1fr 1fr; }
  body.human-first-ui .subject-header-actions > * { width: 100%; }
  body.human-first-ui .home-capabilities,
  body.human-first-ui .entity-board,
  body.human-first-ui .settings-panel,
  body.human-first-ui .workflow-launcher,
  body.human-first-ui .subject-tab { padding: 17px; border-radius: 16px; }
  body.human-first-ui .capability-grid,
  body.human-first-ui .entity-list,
  body.human-first-ui .filing-plan-summary { grid-template-columns: 1fr; }
  body.human-first-ui .summary-strip { grid-template-columns: 1fr; }
  body.human-first-ui .summary-strip > div { min-height: 69px; border-right: 0; border-bottom: 1px solid var(--ui-line); }
  body.human-first-ui .summary-strip > div:last-child { border-bottom: 0; }
  body.human-first-ui .filing-plan-heading,
  body.human-first-ui .tab-heading,
  body.human-first-ui .period-dashboard-heading,
  body.human-first-ui .settings-panel-heading,
  body.human-first-ui .section-heading,
  body.human-first-ui .tool-panel-heading { display: grid; }
  body.human-first-ui .filing-plan-heading .secondary-button { width: 100%; }
  body.human-first-ui .filing-plan-item,
  body.human-first-ui .filing-pending,
  body.human-first-ui .filing-cadence-preview { grid-template-columns: 32px minmax(0, 1fr); }
  body.human-first-ui .filing-plan-item .filing-plan-date,
  body.human-first-ui .filing-plan-state,
  body.human-first-ui .filing-cadence-preview-action { grid-column: 2; justify-self: start; }
  body.human-first-ui .period-alert { align-items: flex-start; flex-wrap: wrap; }
  body.human-first-ui .period-alert-countdown { width: 100%; margin-left: 20px; }
  body.human-first-ui .workflow-entries { grid-template-columns: 1fr; }
  body.human-first-ui .tool-workbench { grid-template-columns: 1fr; }
  body.human-first-ui .tool-list { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--ui-line); }
  body.human-first-ui .tool-list-item { flex: 0 0 160px; }
  body.human-first-ui .form-two { grid-template-columns: 1fr; }
  body.human-first-ui footer { display: grid; gap: 3px; }
  body.human-first-ui .auth-gate { min-height: calc(100vh - 62px); padding: 22px 14px 40px; }
  body.human-first-ui .auth-panel { display: block; padding: 24px 20px; border-radius: 18px; }
  body.human-first-ui .auth-intro { padding: 0 0 22px; margin-bottom: 22px; border-right: 0; border-bottom: 1px solid var(--ui-line); }
  body.human-first-ui .auth-intro h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  body.human-first-ui *,
  body.human-first-ui *::before,
  body.human-first-ui *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Workflow-first density pass
   The product is an operating desk, not a marketing page: keep the next action
   visible and let explanatory content support the workflow instead of leading it. */
body.human-first-ui .app-shell {
  padding-top: 26px;
}

body.human-first-ui .home-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.human-first-ui .home-hero,
body.human-first-ui .settings-hero,
body.human-first-ui .tools-hero,
body.human-first-ui .subject-header {
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
}

body.human-first-ui .home-hero,
body.human-first-ui .settings-hero,
body.human-first-ui .tools-hero {
  gap: 20px;
  align-items: center;
}

body.human-first-ui .home-hero::after,
body.human-first-ui .subject-header::after {
  display: none !important;
}

body.human-first-ui .home-hero h1,
body.human-first-ui .settings-hero h1,
body.human-first-ui .tools-hero h1 {
  font-size: clamp(24px, 2.5vw, 30px) !important;
  line-height: 1.15;
  letter-spacing: -.045em;
}

body.human-first-ui .home-hero p:not(.eyebrow),
body.human-first-ui .settings-hero p:not(.eyebrow),
body.human-first-ui .tools-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
}

/* Reorder the home screen around the actual first decision: choose a主体. */
body.human-first-ui .home-view > .entity-board { order: 1; }
body.human-first-ui .home-view > .summary-strip { order: 2; }
body.human-first-ui .home-view > .home-capabilities { order: 3; }
body.human-first-ui .home-view > .home-note { order: 4; }

body.human-first-ui .entity-board {
  padding: 19px;
  border-radius: 16px;
}

body.human-first-ui .board-heading {
  margin-bottom: 12px;
}

body.human-first-ui .board-heading h2 {
  font-size: 17px;
  letter-spacing: -.03em;
}

body.human-first-ui .entity-card {
  min-height: 76px;
  padding: 13px;
}

body.human-first-ui .summary-strip {
  margin-bottom: 0;
}

body.human-first-ui .summary-strip > div {
  min-height: 66px;
  padding: 11px 16px;
}

body.human-first-ui .summary-strip strong {
  font-size: 25px;
}

body.human-first-ui .home-capabilities {
  gap: 16px;
  margin: 0;
  padding: 13px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .68);
  box-shadow: none;
}

body.human-first-ui .capabilities-intro {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0;
  border: 0;
}

body.human-first-ui .capabilities-intro .eyebrow {
  flex: 0 0 auto;
  margin: 0;
}

body.human-first-ui .capabilities-intro h2 {
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -.02em;
}

body.human-first-ui .capabilities-intro p:not(.eyebrow) {
  display: none;
}

body.human-first-ui .capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.human-first-ui .capability-item {
  min-height: 0;
  padding: 9px 10px;
  border-radius: 10px;
}

body.human-first-ui .capability-item small {
  margin-top: 3px;
  font-size: 9px;
}

body.human-first-ui .home-note {
  margin-top: 0;
  padding: 11px 13px;
}

/* Keep the subject workspace compact and task-led. */
body.human-first-ui .subject-header {
  gap: 18px;
  padding: 13px 16px;
  border-radius: 16px;
}

body.human-first-ui .subject-heading h1 {
  font-size: clamp(21px, 2.5vw, 28px);
}

body.human-first-ui .subject-header-note {
  margin-top: 0;
  font-size: 11px;
}

body.human-first-ui .subject-layout {
  gap: 14px;
}

body.human-first-ui .subject-content {
  gap: 12px;
}

body.human-first-ui .subject-tab {
  padding: 18px;
  border-radius: 16px;
}

body.human-first-ui .tab-heading h2,
body.human-first-ui .period-dashboard-heading h2,
body.human-first-ui .filing-plan-heading h2 {
  font-size: 17px;
  letter-spacing: -.03em;
}

body.human-first-ui .tab-heading p:not(.eyebrow),
body.human-first-ui .period-dashboard-heading p:not(.eyebrow),
body.human-first-ui .filing-plan-heading p:not(.eyebrow) {
  max-width: 620px;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.45;
}

body.human-first-ui .filing-plan-summary {
  margin-top: 13px;
}

body.human-first-ui .period-alert {
  margin-top: 12px;
  margin-bottom: 11px;
}

@media (max-width: 700px) {
  body.human-first-ui .app-shell { padding-top: 18px; }

  body.human-first-ui .home-view { gap: 10px; }

  body.human-first-ui .home-hero,
  body.human-first-ui .settings-hero,
  body.human-first-ui .tools-hero,
  body.human-first-ui .subject-header {
    gap: 11px;
    padding: 0;
  }

  body.human-first-ui .home-hero h1,
  body.human-first-ui .settings-hero h1,
  body.human-first-ui .tools-hero h1 {
    font-size: 25px;
  }

  body.human-first-ui .home-hero p:not(.eyebrow),
  body.human-first-ui .settings-hero p:not(.eyebrow),
  body.human-first-ui .tools-hero p:not(.eyebrow) {
    max-width: none;
    margin-top: 4px;
    font-size: 11px;
  }

  body.human-first-ui .home-hero .primary-button {
    width: auto;
    justify-self: start;
  }

  body.human-first-ui .entity-board,
  body.human-first-ui .home-capabilities,
  body.human-first-ui .subject-tab {
    padding: 14px;
    border-radius: 14px;
  }

  body.human-first-ui .entity-list { gap: 8px; }

  body.human-first-ui .entity-card {
    min-height: 70px;
    padding: 11px;
  }

  body.human-first-ui .capabilities-intro {
    display: block;
  }

  body.human-first-ui .capabilities-intro h2 {
    margin-top: 2px;
  }

  body.human-first-ui .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.human-first-ui .home-note p {
    font-size: 10px;
  }

  body.human-first-ui .subject-heading h1 {
    font-size: 23px;
  }

  body.human-first-ui .subject-header-actions {
    display: flex;
    width: auto;
  }

  body.human-first-ui .subject-header-actions > * {
    width: auto;
  }
}

/* On phone screens, keep every workspace destination discoverable. A
   horizontally clipped nav hid six of the eight business areas behind a
   swipe, which is too easy to miss during routine processing. */
@media (max-width: 640px) {
  body.human-first-ui .subject-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    color: transparent;
  }

  body.human-first-ui .subject-nav-item {
    width: auto;
    min-width: 0;
    flex: none;
  }
}

/* Keep the shell task-led: secondary accounting screens remain reachable from
   the current task, while the persistent navigation stays short. */
body.human-first-ui .home-capabilities,
body.human-first-ui .subject-nav-item[data-subject-tab="documents"],
body.human-first-ui .subject-nav-item[data-subject-tab="accounting"],
body.human-first-ui .subject-nav-item[data-subject-tab="payroll"],
body.human-first-ui .subject-nav-item[data-subject-tab="tax-filing"] {
  display: none;
}

body.human-first-ui .compact-workbench-panel {
  margin: 14px 0;
  padding: 16px;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

body.human-first-ui .compact-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

body.human-first-ui .compact-panel-heading h3,
body.human-first-ui .compact-panel-heading p {
  margin: 0;
}

body.human-first-ui .compact-panel-heading h3 {
  font-size: 16px;
  line-height: 1.35;
}

body.human-first-ui .compact-panel-heading p:not(.eyebrow),
body.human-first-ui .compact-panel-note {
  color: #66758a;
  font-size: 12px;
  line-height: 1.5;
}

body.human-first-ui .compact-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

body.human-first-ui .compact-metric-grid > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: #f6f8fc;
}

body.human-first-ui .compact-metric-grid small,
body.human-first-ui .compact-metric-grid span {
  color: #6d7d91;
  font-size: 10px;
}

body.human-first-ui .compact-metric-grid strong {
  color: #172335;
  font-size: 16px;
}

body.human-first-ui .tax-guide-schedule {
  display: grid;
  gap: 6px;
}

body.human-first-ui .period-aggregation-summary {
  display: grid;
  gap: 5px;
  margin-bottom: 9px;
  padding: 9px 11px;
  border: 1px solid #f0dfb0;
  border-radius: 10px;
  background: #fffaf0;
}

body.human-first-ui .period-aggregation-summary[hidden] { display: none; }
body.human-first-ui .period-aggregation-summary.ready { border-color: #cfe8df; background: #f2faf7; }
body.human-first-ui .period-aggregation-summary > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 13px; min-width: 0; }
body.human-first-ui .period-aggregation-summary strong { color: var(--ui-ink); font-size: 12px; }
body.human-first-ui .period-aggregation-summary span,
body.human-first-ui .period-aggregation-summary small { color: #67768a; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
body.human-first-ui .period-aggregation-summary .period-aggregation-state { color: #8a6315; font-weight: 750; }
body.human-first-ui .period-aggregation-summary.ready .period-aggregation-state { color: var(--ui-green); }
body.human-first-ui .period-aggregation-summary > .period-aggregation-ytd {
  margin-top: 1px;
  padding-top: 6px;
  border-top: 1px solid rgba(103, 118, 138, .16);
}
body.human-first-ui .period-aggregation-ytd .ready { color: var(--ui-green); font-weight: 700; }
body.human-first-ui .period-aggregation-ytd .warning { color: #8a6315; font-weight: 700; }

body.human-first-ui .tax-guide-schedule article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f8fc;
}

body.human-first-ui .tax-guide-schedule article > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body.human-first-ui .tax-guide-schedule small,
body.human-first-ui .tax-guide-schedule article > span {
  color: #617187;
  font-size: 11px;
}

body.human-first-ui .tax-guide-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

body.human-first-ui .tax-guide-steps li {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 8px 10px;
  color: #6c7b8f;
  border: 1px solid #e2e8f1;
  border-radius: 10px;
  font-size: 11px;
}

body.human-first-ui .tax-guide-steps li.done { color: #16745d; background: #f0faf7; border-color: #cfeee4; }
body.human-first-ui .tax-guide-steps li.current { color: #2457d6; background: #f1f5ff; border-color: #cfdcff; }

body.human-first-ui .guide-panel ol,
body.human-first-ui .guide-checklist {
  display: grid;
  gap: 8px;
}

body.human-first-ui .guide-panel li p {
  margin: 3px 0;
  color: #607087;
}

body.human-first-ui .guide-panel a {
  color: #2457d6;
  font-weight: 700;
}

body.human-first-ui .guide-fields {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

body.human-first-ui .guide-fields > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #f6f8fc;
}

body.human-first-ui .guide-fields small { grid-column: 1 / -1; color: #6b7a8e; }
body.human-first-ui .guide-notice { color: #765b19; background: #fff9e8; padding: 10px 12px; border-radius: 9px; }

@media (max-width: 720px) {
  body.human-first-ui .compact-panel-heading { align-items: flex-start; flex-direction: column; }
  body.human-first-ui .compact-panel-heading > button { width: 100%; }
  body.human-first-ui .compact-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.human-first-ui .tax-guide-steps { grid-template-columns: 1fr; }
  body.human-first-ui .tax-guide-schedule article { grid-template-columns: 1fr; gap: 4px; }
  body.human-first-ui .period-dashboard-heading .period-switcher { width: 100%; margin-left: 0; }
  body.human-first-ui .period-switcher input { width: 100%; min-width: 0; }
  body.human-first-ui .period-dashboard-heading > .status-pill { justify-self: start; }
}

/* Compact subject context: keep identity and status visible without turning
   the first business screen into a large empty masthead. */
body.human-first-ui .subject-header {
  gap: 14px !important;
  padding: 9px 14px !important;
  border-radius: 14px !important;
}

body.human-first-ui .subject-header .back-button {
  margin-bottom: 0;
}

body.human-first-ui .subject-avatar {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 15px;
}

body.human-first-ui .subject-heading {
  gap: 10px;
}

body.human-first-ui .subject-heading .eyebrow {
  margin-bottom: 3px;
  font-size: 9px;
  line-height: 1.15;
}

body.human-first-ui .subject-heading h1 {
  font-size: clamp(22px, 2.2vw, 25px);
  line-height: 1.08;
}

body.human-first-ui .subject-heading p:not(.eyebrow) {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.3;
}

body.human-first-ui .subject-header-note {
  font-size: 11px;
}

@media (max-width: 640px) {
  body.human-first-ui .subject-header {
    gap: 8px 10px !important;
    padding: 10px 12px !important;
  }

  body.human-first-ui .subject-header .back-button {
    font-size: 11px;
  }

  body.human-first-ui .subject-header-actions {
    gap: 5px;
  }

  body.human-first-ui .subject-header-note {
    font-size: 10px;
  }
}

/* Filing actions must size to their label. Several legacy mobile rules leave
   these buttons as collapsed grid items, so the border only wraps part of the
   Chinese label while the rest overflows into the card. Keep the action a
   real, readable button at every viewport size. */
body.human-first-ui .filing-plan-pending .quiet-button,
body.human-first-ui .filing-cadence-preview-action {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: max-content !important;
  min-width: max-content !important;
  max-width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  flex: 0 0 auto;
  overflow: visible;
  white-space: nowrap !important;
  writing-mode: horizontal-tb;
}

body.human-first-ui .filing-cadence-preview-copy,
body.human-first-ui .filing-plan-pending > div {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 640px) {
  body.human-first-ui .filing-plan-pending .quiet-button,
  body.human-first-ui .filing-cadence-preview-action {
    grid-column: 2 !important;
    grid-row: auto !important;
    justify-self: start !important;
    margin-top: 2px;
  }
}
