/* 视立美 AI 原生工作端
   材质纪律：实色分层（白侧栏 / 浅灰主区 / 白卡片）
   纸纹与草稿线只做极弱质感；渐变只做氛围，不糊字 */

:root {
  --brand-blue: #006ee6;
  --brand-blue-deep: #004fb8;
  --brand-blue-soft: #e8f3ff;
  --brand-yellow: #ffd23f;
  --brand-yellow-soft: #fff6cf;
  --brand-pink: #f4a6cd;
  --brand-pink-strong: #e0447f;
  --bg: #f3f7ff;
  --bg-2: #e6effc;
  --rail: #ffffff;
  --surface: #f5f8fd;
  --paper: #fbfcfd;
  --paper-line: rgba(0, 110, 230, 0.07);
  --paper-margin: rgba(255, 210, 63, 0.22);
  --white: #ffffff;
  --text: #14181c;
  --text-2: #3d4650;
  --text-3: #6b7580;
  --text-4: #98a2ad;
  --line: rgba(20, 24, 28, 0.1);
  --line-2: rgba(20, 24, 28, 0.06);
  --action: var(--brand-blue);
  --action-hover: var(--brand-blue-deep);
  --action-soft: var(--brand-blue-soft);
  --mint: var(--brand-blue);
  --mint-soft: #d6eaff;
  --mint-wash: rgba(0, 110, 230, 0.12);
  --ai: #6b7580;
  --ai-soft: rgba(20, 24, 28, 0.045);
  --ink: #14181c;
  --hero: var(--brand-blue);
  --blue: #14181c;
  --blue-hover: #2a323a;
  --blue-soft: rgba(0, 110, 230, 0.1);
  --shadow: 0 12px 30px rgba(20, 30, 40, 0.09);
  --shadow-sm: 0 1px 2px rgba(20, 24, 28, 0.04), 0 8px 18px rgba(20, 30, 40, 0.06);
  --shadow-md: 0 16px 36px rgba(20, 30, 40, 0.11);
  --shadow-island: 0 2px 4px rgba(20, 24, 28, 0.04), 0 14px 28px rgba(15, 40, 50, 0.08);
  --grain:
    radial-gradient(rgba(20, 24, 28, 0.035) 0.55px, transparent 0.65px),
    radial-gradient(rgba(0, 110, 230, 0.03) 0.45px, transparent 0.55px);
  --grain-size: 3.5px 3.5px, 2.5px 2.5px;
  --grain-pos: 0 0, 1.2px 1.6px;
  --sidebar-w: 232px;
  --top: 0px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "HarmonyOS Sans SC",
    "Microsoft YaHei", system-ui, sans-serif;
  --font-num: Geist, var(--font);
  --radius: 10px;
  --radius-nav: 10px;
  --radius-card: 14px;
  --radius-paper: 20px;
  --radius-island: 16px;
  --radius-island-in: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html::after {
  content: none;
}

body {
  /* 极弱氛围：可读优先，不做花渐变抢内容 */
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, rgba(0, 110, 230, 0.16), transparent 55%),
    radial-gradient(ellipse 48% 36% at 100% 0%, rgba(255, 210, 63, 0.18), transparent 52%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 24, 28, 0.28) transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 24, 28, 0.28) transparent;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
  margin: 6px 0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 110, 230, 0.55), rgba(20, 24, 28, 0.28));
  border-radius: 999px;
  border: 1px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 110, 230, 0.78);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

a {
  color: var(--text);
}

button,
.chip,
.act,
.side-nav-item,
.tool-btn {
  transition: color 160ms var(--ease), background-color 160ms var(--ease),
    border-color 160ms var(--ease), box-shadow 160ms var(--ease),
    transform 80ms var(--ease);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(0, 110, 230, 0.45);
  outline-offset: 2px;
}

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-rows: 1fr;
  height: 100dvh;
  min-height: 100dvh;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.topbar,
.askpane {
  display: none !important;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
  border: 0;
  overflow: hidden;
}

.app.has-canvas .workspace {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 46vw);
}

.col-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background-color: var(--surface);
  background-image: var(--grain);
  background-size: var(--grain-size);
  background-position: var(--grain-pos);
}

.col-main::before {
  content: "";
  position: sticky;
  top: 0;
  left: 0;
  display: block;
  height: 0;
  pointer-events: none;
  z-index: 0;
}

.stage {
  flex: 1 0 auto;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 36px 32px 16px;
  background: transparent;
  overflow: visible;
}

.app.has-canvas .stage {
  width: auto;
  max-width: 560px;
  margin: 0;
  padding: 28px 24px 16px;
}

.app.overview .stage {
  width: min(900px, 100%);
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 12px 18px;
  min-height: 0;
  overflow: visible;
  background: var(--rail);
  border: 0;
  border-right: 1px solid var(--line-2);
  z-index: 4;
}

.brand-lockup {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 10px;
  flex-shrink: 0;
  width: 100%;
  padding: 4px 8px 18px;
  text-align: left;
}

/* ai155: final minimal AI work assistant structure */
:root {
  --brand-blue: #0875e1;
  --brand-blue-deep: #045fc4;
  --brand-cyan: #08b7d8;
  --ink-strong: #07111f;
  --ink-body: #34445a;
  --ink-soft: #728198;
  --line-soft: #dbe6f2;
  --surface: #ffffff;
  --surface-subtle: #f7fbff;
  --sidebar-w: 276px;
}

.app {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  color: var(--ink-strong);
  background:
    radial-gradient(circle at 70% 4%, rgba(8, 117, 225, 0.05), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.sidebar {
  width: var(--sidebar-w);
  padding: 20px 14px 16px;
  border-right: 1px solid rgba(9, 27, 52, 0.08);
  background: rgba(248, 251, 255, 0.92);
}

.brand {
  min-height: 36px;
  margin: 0 6px 22px;
}

.brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  box-shadow: none;
}

.brand-text strong {
  color: #07111f;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-text span {
  color: #64748b;
  font-size: 12px;
  font-weight: 520;
}

.side-top-search {
  width: 30px;
  height: 30px;
  color: #53657d;
}

.side-primary-actions {
  gap: 10px;
  padding: 0;
  margin-bottom: 14px;
}

.new-chat-btn,
.side-search-box {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(9, 27, 52, 0.08);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.new-chat-btn {
  color: #07111f;
  font-size: 14px;
  font-weight: 680;
}

.side-search-box {
  background: #f1f6fc;
}

.side-search-box input {
  font-size: 13px;
}

.side-nav {
  gap: 6px;
  padding: 14px 0 16px;
  margin: 0 0 14px;
  border-top: 1px solid rgba(9, 27, 52, 0.07);
  border-bottom: 1px solid rgba(9, 27, 52, 0.07);
}

.side-section-label {
  margin: 0 8px 8px;
  color: #8a97aa;
  font-size: 12px;
  font-weight: 670;
}

.side-nav-item {
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  color: #334155;
  background: transparent;
}

.side-nav-item.is-on {
  color: var(--brand-blue);
  background: #eaf4ff;
  box-shadow: none;
}

.side-nav-item.is-on::before {
  display: none;
}

.side-nav-ico {
  width: 22px;
  height: 22px;
  color: currentColor;
  background: transparent;
}

.side-nav-copy strong {
  font-size: 14px;
  font-weight: 700;
}

.side-nav-copy em {
  display: none;
}

.side-history {
  padding: 0 6px;
}

.side-section-title {
  margin: 16px 0 7px;
  color: #8a97aa;
  font-size: 12px;
  font-weight: 680;
}

.side-history-item {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 34px;
  padding: 0;
  border-radius: 8px;
  color: #0f1f33;
  background: transparent;
}

.side-history-item:hover {
  background: rgba(8, 117, 225, 0.06);
}

.side-history-title {
  font-size: 13px;
  font-weight: 640;
}

.side-history-time {
  color: #92a0b2;
  font-size: 12px;
}

.side-history-preview,
.side-history-ico {
  display: none;
}

.side-user {
  margin: 14px 0 0;
  padding: 10px 8px;
  border-top: 1px solid rgba(9, 27, 52, 0.08);
}

.side-user-main {
  min-height: 44px;
  border-radius: 11px;
  background: transparent;
}

.col-main {
  overflow-x: hidden;
}

.app.view-today .stage,
.app.view-task .stage,
.app.view-clients .stage {
  width: min(1040px, calc(100% - 96px));
  padding-top: 72px;
  padding-bottom: 150px;
}

.ai-work-home {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: 100%;
}

.ai-work-hero {
  width: 100%;
  margin: 0;
  text-align: center;
}

.app.view-today .home-hero::after,
.app.view-today .decision-panel::before {
  display: none;
}

.app.view-today .home-hero .hello {
  margin: 0;
  color: var(--ink-strong);
  font-size: clamp(42px, 4.2vw, 64px);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: 0;
}

.home-composer-shell {
  width: min(980px, 100%);
}

.home-composer-shell .composer {
  position: relative;
  width: 100%;
  min-height: 132px;
  padding: 22px 22px 16px;
  border: 1px solid rgba(9, 27, 52, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.home-composer-shell .composer:focus-within {
  border-color: rgba(8, 117, 225, 0.28);
  box-shadow: 0 0 0 4px rgba(8, 117, 225, 0.08);
}

.home-composer-shell .composer::before {
  display: none;
}

.home-composer-shell .composer textarea {
  min-height: 72px;
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.5;
}

.home-composer-shell .composer textarea::placeholder {
  color: #8a97aa;
}

.home-composer-shell .composer-bar {
  justify-content: flex-end;
  padding-top: 4px;
}

.home-composer-shell .tool-btn {
  display: none;
}

.composer-bar .act {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid rgba(8, 117, 225, 0.12);
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
  box-shadow: none;
}

.composer-bar .act.is-mute {
  color: #8ea0b5;
  border-color: rgba(9, 27, 52, 0.08);
  background: linear-gradient(180deg, #f3f6fa 0%, #e9eef5 100%);
}

.home-decision-shell {
  width: min(980px, 100%);
}

.app.view-today .decision-panel {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(9, 27, 52, 0.1);
  background: #ffffff;
  box-shadow: none !important;
}

.app.view-today .decision-head {
  min-height: auto;
  padding: 18px 22px 0;
}

.app.view-today .decision-status {
  color: #66758b;
  font-size: 12px;
  font-weight: 650;
}

.app.view-today .decision-text-switch {
  min-height: auto;
  padding: 0;
  border: 0;
  color: #42526a;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.app.view-today .decision-core,
.app.view-today .decision-panel.is-follow-scene .decision-core {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px 24px;
}

.app.view-today .decision-avatar,
.app.view-today .decision-person-av,
.app.view-today .decision-avatar .kid-av,
.app.view-today .decision-avatar .avatar,
.app.view-today .decision-avatar .focus-faces,
.app.view-today .decision-avatar .focus-biz-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}

.app.view-today .decision-copy h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 28px;
  font-weight: 750;
  line-height: 1.18;
}

.app.view-today .decision-copy p:not(.decision-kicker) {
  margin: 7px 0 0;
  max-width: 58em;
  color: var(--ink-body);
  font-size: 14px;
  line-height: 1.65;
}

.app.view-today .decision-actions .act,
.member-dossier-actions .act,
.task-detail-actions .act {
  min-width: 112px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid rgba(8, 117, 225, 0.18);
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
  box-shadow: none;
  font-weight: 720;
}

.app.view-today .decision-actions .act:active,
.member-dossier-actions .act:active,
.task-detail-actions .act:active,
.composer-bar .act:active {
  transform: scale(0.97);
}

.member-dossier-page {
  display: grid;
  gap: 18px;
  width: 100%;
}

.member-dossier-head {
  display: grid;
  gap: 8px;
}

.member-dossier-head h1 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 42px;
  font-weight: 760;
  line-height: 1.08;
}

.member-dossier-head p {
  max-width: 680px;
  margin: 0;
  color: var(--ink-body);
  font-size: 15px;
  line-height: 1.7;
}

.member-dossier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.member-dossier-tabs .member-tab {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(9, 27, 52, 0.09);
  color: #53657d;
  background: #ffffff;
  box-shadow: none;
}

.member-dossier-tabs .member-tab.is-on {
  color: var(--brand-blue);
  border-color: rgba(8, 117, 225, 0.24);
  background: #edf6ff;
}

.member-dossier-tabs .member-tab b {
  color: inherit;
}

.member-dossier-list {
  display: grid;
  gap: 12px;
}

.member-dossier-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(9, 27, 52, 0.09);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: none;
}

.member-dossier-card.is-primary {
  border-color: rgba(8, 117, 225, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.member-dossier-person {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.person-av-wrap .kid-av,
.person-av-wrap .avatar,
.member-dossier-person .kid-av,
.member-dossier-person .avatar,
.task-detail-avatar .kid-av,
.task-detail-avatar .avatar {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.member-dossier-person strong {
  display: block;
  color: var(--ink-strong);
  font-size: 15px;
  font-weight: 720;
}

.member-dossier-person em {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 12px;
  font-style: normal;
}

.member-dossier-signal {
  min-width: 0;
}

.member-dossier-stage {
  display: inline-flex;
  margin-bottom: 7px;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 720;
}

.member-dossier-stage.tone-danger {
  color: #c93645;
}

.member-dossier-stage.tone-warn {
  color: #a06100;
}

.member-dossier-stage.tone-ok {
  color: #047857;
}

.member-dossier-signal h2 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 18px;
  font-weight: 740;
  line-height: 1.3;
}

.member-dossier-signal p {
  margin: 6px 0 0;
  color: var(--ink-body);
  font-size: 13px;
  line-height: 1.58;
}

.member-dossier-actions,
.task-detail-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.member-dossier-actions .act.ghost,
.task-detail-actions .act.ghost {
  color: var(--brand-blue);
  background: #ffffff;
  border-color: rgba(8, 117, 225, 0.22);
}

.task-detail-page {
  display: grid;
  gap: 14px;
  width: min(900px, 100%);
  margin: 0 auto;
}

.task-back {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #53657d;
  background: transparent;
  font-size: 13px;
  font-weight: 650;
}

.task-detail-shell {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(9, 27, 52, 0.1);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: none;
}

.task-detail-hero {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.task-detail-kicker,
.task-detail-block span {
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 720;
}

.task-detail-hero h1 {
  margin: 4px 0 0;
  color: var(--ink-strong);
  font-size: 34px;
  font-weight: 760;
  line-height: 1.15;
}

.task-detail-hero p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--ink-body);
  font-size: 15px;
  line-height: 1.7;
}

.task-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.task-detail-block {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 120px;
  padding: 18px;
  border: 1px solid rgba(9, 27, 52, 0.08);
  border-radius: 15px;
  background: var(--surface-subtle);
  box-shadow: none;
}

.task-detail-block p {
  margin: 0;
  color: var(--ink-body);
  font-size: 14px;
  line-height: 1.75;
}

.task-detail-script {
  grid-column: 1 / -1;
  background: #ffffff;
}

@media (hover: hover) and (pointer: fine) {
  .new-chat-btn:hover,
  .side-nav-item:hover,
  .member-dossier-card:hover,
  .task-detail-shell:hover {
    border-color: rgba(8, 117, 225, 0.18);
  }

  .app.view-today .decision-actions .act:hover,
  .member-dossier-actions .act:hover,
  .task-detail-actions .act:hover,
  .composer-bar .act:not(.is-mute):hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 920px) {
  :root {
    --sidebar-w: 0px;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .app.view-today .stage,
  .app.view-task .stage,
  .app.view-clients .stage {
    width: min(100% - 32px, 720px);
    padding-top: 52px;
    padding-bottom: 120px;
  }

  .app.view-today .home-hero .hello {
    font-size: 38px;
  }

  .home-composer-shell .composer {
    min-height: 118px;
    padding: 18px 18px 14px;
  }

  .app.view-today .decision-core,
  .app.view-today .decision-panel.is-follow-scene .decision-core,
  .member-dossier-card,
  .task-detail-grid {
    grid-template-columns: 1fr;
  }

  .app.view-today .decision-actions,
  .member-dossier-actions,
  .task-detail-actions {
    width: 100%;
    justify-content: stretch;
  }

  .app.view-today .decision-actions .act,
  .member-dossier-actions .act,
  .task-detail-actions .act {
    flex: 1 1 auto;
  }

  .task-detail-script {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .app.view-today .stage,
  .app.view-task .stage,
  .app.view-clients .stage {
    width: calc(100% - 24px);
    padding-top: 34px;
  }

  .app.view-today .home-hero .hello,
  .member-dossier-head h1,
  .task-detail-hero h1 {
    font-size: 30px;
  }

  .home-composer-shell .composer textarea {
    font-size: 16px;
  }

  .app.view-today .decision-core,
  .app.view-today .decision-panel.is-follow-scene .decision-core {
    padding: 16px;
  }

  .app.view-today .decision-copy h2 {
    font-size: 22px;
  }

  .task-detail-shell {
    padding: 18px;
  }
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  border-radius: 9px;
}

.brand-logo-shell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 82px;
  width: 82px;
  height: 34px;
  min-width: 0;
}

.brand-logo-full {
  width: 78px;
  max-height: 32px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  line-height: 1.1;
}

.brand-product {
  padding-left: 1px;
}

.brand-text strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: 0;
  color: var(--text);
  white-space: nowrap;
}

.brand-text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 520;
  color: var(--text-3);
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.brand-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 15px;
  min-width: 18px;
  padding: 0 4px;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0;
  color: #fff;
  background: var(--brand-blue);
  line-height: 1;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px;
}

.side-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 42px;
  padding: 0 12px 0 14px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-3);
  background: transparent;
  text-align: left;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.side-nav-item:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.035);
}

.side-nav-item.is-on {
  color: var(--action-hover);
  background: var(--action-soft);
  font-weight: 650;
  box-shadow: none;
}

.side-nav-item.is-on::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: var(--action);
}

.side-nav-item.is-on .side-nav-ico {
  color: var(--action);
  opacity: 1;
}

.side-nav-ico {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: inherit;
  opacity: 0.72;
}

.side-spacer {
  flex: 1 1 auto;
  min-height: 12px;
}

.side-user-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 6;
}

.side-user {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 14px 2px 4px;
  padding: 6px 8px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: none;
  flex-shrink: 0;
}

.side-user-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 4px 4px 4px 2px;
  border-radius: 10px;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.side-user-main:hover {
  background: rgba(0, 110, 230, 0.06);
}

.side-user-wrap.is-open .side-user-main {
  background: rgba(0, 110, 230, 0.08);
}

.side-user-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  flex-shrink: 0;
  background: #eef2f4;
  border: 0;
  box-shadow: none;
}

.side-user-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.side-user-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.side-user-text span {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-user-caret {
  display: inline-flex;
  color: var(--text-4);
  flex-shrink: 0;
  transition: transform 160ms var(--ease);
}

.side-user-wrap.is-open .side-user-caret {
  transform: rotate(180deg);
  color: var(--action);
}

.side-role-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-md);
  overflow: visible;
}

.side-role-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  text-align: left;
  color: var(--text-2);
  cursor: pointer;
}

.side-role-item:hover {
  background: #f4f7f6;
  color: var(--text);
}

.side-role-item.is-on {
  background: var(--action-soft);
  color: var(--text);
}

.side-role-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
  background: #eef2f4;
  border: 0;
  box-shadow: none;
}

.side-role-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.side-role-copy strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.side-role-copy span {
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-role-check {
  display: inline-flex;
  color: var(--action);
}

.side-gear {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.side-gear:hover {
  color: var(--action);
  background: var(--action-soft);
}

.hello-row {
  display: block;
  position: relative;
}

.hello-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px 16px;
  margin: 0 0 12px;
  padding: 0 0 4px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.hello-band[data-part="闭店前"] {
  background: transparent;
  border: 0;
}

.hello-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 36em;
  padding-bottom: 4px;
}

.hello-band .hello {
  margin: 0;
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}

.hello-text {
  position: relative;
  display: inline-block;
}

.hello-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 12%;
  bottom: 0.08em;
  height: 0.28em;
  background: linear-gradient(90deg, rgba(0, 110, 230, 0.22), rgba(0, 110, 230, 0.05) 70%, transparent);
  border-radius: 999px;
  z-index: -1;
}

.hello-band .lead {
  margin-top: 8px;
  max-width: 28em;
  font-size: 15px;
  color: var(--text-2);
}

.hello-ip {
  position: relative;
  z-index: 1;
  width: 168px;
  height: 128px;
  --ip-rotate: 0deg;
  --ip-x: 0px;
  --ip-y: 0px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  margin-right: -6px;
  margin-bottom: -4px;
}

.hello-ip-glow {
  display: none;
}

.hello-ip-spark {
  display: none;
}

.hello-ip-spark-a {
  top: 18px;
  right: 28px;
  animation-delay: 0s;
}

.hello-ip-spark-b {
  top: 42px;
  right: 12px;
  width: 4px;
  height: 4px;
  background: var(--brand-pink);
  box-shadow: 0 0 0 3px rgba(244, 166, 205, 0.16);
  animation-delay: 1.4s;
}

.hello-ip-spark-c {
  top: 28px;
  left: 22px;
  width: 4px;
  height: 4px;
  animation-delay: 2.6s;
}

.hello-tarsius {
  position: relative;
  z-index: 1;
  width: 132px;
  height: 132px;
  border-radius: 0;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  filter: saturate(1.08) drop-shadow(0 18px 24px rgba(0, 67, 150, 0.16));
  animation: hello-alive 5.2s ease-in-out infinite;
  transform-origin: center 82%;
  will-change: transform, filter;
}

.hello-ip-cue {
  position: absolute;
  right: 7px;
  bottom: 26px;
  z-index: 2;
  display: grid;
  place-items: center;
  color: var(--brand-blue);
  filter: drop-shadow(0 5px 8px rgba(0, 67, 150, 0.22));
  transform: rotate(-8deg);
}

.hello-ip[data-scene="confirm"] {
  --ip-rotate: -4deg;
  --ip-y: -2px;
}

.hello-ip[data-scene="train"] {
  --ip-rotate: 4deg;
  --ip-x: -2px;
}

.hello-ip[data-scene="follow"] {
  --ip-rotate: -7deg;
  --ip-y: -1px;
}

.hello-ip[data-scene="risk"] {
  --ip-rotate: 3deg;
  --ip-y: -4px;
}

.hello-ip[data-scene="check"] {
  --ip-rotate: -2deg;
}

.hello-ip[data-scene="report"],
.hello-ip[data-scene="improve"],
.hello-ip[data-scene="opportunity"] {
  --ip-rotate: -3deg;
  --ip-y: -2px;
}

.hello-ip[data-scene="risk"] .hello-ip-cue {
  color: #e09b00;
  bottom: 32px;
  transform: rotate(8deg);
}

.hello-ip[data-scene="follow"] .hello-ip-cue {
  color: var(--brand-pink-strong);
}

.hello-ip-shadow {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 72px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(20, 40, 50, 0.16) 0%, transparent 72%);
  animation: hello-shadow 4.2s ease-in-out infinite;
  z-index: 0;
}

@keyframes hello-alive {
  0%,
  100% {
    transform: translate(var(--ip-x), var(--ip-y)) rotate(var(--ip-rotate)) scale(1);
    filter: saturate(1.08) drop-shadow(0 12px 20px rgba(0, 67, 150, 0.12));
  }
  35% {
    transform: translate(var(--ip-x), calc(var(--ip-y) - 8px)) rotate(calc(var(--ip-rotate) + 2deg)) scale(1.03);
    filter: saturate(1.12) drop-shadow(0 18px 26px rgba(0, 67, 150, 0.18));
  }
  70% {
    transform: translate(var(--ip-x), calc(var(--ip-y) - 3px)) rotate(calc(var(--ip-rotate) - 1deg)) scale(1.015);
    filter: saturate(1.1) drop-shadow(0 14px 22px rgba(0, 67, 150, 0.15));
  }
}

@keyframes hello-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(0.92);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

@keyframes hello-shadow {
  0%,
  100% {
    opacity: 0.85;
    transform: translateX(-50%) scale(1);
  }
  35% {
    opacity: 0.45;
    transform: translateX(-50%) scale(0.78);
  }
  70% {
    opacity: 0.65;
    transform: translateX(-50%) scale(0.9);
  }
}

@keyframes hello-sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0.4) translateY(4px);
  }
  30% {
    opacity: 0.95;
    transform: scale(1) translateY(0);
  }
  60% {
    opacity: 0.35;
    transform: scale(0.7) translateY(-6px);
  }
}

.hello {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.22;
  text-wrap: balance;
  color: var(--text);
}

.lead {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 36em;
}

/* 页眉眉题：贴主区顶，与下方首块内容统一留白 */
.meta-line {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.acct-meta {
  color: var(--text-3);
}

.stage > .hello:first-child {
  margin: 0;
}

.meta-line + .client-head,
.meta-line + .acct-hero,
.meta-line + .hello {
  margin-top: 0;
}

.meta-line + .ctx-strip {
  margin-top: 0;
}

.meta-line + .thread {
  margin-top: 4px;
}

.lead + .brief-list,
.lead + .overview-list {
  margin-top: 22px;
}

.ai-start {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 12px;
}

.ai-start-hd {
  max-width: 42em;
}

.ai-start-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
}

.ai-start-copy {
  min-width: 0;
}

.ai-start-kicker {
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.ai-buddy {
  width: 112px;
  height: 112px;
  border-radius: 0;
  overflow: visible;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ai-buddy .buddy-lg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
}

.ai-start .hello {
  margin: 0;
}

.ai-start .lead {
  margin-top: 12px;
}

.role-switch {
  margin-top: 20px;
  max-width: 42em;
}

.role-switch-label {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.role-switch-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 550;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease),
    color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.role-chip:hover {
  border-color: rgba(0, 110, 230, 0.28);
  color: var(--text);
}

.role-chip.is-on {
  border-color: rgba(0, 110, 230, 0.4);
  background: var(--action-soft);
  color: var(--action-hover);
  box-shadow: none;
}

.role-chip-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
  background: #eef2f4;
  border: 0;
  box-shadow: none;
}

.ai-starters {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-starter {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 16px 16px 16px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  text-align: left;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: inherit;
  cursor: pointer;
  transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease),
    border-color 160ms var(--ease);
}

.ai-starter:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  border-color: rgba(0, 110, 230, 0.22);
}

.ai-starter:hover .ai-starter-go {
  color: var(--action);
}

.ai-starter:focus-visible {
  outline: 2px solid rgba(0, 110, 230, 0.35);
  outline-offset: 2px;
}

.ai-starter-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--action);
  background: var(--action-soft);
  border: 1px solid rgba(0, 110, 230, 0.12);
}

.ai-starter-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ai-starter-copy strong {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  color: var(--text);
}

.ai-starter-copy span {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

.ai-starter-go {
  color: var(--text-4);
  font-size: 16px;
  line-height: 1;
  padding-right: 2px;
  transition: color 160ms var(--ease);
}

.brief-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.brief-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 18px 18px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  text-align: left;
  background: var(--white);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease),
    border-color 160ms var(--ease), transform 160ms var(--ease);
}

.brief-item:hover {
  background: var(--white);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 110, 230, 0.22);
}

.brief-item:last-child {
  border-bottom: 1px solid var(--line-2);
}

.brief-item.is-primary {
  box-shadow: var(--shadow);
  border-color: rgba(0, 110, 230, 0.3);
  background: #f7fcfb;
}

.brief-list-rest {
  margin-top: 14px;
}

.focus-board {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.focus-lead-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 110, 230, 0.16);
  border-radius: var(--radius-card);
  background:
    var(--grain),
    linear-gradient(165deg, #f4fbf9 0%, #ffffff 58%);
  background-size: var(--grain-size), auto;
  background-position: var(--grain-pos), 0 0;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.focus-lead-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.focus-lead-card .kid-av,
.focus-lead-card .avatar,
.focus-lead-card .focus-faces {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.focus-lead-card .focus-faces .kid-av,
.focus-lead-card .focus-faces .avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.focus-copy {
  min-width: 0;
}

.focus-kicker {
  margin: 0 0 3px;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.focus-lead-card h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1.3;
}

.focus-lead-card p {
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-2);
  max-width: 34em;
}

.focus-lead-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.focus-rest {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.focus-quiet {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 30, 28, 0.06);
  background: transparent;
}

.focus-quiet:last-child {
  border-bottom: 0;
}

.focus-quiet.is-done {
  opacity: 0.72;
}

.focus-quiet > .kid-av,
.focus-quiet > .avatar,
.focus-quiet > .focus-faces {
  width: 44px;
  height: 44px;
}

.focus-quiet .kid-av,
.focus-quiet .avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px;
  object-fit: cover;
  object-position: center 18%;
}

.focus-faces {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.focus-faces .kid-av,
.focus-faces .avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  object-position: center 18%;
}

.focus-faces-count {
  position: absolute;
  right: -4px;
  bottom: -4px;
  z-index: 3;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #006ee6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

.focus-biz-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--brand-blue-deep);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #eef6ff 0%, #d7eaff 100%);
  border: 1px solid rgba(0, 110, 230, 0.18);
  box-shadow: 0 8px 18px rgba(15, 30, 28, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.focus-biz-icon.lg {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.focus-biz-icon::after {
  content: "";
  position: absolute;
  inset: 8px 7px auto auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.18;
}

.focus-biz-glyph {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.focus-biz-badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  z-index: 2;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--brand-blue-deep);
  border: 1px solid rgba(0, 110, 230, 0.18);
  box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(15, 30, 28, 0.1);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}

.focus-biz-revenue {
  color: var(--brand-blue-deep);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #eaf4ff 0%, #cfe6ff 56%, #fff0a8 100%);
}

.focus-biz-improve {
  color: #9a5a06;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #fff7db 0%, #ffe2b8 100%);
  border-color: rgba(184, 110, 16, 0.18);
}

.focus-biz-risk {
  color: #b43e32;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #fff1ed 0%, #ffd8cc 100%);
  border-color: rgba(180, 62, 50, 0.18);
}

.focus-biz-follow {
  color: var(--brand-blue-deep);
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0) 34%),
    linear-gradient(145deg, #eaf6ff 0%, #cfe9f8 100%);
  border-color: rgba(37, 111, 149, 0.18);
}

.focus-biz-train,
.focus-biz-record,
.focus-biz-growth {
  color: var(--brand-blue-deep);
}

.focus-faces.is-photo-pair .kid-av,
.focus-faces.is-photo-pair .avatar {
  position: absolute;
  width: 32px !important;
  height: 32px !important;
  border-radius: 12px !important;
  box-shadow: 0 0 0 2px #fff, 0 8px 16px rgba(15, 30, 28, 0.12);
}

.focus-faces.is-photo-pair .kid-av:first-child,
.focus-faces.is-photo-pair .avatar:first-child {
  left: 0;
  top: 0;
}

.focus-faces.is-photo-pair .kid-av:nth-child(2),
.focus-faces.is-photo-pair .avatar:nth-child(2) {
  right: 0;
  bottom: 0;
}

.focus-lead-card .focus-faces.is-photo-pair .kid-av,
.focus-lead-card .focus-faces.is-photo-pair .avatar {
  width: 35px !important;
  height: 35px !important;
}

.avatar.focus-face-fallback,
.kid-av.focus-face-fallback {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #8b9491;
  background: #e8eceb;
  border-radius: 14px;
}

.focus-faces.is-default .focus-face-fallback {
  width: 44px !important;
  height: 44px !important;
}

.focus-quiet h2 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1.35;
}

.focus-quiet p {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-2);
}

.focus-quiet .act.link {
  padding-right: 0;
  white-space: nowrap;
  justify-self: end;
}

.person-av-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.person-av-wrap .kid-av,
.person-av-wrap .avatar {
  width: 44px;
  height: 44px;
}

.status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--text-4);
}

.status-dot.tone-danger {
  background: #e25555;
}

.status-dot.tone-warn {
  background: #d89a2f;
}

.status-dot.tone-ok {
  background: #2f9e74;
}

.status-dot.tone-info {
  background: #5b8def;
}

.brief-person {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.brief-person .kid-av {
  margin-top: 0;
}

.brief-go {
  color: var(--text-4);
  font-size: 16px;
  line-height: 1;
  padding-top: 2px;
}

.brief-person:hover .brief-go {
  color: var(--action);
}

.brief-mark {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--text-4);
  flex-shrink: 0;
}

.brief-item.is-primary .brief-mark {
  background: var(--action);
}

.brief-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  padding: 4px 8px;
  margin-top: 1px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  width: max-content;
  justify-self: start;
  font-weight: 600;
}

.brief-item h2 {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--text);
}

.brief-item p {
  margin-top: 5px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}

.brief-item .why-list {
  margin-top: 8px;
  padding-left: 1.1em;
  color: var(--text-2);
}

.brief-item .why-list li {
  margin: 4px 0;
}

.act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: var(--action);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.act:hover {
  background: var(--action-hover);
}

.act:active {
  transform: scale(0.98);
}

.act.link,
.act.ghost.link {
  height: auto;
  min-height: 34px;
  padding: 6px 2px;
  background: transparent;
  color: var(--text);
  border: 0;
  font-weight: 500;
  box-shadow: none;
}

.act.link:hover,
.act.ghost.link:hover {
  background: transparent;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-color: transparent;
}

.act.is-mute,
.composer-bar .act.is-mute {
  background: rgba(28, 25, 21, 0.12);
  color: rgba(255, 255, 255, 0.92);
  cursor: default;
  pointer-events: none;
}

.act.is-mute:hover,
.composer-bar .act.is-mute:hover {
  background: rgba(28, 25, 21, 0.12);
}

.act.ghost,
.btn-ghost {
  background: var(--white);
  color: var(--text-2);
  border: 1px solid var(--line);
}

.act.ghost:hover,
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(0, 110, 230, 0.35);
  background: var(--action-soft);
}

.btn-primary {
  background: var(--action);
  color: #fff;
}

.btn-primary:hover {
  background: var(--action-hover);
}

.btn-link {
  color: var(--text-2);
  font-weight: 500;
}

.btn-link:hover {
  color: var(--action);
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--action-soft);
  color: var(--action);
  font-weight: 650;
  flex-shrink: 0;
}

.avatar.lg,
.kid-av.lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  font-size: 20px;
}

.avatar.md,
.kid-av.md {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

img.avatar,
img.kid-av {
  object-fit: cover;
  object-position: center 18%;
  padding: 0;
  background: #eef2f4;
  display: block;
  border: 0;
  box-shadow: none;
}

.tag-info {
  background: var(--action-soft);
  color: var(--text-2);
}

.person-lead {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.person-lead.is-hero {
  border-color: rgba(0, 110, 230, 0.22);
  background: #f7fcfb;
  box-shadow: var(--shadow-sm);
}

.person-lead .kicker {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.person-lead-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.person-lead-top .kicker {
  margin-bottom: 3px;
}

.person-lead-sub {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}

.person-lead-body {
  margin-top: 8px !important;
  font-size: 13.5px !important;
  max-width: none;
}

.person-lead .actions {
  margin-top: 12px;
}

.person-lead h2 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--text);
}

.hero-mark {
  width: 12px;
  height: 12px;
  margin-top: 10px;
  background: var(--action);
}

.store-item {
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.store-meta {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}

.store-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.store-item.is-primary .store-hint,
.store-item:hover .store-hint {
  color: var(--action);
}

.risk-rail {
  width: 6px;
  align-self: stretch;
  min-height: 42px;
  border-radius: 99px;
  background: var(--text-4);
}

.risk-rail.risk-high {
  background: #e25555;
}

.risk-rail.risk-mid {
  background: #d89a2f;
}

.brief-person h2 .tag {
  margin-left: 8px;
  vertical-align: middle;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 88px;
}

.bubble-user {
  align-self: flex-end;
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--action-soft);
  border: 1px solid rgba(0, 110, 230, 0.18);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text);
}

.bubble-user.is-enter,
.answer.is-enter {
  animation: msg-enter 180ms var(--ease);
}

@keyframes msg-enter {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.composer-bar .act.is-pop {
  animation: act-pop 220ms var(--ease);
}

@keyframes act-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

.answer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.answer-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.answer-who {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  flex-shrink: 0;
}

.answer-hd .exec-line {
  margin: 0;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tarsius-figure {
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.tarsius-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(1.08) drop-shadow(0 6px 10px rgba(0, 67, 150, 0.14));
  transform-origin: center 82%;
}

.buddy-xs,
.buddy-sm {
  overflow: visible;
}

.buddy-xs {
  width: 28px;
  height: 28px;
}

.buddy-sm {
  width: 34px;
  height: 34px;
}

.buddy-tarsius.ip-scene-think .tarsius-img {
  transform: rotate(-6deg) translateY(-1px);
}

.buddy-tarsius.ip-scene-focus .tarsius-img {
  transform: rotate(4deg) scale(1.05);
}

.buddy-tarsius.ip-scene-happy .tarsius-img {
  transform: translateY(-1px) rotate(-2deg);
}

.tarsius-cue {
  position: absolute;
  right: -5px;
  bottom: 6px;
  display: grid;
  place-items: center;
  color: var(--brand-blue);
  filter: drop-shadow(0 3px 5px rgba(0, 67, 150, 0.18));
  transform: rotate(-8deg);
}

.focus-ip-action {
  width: 48px;
  height: 48px;
}

.focus-ip-action.lg {
  width: 64px;
  height: 64px;
}

.focus-ip-action.ip-scene-risk .tarsius-cue {
  color: #e09b00;
  transform: rotate(8deg);
}

.focus-ip-action.ip-scene-follow .tarsius-cue {
  color: var(--brand-pink-strong);
}

.focus-ip-action.ip-scene-train .tarsius-img,
.focus-ip-action.ip-scene-risk .tarsius-img {
  transform: rotate(4deg) translateY(-1px);
}

.focus-ip-action.ip-scene-confirm .tarsius-img,
.focus-ip-action.ip-scene-report .tarsius-img,
.focus-ip-action.ip-scene-opportunity .tarsius-img {
  transform: rotate(-5deg) translateY(-2px);
}

.answer .conclusion {
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.5;
  color: var(--text);
}

.suggest-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 110, 230, 0.06);
  border: 1px solid rgba(0, 110, 230, 0.12);
}

.suggest-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--action);
  padding-top: 2px;
}

.answer .suggest {
  margin: 0;
  color: var(--text-2);
  line-height: 1.65;
  font-size: 13.5px;
}

.answer p {
  color: var(--text-2);
  line-height: 1.65;
}

.exec-line {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
}

.reason-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  position: relative;
  padding: 5px 0 5px 14px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}

.reason-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--action);
  opacity: 0.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.sources {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}

.sources-label {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.sources-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  padding: 6px 10px 6px 7px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 12px;
  text-decoration: none;
}

.source-ico {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--action);
  background: var(--action-soft);
  flex-shrink: 0;
}

.source-chip:hover {
  color: var(--text);
  border-color: rgba(0, 110, 230, 0.3);
  background: #f7fcfb;
}

.actions .act:not(:first-child) {
  background: var(--white);
  color: var(--text-2);
  border: 1px solid var(--line);
}

.actions .act.link,
.actions .act.link:not(:first-child) {
  border: 0;
  background: transparent;
  padding-left: 2px;
  padding-right: 2px;
  color: var(--text-2);
}

.actions .act:not(:first-child):hover {
  border-color: rgba(0, 110, 230, 0.35);
  background: var(--action-soft);
  color: var(--text);
}

.actions .act.link:hover {
  border-color: transparent;
  background: transparent;
  color: var(--action);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.note {
  font-size: 12px;
  color: var(--text-3);
}

.composer-note {
  width: min(680px, 100%);
  margin: 10px auto 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-3);
  text-align: left;
  padding: 0 2px;
}

.app.has-canvas .composer-note {
  width: auto;
  max-width: 560px;
  margin-left: 0;
}

.exec {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.exec-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--action);
}

.app.is-thinking .exec-hd .buddy-sm {
  animation: buddy-breathe 1.6s ease-in-out infinite;
}

@keyframes buddy-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 110, 230, 0.2);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 6px rgba(0, 110, 230, 0);
  }
}

.exec-step {
  font-size: 13.5px;
  color: var(--text-4);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.exec-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--text-4);
}

.exec-step.is-done {
  color: var(--text-3);
}

.exec-step.is-done::before {
  background: var(--action);
  border-color: var(--action);
}

.exec-step.is-now {
  color: var(--text);
  font-weight: 500;
}

.exec-step.is-now::before {
  border-color: var(--action);
  background: var(--action-soft);
  box-shadow: 0 0 0 3px rgba(0, 110, 230, 0.15);
}

.entity-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  cursor: pointer;
}

.entity-link:hover {
  text-decoration-color: var(--action);
}

.exec.is-settled {
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 0;
}

.exec.is-settled h3 {
  display: none;
}

.brief-item.is-fresh,
.person-lead.is-fresh {
  animation: fresh-in 1.4s ease;
}

@keyframes fresh-in {
  from {
    background: var(--action-soft);
    box-shadow: 0 0 0 1px rgba(18, 179, 163, 0.2), var(--shadow);
  }
  to {
    background: var(--white);
    box-shadow: var(--shadow-sm);
  }
}

.coming {
  margin-top: 28px;
}

.coming .kicker {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-3);
  margin-bottom: 10px;
  padding-left: 4px;
}

.coming .brief-list {
  margin-top: 0;
}

.coming .brief-item {
  grid-template-columns: auto minmax(0, 1fr) auto;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  border: 1px solid var(--line-2);
}

.coming .brief-num {
  letter-spacing: 0;
  font-size: 11px;
  line-height: 1.4;
  padding-top: 3px;
}

.brief-list.settled {
  margin-top: 20px;
  opacity: 1;
}

.brief-item.is-done {
  opacity: 1;
  background: transparent;
  box-shadow: none;
  border-color: transparent;
  border-top: 1px solid var(--line-2);
  border-radius: 0;
  padding-left: 4px;
  padding-right: 4px;
}

.brief-item.is-done:hover {
  box-shadow: none;
  background: transparent;
}

.brief-item.is-done .brief-mark {
  background: var(--text-4);
  opacity: 0.5;
}

.ctx-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.ctx-strip-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ctx-strip strong {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--text);
}

.ctx-strip span {
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}

.done-mark {
  font-size: 13px;
  color: var(--text-3);
  padding-top: 4px;
  white-space: nowrap;
}

.result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
  background: var(--surface);
}

.result-row .chip {
  height: auto;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--white);
}

.result-row .chip:hover {
  color: var(--text);
  border-color: rgba(0, 110, 230, 0.35);
  background: var(--action-soft);
}

.dock {
  position: sticky;
  bottom: 0;
  padding: 10px 28px 24px;
  background:
    linear-gradient(180deg, rgba(243, 245, 247, 0) 0%, rgba(243, 245, 247, 0.92) 28%, var(--surface) 55%);
  z-index: 3;
}

.app.has-canvas .dock {
  padding-left: 28px;
  padding-right: 28px;
}

.composer {
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 0;
  background: var(--white);
  border: 1px solid rgba(28, 31, 36, 0.08);
  border-radius: var(--radius-island);
  box-shadow: var(--shadow-island);
}

.app.is-thinking .composer {
  border-color: rgba(18, 179, 163, 0.32);
  box-shadow: 0 0 0 3px rgba(0, 110, 230, 0.1), var(--shadow-island);
}

.app.has-canvas .composer {
  width: auto;
  max-width: 560px;
  margin: 0;
}

.composer textarea {
  display: block;
  width: 100%;
  border: 0;
  resize: none;
  min-height: 44px;
  max-height: 160px;
  padding: 12px 14px 2px;
  outline: none;
  background: var(--white);
  border-radius: var(--radius-island-in) var(--radius-island-in) 0 0;
  line-height: 1.55;
  font-size: 15px;
}

.composer-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-radius: 0 0 var(--radius-island-in) var(--radius-island-in);
}

.tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--text-3);
  display: grid;
  place-items: center;
}

.tool-btn:hover {
  color: var(--action);
  background: var(--action-soft);
}

.composer-bar .act {
  width: 34px;
  height: 34px;
  padding: 0;
  margin-left: auto;
  border-radius: 12px;
}

.chips {
  width: min(680px, 100%);
  margin: 10px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.app.has-canvas .chips {
  width: auto;
  max-width: 560px;
  margin-left: 0;
}

.chip {
  height: auto;
  padding: 6px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
  background: var(--white);
}

.chips .chip:first-child {
  color: var(--text);
  font-weight: 500;
  border-color: rgba(0, 110, 230, 0.22);
  background: var(--action-soft);
}

.chip:hover {
  color: var(--text);
  border-color: rgba(0, 110, 230, 0.35);
}

.canvas-pane {
  display: none;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
  min-height: 0;
  min-width: 0;
  margin: 0;
  background: #ffffff;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.app.has-canvas .canvas-pane {
  display: flex;
}

.canvas-pane.canvas-in {
  animation: canvas-in 0.28s var(--ease);
}

@keyframes canvas-in {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.stage.stage-in {
  animation: stage-in 0.2s var(--ease);
}

@keyframes stage-in {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.canvas-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 14px 18px;
  border-bottom: 1px solid rgba(20, 24, 28, 0.06);
  background: #ffffff;
}

.canvas-hd-copy {
  min-width: 0;
  flex: 1;
}

.canvas-presence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.canvas-presence .canvas-kicker {
  margin-bottom: 0;
}

.canvas-kicker {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.canvas-hd h2 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--text);
  min-width: 0;
}

.canvas-hd .note,
.canvas-status {
  margin-left: 0;
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4f6f8;
  border: 1px solid rgba(20, 24, 28, 0.06);
}

.canvas-status.is-ok {
  color: var(--action);
  background: var(--action-soft);
  border-color: rgba(0, 110, 230, 0.22);
}

.canvas-body {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 22px 22px 18px;
  background: #ffffff;
}

.canvas-body::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 18px;
  bottom: 14px;
  border-radius: 12px;
  background: #fafbfc;
  border: 1px solid rgba(20, 24, 28, 0.045);
  pointer-events: none;
  z-index: 0;
}

.canvas-body textarea {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  resize: none;
  outline: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
  max-width: none;
}

.canvas-body textarea:focus {
  box-shadow: none;
}

.canvas-ft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid rgba(20, 24, 28, 0.06);
  background: #ffffff;
}

.canvas-foot-note {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 12px;
  color: var(--text-3);
  background: #f4f6f8;
}

.more-menu {
  position: relative;
}

.more-menu > summary {
  list-style: none;
  cursor: pointer;
}

.more-menu > summary::-webkit-details-marker {
  display: none;
}

.more-panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  min-width: 156px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 5;
}

.more-panel button {
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
}

.more-panel button:hover {
  background: var(--action-soft);
  color: var(--text);
}

.canvas-pane.is-pulse {
  outline: 1px solid rgba(0, 110, 230, 0.4);
  outline-offset: -1px;
}

.canvas-pane.is-confirmed {
  animation: confirm-glow 900ms var(--ease);
}

@keyframes confirm-glow {
  0% {
    box-shadow: inset 3px 0 0 0 rgba(0, 110, 230, 0.45);
  }
  45% {
    box-shadow: inset 3px 0 0 0 rgba(0, 110, 230, 0.18);
  }
  100% {
    box-shadow: none;
  }
}

.evidence {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 92vw);
  background-color: var(--paper);
  background-image: var(--grain);
  background-size: var(--grain-size);
  background-position: var(--grain-pos);
  border-left: 1px solid var(--line-2);
  box-shadow: -12px 0 32px rgba(20, 30, 40, 0.08);
  z-index: 12;
  padding: 20px 18px 24px;
  overflow: auto;
}

.app.has-evidence .evidence {
  display: block !important;
}

.evidence-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.evidence-hd-copy {
  min-width: 0;
}

.evidence h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 0;
  color: var(--text);
  letter-spacing: 0;
}

.ev-presence {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 110, 230, 0.07);
  border: 1px solid rgba(0, 110, 230, 0.12);
}

.ev-presence p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.ev-kicker {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-3);
  margin: 0 0 10px;
}

.ev-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ev-item {
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.ev-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
}

.ev-item summary::-webkit-details-marker {
  display: none;
}

.ev-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--action);
  background: var(--action-soft);
  border: 1px solid rgba(0, 110, 230, 0.12);
}

.ev-item[open] {
  background: var(--white);
  box-shadow: var(--shadow);
  border-color: rgba(0, 110, 230, 0.2);
}

.ev-item p {
  margin: 0;
  padding: 0 14px 14px 52px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.evidence .note {
  margin-top: 16px;
}

.client-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.next-block {
  margin: 0 0 14px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.next-block.is-warm {
  border-color: rgba(0, 110, 230, 0.22);
  background:
    var(--grain),
    linear-gradient(165deg, #f5fbf9 0%, #ffffff 55%);
  background-size: var(--grain-size), auto;
  background-position: var(--grain-pos), 0 0;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.next-block + .free-rights {
  margin-top: 0;
}

.next-block-hd {
  display: flex;
  align-items: center;
  gap: 8px;
}

.next-block .kicker {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

.next-block strong {
  display: block;
  margin: 8px 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.recv-panel {
  margin-bottom: 14px;
}

.recv-note {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.5;
}

.recv-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.recv-check li {
  display: grid;
  grid-template-columns: 18px 72px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7f8f8;
  color: var(--text-2);
  font-size: 13px;
}

.recv-check li.is-on {
  background: rgba(0, 110, 230, 0.08);
  color: var(--text);
}

.recv-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid #c5cdcb;
  background: #fff;
}

.recv-check li.is-on .recv-mark {
  border-color: #006ee6;
  background: #006ee6;
  box-shadow: inset 0 0 0 2px #fff;
}

.recv-k {
  font-weight: 600;
  color: var(--text);
}

.recv-v {
  color: var(--text-2);
}

.recv-ban {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #faf6f4;
  border: 1px solid rgba(180, 90, 60, 0.12);
}

.recv-ban-title {
  font-size: 12px;
  font-weight: 600;
  color: #a45a3a;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.recv-ban p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.45;
}

.person-av-wrap.lg {
  width: 64px;
  height: 64px;
}

.person-av-wrap.lg .kid-av,
.person-av-wrap.lg .avatar {
  width: 64px;
  height: 64px;
}

.client-name .tag {
  margin-left: 8px;
  vertical-align: middle;
  font-size: 11px;
}

/* 三大免费 · 可核验状态（列表条，不用三等分卡片） */
.free-rights {
  margin-top: 14px;
  margin-bottom: 14px;
  padding: 14px 16px 12px;
}

.free-rights-hd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.free-rights-hd .panel-title {
  margin-bottom: 4px;
}

.free-rights-hd p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-3);
}

.free-rights-sum {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--line-2);
  background: #f7f8fa;
  color: var(--text-2);
}

.free-rights-sum.tone-ok {
  border-color: rgba(0, 110, 230, 0.28);
  background: var(--action-soft);
  color: var(--action-hover);
}

.free-rights-sum.tone-warn {
  border-color: rgba(196, 140, 48, 0.28);
  background: #fbf6eb;
  color: #9a6a18;
}

.free-rights-sum.tone-gap {
  border-color: rgba(180, 90, 60, 0.24);
  background: #fbf3ef;
  color: #a45a3a;
}

.free-rights-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.free-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #fafbfc;
  overflow: hidden;
}

.free-rail {
  width: 3px;
  flex-shrink: 0;
  background: #c5cbd3;
}

.free-row.tone-ok .free-rail {
  background: var(--action);
}

.free-row.tone-warn .free-rail {
  background: #c48c30;
}

.free-row.tone-gap .free-rail {
  background: #c46a4a;
}

.free-row-copy {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.free-row-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.free-chip-k {
  font-size: 12.5px;
  letter-spacing: 0.01em;
  color: var(--text-2);
}

.free-chip-s {
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--text);
  flex-shrink: 0;
}

.free-row.tone-ok .free-chip-s {
  color: #0b7f74;
}

.free-row.tone-warn .free-chip-s {
  color: #9a6a18;
}

.free-row.tone-gap .free-chip-s {
  color: #a45a3a;
}

.free-chip-n {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-3);
}

/* 督导 · 门店未闭环 */
.loop-panel {
  margin: 0 0 16px;
  padding: 16px 16px 12px;
  border-color: rgba(0, 110, 230, 0.2);
  background: var(--white);
  box-shadow: var(--shadow-sm), inset 3px 0 0 var(--action);
}

.loop-lead {
  margin: -6px 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
}

.loop-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #fafbfc;
}

.loop-item strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--text);
}

.loop-item p {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-2);
}

.loop-item .done-mark,
.loop-item .act.link {
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .free-rights-hd {
    flex-direction: column;
    align-items: stretch;
  }

  .free-rights-sum {
    align-self: flex-start;
  }

  .loop-item {
    flex-direction: column;
    align-items: flex-start;
  }
}

.client-head.panel,
.panel {
  padding: 18px 18px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.client-head-copy {
  min-width: 0;
}

.client-name {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--text);
  line-height: 1.2;
}

.client-fact {
  margin-top: 6px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-2);
}

.client-meta {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-3);
}

.panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin: 0 0 12px;
  letter-spacing: 0.01em;
}

.timeline-panel {
  margin-top: 14px;
}

.tl-lite {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tl-row {
  display: grid;
  grid-template-columns: 4.5rem 28px minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  min-height: 48px;
  padding: 0;
  border-top: 1px solid var(--line-2);
}

.tl-row:first-child {
  border-top: 0;
}

.tl-lite .when,
.tl-text {
  display: flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  line-height: 1.35;
}

.tl-lite .when {
  color: var(--text-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.tl-text {
  min-width: 0;
  font-size: 14px;
  color: var(--text-2);
}

.tl-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--action);
  background: var(--action-soft);
  border: 1px solid rgba(0, 110, 230, 0.12);
  align-self: center;
}

.me-duty {
  margin-bottom: 20px;
  padding: 20px 18px 16px;
  border: 1px solid rgba(0, 110, 230, 0.18);
  border-radius: var(--radius-card);
  background:
    var(--grain),
    linear-gradient(165deg, #f4fbf9 0%, #ffffff 52%);
  background-size: var(--grain-size), auto;
  background-position: var(--grain-pos), 0 0;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.me-duty-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.me-duty-av {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
  background: #eef2f4;
  border: 0;
  box-shadow: none;
}

.me-duty-copy {
  min-width: 0;
}

.me-duty-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.me-duty .hello {
  margin: 0;
  font-size: 26px;
}

.me-duty .lead {
  margin-top: 6px;
}

.me-duty-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

.me-section-kicker {
  margin: 8px 0 10px;
}

/* —— 账号中心 —— */
.acct-hero {
  position: relative;
  margin-bottom: 18px;
  padding: 22px 20px 18px;
  border: 1px solid rgba(0, 110, 230, 0.16);
  border-radius: var(--radius-card);
  background:
    var(--grain),
    radial-gradient(120% 90% at 100% 0%, rgba(0, 110, 230, 0.1) 0%, transparent 48%),
    linear-gradient(165deg, #f3faf8 0%, #ffffff 55%);
  background-size: var(--grain-size), auto, auto;
  background-position: var(--grain-pos), 0 0, 0 0;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.acct-hero-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.acct-av-wrap {
  position: relative;
  flex-shrink: 0;
}

.acct-av {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  object-fit: cover;
  object-position: center 22%;
  background: #eef2f4;
  border: 0;
  box-shadow: none;
}

.acct-av-live {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1aae6f;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(26, 174, 111, 0.25);
}

.acct-hero-copy {
  min-width: 0;
}

.acct-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.acct-hero .hello {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.acct-hero .lead {
  margin-top: 6px;
}

.acct-hero-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

.acct-panel {
  margin-bottom: 14px;
  padding: 16px 16px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.acct-panel-head {
  margin-bottom: 12px;
}

.acct-panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}

.acct-panel-head p {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-3);
}

.acct-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 0 0 14px;
}

.acct-facts > div {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7faf9;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.acct-facts dt {
  margin: 0 0 4px;
  font-size: 11.5px;
  color: var(--text-3);
}

.acct-facts dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.acct-edit-btn {
  width: 100%;
}

.acct-edit {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acct-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-3);
}

.acct-field input {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: #fff;
  font-size: 14px;
  color: var(--text);
  outline: none;
}

.acct-field input:focus {
  border-color: rgba(0, 110, 230, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 110, 230, 0.12);
}

.acct-edit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.acct-settings {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acct-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f8faf9;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.acct-row:hover {
  border-color: rgba(0, 110, 230, 0.22);
  background: #fff;
}

.acct-row-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--action);
  background: var(--action-soft);
  border: 1px solid rgba(0, 110, 230, 0.12);
}

.acct-row-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acct-row-copy strong {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}

.acct-row-copy span {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}

.acct-row-danger .acct-row-ico {
  color: #c45c5c;
  background: #fdf2f2;
  border-color: rgba(196, 92, 92, 0.14);
}

.acct-row-danger:hover {
  border-color: rgba(196, 92, 92, 0.28);
}

.acct-switch {
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: #d5ddd9;
  position: relative;
  flex-shrink: 0;
  transition: background 0.18s ease;
}

.acct-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease;
}

.acct-switch.is-on {
  background: var(--action);
}

.acct-switch.is-on i {
  transform: translateX(16px);
}

.acct-demo {
  margin: 18px 0 8px;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.65);
  padding: 0 14px;
}

.acct-demo > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.acct-demo > summary::-webkit-details-marker {
  display: none;
}

.acct-demo > summary span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
}

.acct-demo[open] > summary {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  margin-bottom: 12px;
  color: var(--text);
}

.role-grid-compact {
  margin: 0 0 14px;
}

.me-card {
  padding: 18px 18px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.me-card .hello {
  font-size: 26px;
}

.me-card .lead {
  margin-top: 6px;
}

.voice-hint {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0 24px;
}

.role-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.role-pick:hover {
  border-color: rgba(0, 110, 230, 0.28);
  box-shadow: var(--shadow);
}

.role-pick.is-on {
  border-color: rgba(0, 110, 230, 0.4);
  background: var(--action-soft);
  box-shadow: none;
}

.quiet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiet-list button,
.quiet-list a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--text-2);
  font-size: 13.5px;
  box-shadow: var(--shadow-sm);
}

.quiet-list button:hover {
  color: var(--text);
  border-color: rgba(0, 110, 230, 0.28);
  box-shadow: var(--shadow);
}

.quiet-list button:hover .brief-go {
  color: var(--action);
}

.quiet-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--action);
  background: var(--action-soft);
  border: 1px solid rgba(0, 110, 230, 0.12);
}

.quiet-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quiet-copy strong {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}

.quiet-copy span {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.45;
}

.icon-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--text-3);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.icon-close:hover {
  color: var(--text);
  background: var(--white);
}

.role-pick-av {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  object-position: center 18%;
  flex-shrink: 0;
  background: #eef2f4;
  border: 0;
  box-shadow: none;
}

.role-pick-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.role-pick strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}

.role-pick-copy > span {
  display: block;
  font-size: 12px;
  color: var(--text-3);
}

.overview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

.overview-chapter {
  margin: 14px 0 4px;
  padding: 0 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

.overview-chapter:first-child {
  margin-top: 4px;
}

.overview-list button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  padding: 16px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.overview-list button:hover {
  border-color: rgba(0, 110, 230, 0.28);
  box-shadow: var(--shadow);
}

.overview-list button:hover .brief-go {
  color: var(--action);
}

.overview-list button:last-child {
  border-bottom: 1px solid var(--line-2);
}

.overview-list h2 {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: 0;
  color: var(--text);
}

.overview-list p {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.overview-list .num {
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  padding-top: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(10px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  background: #1a2229;
  color: #fff;
  padding: 12px 16px 12px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  box-shadow: 0 12px 32px rgba(20, 30, 40, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.toast-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #ffd23f;
  box-shadow: 0 0 0 4px rgba(255, 210, 63, 0.18);
}

.toast-tarsius {
  width: 28px;
  height: 28px;
  border-radius: 0;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.toast-text {
  min-width: 0;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.bottom-nav {
  display: none;
}

/* Premium visual pass: AI-grade restraint + optical retail polish */
:root {
  --surface: #f6f9fe;
  --paper: #ffffff;
  --white: #ffffff;
  --line: rgba(21, 45, 84, 0.1);
  --line-2: rgba(21, 45, 84, 0.07);
  --text: #101823;
  --text-2: #435267;
  --text-3: #748198;
  --radius-card: 8px;
  --shadow-sm: 0 1px 2px rgba(12, 28, 52, 0.04), 0 8px 20px rgba(17, 52, 97, 0.055);
  --shadow: 0 18px 44px rgba(17, 52, 97, 0.1);
  --shadow-md: 0 20px 60px rgba(10, 40, 90, 0.16);
  --shadow-island: 0 2px 4px rgba(12, 28, 52, 0.05), 0 18px 48px rgba(17, 52, 97, 0.12);
}

.col-main {
  background-color: var(--surface);
  background-image:
    linear-gradient(90deg, rgba(0, 110, 230, 0.026) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 110, 230, 0.022) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(245, 249, 255, 0.78) 48%, rgba(239, 246, 255, 0.9) 100%),
    var(--grain);
  background-size: 32px 32px, 32px 32px, auto, var(--grain-size);
  background-position: -1px -1px, -1px -1px, 0 0, var(--grain-pos);
}

.stage {
  width: min(760px, 100%);
  padding-top: 46px;
}

.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-right: 1px solid rgba(0, 72, 160, 0.08);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.82);
}

.brand-lockup {
  min-height: 54px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid rgba(0, 72, 160, 0.07);
}

.brand-logo-full {
  width: 76px;
  filter: saturate(1.06) contrast(1.02);
}

.brand-text strong {
  color: #10243d;
}

.brand-text em {
  color: #667791;
  font-weight: 520;
}

.brand-ai {
  min-width: 18px;
  height: 15px;
  border-radius: 5px;
  background: linear-gradient(180deg, #0078ff 0%, #0059c8 100%);
  box-shadow: 0 4px 12px rgba(0, 110, 230, 0.18);
}

.side-nav {
  gap: 6px;
}

.side-nav-item {
  height: 44px;
  border-radius: 12px;
  padding-left: 15px;
  color: #66768d;
}

.side-nav-item:hover {
  background: rgba(0, 110, 230, 0.06);
  color: #18304e;
}

.side-nav-item.is-on {
  color: var(--brand-blue-deep);
  background:
    linear-gradient(90deg, rgba(0, 110, 230, 0.13), rgba(255, 210, 63, 0.16)),
    #ffffff;
  box-shadow: inset 0 0 0 1px rgba(0, 110, 230, 0.1);
}

.side-nav-item.is-on::before {
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--brand-yellow);
  box-shadow: 0 0 0 1px rgba(255, 210, 63, 0.18);
}

.side-user {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(21, 45, 84, 0.1);
  box-shadow: 0 10px 30px rgba(17, 52, 97, 0.06);
}

.side-user-av,
.side-role-av,
.role-chip-av,
.role-pick-av {
  border: 1px solid rgba(0, 110, 230, 0.12);
  box-shadow: 0 4px 12px rgba(17, 52, 97, 0.08);
}

.side-role-menu {
  border-color: rgba(21, 45, 84, 0.1);
  box-shadow: var(--shadow-md);
}

.side-role-item:hover {
  background: rgba(0, 110, 230, 0.06);
}

.hello-band {
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 4px 0 10px;
}

.hello-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 10%;
  bottom: -3px;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 110, 230, 0.22), rgba(255, 210, 63, 0.28), transparent 80%);
  opacity: 0.7;
}

.hello-band .hello {
  font-size: 34px;
  font-weight: 720;
  line-height: 1.14;
  letter-spacing: 0;
}

.hello-text::after {
  right: 20%;
  bottom: 0.02em;
  height: 0.18em;
  background: linear-gradient(90deg, rgba(0, 110, 230, 0.2), rgba(255, 210, 63, 0.18) 62%, transparent);
}

.hello-band .lead,
.lead {
  color: #465a75;
}

.hello-ip {
  width: 150px;
  height: 136px;
  margin-right: 2px;
}

.hello-ip-glow {
  bottom: 12px;
  width: 126px;
  height: 92px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 210, 63, 0.2), rgba(255, 255, 255, 0) 54%),
    linear-gradient(180deg, rgba(0, 110, 230, 0.15), rgba(0, 110, 230, 0.02));
}

.hello-tarsius {
  width: 132px;
  height: 132px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.focus-board,
.ai-starters,
.brief-list {
  gap: 12px;
}

.focus-lead-card,
.focus-rest,
.ai-starter,
.brief-item,
.ctx-strip,
.overview-list button {
  border-color: rgba(21, 45, 84, 0.1);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.focus-lead-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.055) 0%, rgba(255, 255, 255, 0.92) 48%, rgba(255, 210, 63, 0.08) 100%),
    #ffffff;
}

.focus-lead-card::before,
.focus-rest::before,
.composer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 110, 230, 0.24), rgba(255, 210, 63, 0.32), transparent);
  pointer-events: none;
}

.focus-rest,
.composer {
  position: relative;
}

.focus-quiet {
  min-height: 76px;
  padding: 14px 18px;
  border-bottom-color: rgba(21, 45, 84, 0.07);
}

.focus-kicker,
.meta-line,
.canvas-kicker,
.overview-chapter {
  letter-spacing: 0;
  text-transform: none;
}

.focus-lead-card h2,
.focus-quiet h2,
.brief-item h2,
.ai-starter-copy strong,
.answer .conclusion {
  letter-spacing: 0;
}

.focus-lead-card p,
.focus-quiet p,
.brief-item p,
.ai-starter-copy span {
  color: #465a75;
}

.act {
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, #0078ff 0%, #0063d1 100%);
  box-shadow: 0 10px 20px rgba(0, 110, 230, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.act:hover {
  background: linear-gradient(180deg, #117fff 0%, #0058be 100%);
}

.act.ghost,
.btn-ghost {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(21, 45, 84, 0.12);
  box-shadow: none;
}

.act.link,
.act.ghost.link {
  color: #1e3149;
}

.focus-biz-icon {
  box-shadow: 0 10px 18px rgba(0, 72, 160, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.dock {
  padding-bottom: 26px;
  background:
    linear-gradient(180deg, rgba(246, 249, 254, 0) 0%, rgba(246, 249, 254, 0.9) 34%, #f6f9fe 72%);
}

.composer {
  width: min(720px, 100%);
  border-color: rgba(21, 45, 84, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.composer textarea {
  min-height: 48px;
  padding: 14px 16px 4px;
  background: transparent;
}

.composer-bar {
  padding: 4px 10px 10px;
  background: transparent;
}

.composer-bar .act {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.tool-btn:hover {
  background: rgba(0, 110, 230, 0.08);
}

.chips {
  width: min(720px, 100%);
  gap: 8px;
}

.chip {
  border-color: rgba(21, 45, 84, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.chips .chip:first-child {
  background: linear-gradient(90deg, rgba(0, 110, 230, 0.1), rgba(255, 210, 63, 0.12));
  border-color: rgba(0, 110, 230, 0.16);
}

.answer,
.exec,
.suggest-box {
  border-color: rgba(21, 45, 84, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .app.is-thinking .exec-hd .buddy-sm,
  .bubble-user.is-enter,
  .answer.is-enter,
  .composer-bar .act.is-pop,
  .canvas-pane.is-confirmed,
  .hello-tarsius,
  .hello-ip-glow,
  .hello-ip-shadow,
  .hello-ip-spark {
    animation: none;
  }
}

@media (max-width: 960px) {
  .app.has-canvas .workspace {
    grid-template-columns: 1fr;
  }
  .canvas-pane {
    position: fixed;
    inset: 0 0 0 0;
    z-index: 8;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .app.has-canvas .canvas-pane {
    display: flex;
  }
  .side-buddy {
    display: none;
  }
}

@media (max-height: 700px) {
  .side-spacer {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .app {
    margin: 0;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    background: rgba(243, 244, 246, 0.85);
  }
}

@media (max-width: 720px) {
  .col-main {
    overflow: hidden;
    padding-bottom: 0;
  }
  .stage {
    position: fixed;
    inset: 0 0 176px 0;
    width: 100%;
    flex: 0 0 auto;
    overflow: auto;
    padding: 28px 18px 24px;
  }
  .hello {
    font-size: 24px;
  }
  .hello-band .hello {
    font-size: 26px;
  }
  .hello-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px 12px;
    min-height: 92px;
    padding-right: 82px;
  }
  .hello-ip {
    display: flex;
    position: absolute;
    top: -2px;
    right: 0;
    width: 64px;
    height: 64px;
    margin: 0;
    align-items: flex-end;
    justify-content: center;
    z-index: 2;
  }
  .hello-ip-glow {
    display: block;
    bottom: 3px;
    width: 54px;
    height: 42px;
    border-radius: 16px;
    opacity: 0.9;
  }
  .hello-ip-spark,
  .hello-ip-shadow {
    display: none;
  }
  .hello-tarsius {
    width: 60px;
    height: 60px;
    border-radius: 17px;
    padding: 4px;
    animation: none;
  }
  .ai-start-top {
    grid-template-columns: minmax(0, 1fr) 72px;
    gap: 12px;
    align-items: start;
  }
  .ai-buddy {
    width: 72px;
    height: 72px;
    border-radius: 20px;
  }
  .ai-starter {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }
  .ai-starter-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .ai-starter-go {
    display: none;
  }
  .brief-item {
    grid-template-columns: 10px 1fr;
  }
  .focus-lead-card {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .focus-lead-acts {
    justify-content: flex-start;
  }
  .focus-quiet {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .focus-quiet .act.link {
    grid-column: 2 / -1;
    justify-self: start;
    margin-top: 2px;
  }
  .brief-person {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .brief-person .brief-go {
    display: none;
  }
  .brief-item .act {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }
  .brief-person .act {
    grid-column: 2;
  }
  .dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 62px;
    z-index: 8;
    padding: 8px 16px 10px;
    background:
      linear-gradient(180deg, rgba(246, 249, 254, 0) 0%, rgba(246, 249, 254, 0.92) 22%, #f6f9fe 100%);
  }
  .composer,
  .chips {
    width: 100%;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 62px;
    padding: 6px 8px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    z-index: 9;
  }
  .bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 11px;
    color: var(--text-3);
  }
  .bottom-nav button .bn-ico {
    display: inline-flex;
    color: inherit;
  }
  .bottom-nav button.is-on {
    color: var(--action);
    font-weight: 600;
  }
  .role-grid {
    grid-template-columns: 1fr;
  }
  .acct-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .exec-step.is-now::before,
  .brief-item.is-fresh,
  .person-lead.is-fresh,
  .canvas-pane.canvas-in,
  .stage.stage-in {
    animation: none;
  }
  html::after {
    opacity: 0.015;
  }
}

/* ai170: component touch and focus polish */
:root {
  --slm-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

.new-chat-btn,
.side-search-box,
.side-nav-item,
.side-history-item,
.side-account,
.app.view-today .decision-actions .act,
.app.view-today .decision-text-switch,
.composer-send,
.task-detail-actions .act,
.member-dossier-actions .act,
.client-open,
.task-back {
  transition:
    background-color 160ms var(--slm-ease-out),
    border-color 160ms var(--slm-ease-out),
    color 160ms var(--slm-ease-out),
    box-shadow 160ms var(--slm-ease-out),
    transform 120ms var(--slm-ease-out) !important;
}

.new-chat-btn:active,
.side-nav-item:active,
.side-history-item:active,
.side-account:active,
.app.view-today .decision-actions .act:active,
.composer-send:active,
.task-detail-actions .act:active,
.member-dossier-actions .act:active,
.client-open:active {
  transform: scale(0.985) !important;
}

.app.view-today .decision-actions .act,
.task-detail-actions .act.is-primary,
.member-dossier-actions .act.is-primary,
.client-open.is-primary {
  border: 1px solid rgba(255, 255, 255, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #1686f2 0%, #0671dc 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 1px rgba(6, 113, 220, 0.12) !important;
}

.app.view-today .decision-actions .act:hover,
.task-detail-actions .act.is-primary:hover,
.member-dossier-actions .act.is-primary:hover,
.client-open.is-primary:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 44%),
    linear-gradient(180deg, #0f7fe9 0%, #056bd0 100%) !important;
}

.composer {
  transition:
    border-color 180ms var(--slm-ease-out),
    box-shadow 180ms var(--slm-ease-out),
    background-color 180ms var(--slm-ease-out) !important;
}

.composer:focus-within {
  border-color: rgba(8, 117, 225, 0.24) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    0 0 0 3px rgba(8, 117, 225, 0.07),
    0 1px 2px rgba(15, 23, 42, 0.03) !important;
}

.composer-send {
  border: 1px solid rgba(143, 160, 183, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(241, 246, 251, 0.9)) !important;
  color: #7890aa !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
}

.composer:not(.is-empty) .composer-send,
.composer:focus-within .composer-send {
  color: #0875e1 !important;
  border-color: rgba(8, 117, 225, 0.22) !important;
  background:
    linear-gradient(180deg, #ffffff 0%, #eef7ff 100%) !important;
}

.app.view-today .decision-panel {
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.026),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.member-dossier-card,
.task-detail-shell {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.022) !important;
}

/* ai171: group knowledge base management */
.app.view-knowledge .workspace,
.app.view-knowledge .col-main {
  background:
    radial-gradient(circle at 82% 8%, rgba(8, 117, 225, 0.045), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
}

.app.view-knowledge .stage {
  width: min(1120px, calc(100% - 96px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 54px 0 76px !important;
}

.knowledge-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #07111f;
}

.knowledge-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.knowledge-head h1 {
  margin: 0 0 8px;
  color: #07111f;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 680;
  letter-spacing: 0;
}

.knowledge-head p {
  max-width: 660px;
  margin: 0;
  color: #52637a;
  font-size: 13px;
  line-height: 1.7;
}

.knowledge-head-actions,
.kb-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.knowledge-head-actions .act,
.kb-detail-actions .act {
  min-width: 84px;
  height: 32px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(8, 117, 225, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: #075fba;
  font-size: 12px;
  font-weight: 660;
  transition:
    transform 120ms var(--slm-ease-out),
    border-color 160ms var(--slm-ease-out),
    background-color 160ms var(--slm-ease-out);
}

.knowledge-head-actions .act.is-primary,
.kb-detail-actions .act.is-primary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #1686f2 0%, #0671dc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.knowledge-head-actions .act:active,
.kb-detail-actions .act:active,
.kb-command-ask:active,
.kb-tabs button:active,
.kb-doc-card:active {
  transform: scale(0.985);
}

.kb-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}

.kb-search {
  min-height: 42px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(117, 137, 163, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  color: #74859c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
  transition:
    border-color 160ms var(--slm-ease-out),
    box-shadow 160ms var(--slm-ease-out),
    background-color 160ms var(--slm-ease-out);
}

.kb-search:focus-within {
  border-color: rgba(8, 117, 225, 0.25);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 3px rgba(8, 117, 225, 0.065);
}

.kb-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0b1728;
  font-size: 13px;
  line-height: 42px;
}

.kb-search input::placeholder {
  color: #8b98aa;
}

.kb-command-ask {
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid rgba(8, 117, 225, 0.18);
  border-radius: 13px;
  background: #ffffff;
  color: #075fba;
  font-size: 12.5px;
  font-weight: 670;
  white-space: nowrap;
  transition:
    transform 120ms var(--slm-ease-out),
    border-color 160ms var(--slm-ease-out),
    background-color 160ms var(--slm-ease-out);
}

.kb-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.kb-tabs::-webkit-scrollbar {
  display: none;
}

.kb-tabs button {
  height: 28px;
  padding: 0 11px;
  border: 1px solid rgba(117, 137, 163, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #52637a;
  font-size: 11.5px;
  font-weight: 630;
  white-space: nowrap;
  transition:
    transform 120ms var(--slm-ease-out),
    border-color 160ms var(--slm-ease-out),
    background-color 160ms var(--slm-ease-out),
    color 160ms var(--slm-ease-out);
}

.kb-tabs button.is-on {
  border-color: rgba(8, 117, 225, 0.26);
  background: rgba(8, 117, 225, 0.08);
  color: #075fba;
}

.kb-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(420px, 1.08fr);
  gap: 14px;
  align-items: start;
}

.kb-list,
.kb-detail,
.kb-governance article {
  border: 1px solid rgba(117, 137, 163, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.022);
}

.kb-list {
  padding: 10px;
}

.kb-list-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 4px 10px;
  color: #7a889c;
  font-size: 11.5px;
}

.kb-list-head strong {
  color: #102033;
  font-size: 12.5px;
  font-weight: 690;
}

.kb-doc-list {
  display: grid;
  gap: 8px;
}

.kb-doc-card {
  width: 100%;
  min-height: 116px;
  display: grid;
  gap: 7px;
  padding: 13px 14px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 13px;
  background: rgba(247, 250, 253, 0.68);
  color: inherit;
  transition:
    transform 120ms var(--slm-ease-out),
    border-color 160ms var(--slm-ease-out),
    background-color 160ms var(--slm-ease-out);
}

.kb-doc-card.is-on {
  border-color: rgba(8, 117, 225, 0.28);
  background: linear-gradient(180deg, rgba(239, 247, 255, 0.9), rgba(255, 255, 255, 0.92));
}

.kb-doc-top,
.kb-doc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kb-doc-top em,
.kb-doc-foot,
.kb-detail-head,
.kb-usage {
  color: #75859a;
  font-size: 11px;
  font-style: normal;
}

.kb-doc-card > strong {
  color: #07111f;
  font-size: 14.5px;
  line-height: 1.35;
  font-weight: 690;
}

.kb-doc-card p {
  margin: 0;
  color: #506076;
  font-size: 12.2px;
  line-height: 1.55;
}

.kb-status {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 680;
}

.kb-status.tone-ok {
  color: #057a73;
  background: rgba(0, 169, 157, 0.09);
}

.kb-status.tone-warn {
  color: #a26105;
  background: rgba(245, 158, 11, 0.12);
}

.kb-status.tone-draft {
  color: #64748b;
  background: rgba(100, 116, 139, 0.1);
}

.kb-detail {
  padding: 18px;
}

.kb-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.kb-detail h2 {
  margin: 0;
  color: #07111f;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 690;
}

.kb-detail > p {
  margin: 8px 0 16px;
  color: #52637a;
  font-size: 13px;
  line-height: 1.7;
}

.kb-detail-actions {
  margin-bottom: 16px;
}

.kb-block {
  padding: 13px 0;
  border-top: 1px solid rgba(117, 137, 163, 0.14);
}

.kb-block > span {
  display: block;
  margin-bottom: 7px;
  color: #075fba;
  font-size: 11px;
  font-weight: 700;
}

.kb-block p {
  margin: 0;
  color: #21324a;
  font-size: 12.5px;
  line-height: 1.72;
}

.kb-chipline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kb-chipline b {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(8, 117, 225, 0.13);
  border-radius: 999px;
  background: rgba(8, 117, 225, 0.055);
  color: #075fba;
  font-size: 11px;
  font-weight: 650;
}

.kb-block ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kb-block li {
  position: relative;
  padding-left: 13px;
  color: #21324a;
  font-size: 12.2px;
  line-height: 1.55;
}

.kb-block li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #0875e1;
}

.kb-usage {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(117, 137, 163, 0.14);
}

.kb-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: #7a889c;
  font-size: 12.5px;
}

.kb-governance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kb-governance article {
  min-height: 118px;
  padding: 14px;
}

.kb-governance span {
  color: #075fba;
  font-size: 11px;
  font-weight: 700;
}

.kb-governance strong {
  display: block;
  margin: 8px 0 7px;
  color: #07111f;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 690;
}

.kb-governance p {
  margin: 0;
  color: #52637a;
  font-size: 12px;
  line-height: 1.65;
}

@media (hover: hover) and (pointer: fine) {
  .kb-command-ask:hover,
  .knowledge-head-actions .act:hover,
  .kb-detail-actions .act:hover,
  .kb-tabs button:hover,
  .kb-doc-card:hover {
    border-color: rgba(8, 117, 225, 0.24);
    background-color: rgba(255, 255, 255, 0.96);
  }
}

@media (max-width: 980px) {
  .app.view-knowledge .stage {
    width: calc(100vw - var(--sidebar-w) - 48px) !important;
  }

  .kb-layout {
    grid-template-columns: 1fr;
  }

  .kb-governance {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app.view-knowledge .stage {
    width: calc(100vw - 28px) !important;
    padding: 28px 0 104px !important;
  }

  .knowledge-head {
    display: grid;
    gap: 14px;
  }

  .knowledge-head h1 {
    font-size: 26px;
  }

  .knowledge-head-actions {
    width: 100%;
  }

  .knowledge-head-actions .act {
    flex: 1;
  }

  .kb-command {
    grid-template-columns: 1fr;
  }

  .kb-command-ask {
    width: 100%;
  }

  .kb-list,
  .kb-detail {
    border-radius: 14px;
  }

  .kb-doc-card {
    min-height: 110px;
  }

  .kb-detail {
    padding: 15px;
  }

  .kb-detail h2 {
    font-size: 19px;
  }

  .kb-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    height: 62px !important;
    overflow: hidden !important;
  }

  .bottom-nav button {
    min-width: 0 !important;
    gap: 2px !important;
    white-space: nowrap !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
  }

  .bottom-nav button .bn-ico {
    height: 18px !important;
  }
}

@media (max-width: 720px) {
  .hello-band .hello-ip {
    display: flex !important;
    position: fixed !important;
    top: 16px !important;
    right: auto !important;
    left: min(calc(100vw - 88px), 300px) !important;
    width: 78px !important;
    height: 70px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    pointer-events: none !important;
    z-index: 100 !important;
  }

  .hello-band .hello-tarsius {
    display: block !important;
    width: 72px !important;
    height: 72px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
  }

  .hello-band .hello-ip-cue {
    right: -1px;
    bottom: 21px;
  }

  .hello-band .hello-ip-glow,
  .hello-band .hello-ip-spark,
  .hello-band .hello-ip-shadow {
    display: none !important;
  }
}

/* Elevated AI product pass: quieter navigation, no IP mascot, refined recommendations */
:root {
  --sidebar-w: 216px;
}

.col-main {
  background-color: #f8fafd;
  background-image:
    radial-gradient(ellipse 60% 44% at 50% 0%, rgba(0, 110, 230, 0.07), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #f6f9fd 48%, #f3f7fc 100%);
  background-size: auto;
  background-position: 0 0;
}

.stage {
  width: min(760px, calc(100% - 48px));
  padding-top: 62px;
}

.sidebar {
  padding: 22px 14px 16px;
  background: rgba(255, 255, 255, 0.96);
  border-right: 1px solid rgba(16, 34, 58, 0.08);
  box-shadow: none;
}

.brand-lockup {
  min-height: 48px;
  padding: 0 8px 18px;
  gap: 9px;
  border-bottom: 1px solid rgba(16, 34, 58, 0.07);
}

.brand-logo-shell {
  flex-basis: 66px;
  width: 66px;
  height: 30px;
}

.brand-logo-full {
  width: 64px;
  max-height: 28px;
}

.brand-text strong {
  font-size: 14.5px;
  font-weight: 720;
  letter-spacing: 0;
  color: #0d1724;
}

.brand-text em {
  margin-top: 1px;
  font-size: 10.5px;
  color: #7a8798;
}

.brand-ai {
  display: none;
}

.side-nav {
  gap: 4px;
  padding: 14px 0 0;
}

.side-nav-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 8px 10px;
  border-radius: 8px;
  color: #667386;
  background: transparent;
  box-shadow: none;
  letter-spacing: 0;
}

.side-nav-item:hover {
  background: rgba(16, 34, 58, 0.035);
  color: #142033;
}

.side-nav-item.is-on {
  color: #0d1724;
  background: #f4f7fb;
  box-shadow: inset 0 0 0 1px rgba(16, 34, 58, 0.06);
}

.side-nav-item.is-on::before {
  display: none;
}

.side-nav-ico {
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: inherit;
  opacity: 0.82;
}

.side-nav-item.is-on .side-nav-ico {
  color: var(--brand-blue);
  background: rgba(0, 110, 230, 0.08);
}

.side-nav-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.side-nav-copy strong {
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.15;
  color: inherit;
}

.side-nav-copy em {
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.2;
  color: #8a96a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hello-band {
  display: block;
  margin-bottom: 22px;
  padding: 0 0 18px;
}

.hello-band::after {
  right: 32%;
  bottom: 0;
  background: linear-gradient(90deg, rgba(16, 34, 58, 0.18), rgba(0, 110, 230, 0.16), transparent 82%);
}

.hello-band .hello {
  max-width: 12em;
  font-size: 38px;
  font-weight: 760;
  line-height: 1.08;
  color: #09111d;
}

.hello-text::after {
  display: none;
}

.hello-band .lead {
  margin-top: 12px;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.7;
  color: #59677a;
}

.hello-ip,
.hello-tarsius,
.hello-ip-cue,
.hello-ip-glow,
.hello-ip-shadow,
.hello-ip-spark,
.tarsius-figure,
.tarsius-img,
.toast-tarsius {
  display: none !important;
}

.recommendation-shell {
  margin-top: 20px;
}

.recommendation-head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(16, 34, 58, 0.08);
}

.recommendation-label {
  width: fit-content;
  font-size: 11px;
  line-height: 1;
  color: var(--brand-blue);
  font-weight: 720;
  letter-spacing: 0;
}

.recommendation-head strong {
  font-size: 18px;
  line-height: 1.3;
  color: #101823;
  font-weight: 720;
}

.recommendation-head p {
  max-width: 44em;
  margin: 0;
  color: #607086;
  font-size: 13.5px;
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
}

.focus-board {
  margin-top: 0;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 34, 58, 0.09);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(18, 40, 76, 0.08);
}

.focus-lead-card {
  border: 0;
  border-radius: 0;
  padding: 22px 22px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  box-shadow: none;
}

.focus-lead-card::before,
.focus-rest::before {
  display: none;
}

.focus-lead-main {
  gap: 16px;
}

.focus-lead-card .kid-av,
.focus-lead-card .avatar,
.focus-lead-card .focus-faces,
.focus-biz-icon.lg {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.focus-lead-card h2 {
  font-size: 18px;
  font-weight: 720;
  color: #0d1724;
}

.focus-lead-card p {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.62;
  color: #5d6b7d;
}

.focus-kicker {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 650;
  color: #7b8797;
}

.focus-rest {
  border: 0;
  border-top: 1px solid rgba(16, 34, 58, 0.08);
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.focus-quiet {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 76px;
  padding: 15px 22px;
  border-bottom: 1px solid rgba(16, 34, 58, 0.07);
}

.focus-quiet h2 {
  font-size: 14.5px;
  font-weight: 680;
  color: #0f1b2b;
}

.focus-quiet p {
  color: #617086;
}

.focus-biz-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f5f8fc;
  border: 1px solid rgba(16, 34, 58, 0.07);
  box-shadow: none;
}

.focus-biz-glyph {
  background: transparent;
}

.focus-biz-badge {
  right: -6px;
  bottom: -5px;
  background: #101823;
  color: #fff;
  border: 0;
  box-shadow: 0 0 0 2px #fff;
}

.assistant-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--brand-blue);
  background: rgba(0, 110, 230, 0.08);
  border: 1px solid rgba(0, 110, 230, 0.08);
}

.buddy-xs {
  width: 24px;
  height: 24px;
}

.buddy-sm {
  width: 30px;
  height: 30px;
}

@media (max-width: 720px) {
  .stage {
    width: 100%;
    padding: 30px 18px 24px;
  }

  .hello-band {
    min-height: 0;
    padding-right: 0;
  }

  .hello-band .hello {
    font-size: 28px;
  }

  .recommendation-shell {
    margin-top: 18px;
  }

  .recommendation-head p {
    max-width: 100%;
  }

  .focus-board {
    border-radius: 12px;
  }

  .focus-lead-card {
    padding: 18px;
  }

  .focus-quiet {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 15px 18px;
  }
}

/* Precision AI product pass: compact rail, contextual account, decision-first homepage */
:root {
  --sidebar-w: 188px;
  --surface: #f7f9fc;
  --paper: #ffffff;
  --text: #0b1220;
  --text-2: #35445a;
  --text-3: #6b778a;
  --text-4: #9aa5b5;
  --line: rgba(12, 28, 52, 0.11);
  --line-2: rgba(12, 28, 52, 0.07);
  --radius-card: 8px;
  --shadow-sm: 0 1px 2px rgba(10, 28, 55, 0.04);
  --shadow: 0 14px 34px rgba(13, 45, 92, 0.08);
  --shadow-md: 0 24px 70px rgba(10, 34, 76, 0.15);
}

body {
  background: #f7f9fc;
}

.col-main {
  background-color: #f7f9fc;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 252, 0.94) 42%, #f2f6fb),
    linear-gradient(90deg, rgba(0, 110, 230, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 110, 230, 0.024) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
  background-position: 0 0, -1px -1px, -1px -1px;
}

.stage {
  width: min(800px, calc(100% - 56px));
  padding: 52px 0 16px;
}

.sidebar {
  gap: 10px;
  padding: 18px 12px 14px;
  background: rgba(255, 255, 255, 0.94);
  border-right: 1px solid rgba(12, 28, 52, 0.08);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 4px 10px;
  border-bottom: 0;
}

.brand-logo-shell {
  width: 54px;
  height: 24px;
  flex-basis: 54px;
  justify-content: flex-start;
}

.brand-logo-full {
  width: 54px;
  max-height: 24px;
  filter: saturate(1.05) contrast(1.04);
}

.brand-text {
  gap: 2px;
}

.brand-text strong {
  font-size: 14px;
  font-weight: 720;
  line-height: 1.1;
  color: #0b1220;
}

.brand-text em {
  font-size: 10.5px;
  font-weight: 520;
  line-height: 1.15;
  color: #768397;
}

.side-context {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 8px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(0, 110, 230, 0.11);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 255, 0.86));
  color: #28384d;
  font-size: 12px;
  font-weight: 620;
}

.side-context-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #006ee6;
  box-shadow: 0 0 0 3px rgba(0, 110, 230, 0.12);
}

.side-context span:not(.side-context-dot) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-context em {
  font-style: normal;
  color: #0062cf;
  font-size: 11px;
  font-weight: 680;
}

.side-nav {
  gap: 3px;
  padding: 4px 0 0;
}

.side-nav-item {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  height: 42px;
  padding: 5px 7px;
  border-radius: 8px;
  color: #6a7484;
}

.side-nav-item:hover {
  background: rgba(12, 28, 52, 0.045);
  color: #121d2d;
}

.side-nav-item.is-on {
  color: #0b1220;
  background: #f1f5fa;
  box-shadow: inset 0 0 0 1px rgba(12, 28, 52, 0.07);
}

.side-nav-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: inherit;
  opacity: 0.9;
}

.side-nav-item.is-on .side-nav-ico {
  color: #006ee6;
  background: #eaf3ff;
}

.side-nav-copy strong {
  font-size: 13px;
  font-weight: 650;
}

.side-nav-copy em {
  display: none;
}

.side-user {
  margin: 0;
  padding: 0;
  border: 1px solid rgba(12, 28, 52, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.side-user-main {
  min-height: 50px;
  padding: 7px 8px;
  gap: 9px;
  border-radius: 8px;
}

.side-user-main:hover,
.side-user-wrap.is-open .side-user-main {
  background: #f2f6fb;
}

.side-user-av-wrap {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.side-user-av-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #18a058;
  box-shadow: 0 0 0 2px #fff;
}

.side-user-av {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(12, 28, 52, 0.08);
  box-shadow: none;
}

.side-user-text strong {
  font-size: 12.5px;
  font-weight: 650;
}

.side-user-text span {
  font-size: 10.5px;
  color: #7a8595;
}

.side-role-menu {
  left: 0;
  right: auto;
  width: 246px;
  padding: 7px;
  border-radius: 8px;
  border-color: rgba(12, 28, 52, 0.1);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.side-role-item {
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  padding: 7px;
  border-radius: 7px;
}

.side-role-item.is-on {
  background: #eef5ff;
}

.side-role-copy strong {
  font-size: 12.5px;
}

.side-role-copy span {
  font-size: 10.5px;
}

.home-hero {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
}

.home-hero::after {
  display: none;
}

.home-eyebrow {
  margin: 0 0 10px;
  color: #617087;
  font-size: 13px;
  line-height: 1.4;
}

.home-hero .hello {
  max-width: 13em;
  margin: 0;
  font-size: 40px;
  font-weight: 760;
  line-height: 1.08;
  color: #09111d;
}

.home-hero .lead {
  margin-top: 12px;
  max-width: 42em;
  color: #435267;
  font-size: 15px;
  line-height: 1.72;
}

.home-signal-row,
.focus-signals,
.focus-mini-signals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.home-signal-row {
  margin-top: 16px;
}

.home-signal-row span,
.focus-signals span,
.focus-mini-signals span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(12, 28, 52, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #425068;
  font-size: 11.5px;
  font-weight: 560;
  line-height: 1;
}

.recommendation-shell {
  margin-top: 0;
}

.recommendation-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  margin: 0 0 10px;
  padding: 0;
  border-bottom: 0;
}

.recommendation-label {
  font-size: 11.5px;
  color: #0062cf;
  font-weight: 720;
}

.recommendation-head strong {
  font-size: 18px;
  font-weight: 720;
  color: #0b1220;
}

.recommendation-head p {
  max-width: 46em;
  color: #647187;
  font-size: 13px;
  line-height: 1.62;
}

.focus-board {
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(12, 28, 52, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.focus-lead-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.045), rgba(255, 255, 255, 0) 42%),
    #ffffff;
  box-shadow: none;
}

.focus-priority {
  align-self: stretch;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  padding-top: 1px;
}

.focus-priority span {
  color: #0062cf;
  font-size: 11px;
  font-weight: 720;
}

.focus-priority strong {
  color: #c3cad4;
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 660;
  line-height: 1;
}

.focus-lead-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.focus-lead-card .kid-av,
.focus-lead-card .avatar,
.focus-lead-card .focus-faces,
.focus-biz-icon.lg {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(12, 28, 52, 0.08);
  box-shadow: none;
}

.focus-lead-card h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 730;
  line-height: 1.24;
  color: #09111d;
}

.focus-lead-card p {
  margin-top: 6px;
  max-width: 38em;
  color: #4c5a70;
  font-size: 13.5px;
  line-height: 1.58;
}

.focus-kicker {
  margin: 0 0 6px;
  color: #7b8797;
  font-size: 11.5px;
  font-weight: 620;
}

.focus-signals {
  margin-top: 10px;
}

.focus-lead-acts {
  justify-content: flex-end;
  gap: 8px;
}

.act {
  height: 34px;
  min-width: 0;
  padding: 0 12px;
  border-radius: 8px;
  background: #006ee6;
  box-shadow: 0 8px 18px rgba(0, 110, 230, 0.16);
}

.act:hover {
  background: #005fc8;
}

.act.ghost,
.btn-ghost {
  color: #25344a;
  background: #ffffff;
  border: 1px solid rgba(12, 28, 52, 0.1);
  box-shadow: none;
}

.act.link,
.act.ghost.link {
  color: #1b2a42;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.focus-rest {
  border: 0;
  border-top: 1px solid rgba(12, 28, 52, 0.08);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.focus-quiet {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 76px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(12, 28, 52, 0.07);
}

.focus-quiet h2 {
  font-size: 14.5px;
  font-weight: 680;
  color: #0f1726;
}

.focus-quiet p {
  margin-top: 4px;
  color: #5f6c80;
  font-size: 12.8px;
  line-height: 1.48;
}

.focus-mini-signals {
  margin-top: 8px;
}

.focus-mini-signals span {
  min-height: 21px;
  padding: 0 7px;
  font-size: 10.5px;
  background: #f7f9fc;
}

.focus-quiet > .kid-av,
.focus-quiet > .avatar,
.focus-quiet > .focus-faces,
.focus-biz-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.focus-biz-icon {
  color: #006ee6;
  background: #eef5ff;
  border: 1px solid rgba(0, 110, 230, 0.1);
}

.focus-biz-badge {
  right: -4px;
  bottom: -3px;
  min-width: 17px;
  height: 17px;
  background: #0b1220;
  color: #ffffff;
  font-size: 9.5px;
  border: 2px solid #ffffff;
  box-shadow: none;
}

.assistant-mark {
  color: #006ee6;
  background: #eef5ff;
  border-color: rgba(0, 110, 230, 0.1);
}

.dock {
  padding: 18px 24px 24px;
  background: linear-gradient(180deg, rgba(247, 249, 252, 0), rgba(247, 249, 252, 0.92) 32%, #f7f9fc 78%);
}

.composer {
  width: min(760px, 100%);
  border: 1px solid rgba(12, 28, 52, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 42px rgba(13, 45, 92, 0.11);
}

.composer::before {
  display: none;
}

.composer textarea {
  min-height: 48px;
  padding: 14px 16px 4px;
}

.composer-bar .act {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.chip {
  min-height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(12, 28, 52, 0.08);
  color: #425068;
}

.chips .chip:first-child {
  background: #eef5ff;
  border-color: rgba(0, 110, 230, 0.12);
  color: #174574;
}

.ai-start {
  padding-top: 18px;
}

.ai-start .hello {
  font-size: 36px;
  font-weight: 760;
}

.ai-starters {
  margin-top: 26px;
  gap: 8px;
}

.ai-starter {
  grid-template-columns: 38px minmax(0, 1fr) 18px;
  padding: 14px;
  border-radius: 8px;
  border-color: rgba(12, 28, 52, 0.09);
  box-shadow: var(--shadow-sm);
}

.ai-starter-ico {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .stage {
    inset: 0 0 300px 0;
    width: auto;
    max-width: none;
    padding: 28px 18px 24px;
    scroll-padding-bottom: 24px;
  }

  .home-hero,
  .recommendation-shell,
  .recommendation-head,
  .focus-board,
  .focus-lead-card,
  .focus-quiet {
    max-width: 100%;
    min-width: 0;
  }

  .home-hero {
    margin-bottom: 20px;
  }

  .home-eyebrow {
    font-size: 12.5px;
  }

  .home-hero .hello {
    max-width: 10.5em;
    font-size: 28px;
    line-height: 1.12;
  }

  .home-hero .lead {
    font-size: 14px;
    line-height: 1.62;
  }

  .home-signal-row {
    margin-top: 12px;
  }

  .recommendation-head strong {
    font-size: 17px;
  }

  .recommendation-head p {
    max-width: 22rem;
  }

  .focus-lead-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .focus-priority {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
  }

  .focus-priority strong {
    font-size: 18px;
  }

  .focus-lead-main {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

  .focus-lead-card .kid-av,
  .focus-lead-card .avatar,
  .focus-lead-card .focus-faces,
  .focus-biz-icon.lg {
    width: 48px;
    height: 48px;
  }

  .focus-lead-card h2 {
    font-size: 17px;
  }

  .focus-lead-acts {
    justify-content: flex-start;
  }

  .focus-quiet {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 14px 16px;
  }

  .focus-quiet > .kid-av,
  .focus-quiet > .avatar,
  .focus-quiet > .focus-faces,
  .focus-biz-icon {
    width: 40px;
    height: 40px;
  }

  .focus-quiet .act.link {
    grid-column: 2;
    justify-self: start;
    padding-left: 0;
    margin-top: 0;
  }

  .dock {
    bottom: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px 10px;
  }

  .composer {
    width: min(100%, 342px);
    border-radius: 12px;
  }

  .chips {
    width: min(100%, 342px);
    gap: 6px;
    flex-wrap: wrap;
    overflow: visible;
  }

  .chip {
    max-width: 100%;
  }

  .ai-start .hello {
    font-size: 28px;
  }
}

/* Rebuild pass: assistant brief, narrow rail, premium optical calm */
:root {
  --sidebar-w: 92px;
  --surface: #f7f9fc;
  --paper: #ffffff;
  --text: #07111f;
  --text-2: #334155;
  --text-3: #6c788b;
  --line: rgba(15, 23, 42, 0.09);
  --line-2: rgba(15, 23, 42, 0.06);
  --action: #006ee6;
  --action-hover: #005bc2;
  --action-soft: #edf5ff;
  --radius-card: 8px;
  --shadow: 0 22px 70px rgba(15, 38, 80, 0.09);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
}

body {
  background: #f7f9fc;
}

.app {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

.workspace,
.col-main {
  background: #f7f9fc;
}

.col-main {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.9) 38%, #f4f7fb 100%);
}

.stage {
  width: min(820px, calc(100% - 64px));
  padding: 44px 0 20px;
}

.sidebar {
  align-items: center;
  gap: 14px;
  padding: 18px 12px 16px;
  background: rgba(255, 255, 255, 0.92);
  border-right: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: none;
}

.brand-lockup {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(0, 110, 230, 0.11);
  box-shadow: 0 10px 26px rgba(0, 80, 170, 0.08);
}

.brand-logo-shell {
  width: 32px;
  height: 32px;
  flex-basis: auto;
  display: grid;
  place-items: center;
}

.brand-logo-full {
  width: 30px;
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
}

.brand-text,
.side-context {
  display: none;
}

.side-nav {
  width: 100%;
  gap: 8px;
  padding: 6px 0 0;
  align-items: center;
}

.side-nav-item {
  width: 60px;
  height: 58px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 28px 14px;
  justify-items: center;
  align-content: center;
  gap: 4px;
  padding: 6px 0;
  border-radius: 14px;
  color: #7a8798;
  background: transparent;
}

.side-nav-item:hover {
  background: rgba(15, 23, 42, 0.045);
  color: #142033;
}

.side-nav-item.is-on {
  background: #eef5ff;
  color: #005fc8;
  box-shadow: inset 0 0 0 1px rgba(0, 110, 230, 0.08);
}

.side-nav-ico {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: transparent;
}

.side-nav-item.is-on .side-nav-ico {
  background: transparent;
  color: #006ee6;
}

.side-nav-copy {
  display: block;
}

.side-nav-copy strong {
  display: block;
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  color: inherit;
}

.side-spacer {
  min-height: 12px;
}

.side-user-wrap {
  width: 60px;
}

.side-user {
  width: 60px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.side-user-main {
  width: 48px;
  height: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
}

.side-user-main:hover,
.side-user-wrap.is-open .side-user-main {
  background: #eef5ff;
}

.app.view-me .side-user-main {
  background: #eaf3ff;
}

.app.view-me .side-user-text strong,
.app.view-me .side-user-caret {
  color: #0b63ce;
}

.side-user-av-wrap,
.side-user-av {
  width: 34px;
  height: 34px;
}

.side-user-av {
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.side-user-text,
.side-user-caret {
  display: none;
}

.side-role-menu {
  left: 72px;
  right: auto;
  bottom: 0;
  width: 260px;
  border-radius: 12px;
}

.home-hero {
  margin: 0 0 18px;
}

.home-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  color: #68768a;
}

.home-hero .hello {
  max-width: 13.5em;
  margin: 0;
  font-size: 34px;
  font-weight: 720;
  line-height: 1.14;
  color: #07111f;
  text-wrap: balance;
}

.home-hero .lead {
  max-width: 38em;
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.68;
  color: #536174;
}

.home-signal-row {
  margin-top: 14px;
}

.home-signal-row span {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #475569;
  font-size: 11.5px;
  box-shadow: var(--shadow-sm);
}

.decision-panel {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.08), rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: var(--shadow);
}

.decision-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 110, 230, 0.28), transparent);
}

.decision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
}

.decision-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
}

.decision-status {
  color: #0062cf;
}

.decision-text-switch {
  position: relative;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: #59677c;
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
  letter-spacing: 0;
  transition: color 160ms ease;
}

.decision-text-switch::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0.72);
  transform-origin: 50% 50%;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.decision-text-switch:hover {
  color: #0062cf;
}

.decision-text-switch:hover::after {
  opacity: 0.38;
  transform: scaleX(1);
}

.decision-core {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.decision-avatar {
  display: grid;
  place-items: center;
}

.decision-avatar .kid-av,
.decision-avatar .avatar,
.decision-avatar .focus-faces,
.decision-avatar .focus-biz-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 30px rgba(15, 38, 80, 0.09);
}

.decision-copy {
  min-width: 0;
}

.decision-kicker {
  margin: 0 0 6px;
  color: #69778a;
  font-size: 12px;
  font-weight: 640;
}

.decision-copy h2 {
  margin: 0;
  color: #07111f;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 730;
  text-wrap: balance;
}

.decision-copy p:not(.decision-kicker) {
  margin-top: 8px;
  max-width: 40em;
  color: #4e5b6f;
  font-size: 13.8px;
  line-height: 1.62;
}

.decision-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.decision-actions .act {
  height: 36px;
  border-radius: 10px;
}

.decision-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 18px 18px 90px;
}

.decision-evidence span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #f7faff;
  border: 1px solid rgba(0, 110, 230, 0.1);
  color: #31506f;
  font-size: 11.5px;
  font-weight: 560;
}

.decision-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.decision-next-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 16px 18px;
  text-align: left;
  color: inherit;
  background: rgba(255, 255, 255, 0.62);
  border-right: 1px solid rgba(15, 23, 42, 0.07);
}

.decision-next-item:last-child {
  border-right: 0;
}

.decision-next-item:hover {
  background: #f8fbff;
}

.decision-next-item span {
  color: #0062cf;
  font-size: 11px;
  font-weight: 700;
}

.decision-next-item strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.25;
}

.decision-next-item em {
  min-width: 0;
  color: #64748b;
  font-style: normal;
  font-size: 12px;
  line-height: 1.42;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dock {
  padding: 22px 24px 24px;
}

.composer {
  width: min(760px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(15, 38, 80, 0.11);
}

.composer textarea {
  min-height: 54px;
  padding: 16px 18px 4px;
}

.composer-bar {
  padding: 4px 12px 12px;
}

.chips {
  width: min(760px, 100%);
  gap: 8px;
}

.chip {
  min-height: 30px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

@media (max-width: 900px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .stage {
    width: min(760px, calc(100% - 36px));
  }
}

@media (max-width: 720px) {
  .stage {
    position: fixed;
    inset: 0 auto 234px 18px;
    width: min(calc(100vw - 36px), 354px);
    max-width: none;
    overflow: auto;
    padding: 26px 0 24px;
  }

  .home-hero {
    margin-bottom: 16px;
  }

  .home-hero .hello {
    max-width: 11.5em;
    font-size: 27px;
    line-height: 1.14;
  }

  .home-hero .lead {
    font-size: 13.8px;
    line-height: 1.58;
  }

  .home-signal-row {
    gap: 6px;
  }

  .home-signal-row span {
    max-width: 100%;
  }

  .home-signal-row span:nth-child(n + 3) {
    display: none;
  }

  .decision-panel {
    border-radius: 16px;
  }

  .decision-head {
    padding: 14px 14px 0;
  }

  .decision-core {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px 12px;
  }

  .decision-avatar .kid-av,
  .decision-avatar .avatar,
  .decision-avatar .focus-faces,
  .decision-avatar .focus-biz-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .decision-copy h2 {
    font-size: 19px;
  }

  .decision-copy p:not(.decision-kicker) {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .decision-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .decision-evidence {
    padding: 0 14px 14px;
  }

  .decision-next {
    display: none;
  }

  .dock {
    bottom: 62px;
    left: 18px;
    right: auto;
    width: min(calc(100vw - 36px), 354px);
    padding: 8px 16px 10px;
    align-items: center;
  }

  .composer,
  .chips {
    width: 100%;
  }

  .composer {
    border-radius: 14px;
  }

  .bottom-nav {
    display: flex;
  }
}




/* ai100: premium assistant component polish */
:root {
  --sidebar-w: 100px;
  --brand-blue: #006ee6;
  --brand-blue-deep: #0058be;
  --brand-cyan: #00a7d8;
  --brand-rose: #ee5c98;
  --brand-yellow: #ffd34d;
  --surface: #f6f9fd;
  --surface-2: #eef4fb;
  --paper: rgba(255, 255, 255, 0.92);
  --text: #07111f;
  --text-2: #2d3a4f;
  --text-3: #68758a;
  --text-4: #98a4b5;
  --line: rgba(12, 28, 52, 0.11);
  --line-2: rgba(12, 28, 52, 0.07);
  --action: var(--brand-blue);
  --action-hover: var(--brand-blue-deep);
  --action-soft: #edf6ff;
  --radius-card: 8px;
  --radius-panel: 8px;
  --shadow-sm: 0 1px 2px rgba(12, 28, 52, 0.05);
  --shadow: 0 18px 54px rgba(13, 45, 92, 0.095);
  --shadow-md: 0 26px 80px rgba(10, 34, 76, 0.16);
}

body {
  background: var(--surface);
  color: var(--text);
}

.app {
  background: var(--surface);
}

.workspace,
.col-main {
  background: var(--surface);
}

.col-main {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 254, 0.96) 40%, #f1f6fb 100%),
    linear-gradient(90deg, rgba(0, 110, 230, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(0, 110, 230, 0.022) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  background-position: 0 0, -1px -1px, -1px -1px;
}

.stage {
  width: min(880px, calc(100% - 76px));
  padding: 50px 0 168px;
}

.sidebar {
  position: relative;
  align-items: center;
  gap: 16px;
  padding: 20px 14px 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.92)),
    #ffffff;
  border-right: 1px solid rgba(12, 28, 52, 0.08);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
}

.brand-lockup {
  width: 52px;
  height: 52px;
  min-height: 52px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f8fbff),
    #ffffff;
  border: 1px solid rgba(0, 110, 230, 0.14);
  box-shadow: 0 10px 28px rgba(0, 82, 174, 0.1);
}

.brand-logo-shell {
  width: 34px;
  height: 34px;
}

.brand-logo-full {
  width: 31px;
  max-width: 31px;
  max-height: 31px;
}

.side-nav {
  gap: 10px;
  padding-top: 4px;
}

.side-nav-item {
  width: 64px;
  height: 62px;
  grid-template-rows: 28px 14px;
  border-radius: 8px;
  color: #738196;
}

.side-nav-item:hover {
  color: #152238;
  background: rgba(12, 28, 52, 0.045);
}

.side-nav-item.is-on {
  color: #005fcf;
  background:
    linear-gradient(180deg, rgba(240, 247, 255, 0.98), rgba(229, 242, 255, 0.92));
  box-shadow:
    inset 0 0 0 1px rgba(0, 110, 230, 0.12),
    0 8px 20px rgba(0, 82, 174, 0.08);
}

.side-nav-item.is-on::before {
  display: none;
}

.side-nav-ico {
  width: 28px;
  height: 28px;
}

.side-nav-copy strong {
  font-size: 11px;
  font-weight: 680;
}

.side-user-wrap,
.side-user {
  width: 64px;
}

.side-user-main {
  width: 50px;
  height: 50px;
  min-height: 50px;
  border-radius: 50%;
}

.side-user-main:hover,
.side-user-wrap.is-open .side-user-main {
  background: #edf6ff;
}

.side-user-av-wrap,
.side-user-av {
  width: 36px;
  height: 36px;
}

.side-user-av,
.side-role-av,
.acct-av,
.kid-av,
.avatar {
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 3px rgba(0, 110, 230, 0.12);
}

.side-role-menu {
  left: 78px;
  bottom: 0;
  width: 268px;
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.home-hero {
  margin-bottom: 22px;
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  margin-bottom: 12px;
  color: #627189;
  font-size: 12.5px;
  font-weight: 560;
}

.home-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgba(0, 167, 216, 0.12);
}

.home-hero .hello {
  max-width: 15em;
  font-size: 38px;
  font-weight: 760;
  line-height: 1.12;
  color: #06101d;
}

.home-text::after,
.hello-text::after {
  background: linear-gradient(90deg, rgba(0, 110, 230, 0.18), rgba(0, 167, 216, 0.08) 72%, transparent);
}

.home-hero .lead {
  max-width: 42em;
  color: #48566c;
  font-size: 14.8px;
  line-height: 1.72;
}

.home-signal-row span {
  min-height: 27px;
  padding: 0 10px;
  border-color: rgba(12, 28, 52, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: #46566d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.decision-panel,
.panel,
.client-head.panel,
.next-block,
.brief-item,
.ai-starter,
.answer,
.exec,
.ctx-strip,
.acct-hero,
.acct-panel,
.canvas-pane,
.more-panel,
.evidence {
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.decision-panel {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.08), rgba(0, 167, 216, 0.03) 34%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.9));
  box-shadow: var(--shadow);
}

.decision-panel::before {
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan), rgba(238, 92, 152, 0.56));
}

.decision-head {
  padding: 18px 20px 0;
}

.decision-status {
  gap: 8px;
  color: #005fcf;
}

.decision-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 0 4px rgba(0, 167, 216, 0.13);
}

.decision-text-switch {
  color: #617089;
}

.decision-core {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 20px 14px;
}

.decision-panel.is-follow-scene {
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.075), rgba(24, 160, 88, 0.035) 38%, rgba(255, 255, 255, 0) 66%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985), rgba(250, 253, 255, 0.92));
}

.decision-panel.is-follow-scene .decision-core {
  grid-template-columns: 124px minmax(0, 1fr) auto;
  gap: 18px;
  padding-top: 20px;
}

.decision-avatar .kid-av,
.decision-avatar .avatar,
.decision-avatar .focus-faces,
.decision-avatar .focus-biz-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #f2f7fc;
  border: 1px solid rgba(12, 28, 52, 0.08);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.86),
    0 14px 34px rgba(13, 45, 92, 0.12);
}

.decision-follow-visual {
  box-sizing: border-box;
  width: 116px;
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 10px;
  border-radius: 16px;
  color: #0b1524;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.78)),
    rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(12, 28, 52, 0.075);
  box-shadow:
    0 14px 30px rgba(13, 45, 92, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.decision-follow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.decision-follow-parents {
  display: inline-flex;
  align-items: center;
  isolation: isolate;
}

.decision-follow-parents span {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #0c4f9f;
  background:
    linear-gradient(180deg, #ffffff, #eef7ff),
    #ffffff;
  border: 1px solid rgba(0, 110, 230, 0.14);
  box-shadow: 0 5px 12px rgba(13, 45, 92, 0.08);
  font-size: 12px;
  font-weight: 760;
}

.decision-follow-parents span + span {
  margin-left: -10px;
}

.decision-follow-arrow {
  color: #8a98aa;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
}

.decision-follow-owner {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(180deg, #0878f1, #0066d8);
  border: 1px solid rgba(0, 110, 230, 0.12);
  box-shadow: 0 7px 16px rgba(0, 110, 230, 0.18);
  font-size: 12px;
  font-weight: 780;
}

.decision-follow-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid rgba(12, 28, 52, 0.06);
  white-space: nowrap;
}

.decision-follow-caption b {
  color: #0f2748;
  font-size: 12px;
  line-height: 1;
  font-weight: 760;
}

.decision-follow-caption em {
  color: #66758d;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 650;
}

.decision-kicker {
  color: #66758d;
  font-size: 12px;
  font-weight: 660;
}

.decision-copy h2 {
  font-size: 25px;
  font-weight: 760;
  color: #07111f;
}

.decision-copy p:not(.decision-kicker) {
  color: #435269;
  font-size: 14px;
  line-height: 1.64;
}

.decision-actions {
  align-self: center;
}

.act,
.btn-primary {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0878f1, #0066d8);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(0, 110, 230, 0.18);
  white-space: nowrap;
}

.act:hover,
.btn-primary:hover {
  background: linear-gradient(180deg, #006ee6, #0058be);
  transform: translateY(-1px);
}

.act.ghost,
.btn-ghost,
.act.link,
.act.ghost.link {
  color: #1c2b41;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(12, 28, 52, 0.1);
  box-shadow: none;
}

.act.link,
.act.ghost.link {
  min-height: 30px;
  padding: 0 2px;
  border-color: transparent;
  background: transparent;
  color: #0062cf;
}

.decision-evidence {
  gap: 7px;
  padding: 0 20px 12px 102px;
}

.decision-evidence span {
  min-height: 26px;
  padding: 0 10px;
  background: rgba(239, 247, 255, 0.82);
  border-color: rgba(0, 110, 230, 0.1);
  color: #2f5579;
}

.decision-next {
  border-top-color: rgba(12, 28, 52, 0.07);
  background: rgba(255, 255, 255, 0.55);
}

.decision-next-item {
  padding: 15px 20px;
  background: transparent;
}

.decision-next-item:hover {
  background: rgba(239, 247, 255, 0.72);
}

.decision-next-item strong {
  color: #111b2b;
}

.decision-next-item em {
  color: #65738a;
}

.dock {
  padding: 12px 24px 18px;
  background: linear-gradient(180deg, rgba(246, 249, 253, 0), rgba(246, 249, 253, 0.78) 42%, #f6f9fd 100%);
}

.composer {
  width: min(760px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(12, 28, 52, 0.1);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 42px rgba(13, 45, 92, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  overflow: hidden;
}

.composer textarea {
  min-height: 43px;
  padding: 14px 16px 0;
  color: #121d2d;
  font-size: 14px;
  line-height: 1.45;
}

.composer-bar {
  padding: 0 10px 9px;
}

.tool-btn,
.composer-bar .act {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.tool-btn {
  color: #68778d;
}

.tool-btn:hover {
  color: #005fcf;
  background: #edf6ff;
}

.chips {
  width: min(760px, 100%);
  margin-top: 8px;
  gap: 7px;
}

.chip {
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: #536176;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(12, 28, 52, 0.075);
  box-shadow: none;
  font-weight: 570;
}

.chip:hover {
  color: #005fcf;
  border-color: rgba(0, 110, 230, 0.16);
  background: rgba(241, 248, 255, 0.88);
}

.chips .chip:first-child {
  color: #075aa8;
  background: rgba(237, 246, 255, 0.82);
  border-color: rgba(0, 110, 230, 0.14);
}

.composer-note {
  display: none;
}

.ai-start {
  padding-top: 12px;
}

.ai-start .hello {
  font-size: 36px;
  font-weight: 760;
}

.ai-starters {
  gap: 8px;
}

.ai-starter,
.brief-item {
  min-height: 70px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.ai-starter:hover,
.brief-item:hover {
  border-color: rgba(0, 110, 230, 0.16);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(13, 45, 92, 0.08);
}

.ai-starter-ico,
.acct-row-ico,
.tl-ico,
.source-ico {
  border-radius: 8px;
}

.ai-starter-ico {
  color: #0062cf;
  background: #edf6ff;
}

.brief-item h2,
.ai-starter-copy strong,
.panel-title,
.client-name,
.next-block strong,
.answer .conclusion {
  color: #0b1524;
}

.brief-item p,
.ai-starter-copy span,
.client-meta,
.client-fact,
.recv-note,
.voice-hint {
  color: #617089;
}

.client-head.panel {
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.055), rgba(255, 255, 255, 0) 42%),
    rgba(255, 255, 255, 0.88);
}

.next-block {
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 252, 255, 0.9)),
    #ffffff;
}

.next-block.is-warm {
  border-color: rgba(0, 110, 230, 0.12);
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.07), rgba(255, 211, 77, 0.05) 54%, rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.88);
}

.free-rights,
.timeline-panel,
.recv-panel,
.acct-panel,
.acct-hero {
  padding: 18px;
}

.tl-row,
.acct-row,
.recv-check li,
.free-row {
  border-radius: 8px;
}

.acct-hero {
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.09), rgba(0, 167, 216, 0.035) 42%, rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.9);
}

.acct-av-wrap {
  border-radius: 50%;
}

.acct-av-live,
.side-user-av-wrap::after,
.status-dot {
  background: #18a058;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 6px rgba(24, 160, 88, 0.12);
}

.answer {
  padding: 16px;
}

.answer-hd {
  color: #617089;
}

.suggest-box,
.sources,
.reason-list {
  border-radius: 8px;
}

.source-chip {
  min-height: 28px;
  border-radius: 999px;
  color: #39516d;
  background: #f6faff;
  border-color: rgba(0, 110, 230, 0.1);
}

.canvas-pane {
  background: rgba(255, 255, 255, 0.94);
  border-left: 1px solid rgba(12, 28, 52, 0.08);
  box-shadow: -18px 0 60px rgba(13, 45, 92, 0.08);
}

.bottom-nav {
  border-top: 1px solid rgba(12, 28, 52, 0.1);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

@media (max-width: 900px) {
  .stage {
    width: min(780px, calc(100% - 36px));
    padding-top: 34px;
  }
}

@media (max-width: 720px) {
  .stage {
    position: fixed;
    inset: 0 auto 232px 18px;
    width: min(calc(100vw - 36px), 354px);
    max-width: none;
    overflow: auto;
    padding: 24px 0 24px;
  }

  .stage[data-view="me"],
  .stage[data-view="overview"] {
    inset: 0 auto 62px 18px;
    padding-bottom: 28px;
  }

  .home-eyebrow {
    margin-bottom: 8px;
    min-height: 22px;
    font-size: 12px;
  }

  .home-hero .hello {
    max-width: 11.5em;
    font-size: 26px;
    line-height: 1.15;
  }

  .home-hero .lead {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.58;
  }

  .home-signal-row {
    margin-top: 12px;
  }

  .home-signal-row span:nth-child(n + 3) {
    display: none;
  }

  .decision-head {
    padding: 14px 14px 0;
    align-items: flex-start;
  }

  .decision-status {
    min-height: 25px;
    font-size: 11px;
  }

  .decision-text-switch {
    min-height: 25px;
    font-size: 11px;
  }

  .decision-core {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px 10px;
  }

  .decision-panel.is-follow-scene .decision-core {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 12px;
  }

  .decision-follow-visual {
    width: 88px;
    min-height: 68px;
    gap: 7px;
    padding: 8px;
    border-radius: 12px;
  }

  .decision-follow-row {
    gap: 3px;
  }

  .decision-follow-parents span {
    width: 22px;
    height: 22px;
    font-size: 10.5px;
  }

  .decision-follow-parents span + span {
    margin-left: -9px;
  }

  .decision-follow-owner {
    width: 22px;
    height: 22px;
    font-size: 10.5px;
  }

  .decision-follow-arrow {
    font-size: 11px;
  }

  .decision-follow-caption {
    justify-content: center;
    gap: 4px;
    padding-top: 6px;
  }

  .decision-follow-caption b {
    font-size: 10.5px;
  }

  .decision-follow-caption em {
    display: none;
  }

  .decision-avatar .kid-av,
  .decision-avatar .avatar,
  .decision-avatar .focus-faces,
  .decision-avatar .focus-biz-icon {
    width: 46px;
    height: 46px;
  }

  .decision-kicker {
    font-size: 11.5px;
  }

  .decision-copy h2 {
    font-size: 19px;
    line-height: 1.25;
  }

  .decision-copy p:not(.decision-kicker) {
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .decision-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .decision-actions .act {
    width: 100%;
    justify-content: center;
  }

  .decision-evidence {
    padding: 0 14px 10px;
  }

  .decision-evidence span:nth-child(n + 3) {
    display: none;
  }

  .decision-next {
    display: none;
  }

  .dock {
    bottom: 62px;
    left: 18px;
    right: auto;
    width: min(calc(100vw - 36px), 354px);
    padding: 8px 16px 12px;
  }

  .composer,
  .chips {
    width: 100%;
  }

  .composer textarea {
    min-height: 42px;
    padding: 13px 14px 0;
  }

  .chip {
    min-height: 28px;
    max-width: 100%;
  }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 62px;
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav button {
    min-width: 0;
  }
}

/* ai110: member triage table */
.app.view-clients .stage {
  width: min(960px, 100%);
  padding-bottom: 140px;
}

.member-hero {
  margin-bottom: 16px;
}

.member-hero .hello {
  max-width: none;
  font-size: 34px;
  line-height: 1.15;
  color: #06101d;
  font-weight: 760;
}

.member-hero .lead {
  max-width: 48em;
  margin-top: 10px;
  color: #48566c;
  font-size: 14.5px;
  line-height: 1.7;
}

.member-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.member-kpis span {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 28, 52, 0.075);
  box-shadow: 0 10px 24px rgba(13, 45, 92, 0.055);
}

.member-kpis b {
  color: #07111f;
  font-family: var(--font-num);
  font-size: 24px;
  line-height: 1;
  font-weight: 760;
}

.member-kpis em {
  color: #66758d;
  font-size: 12px;
  font-style: normal;
  font-weight: 620;
}

.member-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.member-tabs::-webkit-scrollbar {
  display: none;
}

.member-tab {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 12px;
  border-radius: 999px;
  color: #536176;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(12, 28, 52, 0.075);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  font-size: 12.5px;
  font-weight: 650;
}

.member-tab b {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #64748b;
  background: #f3f7fc;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 760;
}

.member-tab:hover {
  color: #0f2748;
  border-color: rgba(0, 110, 230, 0.18);
}

.member-tab.is-on {
  color: #005fcf;
  background: #ffffff;
  border-color: rgba(0, 110, 230, 0.22);
  box-shadow: 0 8px 20px rgba(0, 82, 174, 0.075);
}

.member-tab.is-on b {
  color: #ffffff;
  background: #006ee6;
}

.member-table.panel {
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.055), rgba(255, 255, 255, 0) 42%),
    rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(12, 28, 52, 0.09);
  box-shadow: 0 18px 42px rgba(15, 38, 80, 0.08);
}

.member-table-head,
.member-row {
  display: grid;
  grid-template-columns: minmax(184px, 1.05fr) 132px minmax(260px, 1.5fr) 116px 172px;
  gap: 14px;
  align-items: center;
}

.member-table-head {
  padding: 13px 18px;
  color: #7a8798;
  background: rgba(248, 251, 255, 0.72);
  border-bottom: 1px solid rgba(12, 28, 52, 0.07);
  font-size: 11.5px;
  font-weight: 720;
}

.member-row {
  position: relative;
  min-height: 94px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(12, 28, 52, 0.065);
}

.member-row:last-child {
  border-bottom: 0;
}

.member-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: transparent;
}

.member-row.is-primary::before {
  background: linear-gradient(180deg, #006ee6, #00a7d8);
}

.member-row:hover {
  background: rgba(248, 252, 255, 0.92);
}

.member-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.member-person-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.member-person-copy strong {
  overflow: hidden;
  color: #07111f;
  font-size: 14.5px;
  font-weight: 760;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-person-copy em {
  overflow: hidden;
  color: #66758d;
  font-size: 12px;
  font-style: normal;
  font-weight: 560;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.member-priority {
  color: #0062cf;
  font-size: 11.5px;
  font-weight: 760;
}

.member-stage-pill {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 720;
  white-space: nowrap;
}

.member-stage-pill.tone-danger {
  color: #b42332;
  background: #fff2f3;
  border: 1px solid rgba(180, 35, 50, 0.11);
}

.member-stage-pill.tone-warn {
  color: #9a5b00;
  background: #fff8e8;
  border: 1px solid rgba(154, 91, 0, 0.11);
}

.member-stage-pill.tone-info {
  color: #005fcf;
  background: #eef7ff;
  border: 1px solid rgba(0, 110, 230, 0.12);
}

.member-stage-pill.tone-ok {
  color: #12643d;
  background: #eefaf3;
  border: 1px solid rgba(18, 100, 61, 0.1);
}

.member-ai {
  min-width: 0;
}

.member-ai strong {
  display: block;
  color: #07111f;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 760;
}

.member-ai p {
  margin: 4px 0 0;
  color: #536176;
  font-size: 12.5px;
  line-height: 1.55;
}

.member-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.member-signals span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #335878;
  background: #f4f9ff;
  border: 1px solid rgba(0, 110, 230, 0.09);
  font-size: 11px;
  font-weight: 620;
}

.member-owner {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.member-owner strong {
  color: #172235;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 720;
}

.member-owner span {
  color: #748197;
  font-size: 12px;
  line-height: 1.35;
}

.member-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.member-actions .act {
  min-height: 34px;
  justify-content: center;
  padding: 0 12px;
}

.member-actions .act.ghost {
  min-width: 54px;
}

@media (max-width: 900px) {
  .app.view-clients .stage {
    width: min(780px, 100%);
  }

  .member-table-head,
  .member-row {
    grid-template-columns: minmax(180px, 1fr) minmax(118px, 0.58fr) minmax(220px, 1.15fr);
  }

  .member-table-head span:nth-child(4),
  .member-table-head span:nth-child(5),
  .member-owner,
  .member-actions {
    grid-column: auto;
  }

  .member-table-head span:nth-child(4),
  .member-table-head span:nth-child(5) {
    display: none;
  }

  .member-owner {
    display: none;
  }

  .member-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .app.view-clients .stage {
    width: 100%;
  }

  .member-hero {
    margin-bottom: 14px;
  }

  .member-hero .hello {
    font-size: 27px;
    line-height: 1.16;
  }

  .member-hero .lead {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.6;
  }

  .member-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 14px;
  }

  .member-kpis span {
    min-height: 58px;
    padding: 10px 8px;
    border-radius: 12px;
  }

  .member-kpis b {
    font-size: 20px;
  }

  .member-kpis em {
    font-size: 10.5px;
    line-height: 1.25;
  }

  .member-tabs {
    gap: 7px;
    margin-right: -18px;
    padding-right: 18px;
  }

  .member-tab {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .member-table.panel {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .member-table-head {
    display: none;
  }

  .member-table-body {
    display: grid;
    gap: 10px;
  }

  .member-row {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(12, 28, 52, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 28px rgba(13, 45, 92, 0.065);
  }

  .member-row::before {
    top: 14px;
    bottom: auto;
    height: 34px;
    width: 3px;
  }

  .member-person {
    align-self: start;
  }

  .member-person .person-av-wrap,
  .member-person .kid-av,
  .member-person .avatar {
    width: 40px;
    height: 40px;
  }

  .member-person-copy strong {
    font-size: 14px;
  }

  .member-person-copy em {
    font-size: 11.5px;
  }

  .member-stage {
    align-items: flex-end;
    gap: 6px;
  }

  .member-priority {
    font-size: 11px;
  }

  .member-stage-pill {
    min-height: 25px;
    padding: 0 8px;
    font-size: 11px;
  }

  .member-ai {
    grid-column: 1 / -1;
  }

  .member-ai strong {
    font-size: 14px;
  }

  .member-ai p {
    font-size: 12.5px;
  }

  .member-signals span:nth-child(n + 3) {
    display: none;
  }

  .member-owner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding-top: 2px;
  }

  .member-owner strong,
  .member-owner span {
    font-size: 12px;
  }

  .member-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .member-actions .act {
    width: 100%;
  }
}

.app.has-benefit .workspace {
  grid-template-columns: minmax(0, 1fr);
}

.app.has-benefit .canvas-pane {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(246, 249, 253, 0.74);
  border: 0;
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.app.has-benefit .stage {
  width: min(880px, calc(100% - 76px));
}

.app.has-benefit .dock {
  width: min(780px, calc(100% - 48px));
}

.benefit-dialog {
  position: relative;
  width: min(420px, calc(100vw - 40px));
  padding: 28px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(12, 28, 52, 0.1);
  box-shadow: 0 28px 90px rgba(10, 34, 76, 0.18);
}

.benefit-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  color: #8a96a8;
  border-radius: 8px;
}

.benefit-close:hover {
  color: #111827;
  background: #f2f6fb;
}

.benefit-kicker {
  margin: 0 0 10px;
  color: #0062cf;
  font-size: 12px;
  font-weight: 720;
}

.benefit-dialog h2 {
  margin: 0;
  color: #07111f;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 760;
}

.benefit-metric {
  display: grid;
  gap: 2px;
  margin-top: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(12, 28, 52, 0.08);
  border-bottom: 1px solid rgba(12, 28, 52, 0.08);
}

.benefit-metric strong {
  color: #07111f;
  font-family: var(--font-num);
  font-size: 54px;
  line-height: 0.95;
  font-weight: 740;
  letter-spacing: 0;
}

.benefit-metric span {
  color: #536176;
  font-size: 13px;
  font-weight: 620;
}

.benefit-note {
  margin: 16px 0 0;
  color: #435269;
  font-size: 13.5px;
  line-height: 1.65;
}

.benefit-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.benefit-points span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #3c5572;
  background: #f5f9ff;
  border: 1px solid rgba(0, 110, 230, 0.1);
  font-size: 12px;
  font-weight: 600;
}

.benefit-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 24px;
}

.benefit-actions .act {
  justify-content: center;
}

@media (max-width: 720px) {
  .app.has-benefit .canvas-pane {
    padding: 18px;
  }

  .app.has-benefit .stage {
    inset: 0 auto 232px 18px;
    width: min(calc(100vw - 36px), 354px);
  }

  .benefit-dialog {
    width: min(100%, 354px);
    padding: 22px;
    border-radius: 12px;
  }

  .benefit-dialog h2 {
    font-size: 21px;
  }

  .benefit-metric {
    margin-top: 20px;
    padding: 18px 0;
  }

  .benefit-metric strong {
    font-size: 46px;
  }

  .benefit-actions {
    grid-template-columns: 1fr;
  }

  .benefit-actions .act {
    width: 100%;
  }
}

/* ai111: command bar, AI command center, and member dossier refinement */
:root {
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --brand-gold: #ffd33d;
}

.app.view-today .stage,
.app.view-client .stage,
.app.view-ai .stage {
  padding-bottom: 168px;
}

.app.view-clients .stage {
  padding-bottom: 236px;
}

.app.view-client .stage {
  width: min(860px, calc(100% - 76px));
}

.app.view-ai .stage {
  width: min(760px, calc(100% - 76px));
}

.dock {
  padding: 8px 24px 16px;
  background:
    linear-gradient(180deg, rgba(246, 249, 253, 0) 0%, rgba(246, 249, 253, 0.78) 46%, #f6f9fd 100%);
  pointer-events: none;
}

.dock .composer,
.dock .chips {
  pointer-events: auto;
}

.composer {
  width: min(680px, 100%);
  border-radius: 12px;
  border-color: rgba(12, 28, 52, 0.105);
  box-shadow: 0 16px 46px rgba(14, 39, 80, 0.105), 0 1px 0 rgba(255, 255, 255, 0.94) inset;
  transition:
    border-color 160ms var(--ease-out-strong),
    box-shadow 160ms var(--ease-out-strong);
}

.composer:focus-within {
  border-color: rgba(0, 110, 230, 0.18);
  box-shadow: 0 18px 52px rgba(14, 39, 80, 0.12), 0 0 0 3px rgba(0, 110, 230, 0.065);
}

.composer textarea {
  min-height: 40px;
  padding: 13px 15px 0;
  font-size: 14px;
}

.composer-bar {
  padding: 0 9px 8px;
  background: transparent;
}

.chips {
  width: min(680px, 100%);
  margin-top: 8px;
}

.chip,
.member-tab,
.tool-btn,
.composer-bar .act,
.act,
.btn-primary,
.ai-primary-action,
.ai-starter,
.decision-text-switch {
  transition:
    transform 150ms var(--ease-out-strong),
    color 150ms var(--ease-out-strong),
    background-color 150ms var(--ease-out-strong),
    border-color 150ms var(--ease-out-strong),
    box-shadow 150ms var(--ease-out-strong);
}

.chip:active,
.member-tab:active,
.tool-btn:active,
.composer-bar .act:active,
.act:active,
.btn-primary:active,
.ai-primary-action:active,
.ai-starter:active,
.decision-text-switch:active {
  transform: scale(0.98);
}

.decision-text-switch {
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #506177;
  font-size: 12.5px;
  font-weight: 660;
}

.decision-text-switch:hover {
  color: #005fcf;
  background: transparent;
  box-shadow: none;
}

.decision-text-switch::after {
  content: "→";
  margin-left: 6px;
}

.decision-panel.is-follow-scene .decision-core {
  grid-template-columns: 108px minmax(0, 1fr) auto;
}

.decision-follow-signal {
  width: 100px;
  min-height: 70px;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.84)),
    #ffffff;
}

.decision-follow-time {
  display: grid;
  gap: 1px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(12, 28, 52, 0.07);
}

.decision-follow-time b {
  color: #06101d;
  font-family: var(--font-num);
  font-size: 25px;
  line-height: 0.95;
  font-weight: 760;
  letter-spacing: 0;
}

.decision-follow-time em {
  color: #0062cf;
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
}

.decision-follow-signal .decision-follow-caption {
  padding-top: 0;
  border-top: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.decision-follow-signal .decision-follow-caption b,
.decision-follow-signal .decision-follow-caption em {
  white-space: normal;
}

.ai-command {
  width: min(760px, 100%);
  margin: 0 auto;
  padding-top: 28px;
}

.ai-command-head {
  margin-bottom: 18px;
}

.ai-context-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: #496079;
  font-size: 13px;
  font-weight: 620;
}

.ai-context-line span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00a7d8;
  box-shadow: 0 0 0 5px rgba(0, 167, 216, 0.12);
}

.ai-command .hello {
  max-width: none;
  color: #06101d;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 780;
}

.ai-command .lead {
  max-width: 48em;
  margin-top: 10px;
  color: #4b5c72;
  font-size: 15px;
  line-height: 1.7;
}

.ai-primary-action {
  width: 100%;
  min-height: 112px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(12, 28, 52, 0.09);
  border-radius: 18px;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.075), rgba(0, 167, 216, 0.035) 36%, rgba(255, 211, 61, 0.055) 100%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 54px rgba(15, 38, 80, 0.1), 0 1px 0 rgba(255, 255, 255, 0.94) inset;
}

.ai-primary-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #005fcf;
  background: #eef7ff;
  border: 1px solid rgba(0, 110, 230, 0.12);
}

.ai-primary-copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.ai-primary-copy strong {
  color: #07111f;
  font-size: 21px;
  line-height: 1.2;
  font-weight: 760;
}

.ai-primary-copy em {
  color: #52647b;
  font-size: 13.5px;
  line-height: 1.55;
  font-style: normal;
  font-weight: 520;
}

.ai-primary-go {
  color: #7a8798;
  font-size: 18px;
  line-height: 1;
}

.ai-context-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 14px 0;
  border-top: 1px solid rgba(12, 28, 52, 0.075);
  border-bottom: 1px solid rgba(12, 28, 52, 0.075);
}

.ai-context-panel span {
  display: grid;
  gap: 4px;
  padding: 13px 16px;
  border-left: 1px solid rgba(12, 28, 52, 0.06);
}

.ai-context-panel span:first-child {
  border-left: 0;
}

.ai-context-panel b {
  color: #07111f;
  font-size: 13px;
  font-weight: 720;
}

.ai-context-panel em {
  overflow: hidden;
  color: #6b778a;
  font-size: 12px;
  font-style: normal;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-starters-min {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ai-starters-min .ai-starter {
  min-height: 86px;
  padding: 15px 16px;
  border-radius: 14px;
}

.client-dossier {
  display: grid;
  gap: 12px;
}

.client-dossier-hero.panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.74fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.065), rgba(255, 255, 255, 0) 48%),
    rgba(255, 255, 255, 0.93);
  box-shadow: 0 18px 48px rgba(15, 38, 80, 0.085), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.client-dossier-id {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-dossier-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.client-dossier-stats span {
  min-height: 62px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(248, 251, 255, 0.78);
  border: 1px solid rgba(12, 28, 52, 0.065);
}

.client-dossier-stats b {
  overflow: hidden;
  color: #06101d;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-dossier-stats em {
  color: #708096;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 650;
}

.client-action-panel.panel {
  padding: 18px 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.92)),
    #ffffff;
}

.client-action-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #0062cf;
  font-size: 12px;
  font-weight: 760;
}

.client-action-label span {
  display: inline-grid;
  place-items: center;
  color: #00a7d8;
}

.client-action-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.client-action-body h2 {
  margin: 0;
  color: #07111f;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 760;
}

.client-action-body p {
  max-width: 48em;
  margin: 7px 0 0;
  color: #5b6c83;
  font-size: 13px;
  line-height: 1.6;
}

.client-action-buttons {
  justify-content: flex-end;
}

.client-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  gap: 12px;
  align-items: start;
}

.client-detail-grid .free-rights,
.client-detail-grid .timeline-panel {
  margin-top: 0;
  height: 100%;
}

.client-detail-grid .free-rights,
.client-detail-grid .timeline-panel,
.client-action-panel.panel {
  box-shadow: 0 12px 34px rgba(15, 38, 80, 0.065), 0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.next-block-icon {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #0062cf;
  background: #eef7ff;
  border: 1px solid rgba(0, 110, 230, 0.1);
}

@media (hover: hover) and (pointer: fine) {
  .ai-primary-action:hover,
  .ai-starter:hover {
    transform: translateY(-1px);
  }

  .chip:hover,
  .member-tab:hover,
  .tool-btn:hover {
    transform: translateY(-1px);
  }
}

@media (min-width: 721px) {
  .app.view-clients .col-main {
    overflow: hidden;
  }

  .app.view-clients .stage {
    flex: 1 1 auto;
    overflow: auto;
    padding-bottom: 28px;
    scrollbar-width: thin;
  }

  .app.view-clients .dock {
    position: relative;
    bottom: auto;
    flex: 0 0 auto;
  }
}

@media (max-width: 900px) {
  .app.view-client .stage,
  .app.view-ai .stage {
    width: min(780px, calc(100% - 36px));
  }

  .client-dossier-hero.panel {
    grid-template-columns: 1fr;
  }

  .client-dossier-stats {
    max-width: 520px;
  }

  .client-action-body,
  .client-detail-grid {
    grid-template-columns: 1fr;
  }

  .client-action-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .app.view-today .stage,
  .app.view-client .stage,
  .app.view-ai .stage {
    inset: 0 auto 218px 18px;
    width: min(calc(100vw - 36px), 354px);
    padding-bottom: 32px;
  }

  .dock {
    width: min(calc(100vw - 36px), 354px);
    padding: 7px 0 10px;
  }

  .composer {
    border-radius: 12px;
  }

  .chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding: 0 2px 2px;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: 0 0 auto;
  }

  .decision-panel.is-follow-scene .decision-core {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .decision-follow-signal {
    width: 86px;
    min-height: 66px;
    padding: 9px;
  }

  .decision-follow-time b {
    font-size: 22px;
  }

  .ai-command {
    padding-top: 26px;
  }

  .ai-command .hello {
    font-size: 30px;
    line-height: 1.16;
  }

  .ai-command .lead {
    font-size: 13.5px;
  }

  .ai-primary-action {
    min-height: 98px;
    grid-template-columns: 36px minmax(0, 1fr) 18px;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
  }

  .ai-primary-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .ai-primary-copy strong {
    font-size: 17px;
  }

  .ai-primary-copy em {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12.5px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .ai-context-panel {
    grid-template-columns: 1fr;
  }

  .ai-context-panel span {
    border-left: 0;
    border-top: 1px solid rgba(12, 28, 52, 0.06);
  }

  .ai-context-panel span:first-child {
    border-top: 0;
  }

  .ai-starters-min {
    grid-template-columns: 1fr;
  }

  .client-dossier-hero.panel {
    gap: 15px;
    padding: 16px;
    border-radius: 16px;
  }

  .client-dossier-id {
    align-items: flex-start;
    gap: 13px;
  }

  .client-name {
    font-size: 21px;
  }

  .client-fact {
    font-size: 13px;
  }

  .client-meta {
    font-size: 12px;
    line-height: 1.5;
  }

  .client-dossier-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .client-dossier-stats span {
    min-height: 56px;
    padding: 9px 8px;
    border-radius: 12px;
  }

  .client-dossier-stats b {
    font-size: 12px;
  }

  .client-dossier-stats em {
    font-size: 10.5px;
  }

  .client-action-panel.panel {
    padding: 15px;
    border-radius: 16px;
  }

  .client-action-body h2 {
    font-size: 17px;
  }

  .client-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .client-action-buttons .act:first-child {
    grid-column: 1 / -1;
  }

  .client-action-buttons .act {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chip,
  .member-tab,
  .tool-btn,
  .composer-bar .act,
  .act,
  .btn-primary,
  .ai-primary-action,
  .ai-starter,
  .decision-text-switch,
  .composer {
    transition-duration: 80ms;
  }
}

/* ai112: stronger minimal pass */
.app.view-today .stage,
.app.view-client .stage,
.app.view-ai .stage {
  padding-bottom: 124px;
}

.home-signal-row,
.decision-status,
.decision-evidence,
.decision-next,
.chips {
  display: none !important;
}

.home-hero {
  margin-bottom: 18px;
}

.home-hero .lead,
.member-hero .lead,
.ai-command .lead {
  max-width: 38em;
}

.decision-panel {
  position: relative;
  overflow: visible;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(15, 38, 80, 0.075);
}

.decision-panel::before {
  display: none;
}

.decision-head {
  position: absolute;
  top: 18px;
  right: 22px;
  padding: 0;
  z-index: 1;
}

.decision-core {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 28px 24px;
}

.decision-panel.is-follow-scene {
  background: rgba(255, 255, 255, 0.92);
}

.decision-panel.is-follow-scene .decision-core {
  grid-template-columns: 74px minmax(0, 1fr) auto;
}

.decision-copy h2 {
  font-size: 25px;
}

.decision-copy p:not(.decision-kicker) {
  max-width: 42em;
  font-size: 14px;
  line-height: 1.64;
}

.decision-text-switch {
  min-height: 24px;
  font-size: 12px;
  font-weight: 640;
}

.decision-follow-signal {
  width: 64px;
  min-height: 54px;
  padding: 10px;
  border-radius: 12px;
  box-shadow: none;
}

.decision-follow-time {
  padding-bottom: 0;
  border-bottom: 0;
}

.decision-follow-time b {
  font-size: 24px;
}

.decision-follow-signal .decision-follow-caption {
  display: none;
}

.tool-btn {
  display: none;
}

.composer {
  width: min(640px, 100%);
  box-shadow: 0 14px 40px rgba(14, 39, 80, 0.095), 0 1px 0 rgba(255, 255, 255, 0.94) inset;
}

.composer textarea {
  min-height: 44px;
  padding: 14px 15px 0;
}

.composer-bar {
  justify-content: flex-end;
}

.composer-bar .act {
  border-radius: 9px;
}

.member-hero {
  margin-bottom: 14px;
}

.member-hero .hello {
  font-size: 34px;
}

.member-summary-line {
  margin: 10px 0 0;
  color: #6b778a;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 560;
}

.member-tabs {
  gap: 18px;
  margin: 16px 0 12px;
  border-bottom: 1px solid rgba(12, 28, 52, 0.08);
}

.member-tab {
  min-height: 36px;
  gap: 6px;
  padding: 0 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #65748a;
}

.member-tab b {
  min-width: auto;
  height: auto;
  color: inherit;
  background: transparent;
  font-size: 12px;
}

.member-tab:hover,
.member-tab.is-on {
  color: #005fcf;
  background: transparent;
  border-color: transparent;
  box-shadow: inset 0 -2px 0 #006ee6;
}

.member-tab.is-on b {
  color: inherit;
  background: transparent;
}

.member-table.panel {
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 38, 80, 0.06);
}

.member-signals span:nth-child(n + 3) {
  display: none;
}

.ai-command {
  width: min(680px, 100%);
  padding-top: 34px;
}

.ai-context-line span,
.ai-primary-ico,
.ai-primary-copy em {
  display: none;
}

.ai-context-line {
  margin-bottom: 14px;
  color: #6b778a;
}

.ai-primary-action {
  min-height: 74px;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 14px;
  padding: 18px 0;
  border-width: 1px 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ai-primary-copy strong {
  font-size: 21px;
}

.ai-primary-go {
  justify-self: end;
}

.ai-starters-min {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}

.ai-starters-min .ai-starter,
.ai-starters-min .ai-starter-text {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #52647b;
  background: transparent;
  box-shadow: none;
}

.ai-starter-text span:first-child {
  font-size: 13px;
  font-weight: 650;
}

.ai-starters-min .ai-starter:hover {
  color: #005fcf;
  background: transparent;
  box-shadow: none;
}

.client-dossier-hero.panel {
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(15, 38, 80, 0.07);
}

.client-dossier-stats {
  width: min(330px, 100%);
  gap: 14px;
}

.client-dossier-stats span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.client-action-label,
.client-action-body p,
.free-rights-hd p {
  display: none;
}

.client-action-panel.panel {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
}

.client-action-body h2 {
  font-size: 19px;
}

@media (max-width: 720px) {
  .app.view-today .stage,
  .app.view-client .stage,
  .app.view-ai .stage {
    inset: 0 auto 164px 18px;
    padding-bottom: 28px;
  }

  .decision-core,
  .decision-panel.is-follow-scene .decision-core {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 16px 18px;
  }

  .decision-head {
    top: 16px;
    right: 16px;
  }

  .decision-avatar {
    display: none;
  }

  .decision-copy h2 {
    padding-right: 86px;
    font-size: 23px;
  }

  .decision-actions .act {
    width: 100%;
    justify-content: center;
  }

  .dock {
    padding-bottom: 8px;
  }

  .member-tabs {
    gap: 15px;
    margin-right: -18px;
    padding-right: 18px;
  }

  .member-summary-line {
    font-size: 12.5px;
  }

  .ai-command {
    padding-top: 30px;
  }

  .ai-primary-action {
    min-height: 66px;
    padding: 15px 0;
  }

  .ai-starters-min {
    gap: 12px;
  }

  .client-dossier-hero.panel {
    grid-template-columns: 1fr;
  }

  .client-dossier-stats {
    width: 100%;
  }
}

/* ai113: remove member page cut lines and chat chrome */
.app.view-clients .col-main {
  overflow: hidden;
  scrollbar-width: none;
}

.app.view-clients .col-main::-webkit-scrollbar,
.app.view-clients .stage::-webkit-scrollbar {
  display: none;
}

.app.view-clients .stage {
  flex: 1 1 auto;
  width: min(960px, calc(100% - 76px));
  padding: 64px 32px 48px;
  overflow: visible;
  scrollbar-width: none;
}

.app.view-clients .dock {
  display: none !important;
}

.app.view-clients .member-hero {
  margin: 0 0 18px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.app.view-clients .member-hero .hello {
  font-size: 34px;
  line-height: 1.12;
}

.app.view-clients .member-tabs,
.app.view-clients .member-summary-line,
.app.view-clients .member-hero .lead,
.app.view-clients .member-hero .home-eyebrow {
  display: none !important;
}

.app.view-clients .member-table.panel {
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 38, 80, 0.045);
}

@media (max-width: 720px) {
  .app.view-clients .col-main {
    overflow: hidden;
    scrollbar-width: none;
  }

  .app.view-clients .stage {
    position: fixed;
    inset: 0 auto 62px 18px;
    width: min(calc(100vw - 36px), 354px);
    margin: 0;
    overflow: auto;
    padding: 30px 0 24px;
  }

  .app.view-clients .member-hero {
    margin-bottom: 16px;
  }

  .app.view-clients .member-table.panel {
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

/* ai114: premium member operating page */
.app.view-clients .col-main {
  background:
    linear-gradient(180deg, #fcfdff 0%, #f6faff 100%),
    #f8fbff;
}

.app.view-clients .stage {
  width: min(1040px, calc(100% - 96px));
  padding: 58px 36px 48px;
}

.app.view-clients .member-hero.member-hero-premium {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  margin: 0 0 22px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(9, 27, 52, 0.075);
}

.app.view-clients .member-hero-copy {
  min-width: 0;
}

.app.view-clients .member-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #48617e;
  font-size: 12.5px;
  font-weight: 680;
  line-height: 1.2;
}

.app.view-clients .member-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00a6d8;
  box-shadow: 0 0 0 4px rgba(0, 166, 216, 0.12);
}

.app.view-clients .member-hero .hello {
  margin: 0;
  color: #06111f;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 780;
}

.app.view-clients .member-pulse {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 2px;
}

.app.view-clients .member-pulse span {
  min-width: 48px;
  display: grid;
  gap: 3px;
}

.app.view-clients .member-pulse b {
  color: #07111f;
  font-family: var(--font-num);
  font-size: 23px;
  line-height: 1;
  font-weight: 760;
}

.app.view-clients .member-pulse em {
  color: #748297;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 620;
  line-height: 1.2;
}

.app.view-clients .member-table.member-board.panel {
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(9, 27, 52, 0.08);
  box-shadow:
    0 28px 70px rgba(18, 43, 82, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.app.view-clients .member-table-head,
.app.view-clients .member-row {
  grid-template-columns: minmax(210px, 1.08fr) 122px minmax(310px, 1.55fr) 122px 156px;
  gap: 16px;
}

.app.view-clients .member-table-head {
  padding: 13px 22px;
  color: #7c899a;
  background: rgba(249, 252, 255, 0.84);
  border-bottom: 1px solid rgba(9, 27, 52, 0.065);
  font-size: 11.5px;
  font-weight: 680;
}

.app.view-clients .member-table-body {
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.36), rgba(255, 255, 255, 0.92));
}

.app.view-clients .member-row {
  min-height: 106px;
  padding: 17px 22px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(9, 27, 52, 0.06);
  transition:
    background-color 180ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.app.view-clients .member-row::before {
  top: 20px;
  bottom: 20px;
  width: 2px;
  border-radius: 0 999px 999px 0;
}

.app.view-clients .member-row.is-primary::before {
  background: linear-gradient(180deg, #006ee6, #00b6d8);
}

@media (hover: hover) and (pointer: fine) {
  .app.view-clients .member-row:hover {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 26px rgba(18, 43, 82, 0.045);
  }
}

.app.view-clients .member-person {
  gap: 13px;
}

.app.view-clients .person-av-wrap {
  width: 46px;
  height: 46px;
}

.app.view-clients .person-av-wrap .kid-av,
.app.view-clients .person-av-wrap .avatar {
  width: 46px;
  height: 46px;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.94),
    0 8px 20px rgba(26, 64, 112, 0.1);
}

.app.view-clients .status-dot {
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-width: 2px;
}

.app.view-clients .member-person-copy strong {
  color: #081321;
  font-size: 14.5px;
  font-weight: 760;
}

.app.view-clients .member-person-copy em {
  color: #6a788d;
  font-size: 12px;
  font-weight: 560;
}

.app.view-clients .member-stage {
  gap: 8px;
}

.app.view-clients .member-priority {
  color: #0066d8;
  font-size: 11px;
  letter-spacing: 0;
}

.app.view-clients .member-stage-pill {
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 690;
}

.app.view-clients .member-ai strong {
  color: #06111f;
  font-size: 14.5px;
  font-weight: 760;
}

.app.view-clients .member-ai p {
  max-width: 48em;
  margin-top: 5px;
  color: #4f6076;
  font-size: 12.5px;
  line-height: 1.58;
}

.app.view-clients .member-signals {
  gap: 6px;
  margin-top: 8px;
}

.app.view-clients .member-signals span {
  min-height: 22px;
  padding: 0 8px;
  color: #3d668d;
  background: rgba(246, 250, 255, 0.88);
  border-color: rgba(0, 110, 230, 0.1);
  font-size: 11px;
  font-weight: 620;
}

.app.view-clients .member-owner strong {
  color: #172235;
  font-size: 13px;
  font-weight: 710;
}

.app.view-clients .member-owner span {
  color: #7b8798;
  font-size: 11.5px;
}

.app.view-clients .member-actions {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.app.view-clients .member-actions .act {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #0878f7, #0068db);
  box-shadow: 0 10px 22px rgba(0, 104, 219, 0.16);
  transition:
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 180ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.app.view-clients .member-actions .act:active {
  transform: scale(0.98);
}

.app.view-clients .member-actions .act.ghost {
  min-width: 54px;
  color: #526176;
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(9, 27, 52, 0.09);
  box-shadow: none;
}

@media (max-width: 900px) {
  .app.view-clients .stage {
    width: min(820px, calc(100% - 56px));
  }

  .app.view-clients .member-table-head,
  .app.view-clients .member-row {
    grid-template-columns: minmax(190px, 1fr) minmax(112px, 0.56fr) minmax(230px, 1.18fr);
  }
}

@media (max-width: 720px) {
  .app.view-clients .col-main {
    background: linear-gradient(180deg, #fcfdff 0%, #f5f9fe 100%);
  }

  .app.view-clients .stage {
    inset: 0 auto 62px 18px;
    width: min(calc(100vw - 36px), 354px);
    padding: 28px 0 24px;
    overflow: auto;
  }

  .app.view-clients .member-hero.member-hero-premium {
    display: block;
    margin: 0 0 16px;
    padding: 0 0 14px;
  }

  .app.view-clients .member-eyebrow {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .app.view-clients .member-hero .hello {
    font-size: 29px;
    line-height: 1.12;
  }

  .app.view-clients .member-pulse {
    gap: 18px;
    margin-top: 13px;
  }

  .app.view-clients .member-pulse span {
    min-width: 42px;
  }

  .app.view-clients .member-pulse b {
    font-size: 20px;
  }

  .app.view-clients .member-pulse em {
    font-size: 11px;
  }

  .app.view-clients .member-table.member-board.panel {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .app.view-clients .member-table-body {
    gap: 10px;
    background: transparent;
  }

  .app.view-clients .member-row {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(9, 27, 52, 0.08);
    box-shadow: 0 14px 30px rgba(18, 43, 82, 0.07);
  }

  .app.view-clients .member-row::before {
    top: 14px;
    bottom: auto;
    height: 34px;
    width: 2px;
  }

  .app.view-clients .person-av-wrap,
  .app.view-clients .person-av-wrap .kid-av,
  .app.view-clients .person-av-wrap .avatar {
    width: 40px;
    height: 40px;
  }

  .app.view-clients .member-stage {
    align-items: flex-end;
  }

  .app.view-clients .member-ai {
    grid-column: 1 / -1;
  }

  .app.view-clients .member-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
  }
}

/* ai115: calmer action hierarchy for member operations */
.app.view-clients .member-actions .act {
  color: #0066d8;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 110, 230, 0.16);
  box-shadow: none;
  font-weight: 700;
}

.app.view-clients .member-row.is-primary .member-actions .act:not(.ghost) {
  color: #ffffff;
  background: linear-gradient(180deg, #0878f7, #0068db);
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(0, 104, 219, 0.16);
}

.app.view-clients .member-actions .act.ghost {
  color: #5f6f84;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(9, 27, 52, 0.09);
}

@media (hover: hover) and (pointer: fine) {
  .app.view-clients .member-actions .act:hover {
    color: #005fcf;
    background: #f6fbff;
    border-color: rgba(0, 110, 230, 0.22);
  }

  .app.view-clients .member-row.is-primary .member-actions .act:not(.ghost):hover {
    color: #ffffff;
    background: linear-gradient(180deg, #0a7cff, #006ee6);
    box-shadow: 0 12px 26px rgba(0, 104, 219, 0.18);
  }
}

/* ai116: AI operating canvas for members */
.app.view-clients .stage {
  width: min(1380px, calc(100% - 84px));
  padding: 48px 42px 56px;
}

.app.view-clients .member-ai-command {
  margin: 0;
}

.app.view-clients .member-ai-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.app.view-clients .member-ai-topline .member-eyebrow {
  margin: 0;
}

.app.view-clients .member-ai-topline .member-pulse {
  gap: 22px;
  padding: 0;
}

.app.view-clients .member-ai-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 360px;
  gap: 14px;
  align-items: stretch;
}

.app.view-clients .member-ai-brief {
  position: relative;
  overflow: hidden;
  min-height: 236px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(0, 166, 216, 0.28), rgba(255, 73, 145, 0.16) 44%, rgba(255, 255, 255, 0) 72%),
    #071322;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 70px rgba(7, 19, 34, 0.16);
}

.app.view-clients .member-ai-brief > * {
  position: relative;
  z-index: 1;
}

.app.view-clients .member-ai-status {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: #c8f4ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 680;
}

.app.view-clients .member-ai-brief h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: 38px;
  line-height: 1.12;
  font-weight: 790;
}

.app.view-clients .member-ai-brief p {
  max-width: 780px;
  margin: 10px 0 0;
  color: rgba(232, 243, 255, 0.82);
  font-size: 14px;
  line-height: 1.72;
}

.app.view-clients .member-ai-capabilities {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.app.view-clients .member-ai-capabilities span {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding-right: 18px;
}

.app.view-clients .member-ai-capabilities b {
  color: #ffffff;
  font-size: 13px;
  font-weight: 760;
}

.app.view-clients .member-ai-capabilities em {
  overflow: hidden;
  color: rgba(232, 243, 255, 0.68);
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app.view-clients .member-ai-verdict.panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(9, 27, 52, 0.08);
  box-shadow: 0 22px 56px rgba(18, 43, 82, 0.08);
}

.app.view-clients .member-ai-verdict span,
.app.view-clients .member-side-panel span,
.app.view-clients .member-section-head span {
  color: #0074cc;
  font-size: 12px;
  font-weight: 760;
}

.app.view-clients .member-ai-verdict strong {
  display: block;
  color: #07111f;
  font-size: 22px;
  line-height: 1.28;
  font-weight: 780;
}

.app.view-clients .member-ai-verdict p {
  margin: 0;
  color: #536176;
  font-size: 13px;
  line-height: 1.68;
}

.app.view-clients .member-ai-verdict .act {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #0878f7, #0068db);
  box-shadow: 0 14px 30px rgba(0, 104, 219, 0.18);
}

.app.view-clients .member-operating-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 326px;
  gap: 18px;
  align-items: start;
  margin-top: 20px;
}

.app.view-clients .member-priority-list {
  min-width: 0;
}

.app.view-clients .member-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 10px;
}

.app.view-clients .member-section-head h2 {
  margin: 4px 0 0;
  color: #07111f;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 760;
}

.app.view-clients .member-section-head em {
  color: #768397;
  font-size: 12px;
  font-style: normal;
  font-weight: 620;
}

.app.view-clients .member-command-list {
  display: grid;
  gap: 10px;
}

.app.view-clients .member-command-card {
  position: relative;
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: 58px minmax(190px, 0.78fr) minmax(0, 1.48fr) 188px;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(9, 27, 52, 0.08);
  box-shadow: 0 14px 34px rgba(18, 43, 82, 0.055);
  transition:
    background-color 180ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 180ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.app.view-clients .member-command-card.is-primary {
  border-color: rgba(0, 110, 230, 0.2);
  background:
    linear-gradient(90deg, rgba(0, 110, 230, 0.045), rgba(255, 255, 255, 0) 46%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(0, 88, 180, 0.09);
}

@media (hover: hover) and (pointer: fine) {
  .app.view-clients .member-command-card:hover {
    background: #ffffff;
    border-color: rgba(0, 110, 230, 0.16);
    box-shadow: 0 18px 44px rgba(18, 43, 82, 0.08);
  }
}

.app.view-clients .member-card-rank {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.app.view-clients .member-card-rank span {
  color: #c1cad8;
  font-family: var(--font-num);
  font-size: 26px;
  line-height: 1;
  font-weight: 780;
}

.app.view-clients .member-card-rank em {
  color: #0066d8;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 760;
}

.app.view-clients .member-card-person {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
}

.app.view-clients .member-card-body {
  min-width: 0;
}

.app.view-clients .member-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 7px;
}

.app.view-clients .member-card-meta span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #506178;
  background: #f5f8fc;
  border: 1px solid rgba(9, 27, 52, 0.07);
  font-size: 11px;
  font-weight: 640;
}

.app.view-clients .member-command-card.tone-danger .member-card-meta span:first-child {
  color: #b42332;
  background: #fff3f4;
  border-color: rgba(180, 35, 50, 0.12);
}

.app.view-clients .member-command-card.tone-warn .member-card-meta span:first-child {
  color: #9a5b00;
  background: #fff8e8;
  border-color: rgba(154, 91, 0, 0.12);
}

.app.view-clients .member-command-card.tone-info .member-card-meta span:first-child {
  color: #005fcf;
  background: #eef7ff;
  border-color: rgba(0, 110, 230, 0.12);
}

.app.view-clients .member-command-card.tone-ok .member-card-meta span:first-child {
  color: #12643d;
  background: #eefaf3;
  border-color: rgba(18, 100, 61, 0.1);
}

.app.view-clients .member-card-body h3 {
  margin: 0;
  color: #06111f;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 780;
}

.app.view-clients .member-card-body p {
  max-width: 56em;
  margin: 5px 0 0;
  color: #506178;
  font-size: 13px;
  line-height: 1.62;
}

.app.view-clients .member-card-actions {
  display: grid;
  gap: 8px;
}

.app.view-clients .member-card-actions .act {
  min-height: 38px;
  justify-content: center;
  border-radius: 8px;
  color: #0066d8;
  background: #ffffff;
  border: 1px solid rgba(0, 110, 230, 0.16);
  box-shadow: none;
  font-weight: 720;
  transition:
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 180ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 180ms cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.app.view-clients .member-card-actions .act:active,
.app.view-clients .member-ai-verdict .act:active {
  transform: scale(0.98);
}

.app.view-clients .member-command-card.is-primary .member-card-actions .act:not(.ghost) {
  color: #ffffff;
  background: linear-gradient(180deg, #0878f7, #0068db);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(0, 104, 219, 0.16);
}

.app.view-clients .member-card-actions .act.ghost {
  color: #5f6f84;
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(9, 27, 52, 0.09);
}

.app.view-clients .member-ai-aside {
  display: grid;
  gap: 12px;
}

.app.view-clients .member-side-panel.panel {
  margin: 0;
  padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(9, 27, 52, 0.08);
  box-shadow: 0 16px 38px rgba(18, 43, 82, 0.06);
}

.app.view-clients .member-side-panel h2 {
  margin: 8px 0 0;
  color: #07111f;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 770;
}

.app.view-clients .member-side-panel p {
  margin: 10px 0 0;
  color: #5f6f84;
  font-size: 13px;
  line-height: 1.68;
}

@media (max-width: 1160px) {
  .app.view-clients .stage {
    width: min(1040px, calc(100% - 56px));
    padding-inline: 28px;
  }

  .app.view-clients .member-ai-hero,
  .app.view-clients .member-operating-grid {
    grid-template-columns: 1fr;
  }

  .app.view-clients .member-ai-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app.view-clients .member-command-card {
    grid-template-columns: 54px minmax(180px, 0.74fr) minmax(0, 1fr) 174px;
  }
}

@media (max-width: 720px) {
  .app.view-clients .stage {
    inset: 0 0 62px 0;
    width: 100%;
    padding: 20px 16px 22px;
    overflow: auto;
  }

  .app.view-clients .member-ai-topline {
    display: block;
    margin-bottom: 14px;
  }

  .app.view-clients .member-ai-topline .member-pulse {
    justify-content: flex-start;
    gap: 18px;
    margin-top: 14px;
  }

  .app.view-clients .member-ai-hero {
    display: block;
  }

  .app.view-clients .member-ai-brief {
    min-height: 0;
    gap: 20px;
    padding: 22px 18px;
  }

  .app.view-clients .member-ai-status {
    min-height: 26px;
    font-size: 11.5px;
  }

  .app.view-clients .member-ai-brief h1 {
    font-size: 25px;
    line-height: 1.18;
  }

  .app.view-clients .member-ai-brief p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.62;
  }

  .app.view-clients .member-ai-capabilities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
    padding-top: 16px;
  }

  .app.view-clients .member-ai-capabilities span {
    padding-right: 4px;
  }

  .app.view-clients .member-ai-capabilities em {
    white-space: normal;
  }

  .app.view-clients .member-ai-verdict,
  .app.view-clients .member-ai-aside {
    display: none !important;
  }

  .app.view-clients .member-operating-grid {
    display: block;
    margin-top: 18px;
  }

  .app.view-clients .member-section-head {
    display: block;
    margin-bottom: 12px;
  }

  .app.view-clients .member-section-head h2 {
    font-size: 18px;
  }

  .app.view-clients .member-section-head em {
    display: block;
    margin-top: 6px;
  }

  .app.view-clients .member-command-list {
    gap: 12px;
  }

  .app.view-clients .member-command-card {
    min-height: 0;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px 10px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(18, 43, 82, 0.075);
  }

  .app.view-clients .member-card-rank span {
    font-size: 21px;
  }

  .app.view-clients .member-card-rank em {
    font-size: 11px;
  }

  .app.view-clients .member-card-person {
    gap: 11px;
  }

  .app.view-clients .member-card-body,
  .app.view-clients .member-card-actions {
    grid-column: 1 / -1;
  }

  .app.view-clients .member-card-meta {
    gap: 6px;
    margin-bottom: 8px;
  }

  .app.view-clients .member-card-body h3 {
    font-size: 16px;
  }

  .app.view-clients .member-card-body p {
    font-size: 13px;
    line-height: 1.6;
  }

  .app.view-clients .member-card-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .app.view-clients .member-card-actions .act {
    min-height: 40px;
    padding: 0 10px;
  }
}

/* ai117: scroll without chrome, compact mobile command surface */
.app.view-clients .col-main {
  overflow: auto;
  scrollbar-width: none;
}

.app.view-clients .col-main::-webkit-scrollbar {
  display: none;
}

@media (max-width: 720px) {
  .app.view-clients .member-ai-brief {
    gap: 15px;
    padding: 18px;
  }

  .app.view-clients .member-ai-brief h1 {
    font-size: 23px;
  }

  .app.view-clients .member-ai-brief p {
    font-size: 12.5px;
  }

  .app.view-clients .member-ai-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
  }

  .app.view-clients .member-ai-capabilities span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .app.view-clients .member-ai-capabilities b {
    font-size: 12.5px;
  }

  .app.view-clients .member-ai-capabilities em {
    display: none;
  }
}

/* ai118: restore Today and Ask pages to previous rich design */
.app.view-today .stage,
.app.view-ai .stage {
  width: min(860px, calc(100% - 72px));
  padding-bottom: 150px;
}

.app.view-today .home-hero {
  margin-bottom: 16px;
}

.app.view-today .decision-panel {
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.08), rgba(0, 167, 216, 0.03) 34%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.9));
  border: 1px solid rgba(12, 28, 52, 0.09);
  box-shadow: 0 18px 48px rgba(15, 38, 80, 0.085), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.app.view-today .decision-panel::before {
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #006ee6, #00a7d8, rgba(238, 92, 152, 0.56));
}

.app.view-today .decision-head {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px 0;
}

.app.view-today .decision-status {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 26px;
  color: #005fcf;
  font-size: 11.5px;
  font-weight: 700;
}

.app.view-today .decision-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00a7d8;
  box-shadow: 0 0 0 4px rgba(0, 167, 216, 0.13);
}

.app.view-today .decision-core,
.app.view-today .decision-panel.is-follow-scene .decision-core {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 20px 14px;
}

.app.view-today .decision-avatar {
  display: grid;
}

.app.view-today .decision-avatar .kid-av,
.app.view-today .decision-avatar .avatar,
.app.view-today .decision-avatar .focus-faces,
.app.view-today .decision-avatar .focus-biz-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.86),
    0 14px 34px rgba(13, 45, 92, 0.12);
}

.app.view-today .decision-copy h2 {
  padding-right: 0;
  font-size: 25px;
  line-height: 1.24;
  font-weight: 760;
}

.app.view-today .decision-copy p:not(.decision-kicker) {
  max-width: 42em;
  color: #435269;
  font-size: 14px;
  line-height: 1.64;
}

.app.view-today .decision-actions .act {
  width: auto;
  min-height: 36px;
  justify-content: center;
}

.app.view-today .decision-evidence {
  display: flex !important;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 20px 12px 102px;
}

.app.view-today .decision-evidence span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #2f5579;
  background: rgba(239, 247, 255, 0.82);
  border: 1px solid rgba(0, 110, 230, 0.1);
  font-size: 11.5px;
}

.app.view-today .decision-next {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(12, 28, 52, 0.07);
  background: rgba(255, 255, 255, 0.55);
}

.app.view-today .decision-next-item {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 15px 20px;
  text-align: left;
  border-right: 1px solid rgba(12, 28, 52, 0.07);
}

.app.view-today .decision-next-item:last-child {
  border-right: 0;
}

.app.view-today .decision-next-item span {
  color: #0062cf;
  font-size: 11px;
  font-weight: 700;
}

.app.view-today .decision-next-item strong {
  overflow: hidden;
  color: #111b2b;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app.view-today .decision-next-item em {
  overflow: hidden;
  color: #65738a;
  font-size: 12px;
  font-style: normal;
  line-height: 1.42;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app.view-ai .ai-command {
  width: min(760px, 100%);
  padding-top: 28px;
}

.app.view-ai .ai-command-head {
  margin-bottom: 18px;
}

.app.view-ai .ai-context-line span {
  display: inline-block !important;
}

.app.view-ai .ai-primary-ico {
  display: grid !important;
}

.app.view-ai .ai-primary-copy em {
  display: block !important;
}

.app.view-ai .ai-primary-action {
  min-height: 112px;
  grid-template-columns: 42px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(12, 28, 52, 0.09);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 110, 230, 0.075), rgba(0, 167, 216, 0.035) 36%, rgba(255, 211, 61, 0.055) 100%),
    rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 54px rgba(15, 38, 80, 0.1), 0 1px 0 rgba(255, 255, 255, 0.94) inset;
}

.app.view-ai .ai-primary-ico {
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #005fcf;
  background: #eef7ff;
  border: 1px solid rgba(0, 110, 230, 0.12);
}

.app.view-ai .ai-primary-copy {
  display: grid;
  gap: 7px;
}

.app.view-ai .ai-primary-copy strong {
  font-size: 21px;
}

.app.view-ai .ai-primary-copy em {
  color: #52647b;
  font-size: 13.5px;
  line-height: 1.55;
  font-style: normal;
  font-weight: 520;
}

.app.view-ai .ai-starters-min {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.app.view-ai .ai-starters-min .ai-starter,
.app.view-ai .ai-starters-min .ai-starter-text {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  color: #172235;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(12, 28, 52, 0.08);
  box-shadow: 0 12px 30px rgba(15, 38, 80, 0.06);
}

.app.view-ai .ai-starter-text span:first-child {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

.app.view-ai .chips,
.app.view-today .chips {
  display: flex !important;
}

@media (max-width: 720px) {
  .app.view-today .stage,
  .app.view-ai .stage {
    inset: 0 auto 164px 18px;
    width: min(calc(100vw - 36px), 354px);
    padding: 28px 0 24px;
  }

  .app.view-today .decision-panel {
    border-radius: 16px;
  }

  .app.view-today .decision-head {
    padding: 14px 14px 0;
  }

  .app.view-today .decision-core,
  .app.view-today .decision-panel.is-follow-scene .decision-core {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px 12px;
  }

  .app.view-today .decision-copy h2 {
    font-size: 19px;
  }

  .app.view-today .decision-actions {
    grid-column: 1 / -1;
  }

  .app.view-today .decision-actions .act {
    width: 100%;
  }

  .app.view-today .decision-evidence {
    padding: 0 14px 14px;
  }

  .app.view-today .decision-next {
    display: none !important;
  }

  .app.view-ai .ai-command {
    padding-top: 26px;
  }

  .app.view-ai .ai-primary-action {
    min-height: 96px;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    padding: 18px;
    border-radius: 16px;
  }

  .app.view-ai .ai-primary-ico {
    width: 38px;
    height: 38px;
  }

  .app.view-ai .ai-starters-min {
    grid-template-columns: 1fr;
  }

  .app.view-ai .ai-starters-min .ai-starter,
  .app.view-ai .ai-starters-min .ai-starter-text {
    min-height: 58px;
    padding: 13px 14px;
  }
}

/* ai119: remove decorative member chrome */
.app.view-clients .stage {
  width: min(1120px, calc(100% - 96px));
  padding-top: 58px;
}

.app.view-clients .member-clean-head {
  margin: 0 0 22px;
}

.app.view-clients .member-clean-head .member-eyebrow {
  margin: 0 0 12px;
}

.app.view-clients .member-clean-head h1 {
  margin: 0;
  color: #06111f;
  font-size: 38px;
  line-height: 1.08;
  font-weight: 780;
}

.app.view-clients .member-operating-grid.is-clean {
  display: block;
  margin-top: 0;
}

.app.view-clients .member-operating-grid.is-clean .member-priority-list {
  width: 100%;
}

.app.view-clients .member-operating-grid.is-clean .member-section-head {
  margin-bottom: 12px;
}

.app.view-clients .member-operating-grid.is-clean .member-command-card {
  grid-template-columns: 58px minmax(210px, 0.72fr) minmax(0, 1.5fr) 188px;
}

@media (max-width: 720px) {
  .app.view-clients .stage {
    inset: 0 0 62px 0;
    width: 100%;
    padding: 26px 16px 22px;
  }

  .app.view-clients .member-clean-head {
    margin-bottom: 18px;
  }

  .app.view-clients .member-clean-head h1 {
    font-size: 30px;
    line-height: 1.12;
  }

  .app.view-clients .member-operating-grid.is-clean .member-command-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}

/* ai120: AI-style conversation history and search */
.chat-history[hidden] {
  display: none !important;
}

.app.has-history {
  grid-template-columns: var(--sidebar-w) 268px minmax(0, 1fr);
}

.chat-history {
  grid-row: 1 / -1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 10px;
  background: rgba(251, 253, 255, 0.92);
  border-right: 1px solid rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.history-top {
  display: grid;
  gap: 10px;
}

.history-new {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  color: #07111f;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 20px rgba(15, 38, 80, 0.055);
  font-size: 13px;
  font-weight: 720;
  transition:
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 180ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 180ms cubic-bezier(0.23, 1, 0.32, 1);
}

.history-new:active,
.history-item:active,
.ai-mobile-history button:active {
  transform: scale(0.98);
}

.history-search {
  min-height: 38px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border-radius: 8px;
  color: #6b778a;
  background: rgba(245, 249, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.075);
}

.history-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #07111f;
  font-size: 13px;
}

.history-search input::placeholder {
  color: #8a96a8;
}

.history-scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.history-scroll::-webkit-scrollbar {
  display: none;
}

.history-group {
  margin: 14px 6px 6px;
  color: #8a96a8;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.history-item {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 9px 8px;
  border-radius: 8px;
  color: #334155;
  text-align: left;
  transition:
    background-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    transform 140ms cubic-bezier(0.23, 1, 0.32, 1);
}

.history-item-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #006ee6;
  background: #eef7ff;
}

.history-item-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.history-item-copy strong {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  line-height: 1.28;
  font-weight: 690;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item-copy em {
  overflow: hidden;
  color: #69778a;
  font-size: 11.5px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item time {
  color: #9aa5b5;
  font-size: 10.5px;
  line-height: 1.3;
  white-space: nowrap;
}

.history-item.is-on,
.history-item.is-live,
.history-item:hover {
  background: #ffffff;
  color: #07111f;
}

.history-empty {
  padding: 18px 8px;
  color: #8a96a8;
  font-size: 12px;
}

.history-foot {
  padding: 0 6px;
  color: #9aa5b5;
  font-size: 11px;
}

.ai-mobile-history {
  display: none;
}

@media (max-width: 900px) {
  .app.has-history {
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }

  .chat-history {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .app.has-history {
    grid-template-columns: 1fr;
  }

  .ai-mobile-history {
    display: block;
    margin: 0 0 14px;
  }

  .ai-mobile-history-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  .ai-mobile-history-head button,
  .ai-mobile-history-search {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: #334155;
    font-size: 12.5px;
    font-weight: 700;
  }

  .ai-mobile-history-search {
    justify-content: flex-start;
    padding: 0 11px;
  }

  .ai-mobile-history-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #07111f;
    font-size: 12.5px;
  }

  .ai-mobile-history-search input::placeholder {
    color: #8a96a8;
  }

  .ai-mobile-history-list {
    display: grid;
    gap: 6px;
  }

  .ai-mobile-history .history-group {
    display: none;
  }

  .ai-mobile-history .history-item {
    min-height: 44px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 23, 42, 0.06);
  }

  .ai-mobile-history .history-item time {
    display: none;
  }
}

/* ai122: keep the left rail as navigation; history lives inside the AI page */
.chat-history {
  display: none !important;
}

.app.view-ai .stage {
  width: min(980px, calc(100% - 120px));
}

.app.view-ai .ai-command {
  width: min(820px, 100%);
}

.ai-inline-history {
  display: grid;
  gap: 10px;
  margin: -2px 0 16px;
}

.ai-inline-toolbar {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.ai-new-topic,
.ai-history-search {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(12, 28, 52, 0.08);
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-size: 13px;
  font-weight: 680;
}

.ai-new-topic {
  justify-content: center;
  transition:
    transform 120ms cubic-bezier(0.23, 1, 0.32, 1),
    color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    border-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.ai-new-topic:active,
.ai-history-link:active {
  transform: scale(0.98);
}

.ai-history-search {
  padding: 0 12px;
  color: #7a8798;
}

.ai-history-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0a1422;
  font-size: 13px;
}

.ai-history-search input::placeholder {
  color: #8d98a8;
}

.ai-history-strip {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: #78869a;
  font-size: 12px;
}

.ai-history-strip > span {
  margin-right: 2px;
  color: #8a96a8;
  font-weight: 680;
}

.ai-history-link {
  max-width: 210px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 0 2px;
  color: #52647b;
  text-align: left;
  border-radius: 6px;
  transition:
    transform 120ms cubic-bezier(0.23, 1, 0.32, 1),
    color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.ai-history-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-history-link em {
  color: #9aa6b6;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.ai-history-link.is-on,
.ai-history-link:hover {
  color: #006ee6;
}

.ai-history-empty {
  color: #8a96a8;
}

@media (max-width: 900px) {
  .app.view-ai .stage {
    width: min(820px, calc(100% - 56px));
  }
}

@media (max-width: 720px) {
  .app.view-ai .stage {
    inset: 0 auto 164px 18px;
    width: min(calc(100vw - 36px), 392px);
  }

  .app.view-ai .ai-command {
    width: 100%;
  }

  .ai-inline-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
  }

  .ai-new-topic,
  .ai-history-search {
    min-height: 36px;
    font-size: 12.5px;
  }

  .ai-history-strip {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .ai-history-strip::-webkit-scrollbar {
    display: none;
  }

  .ai-history-strip > span {
    flex: 0 0 auto;
  }

  .ai-history-link {
    flex: 0 0 auto;
    max-width: 230px;
  }
}

/* ai123: ChatGPT-style product sidebar */
:root {
  --sidebar-w: 304px;
}

.app {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}

.sidebar {
  align-items: stretch;
  gap: 14px;
  padding: 18px 14px 14px;
  background: #f7f8fa;
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: none;
  overflow: hidden;
}

.side-top {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-bottom: 2px;
}

.brand-lockup {
  width: 100%;
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.brand-lockup:hover,
.side-icon-btn:hover,
.side-action-btn:hover,
.side-history-item:hover,
.side-user-main:hover,
.side-user-wrap.is-open .side-user-main {
  background: rgba(15, 23, 42, 0.055);
}

.brand-logo-shell {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
}

.brand-logo-full {
  width: 24px;
  max-width: 24px;
  max-height: 24px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.18;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-text em {
  overflow: hidden;
  color: #6b7280;
  font-size: 11px;
  font-style: normal;
  line-height: 1.15;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #64748b;
  transition:
    transform 120ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.side-icon-btn:active,
.side-action-btn:active,
.side-history-item:active {
  transform: scale(0.98);
}

.side-primary-actions {
  display: grid;
  gap: 9px;
  flex: 0 0 auto;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.side-primary-actions::before,
.side-nav::before {
  display: block;
  margin: 2px 8px 0;
  color: #98a2b3;
  font-size: 11px;
  line-height: 1;
  font-weight: 680;
}

.side-primary-actions::before {
  content: "开始";
}

.side-nav::before {
  content: "工作";
  margin-bottom: 2px;
}

.side-action-btn,
.side-search {
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 8px;
  color: #253142;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.075);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
  text-align: left;
}

.side-action-btn strong {
  justify-self: start;
  color: #111827;
  font-size: 13px;
  font-weight: 720;
}

.side-search {
  color: #7b8797;
  background: #eef2f7;
  border-color: rgba(15, 23, 42, 0.055);
  box-shadow: none;
}

.side-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-size: 13px;
}

.side-search input::placeholder {
  color: #8a94a5;
}

.side-context {
  display: none;
}

.side-nav {
  width: 100%;
  gap: 5px;
  padding: 0 0 14px;
  align-items: stretch;
  flex: 0 0 auto;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.side-nav-item {
  width: 100%;
  height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  justify-items: stretch;
  gap: 8px;
  padding: 0 12px;
  border-radius: 8px;
  color: #4b5563;
  background: transparent;
  letter-spacing: 0;
}

.side-nav-item:hover {
  color: #111827;
  background: rgba(15, 23, 42, 0.055);
}

.side-nav-item.is-on {
  color: #0b63ce;
  background: #eaf3ff;
  box-shadow: none;
}

.side-nav-item.is-on::before {
  display: none;
}

.side-nav-ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: inherit;
  opacity: 0.9;
  border-radius: 0;
  background: transparent;
}

.side-nav-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.side-nav-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  line-height: 1.18;
  font-weight: 660;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-nav-copy em {
  display: none;
}

.side-history {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

.side-history::-webkit-scrollbar {
  display: none;
}

.side-section-title {
  margin: 13px 9px 5px;
  color: #8a94a5;
  font-size: 11.5px;
  line-height: 1;
  font-weight: 680;
}

.side-history > .side-section-title:first-child {
  margin-top: 2px;
}

.side-history-item {
  width: 100%;
  min-height: 36px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #374151;
  text-align: left;
  transition:
    transform 120ms cubic-bezier(0.23, 1, 0.32, 1),
    background-color 160ms cubic-bezier(0.23, 1, 0.32, 1),
    color 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.side-history-item span,
.side-history-item time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-history-item span {
  color: inherit;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 620;
}

.side-history-item time {
  color: #9aa4b2;
  font-size: 11px;
  line-height: 1;
  font-weight: 560;
}

.side-history-item.is-on,
.side-history-item.is-live {
  color: #0b63ce;
  background: #eaf3ff;
}

.side-empty {
  padding: 12px 9px;
  color: #8a94a5;
  font-size: 12px;
}

.side-spacer {
  display: none;
}

.side-user-wrap {
  width: 100%;
  flex: 0 0 auto;
}

.side-user {
  width: 100%;
  height: auto;
  display: block;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.side-user-main {
  width: 100%;
  height: 46px;
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 8px;
  border-radius: 8px;
}

.side-user-av-wrap,
.side-user-av {
  width: 30px;
  height: 30px;
}

.side-user-av {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 0 0 2px #ffffff;
}

.side-user-text {
  min-width: 0;
  display: grid;
  gap: 1px;
  flex: 1;
}

.side-user-text strong {
  overflow: hidden;
  color: #1f2937;
  font-size: 12.5px;
  line-height: 1.2;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user-text span {
  overflow: hidden;
  color: #7b8797;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.side-user-caret {
  display: grid;
  place-items: center;
  color: #94a3b8;
  transform: rotate(-90deg);
}

.side-role-menu {
  left: 12px;
  right: 12px;
  bottom: 58px;
  width: auto;
  border-radius: 10px;
}

.app.view-ai .stage {
  width: min(900px, calc(100% - 92px));
  padding-top: 72px;
}

.app.view-today .stage {
  width: min(900px, calc(100% - 92px));
}

.app.view-ai .ai-inline-history {
  display: none;
}

@media (max-width: 1100px) {
  :root {
    --sidebar-w: 280px;
  }

  .app.view-ai .stage,
  .app.view-today .stage {
    width: min(820px, calc(100% - 56px));
  }
}

@media (max-width: 720px) {
  :root {
    --sidebar-w: 0px;
  }

  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .app.view-ai .ai-inline-history {
    display: grid;
  }

  .bottom-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bottom-nav button {
    min-width: 0;
  }
}

/* ai126: vertical work-loop redesign for AI operations */
:root {
  --slm-ink: #07111f;
  --slm-muted: #667085;
  --slm-line: rgba(15, 23, 42, 0.09);
  --slm-soft: #f4f7fa;
  --slm-surface: #ffffff;
  --slm-brand: #008f8a;
  --slm-brand-dark: #07645f;
  --slm-blue: #0b63ce;
}

.app.view-ai .col-main,
.app.view-clients .col-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 248, 252, 0.9)),
    #f6f8fb;
}

.app.view-ai .stage {
  width: min(1240px, calc(100% - 96px));
  padding: 64px 0 150px;
}

.os-home {
  display: grid;
  gap: 22px;
}

.os-topbar,
.member-ops-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--slm-line);
}

.os-kicker,
.member-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: #37506f;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 680;
}

.os-kicker span,
.member-eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slm-brand);
  box-shadow: 0 0 0 5px rgba(0, 143, 138, 0.12);
}

.os-topbar h1,
.member-ops-head h1 {
  max-width: 820px;
  margin: 0;
  color: var(--slm-ink);
  font-size: 36px;
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.os-title-mobile {
  display: none;
}

.os-topbar p:not(.os-kicker),
.member-ops-head p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.7;
}

.os-sync,
.member-ops-metrics {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  color: #667085;
}

.os-sync {
  display: grid;
  min-width: 150px;
  justify-items: end;
  gap: 2px;
}

.os-sync span,
.os-sync em,
.member-ops-metrics em {
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 560;
}

.os-sync strong,
.member-ops-metrics strong {
  color: var(--slm-ink);
  font-family: var(--font-num);
  font-size: 28px;
  line-height: 1;
  font-weight: 760;
}

.member-ops-metrics span {
  min-width: 54px;
  display: grid;
  gap: 4px;
  justify-items: center;
}

.os-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.os-queue,
.os-agent,
.member-ops-main,
.member-ops-detail {
  min-width: 0;
  border: 1px solid var(--slm-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.os-queue,
.member-ops-main {
  overflow: hidden;
}

.os-section-head,
.member-ops-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--slm-line);
  background: rgba(250, 252, 255, 0.72);
}

.os-section-head span,
.member-ops-toolbar span,
.os-agent-head span,
.os-evidence > span,
.member-ops-detail-head span,
.member-ops-evidence > span {
  color: var(--slm-brand-dark);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.os-section-head h2,
.member-ops-toolbar h2,
.os-agent-head strong,
.member-ops-detail-head h2 {
  margin: 4px 0 0;
  color: var(--slm-ink);
  font-size: 18px;
  line-height: 1.28;
  font-weight: 720;
}

.os-text-action {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--slm-brand-dark);
  font-size: 12px;
  font-weight: 680;
}

.os-text-action:hover {
  background: rgba(0, 143, 138, 0.08);
}

.os-row-list {
  display: grid;
}

.os-row {
  min-height: 82px;
  display: grid;
  grid-template-columns: 52px minmax(150px, 0.72fr) minmax(0, 1.35fr) 112px 126px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.os-row:last-child {
  border-bottom: 0;
}

.os-row.is-primary {
  background: linear-gradient(90deg, rgba(0, 143, 138, 0.06), rgba(255, 255, 255, 0) 42%);
}

.os-row-index {
  display: grid;
  gap: 4px;
}

.os-row-index span {
  color: #b8c2cf;
  font-family: var(--font-num);
  font-size: 20px;
  line-height: 1;
  font-weight: 760;
}

.os-row-index em {
  color: var(--slm-brand-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 720;
}

.os-subject {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
}

.os-initial,
.member-ops-initial {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--slm-brand-dark);
  background: #e8f6f4;
  border: 1px solid rgba(0, 143, 138, 0.16);
  font-weight: 760;
}

.os-subject span:last-child,
.os-row-main,
.os-row-meta,
.member-ops-service span:last-child,
.member-ops-contact,
.member-ops-work,
.member-ops-owner {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.os-subject strong,
.member-ops-service strong,
.member-ops-contact strong,
.member-ops-owner strong {
  overflow: hidden;
  color: var(--slm-ink);
  font-size: 13.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-subject em,
.os-row-meta em,
.member-ops-service em,
.member-ops-contact em,
.member-ops-owner em {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-row-main strong,
.member-ops-work strong {
  color: var(--slm-ink);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 720;
}

.os-row-main p,
.member-ops-work em {
  overflow: hidden;
  margin: 0;
  color: #536176;
  font-size: 12.5px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-row-meta span {
  color: #344054;
  font-size: 13px;
  font-weight: 680;
}

.os-row-action {
  min-height: 34px;
  border-radius: 8px;
  color: var(--slm-brand-dark);
  background: transparent;
  border: 1px solid rgba(0, 143, 138, 0.24);
  font-size: 12.5px;
  font-weight: 720;
}

.os-row-action.is-primary,
.os-approval button {
  color: #ffffff;
  background: var(--slm-brand-dark);
  border-color: var(--slm-brand-dark);
}

.os-agent,
.member-ops-detail {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.os-agent-head p,
.member-ops-detail-head p {
  margin: 8px 0 0;
  color: #536176;
  font-size: 13px;
  line-height: 1.62;
}

.os-evidence,
.member-ops-evidence {
  display: grid;
  gap: 9px;
}

.os-evidence div,
.member-ops-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.os-evidence em,
.member-ops-evidence em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #3f5f5b;
  background: #edf7f5;
  border: 1px solid rgba(0, 143, 138, 0.13);
  font-size: 11.5px;
  font-style: normal;
  font-weight: 620;
}

.os-agent-steps,
.member-ops-plan {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.os-agent-steps li,
.member-ops-plan li {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 16px;
}

.os-agent-steps li:last-child,
.member-ops-plan li:last-child {
  padding-bottom: 0;
}

.os-agent-steps li::before,
.member-ops-plan li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: rgba(15, 23, 42, 0.12);
}

.os-agent-steps li:last-child::before,
.member-ops-plan li:last-child::before {
  display: none;
}

.os-agent-steps li > span,
.member-ops-plan li > span {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  border-radius: 50%;
  background: #d0d5dd;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.os-agent-steps li.is-done > span,
.member-ops-plan li.is-done > span {
  background: var(--slm-brand);
}

.os-agent-steps li.is-now > span,
.member-ops-plan li.is-now > span {
  background: var(--slm-blue);
  box-shadow: 0 0 0 4px rgba(11, 99, 206, 0.12);
}

.os-agent-steps strong,
.member-ops-plan strong {
  display: block;
  color: var(--slm-ink);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.os-agent-steps em,
.member-ops-plan em {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  font-style: normal;
}

.os-approval {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--slm-line);
}

.os-approval span {
  color: #667085;
  font-size: 12px;
  font-weight: 620;
}

.os-approval button {
  min-height: 38px;
  border-radius: 8px;
  font-weight: 720;
}

.os-prompt-row {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

.os-prompt-row button {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  color: #344054;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--slm-line);
  font-size: 12.5px;
  font-weight: 620;
}

.app.view-clients .stage {
  width: min(1360px, calc(100% - 88px));
  padding: 54px 0 64px;
}

.member-ops-head {
  margin-bottom: 20px;
}

.member-ops-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
}

.member-ops-toolbar {
  align-items: center;
}

.member-ops-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.member-ops-tabs .member-tab {
  min-height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  background: transparent;
  border-color: var(--slm-line);
  box-shadow: none;
  font-size: 12px;
}

.member-ops-tabs .member-tab.is-on {
  color: var(--slm-brand-dark);
  background: #e8f6f4;
  border-color: rgba(0, 143, 138, 0.18);
}

.member-ops-table-head,
.member-ops-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(132px, 0.72fr) minmax(260px, 1.45fr) 104px 120px;
  gap: 16px;
  align-items: center;
}

.member-ops-table-head {
  min-height: 40px;
  padding: 0 18px;
  color: #667085;
  background: #fbfcfe;
  border-bottom: 1px solid var(--slm-line);
  font-size: 11.5px;
  font-weight: 680;
}

.member-ops-table-body {
  display: grid;
}

.member-ops-row {
  min-height: 74px;
  padding: 12px 18px;
  color: inherit;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  text-align: left;
}

.member-ops-row:last-child {
  border-bottom: 0;
}

.member-ops-row:hover,
.member-ops-row.is-selected {
  background: linear-gradient(90deg, rgba(0, 143, 138, 0.055), rgba(255, 255, 255, 0) 46%);
}

.member-ops-service {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.member-ops-state {
  width: fit-content;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #475467;
  background: #f3f5f8;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 11.5px;
  font-weight: 680;
}

.member-ops-state.tone-danger {
  color: #b42332;
  background: #fff4f4;
  border-color: rgba(180, 35, 50, 0.14);
}

.member-ops-state.tone-warn {
  color: #9a5b00;
  background: #fff8e8;
  border-color: rgba(154, 91, 0, 0.14);
}

.member-ops-state.tone-info {
  color: #0b63ce;
  background: #eef6ff;
  border-color: rgba(11, 99, 206, 0.14);
}

.member-ops-state.tone-ok {
  color: #12643d;
  background: #eefaf3;
  border-color: rgba(18, 100, 61, 0.12);
}

.member-entity-split {
  display: grid;
  gap: 8px;
  margin: 0;
}

.member-entity-split div {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.member-entity-split div:last-child {
  border-bottom: 0;
}

.member-entity-split dt {
  color: #667085;
  font-size: 11.5px;
  font-weight: 650;
}

.member-entity-split dd {
  margin: 0;
  color: var(--slm-ink);
  font-size: 13px;
  font-weight: 700;
}

.member-ops-actions {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--slm-line);
}

.member-ops-actions .act {
  min-height: 38px;
  justify-content: center;
  border-radius: 8px;
  background: var(--slm-brand-dark);
  border-color: var(--slm-brand-dark);
  box-shadow: none;
}

.member-ops-actions .act.ghost {
  color: #344054;
  background: #ffffff;
  border: 1px solid var(--slm-line);
}

.member-ops-empty {
  padding: 28px 18px;
  color: #667085;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .app.view-ai .stage,
  .app.view-clients .stage {
    width: min(960px, calc(100% - 56px));
  }

  .os-layout,
  .member-ops-shell {
    grid-template-columns: 1fr;
  }

  .member-ops-detail {
    display: none;
  }

  .os-row,
  .member-ops-table-head,
  .member-ops-row {
    grid-template-columns: minmax(160px, 0.9fr) minmax(0, 1.4fr) 118px;
  }

  .os-row-index,
  .os-row-meta,
  .member-ops-contact,
  .member-ops-state {
    display: none;
  }

  .member-ops-table-head span:nth-child(2),
  .member-ops-table-head span:nth-child(4) {
    display: none;
  }
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  .workspace,
  .app.view-ai .col-main,
  .app.view-clients .col-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .app.view-ai .stage,
  .app.view-clients .stage {
    inset: 0 0 62px 0;
    width: auto;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    padding: 26px 18px 180px;
    overflow: auto;
    overflow-x: hidden;
  }

  .os-home,
  .os-layout,
  .os-queue,
  .os-agent,
  .os-row,
  .member-ops-shell,
  .member-ops-main,
  .member-ops-table,
  .member-ops-table-body,
  .member-ops-row {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .app.view-ai .ai-inline-history {
    display: none;
  }

  .os-topbar > div,
  .member-ops-head > div,
  .os-row-main,
  .member-ops-person,
  .member-ops-work {
    inline-size: 100%;
    min-width: 0;
  }

  .os-topbar,
  .member-ops-head {
    display: block;
    padding-bottom: 16px;
  }

  .os-topbar h1,
  .member-ops-head h1 {
    font-size: 25px;
    line-height: 1.16;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .os-kicker,
  .member-eyebrow,
  .os-topbar p:not(.os-kicker),
  .member-ops-head p,
  .os-row-main h3,
  .os-row-main p,
  .member-ops-work strong,
  .member-ops-work em {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .os-queue,
  .member-ops-main {
    border-radius: 10px;
  }

  .os-row-main,
  .member-ops-work {
    display: grid;
    gap: 6px;
  }

  .os-sync,
  .member-ops-metrics {
    justify-items: start;
    justify-content: flex-start;
    margin-top: 16px;
  }

  .os-section-head,
  .member-ops-toolbar {
    display: block;
    padding: 16px;
  }

  .member-ops-tabs {
    justify-content: flex-start;
    margin-top: 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .member-ops-tabs::-webkit-scrollbar {
    display: none;
  }

  .os-row,
  .member-ops-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    min-height: 0;
    padding: 16px;
  }

  .os-row-index,
  .os-row-meta,
  .member-ops-contact,
  .member-ops-state,
  .member-ops-owner,
  .member-ops-table-head {
    display: none;
  }

  .os-row-action {
    width: 100%;
    min-height: 40px;
  }

  .os-agent {
    padding: 16px;
  }

  .os-prompt-row {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .os-prompt-row::-webkit-scrollbar {
    display: none;
  }

  .os-prompt-row button {
    flex: 0 0 auto;
  }

  .dock {
    left: 18px;
    right: 18px;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    overflow: hidden;
  }

  .dock .composer,
  .dock .chips {
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 720px) {
  .app.view-ai .stage,
  .app.view-clients .stage {
    position: fixed !important;
    inset: 0 0 62px 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    padding: 26px 18px 172px !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .app.view-ai .stage > *:not(.management-page),
  .app.view-clients .stage > *:not(.management-page),
  .os-home,
  .os-layout,
  .os-queue,
  .os-agent,
  .member-ops-shell,
  .member-ops-main {
    inline-size: calc(100vw - 48px) !important;
    width: calc(100vw - 48px) !important;
    max-width: calc(100vw - 48px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    scrollbar-width: none !important;
  }

  .app.view-ai .stage::-webkit-scrollbar {
    display: none !important;
  }

  .os-topbar h1,
  .member-ops-head h1,
  .os-topbar p,
  .member-ops-head p,
  .os-row-main h3,
  .os-row-main p,
  .member-ops-work strong,
  .member-ops-work em {
    display: block !important;
    width: 100% !important;
    max-inline-size: calc(100vw - 36px) !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-all !important;
    line-break: anywhere !important;
  }

  .os-topbar p,
  .member-ops-head p,
  .os-row-main p,
  .member-ops-work em {
    width: auto !important;
    inline-size: auto !important;
    max-inline-size: 31ch !important;
  }

  .member-ops-tabs {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  .os-row,
  .member-ops-row {
    overflow: visible !important;
  }

  .dock {
    left: 18px !important;
    right: 18px !important;
    width: auto !important;
    max-width: none !important;
    padding: 8px 0 10px !important;
  }

  .os-topbar > div,
  .member-ops-head > div {
    inline-size: calc(100vw - 48px) !important;
    max-inline-size: calc(100vw - 48px) !important;
  }

  .os-title-desktop {
    display: none !important;
  }

  .os-title-mobile {
    display: inline !important;
  }

  .os-topbar h1,
  .member-ops-head h1,
  .os-topbar p,
  .member-ops-head p {
    inline-size: calc(100vw - 48px) !important;
    max-inline-size: calc(100vw - 48px) !important;
  }

  .os-row-main,
  .member-ops-work {
    inline-size: calc(100vw - 82px) !important;
    max-inline-size: calc(100vw - 82px) !important;
  }
}

/* ai130: minimalist AI home with one focused work item */
.app.ai-home-empty .dock {
  display: none;
}

.app.ai-home-empty .col-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 252, 0.96)),
    #f7f9fb;
}

.app.ai-home-empty .stage {
  width: min(980px, calc(100% - 88px));
  padding: 86px 0 72px;
}

.ai-home-minimal {
  min-height: calc(100dvh - 164px);
  display: grid;
  align-content: center;
  gap: 34px;
}

.ai-home-core {
  display: grid;
  justify-items: center;
  text-align: center;
}

.ai-home-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: #506179;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 650;
}

.ai-home-context span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slm-brand);
  box-shadow: 0 0 0 5px rgba(0, 143, 138, 0.11);
}

.ai-home-core h1 {
  max-width: 760px;
  margin: 0;
  color: #07111f;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: 0;
  text-wrap: balance;
}

.ai-home-sub {
  max-width: 720px;
  margin: 18px 0 0;
  color: #5d6b7f;
  font-size: 15px;
  line-height: 1.75;
}

.ai-home-composer {
  width: min(760px, 100%);
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
  transition:
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

.ai-home-composer:focus-within {
  border-color: rgba(0, 143, 138, 0.28);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1), 0 0 0 3px rgba(0, 143, 138, 0.08);
}

.ai-home-composer textarea {
  display: block;
  width: 100%;
  min-height: 76px;
  max-height: 176px;
  padding: 20px 22px 8px;
  border: 0;
  outline: 0;
  resize: none;
  color: #111827;
  background: transparent;
  font-size: 16px;
  line-height: 1.6;
}

.ai-home-composer textarea::placeholder {
  color: #8a94a6;
}

.ai-home-composer-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 12px;
}

.ai-home-composer-bar .tool-btn,
.ai-home-composer-bar .act {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.ai-home-composer-bar .act {
  margin-left: auto;
  color: #ffffff;
  background: #111827;
  border-color: #111827;
}

.ai-home-composer-bar .act.is-mute {
  color: #9aa4b2;
  background: #eef1f4;
  border-color: #eef1f4;
}

.home-focus-switcher {
  width: min(760px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.home-focus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 2px;
}

.home-focus-head div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.home-focus-head span {
  color: var(--slm-brand-dark);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.home-focus-head strong {
  color: #667085;
  font-size: 12px;
  font-weight: 620;
}

.home-focus-controls {
  display: flex;
  gap: 6px;
}

.home-focus-controls button {
  width: 34px;
  height: 30px;
  border-radius: 999px;
  color: #344054;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.1);
  transition:
    transform 120ms var(--ease),
    background-color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.home-focus-controls button:active,
.home-focus-primary:active,
.home-focus-secondary:active,
.home-focus-rail button:active {
  transform: scale(0.97);
}

.home-focus-stage {
  perspective: 1100px;
}

.home-focus-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
  box-shadow: none;
  animation: home-card-in 220ms cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: 50% 40%;
}

.home-focus-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.home-focus-card-top span {
  color: #98a2b3;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 720;
}

.home-focus-card-top em {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--slm-brand-dark);
  background: #e8f6f4;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
}

.home-focus-card.tone-danger .home-focus-card-top em {
  color: #b42332;
  background: #fff2f3;
}

.home-focus-card.tone-warn .home-focus-card-top em {
  color: #9a5b00;
  background: #fff7e6;
}

.home-focus-card.tone-info .home-focus-card-top em {
  color: #0b63ce;
  background: #edf6ff;
}

.home-focus-card h2 {
  max-width: 680px;
  margin: 0;
  color: #07111f;
  font-size: 25px;
  line-height: 1.22;
  font-weight: 740;
  letter-spacing: 0;
}

.home-focus-card p {
  max-width: 680px;
  margin: 0;
  color: #536176;
  font-size: 14px;
  line-height: 1.75;
}

.home-focus-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 2px;
}

.home-focus-meta span {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(247, 249, 251, 0.84);
  color: #344054;
  font-size: 12.5px;
  line-height: 1.45;
}

.home-focus-meta b {
  color: #8490a2;
  font-size: 11px;
  font-weight: 650;
}

.home-focus-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.home-focus-evidence span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  color: #44556c;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 12px;
  font-weight: 620;
}

.home-focus-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
}

.home-focus-primary,
.home-focus-secondary {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 720;
  transition:
    transform 120ms var(--ease),
    background-color 160ms var(--ease),
    border-color 160ms var(--ease);
}

.home-focus-primary {
  color: #ffffff;
  background: var(--slm-brand-dark);
  border: 1px solid var(--slm-brand-dark);
}

.home-focus-secondary {
  color: #344054;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.home-focus-rail {
  display: flex;
  gap: 6px;
  justify-content: center;
  padding-top: 2px;
}

.home-focus-rail button {
  min-width: 0;
  height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 999px;
  color: #667085;
  background: transparent;
  border: 1px solid transparent;
  font-size: 12px;
  transition:
    transform 120ms var(--ease),
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease);
}

.home-focus-rail button.is-on {
  color: var(--slm-brand-dark);
  background: #e8f6f4;
  border-color: rgba(0, 143, 138, 0.14);
}

.home-focus-rail span {
  font-family: var(--font-num);
  font-weight: 720;
}

.home-focus-rail em {
  font-style: normal;
  font-weight: 650;
}

@keyframes home-card-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (hover: hover) and (pointer: fine) {
  .home-focus-controls button:hover,
  .home-focus-secondary:hover,
  .home-focus-rail button:hover {
    background: #ffffff;
    border-color: rgba(0, 143, 138, 0.22);
  }

  .home-focus-primary:hover {
    background: #064f4b;
    border-color: #064f4b;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-focus-card {
    animation: none;
  }
}

@media (max-width: 900px) {
  .app.ai-home-empty .stage {
    width: min(760px, calc(100% - 48px));
    padding-top: 58px;
  }

  .home-focus-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .app.ai-home-empty .stage {
    position: fixed !important;
    inset: 0 0 62px 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    box-sizing: border-box;
    padding: 22px 18px 108px !important;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .ai-home-minimal {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
    align-content: start;
    gap: 20px;
    overflow-x: hidden;
  }

  .ai-home-core {
    justify-items: start;
    text-align: left;
  }

  .ai-home-context {
    margin-bottom: 10px;
    font-size: 12.5px;
  }

  .ai-home-core h1 {
    max-width: 11em;
    font-size: 32px;
    line-height: 1.08;
  }

  .ai-home-sub {
    max-width: 30ch;
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.7;
  }

  .ai-home-composer,
  .home-focus-switcher {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
  }

  .ai-home-composer {
    margin-top: 20px;
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  }

  .ai-home-composer textarea {
    min-height: 58px;
    padding: 14px 16px 2px;
    font-size: 15px;
  }

  .home-focus-head {
    align-items: flex-start;
  }

  .home-focus-head div:first-child {
    display: grid;
    gap: 4px;
  }

  .home-focus-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
  }

  .home-focus-card h2 {
    font-size: 19px;
  }

  .home-focus-card p {
    max-width: 28ch;
    font-size: 13px;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .home-focus-meta,
  .home-focus-evidence,
  .home-focus-actions {
    max-width: 100%;
    min-width: 0;
  }

  .home-focus-meta {
    gap: 8px;
    grid-template-columns: 1fr 1fr;
  }

  .home-focus-meta span {
    padding: 8px 9px;
    font-size: 12px;
  }

  .home-focus-meta span:last-child {
    grid-column: 1 / -1;
  }

  .home-focus-meta span,
  .home-focus-evidence span {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .home-focus-evidence {
    display: none;
  }

  .home-focus-actions {
    display: grid;
    gap: 8px;
  }

  .home-focus-secondary {
    display: none;
  }

  .home-focus-primary,
  .home-focus-secondary {
    width: 100%;
  }

  .home-focus-rail {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-focus-rail::-webkit-scrollbar {
    display: none;
  }

  .home-focus-rail button {
    flex: 0 0 auto;
  }
}

/* ai134: premium AI-home polish */
.app.ai-home-empty {
  min-height: 100dvh;
  overflow: hidden;
}

.app.ai-home-empty .workspace,
.app.ai-home-empty .col-main {
  overflow: hidden;
}

.app.ai-home-empty .col-main {
  background:
    radial-gradient(circle at 50% 96%, rgba(0, 143, 138, 0.09), rgba(0, 143, 138, 0) 36%),
    radial-gradient(circle at 82% 20%, rgba(74, 144, 226, 0.065), rgba(74, 144, 226, 0) 32%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 54%, #f5f8fb 100%);
}

.app.ai-home-empty .stage {
  width: min(1060px, calc(100% - 96px));
  max-height: 100dvh;
  padding: 70px 0 62px;
  overflow-y: auto;
  scrollbar-width: none;
}

.app.ai-home-empty .stage::-webkit-scrollbar {
  display: none;
}

.ai-home-minimal {
  min-height: calc(100dvh - 132px);
  align-content: center;
  gap: 28px;
}

.ai-home-context {
  gap: 7px;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #46566c;
  font-size: 12px;
  font-weight: 680;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ai-home-context span {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 4px rgba(0, 143, 138, 0.1);
}

.ai-home-core h1 {
  max-width: 820px;
  color: #08111f;
  font-size: clamp(40px, 4.45vw, 56px);
  line-height: 1.06;
  font-weight: 780;
}

.ai-home-sub {
  max-width: 620px;
  margin-top: 14px;
  color: #596a80;
  font-size: 14.5px;
  line-height: 1.72;
}

.ai-home-composer {
  position: relative;
  width: min(860px, 100%);
  margin-top: 30px;
  border: 1px solid rgba(15, 23, 42, 0.095);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 26px 80px rgba(15, 23, 42, 0.075),
    0 1px 1px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.ai-home-composer:focus-within {
  transform: translateY(-1px);
  border-color: rgba(0, 143, 138, 0.26);
  box-shadow:
    0 30px 90px rgba(15, 23, 42, 0.085),
    0 0 0 3px rgba(0, 143, 138, 0.075),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.ai-home-composer textarea {
  min-height: 88px;
  padding: 22px 24px 8px;
  color: #101828;
  font-size: 16px;
}

.ai-home-composer textarea::placeholder {
  color: #8c98a9;
}

.ai-home-composer-bar {
  padding: 6px 14px 14px;
}

.ai-home-composer-bar .tool-btn,
.ai-home-composer-bar .act {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.ai-home-composer-bar .tool-btn {
  color: #667085;
  background: transparent;
  border-color: transparent;
}

.ai-home-composer-bar .act {
  border-radius: 14px;
  background: #0a615d;
  border-color: #0a615d;
}

.ai-home-composer-bar .act.is-mute {
  color: #a1aab8;
  background: #edf1f5;
  border-color: #edf1f5;
}

.home-focus-switcher {
  width: min(860px, 100%);
  gap: 11px;
}

.home-focus-head {
  padding: 0 2px;
}

.home-focus-head span {
  color: #096760;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
}

.home-focus-head strong {
  color: #748198;
  font-size: 12px;
  font-weight: 620;
}

.home-focus-controls {
  gap: 14px;
}

.home-focus-controls button {
  width: auto;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #667085;
  background: transparent;
  font-size: 12px;
  font-weight: 650;
}

.home-focus-controls button:hover {
  color: #0a615d;
  background: transparent;
}

.home-focus-card {
  grid-template-columns: minmax(0, 1fr) 152px;
  column-gap: 28px;
  row-gap: 13px;
  padding: 22px 24px;
  border-color: rgba(15, 23, 42, 0.075);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(249, 252, 255, 0.8));
  box-shadow:
    0 22px 70px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
}

.home-focus-card-top {
  grid-column: 1;
  justify-content: flex-start;
  gap: 10px;
}

.home-focus-card-top span {
  color: #8b96a8;
  font-size: 11.5px;
  font-weight: 720;
}

.home-focus-card-top em {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11.5px;
}

.home-focus-card h2,
.home-focus-card p,
.home-focus-meta,
.home-focus-evidence {
  grid-column: 1;
}

.home-focus-card h2 {
  max-width: 620px;
  font-size: 24px;
  line-height: 1.24;
  font-weight: 760;
}

.home-focus-card p {
  max-width: 620px;
  color: #5b6a7f;
  font-size: 14px;
  line-height: 1.72;
}

.home-focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding-top: 11px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.home-focus-meta span {
  display: block;
  max-width: 230px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #29364a;
  font-size: 12.5px;
  line-height: 1.55;
}

.home-focus-meta b {
  display: block;
  margin-bottom: 2px;
  color: #8c98a9;
  font-size: 11px;
  font-weight: 660;
}

.home-focus-evidence {
  gap: 6px;
}

.home-focus-evidence span {
  min-height: 24px;
  padding: 0 8px;
  border: 0;
  background: rgba(241, 246, 250, 0.76);
  color: #516178;
  font-size: 11.5px;
}

.home-focus-actions {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: end;
  justify-self: end;
  width: 152px;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 0;
}

.home-focus-primary,
.home-focus-secondary {
  width: 100%;
  min-height: 38px;
  border-radius: 12px;
  font-size: 13px;
}

.home-focus-primary {
  background: #0a615d;
  border-color: #0a615d;
}

.home-focus-secondary {
  color: #344054;
  background: rgba(255, 255, 255, 0.72);
}

.home-focus-rail {
  width: fit-content;
  max-width: 100%;
  margin: 5px auto 0;
  gap: 20px;
  justify-content: center;
}

.home-focus-rail button {
  position: relative;
  height: 28px;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6d7a90;
  font-size: 12px;
}

.home-focus-rail button.is-on {
  color: #0a615d;
  background: transparent;
  border-color: transparent;
}

.home-focus-rail button.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: #0a615d;
}

@media (hover: hover) and (pointer: fine) {
  .ai-home-composer-bar .tool-btn:hover,
  .home-focus-rail button:hover {
    color: #0a615d;
    background: transparent;
    border-color: transparent;
  }
}

@media (max-width: 720px) {
  .app.ai-home-empty .stage > .ai-home-minimal {
    inline-size: calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .app.ai-home-empty .stage {
    inset: 0 0 62px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    padding: 20px 16px 102px !important;
  }

  .ai-home-minimal {
    gap: 18px;
  }

  .ai-home-core h1 {
    max-width: 10em;
    font-size: 30px;
    line-height: 1.1;
  }

  .ai-home-sub {
    max-width: 29ch;
    font-size: 13px;
    line-height: 1.72;
  }

  .ai-home-composer {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: 18px;
    border-radius: 20px;
  }

  .ai-home-composer textarea {
    min-height: 76px;
    padding: 16px 16px 4px;
  }

  .home-focus-controls {
    display: none;
  }

  .home-focus-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 16px;
    border-radius: 18px;
  }

  .home-focus-card > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .home-focus-card-top,
  .home-focus-card h2,
  .home-focus-card p,
  .home-focus-meta,
  .home-focus-evidence,
  .home-focus-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .home-focus-card h2 {
    font-size: 20px;
  }

  .home-focus-card p {
    display: block !important;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
    word-break: normal;
    overflow-wrap: anywhere;
    line-break: anywhere;
  }

  .home-focus-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 9px;
  }

  .home-focus-meta span,
  .home-focus-meta span:last-child {
    max-width: none;
    grid-column: auto;
  }

  .home-focus-actions {
    width: 100%;
    min-width: 0;
    padding-top: 2px;
  }

  .home-focus-secondary {
    display: none;
  }

  .home-focus-rail {
    width: 100%;
    gap: 18px;
    justify-content: flex-start;
    padding-bottom: 2px;
  }
}

@media (max-width: 720px) {
  .app.ai-home-empty .ai-home-minimal,
  .app.ai-home-empty .ai-home-core,
  .app.ai-home-empty .ai-home-composer,
  .app.ai-home-empty .home-focus-switcher,
  .app.ai-home-empty .home-focus-stage {
    inline-size: calc(100vw - 32px) !important;
    width: calc(100vw - 32px) !important;
    max-inline-size: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .app.ai-home-empty .home-focus-card {
    inline-size: 100% !important;
    width: 100% !important;
    max-inline-size: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .app.ai-home-empty .home-focus-card h2,
  .app.ai-home-empty .home-focus-card p,
  .app.ai-home-empty .home-focus-meta,
  .app.ai-home-empty .home-focus-evidence,
  .app.ai-home-empty .home-focus-actions {
    inline-size: calc(100vw - 64px) !important;
    width: calc(100vw - 64px) !important;
    max-inline-size: calc(100vw - 64px) !important;
    max-width: calc(100vw - 64px) !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .app.ai-home-empty .home-focus-card p {
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-break: anywhere !important;
  }
}

/* ai138: remove explanatory chrome from the AI home */
.ai-home-context,
.home-focus-head,
.home-focus-rail {
  display: none !important;
}

.app.ai-home-empty .stage {
  width: min(960px, calc(100% - 96px));
  padding-top: 88px;
}

.ai-home-minimal {
  gap: 34px;
}

.ai-home-core h1 {
  font-size: clamp(42px, 4.35vw, 58px);
}

.ai-home-sub {
  max-width: 760px;
}

.ai-home-composer {
  width: min(820px, 100%);
  margin-top: 32px;
  border-radius: 22px;
  box-shadow:
    0 28px 90px rgba(15, 23, 42, 0.072),
    0 1px 0 rgba(15, 23, 42, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.ai-home-composer-bar .act.is-mute {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.94);
}

.home-focus-switcher {
  width: min(820px, 100%);
}

.home-focus-card {
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 28px;
  padding: 22px 24px;
  border-radius: 20px;
  border-color: rgba(15, 23, 42, 0.065);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 60px rgba(15, 23, 42, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.home-focus-card-top span {
  color: #6f7c90;
  font-size: 12px;
}

.home-focus-card-top em {
  background: rgba(255, 242, 243, 0.78);
}

.home-focus-card h2 {
  font-size: 23px;
}

.home-focus-meta {
  gap: 10px 22px;
  padding-top: 10px;
}

.home-focus-evidence {
  display: none;
}

.home-focus-actions {
  width: 136px;
  gap: 10px;
}

.home-focus-primary {
  min-height: 38px;
  border-radius: 11px;
}

.home-focus-secondary {
  min-height: auto;
  padding: 0;
  border: 0;
  color: #667085;
  background: transparent;
  font-size: 12px;
  box-shadow: none;
}

@media (hover: hover) and (pointer: fine) {
  .home-focus-secondary:hover {
    color: #0a615d;
    background: transparent;
    border-color: transparent;
  }
}

@media (max-width: 720px) {
  .app.ai-home-empty .stage {
    padding-top: 28px !important;
  }

  .ai-home-minimal {
    gap: 22px;
  }

  .ai-home-core h1 {
    font-size: 31px;
  }

  .ai-home-sub {
    max-width: 29ch;
  }

  .ai-home-composer {
    margin-top: 20px;
  }

  .home-focus-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .home-focus-actions {
    width: 100%;
  }

  .home-focus-secondary {
    display: inline-flex;
    justify-content: center;
    min-height: 30px;
  }
}

/* ai140: self-audit fixes for homepage hierarchy */
.app.ai-home-empty .col-main {
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 58%, #f6f9fc 100%) !important;
}

.app.ai-home-empty .stage {
  width: min(900px, calc(100% - 96px));
  padding-top: 78px;
}

.ai-home-minimal {
  gap: 24px;
}

.ai-home-core h1 {
  font-size: clamp(40px, 4vw, 54px);
  line-height: 1.07;
  font-weight: 760;
}

.ai-home-sub {
  max-width: 660px;
  margin-top: 12px;
  color: #617087;
}

.ai-home-composer {
  width: min(780px, 100%);
  margin-top: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 22px 70px rgba(15, 23, 42, 0.06),
    0 1px 0 rgba(15, 23, 42, 0.035);
}

.ai-home-composer textarea {
  min-height: 82px;
}

.home-focus-switcher {
  width: min(780px, 100%);
}

.home-focus-card {
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: center;
  gap: 22px;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 14px 48px rgba(15, 23, 42, 0.042),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.home-focus-copy {
  min-width: 0;
  display: grid;
  gap: 9px;
}

.home-focus-card-top {
  gap: 8px;
}

.home-focus-card-top span {
  color: #738197;
  font-size: 12px;
  font-weight: 700;
}

.home-focus-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.28;
}

.home-focus-card p {
  max-width: 570px;
  color: #5c6a80;
  line-height: 1.68;
}

.home-focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.065);
}

.home-focus-meta span {
  position: relative;
  max-width: none;
  padding: 0;
  color: #334155;
  font-size: 12.5px;
  line-height: 1.5;
}

.home-focus-meta span + span::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0.62em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b7c0cd;
}

.home-focus-meta b,
.home-focus-evidence {
  display: none !important;
}

.home-focus-actions {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: 128px;
  gap: 8px;
}

.home-focus-primary {
  min-height: 38px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(10, 97, 93, 0.13);
}

.home-focus-secondary {
  min-height: 28px;
  justify-content: center;
}

.app.ai-home-empty .side-history {
  opacity: 0.84;
}

@media (max-width: 720px) {
  .app.ai-home-empty .stage {
    padding-top: 32px !important;
  }

  .ai-home-minimal {
    gap: 20px;
  }

  .ai-home-core h1 {
    font-size: 31px;
  }

  .ai-home-sub {
    max-width: 30ch;
    font-size: 13.5px;
  }

  .ai-home-composer {
    margin-top: 20px;
  }

  .home-focus-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 17px;
  }

  .home-focus-card h2 {
    font-size: 21px;
  }

  .home-focus-meta {
    display: grid;
    gap: 6px;
  }

  .home-focus-meta span + span::before {
    display: none;
  }

  .home-focus-actions {
    grid-column: 1;
    width: 100%;
  }
}

/* ai141: remove the remaining workbench feel from the AI home */
.app.ai-home-empty,
.app.ai-home-empty .workspace,
.app.ai-home-empty .col-main {
  overflow: hidden !important;
}

.app.ai-home-empty .col-main {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 52%, #f5f8fb 100%) !important;
}

.app.ai-home-empty .stage {
  width: min(940px, calc(100% - 112px)) !important;
  max-height: 100dvh !important;
  padding-top: 64px !important;
  overflow: hidden !important;
}

.app.ai-home-empty .ai-home-minimal {
  min-height: calc(100dvh - 126px);
  gap: 22px;
}

.app.ai-home-empty .ai-home-core h1 {
  max-width: 820px;
  color: #08111f;
  font-size: clamp(42px, 4.15vw, 58px);
  line-height: 1.06;
  font-weight: 780;
}

.app.ai-home-empty .ai-home-sub {
  max-width: 620px;
  margin-top: 12px;
  color: #617085;
  font-size: 14.5px;
  line-height: 1.72;
}

.app.ai-home-empty .ai-home-composer {
  width: min(780px, 100%) !important;
  margin-top: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(15, 23, 42, 0.095);
  box-shadow:
    0 24px 72px rgba(15, 23, 42, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

.app.ai-home-empty .ai-home-composer textarea {
  min-height: 84px;
  padding: 22px 24px 8px;
}

.app.ai-home-empty .home-focus-switcher {
  width: min(780px, 100%) !important;
}

.app.ai-home-empty .home-focus-card {
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 22px;
  padding: 19px 21px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(15, 23, 42, 0.075);
  box-shadow:
    0 18px 52px rgba(15, 23, 42, 0.045),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  backdrop-filter: none;
}

.app.ai-home-empty .home-focus-copy {
  min-width: 0;
  gap: 8px;
}

.app.ai-home-empty .home-focus-card-top {
  gap: 8px;
}

.app.ai-home-empty .home-focus-card-top span {
  color: #7a8698;
  font-size: 12px;
  font-weight: 720;
}

.app.ai-home-empty .home-focus-card-top em {
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 20px;
}

.app.ai-home-empty .home-focus-card h2 {
  max-width: 560px;
  font-size: 22px;
  line-height: 1.28;
  font-weight: 760;
}

.app.ai-home-empty .home-focus-card p {
  max-width: 600px;
  color: #5f6e82;
  font-size: 13.5px;
  line-height: 1.66;
}

.app.ai-home-empty .home-focus-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  padding-top: 9px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.app.ai-home-empty .home-focus-meta span {
  position: relative;
  max-width: none;
  color: #334155;
  font-size: 12px;
  line-height: 1.5;
}

.app.ai-home-empty .home-focus-meta span + span::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 0.63em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b9c2cf;
}

.app.ai-home-empty .home-focus-actions {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  width: 132px;
  gap: 8px;
}

.app.ai-home-empty .home-focus-primary {
  min-height: 38px;
  border-radius: 999px;
  background: #0a6f69;
  border-color: #0a6f69;
  box-shadow: 0 10px 24px rgba(10, 111, 105, 0.14);
}

.app.ai-home-empty .home-focus-secondary {
  min-height: 26px;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #6b7788;
  box-shadow: none;
}

@media (max-width: 720px) {
  html,
  body {
    overflow-x: hidden;
  }

  .app.ai-home-empty .stage {
    inset: 0 0 64px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 58px 16px 92px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .app.ai-home-empty .ai-home-minimal {
    inline-size: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto;
    align-content: start;
    gap: 18px;
  }

  .app.ai-home-empty .ai-home-core {
    justify-items: start;
    text-align: left;
  }

  .app.ai-home-empty .ai-home-core h1 {
    max-width: 10em;
    font-size: 32px;
    line-height: 1.12;
  }

  .app.ai-home-empty .ai-home-sub {
    max-width: 31ch;
    font-size: 13.5px;
  }

  .app.ai-home-empty .ai-home-composer,
  .app.ai-home-empty .home-focus-switcher,
  .app.ai-home-empty .home-focus-stage {
    inline-size: 100% !important;
    width: 100% !important;
    max-inline-size: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .app.ai-home-empty .ai-home-composer {
    margin-top: 18px;
    border-radius: 20px;
  }

  .app.ai-home-empty .ai-home-composer textarea {
    min-height: 76px;
    padding: 17px 17px 5px;
  }

  .app.ai-home-empty .home-focus-card {
    inline-size: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding: 17px;
    border-radius: 18px;
  }

  .app.ai-home-empty .home-focus-copy,
  .app.ai-home-empty .home-focus-card h2,
  .app.ai-home-empty .home-focus-card p,
  .app.ai-home-empty .home-focus-meta,
  .app.ai-home-empty .home-focus-actions {
    inline-size: auto !important;
    width: auto !important;
    max-inline-size: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .app.ai-home-empty .home-focus-card h2 {
    font-size: 21px;
  }

  .app.ai-home-empty .home-focus-card p {
    overflow: visible !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .app.ai-home-empty .home-focus-meta {
    display: grid;
    gap: 5px;
  }

  .app.ai-home-empty .home-focus-meta span + span::before {
    display: none;
  }

  .app.ai-home-empty .home-focus-actions {
    grid-column: 1 !important;
    grid-row: auto !important;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .app.ai-home-empty .home-focus-primary {
    flex: 1 1 auto;
    min-width: 0;
  }

  .app.ai-home-empty .home-focus-secondary {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 8px;
  }
}

/* ai142: hard mobile containment for the AI home card */
@media (max-width: 720px) {
  .app.view-ai .stage {
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .app.view-ai .stage > .ai-home-minimal {
    inline-size: 100% !important;
    width: 100% !important;
    max-inline-size: 342px !important;
    max-width: 342px !important;
    margin: 0 auto !important;
  }

  .app.view-ai .ai-home-core,
  .app.view-ai .ai-home-composer,
  .app.view-ai .home-focus-switcher,
  .app.view-ai .home-focus-stage,
  .app.view-ai .home-focus-card,
  .app.view-ai .home-focus-card > *,
  .app.view-ai .home-focus-card h2,
  .app.view-ai .home-focus-card p,
  .app.view-ai .home-focus-meta,
  .app.view-ai .home-focus-actions {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .app.view-ai .ai-home-composer,
  .app.view-ai .home-focus-switcher,
  .app.view-ai .home-focus-stage,
  .app.view-ai .home-focus-card {
    inline-size: 100% !important;
    width: 100% !important;
  }

  .app.view-ai .home-focus-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    overflow: hidden !important;
    contain: layout paint !important;
  }

  .app.view-ai .home-focus-copy {
    order: 1 !important;
  }

  .app.view-ai .home-focus-actions {
    order: 2 !important;
    position: static !important;
    display: block !important;
    inline-size: 100% !important;
    width: 100% !important;
  }

  .app.view-ai .home-focus-primary,
  .app.view-ai .home-focus-secondary {
    writing-mode: horizontal-tb !important;
    white-space: nowrap !important;
  }

  .app.view-ai .home-focus-primary {
    display: inline-flex !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .app.view-ai .home-focus-secondary {
    display: none !important;
  }
}

/* ai149: refined dock composer scale and send control */
.app:not(.has-canvas) .dock {
  padding: 10px 28px 18px;
}

.app:not(.has-canvas) .dock .composer {
  width: min(900px, calc(100vw - var(--sidebar-w) - 168px));
  max-width: calc(100% - 48px);
  border-radius: 18px;
  border-color: rgba(12, 28, 52, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 254, 255, 0.94)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 22px 70px rgba(13, 45, 92, 0.105),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
  backdrop-filter: blur(18px);
  transition:
    transform 160ms var(--ease-out-strong),
    border-color 160ms var(--ease-out-strong),
    box-shadow 160ms var(--ease-out-strong),
    background-color 160ms var(--ease-out-strong);
}

.app:not(.has-canvas) .dock .composer:focus-within {
  border-color: rgba(0, 110, 230, 0.22);
  box-shadow:
    0 26px 78px rgba(13, 45, 92, 0.13),
    0 0 0 4px rgba(0, 110, 230, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.96) inset;
}

.app:not(.has-canvas) .dock .composer textarea {
  min-height: 52px;
  padding: 17px 18px 2px;
  color: #07111f;
  font-size: 14.5px;
  line-height: 1.55;
  background: transparent;
}

.app:not(.has-canvas) .dock .composer textarea::placeholder {
  color: #8a96a8;
}

.app:not(.has-canvas) .dock .composer-bar {
  min-height: 44px;
  padding: 0 10px 10px;
}

.composer-bar .act {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #006ee6 0%, #008dea 48%, #00a7d8 100%);
  box-shadow:
    0 12px 26px rgba(0, 110, 230, 0.24),
    0 3px 8px rgba(0, 92, 190, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -12px 20px rgba(2, 46, 110, 0.14);
  transform: translateZ(0);
  transition:
    transform 140ms var(--ease-out-strong),
    background-color 140ms var(--ease-out-strong),
    border-color 140ms var(--ease-out-strong),
    box-shadow 140ms var(--ease-out-strong),
    color 140ms var(--ease-out-strong);
}

.composer-bar .act svg {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  stroke-width: 2.25;
  filter: drop-shadow(0 1px 1px rgba(0, 36, 92, 0.18));
}

@media (hover: hover) and (pointer: fine) {
  .composer-bar .act:not(.is-mute):hover {
    transform: translateY(-1px);
    box-shadow:
      0 16px 32px rgba(0, 110, 230, 0.28),
      0 5px 12px rgba(0, 92, 190, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.38),
      inset 0 -12px 20px rgba(2, 46, 110, 0.14);
  }
}

.composer-bar .act:not(.is-mute):active {
  transform: scale(0.96);
}

.composer-bar .act.is-mute {
  color: #a5afbd;
  border-color: rgba(15, 23, 42, 0.055);
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #f1f5f9 0%, #e7ecf2 100%);
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  opacity: 1;
}

.composer-bar .act.is-mute svg {
  filter: none;
}

@media (max-width: 720px) {
  .app:not(.has-canvas) .dock {
    left: 0;
    right: 0;
    padding: 8px 14px calc(12px + env(safe-area-inset-bottom));
  }

  .app:not(.has-canvas) .dock .composer {
    width: 100%;
    max-width: 100%;
    border-radius: 17px;
  }

  .app:not(.has-canvas) .dock .composer textarea {
    min-height: 48px;
    padding: 15px 16px 0;
    font-size: 14px;
  }

  .composer-bar .act {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }
}

/* ai150: calm AI-home hierarchy */
.app.view-today .stage {
  width: min(900px, calc(100% - 96px));
}

.app.view-today .home-hero {
  display: grid;
  justify-items: center;
  margin-bottom: 20px;
  text-align: center;
}

.app.view-today .hello-band {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  padding: 0;
}

.app.view-today .hello-copy {
  max-width: none;
  padding-bottom: 0;
}

.app.view-today .home-eyebrow {
  display: none !important;
}

.app.view-today .home-hero .hello {
  max-width: none;
  color: #07111f;
  font-size: 40px;
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: 0;
}

.app.view-today .hello-text::after {
  display: none;
}

.app.view-today .home-hero .lead {
  max-width: 42em;
  margin: 10px auto 0;
  color: #5c6878;
  font-size: 14px;
  line-height: 1.65;
}

.app.view-today .decision-panel {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none !important;
}

.app.view-today .decision-panel::before {
  display: none !important;
}

.app.view-today .decision-panel.is-follow-scene {
  background: rgba(255, 255, 255, 0.86);
}

.app.view-today .decision-head {
  padding: 18px 22px 0;
}

.app.view-today .decision-status {
  min-height: 22px;
  color: #738094;
  font-size: 11.5px;
  font-weight: 620;
  letter-spacing: 0;
}

.app.view-today .decision-status::before {
  display: none;
}

.app.view-today .decision-text-switch {
  min-height: 22px;
  color: #69778a;
  font-size: 12px;
  font-weight: 620;
}

.app.view-today .decision-text-switch::after {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .app.view-today .decision-text-switch:hover {
    color: #0b63ce;
  }
}

.app.view-today .decision-core,
.app.view-today .decision-panel.is-follow-scene .decision-core {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px 16px;
}

.app.view-today .decision-avatar .kid-av,
.app.view-today .decision-avatar .avatar,
.app.view-today .decision-avatar .focus-faces,
.app.view-today .decision-avatar .focus-biz-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f6f9fc;
  box-shadow: 0 0 0 4px rgba(245, 248, 252, 0.9);
}

.app.view-today .decision-copy {
  display: grid;
  gap: 7px;
}

.app.view-today .decision-copy h2 {
  padding-right: 0;
  color: #07111f;
  font-size: 24px;
  line-height: 1.22;
  font-weight: 740;
}

.app.view-today .decision-copy p:not(.decision-kicker) {
  max-width: 46em;
  margin: 0;
  color: #4a586c;
  font-size: 13.5px;
  line-height: 1.64;
}

.app.view-today .decision-actions .act {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  box-shadow: none;
}

.app.view-today .decision-evidence {
  gap: 7px;
  padding: 0 22px 16px 96px;
}

.app.view-today .decision-evidence span {
  min-height: 24px;
  padding: 0 9px;
  color: #486078;
  background: #f7f9fc;
  border: 1px solid rgba(15, 23, 42, 0.07);
  font-size: 11.5px;
  font-weight: 560;
}

.app.view-today .decision-next {
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  background: #fbfcfe;
}

.app.view-today .decision-next-item {
  min-height: 74px;
  gap: 5px;
  padding: 14px 22px;
  background: transparent;
  border-right: 1px solid rgba(15, 23, 42, 0.07);
}

@media (hover: hover) and (pointer: fine) {
  .app.view-today .decision-next-item:hover {
    background: #f7fafd;
  }
}

.app.view-today .decision-next-item span {
  color: #6b778a;
  font-size: 11px;
  font-weight: 620;
}

.app.view-today .decision-next-item strong {
  color: #121a27;
  font-size: 14px;
  font-weight: 700;
}

.app.view-today .decision-next-item em {
  color: #6d7888;
  font-size: 12px;
}

@media (max-width: 720px) {
  .app.view-today .stage {
    width: min(calc(100vw - 36px), 354px);
  }

  .app.view-today .home-hero {
    justify-items: center;
    margin-bottom: 18px;
    text-align: center;
  }

  .app.view-today .home-hero .hello {
    max-width: none;
    font-size: 30px;
    line-height: 1.12;
  }

  .app.view-today .decision-panel {
    border-radius: 16px;
  }

  .app.view-today .decision-head {
    padding: 14px 14px 0;
  }

  .app.view-today .decision-core,
  .app.view-today .decision-panel.is-follow-scene .decision-core {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 14px 12px;
  }

  .app.view-today .decision-avatar .kid-av,
  .app.view-today .decision-avatar .avatar,
  .app.view-today .decision-avatar .focus-faces,
  .app.view-today .decision-avatar .focus-biz-icon {
    width: 48px;
    height: 48px;
  }

  .app.view-today .decision-copy h2 {
    font-size: 20px;
  }

  .app.view-today .decision-actions {
    grid-column: 1 / -1;
  }

  .app.view-today .decision-actions .act {
    width: 100%;
  }

  .app.view-today .decision-evidence {
    padding: 0 14px 14px;
  }
}

/* ai152: simplify home task card and reuse member avatar language */
.app.view-today .decision-panel {
  width: min(820px, 100%);
  margin: 0 auto;
  border-radius: 20px;
  border-color: rgba(15, 23, 42, 0.085);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none !important;
}

.app.view-today .decision-head {
  padding: 20px 24px 0;
}

.app.view-today .decision-status {
  min-height: 20px;
  color: #7a8494;
  font-size: 12px;
  font-weight: 560;
}

.app.view-today .decision-text-switch {
  color: #6d7788;
  font-size: 12px;
  font-weight: 560;
}

.app.view-today .decision-core,
.app.view-today .decision-panel.is-follow-scene .decision-core {
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 24px 24px;
}

.app.view-today .decision-avatar,
.app.view-today .decision-person-av {
  width: 46px;
  height: 46px;
}

.app.view-today .decision-person-av .kid-av,
.app.view-today .decision-person-av .avatar,
.app.view-today .decision-avatar .kid-av,
.app.view-today .decision-avatar .avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 0;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.94),
    0 8px 20px rgba(26, 64, 112, 0.1);
}

.app.view-today .decision-avatar .focus-faces,
.app.view-today .decision-avatar .focus-biz-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.94),
    0 8px 20px rgba(26, 64, 112, 0.1);
}

.app.view-today .decision-person-av .status-dot {
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-width: 2px;
}

.app.view-today .decision-copy {
  gap: 6px;
}

.app.view-today .decision-copy h2 {
  font-size: 23px;
  font-weight: 730;
  line-height: 1.22;
}

.app.view-today .decision-copy p:not(.decision-kicker) {
  max-width: 42em;
  color: #526174;
  font-size: 13.5px;
  line-height: 1.6;
}

.app.view-today .decision-actions .act {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  box-shadow: none;
}

.app.view-today .decision-evidence,
.app.view-today .decision-next {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .app.view-today .decision-panel:hover {
    border-color: rgba(15, 23, 42, 0.12);
  }
}

@media (max-width: 720px) {
  .app.view-today .decision-panel {
    width: 100%;
    border-radius: 18px;
  }

  .app.view-today .decision-head {
    padding: 16px 16px 0;
  }

  .app.view-today .decision-core,
  .app.view-today .decision-panel.is-follow-scene .decision-core {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    padding: 15px 16px 18px;
  }

  .app.view-today .decision-copy h2 {
    font-size: 20px;
  }
}

/* ai153: sharper AI-home task surface */
.app.view-today .stage {
  width: min(980px, calc(100% - 104px));
}

.app.view-today .home-hero {
  margin-bottom: 24px;
}

.app.view-today .home-hero .hello {
  font-size: 42px;
  font-weight: 735;
  line-height: 1.08;
}

.app.view-today .decision-panel {
  width: min(920px, 100%);
  border-radius: 22px;
  border: 1px solid rgba(9, 27, 52, 0.095);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 254, 255, 0.92)),
    rgba(255, 255, 255, 0.94);
  box-shadow: none !important;
}

.app.view-today .decision-head {
  min-height: 30px;
  padding: 24px 28px 0;
}

.app.view-today .decision-status {
  color: #6f7c8e;
  font-size: 12px;
  font-weight: 590;
}

.app.view-today .decision-text-switch {
  min-height: 28px;
  color: #5d6a7d;
  font-size: 12px;
  font-weight: 590;
}

.app.view-today .decision-text-switch:active {
  transform: scale(0.98);
}

.app.view-today .decision-core,
.app.view-today .decision-panel.is-follow-scene .decision-core {
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 18px 28px 28px;
}

.app.view-today .decision-avatar,
.app.view-today .decision-person-av {
  width: 50px;
  height: 50px;
}

.app.view-today .decision-person-av .kid-av,
.app.view-today .decision-person-av .avatar,
.app.view-today .decision-avatar .kid-av,
.app.view-today .decision-avatar .avatar,
.app.view-today .decision-avatar .focus-faces,
.app.view-today .decision-avatar .focus-biz-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
}

.app.view-today .decision-copy h2 {
  color: #07111f;
  font-size: 25px;
  font-weight: 745;
  line-height: 1.18;
}

.app.view-today .decision-copy p:not(.decision-kicker) {
  margin-top: 7px;
  max-width: 46em;
  color: #4d5d72;
  font-size: 14px;
  line-height: 1.58;
}

.app.view-today .decision-actions .act {
  min-width: 104px;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #006ee6 0%, #007feb 52%, #00a7d8 100%);
  box-shadow:
    0 12px 28px rgba(0, 110, 230, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -12px 18px rgba(3, 44, 105, 0.12);
  transition:
    transform 140ms var(--ease-out-strong),
    box-shadow 140ms var(--ease-out-strong),
    filter 140ms var(--ease-out-strong);
}

@media (hover: hover) and (pointer: fine) {
  .app.view-today .decision-actions .act:hover {
    transform: translateY(-1px);
    box-shadow:
      0 16px 34px rgba(0, 110, 230, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.36),
      inset 0 -12px 18px rgba(3, 44, 105, 0.12);
  }
}

.app.view-today .decision-actions .act:active {
  transform: scale(0.97);
}

.app:not(.has-canvas) .dock .composer {
  width: min(980px, calc(100vw - var(--sidebar-w) - 144px));
}

.app:not(.has-canvas) .dock .composer-bar .act.is-mute {
  color: #94a8c1;
  border-color: rgba(0, 110, 230, 0.1);
  background:
    radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, #f7fbff 0%, #edf4fb 100%);
  box-shadow:
    0 8px 20px rgba(20, 64, 120, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -10px 16px rgba(83, 125, 178, 0.05);
}

@media (max-width: 720px) {
  .app.view-today .stage {
    width: 100%;
    max-width: 100%;
  }

  .app.view-today .home-hero {
    margin-bottom: 18px;
  }

  .app.view-today .home-hero .hello {
    font-size: 30px;
    line-height: 1.14;
  }

  .app.view-today .decision-head {
    padding: 18px 16px 0;
  }

  .app.view-today .decision-panel {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    margin-left: auto;
    margin-right: auto;
  }

  .app.view-today .decision-core,
  .app.view-today .decision-panel.is-follow-scene .decision-core {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 16px 18px;
  }

  .app.view-today .decision-avatar,
  .app.view-today .decision-person-av,
  .app.view-today .decision-person-av .kid-av,
  .app.view-today .decision-person-av .avatar,
  .app.view-today .decision-avatar .kid-av,
  .app.view-today .decision-avatar .avatar,
  .app.view-today .decision-avatar .focus-faces,
  .app.view-today .decision-avatar .focus-biz-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .app.view-today .decision-copy h2 {
    font-size: 21px;
  }

  .app.view-today .decision-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .app.view-today .decision-actions .act {
    width: 100%;
  }

  .app:not(.has-canvas) .dock .composer {
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
  }
}

/* ai156: final override placed at EOF */
:root {
  --brand-blue: #0875e1;
  --brand-blue-deep: #045fc4;
  --brand-cyan: #08b7d8;
  --ink-strong: #07111f;
  --ink-body: #34445a;
  --ink-soft: #728198;
  --line-soft: #dbe6f2;
  --surface-subtle: #f7fbff;
  --sidebar-w: 276px;
}

.app {
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) !important;
  color: var(--ink-strong);
  background:
    radial-gradient(circle at 70% 4%, rgba(8, 117, 225, 0.05), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%) !important;
}

.sidebar {
  width: var(--sidebar-w) !important;
  padding: 20px 14px 16px !important;
  border-right: 1px solid rgba(9, 27, 52, 0.08) !important;
  background: rgba(248, 251, 255, 0.94) !important;
}

.brand {
  min-height: 36px !important;
  margin: 0 6px 22px !important;
}

.brand-logo {
  width: 24px !important;
  height: 24px !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.brand-text strong {
  color: var(--ink-strong) !important;
  font-size: 15px !important;
  font-weight: 760 !important;
  letter-spacing: 0 !important;
}

.brand-text span {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 520 !important;
}

.side-primary-actions {
  gap: 10px !important;
  padding: 0 !important;
  margin-bottom: 14px !important;
}

.new-chat-btn,
.side-search-box {
  min-height: 42px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(9, 27, 52, 0.08) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
}

.side-search-box {
  background: #f1f6fc !important;
}

.new-chat-btn {
  color: var(--ink-strong) !important;
  font-size: 14px !important;
  font-weight: 680 !important;
}

.side-nav {
  gap: 6px !important;
  padding: 14px 0 16px !important;
  margin: 0 0 14px !important;
  border-top: 1px solid rgba(9, 27, 52, 0.07) !important;
  border-bottom: 1px solid rgba(9, 27, 52, 0.07) !important;
}

.side-section-label,
.side-section-title {
  color: #8a97aa !important;
  font-size: 12px !important;
  font-weight: 670 !important;
}

.side-nav-item {
  min-height: 42px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
  color: #334155 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.side-nav-item.is-on {
  color: var(--brand-blue) !important;
  background: #eaf4ff !important;
}

.side-nav-item.is-on::before {
  display: none !important;
}

.side-nav-ico {
  width: 22px !important;
  height: 22px !important;
  color: currentColor !important;
  background: transparent !important;
}

.side-nav-copy strong {
  font-size: 14px !important;
  font-weight: 700 !important;
}

.side-nav-copy em,
.side-history-preview,
.side-history-ico {
  display: none !important;
}

.side-history {
  padding: 0 6px !important;
}

.side-history-item {
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-height: 34px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  color: #0f1f33 !important;
  background: transparent !important;
}

.side-history-title {
  font-size: 13px !important;
  font-weight: 640 !important;
}

.side-history-time {
  color: #92a0b2 !important;
  font-size: 12px !important;
}

.side-user {
  margin: 14px 0 0 !important;
  padding: 10px 8px !important;
  border-top: 1px solid rgba(9, 27, 52, 0.08) !important;
}

.col-main {
  overflow-x: hidden !important;
}

.app.view-today .stage,
.app.view-task .stage,
.app.view-clients .stage,
.app.view-client .stage {
  width: min(1040px, calc(100% - 96px)) !important;
  padding-top: 72px !important;
  padding-bottom: 150px !important;
}

.ai-work-home {
  display: grid !important;
  justify-items: center !important;
  gap: 22px !important;
  width: 100% !important;
}

.ai-work-hero {
  width: 100% !important;
  margin: 0 !important;
  text-align: center !important;
}

.app.view-today .home-hero::after,
.app.view-today .decision-panel::before {
  display: none !important;
}

.app.view-today .home-hero .hello {
  margin: 0 !important;
  color: var(--ink-strong) !important;
  font-size: clamp(42px, 4.2vw, 64px) !important;
  font-weight: 760 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
}

.home-composer-shell {
  width: min(980px, 100%) !important;
}

.home-composer-shell .composer {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  min-height: 132px !important;
  margin: 0 !important;
  padding: 22px 22px 16px !important;
  border: 1px solid rgba(9, 27, 52, 0.11) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: none !important;
}

.home-composer-shell .composer:focus-within {
  border-color: rgba(8, 117, 225, 0.28) !important;
  box-shadow: 0 0 0 4px rgba(8, 117, 225, 0.08) !important;
}

.home-composer-shell .composer::before,
.home-composer-shell .tool-btn {
  display: none !important;
}

.home-composer-shell .composer textarea {
  min-height: 72px !important;
  color: var(--ink-strong) !important;
  font-size: 18px !important;
  line-height: 1.5 !important;
}

.home-composer-shell .composer-bar {
  justify-content: flex-end !important;
  padding-top: 4px !important;
}

.composer-bar .act {
  width: 42px !important;
  height: 42px !important;
  border-radius: 13px !important;
  border: 1px solid rgba(8, 117, 225, 0.12) !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%) !important;
  box-shadow: none !important;
}

.composer-bar .act.is-mute {
  color: #8ea0b5 !important;
  border-color: rgba(9, 27, 52, 0.08) !important;
  background: linear-gradient(180deg, #f3f6fa 0%, #e9eef5 100%) !important;
}

.home-decision-shell {
  width: min(980px, 100%) !important;
}

.app.view-today .decision-panel {
  position: relative !important;
  width: 100% !important;
  overflow: hidden !important;
  border-radius: 18px !important;
  border: 1px solid rgba(9, 27, 52, 0.1) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.app.view-today .decision-head {
  position: absolute !important;
  top: 18px !important;
  right: 22px !important;
  z-index: 2 !important;
  min-height: auto !important;
  padding: 0 !important;
}

.app.view-today .decision-status {
  display: none !important;
}

.app.view-today .decision-text-switch {
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  color: #42526a !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

.app.view-today .decision-core,
.app.view-today .decision-panel.is-follow-scene .decision-core {
  grid-template-columns: 56px minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 26px 22px 24px !important;
}

.app.view-today .decision-avatar,
.app.view-today .decision-person-av,
.app.view-today .decision-avatar .kid-av,
.app.view-today .decision-avatar .avatar,
.app.view-today .decision-avatar .focus-faces,
.app.view-today .decision-avatar .focus-biz-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 16px !important;
}

.app.view-today .decision-copy h2 {
  margin: 0 !important;
  color: var(--ink-strong) !important;
  font-size: 28px !important;
  font-weight: 750 !important;
  line-height: 1.18 !important;
}

.app.view-today .decision-copy p:not(.decision-kicker) {
  margin: 7px 0 0 !important;
  max-width: 58em !important;
  color: var(--ink-body) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.app.view-today .decision-actions .act,
.member-dossier-actions .act,
.task-detail-actions .act {
  min-width: 112px !important;
  min-height: 40px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(8, 117, 225, 0.18) !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%) !important;
  box-shadow: none !important;
  font-weight: 720 !important;
}

.member-dossier-page {
  display: grid !important;
  gap: 18px !important;
  width: 100% !important;
}

.member-dossier-head {
  display: grid !important;
  gap: 8px !important;
}

.member-dossier-head h1 {
  margin: 0 !important;
  color: var(--ink-strong) !important;
  font-size: 42px !important;
  font-weight: 760 !important;
  line-height: 1.08 !important;
}

.member-dossier-head p {
  max-width: 680px !important;
  margin: 0 !important;
  color: var(--ink-body) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.member-dossier-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.member-dossier-tabs .member-tab {
  min-height: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(9, 27, 52, 0.09) !important;
  color: #53657d !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.member-dossier-tabs .member-tab.is-on {
  color: var(--brand-blue) !important;
  border-color: rgba(8, 117, 225, 0.24) !important;
  background: #edf6ff !important;
}

.member-dossier-list {
  display: grid !important;
  gap: 12px !important;
}

.member-dossier-card {
  display: grid !important;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  min-height: 108px !important;
  padding: 18px !important;
  border: 1px solid rgba(9, 27, 52, 0.09) !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.member-dossier-card.is-primary {
  border-color: rgba(8, 117, 225, 0.2) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%) !important;
}

.member-dossier-person {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 12px !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: inherit !important;
  text-align: left !important;
  background: transparent !important;
}

.person-av-wrap .kid-av,
.person-av-wrap .avatar,
.member-dossier-person .kid-av,
.member-dossier-person .avatar,
.task-detail-avatar .kid-av,
.task-detail-avatar .avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 15px !important;
}

.member-dossier-person strong {
  display: block !important;
  color: var(--ink-strong) !important;
  font-size: 15px !important;
  font-weight: 720 !important;
}

.member-dossier-person em {
  display: block !important;
  margin-top: 4px !important;
  color: var(--ink-soft) !important;
  font-size: 12px !important;
  font-style: normal !important;
}

.member-dossier-stage {
  display: inline-flex !important;
  margin-bottom: 7px !important;
  color: var(--brand-blue) !important;
  font-size: 12px !important;
  font-weight: 720 !important;
}

.member-dossier-stage.tone-danger {
  color: #c93645 !important;
}

.member-dossier-stage.tone-warn {
  color: #a06100 !important;
}

.member-dossier-stage.tone-ok {
  color: #047857 !important;
}

.member-dossier-signal h2 {
  margin: 0 !important;
  color: var(--ink-strong) !important;
  font-size: 18px !important;
  font-weight: 740 !important;
  line-height: 1.3 !important;
}

.member-dossier-signal p {
  margin: 6px 0 0 !important;
  color: var(--ink-body) !important;
  font-size: 13px !important;
  line-height: 1.58 !important;
}

.member-dossier-actions,
.task-detail-actions {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.member-dossier-actions .act.ghost,
.task-detail-actions .act.ghost {
  color: var(--brand-blue) !important;
  background: #ffffff !important;
  border-color: rgba(8, 117, 225, 0.22) !important;
}

.task-detail-page {
  display: grid !important;
  gap: 14px !important;
  width: min(900px, 100%) !important;
  margin: 0 auto !important;
}

.task-back {
  justify-self: start !important;
  padding: 0 !important;
  border: 0 !important;
  color: #53657d !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

.task-detail-shell {
  display: grid !important;
  gap: 14px !important;
  padding: 24px !important;
  border: 1px solid rgba(9, 27, 52, 0.1) !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.task-detail-hero {
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
}

.task-detail-kicker,
.task-detail-block span {
  color: var(--brand-blue) !important;
  font-size: 12px !important;
  font-weight: 720 !important;
}

.task-detail-hero h1 {
  margin: 4px 0 0 !important;
  color: var(--ink-strong) !important;
  font-size: 34px !important;
  font-weight: 760 !important;
  line-height: 1.15 !important;
}

.task-detail-hero p {
  max-width: 680px !important;
  margin: 8px 0 0 !important;
  color: var(--ink-body) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
}

.task-detail-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.task-detail-block {
  display: grid !important;
  align-content: start !important;
  gap: 8px !important;
  min-height: 120px !important;
  padding: 18px !important;
  border: 1px solid rgba(9, 27, 52, 0.08) !important;
  border-radius: 15px !important;
  background: var(--surface-subtle) !important;
  box-shadow: none !important;
}

.task-detail-block p {
  margin: 0 !important;
  color: var(--ink-body) !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

.task-detail-script {
  grid-column: 1 / -1 !important;
  background: #ffffff !important;
}

.home-decision-shell .decision-panel {
  animation: aiCardIn 180ms cubic-bezier(0.23, 1, 0.32, 1) both !important;
}

@keyframes aiCardIn {
  from {
    opacity: 0.82;
    transform: translateY(5px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.task-detail-script p {
  padding: 14px 16px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(9, 27, 52, 0.08) !important;
  background: #f9fbfd !important;
}

.member-profile-ai {
  display: grid !important;
  gap: 14px !important;
  width: min(920px, 100%) !important;
  margin: 0 auto !important;
}

.member-profile-hero,
.member-profile-current,
.member-profile-block {
  border: 1px solid rgba(9, 27, 52, 0.1) !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.member-profile-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 18px !important;
  align-items: center !important;
  padding: 22px !important;
  border-radius: 20px !important;
}

.member-profile-person {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 14px !important;
  align-items: center !important;
}

.member-profile-person .person-av-wrap.lg,
.member-profile-person .kid-av.lg,
.member-profile-person .avatar.lg {
  width: 64px !important;
  height: 64px !important;
  border-radius: 18px !important;
}

.member-profile-person h1 {
  margin: 0 !important;
  color: var(--ink-strong) !important;
  font-size: 34px !important;
  font-weight: 760 !important;
  line-height: 1.12 !important;
}

.member-profile-person p {
  margin: 5px 0 0 !important;
  color: var(--ink-body) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.member-profile-hero .act {
  min-width: 120px !important;
  min-height: 40px !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  border: 1px solid rgba(8, 117, 225, 0.18) !important;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%) !important;
  box-shadow: none !important;
  font-weight: 720 !important;
}

.member-profile-current {
  display: grid !important;
  gap: 8px !important;
  padding: 22px !important;
  border-radius: 18px !important;
}

.member-profile-current span,
.member-profile-block > span {
  color: var(--brand-blue) !important;
  font-size: 12px !important;
  font-weight: 730 !important;
}

.member-profile-current h2 {
  margin: 0 !important;
  color: var(--ink-strong) !important;
  font-size: 24px !important;
  font-weight: 750 !important;
  line-height: 1.22 !important;
}

.member-profile-current p,
.member-profile-block p {
  margin: 0 !important;
  color: var(--ink-body) !important;
  font-size: 14px !important;
  line-height: 1.72 !important;
}

.member-profile-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.member-profile-block {
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
  min-height: 154px !important;
  padding: 18px !important;
  border-radius: 16px !important;
}

.member-profile-block strong {
  color: var(--ink-strong) !important;
  font-size: 18px !important;
  font-weight: 740 !important;
}

.member-profile-block ul {
  display: grid !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.member-profile-block li {
  display: grid !important;
  gap: 3px !important;
}

.member-profile-block li b,
.member-profile-events b {
  color: var(--ink-strong) !important;
  font-size: 13px !important;
  font-weight: 720 !important;
}

.member-profile-block li em {
  color: var(--ink-soft) !important;
  font-size: 12px !important;
  font-style: normal !important;
  line-height: 1.45 !important;
}

.member-profile-events {
  display: grid !important;
  gap: 8px !important;
}

.member-profile-events p {
  display: grid !important;
  gap: 3px !important;
}

@media (prefers-reduced-motion: reduce) {
  .home-decision-shell .decision-panel {
    animation: none !important;
  }
}

@media (hover: hover) and (pointer: fine) {
  .side-history-item:hover,
  .new-chat-btn:hover,
  .side-nav-item:hover {
    background: rgba(8, 117, 225, 0.06) !important;
  }

  .app.view-today .decision-actions .act:hover,
  .member-dossier-actions .act:hover,
  .task-detail-actions .act:hover,
  .composer-bar .act:not(.is-mute):hover {
    transform: translateY(-1px) !important;
  }
}

@media (max-width: 920px) {
  :root {
    --sidebar-w: 0px;
  }

  .app {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    display: none !important;
  }

  .app.view-today .stage,
  .app.view-task .stage,
  .app.view-clients .stage,
  .app.view-client .stage {
    width: min(100% - 32px, 720px) !important;
    padding-top: 52px !important;
    padding-bottom: 120px !important;
  }

  .app.view-today .home-hero .hello {
    font-size: 38px !important;
  }

  .home-composer-shell .composer {
    min-height: 118px !important;
    padding: 18px 18px 14px !important;
  }

  .app.view-today .decision-core,
  .app.view-today .decision-panel.is-follow-scene .decision-core,
  .member-dossier-card,
  .task-detail-grid,
  .member-profile-hero,
  .member-profile-grid {
    grid-template-columns: 1fr !important;
  }

  .app.view-today .decision-actions,
  .member-dossier-actions,
  .task-detail-actions {
    width: 100% !important;
    justify-content: stretch !important;
  }

  .app.view-today .decision-actions .act,
  .member-dossier-actions .act,
  .task-detail-actions .act {
    flex: 1 1 auto !important;
  }

  .task-detail-script {
    grid-column: auto !important;
  }
}

@media (max-width: 560px) {
  .app.view-today .stage,
  .app.view-task .stage,
  .app.view-clients .stage,
  .app.view-client .stage {
    width: calc(100% - 24px) !important;
    padding-top: 34px !important;
  }

  .app.view-today .home-hero .hello,
  .member-dossier-head h1,
  .task-detail-hero h1 {
    font-size: 30px !important;
  }

  .home-composer-shell .composer textarea {
    font-size: 16px !important;
  }

  .app.view-today .decision-copy h2 {
    font-size: 22px !important;
  }

  .task-detail-shell {
    padding: 18px !important;
  }

  .member-profile-person {
    grid-template-columns: 54px minmax(0, 1fr) !important;
  }

  .member-profile-person .person-av-wrap.lg,
  .member-profile-person .kid-av.lg,
  .member-profile-person .avatar.lg {
    width: 54px !important;
    height: 54px !important;
    border-radius: 16px !important;
  }

  .member-profile-person h1 {
    font-size: 28px !important;
  }

  .member-profile-hero .act {
    width: 100% !important;
  }
}

/* ai164: restore prior Today Focus home layout */
.app.view-today .stage {
  width: min(1040px, calc(100% - 96px)) !important;
  padding-top: 56px !important;
  padding-bottom: 170px !important;
}

.app.view-today .home-hero {
  display: block !important;
  width: min(920px, 100%) !important;
  margin: 0 auto 18px !important;
  padding: 0 !important;
  text-align: left !important;
}

.app.view-today .hello-band {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.app.view-today .hello-band::after,
.app.view-today .home-hero::after {
  display: none !important;
}

.app.view-today .hello-copy {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  text-align: left !important;
}

.app.view-today .home-context {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 0 10px !important;
  color: #536987 !important;
  font-size: 13px !important;
  font-weight: 690 !important;
}

.app.view-today .home-context span {
  width: 10px !important;
  height: 10px !important;
  border-radius: 999px !important;
  background: #16b7d8 !important;
  box-shadow: 0 0 0 4px rgba(22, 183, 216, 0.13) !important;
}

.app.view-today .home-hero .hello {
  margin: 0 !important;
  color: var(--ink-strong) !important;
  font-size: 42px !important;
  font-weight: 760 !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.app.view-today .decision-panel {
  position: relative !important;
  width: min(920px, 100%) !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  border-radius: 22px !important;
  border: 1px solid rgba(9, 27, 52, 0.1) !important;
  background:
    linear-gradient(135deg, rgba(239, 248, 255, 0.9) 0%, rgba(255, 255, 255, 0.96) 52%, rgba(252, 247, 255, 0.82) 100%),
    #ffffff !important;
  box-shadow:
    0 22px 64px rgba(22, 54, 102, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
}

.app.view-today .decision-panel::before {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: 0 0 auto !important;
  height: 2px !important;
  background: linear-gradient(90deg, #0875e1 0%, #11c2dc 58%, #ff78bc 100%) !important;
}

.app.view-today .decision-head {
  position: relative !important;
  inset: auto !important;
  z-index: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 34px !important;
  padding: 22px 28px 0 !important;
}

.app.view-today .decision-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 22px !important;
  color: #0875e1 !important;
  font-size: 12px !important;
  font-weight: 760 !important;
}

.app.view-today .decision-status::before {
  display: block !important;
  content: "" !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 999px !important;
  background: #18bde0 !important;
  box-shadow: 0 0 0 4px rgba(24, 189, 224, 0.15) !important;
}

.app.view-today .decision-text-switch {
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #40516b !important;
  background: transparent !important;
  font-size: 13px !important;
  font-weight: 690 !important;
}

.app.view-today .decision-core,
.app.view-today .decision-panel.is-follow-scene .decision-core {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) 128px !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 20px 28px 22px !important;
}

.app.view-today .decision-avatar,
.app.view-today .decision-person-av,
.app.view-today .decision-person-av .kid-av,
.app.view-today .decision-person-av .avatar,
.app.view-today .decision-avatar .kid-av,
.app.view-today .decision-avatar .avatar,
.app.view-today .decision-avatar .focus-faces,
.app.view-today .decision-avatar .focus-biz-icon {
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
}

.app.view-today .decision-copy {
  display: grid !important;
  gap: 0 !important;
}

.app.view-today .decision-copy h2 {
  margin: 0 !important;
  color: var(--ink-strong) !important;
  font-size: 28px !important;
  font-weight: 760 !important;
  line-height: 1.18 !important;
}

.app.view-today .decision-copy p:not(.decision-kicker) {
  max-width: 56em !important;
  margin: 9px 0 0 !important;
  color: #40516a !important;
  font-size: 14px !important;
  line-height: 1.62 !important;
}

.app.view-today .decision-evidence {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 13px 0 0 !important;
  padding: 0 !important;
}

.app.view-today .decision-evidence span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 25px !important;
  padding: 0 11px !important;
  border: 1px solid rgba(8, 117, 225, 0.18) !important;
  border-radius: 999px !important;
  color: #075da9 !important;
  background: rgba(240, 248, 255, 0.82) !important;
  font-size: 12px !important;
  font-weight: 620 !important;
}

.app.view-today .decision-actions {
  justify-self: end !important;
  align-self: center !important;
}

.app.view-today .decision-actions .act {
  min-width: 116px !important;
  min-height: 40px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.26) !important;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0) 34%),
    linear-gradient(135deg, #0875e1 0%, #0566cf 100%) !important;
  box-shadow: 0 12px 26px rgba(8, 117, 225, 0.18) !important;
  font-weight: 730 !important;
}

.app.view-today .decision-next {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  border-top: 1px solid rgba(9, 27, 52, 0.075) !important;
  background: rgba(255, 255, 255, 0.68) !important;
}

.app.view-today .decision-next-item {
  display: grid !important;
  align-content: center !important;
  gap: 4px !important;
  min-height: 88px !important;
  padding: 15px 28px !important;
  border: 0 !important;
  border-right: 1px solid rgba(9, 27, 52, 0.075) !important;
  border-radius: 0 !important;
  color: inherit !important;
  background: transparent !important;
  text-align: left !important;
}

.app.view-today .decision-next-item:last-child {
  border-right: 0 !important;
}

.app.view-today .decision-next-item span {
  color: #0875e1 !important;
  font-size: 12px !important;
  font-weight: 740 !important;
}

.app.view-today .decision-next-item strong {
  color: var(--ink-strong) !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
}

.app.view-today .decision-next-item em {
  color: #53637a !important;
  font-size: 13px !important;
  font-style: normal !important;
  line-height: 1.45 !important;
}

.app.view-today .home-composer-shell {
  display: none !important;
}

.app.view-today:not(.has-canvas) .dock {
  display: block !important;
  left: var(--sidebar-w) !important;
  right: 0 !important;
  padding-bottom: 20px !important;
}

.app.view-today:not(.has-canvas) .dock .composer {
  width: min(920px, calc(100vw - var(--sidebar-w) - 144px)) !important;
  border-color: rgba(8, 117, 225, 0.2) !important;
  box-shadow:
    0 0 0 4px rgba(8, 117, 225, 0.08),
    0 22px 56px rgba(18, 52, 92, 0.1) !important;
}

@media (max-width: 720px) {
  .app.view-today .stage {
    width: min(calc(100vw - 36px), 390px) !important;
    padding-top: 44px !important;
    padding-bottom: 128px !important;
  }

  .app.view-today .home-hero {
    width: 100% !important;
    margin-bottom: 14px !important;
  }

  .app.view-today .home-hero .hello {
    font-size: 32px !important;
  }

  .app.view-today .decision-panel {
    width: 100% !important;
    border-radius: 18px !important;
  }

  .app.view-today .decision-head {
    padding: 18px 18px 0 !important;
  }

  .app.view-today .decision-core,
  .app.view-today .decision-panel.is-follow-scene .decision-core {
    grid-template-columns: 52px minmax(0, 1fr) !important;
    gap: 14px !important;
    padding: 18px !important;
  }

  .app.view-today .decision-copy h2 {
    font-size: 22px !important;
  }

  .app.view-today .decision-actions {
    grid-column: 1 / -1 !important;
    width: 100% !important;
  }

  .app.view-today .decision-actions .act {
    width: 100% !important;
  }

  .app.view-today .decision-next {
    grid-template-columns: 1fr !important;
  }

  .app.view-today .decision-next-item {
    min-height: 74px !important;
    padding: 14px 18px !important;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(9, 27, 52, 0.075) !important;
  }

  .app.view-today .decision-next-item:last-child {
    border-bottom: 0 !important;
  }

  .app.view-today:not(.has-canvas) .dock {
    left: 0 !important;
    padding: 8px 14px calc(12px + env(safe-area-inset-bottom)) !important;
  }

  .app.view-today:not(.has-canvas) .dock .composer {
    width: calc(100vw - 36px) !important;
    max-width: calc(100vw - 36px) !important;
  }
}

/* ai167: compact, premium scale pass */
.app.view-today .stage {
  width: min(980px, calc(100% - 112px)) !important;
  padding-top: 54px !important;
}

.app.view-today .home-hero {
  width: min(860px, 100%) !important;
  margin-bottom: 16px !important;
}

.app.view-today .home-context {
  gap: 6px !important;
  margin-bottom: 8px !important;
  color: #5e7088 !important;
  font-size: 12px !important;
  font-weight: 640 !important;
}

.app.view-today .home-context span {
  width: 7px !important;
  height: 7px !important;
  box-shadow: 0 0 0 3px rgba(22, 183, 216, 0.11) !important;
}

.app.view-today .home-hero .hello {
  font-size: 34px !important;
  font-weight: 710 !important;
  line-height: 1.08 !important;
}

.app.view-today .decision-panel {
  width: min(860px, 100%) !important;
  border-radius: 18px !important;
  border-color: rgba(13, 29, 50, 0.09) !important;
  background:
    linear-gradient(135deg, rgba(244, 250, 255, 0.82) 0%, rgba(255, 255, 255, 0.97) 54%, rgba(253, 250, 255, 0.78) 100%),
    #ffffff !important;
  box-shadow:
    0 18px 44px rgba(29, 55, 92, 0.065),
    0 1px 0 rgba(255, 255, 255, 0.88) inset !important;
}

.app.view-today .decision-panel::before {
  height: 1px !important;
  opacity: 0.9 !important;
}

.app.view-today .decision-head {
  min-height: 28px !important;
  padding: 18px 24px 0 !important;
}

.app.view-today .decision-status {
  gap: 6px !important;
  min-height: 20px !important;
  font-size: 11.5px !important;
  font-weight: 690 !important;
}

.app.view-today .decision-status::before {
  width: 7px !important;
  height: 7px !important;
  box-shadow: 0 0 0 3px rgba(24, 189, 224, 0.13) !important;
}

.app.view-today .decision-text-switch {
  min-height: 22px !important;
  color: #65738a !important;
  font-size: 12px !important;
  font-weight: 640 !important;
}

.app.view-today .decision-core,
.app.view-today .decision-panel.is-follow-scene .decision-core {
  grid-template-columns: 50px minmax(0, 1fr) 112px !important;
  gap: 16px !important;
  padding: 16px 24px 20px !important;
}

.app.view-today .decision-avatar,
.app.view-today .decision-person-av,
.app.view-today .decision-person-av .kid-av,
.app.view-today .decision-person-av .avatar,
.app.view-today .decision-avatar .kid-av,
.app.view-today .decision-avatar .avatar,
.app.view-today .decision-avatar .focus-faces,
.app.view-today .decision-avatar .focus-biz-icon {
  width: 50px !important;
  height: 50px !important;
  border-radius: 15px !important;
}

.app.view-today .decision-copy h2 {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
}

.app.view-today .decision-copy p:not(.decision-kicker) {
  margin-top: 7px !important;
  color: #4d5d72 !important;
  font-size: 13px !important;
  line-height: 1.58 !important;
}

.app.view-today .decision-evidence {
  gap: 6px !important;
  margin-top: 10px !important;
}

.app.view-today .decision-evidence span {
  min-height: 22px !important;
  padding: 0 9px !important;
  border-color: rgba(8, 117, 225, 0.16) !important;
  color: #1b629e !important;
  background: rgba(244, 249, 255, 0.76) !important;
  font-size: 11.5px !important;
  font-weight: 580 !important;
}

.app.view-today .decision-actions .act,
.member-dossier-actions .act,
.task-detail-actions .act,
.member-profile-hero .act {
  min-width: 104px !important;
  min-height: 36px !important;
  padding: 0 15px !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 18px rgba(8, 117, 225, 0.13) !important;
  font-size: 13px !important;
  font-weight: 680 !important;
  transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1), border-color 150ms ease, background 150ms ease !important;
}

.app.view-today .decision-actions .act:active,
.member-dossier-actions .act:active,
.task-detail-actions .act:active,
.member-profile-hero .act:active {
  transform: scale(0.97) !important;
}

.app.view-today .decision-next-item {
  min-height: 70px !important;
  padding: 12px 24px !important;
}

.app.view-today .decision-next-item span {
  font-size: 11.5px !important;
  font-weight: 690 !important;
}

.app.view-today .decision-next-item strong {
  font-size: 14.5px !important;
  font-weight: 690 !important;
}

.app.view-today .decision-next-item em {
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}

.app.view-today:not(.has-canvas) .dock {
  padding-bottom: 18px !important;
}

.app.view-today:not(.has-canvas) .dock .composer,
.app:not(.has-canvas) .dock .composer {
  width: min(860px, calc(100vw - var(--sidebar-w) - 156px)) !important;
  border-radius: 18px !important;
  border-color: rgba(13, 29, 50, 0.105) !important;
  box-shadow:
    0 16px 42px rgba(18, 52, 92, 0.075),
    0 0 0 3px rgba(8, 117, 225, 0.045) !important;
}

.app:not(.has-canvas) .dock .composer textarea {
  min-height: 46px !important;
  padding: 14px 16px 0 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}

.app:not(.has-canvas) .dock .composer textarea::placeholder {
  color: #8a99ad !important;
}

.app:not(.has-canvas) .dock .composer-bar {
  padding: 0 10px 10px !important;
}

.composer-bar .act {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
}

.composer-bar .act.is-mute {
  color: #8fa2ba !important;
  background: linear-gradient(180deg, #f6f9fc 0%, #edf2f7 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.member-dossier-head h1,
.task-detail-hero h1,
.member-profile-person h1 {
  font-size: 32px !important;
  font-weight: 710 !important;
  line-height: 1.12 !important;
}

.member-dossier-head p,
.task-detail-hero p,
.member-profile-person p {
  font-size: 14px !important;
  line-height: 1.62 !important;
}

.member-dossier-card {
  min-height: 96px !important;
  padding: 15px 16px !important;
  border-radius: 14px !important;
}

.member-dossier-signal h2,
.member-profile-current h2 {
  font-size: 17px !important;
  font-weight: 700 !important;
}

.member-dossier-signal p,
.member-profile-current p,
.member-profile-block p,
.task-detail-block p {
  font-size: 13px !important;
}

.member-dossier-tabs .member-tab {
  min-height: 29px !important;
  padding: 0 11px !important;
  font-size: 12px !important;
}

.task-detail-shell,
.member-profile-hero,
.member-profile-current,
.member-profile-block {
  border-radius: 16px !important;
  box-shadow: none !important;
}

.task-detail-block {
  min-height: 104px !important;
  padding: 15px !important;
  border-radius: 13px !important;
}

.side-brand-name {
  font-size: 15px !important;
  font-weight: 720 !important;
}

.side-brand-sub,
.side-section-title {
  font-size: 11px !important;
}

.new-chat-btn,
.side-search-box,
.side-nav-item {
  min-height: 38px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}

.side-history-item {
  padding: 7px 8px !important;
  border-radius: 9px !important;
}

.side-history-title {
  font-size: 12.5px !important;
  font-weight: 640 !important;
}

.side-history-time {
  font-size: 11px !important;
}

@media (hover: hover) and (pointer: fine) {
  .app.view-today .decision-actions .act:hover,
  .member-dossier-actions .act:hover,
  .task-detail-actions .act:hover,
  .member-profile-hero .act:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 10px 22px rgba(8, 117, 225, 0.16) !important;
  }
}

@media (max-width: 720px) {
  .app.view-today .stage {
    width: min(calc(100vw - 32px), 390px) !important;
    padding-top: 34px !important;
    padding-bottom: 118px !important;
  }

  .app.view-today .home-hero .hello {
    font-size: 29px !important;
  }

  .app.view-today .decision-head {
    padding: 15px 16px 0 !important;
  }

  .app.view-today .decision-core,
  .app.view-today .decision-panel.is-follow-scene .decision-core {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 15px 16px 16px !important;
  }

  .app.view-today .decision-avatar,
  .app.view-today .decision-person-av,
  .app.view-today .decision-person-av .kid-av,
  .app.view-today .decision-person-av .avatar,
  .app.view-today .decision-avatar .kid-av,
  .app.view-today .decision-avatar .avatar,
  .app.view-today .decision-avatar .focus-faces,
  .app.view-today .decision-avatar .focus-biz-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
  }

  .app.view-today .decision-copy h2 {
    font-size: 19px !important;
  }

  .app.view-today .decision-actions {
    grid-column: 1 / -1 !important;
  }

  .app.view-today .decision-actions .act {
    width: 100% !important;
  }

  .app.view-today .decision-next-item {
    min-height: 66px !important;
    padding: 12px 16px !important;
  }

  .app.view-today:not(.has-canvas) .dock .composer,
  .app:not(.has-canvas) .dock .composer {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
  }

  .member-dossier-head h1,
  .task-detail-hero h1,
  .member-profile-person h1 {
    font-size: 27px !important;
  }
}

/* ai168: refined scale and low-noise surface pass */
:root {
  --ui-hairline: rgba(15, 23, 42, 0.075);
  --ui-hairline-strong: rgba(15, 23, 42, 0.105);
  --ui-soft-fill: rgba(248, 251, 255, 0.72);
}

html,
body,
.app-main,
.side-history {
  scrollbar-width: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.app-main::-webkit-scrollbar,
.side-history::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

.app.view-today .stage {
  width: min(940px, calc(100% - 112px)) !important;
  padding-top: clamp(54px, 7vh, 76px) !important;
  gap: 14px !important;
}

.app.view-today .home-hero {
  width: min(860px, 100%) !important;
  margin-bottom: 14px !important;
}

.app.view-today .home-context {
  margin-bottom: 7px !important;
  font-size: 12px !important;
  font-weight: 620 !important;
  color: #64748b !important;
}

.app.view-today .home-context::before {
  width: 7px !important;
  height: 7px !important;
  box-shadow: 0 0 0 3px rgba(8, 117, 225, 0.08) !important;
}

.app.view-today .home-hero .hello {
  font-size: 32px !important;
  font-weight: 690 !important;
  line-height: 1.1 !important;
}

.app.view-today .home-hero .lead {
  max-width: 48em !important;
  margin-top: 8px !important;
  font-size: 13px !important;
  line-height: 1.62 !important;
  color: #66758a !important;
}

.app.view-today .decision-panel {
  width: min(860px, 100%) !important;
  border-radius: 16px !important;
  border-color: var(--ui-hairline) !important;
  background:
    linear-gradient(135deg, rgba(246, 251, 255, 0.78), rgba(255, 255, 255, 0.98) 48%, rgba(250, 253, 255, 0.76)),
    #ffffff !important;
  box-shadow: none !important;
}

.app.view-today .decision-panel::before {
  display: none !important;
}

.app.view-today .decision-head {
  min-height: 26px !important;
  padding: 15px 21px 0 !important;
}

.app.view-today .decision-status {
  gap: 6px !important;
  font-size: 11.5px !important;
  font-weight: 640 !important;
  color: #0875e1 !important;
}

.app.view-today .decision-status::before {
  width: 7px !important;
  height: 7px !important;
}

.app.view-today .decision-switch {
  color: #32445d !important;
  font-size: 12px !important;
  font-weight: 610 !important;
}

.app.view-today .decision-panel.is-follow-scene .decision-core,
.app.view-today .decision-core {
  grid-template-columns: 48px minmax(0, 1fr) 104px !important;
  gap: 15px !important;
  padding: 13px 21px 18px !important;
}

.app.view-today .decision-avatar,
.app.view-today .decision-person-av,
.app.view-today .decision-person-av .kid-av,
.app.view-today .decision-person-av .avatar,
.app.view-today .decision-avatar .kid-av,
.app.view-today .decision-avatar .avatar,
.app.view-today .decision-avatar .focus-faces,
.app.view-today .decision-avatar .focus-biz-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
}

.app.view-today .decision-copy h2 {
  font-size: 21px !important;
  font-weight: 690 !important;
  line-height: 1.22 !important;
}

.app.view-today .decision-copy p {
  margin-top: 6px !important;
  font-size: 13px !important;
  line-height: 1.56 !important;
  color: #40516a !important;
}

.app.view-today .decision-evidence {
  margin-top: 9px !important;
  gap: 5px !important;
}

.app.view-today .decision-evidence span {
  min-height: 20px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  border-color: rgba(8, 117, 225, 0.13) !important;
  background: rgba(247, 251, 255, 0.72) !important;
  font-size: 11px !important;
  font-weight: 570 !important;
}

.app.view-today .decision-actions {
  gap: 7px !important;
}

.app.view-today .decision-actions .act,
.member-dossier-actions .act,
.task-detail-actions .act,
.member-profile-hero .act {
  min-width: 96px !important;
  min-height: 34px !important;
  padding: 0 13px !important;
  border-radius: 9px !important;
  border: 1px solid rgba(8, 117, 225, 0.18) !important;
  background: linear-gradient(180deg, #0877e6 0%, #0568cf 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
  font-size: 12.5px !important;
  font-weight: 660 !important;
}

.app.view-today .decision-actions .act.ghost,
.member-dossier-actions .act.ghost,
.task-detail-actions .act.ghost {
  color: #0b63c7 !important;
  background: rgba(255, 255, 255, 0.86) !important;
  border-color: rgba(8, 117, 225, 0.18) !important;
  box-shadow: none !important;
}

.app.view-today .decision-next {
  border-top-color: rgba(15, 23, 42, 0.075) !important;
}

.app.view-today .decision-next-item {
  min-height: 62px !important;
  padding: 11px 21px !important;
}

.app.view-today .decision-next-item + .decision-next-item {
  border-left-color: rgba(15, 23, 42, 0.075) !important;
}

.app.view-today .decision-next-item span {
  font-size: 11px !important;
}

.app.view-today .decision-next-item strong {
  margin-top: 3px !important;
  font-size: 14px !important;
  font-weight: 660 !important;
}

.app.view-today .decision-next-item em {
  margin-top: 3px !important;
  font-size: 12px !important;
  color: #66758a !important;
}

.app.view-today:not(.has-canvas) .dock {
  padding-bottom: 16px !important;
}

.app.view-today:not(.has-canvas) .dock .composer,
.app:not(.has-canvas) .dock .composer {
  width: min(920px, calc(100vw - var(--sidebar-w) - 132px)) !important;
  border-radius: 16px !important;
  border-color: var(--ui-hairline-strong) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow:
    0 10px 28px rgba(17, 40, 74, 0.045),
    0 1px 0 rgba(255, 255, 255, 0.92) inset !important;
}

.app:not(.has-canvas) .dock .composer:focus-within {
  border-color: rgba(8, 117, 225, 0.2) !important;
  box-shadow:
    0 12px 34px rgba(17, 40, 74, 0.07),
    0 0 0 3px rgba(8, 117, 225, 0.055) !important;
}

.app:not(.has-canvas) .dock .composer textarea {
  min-height: 44px !important;
  padding: 13px 15px 0 !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
}

.app:not(.has-canvas) .dock .composer-bar {
  min-height: 40px !important;
  padding: 0 9px 9px !important;
}

.composer-bar .act {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
}

.composer-bar .act svg {
  width: 15px !important;
  height: 15px !important;
}

.composer-bar .act.is-mute {
  color: #8ba0b8 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(239, 244, 250, 0.92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.member-dossier-page,
.task-detail-page,
.member-profile-ai {
  gap: 14px !important;
}

.member-dossier-head h1,
.task-detail-hero h1,
.member-profile-person h1 {
  font-size: 29px !important;
  font-weight: 690 !important;
  line-height: 1.14 !important;
}

.member-dossier-head p,
.task-detail-hero p,
.member-profile-person p {
  font-size: 13px !important;
  line-height: 1.58 !important;
  color: #52637a !important;
}

.member-dossier-card {
  min-height: 88px !important;
  padding: 13px 15px !important;
  gap: 14px !important;
  border-radius: 13px !important;
  border-color: rgba(15, 23, 42, 0.075) !important;
  box-shadow: none !important;
}

.member-dossier-card.is-primary {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(8, 117, 225, 0.16) !important;
}

.member-dossier-person {
  grid-template-columns: 46px minmax(0, 1fr) !important;
  gap: 10px !important;
}

.person-av-wrap .avatar,
.member-dossier-person .kid-av,
.member-dossier-person .avatar,
.task-detail-avatar .kid-av,
.task-detail-avatar .avatar {
  width: 46px !important;
  height: 46px !important;
}

.member-dossier-person strong {
  font-size: 14px !important;
  font-weight: 670 !important;
}

.member-dossier-person em {
  margin-top: 3px !important;
  font-size: 11.5px !important;
}

.member-dossier-stage {
  margin-bottom: 5px !important;
  font-size: 11px !important;
}

.member-dossier-signal h2,
.member-profile-current h2 {
  font-size: 15.5px !important;
  font-weight: 670 !important;
}

.member-dossier-signal p,
.member-profile-current p,
.member-profile-block p,
.task-detail-block p {
  margin-top: 4px !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
}

.member-dossier-tabs .member-tab {
  min-height: 28px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 11.5px !important;
}

.task-detail-shell,
.member-profile-hero,
.member-profile-current,
.member-profile-block {
  border-radius: 15px !important;
  border-color: rgba(15, 23, 42, 0.075) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: none !important;
}

.task-detail-shell {
  padding: 20px !important;
  gap: 12px !important;
}

.task-detail-hero {
  gap: 12px !important;
}

.task-detail-grid {
  gap: 10px !important;
}

.task-detail-block {
  min-height: 92px !important;
  padding: 13px !important;
  border-radius: 12px !important;
  border-color: rgba(15, 23, 42, 0.07) !important;
  background: var(--ui-soft-fill) !important;
}

.task-detail-block strong,
.member-profile-block strong {
  font-size: 15px !important;
  font-weight: 670 !important;
}

.task-detail-script {
  padding: 12px 13px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  line-height: 1.58 !important;
}

.task-detail-actions {
  gap: 8px !important;
}

.side {
  background: #f6f8fb !important;
}

.side-inner {
  padding: 22px 14px 14px !important;
}

.side-primary-actions {
  gap: 9px !important;
}

.new-chat-btn,
.side-search-box,
.side-nav-item {
  min-height: 37px !important;
  border-radius: 9px !important;
  font-size: 12.5px !important;
}

.side-brand-name {
  font-size: 14.5px !important;
}

.side-brand-sub,
.side-section-title {
  font-size: 10.5px !important;
}

.side-history {
  gap: 5px !important;
}

.side-history-group {
  gap: 4px !important;
}

.side-history-heading {
  font-size: 11px !important;
}

.side-history-item {
  min-height: 28px !important;
  padding: 5px 7px !important;
}

.side-history-title {
  font-size: 12px !important;
  font-weight: 610 !important;
}

.side-history-time {
  font-size: 10.5px !important;
}

@media (hover: hover) and (pointer: fine) {
  .app.view-today .decision-panel:hover,
  .member-dossier-card:hover,
  .task-detail-shell:hover,
  .member-profile-hero:hover,
  .member-profile-current:hover,
  .member-profile-block:hover {
    border-color: rgba(8, 117, 225, 0.13) !important;
  }

  .app.view-today .decision-actions .act:hover,
  .member-dossier-actions .act:hover,
  .task-detail-actions .act:hover,
  .member-profile-hero .act:hover {
    transform: translateY(-1px) !important;
    box-shadow:
      0 7px 16px rgba(8, 117, 225, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  }
}

@media (max-width: 720px) {
  .app.view-today .stage {
    width: min(calc(100vw - 30px), 390px) !important;
    padding-top: 32px !important;
    padding-bottom: 112px !important;
  }

  .app.view-today .home-hero .hello {
    font-size: 27px !important;
  }

  .app.view-today .decision-head {
    padding: 14px 15px 0 !important;
  }

  .app.view-today .decision-core,
  .app.view-today .decision-panel.is-follow-scene .decision-core {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    gap: 11px !important;
    padding: 13px 15px 15px !important;
  }

  .app.view-today .decision-avatar,
  .app.view-today .decision-person-av,
  .app.view-today .decision-person-av .kid-av,
  .app.view-today .decision-person-av .avatar,
  .app.view-today .decision-avatar .kid-av,
  .app.view-today .decision-avatar .avatar,
  .app.view-today .decision-avatar .focus-faces,
  .app.view-today .decision-avatar .focus-biz-icon {
    width: 44px !important;
    height: 44px !important;
  }

  .app.view-today .decision-copy h2 {
    font-size: 18px !important;
  }

  .app.view-today .decision-actions {
    grid-column: 1 / -1 !important;
    align-items: stretch !important;
  }

  .app.view-today .decision-next {
    grid-template-columns: 1fr !important;
  }

  .app.view-today .decision-next-item + .decision-next-item {
    border-left: 0 !important;
    border-top: 1px solid rgba(15, 23, 42, 0.075) !important;
  }

  .app.view-today:not(.has-canvas) .dock .composer,
  .app:not(.has-canvas) .dock .composer {
    width: calc(100vw - 30px) !important;
    max-width: calc(100vw - 30px) !important;
  }

  .member-dossier-head h1,
  .task-detail-hero h1,
  .member-profile-person h1 {
    font-size: 25px !important;
  }

  .member-dossier-card {
    min-height: 0 !important;
    padding: 13px !important;
  }
}

/* ai169: taste-skill visual refinement */
:root {
  --slm-page: #f7f9fc;
  --slm-page-soft: #f2f6fb;
  --slm-panel: rgba(255, 255, 255, 0.94);
  --slm-panel-solid: #ffffff;
  --slm-line: rgba(16, 24, 40, 0.075);
  --slm-line-strong: rgba(16, 24, 40, 0.12);
  --slm-ink: #08111f;
  --slm-muted: #66758a;
  --slm-soft: #8a99ad;
  --slm-blue: #0875e1;
  --slm-blue-deep: #0567c8;
}

body {
  background: var(--slm-page) !important;
  color: var(--slm-ink) !important;
  text-rendering: optimizeLegibility;
}

.workspace,
.col-main {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--slm-page) 42%, var(--slm-page-soft) 100%) !important;
}

.app-main,
.col-main {
  overscroll-behavior: contain !important;
}

.app.view-today .stage {
  width: min(980px, calc(100% - 120px)) !important;
  padding-top: clamp(50px, 6.6vh, 72px) !important;
}

.app.view-today .home-hero {
  width: min(880px, 100%) !important;
  margin-bottom: 12px !important;
}

.app.view-today .home-context {
  display: none !important;
}

.app.view-today .home-hero .hello {
  font-size: 31px !important;
  font-weight: 680 !important;
  line-height: 1.12 !important;
  color: var(--slm-ink) !important;
}

.app.view-today .home-hero .lead {
  max-width: 46em !important;
  margin-top: 7px !important;
  font-size: 12.5px !important;
  color: var(--slm-muted) !important;
}

.app.view-today .decision-panel {
  width: min(880px, 100%) !important;
  border-radius: 15px !important;
  border-color: var(--slm-line) !important;
  background:
    linear-gradient(145deg, rgba(247, 251, 255, 0.86) 0%, rgba(255, 255, 255, 0.98) 48%, rgba(248, 252, 255, 0.84) 100%),
    var(--slm-panel-solid) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(15, 23, 42, 0.025) !important;
}

.app.view-today .decision-head {
  min-height: 24px !important;
  padding: 14px 20px 0 !important;
}

.app.view-today .decision-status {
  gap: 0 !important;
  font-size: 11.5px !important;
  font-weight: 620 !important;
  color: #166fc5 !important;
}

.app.view-today .decision-status::before {
  display: none !important;
}

.app.view-today .decision-switch,
.app.view-today .decision-text-switch {
  min-height: 28px !important;
  padding: 0 2px !important;
  border-radius: 0 !important;
  color: #50627a !important;
  font-size: 12px !important;
  font-weight: 590 !important;
  background: transparent !important;
}

.app.view-today .decision-core,
.app.view-today .decision-panel.is-follow-scene .decision-core {
  grid-template-columns: 46px minmax(0, 1fr) auto !important;
  gap: 15px !important;
  padding: 12px 20px 18px !important;
}

.app.view-today .decision-avatar,
.app.view-today .decision-person-av,
.app.view-today .decision-person-av .kid-av,
.app.view-today .decision-person-av .avatar,
.app.view-today .decision-avatar .kid-av,
.app.view-today .decision-avatar .avatar,
.app.view-today .decision-avatar .focus-faces,
.app.view-today .decision-avatar .focus-biz-icon {
  width: 46px !important;
  height: 46px !important;
  border-radius: 13px !important;
}

.app.view-today .decision-copy h2 {
  font-size: 20px !important;
  font-weight: 670 !important;
  line-height: 1.24 !important;
  color: var(--slm-ink) !important;
}

.app.view-today .decision-copy p {
  max-width: 58em !important;
  margin-top: 5px !important;
  font-size: 12.5px !important;
  line-height: 1.58 !important;
  color: #43546b !important;
}

.app.view-today .decision-evidence {
  margin-top: 8px !important;
}

.app.view-today .decision-evidence span {
  min-height: 19px !important;
  padding: 0 7px !important;
  border-color: rgba(8, 117, 225, 0.115) !important;
  background: rgba(250, 253, 255, 0.72) !important;
  color: #2c659b !important;
  font-size: 10.8px !important;
  font-weight: 560 !important;
}

.app.view-today .decision-actions {
  min-width: 112px !important;
  align-items: center !important;
}

.app.view-today .decision-actions .act,
.member-dossier-actions .act,
.task-detail-actions .act,
.member-profile-hero .act {
  min-width: 96px !important;
  min-height: 32px !important;
  padding: 0 13px !important;
  border-radius: 10px !important;
  border-color: rgba(8, 117, 225, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(28, 133, 239, 0.98), rgba(5, 103, 200, 0.98)) !important;
  color: #ffffff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 1px 2px rgba(5, 103, 200, 0.12) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  white-space: nowrap !important;
}

.app.view-today .decision-actions .act.ghost,
.member-dossier-actions .act.ghost,
.task-detail-actions .act.ghost,
.member-profile-hero .act.ghost {
  color: #0b63c7 !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border-color: rgba(8, 117, 225, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.app.view-today .decision-next {
  border-top-color: var(--slm-line) !important;
  background: rgba(255, 255, 255, 0.38) !important;
}

.app.view-today .decision-next-item {
  min-height: 58px !important;
  padding: 10px 20px !important;
  background: transparent !important;
}

.app.view-today .decision-next-item + .decision-next-item {
  border-left-color: var(--slm-line) !important;
}

.app.view-today .decision-next-item span {
  color: #166fc5 !important;
  font-size: 10.8px !important;
}

.app.view-today .decision-next-item strong {
  font-size: 13.5px !important;
}

.app.view-today .decision-next-item em {
  font-size: 11.8px !important;
}

.app.view-today:not(.has-canvas) .dock {
  padding-bottom: 14px !important;
}

.app.view-today:not(.has-canvas) .dock .composer,
.app:not(.has-canvas) .dock .composer {
  width: min(920px, calc(100vw - var(--sidebar-w) - 132px)) !important;
  border-radius: 15px !important;
  border-color: var(--slm-line-strong) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow:
    0 8px 20px rgba(15, 23, 42, 0.035),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.app:not(.has-canvas) .dock .composer textarea {
  min-height: 42px !important;
  padding: 12px 14px 0 !important;
  color: var(--slm-ink) !important;
  font-size: 13px !important;
}

.app:not(.has-canvas) .dock .composer textarea::placeholder {
  color: #93a1b4 !important;
}

.app:not(.has-canvas) .dock .composer-bar {
  min-height: 38px !important;
  padding: 0 8px 8px !important;
}

.tool-btn {
  color: #76869b !important;
}

.composer-bar .act {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
}

.composer-bar .act.is-mute {
  color: #8999ad !important;
  border-color: rgba(16, 24, 40, 0.075) !important;
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 1px rgba(15, 23, 42, 0.03) !important;
}

.side {
  background: #f5f7fa !important;
}

.side-inner {
  padding: 22px 14px 14px !important;
}

.side-brand {
  margin-bottom: 20px !important;
}

.side-brand-name {
  font-size: 14px !important;
  font-weight: 680 !important;
}

.side-brand-sub {
  color: #66758a !important;
  font-size: 10.5px !important;
}

.new-chat-btn,
.side-search-box {
  min-height: 36px !important;
  border-color: rgba(16, 24, 40, 0.075) !important;
  background: rgba(255, 255, 255, 0.74) !important;
  box-shadow: none !important;
}

.new-chat-btn {
  font-size: 12.5px !important;
  font-weight: 640 !important;
}

.side-search-box {
  color: #718096 !important;
}

.side-section {
  padding-top: 17px !important;
  border-top-color: rgba(16, 24, 40, 0.075) !important;
}

.side-section-title {
  margin-bottom: 8px !important;
  color: #8997aa !important;
  font-size: 10.5px !important;
  font-weight: 650 !important;
}

.side-nav {
  gap: 5px !important;
}

.side-nav-item {
  min-height: 36px !important;
  border-radius: 9px !important;
  color: #43546b !important;
  font-size: 12.5px !important;
  font-weight: 560 !important;
}

.side-nav-item.is-on {
  color: #075fba !important;
  background: rgba(8, 117, 225, 0.085) !important;
}

.side-history {
  margin-top: 18px !important;
}

.side-history-heading {
  color: #8997aa !important;
}

.side-history-item {
  color: #18253a !important;
}

.side-history-title {
  font-size: 11.8px !important;
}

.side-history-time {
  color: #8b98aa !important;
}

.side-account {
  min-height: 42px !important;
  padding: 8px !important;
  border-top-color: rgba(16, 24, 40, 0.075) !important;
}

.member-dossier-page,
.task-detail-page,
.member-profile-ai {
  width: min(1040px, calc(100% - 88px)) !important;
}

.member-dossier-head h1,
.task-detail-hero h1,
.member-profile-person h1 {
  font-size: 27px !important;
  font-weight: 670 !important;
  color: var(--slm-ink) !important;
}

.member-dossier-head p,
.task-detail-hero p,
.member-profile-person p {
  font-size: 12.5px !important;
}

.member-dossier-card {
  min-height: 82px !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  border-color: var(--slm-line) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

.member-dossier-card.is-primary {
  border-color: rgba(8, 117, 225, 0.14) !important;
}

.member-dossier-person {
  grid-template-columns: 44px minmax(0, 1fr) !important;
}

.person-av-wrap .avatar,
.member-dossier-person .kid-av,
.member-dossier-person .avatar,
.task-detail-avatar .kid-av,
.task-detail-avatar .avatar {
  width: 44px !important;
  height: 44px !important;
}

.member-dossier-signal h2 {
  font-size: 15px !important;
  font-weight: 660 !important;
}

.member-dossier-signal p {
  font-size: 12px !important;
}

.task-detail-page {
  padding-top: 54px !important;
}

.task-back {
  color: #52637a !important;
  font-size: 12.5px !important;
  font-weight: 590 !important;
}

.task-detail-shell {
  max-width: 900px !important;
  padding: 18px 20px !important;
  border-radius: 15px !important;
  border-color: var(--slm-line) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.task-detail-hero {
  grid-template-columns: 46px minmax(0, 1fr) !important;
}

.task-detail-kicker,
.task-detail-block > span,
.member-profile-current span,
.member-profile-block > span {
  color: #166fc5 !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}

.task-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.task-detail-script {
  grid-column: 1 / -1 !important;
}

.task-detail-block {
  min-height: 84px !important;
  padding: 12px !important;
  border-radius: 12px !important;
  background: rgba(247, 250, 253, 0.74) !important;
}

@media (hover: hover) and (pointer: fine) {
  .new-chat-btn:hover,
  .side-search-box:hover,
  .side-nav-item:hover,
  .side-history-item:hover {
    background: rgba(255, 255, 255, 0.92) !important;
  }

  .app.view-today .decision-text-switch:hover {
    color: var(--slm-ink) !important;
  }

  .app.view-today .decision-panel:hover,
  .member-dossier-card:hover,
  .task-detail-shell:hover {
    border-color: rgba(8, 117, 225, 0.14) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 720px) {
  .workspace,
  .col-main {
    background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%) !important;
  }

  .app.view-today .stage {
    width: calc(100vw - 28px) !important;
    padding-top: 28px !important;
  }

  .app.view-today .home-hero .hello {
    font-size: 26px !important;
  }

  .app.view-today .decision-panel {
    width: 100% !important;
    border-radius: 15px !important;
  }

  .app.view-today .decision-head {
    padding: 13px 14px 0 !important;
  }

  .app.view-today .decision-core,
  .app.view-today .decision-panel.is-follow-scene .decision-core {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px 14px 14px !important;
  }

  .app.view-today .decision-avatar,
  .app.view-today .decision-person-av,
  .app.view-today .decision-person-av .kid-av,
  .app.view-today .decision-person-av .avatar,
  .app.view-today .decision-avatar .kid-av,
  .app.view-today .decision-avatar .avatar,
  .app.view-today .decision-avatar .focus-faces,
  .app.view-today .decision-avatar .focus-biz-icon {
    width: 42px !important;
    height: 42px !important;
  }

  .app.view-today .decision-copy h2 {
    font-size: 17.5px !important;
  }

  .app.view-today .decision-actions {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
  }

  .app.view-today .decision-actions .act {
    width: 100% !important;
  }

  .app.view-today .decision-next-item {
    min-height: 56px !important;
    padding: 10px 14px !important;
  }

  .app.view-today:not(.has-canvas) .dock .composer,
  .app:not(.has-canvas) .dock .composer {
    width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
  }

  .member-dossier-page,
  .task-detail-page,
  .member-profile-ai {
    width: calc(100vw - 28px) !important;
  }

  .task-detail-grid {
    grid-template-columns: 1fr !important;
  }
}

/* --------------------------------------------------------------------------
   视立美工作操作系统 · v3 visual system
   Direction: calm clinical surfaces, high-signal work queues, restrained AI cues.
   The role changes the work context and copy, never the interaction grammar.
---------------------------------------------------------------------------- */
:root {
  --slm-bg: #f5f7f6;
  --slm-surface: #ffffff;
  --slm-surface-muted: #f8faf9;
  --slm-ink: #17211f;
  --slm-ink-soft: #3e4b47;
  --slm-muted: #71807b;
  --slm-faint: #9aa7a2;
  --slm-line: rgba(23, 33, 31, 0.11);
  --slm-line-soft: rgba(23, 33, 31, 0.065);
  --slm-brand: #0c806d;
  --slm-brand-deep: #086354;
  --slm-brand-soft: #e6f3ef;
  --slm-brand-wash: rgba(12, 128, 109, 0.08);
  --slm-risk: #b54d48;
  --slm-risk-soft: #f9eceb;
  --slm-warn: #a66b25;
  --slm-warn-soft: #faf3e7;
  --slm-ok: #28775c;
  --slm-ok-soft: #eaf4ef;
  --slm-sidebar: 272px;
  --slm-radius-sm: 8px;
  --slm-radius-md: 12px;
  --slm-radius-lg: 16px;
  --slm-shadow-float: 0 18px 44px rgba(25, 43, 37, 0.13);
  --slm-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html,
body {
  background: var(--slm-bg) !important;
  color: var(--slm-ink) !important;
}

body {
  background-image: none !important;
  scrollbar-color: rgba(23, 33, 31, 0.22) transparent !important;
}

* {
  scrollbar-color: rgba(23, 33, 31, 0.22) transparent !important;
}

::-webkit-scrollbar-thumb {
  background: rgba(23, 33, 31, 0.2) !important;
  border: 0 !important;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(12, 128, 109, 0.6) !important;
}

.app {
  grid-template-columns: var(--slm-sidebar) minmax(0, 1fr) !important;
  background: var(--slm-bg) !important;
}

.workspace,
.col-main {
  background: var(--slm-bg) !important;
}

.sidebar {
  width: var(--slm-sidebar) !important;
  padding: 20px 14px 14px !important;
  gap: 16px !important;
  background: #fbfcfb !important;
  border-right: 1px solid var(--slm-line) !important;
}

.side-top {
  min-height: 46px !important;
  margin-bottom: 2px !important;
}

.brand-lockup {
  height: 46px !important;
  gap: 10px !important;
  padding: 0 9px !important;
  border-radius: var(--slm-radius-sm) !important;
}

.brand-lockup:hover,
.side-icon-btn:hover,
.side-action-btn:hover,
.side-history-item:hover,
.side-user-main:hover,
.side-user-wrap.is-open .side-user-main {
  background: var(--slm-brand-wash) !important;
}

.brand-logo-shell {
  width: 30px !important;
  height: 30px !important;
  flex-basis: 30px !important;
}

.brand-logo-full {
  width: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
}

.brand-text strong {
  color: var(--slm-ink) !important;
  font-size: 15px !important;
  letter-spacing: -0.01em;
}

.brand-text em {
  color: var(--slm-muted) !important;
  font-size: 11px !important;
}

.side-primary-actions {
  gap: 10px !important;
  padding-bottom: 16px !important;
  border-bottom-color: var(--slm-line-soft) !important;
}

.side-action-btn {
  min-height: 42px !important;
  border: 1px solid var(--slm-line) !important;
  border-radius: var(--slm-radius-sm) !important;
  background: var(--slm-surface) !important;
  color: var(--slm-ink) !important;
}

.side-action-btn span {
  color: var(--slm-brand) !important;
}

.side-search,
.side-search-box {
  min-height: 38px !important;
  border: 1px solid transparent !important;
  border-radius: var(--slm-radius-sm) !important;
  background: #f1f5f3 !important;
}

.side-search:focus-within,
.side-search-box:focus-within {
  border-color: rgba(12, 128, 109, 0.34) !important;
  background: var(--slm-surface) !important;
  box-shadow: 0 0 0 3px rgba(12, 128, 109, 0.08) !important;
}

.side-search svg,
.side-search-box svg {
  color: var(--slm-muted) !important;
}

.side-search input,
.side-search-box input {
  color: var(--slm-ink) !important;
}

.side-nav {
  gap: 3px !important;
  padding: 2px 0 4px !important;
}

.side-nav::before,
.side-primary-actions::before {
  color: var(--slm-faint) !important;
}

.side-nav-item {
  min-height: 46px !important;
  padding: 8px 10px !important;
  border-radius: var(--slm-radius-sm) !important;
  color: var(--slm-ink-soft) !important;
}

.side-nav-item:hover {
  background: var(--slm-brand-wash) !important;
  color: var(--slm-ink) !important;
}

.side-nav-item.is-on {
  background: var(--slm-brand-soft) !important;
  color: var(--slm-brand-deep) !important;
  box-shadow: inset 3px 0 0 var(--slm-brand) !important;
}

.side-nav-item.is-on::before {
  display: none !important;
}

.side-nav-ico {
  color: currentColor !important;
}

.side-nav-copy strong {
  font-size: 13px !important;
  font-weight: 650 !important;
}

.side-nav-copy em {
  color: var(--slm-muted) !important;
  font-size: 11px !important;
}

.side-nav-item.is-on .side-nav-copy em {
  color: var(--slm-brand-deep) !important;
}

.side-history {
  border-top-color: var(--slm-line-soft) !important;
  margin-top: 4px !important;
  padding-top: 14px !important;
}

.side-section-title,
.side-history-title {
  color: var(--slm-faint) !important;
  font-size: 10px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase;
}

.side-history-item {
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-radius: 6px !important;
  color: var(--slm-ink-soft) !important;
}

.side-history-item.is-on {
  background: var(--slm-brand-wash) !important;
  color: var(--slm-brand-deep) !important;
}

.side-history-item span {
  font-size: 12px !important;
}

.side-history-item time {
  color: var(--slm-faint) !important;
  font-size: 10px !important;
}

.side-user-wrap {
  margin-top: auto !important;
  padding-top: 12px !important;
  border-top: 1px solid var(--slm-line-soft) !important;
}

.side-user {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.side-user-main {
  min-width: 0;
  flex: 1;
  min-height: 48px !important;
  padding: 6px 8px !important;
  border-radius: var(--slm-radius-sm) !important;
}

.side-user-settings {
  width: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  border-radius: 7px;
  color: var(--slm-muted);
  font-size: 11px;
}

.side-user-settings:hover {
  background: var(--slm-brand-wash);
  color: var(--slm-brand-deep);
}

.side-user-av-wrap {
  width: 30px !important;
  height: 30px !important;
}

.side-user-av {
  width: 30px !important;
  height: 30px !important;
  border-radius: 9px !important;
}

.side-user-text strong {
  color: var(--slm-ink) !important;
  font-size: 12px !important;
}

.side-user-text span,
.side-user-caret {
  color: var(--slm-muted) !important;
  font-size: 10px !important;
}

.side-role-menu {
  bottom: 58px !important;
  left: 0 !important;
  right: 0 !important;
  padding: 6px !important;
  border: 1px solid var(--slm-line) !important;
  border-radius: var(--slm-radius-md) !important;
  background: var(--slm-surface) !important;
  box-shadow: var(--slm-shadow-float) !important;
}

.side-role-item {
  min-height: 44px !important;
  border-radius: 7px !important;
}

.side-role-item:hover,
.side-role-item.is-on {
  background: var(--slm-brand-soft) !important;
}

.side-role-item.is-on .side-role-copy strong,
.side-role-item.is-on .side-role-check {
  color: var(--slm-brand-deep) !important;
}

.stage {
  padding: 54px 56px 172px !important;
  background: var(--slm-bg) !important;
}

.stage > *:not(.management-page) {
  width: min(1180px, 100%) !important;
  margin-inline: auto !important;
}

.home-hero {
  min-height: 86px !important;
  margin-bottom: 26px !important;
  align-items: flex-end !important;
}

.home-context {
  display: flex !important;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px !important;
  color: var(--slm-muted) !important;
  font-size: 12px !important;
  letter-spacing: 0.01em;
}

.home-context > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slm-brand) !important;
  box-shadow: 0 0 0 4px rgba(12, 128, 109, 0.1);
}

.home-hero .hello {
  color: var(--slm-ink) !important;
  font-size: clamp(32px, 3vw, 44px) !important;
  font-weight: 680 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.06 !important;
}

.home-hero .lead {
  max-width: 640px;
  margin-top: 12px !important;
  color: var(--slm-ink-soft) !important;
  font-size: 14px !important;
}

.home-hero-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
  padding-bottom: 3px;
  color: var(--slm-muted);
  font-size: 11px;
}

.live-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--slm-brand-deep);
  font-weight: 620;
}

.live-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--slm-brand);
}

.decision-panel {
  overflow: hidden !important;
  border: 1px solid var(--slm-line) !important;
  border-radius: var(--slm-radius-lg) !important;
  background: var(--slm-surface) !important;
  box-shadow: none !important;
}

.decision-panel::before {
  display: none !important;
}

.decision-head {
  min-height: 54px !important;
  padding: 16px 22px !important;
  border-bottom: 1px solid var(--slm-line-soft) !important;
  background: var(--slm-surface-muted) !important;
}

.decision-head > * {
  color: var(--slm-brand-deep) !important;
  font-size: 11px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.decision-core {
  gap: 20px !important;
  padding: 24px 22px 22px !important;
}

.decision-copy h2 {
  color: var(--slm-ink) !important;
  font-size: clamp(20px, 2vw, 27px) !important;
  font-weight: 680 !important;
  letter-spacing: -0.03em !important;
}

.decision-copy p {
  max-width: 700px;
  color: var(--slm-ink-soft) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

.decision-actions .act,
.act,
.os-row-action {
  min-height: 40px !important;
  border-radius: var(--slm-radius-sm) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

.decision-panel .decision-actions .act {
  background-image: none !important;
  background-color: var(--slm-brand) !important;
  box-shadow: none !important;
}

.decision-actions .act,
.act:not(.ghost),
.os-row-action.is-primary {
  background: var(--slm-brand) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.decision-actions .act:hover,
.act:not(.ghost):hover,
.os-row-action.is-primary:hover {
  background: var(--slm-brand-deep) !important;
}

.act.ghost,
.os-row-action:not(.is-primary) {
  border: 1px solid var(--slm-line) !important;
  background: var(--slm-surface) !important;
  color: var(--slm-ink-soft) !important;
}

.act.ghost:hover,
.os-row-action:not(.is-primary):hover {
  border-color: rgba(12, 128, 109, 0.36) !important;
  color: var(--slm-brand-deep) !important;
  background: var(--slm-brand-wash) !important;
}

.decision-next {
  border-top: 1px solid var(--slm-line-soft) !important;
  background: var(--slm-surface-muted) !important;
}

.decision-next-item {
  min-height: 60px !important;
  padding: 13px 22px !important;
  border-bottom: 1px solid var(--slm-line-soft) !important;
}

.decision-next-item:last-child {
  border-bottom: 0 !important;
}

.decision-next-item:hover {
  background: var(--slm-brand-wash) !important;
}

.decision-next-item strong {
  color: var(--slm-ink) !important;
  font-size: 13px !important;
}

.decision-next-item em {
  color: var(--slm-muted) !important;
  font-size: 11px !important;
}

.work-signal-strip {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  align-items: stretch;
  margin-top: 14px;
  border-top: 1px solid var(--slm-line);
  border-bottom: 1px solid var(--slm-line);
  background: transparent;
}

.work-signal-intro {
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px 20px 16px 2px;
}

.work-signal-intro span {
  color: var(--slm-brand-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-signal-intro strong {
  color: var(--slm-ink-soft);
  font-size: 12px;
  font-weight: 520;
}

.work-signal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-signal {
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 78px;
  padding: 13px 18px;
  border-left: 1px solid var(--slm-line-soft);
}

.work-signal span {
  color: var(--slm-muted);
  font-size: 11px;
}

.work-signal strong {
  color: var(--slm-ink);
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1;
}

.work-signal em {
  color: var(--slm-faint);
  font-size: 10px;
  font-style: normal;
}

.dock {
  padding: 0 56px 22px !important;
  background: transparent !important;
}

.dock .composer {
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
  border: 1px solid var(--slm-line) !important;
  border-radius: var(--slm-radius-lg) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--slm-shadow-float) !important;
}

.composer::before {
  display: none !important;
}

.composer:focus-within {
  border-color: rgba(12, 128, 109, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(12, 128, 109, 0.08), var(--slm-shadow-float) !important;
}

.composer textarea {
  min-height: 52px !important;
  padding: 16px 18px 8px !important;
  color: var(--slm-ink) !important;
  font-size: 14px !important;
}

.composer textarea::placeholder {
  color: var(--slm-faint) !important;
}

.composer-bar {
  min-height: 42px !important;
  padding: 0 10px 10px !important;
}

.composer-bar .act {
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  border-radius: 9px !important;
}

.composer-bar .act.is-mute {
  background: #eef2f0 !important;
  color: var(--slm-faint) !important;
}

.member-ops-shell,
.member-dossier-page,
.task-detail-shell,
.member-profile-ai {
  border-color: var(--slm-line) !important;
  border-radius: var(--slm-radius-lg) !important;
  background: var(--slm-surface) !important;
  box-shadow: none !important;
}

.member-ops-head h1,
.member-dossier-head h1,
.task-detail-hero h1,
.member-profile-person h1 {
  color: var(--slm-ink) !important;
  font-size: 30px !important;
  font-weight: 680 !important;
  letter-spacing: -0.04em !important;
}

.member-ops-head p,
.member-dossier-head p,
.task-detail-hero p,
.member-profile-person p {
  color: var(--slm-muted) !important;
}

.member-ops-row,
.member-dossier-card,
.os-row {
  border-color: var(--slm-line-soft) !important;
  background: var(--slm-surface) !important;
}

.member-ops-row:hover,
.member-dossier-card:hover,
.os-row:hover {
  background: var(--slm-surface-muted) !important;
}

.member-ops-row.is-selected,
.member-dossier-card.is-primary,
.os-row.is-primary {
  border-left-color: var(--slm-brand) !important;
  background: var(--slm-brand-wash) !important;
}

.member-ops-detail {
  border-left-color: var(--slm-line-soft) !important;
  background: var(--slm-surface-muted) !important;
}

.member-ops-detail-head h2,
.member-dossier-signal h2,
.os-row-main strong {
  color: var(--slm-ink) !important;
}

.member-ops-detail-head p,
.member-dossier-signal p,
.os-row-main p {
  color: var(--slm-ink-soft) !important;
}

.member-ops-evidence em,
.member-signals span,
.member-ops-state,
.member-dossier-stage {
  border-radius: 6px !important;
}

.task-detail-page {
  padding-top: 16px !important;
}

.task-detail-block {
  border: 1px solid var(--slm-line-soft) !important;
  border-radius: var(--slm-radius-md) !important;
  background: var(--slm-surface-muted) !important;
}

.task-detail-block > span,
.task-detail-kicker,
.member-profile-current span,
.member-profile-block > span {
  color: var(--slm-brand-deep) !important;
}

.tag,
.pill,
.chip,
.status-badge {
  border-radius: 6px !important;
}

@media (max-width: 1180px) {
  :root {
    --slm-sidebar: 248px;
  }

  .stage {
    padding-inline: 34px !important;
  }

  .dock {
    padding-inline: 34px !important;
  }
}

@media (max-width: 860px) {
  .stage {
    padding: 34px 24px 160px !important;
  }

  .dock {
    padding: 0 24px 18px !important;
  }

  .home-hero {
    align-items: flex-start !important;
    gap: 18px;
  }

  .home-hero-meta {
    justify-items: start;
    padding-top: 4px;
  }

  .decision-core {
    grid-template-columns: 1fr !important;
  }

  .work-signal-strip {
    grid-template-columns: 1fr;
  }

  .work-signal-intro {
    padding: 14px 0 10px;
  }

  .work-signal-list {
    border-top: 1px solid var(--slm-line-soft);
  }

  .decision-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 720px) {
  :root {
    --slm-sidebar: 0px;
  }

  .stage {
    min-height: 100dvh !important;
    padding: 24px 14px 136px !important;
  }

  .stage > *:not(.management-page) {
    width: 100% !important;
  }

  .home-hero {
    display: block !important;
    min-height: 0 !important;
    margin-bottom: 20px !important;
  }

  .home-hero .hello {
    font-size: 32px !important;
  }

  .home-hero-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
    padding: 0;
  }

  .work-signal-list {
    grid-template-columns: 1fr;
  }

  .work-signal {
    grid-template-columns: 1fr auto auto;
    align-items: center;
    min-height: 56px;
    border-left: 0;
    border-bottom: 1px solid var(--slm-line-soft);
  }

  .work-signal:last-child {
    border-bottom: 0;
  }

  .work-signal strong {
    font-size: 18px;
  }

  .decision-panel {
    border-radius: var(--slm-radius-md) !important;
  }

  .decision-head {
    padding-inline: 16px !important;
  }

  .decision-core {
    padding: 18px 16px !important;
  }

  .decision-next-item {
    padding-inline: 16px !important;
  }

  .dock {
    padding: 0 14px 14px !important;
  }

  .dock .composer {
    border-radius: var(--slm-radius-md) !important;
  }

  .composer textarea {
    min-height: 48px !important;
  }

  .member-ops-shell {
    display: block !important;
    border: 0 !important;
    background: transparent !important;
  }

  .member-ops-main,
  .member-ops-detail,
  .member-dossier-page,
  .task-detail-shell {
    width: 100% !important;
    border: 1px solid var(--slm-line) !important;
    border-radius: var(--slm-radius-md) !important;
    background: var(--slm-surface) !important;
  }

  .member-ops-detail {
    margin-top: 12px;
    border-left: 1px solid var(--slm-line) !important;
  }

  .member-ops-table-head {
    display: none !important;
  }

  .member-ops-row,
  .os-row {
    grid-template-columns: 1fr auto !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  .member-ops-contact,
  .member-ops-owner,
  .os-row-meta {
    display: none !important;
  }

  .member-ops-work,
  .os-row-main {
    grid-column: 1 / -1;
  }

  .member-ops-state,
  .os-row-action {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage.stage-in,
  .answer.is-enter,
  .canvas-in {
    animation: none !important;
  }
}

/* Final visual locks: prevent legacy prototype gradients from leaking into v3. */
.decision-panel .decision-actions .act,
.decision-panel .decision-actions .act:hover,
.decision-panel .decision-actions .act:focus-visible {
  background: var(--slm-brand) !important;
  background-color: var(--slm-brand) !important;
  background-image: none !important;
  border-color: var(--slm-brand) !important;
  box-shadow: none !important;
}

.decision-panel .decision-actions .act:hover,
.decision-panel .decision-actions .act:focus-visible {
  background: var(--slm-brand-deep) !important;
  background-color: var(--slm-brand-deep) !important;
  border-color: var(--slm-brand-deep) !important;
}
