:root {
  --bg: #f3f5f2;
  --surface: #ffffff;
  --surface-soft: #f8f9f6;
  --ink: #17231f;
  --ink-soft: #40534b;
  --muted: #7b8982;
  --line: #e0e6e0;
  --line-strong: #ced7d0;
  --green: #0e6b4e;
  --green-dark: #11271f;
  --green-soft: #e6f1eb;
  --lime: #dff29c;
  --coral: #e9765b;
  --coral-soft: #faebe7;
  --amber: #c99436;
  --amber-soft: #faf1dd;
  --blue: #557fba;
  --blue-soft: #edf2fa;
  --shadow: 0 18px 50px rgba(15, 42, 31, .08);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --display: "Bahnschrift", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { height: 100%; }
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 20px;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button { border: 0; cursor: pointer; color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid rgba(14, 107, 78, .42);
  outline-offset: 2px;
}
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { color: var(--green-dark); background: var(--lime); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-shell { display: flex; height: 100vh; min-height: 640px; }
.sidebar {
  width: 246px;
  flex: 0 0 246px;
  height: 100%;
  padding: 24px 17px 18px;
  background: var(--green-dark);
  color: #ebf1ed;
  display: flex;
  flex-direction: column;
}
.brand-row { display: flex; align-items: center; gap: 11px; padding: 0 8px 25px; }
.logo-mark {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(223, 242, 156, .43);
  border-radius: 50%;
  transform: rotate(-8deg);
}
.logo-mark i {
  position: absolute;
  width: 15px;
  height: 21px;
  border: 1.6px solid var(--lime);
  border-left: 0;
  border-radius: 0 100% 100% 0;
}
.logo-mark i:first-child { transform: translateX(-4px); opacity: .55; }
.logo-mark i:last-child { transform: translateX(4px); }
.brand-row strong { display: block; font-family: var(--display); font-size: 24px; letter-spacing: -.5px; }
.brand-row small { display: block; margin-top: 3px; color: #8ea59b; font-size: 14px; letter-spacing: 2.8px; }
.workspace-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 4px 24px;
  padding: 10px;
  border: 1px solid rgba(226, 243, 233, .1);
  background: rgba(255,255,255,.035);
  border-radius: 9px;
}
.workspace-chip > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--lime);
  color: var(--green-dark);
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
}
.workspace-chip div { min-width: 0; flex: 1; }
.workspace-chip small { display: block; color: #728b80; font-size: 14px; }
.workspace-chip strong { display: block; overflow: hidden; margin-top: 2px; font-size: 14px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.workspace-chip b { color: #668175; font-size: 15px; font-weight: 400; }
.nav-label { margin: 0 12px 10px; color: #5e7b6f; font-family: var(--display); font-size: 14px; letter-spacing: 1.8px; }
.main-nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  position: relative;
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #9bb0a7;
  background: transparent;
  border-radius: 7px;
  text-align: left;
  transition: background .2s, color .2s;
}
.nav-item:hover { color: #edf6f0; background: rgba(255,255,255,.035); }
.nav-item.active { color: #f4f9f5; background: rgba(223,242,156,.085); }
.nav-item.active::before { content: ""; position: absolute; left: -17px; top: 11px; bottom: 11px; width: 2px; border-radius: 2px; background: var(--lime); }
.nav-item svg { width: 19px; height: 19px; flex-shrink: 0; }
.nav-item.active svg { color: var(--lime); }
.nav-item span { flex: 1; font-size: 15px; }
.nav-item b {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255,255,255,.08);
  color: #b8c9c0;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
}
.nav-item b.unread { background: var(--coral); color: #fff; }
.sidebar-guide {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(223,242,156,.13);
  background: linear-gradient(145deg, rgba(223,242,156,.07), rgba(255,255,255,.015));
  border-radius: 9px;
}
.sidebar-guide > span { color: #758e83; font-family: var(--display); font-size: 14px; letter-spacing: 1.3px; }
.sidebar-guide strong { display: block; margin: 10px 0 13px; color: #e3eee8; font-size: 16px; line-height: 1.65; font-weight: 500; }
.sidebar-guide button { display: flex; align-items: center; gap: 6px; padding: 0; background: none; color: var(--lime); font-size: 14px; }
.sidebar-guide svg { width: 13px; height: 13px; }
.user-row { display: flex; align-items: center; gap: 9px; padding: 18px 7px 0; }
.avatar, .avatar-button {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8dcbe;
  color: #7b6435;
  font-size: 15px;
  font-weight: 600;
}
.user-row div { flex: 1; }
.user-row strong { display: block; font-size: 14px; font-weight: 500; }
.user-row small { display: block; margin-top: 3px; color: #6f887c; font-size: 14px; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: #7fd6ac; }

.workspace { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.topbar {
  height: 67px;
  flex-shrink: 0;
  padding: 0 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.crumb { display: flex; align-items: center; gap: 9px; color: #9aa49f; font-size: 14px; }
.crumb i { color: #c7d0ca; font-style: normal; }
.crumb strong { color: #44574f; font-weight: 500; }
.top-actions { display: flex; align-items: center; gap: 11px; }
.data-state { display: flex; align-items: center; gap: 7px; margin-right: 6px; color: #72837a; font-size: 14px; white-space: nowrap; }
.data-state i { width: 6px; height: 6px; border-radius: 50%; background: #68b58e; box-shadow: 0 0 0 4px rgba(104,181,142,.09); }
.text-button { padding: 6px 0; background: none; color: #61746b; font-size: 14px; }
.text-button:hover { color: var(--green); }
.icon-button { width: 31px; height: 31px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 5px; color: #77867f; }
.icon-button svg { width: 15px; height: 15px; }
.avatar-button { width: 31px; height: 31px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }

.page-content { min-height: 0; flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.page-view { display: none; width: min(1520px, 100%); margin: 0 auto; padding: 30px 32px 44px; }
.page-view.active { display: block; animation: view-in .28s ease both; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 9px; color: #508d74; font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: 1.7px; }
.page-heading h1 { margin: 0; font-size: clamp(30px, 2.3vw, 40px); line-height: 1.2; letter-spacing: -1.2px; font-weight: 700; }
.page-heading p:not(.eyebrow) { margin: 9px 0 0; color: #718079; font-size: 15px; line-height: 1.7; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.button {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  transition: background .2s, transform .2s, border-color .2s;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--green); }
.button.primary:hover { background: #0b5d44; }
.button.secondary { color: #3d584d; background: #fff; border: 1px solid var(--line-strong); }
.button.secondary:hover { border-color: #aabdb2; }
.button.dark { color: #f1f7f3; background: var(--green-dark); }
.button.full { width: 100%; }
.button.large { min-height: 45px; }
.button svg { width: 15px; height: 15px; }
.demo-badge { padding: 7px 10px; border: 1px solid #d9e1d9; border-radius: 4px; background: #fff; color: #74827b; font-size: 14px; white-space: nowrap; }

.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.metric-card {
  min-height: 100px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.metric-icon { width: 35px; height: 35px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; font-family: var(--display); font-size: 18px; font-weight: 700; }
.metric-icon.coral { color: var(--coral); background: var(--coral-soft); }
.metric-icon.green { color: var(--green); background: var(--green-soft); }
.metric-icon.amber { color: var(--amber); background: var(--amber-soft); }
.metric-icon.blue { color: var(--blue); background: var(--blue-soft); }
.metric-card small { display: block; color: #85918b; font-size: 14px; }
.metric-card strong { display: block; margin: 2px 0 1px; font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.7px; }
.metric-card p { margin: 0; color: #99a39e; font-size: 14px; }
.metric-trend { margin-left: auto; align-self: flex-start; padding: 3px 6px; border-radius: 3px; color: #87948d; background: #f2f4f1; font-size: 14px; font-weight: 500; }

.intel-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(290px, .72fr); gap: 15px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; }
.signal-panel { padding: 20px; }
.card-heading { min-height: 31px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.card-heading > div { display: flex; align-items: center; gap: 9px; }
.card-heading h2 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: -.3px; }
.card-heading.compact { margin-bottom: 11px; }
.card-heading.compact h2 { font-size: 17px; }
.section-number { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: #8e9b95; font-family: var(--display); font-size: 14px; }
.subtle-note { color: #9ca7a1; font-size: 14px; }
.signal-list { display: flex; flex-direction: column; gap: 8px; }
.signal-item {
  padding: 14px;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  border: 1px solid #e7ebe7;
  border-radius: 8px;
  background: #fbfcf9;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.signal-item:hover { transform: translateY(-1px); border-color: #b6cbbf; box-shadow: 0 10px 25px rgba(12,55,39,.06); }
.signal-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 7px; font-family: var(--display); font-size: 17px; }
.signal-icon.policy { color: var(--green); background: var(--green-soft); }
.signal-icon.recall { color: var(--coral); background: var(--coral-soft); }
.signal-icon.opportunity { color: var(--amber); background: var(--amber-soft); }
.signal-body { min-width: 0; }
.signal-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.tag-chip { padding: 3px 6px; border-radius: 3px; background: #edf2ed; color: #62756b; font-size: 14px; font-weight: 600; }
.tag-chip.policy { color: #487d68; background: #e8f2ec; }
.tag-chip.recall { color: #aa5e4e; background: #faebe7; }
.tag-chip.opportunity { color: #9a7027; background: #faf1dd; }
.signal-item h3 { margin: 0 0 5px; font-size: 16px; line-height: 1.5; font-weight: 650; }
.signal-item p { margin: 0; color: #7e8b85; font-size: 14px; line-height: 1.65; }
.signal-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; color: #9aa49f; font-size: 14px; }
.signal-meta span + span::before { content: "·"; margin-right: 9px; color: #c0c9c4; }
.signal-action { align-self: center; padding: 6px 8px; border: 1px solid var(--line); background: #fff; border-radius: 4px; color: #587066; font-size: 14px; white-space: nowrap; }
.signal-action:hover { color: var(--green); border-color: #a8c0b3; }
.impact-label { margin-left: auto; color: #9b6a32; font-size: 14px; }

.conclusion-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  background: linear-gradient(155deg, #17392d, #10271f);
  border-color: #17392d;
  color: #fff;
}
.conclusion-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -100px; top: -100px; border: 1px solid rgba(223,242,156,.1); border-radius: 50%; box-shadow: 0 0 0 38px rgba(223,242,156,.035), 0 0 0 76px rgba(223,242,156,.02); }
.card-kicker { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; color: #8da59a; font-family: var(--display); font-size: 14px; letter-spacing: 1.5px; }
.conclusion-card h2 { position: relative; z-index: 1; margin: 13px 0 14px; font-size: 20px; font-weight: 600; }
.conclusion-lead { position: relative; z-index: 1; margin: 0; color: #d9e7df; font-size: 21px; line-height: 1.7; font-weight: 500; letter-spacing: -.2px; }
.conclusion-steps { position: relative; z-index: 1; margin: 21px 0; display: flex; flex-direction: column; gap: 12px; }
.conclusion-steps > div { display: flex; align-items: flex-start; gap: 10px; }
.conclusion-steps i { width: 20px; height: 20px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; font-family: var(--display); font-size: 14px; font-style: normal; }
.conclusion-steps i.high { color: #ffd6ca; background: rgba(233,118,91,.3); }
.conclusion-steps i.medium { color: #f5dfb3; background: rgba(201,148,54,.3); }
.conclusion-steps i.opportunity { color: #e8f8b8; background: rgba(223,242,156,.2); }
.conclusion-steps strong { display: block; color: #d9e8e0; font-size: 14px; font-weight: 600; }
.conclusion-steps small { display: block; margin-top: 3px; color: #819b90; font-size: 14px; line-height: 1.55; }
.conclusion-card .button { position: relative; z-index: 1; color: var(--green-dark); background: var(--lime); }

.lower-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 15px; margin-top: 15px; }
.market-snapshot, .source-panel { padding: 18px 20px; }
.link-button { padding: 0; background: none; color: #56816f; font-size: 14px; }
.market-list { display: flex; flex-direction: column; }
.market-row {
  min-height: 43px;
  padding: 8px 3px;
  display: grid;
  grid-template-columns: 25px 130px minmax(80px, 1fr) 55px;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: transparent;
  border-top: 1px solid #edf0ed;
}
.market-row:hover { background: #fafbf9; }
.flag { font-size: 21px; }
.market-row strong { display: block; font-size: 14px; font-weight: 600; }
.market-row small { display: block; margin-top: 2px; color: #939f99; font-size: 14px; }
.market-row > b { color: #687971; font-size: 14px; font-weight: 500; text-align: right; }
.market-bar { height: 4px; border-radius: 4px; background: #edf0eb; overflow: hidden; }
.market-bar i { display: block; height: 100%; border-radius: inherit; background: #dca076; }
.market-bar.opportunity i { background: #8ac09f; }
.live-label { display: flex; align-items: center; gap: 5px; color: #7d8d85; font-size: 14px; }
.live-label i { width: 5px; height: 5px; border-radius: 50%; background: #65b58d; }
.source-list { display: flex; flex-direction: column; }
.source-row { min-height: 42px; display: flex; align-items: center; gap: 9px; border-top: 1px solid #edf0ed; }
.source-row span { flex: 1; color: #4d6158; font-size: 14px; }
.source-row small { color: #98a39d; font-size: 14px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #c4cec8; }
.status-dot.ok { background: #65b58d; }
.status-dot.checking { background: #d7b462; animation: blink 1.5s infinite; }
.source-note { margin: 11px 0 0; padding-top: 10px; border-top: 1px solid #edf0ed; color: #a1aaa5; font-size: 14px; line-height: 1.6; }

.knowledge-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 15px; }
.knowledge-stats article { min-height: 80px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.knowledge-stats small { display: block; color: #89958f; font-size: 14px; }
.knowledge-stats strong { display: block; margin: 4px 0 2px; font-family: var(--display); font-size: 27px; font-weight: 500; }
.knowledge-stats span { color: #9fa9a4; font-size: 14px; }
.knowledge-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .72fr); gap: 15px; }
.knowledge-library { padding: 20px; }
.search-box { min-height: 42px; padding: 0 13px; display: flex; align-items: center; gap: 9px; background: #f6f8f5; border: 1px solid #e4e9e4; border-radius: 6px; color: #98a39d; }
.search-box svg { width: 16px; height: 16px; }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search-box input::placeholder { color: #a6afaa; }
.search-box > span { padding: 2px 5px; border: 1px solid #dfe5df; border-radius: 3px; background: #fff; color: #a2aba6; font-size: 14px; }
.knowledge-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 14px; }
.chip { padding: 5px 9px; border: 1px solid #e2e7e2; background: #fff; border-radius: 12px; color: #7b8982; font-size: 14px; }
.chip.active { color: #fff; background: var(--green); border-color: var(--green); }
.knowledge-list { display: flex; flex-direction: column; }
.knowledge-item {
  width: 100%;
  min-height: 64px;
  padding: 12px 5px;
  display: grid;
  grid-template-columns: 33px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: transparent;
  border-top: 1px solid #edf0ed;
}
.knowledge-item:hover { background: #fafbf9; }
.knowledge-type { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 15px; }
.knowledge-item strong { display: block; color: #354a40; font-size: 14px; font-weight: 600; }
.knowledge-item p { margin: 4px 0 0; color: #8b9892; font-size: 14px; line-height: 1.5; }
.knowledge-item > span { color: #a0aba5; font-size: 14px; }
.learning-path { display: flex; flex-direction: column; gap: 14px; }
.path-card, .team-note { padding: 20px; }
.path-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid #edf0ed; }
.path-head span { color: #87958e; font-size: 14px; }
.path-head strong { display: block; margin-top: 5px; color: #394f45; font-size: 15px; line-height: 1.5; }
.progress-ring {
  --progress: 68%;
  width: 49px;
  height: 49px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  position: relative;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--progress), #e7ece8 0);
}
.progress-ring::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.progress-ring span { position: relative; color: var(--green); font-family: var(--display); font-size: 14px; font-weight: 600; }
.path-step { display: grid; grid-template-columns: 24px 1fr auto; gap: 9px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf0ed; }
.path-step > i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f0f2ef; color: #9aa69f; font-family: var(--display); font-size: 14px; font-style: normal; }
.path-step.complete > i { color: #fff; background: var(--green); }
.path-step.active > i { color: #66551f; background: var(--lime); }
.path-step strong { display: block; color: #4b5f55; font-size: 14px; font-weight: 500; }
.path-step small { display: block; margin-top: 3px; color: #9aa49f; font-size: 14px; }
.path-step > span { color: #99a49e; font-size: 14px; }
.path-step.active > span { color: var(--green); }
.path-card .button { margin-top: 14px; }
.team-note h3 { margin: 13px 0 10px; font-size: 17px; }
.team-note button { width: 100%; padding: 9px 0; border-top: 1px solid #edf0ed; text-align: left; background: none; color: #708078; font-size: 14px; }
.team-note button:hover { color: var(--green); }

.oa-summary {
  min-height: 65px;
  margin-bottom: 16px;
  padding: 12px 17px;
  display: flex;
  align-items: center;
  gap: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.oa-summary > div { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 7px; }
.summary-dot { width: 7px; height: 7px; border-radius: 50%; }
.summary-dot.coral { background: var(--coral); }
.summary-dot.amber { background: var(--amber); }
.summary-dot.green { background: var(--green); }
.oa-summary small { color: #8b9791; font-size: 14px; }
.oa-summary strong { grid-column: 2; color: #34483e; font-family: var(--display); font-size: 21px; font-weight: 500; }
.oa-summary > p { margin: 0 0 0 auto; max-width: 540px; color: #76847d; font-size: 14px; line-height: 1.65; }
.oa-summary > p b { margin-right: 6px; color: #4b6f5f; font-weight: 600; }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; min-height: 480px; }
.kanban-column { padding: 13px; background: #edf0ec; border-radius: 10px; border: 1px solid #e0e5e0; }
.kanban-column.drag-over { background: #e4ece5; border-color: #a4beb0; }
.kanban-column > header { display: flex; align-items: center; gap: 7px; min-height: 30px; margin-bottom: 9px; }
.kanban-column > header strong { font-size: 14px; font-weight: 600; }
.kanban-column > header b { margin-left: auto; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 9px; background: #fff; color: #8c9992; font-size: 14px; font-weight: 500; }
.kanban-column > header button { padding: 0 2px; background: none; color: #91a097; font-size: 19px; }
.column-dot { width: 6px; height: 6px; border-radius: 50%; }
.column-dot.todo { background: var(--coral); }
.column-dot.doing { background: var(--amber); }
.column-dot.done { background: var(--green); }
.task-list { min-height: 380px; display: flex; flex-direction: column; gap: 8px; }
.task-card { padding: 13px; background: #fff; border: 1px solid #dfe5df; border-radius: 7px; box-shadow: 0 3px 8px rgba(20,50,37,.025); cursor: grab; }
.task-card:active { cursor: grabbing; }
.task-card .task-type { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9aa59f; font-size: 14px; }
.task-card .task-type span { padding: 3px 5px; border-radius: 2px; background: #edf2ed; color: #6a7d72; }
.task-card h3 { margin: 10px 0 5px; color: #394d43; font-size: 14px; line-height: 1.5; font-weight: 600; }
.task-card p { margin: 0; color: #929e98; font-size: 14px; line-height: 1.55; }
.task-foot { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: #a0aaa5; font-size: 14px; }
.task-avatar { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #e7ebe5; color: #66776e; font-size: 14px; }
.task-due { margin-left: auto; }
.drag-hint { margin: 12px 0 0; color: #9ca7a1; font-size: 14px; text-align: center; }

.video-layout { display: grid; grid-template-columns: minmax(440px, .95fr) minmax(400px, .78fr); gap: 16px; align-items: start; }
.video-studio { padding: 22px; }
.form-step { display: grid; grid-template-columns: 28px 1fr; gap: 11px; padding: 15px 0; border-bottom: 1px solid #edf0ed; }
.step-badge { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-family: var(--display); font-size: 14px; }
.form-step strong { display: block; color: #3e5349; font-size: 14px; }
.form-step p { margin: 4px 0 10px; color: #909c96; font-size: 14px; line-height: 1.5; }
.form-step select { width: 100%; max-width: 330px; height: 36px; padding: 0 10px; border: 1px solid #dce3dc; border-radius: 5px; background: #fff; color: #4b5f55; font-size: 14px; }
.check-options { display: flex; flex-wrap: wrap; gap: 7px; }
.check-options label { cursor: pointer; }
.check-options input { display: none; }
.check-options span { display: inline-block; padding: 6px 9px; border: 1px solid #dfe5df; border-radius: 4px; color: #77877f; font-size: 14px; }
.check-options input:checked + span { color: #3f6d59; border-color: #9fc2b1; background: #edf5f0; }
.template-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.template { min-height: 74px; padding: 9px; text-align: left; border: 1px solid #dfe5df; border-radius: 5px; background: #fff; color: #78877f; }
.template:hover, .template.active { border-color: #8bb6a2; background: #f1f7f3; }
.template span { display: block; width: 17px; height: 24px; margin-bottom: 7px; border: 1px solid currentColor; border-radius: 2px; }
.template strong { display: block; color: #4b5f55; font-size: 14px; }
.template small { display: block; margin-top: 3px; color: #9ba69f; font-size: 14px; }
.video-studio > .button { margin-top: 17px; }
.generation-progress { display: none; height: 22px; margin-top: 10px; overflow: hidden; border-radius: 3px; background: #eef2ed; }
.generation-progress.active { display: flex; align-items: center; position: relative; }
.generation-progress i { position: absolute; inset: 0 auto 0 0; width: 0; background: #dceecb; transition: width 1.2s ease; }
.generation-progress span { position: relative; z-index: 1; margin: auto; color: #668072; font-size: 14px; }
.video-output { display: flex; flex-direction: column; gap: 14px; }
.phone-preview { width: min(310px, 100%); margin: 0 auto; padding: 7px; border-radius: 27px; background: #18241f; box-shadow: 0 25px 55px rgba(9, 30, 20, .18); }
.phone-top, .phone-bottom { height: 27px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; color: #8fa098; font-size: 14px; }
.phone-top b { color: #edf5f0; font-family: var(--display); font-size: 14px; }
.video-canvas { position: relative; min-height: 410px; padding: 21px; overflow: hidden; border-radius: 20px; background: linear-gradient(160deg, #193f32, #0b241b); color: #fff; }
.video-grid { position: absolute; inset: 0; opacity: .65; background-image: linear-gradient(rgba(208,240,217,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(208,240,217,.07) 1px,transparent 1px); background-size: 28px 28px; }
.video-tag { position: relative; z-index: 2; color: #9eb4aa; font-family: var(--display); font-size: 14px; letter-spacing: 1.2px; }
.part-illustration { position: relative; z-index: 2; width: 180px; height: 180px; margin: 66px auto 38px; }
.part-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(223,242,156,.45); background: radial-gradient(circle, rgba(223,242,156,.13), transparent 68%); }
.part-ring.outer { inset: 0; box-shadow: 0 0 0 13px rgba(223,242,156,.025), 0 0 0 30px rgba(223,242,156,.018); }
.part-ring.inner { inset: 32px; border-width: 7px; border-color: rgba(223,242,156,.22); background: transparent; }
.part-core { position: absolute; inset: 72px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 40px rgba(223,242,156,.35); }
.video-canvas h3 { position: relative; z-index: 2; margin: 0 0 8px; font-size: 24px; }
.video-canvas p { position: relative; z-index: 2; margin: 0; color: #9eb8ad; font-size: 14px; line-height: 1.65; }
.play-button { position: absolute; z-index: 3; right: 18px; bottom: 17px; width: 29px; height: 29px; border-radius: 50%; color: var(--green-dark); background: var(--lime); font-size: 14px; }
.phone-bottom i { flex: 1; height: 2px; margin: 0 10px; background: #354b41; border-radius: 2px; }
.phone-bottom i b { display: block; width: 36%; height: 100%; background: var(--lime); border-radius: 2px; }
.storyboard-card { padding: 16px; }
.storyboard { display: flex; flex-direction: column; }
.storyboard > div { padding: 10px 0; border-top: 1px solid #edf0ed; }
.storyboard span { display: block; color: #8da096; font-family: var(--display); font-size: 14px; }
.storyboard strong { display: block; margin: 5px 0 3px; color: #42574d; font-size: 14px; }
.storyboard p { margin: 0; color: #8e9a94; font-size: 14px; line-height: 1.55; }
.storyboard-card .card-heading > span { color: #a0aaa5; font-size: 14px; }
.storyboard-actions { display: flex; gap: 7px; margin-top: 10px; }
.storyboard-actions .button { flex: 1; }

.service-layout { display: grid; grid-template-columns: 250px minmax(420px, 1fr) 300px; gap: 13px; min-height: 590px; }
.inbox-panel { padding: 16px 12px; }
.inbox-head { display: flex; align-items: center; gap: 9px; margin: 0 3px 12px; }
.inbox-head h2 { flex: 1; margin: 0; font-size: 17px; }
.mini-search { width: 36px; height: 29px; display: flex; align-items: center; justify-content: center; border: 1px solid #e1e7e1; border-radius: 4px; color: #8a9891; overflow: hidden; }
.mini-search svg { width: 14px; height: 14px; }
.mini-search input { width: 0; border: 0; outline: 0; }
.inbox-list { display: flex; flex-direction: column; gap: 3px; }
.inbox-item { width: 100%; min-height: 67px; padding: 10px 8px; display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; text-align: left; background: transparent; border-radius: 6px; }
.inbox-item:hover, .inbox-item.active { background: #f2f5f1; }
.inbox-item.active { box-shadow: inset 2px 0 var(--green); }
.customer-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: #5274a1; font-family: var(--display); font-size: 14px; font-weight: 600; }
.inbox-item div:nth-child(2) { min-width: 0; }
.inbox-item strong { display: block; overflow: hidden; color: #40544a; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.inbox-item p { margin: 4px 0 0; overflow: hidden; color: #91a098; font-size: 14px; white-space: nowrap; text-overflow: ellipsis; }
.inbox-item > span { color: #9da8a2; font-size: 14px; }
.inbox-item b { grid-column: 2 / -1; margin-top: 2px; color: #b1bab5; font-size: 14px; font-weight: 400; }
.inbox-item.unread b { color: var(--coral); }
.conversation-panel { display: flex; flex-direction: column; overflow: hidden; }
.conversation-head { min-height: 58px; padding: 0 16px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.conversation-head > div:nth-child(2) { flex: 1; }
.conversation-head strong { display: block; font-size: 14px; }
.conversation-head small { display: block; margin-top: 3px; color: #95a19b; font-size: 14px; }
.online-customer { display: flex; align-items: center; gap: 4px; color: #7d9b8d; font-size: 14px; }
.online-customer i { width: 5px; height: 5px; border-radius: 50%; background: #68b58e; }
.conversation-head .text-button { color: #4f806b; }
.messages { min-height: 350px; flex: 1; padding: 19px; display: flex; flex-direction: column; gap: 15px; overflow-y: auto; background: #fcfdfb; }
.message { display: flex; gap: 8px; align-items: flex-end; }
.message.out { justify-content: flex-end; }
.message .bubble { max-width: 75%; padding: 10px 12px; border-radius: 4px 10px 10px 10px; background: #f0f3ef; color: #495b52; font-size: 14px; line-height: 1.7; }
.message.out .bubble { color: #fff; background: var(--green); border-radius: 10px 4px 10px 10px; }
.message time { color: #a5afa9; font-size: 14px; }
.message-translation { display: none; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(89,112,100,.15); color: #789288; font-size: 14px; }
.service-layout.show-translation .message-translation { display: block; }
.reply-composer { border-top: 1px solid var(--line); padding: 10px 13px; }
.reply-composer textarea { width: 100%; padding: 10px; resize: none; border: 1px solid #e0e6e0; border-radius: 5px; outline: 0; background: #fff; color: #42564d; font-size: 14px; line-height: 1.6; }
.reply-composer textarea:focus { border-color: #9dbdad; }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; color: #9aa59f; font-size: 14px; }
.service-assist { display: flex; flex-direction: column; gap: 13px; }
.customer-card, .assist-card { padding: 17px; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; padding: 13px 0; border-top: 1px solid #edf0ed; border-bottom: 1px solid #edf0ed; }
.profile-grid span { color: #96a29c; font-size: 14px; }
.profile-grid strong { display: block; margin-top: 4px; color: #495d53; font-size: 14px; font-weight: 600; }
.customer-card .link-button { margin-top: 12px; }
.assist-card { background: linear-gradient(145deg, #f1f6ef, #fafbf8); }
.assist-card .card-kicker svg { width: 12px; height: 12px; }
.assist-card h2 { margin: 13px 0 8px; font-size: 19px; }
.assist-card > p { min-height: 57px; margin: 0 0 12px; color: #77877f; font-size: 14px; line-height: 1.7; }
.knowledge-cite { padding: 10px; border-left: 2px solid #8ab79f; background: #fff; }
.knowledge-cite span { display: block; color: #8d9b94; font-size: 14px; }
.knowledge-cite strong { display: block; margin: 5px 0 3px; color: #486356; font-size: 14px; }
.knowledge-cite small { display: block; color: #9da8a2; font-size: 14px; }
.assist-card .button { margin-top: 12px; }

.drawer-backdrop { display: none; position: fixed; z-index: 60; inset: 0; background: rgba(9,28,20,.28); backdrop-filter: blur(2px); }
.drawer-backdrop.open { display: block; }
.detail-drawer {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  width: min(430px, 100vw);
  height: 100vh;
  padding: 25px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -25px 0 70px rgba(8,35,24,.16);
  transform: translateX(105%);
  transition: transform .3s ease;
}
.detail-drawer.open { transform: translateX(0); }
.detail-drawer > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.detail-drawer header span { color: #6b8f7e; font-family: var(--display); font-size: 14px; letter-spacing: 1.3px; }
.detail-drawer header h2 { margin: 8px 0 0; font-size: 25px; line-height: 1.4; letter-spacing: -.7px; }
.detail-drawer header button, .modal header button { width: 30px; height: 30px; display: grid; place-items: center; background: #f1f4f0; border-radius: 50%; color: #708078; }
.detail-drawer header button svg, .modal header button svg { width: 15px; height: 15px; }
.drawer-content { flex: 1; overflow-y: auto; padding: 20px 0; }
.drawer-content p { color: #687a71; font-size: 14px; line-height: 1.9; }
.drawer-content h3 { margin: 22px 0 9px; font-size: 16px; }
.drawer-content .drawer-summary { padding: 15px; background: #f4f7f3; border-radius: 6px; color: #4f6459; font-size: 14px; line-height: 1.8; }
.drawer-content .meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin: 18px 0; }
.drawer-content .meta-grid div { padding: 10px; background: #fafbf9; border: 1px solid #edf0ed; border-radius: 4px; }
.drawer-content .meta-grid span { display: block; color: #96a29c; font-size: 14px; }
.drawer-content .meta-grid strong { display: block; margin-top: 4px; color: #42574c; font-size: 14px; }
.drawer-content ul { padding-left: 18px; color: #65776d; font-size: 14px; line-height: 1.9; }
.drawer-content .official-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; color: var(--green); font-size: 14px; }
.detail-drawer > footer { padding-top: 17px; display: flex; gap: 8px; border-top: 1px solid var(--line); }
.detail-drawer > footer .button { flex: 1; }

.modal-backdrop { display: none; position: fixed; z-index: 90; inset: 0; align-items: center; justify-content: center; padding: 22px; background: rgba(8,28,20,.5); backdrop-filter: blur(4px); }
.modal-backdrop.open { display: flex; }
.modal { width: min(660px, 100%); max-height: 86vh; overflow-y: auto; padding: 26px; border-radius: 12px; background: #fff; box-shadow: 0 35px 100px rgba(5,25,16,.25); }
.modal > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.modal h2 { margin: 9px 0 0; font-size: 26px; }
.modal-content { padding-top: 20px; color: #5d7066; font-size: 14px; line-height: 1.8; }
.guide-list { display: flex; flex-direction: column; gap: 11px; }
.guide-step { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid #e8ece7; border-radius: 6px; }
.guide-step > i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-family: var(--display); font-size: 14px; font-style: normal; }
.guide-step strong { display: block; color: #46594f; font-size: 14px; }
.guide-step small { display: block; margin-top: 3px; color: #909c96; font-size: 14px; }
.guide-step button { padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: #567565; font-size: 14px; }
.task-form, .quiz-form { display: flex; flex-direction: column; gap: 12px; }
.task-form label, .quiz-form label { display: flex; flex-direction: column; gap: 5px; color: #66786e; font-size: 14px; }
.task-form input, .task-form select, .task-form textarea { width: 100%; min-height: 37px; padding: 8px 10px; border: 1px solid #dde4dd; border-radius: 4px; outline: 0; color: #4b5f55; background: #fff; font-size: 14px; }
.quiz-option { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #e4e9e4; border-radius: 4px; font-size: 14px; }
.brief-preview { max-height: 390px; margin: 16px 0 0; padding: 17px; overflow: auto; border: 1px solid #e1e7e1; border-radius: 6px; background: #f7f9f6; color: #4e6258; font: 9px/1.8 "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; }
.brief-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.preview-note { padding: 28px 10px; color: #94a098; font-size: 14px; text-align: center; }

.toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 28px;
  max-width: calc(100vw - 30px);
  padding: 11px 16px;
  border-radius: 5px;
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 16px 45px rgba(0,0,0,.2);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 15px);
  pointer-events: none;
  transition: .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes view-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .35; } }

@media (max-width: 1220px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .page-view { padding: 27px 24px 38px; }
  .intel-grid { grid-template-columns: minmax(0, 1.45fr) minmax(270px, .7fr); }
  .knowledge-layout { grid-template-columns: minmax(0, 1.3fr) 320px; }
  .service-layout { grid-template-columns: 220px minmax(390px, 1fr) 275px; }
  .page-heading h1 { font-size: 33px; }
}

@media (max-width: 1040px) {
  body { overflow: auto; }
  .app-shell { min-height: 100vh; height: auto; display: block; }
  .sidebar { position: sticky; z-index: 40; top: 0; width: 100%; height: auto; min-height: 0; padding: 13px 18px; }
  .brand-row { padding: 0 0 12px; }
  .workspace-chip, .nav-label, .sidebar-guide { display: none; }
  .main-nav { flex-direction: row; gap: 5px; overflow-x: auto; padding-bottom: 1px; }
  .nav-item { width: auto; min-width: max-content; min-height: 39px; padding: 0 11px; }
  .nav-item.active::before { display: none; }
  .nav-item span { font-size: 14px; }
  .user-row { display: none; }
  .workspace { min-height: calc(100vh - 105px); }
  .topbar { position: sticky; z-index: 35; top: 105px; }
  .page-content { overflow: visible; }
  .intel-grid, .knowledge-layout, .video-layout { grid-template-columns: 1fr; }
  .conclusion-card { min-height: 330px; }
  .lower-grid { grid-template-columns: 1fr; }
  .service-layout { grid-template-columns: 220px 1fr; }
  .service-assist { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .topbar { top: 105px; padding: 0 16px; height: 58px; }
  .data-state, .topbar .text-button { display: none; }
  .page-view { padding: 22px 15px 35px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .page-heading h1 { font-size: 30px; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .metric-row, .knowledge-stats { grid-template-columns: 1fr 1fr; }
  .signal-item { grid-template-columns: 32px minmax(0,1fr); }
  .signal-action { grid-column: 2; justify-self: start; }
  .market-row { grid-template-columns: 24px 100px minmax(45px,1fr) 48px; }
  .kanban { grid-template-columns: 1fr; }
  .kanban-column { min-height: 250px; }
  .task-list { min-height: 160px; }
  .oa-summary { align-items: flex-start; flex-wrap: wrap; gap: 12px 20px; }
  .oa-summary > p { order: 4; flex-basis: 100%; margin-left: 0; }
  .video-layout { gap: 13px; }
  .template-options { grid-template-columns: 1fr; }
  .template { min-height: 52px; display: grid; grid-template-columns: 20px 1fr; grid-template-rows: auto auto; gap: 1px 8px; align-items: center; }
  .template span { grid-row: 1 / 3; margin-bottom: 0; }
  .service-layout { grid-template-columns: 1fr; min-height: 0; }
  .inbox-panel { max-height: 260px; overflow-y: auto; }
  .conversation-panel { min-height: 500px; }
  .service-assist { grid-template-columns: 1fr; }
  .detail-drawer { width: 100%; }
}

@media (max-width: 460px) {
  .brand-row strong { font-size: 22px; }
  .main-nav { gap: 3px; }
  .nav-item { padding: 0 9px; }
  .nav-item svg { width: 17px; height: 17px; }
  .metric-row { gap: 8px; }
  .metric-card { min-height: 86px; padding: 12px; gap: 8px; }
  .metric-icon { width: 29px; height: 29px; }
  .metric-card strong { font-size: 24px; }
  .metric-trend { display: none; }
  .knowledge-stats { gap: 8px; }
  .knowledge-stats article { padding: 12px; }
  .storyboard-actions { flex-direction: column; }
  .conversation-head { flex-wrap: wrap; padding: 9px 12px; }
  .conversation-head .text-button { flex-basis: 100%; text-align: left; }
  .composer-actions { align-items: flex-start; flex-direction: column; }
  .composer-actions .button { width: 100%; }
}

.oa-enterprise { margin-bottom: 26px; padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.oa-enterprise-heading, .oa-preview-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.oa-enterprise-heading h2 { margin: 7px 0; font-size: 24px; font-weight: 600; }
.oa-enterprise-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.oa-module-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.oa-module-tabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); text-align: left; color: var(--ink-soft); cursor: pointer; }
.oa-module-tabs button[aria-selected="true"] { color: white; background: var(--green-dark); border-color: var(--green-dark); box-shadow: 0 6px 15px #11271f18; }
.oa-module-tabs button > span { font-family: var(--display); font-size: 14px; letter-spacing: 1px; opacity: .7; }
.oa-module-tabs button strong { font-size: 21px; font-weight: 600; }
.oa-module-tabs button small { font-size: 14px; opacity: .75; }
.oa-module-tabs button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.oa-module-panel { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: start; }
.oa-module-panel[hidden] { display: none; }
.oa-module-intro h3 { margin: 10px 0; font-size: 23px; font-weight: 500; line-height: 1.6; }
.oa-module-intro > p { color: var(--muted); font-size: 15px; line-height: 1.9; margin: 0 0 20px; }
.oa-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.oa-feature-grid b { font-size: 16px; font-weight: 600; }
.oa-feature-grid p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 6px 0 0; }
.oa-preview { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-soft); }
.oa-preview-heading strong { font-size: 17px; }
.oa-preview-heading > span { color: var(--muted); font-size: 14px; }
.oa-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.oa-kpis > div { border-right: 1px solid var(--line); }
.oa-kpis > div:last-child { border: 0; }
.oa-kpis small { display: block; color: var(--muted); font-size: 14px; }
.oa-kpis strong { display: block; color: var(--green); font: 25px var(--display); margin-top: 7px; }
.oa-kpis em { font: normal 10px var(--font); }
.oa-preview h4 { font-size: 15px; font-weight: 500; margin: 20px 0 12px; }
.oa-dept { display: grid; grid-template-columns: 86px 1fr 40px; align-items: center; gap: 10px; margin: 12px 0; font-size: 14px; color: var(--ink-soft); }
.oa-dept meter { width: 100%; height: 12px; accent-color: var(--green); }
.oa-dept b { font-weight: 500; text-align: right; }
.oa-example-note { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.8; }
.oa-table-wrap { overflow-x: auto; }
.oa-example-table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; white-space: nowrap; }
.oa-example-table caption { text-align: left; padding: 5px 0 10px; color: var(--ink-soft); font-weight: 600; }
.oa-example-table th { color: var(--muted); font-weight: 400; font-size: 14px; }
.oa-example-table td, .oa-example-table th { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.oa-example-table td small { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; }
.oa-pill { display: inline-block; padding: 4px 7px; border-radius: 4px; background: var(--green-soft); color: var(--green); font-size: 14px; }
.oa-pill.amber { background: var(--amber-soft); color: #8a621d; }
.oa-process { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 15px; background: var(--green-soft); border-radius: 6px; font-size: 15px; color: var(--ink-soft); }
.oa-process b { margin-right: auto; color: var(--green); }
.oa-process i { font-style: normal; opacity: .5; }
.oa-connection { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.oa-connection > strong { font-size: 16px; }
.oa-connection p { margin: 9px 0 0; font-size: 15px; line-height: 2; color: var(--muted); }
.oa-connection p b { color: var(--green); font-weight: 500; }
.oa-connection p span { margin: 0 8px; }
.oa-task-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.oa-task-heading h2 { margin: 0; font-size: 21px; font-weight: 500; }
.oa-task-heading > span { color: var(--muted); font-size: 14px; }
@media (max-width: 1100px) {
  .oa-module-panel { grid-template-columns: 1fr; }
  .oa-enterprise-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
  .oa-enterprise { padding: 15px; }
  .oa-module-tabs { gap: 6px; }
  .oa-module-tabs button { padding: 12px 9px; }
  .oa-module-tabs button strong { font-size: 16px; }
  .oa-module-tabs button > span { font-size: 14px; letter-spacing: 0; }
  .oa-module-tabs button small { font-size: 14px; line-height: 1.6; }
  .oa-feature-grid { gap: 16px; }
  .oa-preview { padding: 12px; }
  .oa-process { gap: 9px; }
  .oa-process b { flex-basis: 100%; }
  .oa-kpis strong { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.knowledge-assistant { margin-bottom: 22px; padding: 22px; }
.assistant-intro { color: #64748b; line-height: 1.7; }
.assistant-prompts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.assistant-messages { max-height: 390px; overflow-y: auto; display: grid; gap: 12px; padding: 12px; background: #f5f8fc; border-radius: 12px; }
.assistant-message { max-width: 92%; padding: 14px 16px; background: white; border: 1px solid #e2e8f0; border-radius: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.assistant-message p { margin: 6px 0; }
.assistant-message ul { padding-left: 20px; }
.assistant-message small { display: block; color: #64748b; }
.assistant-user { justify-self: end; background: #e9f3ff; }
.assistant-form { display: flex; gap: 10px; margin-top: 14px; }
.assistant-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; }
.assistant-form input:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
@media (max-width: 600px) { .knowledge-assistant { padding: 14px; } .knowledge-assistant .card-heading { flex-wrap: wrap; gap: 10px; } .assistant-form { flex-direction: column; } .assistant-message { max-width: 100%; } }
/* Global service hub */
.hub-overview{display:flex;align-items:center;gap:28px;padding:23px 25px;margin-bottom:20px;border:1px solid #dbe6df;border-radius:12px;background:linear-gradient(115deg,#eaf2eb,#fafbf6)}.hub-overview>div:first-child{display:flex;gap:13px;align-items:center;flex:1}.hub-orbit{font-size: 42px;color:#53765e}.hub-overview small{display:block;font-size: 14px;letter-spacing:1.8px;color:#6c8676}.hub-overview strong{display:block;font-size: 24px;margin-top:7px;color:#304d3d}.hub-stat b{display:block;font-size: 29px;color:#365c43}.hub-stat span{font-size: 14px;color:#7b8c80}.hub-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.hub-toolbar>span{font-size: 15px;color:#64836b}#hub-channel-tabs{display:flex;gap:5px}#hub-channel-tabs button{padding:10px 17px;border-radius:7px;background:white;color:#6d8074}#hub-channel-tabs button.active{background:#365d47;color:white}.hub-filters,.hub-session{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size: 14px;padding:10px;color:#708174}.hub-session{border-bottom:1px solid #edf0ed;padding:10px 18px}.hub-session>span{flex:1}.hub-session button{background:#edf3eb;color:#47664d;padding:7px 10px;border-radius:5px}.hub-filters select,.hub-session select,.hub-language select{border:1px solid #dfe7e0;border-radius:5px;background:white;padding:6px;color:#526e5b;font:inherit}.hub-ai-tag{font-size: 14px;color:#849188}.hub-ai-mode{padding:12px;background:#f1f5ef;border-radius:7px;margin:14px 0}.hub-ai-mode label{font-size: 16px;color:#42604d}.hub-ai-mode small{display:block;font-size: 14px;line-height:1.7;color:#809082;margin-top:7px}.hub-language{display:flex;justify-content:space-between;align-items:center;font-size: 15px;color:#6c8171}.hub-ai-result{font-size: 15px;color:#7c8a7e;line-height:1.8;margin-top:14px}.assist-card .button{margin-top:8px}.inbox-item[hidden]{display:none}.hub-overview~.service-layout{grid-template-columns:245px minmax(320px,1fr) 280px}.inbox-item>span:nth-child(2){min-width:0}.inbox-item strong{font-size: 15px}.inbox-item p{font-size: 14px}.inbox-item b{font-size: 14px}.hub-session select:focus-visible,#hub-channel-tabs button:focus-visible{outline:2px solid #779c6e}#send-reply:disabled{opacity:.45;cursor:not-allowed}@media(max-width:1200px){.hub-overview~.service-layout{grid-template-columns:230px minmax(300px,1fr)}.hub-overview{gap:18px}.hub-overview strong{font-size: 21px}}@media(max-width:760px){.hub-overview{flex-wrap:wrap;padding:18px;gap:18px}.hub-overview>div:first-child{flex-basis:100%}.hub-overview~.service-layout{grid-template-columns:1fr}.hub-toolbar{align-items:flex-start;gap:10px;flex-direction:column}#hub-channel-tabs{flex-wrap:wrap}.hub-session{flex-wrap:wrap}.hub-session>span{flex-basis:100%}}

/* Keep enlarged navigation and controls comfortable on compact screens. */
.sidebar { overflow-y: auto; }
.nav-item { min-height: 44px; }
.button { min-height: 38px; height: auto; }
.search-box { min-height: 42px; }

/* Additional channel tabs wrap at every viewport width. */
#hub-channel-tabs{flex-wrap:wrap;min-width:0}.hub-toolbar{gap:12px;flex-wrap:wrap}.hub-toolbar>span{white-space:nowrap}.inbox-list{max-height:540px;overflow-y:auto}

/* Spacing system for the enlarged typography. */
:root { --space-card: 24px; --space-grid: 24px; }
body { font-size: 16px; line-height: 1.65; }
button, input, textarea, select { line-height: 1.5; }
h1, h2, h3, h4 { text-wrap: pretty; }
.page-view { padding: 32px 32px 48px; }
.page-heading { align-items: center; gap: 20px 32px; margin-bottom: 28px; }
.page-heading > div:first-child { flex: 1 1 360px; min-width: 0; }
.page-heading h1 { line-height: 1.3; letter-spacing: -.6px; }
.page-heading p:not(.eyebrow) { margin-top: 12px; max-width: 760px; line-height: 1.8; }
.topbar { height: auto; min-height: 76px; padding: 16px 28px; gap: 12px 24px; flex-wrap: wrap; }
.top-actions, .heading-actions { flex-wrap: wrap; gap: 12px; }
.crumb { flex-wrap: wrap; }
.button { min-height: 44px; padding: 10px 18px; border-radius: 8px; }
.button.large { min-height: 48px; }
.icon-button { width: 38px; height: 38px; flex-shrink: 0; }
.nav-item { min-height: 48px; padding-top: 10px; padding-bottom: 10px; }
.nav-item span { font-size: 16px; line-height: 1.5; }
.card { border-radius: 14px; min-width: 0; }
.card-heading { gap: 12px 20px; margin-bottom: 20px; flex-wrap: wrap; }
.card-heading > div { min-width: 0; gap: 12px; }
.card-heading h2 { line-height: 1.45; }
.section-number { width: 30px; height: 30px; flex-shrink: 0; }
.intel-grid, .knowledge-layout, .video-layout, .lower-grid,
.learning-path, .service-assist { gap: var(--space-grid); }
.knowledge-library, .path-card, .team-note, .signal-panel,
.video-studio, .customer-card, .assist-card, .knowledge-assistant,
.storyboard-card { padding: var(--space-card); }
.metric-row, .knowledge-stats { gap: 16px; margin-bottom: 24px; }
.metric-card { min-height: 124px; padding: 20px; flex-wrap: wrap; gap: 12px; }
.metric-card strong { margin: 6px 0; line-height: 1.2; }
.knowledge-stats article { padding: 20px 24px; }
.knowledge-stats strong { margin: 8px 0; line-height: 1.2; }
.knowledge-layout { grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr); align-items: start; }
.search-box { min-height: 50px; padding: 10px 16px; gap: 12px; }
.search-box input, .chip { font-size: 16px; }
.knowledge-filters { gap: 8px; margin: 16px 0 20px; }
.chip { padding: 7px 14px; border-radius: 20px; }
.knowledge-item { min-height: 100px; padding: 20px 4px; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; }
.knowledge-type { width: 40px; height: 40px; border-radius: 9px; }
.knowledge-item strong { font-size: 18px; line-height: 1.5; }
.knowledge-item p { margin-top: 8px; font-size: 16px; line-height: 1.75; color: #61756a; }
.knowledge-item > span { white-space: nowrap; align-self: center; }
.knowledge-item > div, .path-step > div { min-width: 0; overflow-wrap: anywhere; }
.path-head { gap: 20px; padding-bottom: 20px; }
.path-head strong { margin-top: 8px; font-size: 18px; line-height: 1.6; }
.progress-ring { width: 60px; height: 60px; }
.path-step { min-height: 88px; padding: 18px 0; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; }
.path-step > i { width: 28px; height: 28px; }
.path-step strong { font-size: 17px; line-height: 1.5; }
.path-step small { margin-top: 6px; font-size: 15px; line-height: 1.65; color: #65796d; }
.path-step > span { white-space: nowrap; }
.path-card .button { margin-top: 20px; }
.team-note h3 { margin: 12px 0 16px; line-height: 1.5; }
.team-note button { padding: 14px 0; font-size: 16px; line-height: 1.65; }
.signal-item { padding-top: 20px; padding-bottom: 20px; gap: 14px; }
.signal-item h3, .task-card h3 { line-height: 1.6; margin-bottom: 8px; }
.signal-item p, .task-card p, .form-step p, .storyboard p { line-height: 1.8; }
.signal-meta { gap: 8px 14px; margin-top: 12px; }
.kanban { gap: 20px; }
.kanban-column, .task-card { padding: 18px; }
.task-list { gap: 14px; }
.form-step { padding: 22px 0; gap: 16px; }
.form-step select { height: auto; min-height: 44px; padding: 10px 12px; }
.template-options { gap: 12px; }
.template { padding: 14px; }
.service-layout, .hub-overview ~ .service-layout { gap: 20px; grid-template-columns: 260px minmax(0, 1fr) 300px; }
.inbox-item {
  flex: 0 0 auto;
  height: auto;
  min-height: 116px;
  padding: 16px 12px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: start;
  align-items: start;
  gap: 10px 12px;
}
.inbox-list { gap: 8px; padding-bottom: 8px; scrollbar-gutter: stable; }
.inbox-item > .customer-avatar { grid-column: 1; grid-row: 1; }
.inbox-item > span:nth-child(2) { grid-column: 2; grid-row: 1; min-width: 0; }
.inbox-item > span:nth-child(3) { grid-column: 3; grid-row: 1; white-space: nowrap; line-height: 1.5; }
.inbox-item strong { line-height: 1.5; }
.inbox-item p { margin-top: 6px; line-height: 1.5; }
.inbox-item > b {
  grid-column: 2 / -1;
  grid-row: 2;
  margin: 0;
  min-width: 0;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.conversation-head { padding: 16px 20px; gap: 12px; flex-wrap: wrap; }
.messages { padding: 24px; gap: 20px; }
.message .bubble { padding: 14px 18px; font-size: 16px; line-height: 1.75; }
.reply-composer { padding: 20px; }
.composer-actions { flex-wrap: wrap; gap: 14px; }
.profile-grid { gap: 18px 16px; padding: 20px 0; }
.assistant-messages { padding: 16px; gap: 16px; }
.assistant-message { padding: 16px 20px; line-height: 1.75; }
.assistant-form { margin-top: 20px; gap: 12px; }
.oa-module-panel { gap: 28px; }
.oa-feature-grid { gap: 24px; }
.oa-preview { min-width: 0; overflow-x: auto; }
.oa-summary { gap: 16px 24px; flex-wrap: wrap; }
@media (min-width: 1041px) { .sidebar { width: 260px; flex-basis: 260px; } }
@media (min-width: 1041px) and (max-width: 1300px) {
  .sidebar { width: 230px; flex-basis: 230px; padding-left: 12px; padding-right: 12px; }
  .knowledge-layout, .video-layout { grid-template-columns: 1fr; }
  .learning-path { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 761px) and (max-width: 1400px) {
  .service-layout, .hub-overview ~ .service-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .service-assist { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1040px) {
  .sidebar { width: 100%; flex-basis: auto; }
  .topbar { position: static; }
  .page-view { padding: 28px 24px 40px; }
  .intel-grid, .knowledge-layout, .video-layout { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --space-card: 20px; --space-grid: 20px; }
  .page-view { padding: 24px 16px 36px; }
  .page-heading { gap: 16px; margin-bottom: 24px; }
  .page-heading > div:first-child { flex-basis: auto; }
  .topbar { min-height: 64px; padding: 12px 16px; }
  .service-layout, .hub-overview ~ .service-layout, .service-assist,
  .learning-path, .oa-feature-grid { grid-template-columns: 1fr; }
  .metric-card, .knowledge-stats article { padding: 16px; }
  .metric-row, .knowledge-stats { gap: 12px; }
  .knowledge-item { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .knowledge-type { width: 36px; height: 36px; }
  .knowledge-item > span { grid-column: 2; margin-top: -4px; }
  .path-step { grid-template-columns: 28px minmax(0, 1fr); }
  .path-step > span { grid-column: 2; }
  .search-box > span { display: none; }
  .assistant-form { flex-direction: column; }
  .messages { padding: 18px; }
  .message .bubble { max-width: 90%; }
}
