/* AUTO-GENERATED by authoring/tools/scope-css.mjs — do not edit by hand. */

@font-face {
  font-family: 'Benton Sans';
  src: url('fonts/BentonSans-Light.woff') format('woff');
  font-weight: 300; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Benton Sans';
  src: url('fonts/BentonSans-Book.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Benton Sans';
  src: url('fonts/BentonSans-Book_Italic.woff') format('woff');
  font-weight: 400; font-style: italic; font-display: swap;
}

@font-face {
  font-family: 'Benton Sans';
  src: url('fonts/BentonSans-Medium.woff') format('woff');
  font-weight: 500; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Benton Sans';
  src: url('fonts/BentonSans-SemiDemi.woff') format('woff');
  font-weight: 600 700; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Benton Sans';
  src: url('fonts/BentonSans-SemiDemi_Italic.woff') format('woff');
  font-weight: 600 700; font-style: italic; font-display: swap;
}

@font-face {
  font-family: 'Public Sans';
  src: url('fonts/PublicSans-VF.woff2') format('woff2-variations');
  font-weight: 300 700; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-VF.woff2') format('woff2-variations');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

@font-face {
  font-family: 'Google Sans';
  src: url('fonts/GoogleSans-Italic.woff') format('woff');
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  /* Brand + content tokens: restored to the prototype baseline. The High
     Contrast direction keeps brand hues and light content intact — the whole
     "high contrast" effect comes from the neutral CHARCOAL chrome below, not
     from recoloring blue/green or greying the page. */
  --tab-blue: #1d3557; --tab-blue2: #2b5f7f;
  --accent: #05628A;   --accent2: #4e79a7;
  --ink: #16191f;      --ink2: #5a6472;
  --line: #e3e6ec;     --bg: #ffffff; --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(20,25,35,.08), 0 6px 20px rgba(20,25,35,.06);
  --font: "Google Sans", "Benton Sans", "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* High Contrast CHROME — the neutral dark charcoal navigation surface.
     One token drives the sidebar (and, later, side panels) so depth is tuned
     in a single place. Swap between the two candidate depths to compare. */
  --chrome: #2c3a4d;   /* CHOSEN — cool charcoal, brand-blue undertone. Keeps the
                          study-winning High Contrast chrome without the dull flat
                          gray; reads as intentional dark Tableau, not dark mode. */
  --chrome2: #24313f;  /* subtle gradient foot so the flat rail isn't dead-flat */
  --nav-accent: #90D0FE; /* TDS color.hue.blue.80 — the dark-surface light-blue accent for the
                            selected-nav indicator + active icon; the light counterpart to the
                            content-area CTA #05628A (blue.40) */
  /* Rejected candidates (kept for reference):
     A (deep neutral gray): --chrome: #3b414c;  --chrome2: #333944;  (too dull)
     B (soft neutral gray):  --chrome: #545b68;  --chrome2: #4a515d;  (too dull) */
}

* { box-sizing: border-box; }

html { margin: 0; height: 100%; }

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

@keyframes gfAuthVeilPulse {
  0%, 100% { opacity: .5; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes tabPopIn {
  from { opacity: 0; transform: translateY(-6px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes gfCreateItemIn { to { opacity: 1; transform: translateY(0); } }

@keyframes ns-convo-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes gfCanvasContentIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes gfRecentsIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes tkRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@keyframes nsTkcBadgeBump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

@keyframes nsTkcCtxRipple {
  0%   { transform: scale(.35); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: scale(2.9); opacity: 0; }
}

@keyframes nsTkcNodePulse {
  0%, 100% { box-shadow: 0 1px 3px rgba(0,0,0,.07); }
  50% { box-shadow: 0 0 0 3px rgba(144,208,254,.22), 0 4px 14px rgba(5,98,138,.14); }
}

@keyframes nsTkcEdgeFlow {
  to { stroke-dashoffset: -24; }
}

@keyframes nsTkcScan {
  0% { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}

@keyframes nsTkcChipIn {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes nsTkcVeilIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes nsTkcDetailIn {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ns-asc-pulse { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-3px); opacity: .65; } }

@keyframes nsGlowSpin {
  to { --ns-glow-a: 360deg; }
}

@keyframes nsAgentUndulate {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.4); }
}

@keyframes nsSuggestIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gfAuthIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes gfLoaderTxtSwap {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes gfTypingLineDraw {
  0% { stroke-dashoffset: 17; } 45% { stroke-dashoffset: 0; }
  55% { stroke-dashoffset: 0; } 95% { stroke-dashoffset: 17; } 100% { stroke-dashoffset: 17; }
}

@keyframes gfTypingLineDot1 {
  0% { transform: scale(0); opacity: 0; } 5% { transform: scale(1); opacity: 1; }
  92% { transform: scale(1); opacity: 1; } 97% { transform: scale(0); opacity: 0; } 100% { transform: scale(0); opacity: 0; }
}

@keyframes gfTypingLineDot2 {
  0%, 11% { transform: scale(0); opacity: 0; } 18% { transform: scale(1); opacity: 1; }
  80% { transform: scale(1); opacity: 1; } 85% { transform: scale(0); opacity: 0; } 100% { transform: scale(0); opacity: 0; }
}

@keyframes gfTypingLineDot3 {
  0%, 24% { transform: scale(0); opacity: 0; } 31% { transform: scale(1); opacity: 1; }
  70% { transform: scale(1); opacity: 1; } 75% { transform: scale(0); opacity: 0; } 100% { transform: scale(0); opacity: 0; }
}

@keyframes gfTypingLineDot4 {
  0%, 45% { transform: scale(0); opacity: 0; } 52% { transform: scale(1); opacity: 1; }
  56% { transform: scale(1); opacity: 1; } 61% { transform: scale(0); opacity: 0; } 100% { transform: scale(0); opacity: 0; }
}

@keyframes gfTypingAreaFill {
  0% { clip-path: inset(0 100% 0 0); } 45% { clip-path: inset(0 0 0 0); }
  55% { clip-path: inset(0 0 0 0); } 95% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 100% 0 0); }
}

@keyframes gfTypingPieOrange { 0% { stroke-dashoffset: 100; } 16.67% { stroke-dashoffset: 50; } 100% { stroke-dashoffset: 50; } }

@keyframes gfTypingPieGreen  { 0%, 16.67% { stroke-dashoffset: 100; } 33.33% { stroke-dashoffset: 50; } 100% { stroke-dashoffset: 50; } }

@keyframes gfTypingPieRed    { 0%, 33.33% { stroke-dashoffset: 100; } 50% { stroke-dashoffset: 50; } 100% { stroke-dashoffset: 50; } }

@keyframes gfTypingPieBlue   { 0%, 50% { stroke-dashoffset: 100; } 83.33% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }

@keyframes gfTypingHbarGrow { 0%, 100% { transform: scaleX(0.35); } 50% { transform: scaleX(1); } }

@keyframes gfTypingHbarRef  { 0%, 100% { transform: translateX(-2px); } 50% { transform: translateX(0.8px); } }

@keyframes gfTypingTmA { 0%{transform:scale(0);opacity:0} 5%,87%{transform:scale(1);opacity:1} 92%,100%{transform:scale(0);opacity:0} }

@keyframes gfTypingTmC { 0%,11%{transform:scale(0);opacity:0} 16%,81%{transform:scale(1);opacity:1} 86%,100%{transform:scale(0);opacity:0} }

@keyframes gfTypingTmE { 0%,17%{transform:scale(0);opacity:0} 22%,75%{transform:scale(1);opacity:1} 80%,100%{transform:scale(0);opacity:0} }

@keyframes gfTypingTmF { 0%,23%{transform:scale(0);opacity:0} 28%,69%{transform:scale(1);opacity:1} 74%,100%{transform:scale(0);opacity:0} }

@keyframes gfTypingTmG { 0%,29%{transform:scale(0);opacity:0} 34%,63%{transform:scale(1);opacity:1} 68%,100%{transform:scale(0);opacity:0} }

@keyframes gfTypingTmD { 0%,35%{transform:scale(0);opacity:0} 40%,57%{transform:scale(1);opacity:1} 62%,100%{transform:scale(0);opacity:0} }

@keyframes gfTypingSkLB { 0% { transform: scaleY(0); } 6% { transform: scaleY(1); } 84% { transform: scaleY(1); } 90% { transform: scaleY(0); } 100% { transform: scaleY(0); } }

@keyframes gfTypingSkLT { 0%, 5% { transform: scaleY(0); } 11% { transform: scaleY(1); } 79% { transform: scaleY(1); } 85% { transform: scaleY(0); } 100% { transform: scaleY(0); } }

@keyframes gfTypingSkRB { 0%, 29% { transform: scaleY(0); } 35% { transform: scaleY(1); } 55% { transform: scaleY(1); } 61% { transform: scaleY(0); } 100% { transform: scaleY(0); } }

@keyframes gfTypingSkRT { 0%, 34% { transform: scaleY(0); } 40% { transform: scaleY(1); } 50% { transform: scaleY(1); } 56% { transform: scaleY(0); } 100% { transform: scaleY(0); } }

@keyframes gfTypingSkBandA { 0%, 12% { stroke-dashoffset: 120; } 28% { stroke-dashoffset: 0; } 62% { stroke-dashoffset: 0; } 78% { stroke-dashoffset: 120; } 100% { stroke-dashoffset: 120; } }

@keyframes gfTypingSkBandB { 0%, 14% { stroke-dashoffset: 120; } 30% { stroke-dashoffset: 0; } 60% { stroke-dashoffset: 0; } 76% { stroke-dashoffset: 120; } 100% { stroke-dashoffset: 120; } }

@keyframes gfTypingScatterBlue   { 0% { transform: scale(0); opacity: 0; } 5% { transform: scale(1); opacity: 1; } 85% { transform: scale(1); opacity: 1; } 90% { transform: scale(0); opacity: 0; } 100% { transform: scale(0); opacity: 0; } }

@keyframes gfTypingScatterOrange { 0%, 10% { transform: scale(0); opacity: 0; } 15% { transform: scale(1); opacity: 1; } 75% { transform: scale(1); opacity: 1; } 80% { transform: scale(0); opacity: 0; } 100% { transform: scale(0); opacity: 0; } }

@keyframes gfTypingScatterGreen  { 0%, 20% { transform: scale(0); opacity: 0; } 25% { transform: scale(1); opacity: 1; } 65% { transform: scale(1); opacity: 1; } 70% { transform: scale(0); opacity: 0; } 100% { transform: scale(0); opacity: 0; } }

@keyframes gfTypingScatterRed    { 0%, 30% { transform: scale(0); opacity: 0; } 35% { transform: scale(1); opacity: 1; } 55% { transform: scale(1); opacity: 1; } 60% { transform: scale(0); opacity: 0; } 100% { transform: scale(0); opacity: 0; } }

@keyframes gfBarGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@keyframes gfLineDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@keyframes gfDonutIn { from { transform: scale(.72); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@keyframes gfFadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes gfBarGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@keyframes iw-fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes iw-rise { from { transform: translateY(10px); opacity: .6; } to { transform: none; opacity: 1; } }

@keyframes iw-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

@scope (body) to (#authRoot) {

:scope { margin: 0; height: 100%; }

:scope {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.tab-logo { font-weight: 800; letter-spacing: -.02em; color: var(--tab-blue); }

.demo-bar {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  background: #0d1b2a;
  color: #dfe7ef;
  position: sticky;
  top: 0;
  z-index: 100;
}

:scope.demo-bar-hidden .demo-bar { display: none; }

.demo-bar-brand { display: flex; align-items: center; gap: 8px; }

.demo-bar-title { font-weight: 700; }

.demo-bar-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(5, 98, 138, 0.10);
  border: 1px solid rgba(5, 98, 138, 0.22);
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
}

.demo-seg { display: flex; background: #16293c; border-radius: 8px; padding: 3px; }

.demo-seg-btn {
  border: 0; background: transparent; color: #a9bcd0; font: inherit; font-size: 13px;
  padding: 6px 14px; border-radius: 6px; cursor: pointer;
}

.demo-seg-btn.active { background: #2b5f7f; color: #fff; }

.demo-audience { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.demo-field { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #a9bcd0; }

.demo-field select {
  font: inherit; font-size: 13px; background: #16293c; color: #eef4fa;
  border: 1px solid #34506b; border-radius: 6px; padding: 5px 8px;
}

.demo-surface { display: flex; background: #16293c; border-radius: 8px; padding: 3px; }

.demo-surface-btn {
  border: 0; background: transparent; color: #a9bcd0; font: inherit; font-size: 12px;
  padding: 5px 12px; border-radius: 6px; cursor: pointer;
}

.demo-surface-btn.active { background: #ffd166; color: #0d1b2a; font-weight: 600; }

.admin-view { height: calc(100% - 46px); display: flex; flex-direction: column; }

.admin-topbar {
  height: 52px; flex: 0 0 auto; display: flex; align-items: center; gap: 12px;
  padding: 0 18px; background: #fff; border-bottom: 1px solid var(--line);
}

.admin-spacer { flex: 1; }

.admin-search {
  display: flex; align-items: center; gap: 7px; width: 260px; max-width: 40vw;
  height: 32px; padding: 0 11px; border-radius: 8px;
  background: #f2f3f5; border: 1px solid transparent;
}

.admin-search:focus-within { background: #fff; border-color: var(--tab-blue); }

.admin-search-ico { color: var(--ink2); flex: 0 0 auto; }

.admin-search input {
  border: 0; background: none; outline: none; width: 100%;
  font-size: 13px; color: var(--ink);
}

.admin-search input::placeholder { color: var(--ink2); }

.admin-identity { display: flex; align-items: center; gap: 8px; }

.admin-avatar {
  width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}

.admin-layout { flex: 1; display: flex; min-height: 0; }

.admin-main { flex: 1; overflow: auto; padding: 26px 34px; }

.cloud-nav {
  width: 232px; flex: 0 0 auto; background: #fff; border-right: 1px solid #e2e5eb;
  padding: 6px 10px 14px; overflow: auto;
}

.cloud-nav-head {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 6px 12px; margin-bottom: 4px;
}

.cloud-nav-collapse {
  align-self: flex-end; border: 0; background: none; color: var(--ink2);
  font-size: 18px; line-height: 1; cursor: default; padding: 0 2px;
}

.cloud-nav-brand { display: block; margin: 2px 0 12px; }

.cloud-nav-brand .tab-flag { width: 34px; height: 34px; display: block; }

.cloud-nav-site {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 6px 10px; border: 0; background: none; border-radius: 6px;
  font-size: 15px; font-weight: 700; color: #1c3f5f; cursor: default;
}

.cloud-nav-site-name { flex: 1; text-align: left; }

.cloud-nav-site-caret {
  width: 0; height: 0; flex-shrink: 0;
  border-left: 4.5px solid transparent; border-right: 4.5px solid transparent;
  border-top: 5px solid #37414d;
}

.cloud-nav-group { display: flex; flex-direction: column; gap: 1px; }

.cloud-nav-div { height: 1px; background: #e8eaef; margin: 8px 6px; }

.cloud-nav-item {
  position: relative; display: flex; align-items: center; gap: 11px;
  padding: 8px 10px 8px 12px; border-radius: 8px; /* matches the Desktop rail chip */
  font-size: 14px; color: #37414d; cursor: pointer; text-decoration: none;
}

.cloud-nav-item .ci {
  width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center;
  color: #5a6470; flex-shrink: 0;
}

.cloud-nav-item .ci svg { width: 18px; height: 18px; display: block; stroke-width: 1.5; }

.cloud-nav-label { flex: 1; min-width: 0; }

.cloud-nav-item:hover { background: #f2f4f7; }

.cloud-nav-item:hover .ci svg { stroke-width: 1.7; }

.cloud-nav-item.active { background: #eef4f8; color: #0b5c7a; font-weight: 600; }

.cloud-nav-item.active .ci { color: #0b5c7a; }

.cloud-nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  border-radius: 3px; background: #0b5c7a;
}

.cloud-nav-badge {
  margin-left: auto; font-size: 10px; background: var(--accent); color: #fff;
  border-radius: 10px; padding: 1px 7px; font-weight: 700; flex-shrink: 0;
}

.admin-head h1 { margin: 0 0 4px; font-size: 24px; }

.admin-head p { margin: 0 0 20px; color: var(--ink2); font-size: 14px; max-width: 640px; }

.admin-base-card {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: #fafafb; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px; cursor: pointer;
  text-align: left; font: inherit; box-shadow: var(--shadow);
}

.admin-base-card:hover { border-color: var(--accent); background: #f1f2f4; box-shadow: var(--shadow); }

.admin-base-l { display: flex; align-items: center; gap: 14px; }

.admin-base-ic {
  width: 40px; height: 40px; border-radius: 9px; background: var(--tab-blue); color: #fff;
  display: grid; place-items: center; font-size: 18px;
}

.admin-base-l small { display: block; color: var(--ink2); font-size: 12.5px; }

.admin-base-r { font-size: 13px; color: var(--ink2); }

.admin-mx { display: grid; gap: 8px; grid-auto-rows: 1fr; }

.admin-mx-corner { position: relative; font-size: 12px; color: var(--ink2); }

.admin-mx-axis { position: absolute; font-weight: 600; }

.admin-mx-axis--role { top: 0; right: 4px; }

.admin-mx-axis--team { bottom: 8px; left: 2px; }

.admin-mx-col { font-weight: 700; font-size: 13px; padding: 6px 10px; }

.admin-mx-row-label { display: flex; align-items: center; padding: 6px 10px; }

.admin-mx-team { font-weight: 700; font-size: 14px; }

.admin-mx-col--btn,
.admin-mx-row-label--btn {
  font: inherit; text-align: left; background: #fafafb; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 8px 10px 8px 20px;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  transition: border-color .12s, background-color .12s, box-shadow .12s;
}

.admin-mx-col--btn,
.admin-mx-row-label--btn { align-items: flex-start; }

.admin-mx-col--btn:hover,
.admin-mx-row-label--btn:hover {
  border-color: var(--accent); background: #f1f2f4; box-shadow: var(--shadow);
}

.admin-mx-colname { font-weight: 700; font-size: 13px; }

.admin-mx-hd-sub { font-size: 11px; font-weight: 500; color: var(--ink2); opacity: .75; transition: opacity .12s, color .12s; }

.admin-mx-col--btn:hover .admin-mx-hd-sub,
.admin-mx-row-label--btn:hover .admin-mx-hd-sub { opacity: 1; color: var(--accent); }

.admin-cell {
  text-align: left; font: inherit; background: #f3f4f6; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 14px 14px 20px; cursor: pointer; display: flex;
  flex-direction: column; gap: 8px; min-height: 74px; transition: border-color .12s, box-shadow .12s;
}

.admin-cell:hover { border-color: var(--accent); background: #eaebee; box-shadow: var(--shadow); }

.admin-cell-label { font-size: 13px; font-weight: 700; color: var(--ink); }

.admin-cell-people { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink2); }

.admin-cell-mix { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12px; color: var(--ink2); }

.admin-cell-stat b { color: var(--ink); font-weight: 700; }

.admin-cell-stat--spec b { color: var(--accent); }

.admin-cell-stat-unit { color: var(--ink2); }

.admin-builder-head {
  display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-back { border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; padding: 0; }

.admin-builder-title { font-size: 14px; font-weight: 600; display: flex; align-items: baseline; gap: 4px; margin-left: auto; }

.admin-title-picker { position: relative; }

.admin-title-btn {
  display: inline-flex; align-items: baseline; gap: 6px;
  border: 0; background: transparent; color: var(--ink2);
  font: inherit; font-size: 14px; font-weight: 400;
  cursor: pointer; padding: 2px 6px; border-radius: 7px;
}

.admin-title-btn:hover { background-color: #eef1f5; }

.admin-title-picker.is-open .admin-title-btn { background-color: #eef1f5; }

.admin-title-label { line-height: 1.15; }

.admin-title-caret {
  width: 6px; height: 6px; align-self: center; margin-top: -2px;
  border-right: 1.4px solid var(--ink2); border-bottom: 1.4px solid var(--ink2);
  transform: rotate(45deg); transition: transform .12s ease;
}

.admin-title-picker.is-open .admin-title-caret { transform: rotate(-135deg); margin-top: 2px; }

.admin-title-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  min-width: 170px; padding: 5px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(20,30,45,.16);
}

.admin-title-opt {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer; padding: 7px 9px; border-radius: 7px;
}

.admin-title-opt:hover { background-color: #eef4f8; }

.admin-title-opt.is-sel { background-color: #eaf2f8; }

.admin-title-check {
  flex: 0 0 auto; width: 14px; height: 14px; display: inline-grid; place-items: center; color: var(--accent);
}

.admin-title-check svg { width: 13px; height: 13px; }

.admin-title-opt-label { flex: 1; }

.admin-title-sep { color: var(--ink2); font-weight: 400; font-size: 14px; }

.admin-surface-seg,
.admin-surface-btn { }

.admin-surface-seg { display: flex; background: #eef1f5; border-radius: 8px; padding: 3px; }

.admin-surface-btn {
  border: 0; background: transparent; color: var(--ink2); font: inherit; font-size: 12.5px;
  padding: 5px 14px; border-radius: 6px; cursor: pointer;
}

.admin-surface-btn.active { background: #fff; color: var(--accent); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.admin-builder-body { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }

.admin-rail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }

.admin-rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.admin-rail-head span { font-weight: 700; font-size: 14px; }

.admin-addblock {
  border: 1px dashed var(--accent); background: #f2f8fb; color: var(--accent); font: inherit;
  font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 7px; cursor: pointer;
}

.admin-allow {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink2);
  background: #f7f9fb; border-radius: 8px; padding: 9px 9px; margin-bottom: 12px;
}

.admin-allow > span { flex: 1; }

.admin-blocklist { display: flex; flex-direction: column; gap: 7px; }

.admin-block {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: 9px; padding: 8px 9px;
}

.admin-block.dragging { opacity: .5; }

.admin-block.is-off { opacity: .55; }

.admin-block.is-inherited { background: #f7f9fb; border-style: dashed; }

.admin-block.is-inherited.is-off { opacity: .5; }

.admin-inherit-chip {
  display: inline-block; margin-left: 7px; font-size: 10px; font-weight: 600;
  color: var(--ink2); background: #e9edf2; border-radius: 10px; padding: 1px 7px;
  vertical-align: middle;
}

.admin-surface-chip[disabled] { cursor: default; }

.admin-block:hover .admin-surface-chip[disabled],
.admin-block:focus-within .admin-surface-chip[disabled] {
  opacity: .6; pointer-events: none;
}

.admin-surface-chip,
.admin-block-toggle,
.admin-block-edit,
.admin-block-remove {
  opacity: 0; pointer-events: none; transition: opacity .12s ease;
}

.admin-block:hover .admin-surface-chip,
.admin-block:focus-within .admin-surface-chip,
.admin-block:hover .admin-block-toggle,
.admin-block:focus-within .admin-block-toggle,
.admin-block:hover .admin-block-edit,
.admin-block:focus-within .admin-block-edit,
.admin-block:hover .admin-block-remove,
.admin-block:focus-within .admin-block-remove {
  opacity: 1; pointer-events: auto;
}

.admin-allow .admin-block-toggle { opacity: 1; pointer-events: auto; }

.admin-block-grip { cursor: grab; color: #c2c9d2; font-size: 13px; }

.admin-block-ic {
  width: 26px; height: 26px; border-radius: 7px; background: #eef2f6; color: var(--accent);
  display: grid; place-items: center; font-size: 13px; flex: 0 0 auto;
}

.admin-block-body { flex: 1; min-width: 0; }

.admin-block-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-block-origin {
  font-size: 11px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.admin-block-origin--inherited { color: #97a0ad; }

.admin-block-origin--own { color: var(--accent); }

.admin-origin-link {
  border: 0; background: none; padding: 0; font: inherit; cursor: pointer;
  color: var(--accent); text-decoration: underline; text-underline-offset: 2px;
}

.admin-origin-link:hover { color: #023248; }

.admin-surface-chip {
  border: 1px solid var(--line); background: #fff; font: inherit; font-size: 10.5px; font-weight: 600;
  padding: 3px 7px; border-radius: 20px; cursor: pointer; white-space: nowrap;
}

.admin-surface-chip--both { color: #4a6; border-color: #cbe6d5; background: #f2faf5; }

.admin-surface-chip--desktop { color: #2b5f7f; border-color: #cfe0ec; background: #f0f6fb; }

.admin-surface-chip--cloud { color: #8a5a00; border-color: #ecdcb8; background: #fdf6e6; }

.admin-block-toggle {
  width: 30px; height: 18px; border-radius: 20px; border: 0; background: #cfd6de; position: relative;
  cursor: pointer; flex: 0 0 auto;
}

.admin-block-toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: left .14s;
}

.admin-block-toggle[aria-checked="true"] { background: #2e9e5b; }

.admin-block-toggle[aria-checked="true"]::after { left: 14px; }

.admin-block-edit,
.admin-block-remove {
  border: 0; background: none; color: var(--ink2); cursor: pointer; font-size: 13px; padding: 2px 4px;
}

.admin-block-remove:hover { color: #d64545; }

.fb-badge {
  display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; font-size: 10.5px; font-weight: 800; line-height: 1;
  color: #fff; font-variant-numeric: tabular-nums;
}

.fb-badge--issue { background: #d64545; }

.fb-badge--note { background: #d98a0b; }

.admin-cell,
.admin-mx-col--btn,
.admin-mx-row-label--btn { position: relative; }

.fb-badge--corner {
  position: absolute; top: 8px; right: 8px;
  box-shadow: 0 0 0 2px #fff; /* lift off the cell fill */
}

.fb-badge--inline { vertical-align: middle; margin-left: 6px; }

.fb-badge--rail { vertical-align: middle; margin-left: 6px; cursor: pointer; }

.admin-feedback { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }

.admin-fb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

.admin-fb-title { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; }

.admin-fb-count {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #eef2f6; color: var(--ink2); font-size: 11px; font-weight: 700;
}

.admin-fb-empty { font-size: 12px; color: var(--ink2); line-height: 1.5; margin: 0; }

.admin-fb-chiptoggle {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: none;
  font: inherit; font-size: 11.5px; color: var(--ink2); cursor: pointer; padding: 2px 2px;
}

.admin-fb-chiptoggle-sw {
  width: 28px; height: 16px; border-radius: 20px; background: #cfd6de; position: relative; transition: background .14s;
}

.admin-fb-chiptoggle-sw::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; transition: left .14s;
}

.admin-fb-chiptoggle.is-on .admin-fb-chiptoggle-sw { background: var(--accent); }

.admin-fb-chiptoggle.is-on .admin-fb-chiptoggle-sw::after { left: 14px; }

.admin-fb-chiptoggle.is-on { color: var(--accent); }

.admin-fb-group { margin-bottom: 12px; }

.admin-fb-grouphead {
  display: flex; align-items: center; gap: 7px; width: 100%; text-align: left;
  border: 0; background: none; font: inherit; cursor: pointer; padding: 2px 0 6px;
}

.admin-fb-grouphead:disabled { cursor: default; }

.admin-fb-grouptitle { font-size: 11.5px; font-weight: 700; color: var(--ink2); text-transform: uppercase; letter-spacing: .03em; }

.admin-fb-grouphead:not(:disabled):hover .admin-fb-grouptitle { color: var(--accent); }

.admin-fb-inh {
  font-size: 9.5px; font-weight: 700; color: #97a0ad; background: #eef2f6;
  border-radius: 8px; padding: 1px 6px; text-transform: uppercase; letter-spacing: .03em;
}

.fb-item {
  background: #fff; border: 1px solid var(--line); border-left-width: 3px; border-radius: 9px;
  padding: 9px 10px; margin-bottom: 7px; cursor: pointer; transition: box-shadow .12s, border-color .12s;
}

.fb-item:hover { box-shadow: var(--shadow); }

.fb-item--issue { border-left-color: #d64545; }

.fb-item--note { border-left-color: #d98a0b; }

.fb-item.is-flash { box-shadow: 0 0 0 2px var(--accent); border-color: var(--accent); }

.fb-item-top { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }

.fb-src {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700;
  border-radius: 20px; padding: 2px 8px;
}

.fb-src--agent { color: #5b3fa0; background: #f1ecfb; }

.fb-src--user { color: #2b5f7f; background: #eef5fa; }

.fb-kind { font-size: 10px; font-weight: 700; border-radius: 20px; padding: 2px 8px; text-transform: uppercase; letter-spacing: .03em; }

.fb-kind--issue { color: #b23333; background: #fbecec; }

.fb-kind--note { color: #8a5a00; background: #fdf3e2; }

.fb-msg { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink); }

.fb-signal {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 6px; padding: 6px 8px;
  background: #f7f9fb; border-radius: 7px; font-size: 11px; color: var(--ink2); line-height: 1.4;
}

.fb-signal-ic { flex: 0 0 auto; }

.fb-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }

.fb-actions--split { justify-content: space-between; }

.fb-act {
  border: 1px solid var(--line); background: #fff; color: var(--ink2); font: inherit;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 7px; cursor: pointer;
}

.fb-act:hover { border-color: var(--ink2); color: var(--ink); }

.fb-act--ghost { border-color: transparent; }

.fb-act--ghost:hover { border-color: var(--line); }

.fb-act--fix {
  display: inline-flex; align-items: center; gap: 5px;
  border-color: #c9b8ee; background: #f4efff; color: #5b3fa0;
}

.fb-act--fix:hover { background: #5b3fa0; color: #fff; border-color: #5b3fa0; }

.fb-fix-ic { font-size: 11px; line-height: 1; }

.fb-fixline {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 6px;
  font-size: 11px; line-height: 1.4; color: #5b3fa0;
}

.fb-fixline-ic { flex: 0 0 auto; }

.fb-item.is-fixing { box-shadow: 0 0 0 2px #c9b8ee; border-color: #c9b8ee; }

.fb-fixing {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: #5b3fa0;
}

.fb-fixing-sp { display: inline-block; animation: fb-spin 1s linear infinite; }

@media (prefers-reduced-motion: reduce) { .fb-fixing-sp { animation: none; } }

.admin-modal.fbm { width: 460px; }

.fbm-top { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }

.fbm-head { margin-bottom: 6px; }

.fbm-about { font-size: 12px; color: var(--ink2); margin-bottom: 12px; }

.fbm-about b { color: var(--ink); font-weight: 600; }

.fbm-msg { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: var(--ink); }

.fbm-signal {
  display: flex; align-items: flex-start; gap: 7px; margin-bottom: 12px; padding: 8px 10px;
  background: #f7f9fb; border-radius: 8px; font-size: 12px; color: var(--ink2); line-height: 1.45;
}

.fbm-fix {
  border: 1px solid #d9cdf3; background: #f7f3ff; border-radius: 10px;
  padding: 11px 13px; margin-bottom: 4px;
}

.fbm-fix--manual { border-color: var(--line); background: #f8fafc; }

.fbm-fix-head {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: #5b3fa0; margin-bottom: 6px;
}

.fbm-fix--manual .fbm-fix-head { color: var(--ink2); }

.fbm-fix-label { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }

.fbm-fix-detail { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink2); }

.fbm-actions { align-items: center; margin-top: 18px; }

.fbm-spacer { flex: 1 1 auto; }

.fbm-locate { margin-right: auto; }

.admin-btn.fbm-fix-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #5b3fa0;
}

.admin-btn.fbm-fix-btn:hover { background: #4a3286; }

.pv-page .ns-sec { position: relative; }

.fb-pv-chip {
  position: absolute; top: 2px; right: 2px; z-index: 5;
  display: inline-flex; align-items: center; gap: 5px; border: 0; cursor: pointer;
  font: inherit; font-size: 10.5px; font-weight: 700; color: #fff;
  padding: 3px 9px; border-radius: 20px; box-shadow: 0 2px 6px rgba(20,25,35,.2);
}

.fb-pv-chip--issue { background: #d64545; }

.fb-pv-chip--note { background: #d98a0b; }

.fb-pv-chip-ic { font-size: 10px; }

.pv-flash { outline: 2px solid #cdd4dd; outline-offset: 3px; border-radius: 8px; }

.ns-filter-pill {
  display: inline-flex; align-items: center; gap: 5px; margin: 2px 0 12px;
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: #eef5fa; border: 1px solid #d6e6f0; border-radius: 20px; padding: 3px 11px;
}

.ns-filter-ic { font-size: 9px; }

.admin-preview-wrap { position: sticky; top: 12px; }

.admin-preview-chrome {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; min-height: 560px;
  box-shadow: var(--shadow);
}

.admin-preview-chrome.pv-desktop { background: #fff; }

.admin-preview-chrome.pv-cloud { background: #fff; }

.pv-page { flex: 1; padding: 22px 24px; overflow: auto; }

.pv-page .ns-sec { margin-bottom: 35px; }

.user-view { height: calc(100% - 46px); display: flex; flex-direction: column; }

:scope.demo-bar-hidden .user-view { height: 100%; }

.user-shell { display: flex; flex: 1; min-height: 0; }

.ns-auth-frame { flex: 1; min-height: 0; width: 100%; border: none; display: block; background: var(--bg); }

.user-view.authoring-open { display: none; }

.user-view.authoring-entering { position: relative; }

.ns-auth-veil {
  position: absolute; inset: 0; z-index: 60;
  display: none; align-items: center; justify-content: center;
  background: #f0f0f0;              /* matches the authoring canvas — no white flash */
  opacity: 0; transition: opacity .28s ease;
  pointer-events: none;
}

.ns-auth-veil.is-on { opacity: 1; }

.ns-auth-veil-mark { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.ns-auth-veil-mark .tab-flag { width: 40px; height: 40px; animation: gfAuthVeilPulse 1.4s ease-in-out infinite; }

.ns-auth-veil-txt { font: 500 13px/1 var(--font); color: #5f6470; letter-spacing: .01em; }

@media (prefers-reduced-motion: reduce) {
  .ns-auth-veil { transition: none; }
  .ns-auth-veil-mark .tab-flag { animation: none; opacity: 1; }
}

.user-view.surface-cloud .mac-chrome { display: none; }

.mac-menu-bar {
  height: 24px; display: flex; align-items: center; padding: 0 8px; gap: 2px; flex-shrink: 0;
  background: rgba(246,246,246,.9);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.1); position: relative; z-index: 60;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.mac-menu-bar .menu-item,
.mac-menu-bar .menu-bar-right { font-family: inherit; }

.menu-item { font-size: 13px; color: #1d1d1f; padding: 2px 9px; border-radius: 4px; cursor: default; }

.menu-item:hover { background: rgba(0,0,0,.08); }

.menu-dropdown-trigger:has(.mac-dropdown.open) { background: #0a6cff; color: #fff; }

.menu-item.bold { font-weight: 600; }

.menu-item.apple-menu { font-size: 15px; }

.menu-bar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; padding-right: 4px; color: #1d1d1f; }

.menu-status-icon { display: inline-flex; align-items: center; cursor: default; }

.menu-clock { font-size: 13px; color: #1d1d1f; font-variant-numeric: tabular-nums; white-space: nowrap; }

.wifi-slash { display: none; }

.menu-dropdown-trigger { position: relative; }

.mac-dropdown {
  display: none; position: absolute; top: 100%; left: 0; min-width: 210px; padding: 5px 6px; z-index: 1000;
  background: rgba(250,250,250,.95);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border: .5px solid rgba(0,0,0,.1); border-radius: 8px;
  box-shadow: 0 10px 32px rgba(0,0,0,.18), 0 1px 4px rgba(0,0,0,.1), inset 0 0 0 .5px rgba(255,255,255,.5);
}

.mac-dropdown.open { display: block; }

.mac-dd-item { padding: 4px 10px; border-radius: 5px; font-size: 13px; color: #1d1d1f; cursor: default; display: flex; align-items: center; gap: 8px; white-space: nowrap; }

.mac-dd-item:hover { background: #0a6cff; color: #fff; }

.mac-dd-item:hover .mac-dd-check { color: #fff; }

.mac-dd-sep { height: 1px; background: rgba(0,0,0,.12); margin: 5px 8px; }

.mac-dd-header { padding: 6px 10px 3px; font-size: 11px; color: rgba(0,0,0,.5); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }

.mac-dd-check { margin-left: auto; color: #0a6cff; font-size: 12px; }

.mac-dd-ico { display: inline-flex; width: 15px; justify-content: center; font-size: 12px; opacity: .75; flex-shrink: 0; }

.mac-dd-item:hover .mac-dd-ico { opacity: 1; }

.mac-dd-item.has-flyout { position: relative; }

.mac-flyout-arrow { margin-left: auto; font-size: 10px; opacity: .6; }

.mac-flyout {
  display: none; position: absolute; left: 100%; top: -5px; min-width: 180px; padding: 5px 6px; z-index: 1001;
  background: rgba(250,250,250,.95);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border: .5px solid rgba(0,0,0,.1); border-radius: 8px;
  box-shadow: 0 10px 32px rgba(0,0,0,.18), 0 1px 4px rgba(0,0,0,.1), inset 0 0 0 .5px rgba(255,255,255,.5);
}

.menu-flyout-left .mac-flyout { left: auto; right: 100%; }

.has-flyout:hover .mac-flyout { display: block; }

.mac-flyout .mac-dd-item:hover { background: #0a6cff; color: #fff; }

.title-bar { height: 28px; background: #efefef; display: flex; align-items: center; padding: 0 12px; flex-shrink: 0; border-bottom: 1px solid #d0d0d0; }

.traffic-lights { display: flex; gap: 6px; }

.light { width: 12px; height: 12px; border-radius: 50%; }

.light.red { background: #ff5f57; }

.light.yellow { background: #ffbd2e; }

.light.green { background: #28c940; }

.title-bar-center { flex: 1; }

.tab-appbar {
  height: 48px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 16px; background: linear-gradient(135deg,var(--chrome) 0%,var(--chrome2) 100%); color: #fff;
}

.user-view.surface-cloud .tab-appbar { display: none; }

.tab-appbar-left { display: flex; align-items: center; gap: 12px; }

.tab-appbar-spark {
  display: grid; place-items: center; width: 26px; height: 26px;
  background: transparent;
}

.tab-appbar-spark .tab-flag { width: 19px; height: 19px; display: block; }

.tab-server { position: relative; }

.tab-server-btn {
  display: flex; align-items: center; gap: 6px; background: transparent; border: 0;
  color: #fff; font: inherit; font-size: 13px; opacity: .92; padding: 5px 8px;
  border-radius: 5px; cursor: pointer; transition: background .15s, opacity .15s;
}

.tab-server-btn:hover { background: rgba(255,255,255,.12); opacity: 1; }

.tab-server-btn b { font-weight: 600; }

.tab-server-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; min-width: 210px;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 12px 34px rgba(20,40,70,.22); padding: 6px;
}

.tab-server-menu-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink2); padding: 6px 10px 4px;
}

.tab-server-opt {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left;
  background: transparent; border: 0; font: inherit; font-size: 13px; color: var(--ink);
  padding: 8px 10px; border-radius: 7px; cursor: pointer;
}

.tab-server-opt:hover { background: #eef4f8; }

.tab-server-opt.is-current { font-weight: 600; }

.tab-server-check { width: 14px; color: #023248; font-size: 12px; }

.tab-server-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.tab-server-signout { color: #b4232a; }

.tab-server-signout:hover { background: #fbecec; }

.tab-signin-pop {
  position: absolute; top: calc(100% + 14px); left: 0; z-index: 400;
  display: flex; align-items: flex-start; gap: 9px; width: 268px; padding: 13px 15px;
  background: #1f4979; color: #eaf2fb; border-radius: 12px;
  box-shadow: 0 8px 22px rgba(16,42,74,.17); font-size: 12.5px; line-height: 1.45;
  text-align: left; animation: tabPopIn .32s cubic-bezier(.2,.9,.3,1.2) both;
}

.tab-signin-pop::before {
  content: ""; position: absolute; top: -6px; left: 30px; width: 12px; height: 12px;
  background: #1f4979; transform: rotate(45deg); border-radius: 2px;
}

.tab-signin-pop-spark {
  flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px;
}

.tab-signin-pop-spark .tab-flag { width: 18px; height: 18px; }

.tab-signin-pop-text { flex: 1 1 auto; }

.tab-signin-pop-x {
  flex: 0 0 auto; background: none; border: none; cursor: pointer; color: #9fbdde;
  font-size: 17px; line-height: 1; padding: 0 0 0 2px; margin-top: -1px;
}

.tab-signin-pop-x:hover { color: #fff; }

.tab-appbar-right { display: flex; align-items: center; gap: 8px; }

.tab-appbar-btn {
  display: flex; align-items: center; gap: 6px; background: transparent; border: 1.5px solid #fff;
  color: #fff; font: inherit; font-size: 13px; padding: 6px 14px; border-radius: 4px; cursor: pointer;
  transition: background .18s;
}

.tab-appbar-btn:hover { background: rgba(255,255,255,.12); }

.tab-caret { opacity: .8; }

.user-main { flex: 1; overflow: auto; }

.user-main.is-desktop { background: var(--bg); }

.user-main.is-cloud { background: var(--bg); }

.admin-main:has(#adminUserView:not([hidden])) { padding: 0; }

.admin-user-main { min-height: 100%; }

.user-rail--desktop {
  width: 220px; flex: 0 0 auto; background: linear-gradient(160deg,var(--chrome),var(--chrome2));
  color: #d8e0ea; padding: 14px 10px; overflow: auto;
}

.drive-nav-head { display: flex; align-items: center; gap: 9px; padding: 6px 10px 16px; color: #fff; }

.drive-nav-mark { font-size: 16px; }

.drive-nav-site { font-weight: 700; font-size: 14px; }

.drive-nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px;
  font-size: 13.5px; color: #d8e0ea; cursor: pointer; text-decoration: none;
}

.drive-nav-item .ci { width: 18px; display: grid; place-items: center; }

.drive-nav-item .ci svg { width: 18px; height: 18px; display: block; stroke-width: 1.7; }

.drive-nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }

.drive-nav-item:hover .ci svg { stroke-width: 1.9; }

.drive-nav-item.active { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }

.drive-nav-item.active::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  border-radius: 3px; background: var(--nav-accent);
}

.drive-nav-item.active .ci { color: var(--nav-accent); }

.drive-nav-div { height: 1px; background: rgba(255,255,255,.16); margin: 8px 12px; }

.user-rail--cloud { width: 220px; flex: 0 0 auto; background: #fff; border-right: 1px solid var(--line); padding: 14px 12px; overflow: auto; }

.user-main,
.pv-page { font-weight: 300; }

.user-main .ns-greet,
.pv-page .ns-greet { font-weight: 300; letter-spacing: -.015em; }

.user-main .ns-sec-title,
.pv-page .ns-sec-title { font-weight: 500; }

.user-main .ns-sec-sub,
.pv-page .ns-sec-sub { font-weight: 300; }

.user-main .ns-card-name,
.pv-page .ns-card-name { font-weight: 500; }

.user-main .ns-card-meta,
.pv-page .ns-card-meta { font-weight: 300; }

.user-main .ns-metric-tag,
.pv-page .ns-metric-tag { font-weight: 400; }

.user-main .ns-metric-val,
.pv-page .ns-metric-val { font-weight: 500; }

.user-main .ns-metric-delta,
.pv-page .ns-metric-delta { font-weight: 500; }

.user-main .ns-note-title,
.pv-page .ns-note-title { font-weight: 500; }

.user-main .ns-note-body,
.pv-page .ns-note-body { font-weight: 300; }

.user-main .ns-agent-input,
.pv-page .ns-agent-input { font-weight: 300; }

.user-main .ns-learn-body b,
.pv-page .ns-learn-body b { font-weight: 500; }

.user-main .ns-cert,
.pv-page .ns-cert { font-weight: 600; }

.user-main .ns-convo-title,
.pv-page .ns-convo-title { font-weight: 500; }

.user-main .ns-insight-val,
.pv-page .ns-insight-val { font-weight: 500; }

.user-main .ns-insight-headline,
.pv-page .ns-insight-headline { font-weight: 500; }

.ns-masthead { padding: 40px 48px 18px; max-width: 1140px; }

.ns-masthead--pv { padding: 8px 4px 4px; }

.ns-greet { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; }

.ns-body { padding: 12px 48px 60px; max-width: 1140px; }

.user-view.is-focus-light {
  --f-bg: #fbfbfa; --f-text: #1f2125; --f-muted: #5f6470; --f-faint: #8a909b;
  --f-rail-bg: #f2f2ef; --f-rail-hover: rgba(0,0,0,.05);
  --f-rail-active: rgba(5,98,138,.12); --f-rail-active-text: var(--accent);
  --f-line: rgba(0,0,0,.08);
  --f-field-bg: #fff; --f-field-border: rgba(0,0,0,.12);
  --f-glow: radial-gradient(60% 55% at 50% 46%, rgba(90,150,220,.16) 0%, rgba(120,160,210,.07) 44%, rgba(251,251,250,0) 72%);
}

.user-view.is-focus .tab-appbar { display: none; }

.user-view.is-focus { background: var(--f-bg); }

.user-view.is-focus .user-main { background: transparent; color: var(--f-text); }

.user-rail--focus {
  width: 256px; background: transparent; color: var(--f-text);
  /* The whole rail is a collapse/expand toggle (JS handles empty-space clicks),
     so the pointer cursor signals it is clickable without any extra chrome. */
  cursor: pointer;
  display: flex; flex-direction: column; padding: 10px 10px 8px;
  /* Scroll as a whole only when the window is too short to fit the nav + a
     usable conversations list; on normal heights nothing overflows. overflow-x
     is pinned hidden: a lone `overflow-y: auto` makes the x-axis compute to
     `auto` too, so a stray-wide child would flash a horizontal scrollbar. */
  overflow-y: auto; overflow-x: hidden;
  transition: width .16s ease;
  /* Explicit so the rail rides the same Google Sans as the greeting, and a calm
     medium weight throughout so the brand + nav read as one modern voice (no
     heavy 700 wordmark shouting over the airy hero). */
  font-family: var(--font); font-weight: 500;
}

.user-view.is-focus-railclosed .user-rail--focus { width: 60px; }

.focus-rail-head {
  display: flex; flex-direction: column; gap: 10px;
  padding: 10px 12px 8px; margin-bottom: 2px;
}

.focus-rail-brandrow {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}

.focus-rail-brand {
  display: inline-flex; align-items: center; gap: 9px;
  border: 0; background: transparent; cursor: pointer; padding: 2px;
  font: inherit; color: var(--f-text);
}

.focus-rail-logo { display: inline-flex; flex: none; }

.focus-rail-logo svg { width: 28px; height: 28px; display: block; }

.focus-rail-openico { display: none; flex: none; color: var(--f-muted); }

.focus-rail-openico svg { width: 20px; height: 20px; display: block; }

.focus-rail-word { font-size: 18px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }

.focus-rail-collapse {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--f-muted); flex: none;
}

.focus-rail-collapse svg { width: 20px; height: 20px; display: block; }

.focus-rail-collapse:hover { background: var(--f-rail-hover); color: var(--f-text); }

.focus-rail-site {
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; background: transparent; cursor: pointer; padding: 2px 4px;
  font: inherit; color: var(--f-muted);
}

.focus-rail-site-name { font-size: 13px; font-weight: 500; letter-spacing: 0; white-space: nowrap; }

.focus-rail-site-caret {
  display: inline-block; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--f-muted);
}

.user-view.is-focus-railclosed .focus-rail-head { padding: 10px 0 12px; align-items: center; }

.user-view.is-focus-railclosed .focus-rail-brandrow { justify-content: center; }

.user-view.is-focus-railclosed .focus-rail-word,
.user-view.is-focus-railclosed .focus-rail-collapse,
.user-view.is-focus-railclosed .focus-rail-site { display: none; }

.user-view.is-focus-railclosed .focus-rail-brand {
  width: 40px; height: 40px; padding: 0; border-radius: 9px;
  align-items: center; justify-content: center;
}

.user-view.is-focus-railclosed .focus-rail-brand:hover { background: var(--f-rail-hover); }

.user-view.is-focus-railclosed .focus-rail-brand:hover .focus-rail-logo { display: none; }

.user-view.is-focus-railclosed .focus-rail-brand:hover .focus-rail-openico { display: inline-flex; }

.focus-rail-group { display: flex; flex-direction: column; gap: 2px; padding: 3px 0; }

.focus-rail-group + .focus-rail-group { margin-top: 6px; padding-top: 6px; }

.focus-rail-item {
  display: flex; align-items: center; gap: 12px; padding: 7px 10px;
  border-radius: 10px; color: var(--f-text); font-size: 14px; text-decoration: none;
  white-space: nowrap; overflow: hidden;
}

.focus-rail-item .ci { display: inline-flex; flex: none; width: 22px; justify-content: center; color: var(--f-muted); }

.focus-rail-item .ci svg { width: 20px; height: 20px; }

.focus-rail-item:hover { background: var(--f-rail-hover); }

.focus-rail-item:hover .ci { color: var(--f-text); }

.focus-rail-item.active { background: var(--f-rail-active); color: var(--f-rail-active-text); }

.focus-rail-item.active .ci { color: var(--f-rail-active-text); }

.focus-rail-new { font-weight: 600; }

.focus-rail-div { display: none; }

.user-view.is-focus-railclosed .focus-rail-label { display: none; }

.user-view.is-focus-railclosed .focus-rail-item { justify-content: center; gap: 0; padding: 7px 0; }

.focus-rail-create-wrap { position: relative; padding: 2px 0 10px; }

.focus-rail-create {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px 10px 11px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
  transition: transform .14s ease, background .14s ease;
}

.focus-rail-create:hover { background: #04567a; transform: translateY(-1px); }

.focus-rail-create:active { transform: translateY(0); }

.focus-rail-create-plus { display: inline-flex; flex: none; }

.focus-rail-create-plus svg { width: 20px; height: 20px; display: block; }

.focus-rail-create-word { flex: 1 1 auto; text-align: left; }

.focus-rail-create-chev { display: inline-flex; flex: none; opacity: .9; transition: transform .2s ease; }

.focus-rail-create-wrap.is-open .focus-rail-create-chev { transform: rotate(180deg); }

.user-view.is-focus-railclosed .focus-rail-create-wrap { padding: 2px 0 10px; display: flex; justify-content: center; }

.user-view.is-focus-railclosed .focus-rail-create { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 11px; }

.user-view.is-focus-railclosed .focus-rail-create-word,
.user-view.is-focus-railclosed .focus-rail-create-chev { display: none; }

.focus-rail-create-menu {
  position: fixed; width: 300px; z-index: 200;
  background: var(--f-field-bg); border: 1px solid var(--f-line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(16,24,40,.18); padding: 6px;
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center;
  pointer-events: none; visibility: hidden;
  transition: opacity .16s ease, transform .18s cubic-bezier(.2,.7,.3,1), visibility 0s linear .18s;
}

.focus-rail-create-wrap.is-open .focus-rail-create-menu {
  opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; visibility: visible;
  transition: opacity .16s ease, transform .2s cubic-bezier(.2,.7,.3,1);
}

.user-view.is-focus-railclosed .focus-rail-create-menu {
  width: 296px; transform-origin: top left; transform: translateX(-6px) scale(.98);
}

.user-view.is-focus-railclosed .focus-rail-create-wrap.is-open .focus-rail-create-menu { transform: translateX(0) scale(1); }

.focus-rail-create-head {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--f-faint); padding: 8px 10px 6px;
}

.focus-rail-create-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 9px 10px; border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; font: inherit; text-align: left; color: var(--f-text);
  transition: background .12s ease;
  opacity: 0; transform: translateY(5px);
}

.focus-rail-create-wrap.is-open .focus-rail-create-item {
  animation: gfCreateItemIn .28s ease forwards; animation-delay: calc(var(--ci-i) * 34ms + 40ms);
}

.focus-rail-create-item:hover { background: var(--f-rail-hover); }

.focus-rail-create-tile {
  flex: none; width: 34px; height: 34px; border-radius: 9px; color: #fff;
  display: inline-grid; place-items: center;
}

.focus-rail-create-tile svg { width: 18px; height: 18px; display: block; }

.focus-rail-create-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }

.focus-rail-create-title { font-size: 13.5px; font-weight: 600; color: var(--f-text); }

.focus-rail-create-desc { font-size: 11.5px; color: var(--f-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.focus-rail-create-kbd {
  flex: none; font-size: 11px; color: var(--f-faint); font-weight: 500;
  border: 1px solid var(--f-line); border-radius: 6px; padding: 2px 6px;
}

.focus-rail-create-div { height: 1px; background: var(--f-line); margin: 6px 8px; }

@media (prefers-reduced-motion: reduce) {
  .focus-rail-create,
  .focus-rail-create-chev,
  .focus-rail-create-menu { transition: opacity .12s ease; }
  .focus-rail-create:hover { transform: none; }
  .focus-rail-create-wrap.is-open .focus-rail-create-item { animation: none; opacity: 1; transform: none; }
}

.focus-rail-recents { padding: 12px 0 4px; overflow: hidden; min-height: 0; }

.focus-rail-recents-label {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--f-faint); padding: 0 10px 6px;
}

.focus-rail-recent {
  display: block; padding: 7px 10px; border-radius: 8px; color: var(--f-muted);
  font-size: 13px; text-decoration: none; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.focus-rail-recent:hover { background: var(--f-rail-hover); color: var(--f-text); }

.user-view.is-focus-railclosed .focus-rail-recents { display: none; }

.focus-rail-convos { padding: 12px 0 4px; flex: 1 1 auto; min-height: 132px; display: flex; flex-direction: column; }

.focus-rail-convos-label {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: transparent;
  font-family: inherit; cursor: pointer;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--f-faint); padding: 6px 10px; margin-bottom: 2px; border-radius: 8px;
}

.focus-rail-convos-word { flex: 1 1 auto; }

.focus-rail-convos-label:hover { color: var(--f-text); background: var(--f-rail-hover); }

.focus-rail-convos-label.active { color: var(--f-rail-active-text); background: var(--f-rail-active); }

.focus-rail-convos-add {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin: -3px -2px -3px 0; border-radius: 5px;
  color: var(--f-faint); transition: background .1s, color .1s;
}

.focus-rail-convos-add svg { width: 15px; height: 15px; }

.focus-rail-convos-label:hover .focus-rail-convos-add { color: var(--f-text); }

.focus-rail-convos-add:hover { background: var(--f-rail-active, rgba(0,0,0,.08)); color: var(--f-text); }

.focus-rail-convos-add:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.focus-rail-convos-list { overflow-y: auto; overflow-x: hidden; min-height: 0; flex: 1 1 auto; scrollbar-width: none; -ms-overflow-style: none; }

.focus-rail-convos-list::-webkit-scrollbar { width: 0; height: 0; display: none; }

.focus-rail-convo {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px; color: var(--f-muted);
  font-size: 13px; text-decoration: none; cursor: pointer; border: 0;
  background: transparent; width: 100%; text-align: left;
}

.focus-rail-convo svg { flex: none; width: 15px; height: 15px; opacity: .8; }

.focus-rail-convo-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.focus-rail-convo:hover { background: var(--f-rail-hover); color: var(--f-text); }

.focus-rail-convo.is-active { background: var(--f-rail-hover); color: var(--f-text); font-weight: 600; }

.user-view.is-focus-railclosed .focus-rail-convos { display: none; }

.focus-rail-foot {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 10px 8px 4px;
}

.focus-rail-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6a8cc9, #b07aa1); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}

.focus-rail-user { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }

.focus-rail-user-name { font-size: 13px; font-weight: 600; color: var(--f-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.focus-rail-user-plan { font-size: 11px; color: var(--f-faint); white-space: nowrap; }

.focus-rail-gear {
  margin-left: auto; flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: transparent; color: var(--f-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}

.focus-rail-gear svg { width: 17px; height: 17px; }

.focus-rail-gear:hover { background: var(--f-rail-hover); color: var(--f-text); }

.user-view.is-focus-railclosed .focus-rail-user,
.user-view.is-focus-railclosed .focus-rail-gear { display: none; }

.user-view.is-focus-railclosed .focus-rail-foot { justify-content: center; }

.user-view.is-focus .user-main { position: relative; overflow-y: auto; scrollbar-gutter: stable both-edges; }

.user-view.is-focus .ns-masthead,
.user-view.is-focus .ns-body {
  position: relative; z-index: 1;
  max-width: 940px; margin-left: auto; margin-right: auto;
}

.user-view.is-focus .ns-masthead { padding: 40px 24px 4px; }

.user-view.is-focus .ns-body { padding: 12px 24px 60px; }

.user-view.is-focus .ns-greet { color: var(--f-text); }

.user-view.is-focus-home .user-main::before {
  content: ""; position: absolute; inset: 0; background: var(--f-glow);
  pointer-events: none; z-index: 0;
  transition: opacity .3s ease;
}

.user-view.is-focus-home.is-convo-active .user-main::before { opacity: 0; }

.user-view.is-focus-home.is-convo-active
  .user-main:has(.ns-sec--agentfield.is-active .ns-agent-field.is-greeting)::before {
  opacity: 1;
}

.user-view.is-focus-home .ns-masthead,
.user-view.is-focus-home .ns-body { max-width: 760px; }

.user-view.is-focus-home:not(.is-convo-active) .ns-masthead { padding: calc(50vh - 120px) 24px 6px; text-align: center; }

.user-view.is-focus-home .ns-greetrow { justify-content: center; }

.user-view.is-focus-home .ns-greet {
  font-size: 46px; font-weight: 400; letter-spacing: -.012em; line-height: 1.1;
}

.user-view.is-focus-home .ns-body { padding: 22px 24px 60px; }

.user-view.is-focus .ns-agent-field {
  background: var(--f-field-bg); border: 1px solid var(--f-field-border);
  border-radius: 36px; min-height: 58px; box-shadow: none;
}

.user-view.is-focus .ns-agent-field.is-suggesting { border-radius: 36px; }

.user-view.is-focus .ns-agent-input { color: var(--f-text); font-size: 15px; }

.user-view.is-focus .ns-agent-input::placeholder { color: var(--f-muted); }

.user-view.is-focus-light .ns-agent-field:focus-within { border-color: rgba(5,98,138,.45); }

.user-view.is-focus .ns-agent-field.is-suggesting {
  border-color: rgba(5,98,138,.28);
  box-shadow: 0 1px 2px rgba(20,25,35,.04), 0 18px 44px rgba(20,25,35,.14);
}

.user-view.is-focus-home.is-convo-active .ns-masthead { display: none; }

.user-view.is-focus-home.is-convo-active .ns-body { padding-top: 0; }

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active {
  --ns-thread-max: calc(100vh - 208px);
}

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-thread {
  max-height: none; overflow: visible; padding-right: 0;
}

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-convo {
  display: flex; flex-direction: column;
  min-height: calc(100vh - 84px);
  /* The top tab bar was removed (Erick, Sep 2), so there's no sticky bar to
     reserve height for — just a little air above the opening row (the user's
     question or the thinking loader). With border-box the padding eats into
     min-height, so the docked composer at the column's bottom does not move. */
  padding-top: 24px;
}

:scope.demo-bar-hidden .user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-convo {
  min-height: calc(100vh - 119px);
}

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-agent {
  bottom: 8px; margin-top: auto;
}

.user-view.is-focus-home.is-convo-active .ns-body { padding-bottom: 0; }

.user-view.is-focus-home.is-convo-active .ns-body { position: relative; left: -30px; }

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-agent-body {
  padding-bottom: 64px;
}

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-agent-vizstrip {
  max-height: none; overflow: visible; position: sticky; top: 12px;
}

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-agent::before {
  top: -52px; bottom: -16px;
  background: linear-gradient(to bottom,
    rgba(251,251,250,0) 0%,
    var(--f-bg, #fbfbfa) 52px);
}

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-convo:has(.ns-agent-field.is-greeting) .ns-agent-body {
  display: none;
}

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-convo:has(.ns-agent-field.is-greeting) .ns-agent {
  margin-top: auto; margin-bottom: auto; bottom: 0;
  /* Stack the opener line above the centred composer. The field keeps its
     natural height (flex:0 0 auto) so the column layout doesn't stretch the
     pill tall; it still spans the full width via align-items:stretch. */
  flex-direction: column; align-items: stretch;
  /* Lift the whole pair up ~53px so the greeting + composer land at the same
     height as the Home hero — a new tab then barely shifts the UI off centre. */
  transform: translateY(-53px);
}

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-convo:has(.ns-agent-field.is-greeting) .ns-agent-field {
  flex: 0 0 auto;
}

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-convo:has(.ns-agent-field.is-greeting) .ns-agent::before {
  display: none;
}

.ns-convo-greet { display: none; }

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-convo:has(.ns-agent-field.is-greeting) .ns-convo-greet {
  display: block; text-align: center;
  margin: 0 0 22px; padding: 0 8px;
  /* Same face as the Home hero greeting: 46px, light weight, tight leading. */
  font-family: var(--font); font-weight: 400;
  font-size: 46px; line-height: 1.1; letter-spacing: -0.012em;
  color: var(--f-text, #1a1a1a);
  animation: ns-convo-rise .44s cubic-bezier(.22,.61,.36,1) both;
}

@media (prefers-reduced-motion: reduce) {
  .user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-convo:has(.ns-agent-field.is-greeting) .ns-convo-greet { animation: none; }
}

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-convo:has(.ns-agent-field.is-greeting) .ns-agent-field {
  box-shadow: 0 16px 44px rgba(31,73,125,0.15);
}

.user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-thread {
  animation: ns-convo-rise .44s cubic-bezier(.22,.61,.36,1) both;
}

.user-view.is-convo-active .ns-convo-topbar {
  animation: ns-convo-rise .34s cubic-bezier(.22,.61,.36,1) both;
}

@media (prefers-reduced-motion: reduce) {
  .user-view.is-focus-home.is-convo-active .ns-sec--agentfield.is-active .ns-thread,
  .user-view.is-convo-active .ns-convo-topbar { animation: none; }
  .ns-inspector { transform: none; transition: opacity .12s ease; }
}

.user-view.is-focus .ns-ask-bubble {
  background: #eceef1;
  color: var(--f-text, #1f2125);
}

.user-view.is-focus-home.is-convo-active .ns-agent-suggest {
  background: var(--f-field-bg, #fff);
  border-color: var(--f-line, #e6e6e6);
  box-shadow: 0 10px 30px rgba(20,25,35,.12);
}

.user-view.is-focus-home.is-convo-active .ns-agent-suggest-label { color: var(--f-faint, #8a909b); }

.user-view.is-focus-home.is-convo-active .ns-agent-suggest-item { color: var(--f-text, #1f2125); }

.user-view.is-focus-home.is-convo-active .ns-agent-suggest-src { display: none; }

.user-view.is-focus-home.is-convo-active .ns-agent-suggest-item:hover,
.user-view.is-focus-home.is-convo-active .ns-agent-suggest-item:focus-visible {
  background: var(--f-rail-hover, rgba(0,0,0,.05));
  color: var(--f-text, #1f2125);
}

.ns-ans-followups--out {
  margin-top: 12px;
  margin-bottom: 4px;
  padding: 0 4px 0 20px;
}

.user-view.is-inspecting .user-main { position: relative; }

.user-view.is-inspecting .user-main { overflow: hidden; }

.ns-inspector {
  position: absolute; inset: 0; z-index: 40;
  display: flex; flex-direction: column;
  background: var(--f-bg, #fff);
  /* Swipe in from the right as the canvas takes the stage, so opening a chart
     reads as one continuous motion rather than a hard cut (Aug 28 review). */
  opacity: 0; transform: translateX(26px);
  transition: opacity .2s ease, transform .3s cubic-bezier(.22,.61,.36,1);
}

.ns-inspector.is-open { opacity: 1; transform: none; }

.ns-canvas-tabs {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px;
  /* Top padding matches the conversation top bar so the canvas tab row lines up
     with the Tableau rail logo center (~1px), instead of sitting 13px high.
     The convo view overrides this via .ns-convo-topbar; both now agree. */
  padding: 22px 18px 12px 18px;
}

.ns-canvas-tabstrip {
  display: flex; align-items: center; gap: 4px; min-width: 0;
  flex: 1 1 auto; overflow-x: auto;
}

.ns-canvas-tab {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  max-width: 208px; cursor: pointer;
  font-family: var(--font); font-weight: 500; font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--f-muted, #5f6470);
  background: transparent; border: 1px solid transparent;
  border-radius: 999px; padding: 7px 14px;
  transition: background .14s ease, color .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.ns-canvas-tab:hover { background: var(--f-rail-hover, rgba(0,0,0,.04)); color: var(--f-text, #1a1a1a); }

.ns-canvas-tab.is-active {
  color: var(--f-rail-active-text, var(--accent, #05628a));
  background: var(--f-rail-active, rgba(5,98,138,.10));
  border-color: transparent;
  font-weight: 600;
  box-shadow: none;
}

.ns-canvas-tab-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.ns-canvas-tab-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 999px; flex: 0 0 auto;
  color: currentColor; opacity: .55;
  transition: background .14s ease, opacity .14s ease, color .14s ease;
}

.ns-canvas-tab-close svg { width: 10px; height: 10px; }

.ns-canvas-tab.is-active .ns-canvas-tab-close { opacity: .7; }

.ns-canvas-tab-close:hover { opacity: 1; background: var(--f-rail-active, rgba(5,98,138,.14)); color: var(--f-rail-active-text, var(--accent, #05628a)); }

.ns-canvas-newtab {
  flex: 0 0 auto; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  color: var(--f-muted, #5f6470);
  background: transparent; border: 0; border-radius: 999px;
  transition: background .14s ease, color .14s ease;
}

.ns-canvas-newtab svg { width: 16px; height: 16px; }

.ns-canvas-newtab:hover { background: var(--f-rail-hover, rgba(0,0,0,.04)); color: var(--f-text, #1a1a1a); }

.ns-canvas-tabs-right { position: relative; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.ns-canvas-histbtn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: var(--font); font-weight: 500; font-size: 13px;
  color: var(--f-muted, #5f6470);
  background: transparent; border: 1px solid transparent; border-radius: 999px;
  padding: 7px 13px; transition: background .14s ease, color .14s ease;
}

.ns-canvas-histbtn svg { width: 15px; height: 15px; }

.ns-canvas-histbtn:hover { background: var(--f-rail-hover, rgba(0,0,0,.04)); color: var(--f-text, #1a1a1a); }

.ns-canvas-histbtn.is-pressed { background: var(--f-rail-active, rgba(5,98,138,.1)); color: var(--f-rail-active-text, var(--accent, #05628a)); }

.ns-convo-topbar { display: none; position: sticky; top: 0; z-index: 5; background: var(--f-bg, #ffffff); padding: 22px 24px 12px; }

.user-view.is-convo-active .ns-convo-topbar { display: flex; }

.ns-convo-topbar::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%;
  height: 22px; pointer-events: none;
  background: linear-gradient(to bottom,
    var(--f-bg, #fbfbfa) 0%,
    rgba(251,251,250,0) 100%);
}

.ns-canvas-hist {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  width: 360px; max-height: 460px; display: flex; flex-direction: column;
  background: var(--f-field-bg, #fff);
  border: 1px solid var(--f-line, #eaeaea); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(20,25,35,.16), 0 2px 8px rgba(20,25,35,.08);
  overflow: hidden;
}

.ns-canvas-hist-search-wrap {
  position: relative; flex: 0 0 auto; padding: 12px 12px 8px;
}

.ns-canvas-hist-search-ic {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  display: inline-flex; color: var(--f-muted, #6b6b6b); pointer-events: none;
}

.ns-canvas-hist-search-ic svg { width: 15px; height: 15px; }

.ns-canvas-hist-search {
  width: 100%; box-sizing: border-box;
  font-family: var(--font); font-size: 13.5px; color: var(--f-text, #1a1a1a);
  background: var(--f-bg, #f6f7f9);
  border: 1px solid var(--f-field-border, #dfe3e8); border-radius: 999px;
  padding: 9px 14px 9px 34px; outline: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}

.ns-canvas-hist-search::placeholder { color: var(--f-faint, #9aa0aa); }

.ns-canvas-hist-search:focus {
  border-color: var(--accent, #05628a);
  box-shadow: 0 0 0 3px var(--f-rail-active, rgba(5,98,138,.12));
}

.ns-canvas-hist-scroll {
  flex: 1 1 auto; overflow-y: auto; padding: 4px 8px 10px;
  scrollbar-width: thin; scrollbar-color: var(--f-field-border) transparent;
}

.ns-canvas-hist-scroll::-webkit-scrollbar { width: 6px; }

.ns-canvas-hist-scroll::-webkit-scrollbar-thumb { background: var(--f-field-border); border-radius: 999px; }

.ns-canvas-hist-group { padding: 6px 0; }

.ns-canvas-hist-grouptitle {
  font-family: var(--font); font-weight: 600; font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--f-faint, #9aa0aa); padding: 6px 8px 4px;
}

.ns-canvas-hist-row {
  display: flex; align-items: center; gap: 12px; width: 100%; cursor: pointer;
  text-align: left; background: transparent; border: 0; border-radius: 10px;
  padding: 8px; transition: background .13s ease;
}

.ns-canvas-hist-row:hover { background: var(--f-rail-hover, rgba(0,0,0,.04)); }

.ns-canvas-hist-thumb {
  flex: 0 0 auto; width: 56px; height: 40px; border-radius: 7px; overflow: hidden;
  background: var(--f-rail-hover, rgba(0,0,0,.03)); border: 0;
  display: flex; align-items: center; justify-content: center;
}

.ns-canvas-hist-thumb .ns-vizthumb-svg { width: 100%; height: 100%; }

.ns-canvas-hist-body { flex: 1 1 auto; min-width: 0; }

.ns-canvas-hist-name {
  font-family: var(--font); font-weight: 600; font-size: 13.5px;
  color: var(--f-text, #1a1a1a);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ns-canvas-hist-meta { font-family: var(--font); font-size: 12px; color: var(--f-muted, #5f6470); margin-top: 2px; }

.ns-canvas-hist-empty {
  font-family: var(--font); font-size: 13px; color: var(--f-muted, #5f6470);
  text-align: center; padding: 28px 16px;
}

.ns-canvas-shell { flex: 1 1 auto; display: flex; min-height: 0; }

.ns-canvas-chat {
  flex: 0 0 448px; display: flex; flex-direction: column; min-height: 0;
  background: var(--f-bg, #fff);
}

.ns-canvas-chat-scroll {
  flex: 1 1 auto; overflow-y: auto;
  padding: 24px 28px 8px;
  /* A slim, quiet scrollbar: no track, no border, no inset shadow. */
  scrollbar-width: thin; scrollbar-color: var(--f-field-border) transparent;
}

.ns-canvas-chat-scroll::-webkit-scrollbar { width: 6px; }

.ns-canvas-chat-scroll::-webkit-scrollbar-track { background: transparent; box-shadow: none; }

.ns-canvas-chat-scroll::-webkit-scrollbar-thumb {
  background: var(--f-field-border); border-radius: 999px; border: 0;
}

.ns-canvas-chat-scroll::-webkit-scrollbar-thumb:hover { background: var(--f-muted); }

.ns-canvas-chat .ns-agent {
  position: static; flex: 0 0 auto; width: auto;
  margin: 0; padding: 12px 28px 20px;
}

.ns-canvas-chat .ns-agent::before { display: none; }

.ns-canvas-chat .ns-agent-suggest { top: auto; bottom: calc(100% + 8px); }

.ns-canvas-chat .ns-ans {
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(20,25,35,.05);
}

.ns-canvas-chat .ns-ans-followups--out { padding-left: 4px; }

.ns-canvas-split {
  flex: 0 0 12px; align-self: stretch; position: relative; cursor: col-resize;
  display: flex; align-items: center; justify-content: center;
}

.ns-canvas-split-grip {
  width: 2px; height: 44px; border-radius: 999px;
  background: var(--f-field-border, #dfe3e8);
  opacity: 0; transition: opacity .14s ease, background .14s ease;
}

.ns-canvas-split:hover .ns-canvas-split-grip { opacity: 1; }

.ns-inspector.is-resizing { cursor: col-resize; user-select: none; }

.ns-inspector.is-resizing .ns-canvas-split-grip { opacity: 1; background: var(--accent, #05628a); }

.ns-canvas-stage { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }

.ns-canvas-bar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px 12px;
}

.ns-canvas-title {
  font-family: var(--font); font-weight: 600; font-size: 15px;
  color: var(--f-text, #1a1a1a);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0;
}

.ns-canvas-bar-tools { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }

.ns-canvas-edit,
.ns-canvas-share {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font); font-weight: 500; font-size: 13px;
  padding: 7px 15px; border-radius: 999px; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ns-canvas-edit svg,
.ns-canvas-share svg { width: 14px; height: 14px; }

.ns-canvas-edit,
.ns-canvas-share {
  color: var(--f-text, #1f2125);
  background: var(--f-field-bg, #fff);
  border: 1px solid var(--f-field-border, #d8dde3);
}

.ns-canvas-edit svg,
.ns-canvas-share svg { color: var(--f-muted, #5f6470); }

.ns-canvas-edit:hover,
.ns-canvas-share:hover {
  background: var(--f-rail-hover, rgba(0,0,0,.04));
  border-color: var(--f-muted, #b8bfc7);
}

.ns-canvas-share.is-shared {
  color: #1f8f5f; border-color: #1f8f5f;
  background: rgba(31,143,95,.08); box-shadow: none;
}

.ns-canvas-share.is-shared svg { color: #1f8f5f; }

.ns-canvas-types { position: relative; display: inline-flex; margin-right: 4px; }

.ns-canvas-type-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font); font-weight: 500; font-size: 13px;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  color: var(--f-text, #1f2125); background: var(--f-field-bg, #fff);
  border: 1px solid var(--f-field-border, #d8dde3);
  transition: background .15s ease, border-color .15s ease;
}

.ns-canvas-type-trigger:hover { background: var(--f-rail-hover, rgba(0,0,0,.04)); border-color: var(--f-muted, #b8bfc7); }

.ns-canvas-types.is-open .ns-canvas-type-trigger { border-color: var(--accent, #05628a); }

.ns-canvas-type-ic { display: inline-flex; align-items: center; justify-content: center; color: var(--f-muted, #5f6470); }

.ns-canvas-type-ic svg { width: 14px; height: 14px; }

.ns-canvas-type-lbl { color: var(--f-text, #1a1a1a); }

.ns-canvas-type-caret { color: var(--f-muted, #5f6470); margin-left: 1px; transition: transform .15s ease; }

.ns-canvas-types.is-open .ns-canvas-type-caret { transform: rotate(180deg); }

.ns-canvas-type-menu {
  position: absolute; top: calc(100% + 5px); right: 0; z-index: 40;
  min-width: 148px; padding: 4px;
  background: #fff; border: 1px solid var(--f-field-border, #d8dde3);
  border-radius: 10px; box-shadow: 0 10px 28px rgba(20,25,35,.14), 0 1px 3px rgba(20,25,35,.08);
}

.ns-canvas-type-opt {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 7px 9px; border-radius: 7px; cursor: pointer;
  color: var(--f-text, #1f2125); background: transparent; border: 0; text-align: left;
  font-family: var(--font); font-weight: 500; font-size: 13px;
}

.ns-canvas-type-opt:hover { background: var(--f-rail-hover, rgba(0,0,0,.05)); }

.ns-canvas-type-opt[aria-selected="true"] { background: rgba(5,98,138,.08); }

.ns-canvas-type-opt[aria-selected="true"] .ns-canvas-type-lbl { color: var(--accent, #05628a); font-weight: 600; }

.ns-canvas-type-opt[aria-selected="true"] .ns-canvas-type-ic { color: var(--accent, #05628a); }

.ns-canvas-think {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  height: 100%; min-height: 220px;
  color: var(--ink2, #5a6472); font-size: 16px;
}

.ns-canvas-think > [class^="typing-"] {
  flex: 0 0 auto; transform: scale(2.1); transform-origin: center; margin-right: 6px;
}

.ns-canvas-stage.is-loading .ns-canvas-view { align-items: center; }

.ns-canvas-card.is-loading {
  min-height: 70vh;
  display: flex; flex-direction: column; justify-content: center;
}

.ns-canvas-card.is-loading .ns-canvas-plot { min-height: 0; margin: 0; }

.ns-canvas-think-txt.is-swap { animation: gfLoaderTxtSwap .32s ease-out; }

.ns-canvas-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px; cursor: pointer;
  color: var(--f-muted, #6b6b6b); background: transparent; border: 0;
  transition: background .15s ease, color .15s ease;
}

.ns-canvas-close:hover { background: var(--f-rail-hover, rgba(0,0,0,.04)); color: var(--f-text, #1a1a1a); }

.ns-canvas-stage-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 999px; cursor: pointer;
  color: var(--f-muted, #5f6470);
  background: var(--f-field-bg, #fff);
  border: 1px solid var(--f-field-border, #d8dde3);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ns-canvas-stage-close svg { width: 14px; height: 14px; }

.ns-canvas-stage-close:hover {
  background: var(--f-rail-hover, rgba(0,0,0,.04));
  border-color: var(--f-muted, #b8bfc7);
  color: var(--f-text, #1a1a1a);
}

.ns-canvas-view {
  flex: 1 1 auto; overflow-y: auto;
  /* Generous padding gives the card's soft shadow room on every side so it is
     never clipped by the scroll container's edge — the section stays scrollable
     for short windows without cutting the shadow (which we keep). Top clears the
     28px shadow blur; bottom clears the 8px offset + 28px blur. */
  padding: 30px 40px 40px;
  display: flex; justify-content: center; align-items: flex-start;
}

.ns-canvas-card {
  width: 100%; max-width: 940px;
  background: var(--f-field-bg, #fff);
  border: 0;
  border-radius: 16px; padding: 26px 30px 30px;
  box-shadow: 0 1px 2px rgba(20,25,35,.04), 0 8px 28px rgba(20,25,35,.06);
}

.ns-canvas-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }

.ns-canvas-card-title {
  font-family: var(--font); font-weight: 500; font-size: 21px;
  color: var(--f-text, #1a1a1a);
}

.ns-canvas-card-title[contenteditable] {
  border-radius: 8px; padding: 2px 6px; margin: -2px -6px;
  outline: none; cursor: text; transition: background .12s, box-shadow .12s;
}

.ns-canvas-card-title[contenteditable]:hover {
  background: var(--f-rail-hover, rgba(0,0,0,.04));
}

.ns-canvas-card-title[contenteditable]:focus {
  background: var(--f-field-bg, #fff);
  box-shadow: inset 0 0 0 1px var(--f-field-border, rgba(0,0,0,.12)),
              0 1px 3px rgba(16,24,40,.08);
}

.ns-canvas-tools {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 14px;
}

.ns-canvas-typeswitch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--f-rail-bg, #f2f2ef); border-radius: 10px;
}

.ns-canvas-typebtn,
.ns-canvas-forecast {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 12.5px; font-weight: 500;
  color: var(--f-muted, #5f6470);
  background: transparent; border: 0; border-radius: 8px;
  padding: 6px 11px; cursor: pointer; white-space: nowrap;
  transition: background .12s, color .12s, box-shadow .12s;
}

.ns-canvas-typebtn svg,
.ns-canvas-forecast svg { flex: 0 0 auto; }

.ns-canvas-typebtn:hover { color: var(--f-text, #1f2125); }

.ns-canvas-typebtn.is-active {
  color: var(--f-text, #1f2125); background: #fff;
  box-shadow: 0 1px 2px rgba(16,24,40,.14), 0 0 0 1px rgba(16,24,40,.04);
}

.ns-canvas-forecast {
  border: 1px solid var(--f-field-border, rgba(0,0,0,.12));
  padding: 6px 12px;
}

.ns-canvas-forecast:hover {
  color: var(--f-text, #1f2125); background: var(--f-rail-hover, rgba(0,0,0,.04));
}

.ns-canvas-forecast.is-active {
  color: var(--accent, #05628a);
  background: var(--f-rail-active, rgba(5,98,138,.12));
  border-color: transparent;
}

.ns-canvas-plot { min-height: 300px; margin: 4px 0 8px; }

.ns-canvas-card.is-loading .ns-canvas-card-head,
.ns-canvas-card.is-loading .ns-ans-why { display: none; }

.ns-canvas-card.is-entered .ns-canvas-card-head,
.ns-canvas-card.is-entered .ns-canvas-plot,
.ns-canvas-card.is-entered .ns-ans-why {
  animation: gfCanvasContentIn .42s ease both;
}

.ns-canvas-card.is-entered .ns-ans-why { animation-delay: .06s; }

.ns-canvas-pages { transition: opacity .4s ease, transform .4s ease; }

.ns-canvas-stage.is-loading .ns-canvas-pages {
  opacity: 0; transform: translateY(8px); pointer-events: none;
}

.ns-canvas-stage.is-revealing .ns-canvas-pages { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  .ns-canvas-card.is-entered .ns-canvas-card-head,
  .ns-canvas-card.is-entered .ns-canvas-plot,
  .ns-canvas-card.is-entered .ns-ans-why { animation: none; }
  .ns-canvas-pages { transition: none; }
}

.ns-canvas-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; min-height: 360px; padding: 40px 24px;
}

.ns-canvas-empty-title {
  font-family: var(--font); font-weight: 600; font-size: 17px;
  color: var(--f-text, #1a1a1a);
}

.ns-canvas-empty-sub {
  font-family: var(--font); font-size: 13.5px; max-width: 380px;
  color: var(--f-muted, #5f6470);
}

.ns-canvas-pages {
  flex: 0 0 auto;
  background: var(--f-bg, #fff);
}

.ns-canvas-pages-track {
  display: flex; gap: 12px; align-items: flex-end; justify-content: center;
  padding: 12px 20px 14px; overflow-x: auto;
}

.ns-canvas-page {
  flex: 0 0 auto; width: 118px;
  display: flex; flex-direction: column; gap: 6px;
  padding: 7px 7px 8px; border-radius: 10px; cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

.ns-canvas-page:hover { background: var(--f-rail-hover, rgba(0,0,0,.04)); }

.ns-canvas-page.is-active {
  background: transparent;
  border-color: var(--accent, #05628a);
  box-shadow: 0 0 0 1px var(--accent, #05628a);
}

.ns-canvas-page-thumb {
  height: 56px; border-radius: 6px; overflow: hidden;
  background: var(--f-rail-hover, rgba(0,0,0,.03));
  display: flex; align-items: flex-end;
}

.ns-canvas-page-thumb .ns-vizthumb-svg { width: 100%; height: 100%; }

.ns-canvas-page-cap {
  font-family: var(--font); font-size: 11px; line-height: 1.25;
  color: var(--f-muted, #6b6b6b);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ns-canvas-page.is-active .ns-canvas-page-cap { color: var(--f-text, #1a1a1a); font-weight: 500; }

.user-view.is-focus-light.is-inspecting .ns-canvas-shell {
  background: var(--f-bg, #fbfbfa);    /* same as the tabs header: no seam */
  padding: 4px 16px 16px 16px;
}

.user-view.is-focus-light.is-inspecting .ns-canvas-chat {
  background: transparent;
  border: 0; border-radius: 0; box-shadow: none; overflow: visible;
}

.user-view.is-focus-light.is-inspecting .ns-canvas-stage {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.05); border-radius: 22px; overflow: hidden;
  box-shadow: 0 12px 30px rgba(20,25,35,.08), 0 1px 3px rgba(20,25,35,.05);
  /* Chart canvas is on the LEFT now, so its breathing gap sits on the right. */
  margin-right: 4px;
}

.user-view.is-focus-light.is-inspecting .ns-canvas-card {
  background: transparent; border: 0; box-shadow: none;
  padding: 4px 6px 10px; border-radius: 0;
}

.user-view.is-focus-light.is-inspecting .ns-canvas-pages { background: transparent; }

.user-view.is-focus-light.is-inspecting .ns-canvas-page-thumb { background: rgba(0,0,0,.04); }

.user-view.is-focus-light.is-inspecting .ns-canvas-pages {
  border-top: 1px solid rgba(0,0,0,.05);
}

.user-view.is-focus-light.is-inspecting .ns-canvas-split { flex-basis: 8px; }

.ns-ans-title { flex: 1 1 auto; min-width: 0; }

.ns-ans-actions {
  display: flex; flex-wrap: wrap; justify-content: flex-end;
  gap: 8px; margin-top: 14px;
}

.ns-ans-open,
.ns-ans-edit {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 13px;
  padding: 8px 17px; border-radius: 999px; cursor: pointer;
  transition: background .14s ease, border-color .14s ease, box-shadow .14s ease, color .14s ease;
}

.ns-ans-open svg,
.ns-ans-edit svg { width: 14px; height: 14px; }

.ns-ans-edit {
  font-weight: 500;
  color: var(--f-text, #1f2125);
  background: var(--f-field-bg, #fff);
  border: 1px solid var(--f-field-border, #d8dde3);
}

.ns-ans-edit svg { color: var(--f-muted, #5f6470); }

.ns-ans-edit:hover {
  background: var(--f-rail-hover, rgba(0,0,0,.04));
  border-color: var(--f-muted, #b8bfc7);
}

.user-view.is-focus .ns-ans-edit { display: none; }

.ns-ans-open {
  font-weight: 600;
  color: #fff;
  background: var(--accent, #05628a);
  border: 1px solid transparent;
}

.ns-ans-open svg { color: #fff; }

.ns-ans-open:hover {
  background: #04506f;
}

.ns-ans-open:focus-visible,
.ns-ans-edit:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(5,98,138,.28); }

.ns-ans-share {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  padding: 8px 17px; border-radius: 999px; cursor: pointer;
  color: var(--f-text, #1f2125);
  background: var(--f-field-bg, #fff);
  border: 1px solid var(--f-field-border, #d8dde3);
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}

.ns-ans-share svg { width: 15px; height: 15px; color: var(--f-muted, #5f6470); }

.ns-ans-share:hover { background: var(--f-rail-hover, rgba(0,0,0,.04)); border-color: var(--f-muted, #b8bfc7); }

.ns-ans-share:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(5,98,138,.28); }

.ns-ans-share.is-shared { border-color: #1f8f5f; color: #1f8f5f; }

.ns-ans-share.is-shared svg { color: #1f8f5f; }

.ns-ans-share--icon {
  gap: 0; padding: 0; width: 36px; height: 36px;
  justify-content: center; align-items: center;
}

.ns-ans-types { position: relative; display: inline-flex; }

.ns-ans-addto { display: none; }

.ns-ans-type-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 13px; font-weight: 500;
  color: var(--f-text, #1f2125);
  background: var(--f-field-bg, #fff);
  border: 1px solid var(--f-field-border, #d8dde3);
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}

.ns-ans-type-trigger:hover { background: var(--f-rail-hover, rgba(0,0,0,.04)); border-color: var(--f-muted, #b8bfc7); }

.ns-ans-types.is-open .ns-ans-type-trigger { border-color: var(--accent, #05628a); }

.ns-ans-type-ic { display: inline-flex; }

.ns-ans-type-ic svg { width: 15px; height: 15px; color: var(--f-muted, #5f6470); }

.ns-ans-type-caret { transition: transform .14s ease; margin-left: 1px; }

.ns-ans-types.is-open .ns-ans-type-caret { transform: rotate(180deg); }

.ns-ans-type-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 20;
  min-width: 150px; padding: 5px;
  background: var(--f-field-bg, #fff);
  border: 1px solid var(--f-field-border, #d8dde3); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(16,22,26,.14);
}

.ns-ans-type-opt {
  display: flex; align-items: center; gap: 9px; width: 100%;
  font-family: var(--font); font-size: 13px; color: var(--f-text, #1f2125);
  background: none; border: 0; padding: 8px 10px; border-radius: 8px; cursor: pointer;
}

.ns-ans-type-opt:hover { background: var(--f-rail-hover, rgba(0,0,0,.05)); }

.ns-ans-type-opt .ns-ans-type-ic svg { width: 15px; height: 15px; }

.ns-ans-type-opt[aria-selected="true"] { background: rgba(5,98,138,.08); }

.ns-ans-type-opt[aria-selected="true"] .ns-ans-type-lbl { color: var(--accent, #05628a); font-weight: 600; }

.ns-ans-type-opt[aria-selected="true"] .ns-ans-type-ic svg { color: var(--accent, #05628a); }

.user-view.is-focus .focus-strip { margin-top: 30px; }

.user-view.is-focus.is-convo-active .focus-strip { display: none; }

.user-view.is-focus .focus-strip-label {
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--f-muted); margin-bottom: 12px; text-align: center;
}

.user-view.is-focus .focus-strip-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}

.user-view.is-focus .focus-strip-card {
  background: var(--f-field-bg); border: 1px solid var(--f-line);
  border-radius: 12px; padding: 8px; transition: border-color .14s, transform .12s;
}

.user-view.is-focus .focus-strip-card:hover {
  transform: translateY(-2px);
}

.user-view.is-focus-light .focus-strip-card:hover { border-color: rgba(5,98,138,.30); }

.user-view.is-focus .focus-strip-card .ns-card-name { color: var(--f-text); }

.user-view.is-focus .focus-strip-card .ns-card-meta { color: var(--f-muted); }

.user-view.is-focus .focus-strip--carousel .focus-strip-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}

.user-view.is-focus .focus-strip--carousel .focus-strip-label {
  margin-bottom: 0; text-align: left; font-size: 15px; font-weight: 600;
  color: var(--f-text);
}

.user-view.is-focus .focus-strip-ctrls { display: flex; align-items: center; gap: 10px; }

.user-view.is-focus .focus-strip--carousel .focus-strip-more {
  padding: 4px 2px; margin: 0; font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--accent, #05628a); background: transparent; border: 0;
  border-radius: 6px; cursor: pointer; transition: opacity .14s;
}

.user-view.is-focus .focus-strip--carousel .focus-strip-more:hover { opacity: .7; }

.user-view.is-focus .focus-strip-nav {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 15px; line-height: 1;
  color: var(--f-text); background: transparent;
  border: 1px solid var(--f-field-border, rgba(0,0,0,.12));
  cursor: pointer; transition: background .14s, border-color .14s, opacity .14s;
}

.user-view.is-focus .focus-strip-nav:hover {
  background: var(--f-rail-hover, rgba(0,0,0,.05));
  border-color: var(--f-muted, #5f6470);
}

.user-view.is-focus .focus-strip-nav.is-off { opacity: .3; pointer-events: none; }

.user-view.is-focus .focus-strip--carousel .focus-strip-row {
  display: flex; grid-template-columns: none; gap: 14px;
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  padding-bottom: 2px;
}

.user-view.is-focus .focus-strip--carousel .focus-strip-row::-webkit-scrollbar { display: none; }

.user-view.is-focus .focus-strip--carousel .focus-strip-card {
  flex: 0 0 auto; width: 230px; scroll-snap-align: start;
}

.user-view.is-focus .focus-recents-rail {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 39;
  display: flex; align-items: center; pointer-events: none;
}

.user-view.is-focus .focus-recents-tab {
  pointer-events: auto; cursor: pointer; font: inherit;
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  padding: 12px 12px 14px; margin-right: 14px;
  background: var(--f-field-bg); color: var(--f-text);
  border: 1px solid var(--f-line); border-radius: 14px;
  box-shadow: 0 4px 16px rgba(16,24,40,.08);
  transition: transform .14s ease, box-shadow .16s ease, border-color .14s ease;
}

.user-view.is-focus .focus-recents-tab:hover {
  transform: translateX(-3px); border-color: rgba(5,98,138,.30);
  box-shadow: 0 8px 22px rgba(16,24,40,.12);
}

.user-view.is-focus .focus-recents-tab-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--f-text);
}

.user-view.is-focus .focus-recents-tab-word { flex: 1 1 auto; text-align: left; }

.user-view.is-focus .focus-recents-tab-chev { display: inline-flex; color: var(--f-muted); }

.user-view.is-focus .focus-recents-tab-chev svg { width: 14px; height: 14px; }

.user-view.is-focus .focus-recents-tab:hover .focus-recents-tab-chev {
  transform: translateX(-2px); transition: transform .14s ease;
}

.user-view.is-focus .focus-recents-peek {
  display: flex; flex-direction: column; gap: 5px;
}

.user-view.is-focus .focus-recents-peek-thumb {
  width: 100%; height: 38px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--f-line);
}

.user-view.is-focus .focus-recents-peek-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.user-view.is-focus .focus-recents-rail.is-open .focus-recents-tab {
  display: none;
}

.user-view.is-focus .focus-recents-panel {
  pointer-events: auto;
  width: 356px; max-height: min(78vh, 640px); margin-right: 18px;
  display: none; flex-direction: column;
  background: var(--f-field-bg); border: 1px solid var(--f-line);
  border-radius: 16px; box-shadow: 0 12px 40px rgba(16,24,40,.16);
  overflow: hidden;
}

.user-view.is-focus .focus-recents-rail.is-open .focus-recents-panel {
  display: flex; animation: gfRecentsIn .2s ease both;
}

.user-view.is-focus .focus-recents-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 12px 12px 16px; border-bottom: 1px solid var(--f-line);
}

.user-view.is-focus .focus-recents-title {
  font-size: 14px; font-weight: 600; color: var(--f-text);
}

.user-view.is-focus .focus-recents-close {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 0; color: var(--f-muted);
  transition: background .14s, color .14s;
}

.user-view.is-focus .focus-recents-close svg { width: 16px; height: 16px; }

.user-view.is-focus .focus-recents-close:hover {
  background: var(--f-rail-hover, rgba(0,0,0,.05)); color: var(--f-text);
}

.user-view.is-focus .focus-recents-list {
  overflow-y: auto; min-height: 0; padding: 6px; display: flex;
  flex-direction: column; gap: 2px;
}

.user-view.is-focus .focus-recents-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 8px; border-radius: 10px; cursor: pointer; font: inherit;
  text-align: left; background: transparent; border: 1px solid transparent;
  transition: background .14s, border-color .14s;
}

.user-view.is-focus .focus-recents-item:hover {
  background: var(--f-rail-hover, rgba(0,0,0,.05));
  border-color: var(--f-line);
}

.user-view.is-focus .focus-recents-thumb {
  flex: 0 0 auto; width: 72px; height: 52px; border-radius: 8px;
  overflow: hidden; border: 1px solid var(--f-line);
}

.user-view.is-focus .focus-recents-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.user-view.is-focus .focus-recents-item-text {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px;
}

.user-view.is-focus .focus-recents-item-name {
  font-size: 13px; font-weight: 600; color: var(--f-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.user-view.is-focus .focus-recents-item-meta {
  font-size: 11px; color: var(--f-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.user-view.is-focus .focus-recents-more {
  flex: 0 0 auto; padding: 12px 16px; font: inherit; font-size: 13px;
  font-weight: 600; text-align: left; cursor: pointer;
  color: var(--accent, #05628a); background: transparent;
  border: 0; border-top: 1px solid var(--f-line);
  transition: opacity .14s;
}

.user-view.is-focus .focus-recents-more:hover { opacity: .7; }

.user-view.is-focus.is-convo-active .focus-recents-rail { display: none; }

.user-view.is-focus .focus-promptbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  margin: 0; padding: 56px 28px 22px;
  /* Fade the working surface up behind the cards so the hero dissolves into the
     bar with no seam. Matches --f-bg exactly (#fbfbfa) and ramps over a tall
     zone, so there's no hard top edge (Erick). */
  background: linear-gradient(to top,
    var(--f-bg, #fbfbfa) 0%, var(--f-bg, #fbfbfa) 34%, rgba(251,251,250,0) 100%);
  pointer-events: none;
}

.user-view.is-focus .focus-promptbar-rail {
  display: flex; align-items: center; gap: 14px;
  max-width: 1360px; margin: 0 auto; pointer-events: auto;
}

.user-view.is-focus .focus-promptbar .focus-prompt-row {
  display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 12px;
  flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none; padding: 3px;
  /* Fade the right edge so the peeking card dissolves into the gap before the
     arrow buttons instead of ending on a harsh clipped line (Erick). */
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
  mask-image: linear-gradient(to right, #000 90%, transparent 100%);
}

.user-view.is-focus .focus-promptbar .focus-prompt-row::-webkit-scrollbar { display: none; }

.user-view.is-focus .focus-prompt {
  flex: 0 0 300px; width: 300px; scroll-snap-align: start;
  display: flex; align-items: center; gap: 12px; text-align: left;
  border-radius: 16px; padding: 12px 12px 12px 16px; cursor: pointer; font: inherit;
  background: var(--pc-bg, var(--f-field-bg));
  border: 1px solid var(--pc-bd, var(--f-line));
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
  transition: transform .12s ease, box-shadow .16s ease, border-color .14s ease;
}

.user-view.is-focus .focus-prompt:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16,24,40,.10);
}

.user-view.is-focus .focus-prompt-text {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px;
}

.user-view.is-focus .focus-prompt-q {
  font-size: 14px; font-weight: 600; color: var(--f-text); line-height: 1.25;
}

.user-view.is-focus .focus-prompt-src {
  font-size: 11.5px; color: var(--f-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.user-view.is-focus .focus-prompt-thumb {
  flex: 0 0 auto; width: 84px; height: 56px; border-radius: 10px;
  background: #fff; border: 1px solid var(--f-line);
  display: grid; place-items: center; overflow: hidden; padding: 7px;
}

.user-view.is-focus .focus-prompt-thumb .ns-vizthumb-svg { width: 100%; height: 100%; }

.user-view.is-focus .focus-promptbar-nav {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
}

.user-view.is-focus .ns-convo-title {
  font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--f-text);
}

.user-view.is-focus .ns-convo-title-txt { color: var(--f-text); }

.user-view.is-focus .ns-sec--agentfield.is-active .ns-convo-head {
  border-bottom: 1px solid var(--f-line); margin-bottom: 4px;
}

.user-view.is-focus .ns-convo-tool { color: var(--f-muted); }

.user-view.is-focus .ns-sec--agentfield.is-active .ns-agent::before { background: var(--f-bg); }

.user-view.is-focus-light .ns-ans {
  background: #fff; border-color: transparent;
  box-shadow: 0 1px 2px rgba(20,25,35,.04), 0 6px 22px rgba(20,25,35,.05);
}

.user-view.is-focus-light .ns-canvas-chat .ns-ans {
  box-shadow: 0 1px 3px rgba(20,25,35,.05);
}

.user-view.is-focus-light .ns-ans-stat { background: transparent; padding: 0; }

.user-view.is-focus-light .ns-ans--bubble {
  background: transparent; box-shadow: none; padding-left: 0; padding-right: 0;
}

.user-view.is-focus .ns-canvas-chat .ns-ans .ns-viz-plot { display: none; }

.user-view.is-focus .ns-canvas-chat .ns-ans .ns-ans-why { display: none; }

.user-view.is-focus .ns-canvas-chat .ns-ans .ns-ans-time { display: block; margin-top: 0; }

.user-view.is-focus .ns-canvas-chat .ns-ans-head {
  display: block;
  padding: 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--f-field-bg, #fff);
}

.user-view.is-focus .ns-canvas-chat .ns-ans-tile {
  align-items: center; gap: 14px;
}

.user-view.is-focus .ns-canvas-chat .ns-ans-thumb {
  display: none;
}

.user-view.is-focus .ns-canvas-chat .ns-ans-thumb .ns-vizthumb-svg { width: 100%; height: 100%; display: block; }

.user-view.is-focus .ns-canvas-chat .ns-ans-title { font-size: 14px; font-weight: 400; line-height: 1.25; }

.user-view.is-focus .ns-canvas-chat .ns-ans-stat { margin-top: 10px; }

.user-view.is-focus .ns-canvas-chat .ns-ans-open { display: none; }

.user-view.is-focus .ns-canvas-chat .ns-ans--tap { cursor: pointer; }

.user-view.is-focus .ns-canvas-chat .ns-ans--tap:hover .ns-ans-head {
  border-color: rgba(20,25,35,.16);
}

.user-view.is-focus .ns-canvas-chat .ns-ans {
  background: transparent; border: 0; box-shadow: none; padding: 0;
}

.user-view.is-focus-light .ns-canvas-chat .ns-ans.is-oncanvas .ns-ans-head {
  border-color: rgba(5,98,138,.45);
  background: rgba(5,98,138,.06);
  box-shadow: 0 0 0 1px rgba(5,98,138,.28);
}

.user-view.is-focus-light .ns-canvas-chat .ns-ans.is-oncanvas .ns-ans-thumb {
  border-color: rgba(5,98,138,.35);
}

.ns-ans-time { display: none; font-size: 12.5px; color: var(--f-muted, #5f6470); }

.user-view.is-focus .ns-ans-why {
  background: transparent;
  border-left: 0;
  border-radius: 0;
  padding: 0;
}

.user-view.is-focus-light .ns-ans-chip {
  border-color: transparent; background: var(--f-rail-hover, rgba(0,0,0,.05));
  color: var(--f-text, #1f2125);
}

.user-view.is-focus-light .ns-ans-chip:hover {
  border-color: transparent; background: var(--f-rail-active, rgba(5,98,138,.12));
  color: var(--f-rail-active-text, var(--accent, #05628a));
}

.user-view.is-focus-light .ns-search-row {
  background: var(--f-rail-hover, rgba(0,0,0,.03)); border-color: transparent;
}

.user-view.is-focus-light .ns-search-row:hover {
  background: var(--f-rail-active, rgba(5,98,138,.10)); border-color: transparent; transform: none;
}

.user-view.is-focus-light .ns-agent-suggest {
  border-top-color: var(--f-line, #e6e6e6);
  box-shadow: none;
}

.so-page { background: #fff; }

.so-col { max-width: 720px; margin: 0; padding: 44px 48px 72px; }

.so-masthead { text-align: left; }

.so-greet { margin: 0; font-size: 32px; font-weight: 300; letter-spacing: -.02em; color: #1a2733; }

.so-sub { margin: 8px 0 22px; font-size: 15px; font-weight: 300; color: #5b6b7a; max-width: 560px; }

.so-masthead .ns-agent { margin-bottom: 4px; }

.so-drop {
  display: block; text-align: center; margin: 22px 0 4px;
  background: #fff; border: 2px dashed #b9cde4; border-radius: 18px;
  padding: 26px 24px; cursor: pointer;
  box-shadow: 0 6px 26px rgba(31,73,125,.03);
  transition: border-color .18s, box-shadow .18s, transform .18s, background .18s;
}

.so-drop:hover {
  border-color: #6f9fd8; background: #fbfdff; transform: translateY(-1px);
  box-shadow: 0 12px 34px rgba(31,73,125,.06);
}

.so-drop-arrow { color: #5b87c4; margin-bottom: 6px; }

.so-drop-main { display: block; font-size: 17px; font-weight: 600; color: #26364a; }

.so-drop-sub { display: block; font-size: 12.5px; color: #7d8b9c; margin-top: 5px; }

.so-browse-btn {
  display: inline-block; margin-top: 22px; background: #2b6cb0; color: #fff;
  border: none; border-radius: 9px; padding: 9px 20px; font: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 3px 9px rgba(43,108,176,.12);
  transition: background .15s, box-shadow .15s, transform .12s;
}

.so-browse-btn:hover {
  background: #245c98; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(43,108,176,.16);
}

.so-sec { margin-top: 40px; }

.so-rule { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }

.so-rule span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em; color: #5b6b7a;
}

.so-rule::after { content: ""; flex: 1; height: 1px; background: #dbe5f0; }

.so-connect-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }

.so-connect {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: #fff; border: 1px solid #c4d2e2; border-radius: 9px;
  padding: 10px 8px; font: inherit; font-size: 12.5px; color: var(--ink);
  cursor: pointer; transition: border-color .12s, box-shadow .12s;
}

.so-connect:hover { border-color: #9db8d4; box-shadow: var(--shadow); }

.so-connect-logo { font-size: 15px; line-height: 1; }

.so-connect--more { color: var(--ink2); }

.so-learn-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }

.so-learn-lead { font-size: 13px; color: #5b6b7a; }

.so-learn-link { font-size: 12.5px; color: #2b6cb0; cursor: pointer; }

.so-learn-list { display: flex; flex-direction: column; gap: 8px; }

.so-learn-item {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
  cursor: pointer; transition: box-shadow .12s, border-color .12s;
}

.so-learn-item:hover { box-shadow: var(--shadow); border-color: #c3d5ea; }

.so-learn-play {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid;
  place-items: center; color: #fff; font-size: 11px;
  background: linear-gradient(135deg, #4e79a7, #2b6cb0);
}

.so-learn-textwrap { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.so-learn-textwrap b { font-size: 14px; font-weight: 600; }

.so-learn-textwrap small { font-size: 12px; color: var(--ink2); }

.so-learn-dur {
  flex: 0 0 auto; font-size: 11.5px; color: var(--ink2);
  border: 1px solid var(--line); border-radius: 20px; padding: 3px 9px;
}

.ns-sec { margin-bottom: 44px; }

.ns-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }

.ns-sec-title { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); }

.ns-sec-sub { margin: 2px 0 0; font-size: 12.5px; color: var(--ink2); }

.ns-sec-title.ns-sec-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  cursor: pointer; user-select: none; border-radius: 6px;
  margin: -3px -6px; padding: 3px 6px;
  transition: color .12s, background .12s;
}

.ns-sec-title.ns-sec-toggle:hover { color: var(--ink); background: rgba(20,25,35,.05); }

.ns-sec-title.ns-sec-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ns-sec-caret { display: inline-flex; transition: transform .18s ease; }

.ns-sec.is-collapsed .ns-sec-caret { transform: rotate(-90deg); }

.ns-sec.is-collapsed .ns-sec-head { margin-bottom: 0; }

.ns-sec.is-collapsed .ns-sec-sub { display: none; }

.ns-sec.is-collapsed > :not(.ns-sec-head) { display: none; }

.ns-hero-holder { display: flex; flex-direction: column; gap: 10px; }

.ns-sec--hero .ns-ans { box-shadow: 0 4px 20px rgba(20,25,35,.06); }

.ns-hero-back {
  align-self: flex-start; background: none; border: none; padding: 2px 4px;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--accent);
  cursor: pointer; border-radius: 6px; transition: color .12s, background .12s;
}

.ns-hero-back:hover { color: #023248; background: #eef4f8; }

.ns-see-all {
  grid-area: link; justify-self: end;
  flex: 0 0 auto; background: none; border: none; padding: 2px 2px;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent);
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  border-radius: 6px; transition: color .12s, background .12s;
}

.ns-see-all:hover { color: #023248; background: #eef4f8; }

.ns-see-arrow { transition: transform .14s ease; }

.ns-see-all:hover .ns-see-arrow { transform: translateX(2px); }

.ns-list-lead { margin: 8px 0 0; font-size: 13.5px; color: var(--ink2); }

.ns-crumb {
  display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px;
  background: none; border: none; padding: 2px 6px 2px 2px;
  font: inherit; font-size: 12.5px; font-weight: 500; color: var(--accent);
  cursor: pointer; border-radius: 6px; transition: color .12s, background .12s;
}

.ns-crumb:hover { color: #023248; background: #eef4f8; }

.ns-crumb-arrow { transition: transform .14s ease; }

.ns-crumb:hover .ns-crumb-arrow { transform: translateX(-2px); }

.ns-collbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}

.ns-collbar-search {
  flex: 1 1 260px; min-width: 200px; max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 0 10px; height: 34px; transition: border-color .12s, box-shadow .12s;
}

.ns-collbar-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(5,98,138,.12); }

.ns-collbar-search-ico { display: inline-flex; color: var(--ink2); }

.ns-collbar-search-ico svg { width: 15px; height: 15px; }

.ns-collbar-input {
  flex: 1 1 auto; min-width: 0; border: none; outline: none; background: none;
  font: inherit; font-size: 13px; color: var(--ink);
}

.ns-collbar-input::placeholder { color: var(--ink2); }

.ns-collbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.ns-collbar-sort {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 0 8px 0 10px; height: 34px;
}

.ns-collbar-sort-ico { display: inline-flex; color: var(--ink2); }

.ns-collbar-sort-ico svg { width: 15px; height: 15px; }

.ns-collbar-select {
  border: none; outline: none; background: none; font: inherit; font-size: 13px;
  color: var(--ink); cursor: pointer; padding-right: 2px;
}

.ns-collbar-toggle {
  display: inline-flex; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden; height: 34px;
}

.ns-collbar-vbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; border: none; background: none; color: var(--ink2);
  cursor: pointer; transition: background .12s, color .12s;
}

.ns-collbar-vbtn + .ns-collbar-vbtn { border-left: 1px solid var(--line); }

.ns-collbar-vbtn svg { width: 15px; height: 15px; }

.ns-collbar-vbtn:hover { background: #eef4f8; color: var(--ink); }

.ns-collbar-vbtn.is-active { background: var(--accent); color: #fff; }

.ns-collbar-vbtn.is-active:hover { background: #023248; }

.ns-qs-group { margin-bottom: 34px; }

.ns-rec-group { margin-bottom: 30px; }

.ns-grid--insights { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.ns-insight {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  border-left: 3px solid var(--insight-color, #4e79a7);
  padding: 14px 16px; cursor: pointer; transition: box-shadow .12s, transform .12s;
}

.ns-insight:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.ns-insight-tag {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--insight-color, #4e79a7);
  background: color-mix(in srgb, var(--insight-color, #4e79a7) 12%, transparent);
  border-radius: 20px; padding: 2px 9px;
}

.ns-insight-val { font-size: 26px; font-weight: 700; margin: 8px 0 2px; letter-spacing: -.02em; }

.ns-insight-val.is-good { color: #1e7d43; }

.ns-insight-val.is-bad { color: #c0392b; }

.ns-insight-headline { font-size: 13.5px; font-weight: 600; color: var(--ink); }

.ns-insight-source { margin-top: 2px; font-size: 11.5px; color: var(--ink2); }

.ns-insight-note {
  margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink2); line-height: 1.35;
}

.ns-convo-grid {
  display: grid; grid-template-columns: minmax(0, 830px);
  gap: 16px;
}

.ns-convo-cell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 16px 14px; cursor: pointer; transition: box-shadow .12s, transform .12s;
}

.ns-convo-cell:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.ns-convo-head { display: flex; align-items: flex-start; gap: 11px; }

.ns-convo-avatar { flex: 0 0 auto; }

.ns-convo-avatar-disc {
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center;
}

.ns-convo-avatar-disc svg { width: 16px; height: 16px; }

.ns-convo-headtext { flex: 1 1 auto; min-width: 0; }

.ns-convo-title { font-size: 14px; font-weight: 600; color: var(--ink); }

.ns-convo-preview {
  margin-top: 2px; font-size: 12.5px; color: var(--ink2); line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ns-convo-time { flex: 0 0 auto; font-size: 11.5px; color: var(--ink2); white-space: nowrap; padding-top: 2px; }

.ns-convo-assets { margin-top: 12px; margin-left: 41px; }

.ns-convo-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }

.ns-convo-thumb {
  width: 92px; height: 58px; border-radius: 7px; overflow: hidden; position: relative;
  border: 1px solid var(--line); flex: 0 0 auto;
}

.ns-convo-thumb-img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block; }

.ns-scard .ns-card-name { padding-bottom: 6px; }

.ns-share-by { display: flex; align-items: center; gap: 7px; padding: 0 12px; }

.ns-share-by .ns-dl-avatar {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 9.5px; font-weight: 700;
}

.ns-share-by-text { font-size: 12px; color: var(--ink2); }

.ns-share-by-text b { color: var(--ink); font-weight: 600; }

.ns-share-meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 12px 12px;
}

.ns-share-chip {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0;
  font-size: 11px; font-weight: 600; color: #3b6a86;
  background: #eef4f8; border-radius: 20px; padding: 3px 9px 3px 7px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ns-share-chip svg { width: 12px; height: 12px; flex: 0 0 auto; }

.ns-share-chip--slack { color: #4a2f4d; background: #f3ecf4; }

.ns-share-chip--teams { color: #3b3f80; background: #ecedf7; }

.ns-share-when { flex: 0 0 auto; font-size: 11px; color: var(--ink2); white-space: nowrap; }

.ns-discover-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px 40px; margin-bottom: 30px;
}

.ns-discover-col { display: flex; flex-direction: column; }

.ns-discover-heading { margin: 0 0 10px; font-size: 15px; font-weight: 700; }

.ns-discover-link {
  font-size: 13.5px; color: var(--accent); text-decoration: none; padding: 5px 0;
  cursor: pointer; transition: color .12s;
}

.ns-discover-link:hover { color: #023248; text-decoration: underline; }

.ns-discover-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(135deg, #eef4f8, #e3edf5);
  border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; max-width: 640px;
}

.ns-discover-promo-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }

.ns-discover-promo-cta {
  flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--accent);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}

.ns-discover-promo-cta:hover { color: #023248; }

.ns-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(240px,1fr)); gap: 16px; }

.ns-grid--metrics { grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); }

.ns-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: box-shadow .12s, transform .12s;
  display: flex; flex-direction: column;
}

.ns-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.ns-card-thumb { height: 100px; background: #eef2f6; position: relative; overflow: hidden; }

.ns-grid .ns-card-thumb,
.ns-grid .ns-folder-thumb { aspect-ratio: 16 / 10; height: auto; }

.ns-card-thumb span { position: absolute; inset: 0; opacity: .82;
  background-image: linear-gradient(115deg, rgba(255,255,255,.35), rgba(255,255,255,0)); }

.ns-card-img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block; }

.ns-card-name {
  font-size: 14px; font-weight: 600; line-height: 1.3; padding: 11px 13px 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.ns-card-meta { font-size: 12px; color: var(--ink2); padding: 3px 13px 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.ns-coll-thumb { background: #dfe4ea; }

.ns-coll-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; }

.ns-coll-tile { position: relative; overflow: hidden; background: #eef2f6; }

.ns-coll-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

.ns-coll-badge { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 7px; background: rgba(20,30,45,.62); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; }

.ns-coll-badge svg { width: 15px; height: 15px; color: #fff; }

.ns-coll-glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }

.ns-coll-glyph svg { width: 40px; height: 40px; color: rgba(255,255,255,.92); }

.ns-cert { color: #1e7d43; font-weight: 700; }

.ns-empty { color: var(--ink2); font-size: 13px; padding: 16px; border: 1px dashed var(--line); border-radius: 9px; }

.ns-tk-home svg,
.ns-tkc svg,
.ns-tkc-modal-ov svg { width: 16px; height: 16px; }

.user-main.is-tk-home-main { display: flex; justify-content: center; overflow: hidden; }

.ns-tk-home {
  width: 100%; max-width: 1000px; margin: 0 auto; height: 100%;
  display: flex; flex-direction: column;
}

.ns-tk-home-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 34px;
  /* 40px top matches the Explore masthead so the title sits at the same height
     as other Tableau pages (Erick, Sep 10). */
  padding: 40px 24px 18px;
  /* The body still scrolls, but the scrollbar is hidden so the page reads as a
     clean single surface (Erick, Sep 9) — the soft fade below the content and
     above the composer is the only cue that more sits off-screen. */
  scrollbar-width: none;
}

.ns-tk-home-body::-webkit-scrollbar { width: 0; height: 0; display: none; }

.ns-tk-home-body > .ns-tk-top,
.ns-tk-home-body > .ns-tk-recs {
  animation: tkRise .42s cubic-bezier(.22, .61, .36, 1) both;
}

.ns-tk-home-body > .ns-tk-recs { animation-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
  .ns-tk-home-body > .ns-tk-top,
  .ns-tk-home-body > .ns-tk-recs { animation: none; }
}

.ns-tk-home-foot {
  position: relative; flex: none; padding: 14px 24px 22px;
  background: var(--f-bg, #fbfbfa);
}

.ns-tk-home-foot::before {
  content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 28px;
  background: linear-gradient(to top, var(--f-bg, #fbfbfa), rgba(251, 251, 250, 0));
  pointer-events: none;
}

.ns-tk-home-title {
  /* Matches the Explore page's .ns-greet typography (Erick, Sep 10):
     30px, weight 300, -.015em tracking. */
  font-size: 30px; font-weight: 300; letter-spacing: -.015em;
  color: var(--f-text); margin: 0; text-align: center;
}

.ns-tk-top {
  display: flex; align-items: stretch; gap: 40px; flex: none;
  /* A little breathing room above and below the hero so it doesn't crowd the
     top edge or the Suggestions below it (Erick, Sep 10). */
  margin: 14px 0 18px;
}

.ns-tk-hero { flex: 0 0 auto; display: flex; flex-direction: column; }

.ns-tk-hero-row { display: flex; align-items: center; gap: 40px; flex: 1 1 auto; }

.ns-tk-sec-head { display: flex; align-items: center; gap: 7px; margin-bottom: 24px; flex: none; }

.ns-tk-sec-title { font-size: 17px; font-weight: 600; color: var(--f-text); letter-spacing: -.005em; }

.ns-tk-info { position: relative; display: inline-flex; align-items: center; justify-content: center; color: var(--f-faint); cursor: default; }

.ns-tk-info:hover,
.ns-tk-info:focus-visible { color: var(--f-muted); outline: none; }

.ns-tk-info svg { width: 15px; height: 15px; }

.ns-tk-tip {
  position: absolute; bottom: calc(100% + 10px);
  width: max-content; max-width: 250px;
  background: var(--card, #fff); color: var(--f-text);
  border: 1px solid var(--f-line); border-radius: 10px;
  padding: 10px 12px; font-size: 12px; font-weight: 400; line-height: 1.45; text-align: left;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .05);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease; z-index: 60;
}

.ns-tk-tip--start { left: -6px; }

.ns-tk-tip--end { right: -6px; }

.ns-tk-tip::after {
  content: ""; position: absolute; top: 100%;
  border: 6px solid transparent; border-top-color: var(--card, #fff);
}

.ns-tk-tip--start::after { left: 12px; }

.ns-tk-tip--end::after { right: 12px; }

.ns-tk-info:hover .ns-tk-tip,
.ns-tk-info:focus-visible .ns-tk-tip {
  opacity: 1; visibility: visible; transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ns-tk-tip { transition: none; }
}

.ns-tk-health { flex: none; display: flex; align-items: center; justify-content: center; }

.ns-tk-kpis {
  flex: 0 0 auto;
  display: grid; grid-template-columns: auto auto; gap: 34px 52px;
}

.ns-tk-kpi { cursor: default; }

.ns-tk-kpi-val { font-size: 27px; font-weight: 600; color: var(--f-text); letter-spacing: -.01em; line-height: 1.1; }

.ns-tk-kpi-label { font-size: 14px; font-weight: 500; color: var(--f-muted); margin-top: 6px; }

.ns-tk-ring { position: relative; width: 160px; height: 160px; }

.ns-tk-ring .ns-tk-ring-svg { width: 160px; height: 160px; display: block; transform: rotate(-90deg); transform-origin: 50% 50%; }

.ns-tk-ring-track { fill: none; stroke: var(--f-line); stroke-width: 8; }

.ns-tk-ring-fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s cubic-bezier(.22,1,.36,1); }

.ns-tk-ring-fill--green { stroke: #1e7d43; }

.ns-tk-ring-fill--amber { stroke: #cb8a21; }

.ns-tk-ring-fill--red { stroke: #d64545; }

.ns-tk-ring-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
}

.ns-tk-ring-val { font-size: 38px; font-weight: 600; color: var(--f-text); letter-spacing: -.01em; line-height: 1; }

.ns-tk-ring-label { font-size: 12px; font-weight: 500; color: var(--f-muted); }

.ns-tk-rag { font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 11px; white-space: nowrap; }

.ns-tk-rag--green { color: #1e7d43; background: rgba(30,125,67,.12); }

.ns-tk-rag--amber { color: #9a6212; background: rgba(203,138,33,.14); }

.ns-tk-rag--red { color: #b3261e; background: rgba(214,69,69,.14); }

.ns-tk-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; align-items: stretch;
}

.ns-tk-cards .ns-tk-card { min-height: 248px; }

.ns-tk-card {
  background: var(--card); border: 1px solid var(--f-line); border-radius: var(--radius);
  padding: 16px 16px 18px; display: flex; flex-direction: column;
}

.ns-tk-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

.ns-tk-card-title { font-size: 13.5px; font-weight: 600; color: var(--f-text); }

.ns-tk-link {
  border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 500;
  color: var(--accent); cursor: pointer; padding: 2px 4px; border-radius: 6px;
}

.ns-tk-link:hover { background: var(--f-rail-hover); }

.ns-tk-pill {
  flex: none; font-size: 11px; font-weight: 600; color: #1e7d43;
  background: rgba(30,125,67,.12); border-radius: 999px; padding: 3px 11px;
}

.ns-tk-pill--syncing { color: #9a6212; background: rgba(203,138,33,.14); }

.ns-tk-pill--draft { color: var(--f-muted); background: var(--f-rail-hover); }

.ns-tk-og-list { display: flex; flex-direction: column; gap: 2px; }

.ns-tk-og-row {
  position: relative;
  display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 12px 12px; border-radius: 12px;
  transition: background .12s;
}

.ns-tk-og-row:not(:last-child)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 1px; background: var(--f-line);
}

.ns-tk-og-row:hover { background: var(--f-rail-hover); }

.ns-tk-og-ico {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(5,98,138,.10); color: var(--accent);
}

.ns-tk-og-ico svg { width: 19px; height: 19px; }

.ns-tk-og-body { flex: 1 1 auto; min-width: 0; }

.ns-tk-og-name { font-size: 13.5px; font-weight: 600; color: var(--f-text); }

.ns-tk-og-meta { font-size: 12px; color: var(--f-muted); margin-top: 2px; }

.ns-tk-og-more { display: inline-flex; color: var(--f-faint); flex: none; }

.ns-tk-graphs-actions { display: flex; align-items: center; gap: 6px; }

.ns-tk-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 30px; height: 30px; border: 1px solid var(--f-line); border-radius: 8px;
  background: var(--card); color: var(--f-muted); cursor: pointer;
  transition: box-shadow .12s, border-color .12s, color .12s;
}

.ns-tk-iconbtn:hover { color: var(--accent); box-shadow: var(--shadow); border-color: transparent; }

.ns-tk-iconbtn svg { width: 16px; height: 16px; }

.ns-tk-sum-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--f-text); }

.ns-tk-sum-pill svg { width: 15px; height: 15px; color: var(--accent); }

.ns-tk-sum-empty {
  flex: 1 1 auto; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; gap: 8px; padding: 12px 20px 20px;
}

.ns-tk-sum-empty-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(5,98,138,.08); color: var(--accent); margin-bottom: 2px;
}

.ns-tk-sum-empty-ic svg { width: 19px; height: 19px; }

.ns-tk-sum-empty-t { font-size: 15px; font-weight: 600; color: var(--f-text); }

.ns-tk-sum-empty-s { font-size: 12.5px; color: var(--f-muted); line-height: 1.5; max-width: 300px; }

.ns-tk-hub { padding: 0 0 80px; background: none; border: 0; border-radius: 0; margin-top: 32px; }

@media (max-height: 760px) {
  .ns-tk-home-body { padding: 18px 24px 14px; gap: 28px; }
  .ns-tk-ring, .ns-tk-ring .ns-tk-ring-svg { width: 138px; height: 138px; }
  .ns-tk-ring-val { font-size: 33px; }
  .ns-tk-top { gap: 24px; }
  .ns-tk-cov { min-width: 260px; padding-left: 24px; }
  .ns-tk-cov-list { gap: 10px; }
}

.ns-tk-hub-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0;
}

.ns-tk-hub-tabs { display: flex; align-items: center; gap: 6px; }

.ns-tk-hub-tab {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: none;
  font: inherit; font-size: 13px; font-weight: 500; color: var(--f-muted);
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: background .12s, color .12s;
}

.ns-tk-hub-tab:hover { background: var(--f-rail-hover); color: var(--f-text); }

.ns-tk-hub-tab.is-active { background: #eaeef3; color: var(--f-text); font-weight: 600; }

.ns-tk-hub-tab-count {
  font-size: 11px; font-weight: 600; color: var(--f-muted);
  background: var(--f-rail-hover); border-radius: 999px; padding: 1px 8px;
}

.ns-tk-hub-tab.is-active .ns-tk-hub-tab-count { color: var(--accent); background: rgba(5,98,138,.14); }

.ns-tk-hub-actions { display: flex; align-items: center; gap: 6px; flex: none; }

.ns-tk-hub-panel { padding: 26px 0 0; }

.ns-tk-hub-panel .ns-tk-sug-foot { margin-top: 16px; }

.ns-tk-act { display: flex; flex-direction: column; gap: 2px; }

.ns-tk-act-row {
  position: relative;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 12px 12px; border-radius: 12px; transition: background .12s;
}

.ns-tk-act-row:not(:last-child)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 1px; background: var(--f-line);
}

.ns-tk-act-row:hover { background: var(--f-rail-hover); }

.ns-tk-act-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }

.ns-tk-act-body { min-width: 0; }

.ns-tk-act-text { font-size: 13.5px; color: var(--f-text); line-height: 1.4; }

.ns-tk-act-meta { font-size: 12px; color: var(--f-muted); margin-top: 2px; }

.ns-tk-sug-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; padding: 0 12px; }

.ns-tk-sug-title { font-size: 13px; font-weight: 600; color: var(--f-text); }

.ns-tk-sug-total { font-size: 11.5px; font-weight: 600; color: var(--f-muted); background: var(--f-rail-hover); border-radius: 999px; padding: 2px 9px; }

.ns-tk-sug-headright { display: flex; align-items: center; gap: 10px; }

.ns-tk-sug-viewmore { display: block; width: 100%; margin-top: 8px; padding: 10px; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--accent); text-align: center; border-radius: 10px; cursor: pointer; transition: background .12s; }

.ns-tk-sug-viewmore:hover { background: var(--f-rail-hover); }

.ns-tk-sug-scroll {
  max-height: 288px; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: var(--f-field-border, #d8dde3) transparent;
  overscroll-behavior: contain;
}

.ns-tk-sug-scroll::-webkit-scrollbar { width: 8px; }

.ns-tk-sug-scroll::-webkit-scrollbar-thumb { background: var(--f-field-border, #d8dde3); border-radius: 999px; border: 2px solid var(--f-bg); }

.ns-tk-sug-item {
  position: relative;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 11px 12px; border-radius: 12px; transition: background .12s;
}

.ns-tk-sug-item:not(:last-child)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 1px; background: var(--f-line);
}

.ns-tk-sug-item:hover { background: var(--f-rail-hover); }

.ns-tk-sug-idot { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.ns-tk-sug-idot--desc { background: #e0a52b; }

.ns-tk-sug-idot--name { background: #3f7fd6; }

.ns-tk-sug-idot--src { background: #c0603a; }

.ns-tk-sug-ibody { flex: 1 1 auto; min-width: 0; }

.ns-tk-sug-iname { font-size: 13.5px; font-weight: 600; color: var(--f-text); }

.ns-tk-sug-isub { font-size: 12px; color: var(--f-muted); margin-top: 2px; }

.ns-tk-sug-itag { font-size: 12px; color: var(--f-muted); flex: none; white-space: nowrap; }

.ns-tk-sug-ichev { display: inline-flex; color: var(--f-faint); flex: none; }

.ns-tk-sug-foot { display: flex; align-items: center; margin-top: 14px; padding: 0 12px; }

.ns-tk-optimize {
  border: 0; background: var(--accent); color: #fff; font: inherit;
  font-size: 12.5px; font-weight: 600; border-radius: 8px; padding: 8px 16px; cursor: pointer;
  transition: background .12s;
}

.ns-tk-optimize:hover { background: #023248; }

.ns-tk-optimize:disabled { background: #1a9e6b; cursor: default; }

.ns-tk-sug-item.is-resolved { opacity: .5; transition: opacity .3s; }

.ns-tk-sug-item.is-resolved .ns-tk-sug-iname { text-decoration: line-through; }

.ns-tk-sug-item.is-resolved .ns-tk-sug-itag { color: #1a9e6b; }

.ns-tk-ask { display: flex; flex-direction: column; gap: 16px; }

.ns-tk-composer { position: relative; }

.ns-tk-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.ns-tk-composer {
  display: flex; align-items: center; gap: 12px;
  background: var(--f-field-bg); border: 1px solid var(--f-field-border);
  /* Same size as every other composer (Home hero + TK canvas measure 72px tall,
     radius 36px): 36px = half the 72px outer height, concentric with the 38px
     round send button (17px gap + 19px radius) — a true full-round pill. */
  border-radius: 36px; min-height: 72px; padding: 0 16px 0 20px;
}

.ns-tk-comp-plus,
.ns-tk-comp-bulb { display: inline-flex; color: var(--f-muted); flex: none; }

.ns-tk-comp-input { flex: 1 1 auto; border: 0; background: none; font: inherit; font-size: 15px; color: var(--f-text); outline: none; }

.ns-tk-comp-input::placeholder { color: var(--f-muted); }

.ns-tk-comp-send {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--accent);
  color: #fff; cursor: pointer; transition: background .12s;
}

.ns-tk-comp-send:hover { background: #023248; }

.ns-tk-comp-send svg { width: 15px; height: 15px; }

.ns-tk-gtabs { display: flex; align-items: center; gap: 12px; }

.ns-tk-gtabs-list { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; flex-wrap: wrap; min-width: 0; }

.ns-tk-gtab {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--f-line);
  background: var(--card); font: inherit; font-size: 14px; font-weight: 500; color: var(--f-muted);
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s;
}

.ns-tk-gtab:hover { background: var(--f-rail-hover); color: var(--f-text); }

.ns-tk-gtab.is-active { background: #eaeef3; border-color: transparent; color: var(--f-text); font-weight: 600; }

.ns-tk-gtab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--f-faint); flex: none; }

.ns-tk-gtab-dot--green { background: #1e7d43; }

.ns-tk-gtab-dot--amber { background: #cb8a21; }

.ns-tk-gtab-dot--red { background: #d64545; }

.ns-tk-gtab-name { white-space: nowrap; }

.ns-tk-gtabs-actions { display: flex; align-items: center; gap: 8px; flex: none; }

.ns-tk-gtabs-btn {
  border: 1px solid var(--f-line); background: var(--card); font: inherit; font-size: 14px; font-weight: 600;
  color: var(--accent); padding: 8px 16px; border-radius: 999px; cursor: pointer;
  transition: background .12s, border-color .12s;
}

.ns-tk-gtabs-btn:hover { background: rgba(5, 98, 138, .08); border-color: rgba(5, 98, 138, .35); }

.ns-tk-gtabs-open {
  display: inline-flex; align-items: center; gap: 7px; border: 0;
  background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .12s, box-shadow .12s;
}

.ns-tk-gtabs-open svg { width: 15px; height: 15px; }

.ns-tk-gtabs-open:hover { background: #04506f; }

.ns-tk-gtabs-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ns-tk-cov { flex: 1 1 auto; min-width: 320px; border-left: 1px solid var(--f-line); padding-left: 32px; }

.ns-tk-cov-list { display: flex; flex-direction: column; gap: 13px; }

.ns-tk-cov-row { display: flex; flex-direction: column; gap: 6px; }

.ns-tk-cov-head { display: flex; align-items: center; gap: 8px; }

.ns-tk-cov-ico { flex: none; display: inline-flex; color: var(--f-faint); }

.ns-tk-cov-ico svg { width: 16px; height: 16px; }

.ns-tk-cov-label { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 500; color: var(--f-muted); }

.ns-tk-cov-count { flex: none; font-size: 13px; font-weight: 600; color: var(--f-faint); font-variant-numeric: tabular-nums; }

.ns-tk-cov-meter { height: 6px; border-radius: 999px; background: var(--f-line); overflow: hidden; }

.ns-tk-cov-fill { display: block; height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.22,1,.36,1); }

.ns-tk-cov-fill--green { background: #1e7d43; }

.ns-tk-cov-fill--amber { background: #cb8a21; }

.ns-tk-cov-fill--red { background: #d64545; }

.ns-tk-recs { display: flex; flex-direction: column; flex: none; }

.ns-tk-recs-head { display: flex; align-items: center; padding: 0 2px 18px; }

.ns-tk-recs-title { font-size: 17px; font-weight: 600; color: var(--f-text); }

.ns-tk-rec-list { display: flex; flex-direction: column; }

.ns-tk-rec-row {
  position: relative; display: flex; align-items: center; gap: 14px; cursor: pointer;
  padding: 15px 10px; border-radius: 12px; transition: background .12s;
}

.ns-tk-rec-row:not(:last-child)::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 0;
  height: 1px; background: var(--f-line);
}

.ns-tk-rec-row:hover { background: var(--f-rail-hover); }

.ns-tk-rec-ico {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(5, 98, 138, .10); color: var(--accent);
}

.ns-tk-rec-ico svg { width: 18px; height: 18px; }

.ns-tk-rec-body { flex: 1 1 auto; min-width: 0; }

.ns-tk-rec-title { font-size: 16px; font-weight: 600; color: var(--f-text); }

.ns-tk-rec-desc {
  font-size: 14px; color: var(--f-muted); margin-top: 3px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.ns-tk-rec-desc b { font-weight: 600; color: var(--f-text); }

.ns-tk-rec-action {
  flex: none; border: 1px solid var(--f-line); background: var(--card);
  font: inherit; font-size: 14px; font-weight: 600; color: var(--accent);
  padding: 8px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s;
}

.ns-tk-rec-action:hover { background: rgba(5, 98, 138, .08); border-color: rgba(5, 98, 138, .35); }

.user-main.is-tk-canvas-main { overflow: hidden; display: flex; padding: 0; }

.ns-tkc { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.ns-tkc-convnav { flex: none; }

.ns-tkc-head {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 15px 20px; border-bottom: 1px solid var(--f-line);
}

.ns-tkc-head-l { display: flex; align-items: center; gap: 10px; flex: none; }

.ns-tkc-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 1px solid var(--f-line); border-radius: 999px;
  background: var(--f-field-bg, #fff); color: var(--f-muted); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ns-tkc-back:hover { background: var(--f-rail-hover); color: var(--f-text); }

.ns-tkc-back svg { width: 15px; height: 15px; }

.ns-tkc-gname { font-size: 15px; font-weight: 600; color: var(--f-text); }

.ns-tkc-icobtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--f-line); border-radius: 999px;
  background: var(--f-field-bg, #fff); color: var(--f-muted); cursor: pointer;
}

.ns-tkc-icobtn:hover { background: var(--f-rail-hover); color: var(--f-text); }

.ns-tkc-icobtn.active { background: var(--f-rail-active); border-color: transparent; color: var(--accent); }

.ns-tkc-agentbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 1px solid var(--f-line); border-radius: 999px;
  background: var(--f-field-bg, #fff); color: var(--f-muted); cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.ns-tkc-agentbtn:hover { background: var(--f-rail-hover); color: var(--f-text); }

.ns-tkc-agentbtn.active { background: rgba(5,98,138,.12); border-color: transparent; color: var(--accent); }

.ns-tkc-agentbtn svg { width: 19px; height: 19px; }

.ns-tkc-search {
  position: relative;
  flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 120px; max-width: 340px;
  border: 1px solid var(--f-line); border-radius: 999px; padding: 7px 14px;
  background: var(--f-bg); color: var(--f-faint);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.ns-tkc-search:focus-within {
  border-color: var(--accent); background: var(--card);
  box-shadow: 0 0 0 3px rgba(5,98,138,.12);
}

.ns-tkc-search input { flex: 1 1 auto; border: 0; background: none; font: inherit; font-size: 13px; color: var(--f-text); outline: none; }

.ns-tkc-search input::placeholder { color: var(--f-faint); }

.ns-tkc-search-results {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: var(--card); border: 1px solid var(--f-line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px; max-height: 320px; overflow-y: auto;
}

.ns-tkc-sres {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: none; font: inherit; color: var(--f-text);
  padding: 8px 8px; border-radius: 8px; cursor: pointer; text-align: left;
}

.ns-tkc-sres:hover { background: var(--f-rail-hover); }

.ns-tkc-sres .ns-tkc-node-ico { margin-bottom: 0; flex: none; }

.ns-tkc-sres-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ns-tkc-sres-type { margin-left: auto; flex: none; font-size: 11px; color: var(--f-muted); }

.ns-tkc-sres-empty { padding: 10px 8px; font-size: 13px; color: var(--f-muted); }

.ns-tkc-tr { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; }

.ns-tkc-seg { display: inline-flex; background: var(--f-rail-hover); border-radius: 999px; padding: 3px; }

.ns-tkc-seg-btn {
  border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500;
  color: var(--f-muted); padding: 6px 16px; border-radius: 999px; cursor: pointer;
}

.ns-tkc-seg-btn:hover { color: var(--f-text); }

.ns-tkc-seg-btn.active { background: var(--card); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.ns-tkc-pluswrap { position: relative; }

.ns-tkc-plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 0; border-radius: 999px; background: var(--accent);
  color: #fff; cursor: pointer;
}

.ns-tkc-plus:hover { background: #023248; }

.ns-tkc-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 232px;
  background: var(--card); border: 1px solid var(--f-line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 6px;
}

.ns-tkc-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: 0; background: none; font: inherit; font-size: 13px; color: var(--f-text);
  padding: 9px 10px; border-radius: 8px; cursor: pointer; text-align: left;
}

.ns-tkc-menu-item:hover { background: var(--f-rail-hover); }

.ns-tkc-menu-ico { display: inline-flex; color: var(--f-muted); flex: none; }

.ns-tkc-menu-chev { margin-left: auto; display: inline-flex; color: var(--f-faint); }

.ns-tkc-view { align-items: stretch; padding: 16px; background: var(--bg); }

.ns-tkc-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; max-width: none; width: 100%; border: 1px solid rgba(0,0,0,.06); }

.ns-tkc-cardbody { flex: 1 1 auto; display: flex; min-height: 0; min-width: 0; position: relative; }

.ns-tkc-graph { flex: 1 1 auto; position: relative; overflow: hidden; }

.ns-tkc-canvas {
  position: absolute; inset: 0; overflow: hidden; cursor: grab;
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,.05) 1px, transparent 0) 0 0 / 26px 26px,
    #fff;
}

.ns-tkc-canvas.grabbing { cursor: grabbing; }

.ns-tkc-layer { position: absolute; top: 0; left: 0; transform-origin: 0 0; }

.ns-tkc-edges { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; z-index: -1; }

.ns-tkc-edge { stroke: rgba(5,98,138,.24); stroke-width: 1.1; fill: none; transition: opacity .3s ease, stroke .3s ease, stroke-width .3s ease; }

.ns-tkc-layer.has-sel .ns-tkc-edge { opacity: .15; }

.ns-tkc-layer.has-sel .ns-tkc-edge.sel-rel {
  opacity: 1; stroke: var(--accent); stroke-width: 2;
}

.ns-tkc-edge-pulse {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(5,98,138,.85));
}

.ns-tkc-layer .ns-tkc-edge.hover-rel { opacity: 1; stroke: rgba(5,98,138,.6); }

.ns-tkc-edge-chip {
  position: absolute; transform: translate(-50%, -50%);
  background: var(--card); border: 1px solid var(--f-line); border-radius: 999px;
  padding: 3px 10px; font-size: 10.5px; font-weight: 600; color: var(--f-muted);
  white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.08); pointer-events: none;
  opacity: 0; transition: opacity .2s ease-out;
}

.ns-tkc-layer.has-sel .ns-tkc-edge-chip.sel-rel {
  opacity: 1; border-color: var(--accent); color: var(--accent);
}

.ns-tkc-edge-chip.hover-rel { opacity: 1; }

.ns-tkc-node {
  position: absolute; width: 140px; box-sizing: border-box;
  background: var(--card); border: 1px solid var(--f-line); border-radius: 12px;
  padding: 12px 12px 13px; box-shadow: 0 1px 3px rgba(0,0,0,.07);
  cursor: grab; user-select: none;
  transition: opacity .5s ease, transform .5s ease, border-color .15s ease-out, box-shadow .15s ease-out;
}

.ns-tkc-node:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }

.ns-tkc-node.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(5,98,138,.28); }

.ns-tkc-layer.is-entering .ns-tkc-node { opacity: 0; transform: scale(.8); }

.ns-tkc-layer.is-entering .ns-tkc-edge { opacity: 0; }

.ns-tkc-node-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; margin-bottom: 8px;
}

.ns-tkc-node-ico svg { width: 15px; height: 15px; }

.ns-tkc-node-ico img { width: 15px; height: 15px; object-fit: contain; }

.ns-tkc-node-ico.workbook { background: rgba(120,87,214,.14); color: #7857d6; }

.ns-tkc-node-ico.datasource { background: rgba(0,0,0,.05); color: #3f7fd6; }

.ns-tkc-node-name { font-size: 12.5px; font-weight: 600; color: var(--f-text); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ns-tkc-node-type { font-size: 11px; color: var(--f-muted); margin-top: 2px; }

.ns-tkc-node.is-context { overflow: visible; }

.ns-tkc-node-scstack {
  position: absolute; inset: 0; z-index: -1;
  border-radius: 12px;
  background: var(--card); border: 1px solid var(--f-line);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  transform: translate(5px, 6px);
}

.ns-tkc-node-scstack.two { transform: translate(10px, 12px); }

.ns-tkc-node-scico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; margin-bottom: 8px;
  background: rgba(5,98,138,.12); color: var(--accent);
}

.ns-tkc-node-scico svg { width: 15px; height: 15px; }

.ns-tkc-node-scbadge {
  position: absolute; top: 8px; right: 8px;
  min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(5,98,138,.12); color: var(--accent);
  font-size: 11.5px; font-weight: 700; line-height: 1;
}

.ns-tkc-node-scbadge.bump { animation: nsTkcBadgeBump .32s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .ns-tkc-node-scbadge.bump { animation: none; }
}

.ns-tkc-node.is-context.is-added::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 132px; height: 132px; margin: -66px 0 0 -66px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,98,138,.34) 0%, rgba(5,98,138,.2) 42%, rgba(5,98,138,0) 72%);
  pointer-events: none; z-index: -2;
  /* .55s delay lets the camera pan settle before the ripple starts; `both`
     fill keeps ::after invisible (opacity 0) both before and after the run. */
  animation: nsTkcCtxRipple 4.2s cubic-bezier(0.05, 0.9, 0.1, 1) .55s both;
}

@media (prefers-reduced-motion: reduce) {
  .ns-tkc-node.is-context.is-added::after { animation: none; display: none; }
}

.ns-tkc-graph.is-thinking .ns-tkc-node {
  animation: nsTkcNodePulse 1.6s ease-in-out infinite;
}

.ns-tkc-graph.is-thinking .ns-tkc-edge {
  stroke: rgba(5,98,138,.5);
  stroke-dasharray: 5 7;
  animation: nsTkcEdgeFlow 1s linear infinite;
}

.ns-tkc-graph.is-thinking::before {
  content: "";
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: rgba(232,236,241,.5);
  animation: nsTkcVeilIn .5s ease both;
}

.ns-tkc-graph.is-thinking::after {
  content: "";
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 38%, rgba(144,208,254,.22) 50%, transparent 62%
  );
  background-size: 240% 100%;
  animation: nsTkcScan 1.9s ease-in-out infinite;
}

.ns-tkc-graph-loading {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 9;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--f-line); border-radius: 999px;
  box-shadow: var(--shadow); padding: 12px 24px 12px 18px;
  font-size: 15px; font-weight: 600; color: var(--f-text);
  animation: nsTkcChipIn .22s ease both;
}

.ns-tkc-graph-loading .typing-loader { transform: scale(1.05); transform-origin: left center; }

@media (prefers-reduced-motion: reduce) {
  .ns-tkc-graph.is-thinking .ns-tkc-node,
  .ns-tkc-graph.is-thinking .ns-tkc-edge,
  .ns-tkc-graph.is-thinking::after,
  .ns-tkc-graph.is-thinking::before,
  .ns-tkc-graph-loading { animation: none; }
  .ns-tkc-graph.is-thinking::after { display: none; }
  /* Entrance reveal: skip the bloom-outward fade/scale and show the graph
     already in place — the chip above still marks the loading moment. */
  .ns-tkc-node, .ns-tkc-edge { transition: none; }
  .ns-tkc-layer.is-entering .ns-tkc-node,
  .ns-tkc-layer.is-entering .ns-tkc-edge { opacity: 1; transform: none; }
  .ns-tkc-detail { animation: none; }
}

.ns-tkc-entity {
  position: absolute; left: 16px; bottom: 16px; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--f-line); border-radius: 9px;
  padding: 7px 12px; font-size: 11px; font-weight: 600; letter-spacing: .04em;
  color: var(--f-muted); box-shadow: var(--shadow);
}

.ns-tkc-entity-dot { width: 9px; height: 9px; border-radius: 50%; background: #7857d6; }

.ns-tkc-entity svg { width: 13px; height: 13px; }

.ns-tkc-zoom {
  position: absolute; right: 16px; bottom: 16px; z-index: 5; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--f-line); border-radius: 10px;
  box-shadow: var(--shadow); overflow: hidden;
}

.ns-tkc-zoom button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 0; background: none; color: var(--f-muted); cursor: pointer;
  border-bottom: 1px solid var(--f-line);
}

.ns-tkc-zoom button:last-child { border-bottom: 0; }

.ns-tkc-zoom button:hover { background: var(--f-rail-hover); color: var(--f-text); }

.ns-tkc-detail {
  position: absolute; top: 16px; right: 16px; bottom: 16px; width: 305px; z-index: 8;
  background: var(--card); border: 1px solid var(--f-line); border-radius: 12px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
  animation: nsTkcDetailIn .18s ease-out both;
}

.ns-tkc-detail-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; }

.ns-tkc-detail-name { font-size: 14px; font-weight: 600; color: var(--f-text); line-height: 1.3; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ns-tkc-detail-x { display: inline-flex; border: 0; background: none; color: var(--f-muted); cursor: pointer; padding: 2px; flex: none; }

.ns-tkc-detail-x:hover { color: var(--f-text); }

.ns-tkc-detail-tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--f-line); }

.ns-tkc-dtab {
  border: 0; background: none; font: inherit; font-size: 12px; font-weight: 500;
  color: var(--f-muted); padding: 8px 8px 10px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}

.ns-tkc-dtab.active { color: var(--accent); border-bottom-color: var(--accent); }

.ns-tkc-detail-body { flex: 1 1 auto; overflow: auto; padding: 14px; }

.ns-tkc-field { margin-bottom: 18px; }

.ns-tkc-flabel { font-size: 12.5px; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--f-text); margin-bottom: 5px; }

.ns-tkc-fval { font-size: 14px; color: var(--f-muted); line-height: 1.5; }

.ns-tkc-fval.muted { color: var(--f-faint); font-style: italic; }

.ns-tkc-fval.ns-tkc-owner { display: flex; align-items: center; gap: 9px; }

.ns-tkc-owner-av {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  object-fit: cover; object-position: 76% 34%;
  border: 1px solid var(--f-line);
}

.ns-tkc-fval.ns-tkc-flink { color: #3f7fd6; }

.ns-tkc-cert {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 2px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--f-rail-hover); color: var(--f-text); font-size: 13px; font-weight: 500;
}

.ns-tkc-cert-dot { width: 7px; height: 7px; border-radius: 50%; background: #9aa4b2; flex: none; }

.ns-tkc-cert.is-cert .ns-tkc-cert-dot { background: #3aa76d; }

.ns-tkc-empty-sm { font-size: 12.5px; color: var(--f-muted); line-height: 1.5; }

.ns-tkc-rel {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--f-text); padding: 8px 10px; border-radius: 8px;
  background: var(--f-bg); border: 1px solid var(--f-line); margin-bottom: 6px;
}

.ns-tkc-rel .ns-tkc-node-ico { width: 24px; height: 24px; margin-bottom: 0; flex: none; }

.ns-tkc-rel-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ns-tkc-sc-count { font-size: 15px; font-weight: 700; color: var(--f-text); margin: 2px 0 12px; }

.ns-tkc-sc-list { display: flex; flex-direction: column; gap: 10px; }

.ns-tkc-sc-card {
  padding: 13px 15px; border-radius: 12px;
  background: var(--f-bg); border: 1px solid var(--f-line);
  cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease;
}

.ns-tkc-sc-card:hover { border-color: var(--f-line-strong, #d5dae2); box-shadow: 0 1px 3px rgba(16,24,40,.06); }

.ns-tkc-sc-name { font-size: 12.5px; font-weight: 600; color: var(--f-text); line-height: 1.3; margin-bottom: 4px; }

.ns-tkc-sc-desc {
  font-size: 13px; color: var(--f-muted); line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}

.ns-tkc-sc-add {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  padding: 7px 14px; border-radius: 10px; cursor: pointer;
  border: 1px dashed var(--f-line-strong, #cdd3dc); background: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--accent);
}

.ns-tkc-sc-add:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }

.ns-tkc-sc-add svg { width: 14px; height: 14px; }

.ns-tkc-stmt-head { gap: 10px; }

.ns-tkc-stmt-back,
.ns-tkc-stmt-menu {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: none; color: var(--f-muted); cursor: pointer;
  padding: 2px; flex: none; border-radius: 6px;
}

.ns-tkc-stmt-back:hover,
.ns-tkc-stmt-menu:hover { color: var(--f-text); background: var(--f-rail-hover); }

.ns-tkc-stmt-head .ns-tkc-detail-name { flex: 1 1 auto; min-width: 0; }

.ns-tkc-stmt-title { font-size: 15px; font-weight: 700; color: var(--f-text); margin: 2px 0 16px; }

.ns-tkc-stmt-label { font-size: 13px; font-weight: 600; color: var(--f-muted); margin: 0 0 7px; }

.ns-tkc-stmt-scope {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  padding: 12px 14px; border-radius: 12px; background: var(--f-rail-hover);
}

.ns-tkc-stmt-scope .ns-tkc-node-ico { width: 34px; height: 34px; margin-bottom: 0; flex: none; }

.ns-tkc-stmt-scope-tx { display: flex; flex-direction: column; min-width: 0; }

.ns-tkc-stmt-scope-name { font-size: 15px; font-weight: 600; color: var(--f-text); }

.ns-tkc-stmt-scope-sub { font-size: 13px; color: var(--f-muted); }

.ns-tkc-stmt-card { padding: 4px 16px 16px; border-radius: 12px; background: var(--f-rail-hover); }

.ns-tkc-stmt-card p { font-size: 14px; color: var(--f-text); line-height: 1.55; margin: 12px 0 0; }

.ns-tkc-stmt-card p:first-child { margin-top: 14px; }

.ns-tkc-stmt-calc-label { font-size: 13px; font-weight: 600; color: var(--f-muted); margin: 16px 0 8px; }

.ns-tkc-stmt-formula {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.5; color: var(--f-text);
  padding: 11px 13px; border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 9%, var(--f-bg));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  overflow-wrap: anywhere;
}

.ns-tkc-stmt-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 6px; margin-left: 2px;
  border-radius: 9px; font-size: 11px; font-weight: 700;
  color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.ns-tkc-stmt-chunk {
  font-size: 13.5px; color: var(--f-text); line-height: 1.5;
  padding: 12px 14px; border-radius: 10px; margin-bottom: 8px;
  background: var(--f-rail-hover); border: 1px solid var(--f-line);
}

.ns-tkc-stmt-chunk:last-child { margin-bottom: 0; }

.ns-tkc-explorer { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; min-height: 0; }

.ns-tkc-exp-tb { display: flex; align-items: center; gap: 12px; flex: none; padding: 10px 16px; border-bottom: 1px solid var(--f-line); }

.ns-tkc-exp-toggle { display: inline-flex; background: var(--f-rail-hover); border-radius: 8px; padding: 3px; }

.ns-tkc-exp-tg {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 26px;
  border: 0; background: none; color: var(--f-muted); border-radius: 6px; cursor: pointer;
}

.ns-tkc-exp-tg.active { background: var(--card); color: var(--f-text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.ns-tkc-exp-crumb { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; color: var(--f-text); }

.ns-tkc-exp-crumb svg { width: 15px; height: 15px; color: var(--f-muted); }

.ns-tkc-exp-panes { flex: 1 1 auto; display: grid; grid-template-columns: 300px 1fr 300px; min-height: 0; }

.ns-tkc-tree { border-right: 1px solid var(--f-line); overflow: auto; padding: 10px 6px; }

.ns-tkc-tree-title { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--f-faint); padding: 4px 10px 8px; }

.ns-tkc-trow { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; color: var(--f-text); }

.ns-tkc-trow:hover { background: var(--f-rail-hover); }

.ns-tkc-trow.sel { background: var(--f-rail-active); color: var(--f-rail-active-text); }

.ns-tkc-tcaret { display: inline-flex; align-items: center; justify-content: center; width: 14px; flex: none; color: var(--f-muted); transition: transform .12s; }

.ns-tkc-tcaret.open { transform: rotate(90deg); }

.ns-tkc-tcaret.empty { visibility: hidden; }

.ns-tkc-tcaret svg { width: 13px; height: 13px; }

.ns-tkc-tico { display: inline-flex; color: var(--f-muted); flex: none; }

.ns-tkc-tico svg { width: 15px; height: 15px; }

.ns-tkc-tname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ns-tkc-tcount { font-size: 11.5px; color: var(--f-faint); flex: none; }

.ns-tkc-exp-mid { border-right: 1px solid var(--f-line); overflow: auto; display: flex; align-items: center; justify-content: center; }

.ns-tkc-exp-details { overflow: auto; display: flex; align-items: center; justify-content: center; }

.ns-tkc-exp-empty { text-align: center; padding: 30px; color: var(--f-muted); }

.ns-tkc-exp-empty-ico { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: var(--f-rail-hover); color: var(--f-faint); margin-bottom: 12px; }

.ns-tkc-exp-empty-ico svg { width: 22px; height: 22px; }

.ns-tkc-exp-empty-t { font-size: 14px; font-weight: 600; color: var(--f-text); }

.ns-tkc-exp-empty-s { font-size: 12.5px; color: var(--f-muted); margin-top: 4px; }

.ns-tkc-exp-cards { padding: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; align-content: start; }

.ns-tkc-exp-card { border: 1px solid var(--f-line); border-radius: 12px; padding: 16px; background: var(--card); cursor: pointer; }

.ns-tkc-exp-card:hover { box-shadow: var(--shadow); }

.ns-tkc-exp-card-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(5,98,138,.10); color: var(--accent); margin-bottom: 10px; }

.ns-tkc-exp-card-ico svg { width: 18px; height: 18px; }

.ns-tkc-exp-card-name { font-size: 13.5px; font-weight: 600; color: var(--f-text); }

.ns-tkc-exp-card-meta { font-size: 12px; color: var(--f-muted); margin-top: 3px; }

.ns-tkc-conv { flex: 0 0 460px; display: flex; flex-direction: column; min-height: 0; background: var(--f-bg); }

.ns-tkc.is-resizing { cursor: col-resize; user-select: none; }

.ns-tkc.is-resizing .ns-canvas-split-grip { opacity: 1; background: var(--accent, #05628a); }

.ns-tkc-agent { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; overflow: hidden; }

.ns-tkc-agent-inner { flex: 1 1 auto; overflow: auto; padding: 24px 24px 8px; }

.ns-tkc-agent-title { font-size: 15px; font-weight: 600; color: var(--f-text); }

.ns-tkc-agent-lead { font-size: 12.5px; color: var(--f-muted); line-height: 1.5; margin-top: 6px; margin-bottom: 16px; }

.ns-tkc-agent-feat {
  display: block; text-align: left; width: 100%; margin-bottom: 14px;
  border: 1px solid var(--f-line); border-radius: 12px; background: var(--card);
  padding: 14px 16px 15px; cursor: pointer; box-shadow: var(--shadow);
  transition: box-shadow .12s, border-color .12s;
}

.ns-tkc-agent-feat:hover { border-color: transparent; box-shadow: 0 6px 18px rgba(20,23,28,.12); }

.ns-tkc-agent-feat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }

.ns-tkc-agent-feat-t { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--f-text); }

.ns-tkc-agent-feat-t svg { width: 15px; height: 15px; color: #b06a12; }

.ns-tkc-agent-feat-pill {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-size: 12px; font-weight: 600; color: #b06a12;
  background: rgba(224,165,43,.14); border-radius: 999px; padding: 4px 11px;
}

.ns-tkc-agent-feat-dot { width: 6px; height: 6px; border-radius: 50%; background: #e0a52b; flex: none; }

.ns-tkc-agent-feat-body { font-size: 12.5px; color: var(--f-muted); line-height: 1.5; }

.ns-tkc-agent-cards { display: flex; flex-direction: column; gap: 8px; }

.ns-tkc-agent-card { text-align: left; border: 1px solid var(--f-line); border-radius: 10px; background: var(--card); padding: 12px; cursor: pointer; transition: box-shadow .12s, border-color .12s; }

.ns-tkc-agent-card:hover { box-shadow: var(--shadow); border-color: transparent; }

.ns-tkc-agent-card-t { font-size: 13px; font-weight: 600; color: var(--f-text); }

.ns-tkc-agent-card-s { font-size: 12px; color: var(--f-muted); line-height: 1.4; margin-top: 3px; }

.ns-tkc-agent-thread { display: flex; flex-direction: column; gap: 16px; }

.ns-canvas-chat .ns-agent.ns-tkc-comp { position: relative; z-index: 1; }

.ns-tkc-agent-thread .ns-ans.ns-tkc-ans-in {
  animation: ns-convo-rise .44s cubic-bezier(.22,.61,.36,1) both;
}

@media (prefers-reduced-motion: reduce) {
  .ns-tkc-agent-thread .ns-ans.ns-tkc-ans-in { animation: none; }
}

.ns-tkc-dock { background: transparent; }

.ns-tkc-page-thumb { align-items: center; justify-content: center; color: var(--accent); }

.ns-tkc-page-thumb svg { width: 22px; height: 22px; }

.ns-tkc-page-add {
  width: 44px; align-self: stretch; align-items: center; justify-content: center;
  border: 1px dashed var(--f-field-border, rgba(0,0,0,.16)); color: var(--f-faint);
  background: transparent;
}

.ns-tkc-page-add:hover { color: var(--f-text); background: var(--f-rail-hover); }

.ns-tkc-page-add svg { width: 16px; height: 16px; }

.ns-tkc-modal-ov { position: fixed; inset: 0; z-index: 200; background: rgba(20,24,32,.34); display: flex; align-items: center; justify-content: center; padding: 40px; }

.ns-tkc-modal { width: min(980px, 96vw); max-height: 88vh; display: flex; flex-direction: column; background: var(--card); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.30); overflow: hidden; }

.ns-tkc-modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--f-line); }

.ns-tkc-modal-title { font-size: 15px; font-weight: 600; color: var(--f-text); }

.ns-tkc-modal-x { display: inline-flex; border: 0; background: none; color: var(--f-muted); cursor: pointer; padding: 4px; }

.ns-tkc-modal-x:hover { color: var(--f-text); }

.ns-tkc-modal-bd { padding: 20px 24px; overflow: auto; }

.ns-tkc-modal-h2 { font-size: 17px; font-weight: 600; color: var(--f-text); margin: 0 0 6px; }

.ns-tkc-modal-lead { font-size: 13px; color: var(--f-muted); line-height: 1.5; margin: 0 0 18px; max-width: 620px; }

.ns-tkc-modal-grid { display: grid; grid-template-columns: 1fr 280px; gap: 18px; align-items: start; }

.ns-tkc-modal-listcol { min-width: 0; }

.ns-tkc-modal-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--f-line); margin-bottom: 14px; }

.ns-tkc-modal-tab { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--f-muted); padding: 8px 4px 12px; margin-right: 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }

.ns-tkc-modal-tab b { font-weight: 600; color: var(--f-faint); margin-left: 4px; }

.ns-tkc-modal-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.ns-tkc-modal-tab.active b { color: var(--accent); }

.ns-tkc-modal-tools { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

.ns-tkc-modal-search { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--f-line); border-radius: 9px; padding: 7px 12px; color: var(--f-faint); background: var(--f-bg); }

.ns-tkc-modal-search input { flex: 1 1 auto; border: 0; background: none; font: inherit; font-size: 13px; color: var(--f-text); outline: none; }

.ns-tkc-modal-filter { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--f-muted); border: 1px solid var(--f-line); border-radius: 9px; padding: 7px 12px; white-space: nowrap; cursor: default; }

.ns-tkc-modal-filter svg { width: 13px; height: 13px; }

.ns-tkc-modal-table { border: 1px solid var(--f-line); border-radius: 10px; overflow: hidden; }

.ns-tkc-modal-thead,
.ns-tkc-modal-tr { display: grid; grid-template-columns: 30px 1fr 70px 130px 90px; align-items: center; gap: 10px; padding: 9px 14px; }

.ns-tkc-modal-thead { background: var(--f-bg); border-bottom: 1px solid var(--f-line); font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--f-faint); }

.ns-tkc-modal-tr { border-bottom: 1px solid var(--f-line); font-size: 13px; color: var(--f-text); cursor: pointer; }

.ns-tkc-modal-tr:last-child { border-bottom: 0; }

.ns-tkc-modal-tr:hover { background: var(--f-rail-hover); }

.ns-tkc-modal-tr.on { background: rgba(5,98,138,.06); }

.ns-tkc-modal-check { width: 17px; height: 17px; border: 1.5px solid var(--f-faint); border-radius: 5px; cursor: pointer; position: relative; }

.ns-tkc-modal-check.on { background: var(--accent); border-color: var(--accent); }

.ns-tkc-modal-check.on::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.ns-tkc-modal-wb { display: flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ns-tkc-modal-wbico { display: inline-flex; color: var(--f-muted); flex: none; }

.ns-tkc-modal-dim { color: var(--f-faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ns-tkc-modal-more { padding: 10px 14px; font-size: 12px; color: var(--f-muted); background: var(--f-bg); border-top: 1px solid var(--f-line); }

.ns-tkc-modal-selcol { border: 1px solid var(--f-line); border-radius: 10px; padding: 14px; background: var(--f-bg); }

.ns-tkc-modal-selhd { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--f-faint); margin-bottom: 12px; }

.ns-tkc-modal-selhd b { color: var(--f-text); margin-left: 4px; }

.ns-tkc-modal-sellist { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }

.ns-tkc-modal-selrow { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--f-line); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: var(--f-text); }

.ns-tkc-modal-selname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ns-tkc-modal-selbadge { font-size: 10.5px; font-weight: 600; color: #1e7d43; background: rgba(30,125,67,.12); border-radius: 999px; padding: 2px 8px; flex: none; }

.ns-tkc-modal-ft { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--f-line); }

.ns-tkc-btn-ghost { border: 1px solid var(--f-line); background: var(--card); font: inherit; font-size: 13px; font-weight: 500; color: var(--f-text); padding: 9px 18px; border-radius: 9px; cursor: pointer; }

.ns-tkc-btn-ghost:hover { background: var(--f-rail-hover); }

.ns-tkc-btn-primary { border: 0; background: var(--accent); color: #fff; font: inherit; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 9px; cursor: pointer; }

.ns-tkc-btn-primary:hover { background: #023248; }

.ns-tkc-btn-primary:disabled { background: var(--f-line); color: var(--f-faint); cursor: not-allowed; }

.ns-asc { width: min(760px, 96vw); }

.ns-asc-lead { max-width: 520px; }

.ns-asc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.ns-asc-tile { display: flex; align-items: center; gap: 11px; text-align: left; padding: 12px 13px; border: 1px solid var(--f-line); border-radius: 14px; background: var(--card); font: inherit; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }

.ns-asc-tile:hover { border-color: var(--f-faint); box-shadow: 0 4px 16px rgba(20,24,32,.06); transform: translateY(-1px); }

.ns-asc-tile.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 6px 20px rgba(5,98,138,.14); }

.ns-asc-tile-ico { width: 34px; height: 34px; flex: none; display: inline-flex; align-items: center; justify-content: center; }

.ns-asc-tile-ico svg,
.ns-asc-tile-ico img { width: 30px; height: 30px; object-fit: contain; display: block; }

.ns-asc-tile-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.ns-asc-tile-name { font-size: 14px; font-weight: 600; color: var(--f-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ns-asc-tile-sub { font-size: 11.5px; color: var(--f-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ns-asc-or { display: flex; align-items: center; gap: 14px; margin: 18px 0; color: var(--f-faint); font-size: 12px; }

.ns-asc-or::before,
.ns-asc-or::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--f-line); }

.ns-asc-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; padding: 22px 20px; border: 1.5px dashed var(--f-line); border-radius: 16px; background: var(--f-bg); cursor: pointer; transition: border-color .16s ease, background .16s ease; }

.ns-asc-drop:hover,
.ns-asc-drop.drag { border-color: var(--accent); background: rgba(5,98,138,.05); }

.ns-asc-drop.has-file { border-style: solid; border-color: var(--accent); background: rgba(5,98,138,.05); }

.ns-asc-drop-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--f-line); color: var(--accent); margin-bottom: 4px; }

.ns-asc-drop-ico svg { width: 20px; height: 20px; }

.ns-asc-drop.uploading .ns-asc-drop-ico { animation: ns-asc-pulse 1.1s ease-in-out infinite; }

.ns-asc-drop-title { font-size: 14px; font-weight: 600; color: var(--f-text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ns-asc-drop-sub { font-size: 12px; color: var(--f-faint); }

.ns-asc-file { display: none; }

.ns-asc-prog { display: none; width: 100%; max-width: 320px; height: 6px; margin-top: 12px; border-radius: 999px; background: var(--f-line); overflow: hidden; }

.ns-asc-drop.has-file .ns-asc-prog { display: block; }

.ns-asc-prog-fill { width: 0; height: 100%; border-radius: 999px; background: var(--accent); transition: width .1s linear; }

.ns-asc-drop-check { display: none; color: #1e7d43; }

.ns-asc-drop-check svg { width: 22px; height: 22px; stroke-width: 1.7; }

.ns-asc-drop.done { border-color: #1e7d43; background: rgba(30,125,67,.06); }

.ns-asc-drop.done .ns-asc-drop-ico { display: none; }

.ns-asc-drop.done .ns-asc-drop-check { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 50%; background: rgba(30,125,67,.12); border: 1px solid rgba(30,125,67,.30); }

.ns-asc-drop.done .ns-asc-drop-sub { color: #1e7d43; font-weight: 500; }

.ns-asc-drop.done .ns-asc-prog-fill { background: #1e7d43; }

.ns-tk-toast { position: fixed; top: 20px; left: 50%; z-index: 320; display: flex; align-items: center; gap: 10px; max-width: min(520px, 92vw); padding: 12px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--f-line); box-shadow: 0 12px 40px rgba(20,24,32,.18); color: var(--f-text); font-size: 13.5px; font-weight: 500; transform: translate(-50%, -16px); opacity: 0; transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .3s ease; pointer-events: none; }

.ns-tk-toast.show { transform: translate(-50%, 0); opacity: 1; }

.ns-tk-toast-ico { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: rgba(30,125,67,.12); color: #1e7d43; }

.ns-tk-toast-ico svg { width: 15px; height: 15px; stroke-width: 1.8; }

.ns-tk-toast-msg { min-width: 0; }

@media (max-width: 720px) {
  .ns-tk-top { flex-direction: column; align-items: stretch; gap: 20px; }
  .ns-tk-health { justify-content: flex-start; }
  .ns-tk-kpis { grid-template-columns: repeat(2, 1fr); }
  /* Stacked: the coverage divider becomes a top rule, full width. */
  .ns-tk-cov { flex: none; width: auto; min-width: 0; border-left: 0; padding-left: 0; }
  .ns-tk-cards { grid-template-columns: 1fr; }
  .ns-asc-grid { grid-template-columns: repeat(2, 1fr); }
  .ns-tkc-conv { flex-basis: 280px; }
  .ns-tkc-view { padding: 16px 18px 12px; }
  .ns-tkc-exp-panes { grid-template-columns: 240px 1fr; }
  .ns-tkc-exp-details { display: none; }
}

.ns-list { display: flex; flex-direction: column; gap: 8px; }

.ns-list-row {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px;
  cursor: pointer; transition: box-shadow .12s, border-color .12s;
}

.ns-list-row:hover { box-shadow: var(--shadow); border-color: #c3d5ea; }

.ns-list-thumb { flex: 0 0 auto; width: 72px; height: 46px; border-radius: 7px;
  overflow: hidden; position: relative; background: #eef2f6; }

.ns-list-img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block; }

.ns-list-body { flex: 1; min-width: 0; }

.ns-list-name { font-size: 14px; font-weight: 600; }

.ns-list-meta { font-size: 12px; color: var(--ink2); display: flex; gap: 6px; align-items: center; }

.ns-list-go { flex: 0 0 auto; color: var(--ink2); font-size: 18px; }

.ns-dlist { display: flex; flex-direction: column; gap: 10px; }

.ns-dcell {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 18px; cursor: pointer; transition: box-shadow .12s, border-color .12s;
  display: flex; align-items: center; gap: 18px;
}

.ns-dcell:hover { box-shadow: var(--shadow); border-color: #c3d5ea; }

.ns-dcell-top { display: flex; align-items: center; gap: 11px; flex: 1 1 auto; min-width: 0; }

.ns-dcell-name {
  min-width: 0; font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ns-dl-ico {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; display: grid;
  place-items: center; color: #fff;
}

.ns-dl-ico svg { width: 16px; height: 16px; }

.ns-dl-ico--extract { background: #4e79a7; }

.ns-dl-ico--warehouse { background: #6a5acd; }

.ns-dl-ico--cloud { background: #2b9bd6; }

.ns-dl-ico--file { background: #59a14f; }

.ns-dl-cert {
  flex: 0 0 auto; display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: #e4f4ea; color: #1e7d43;
}

.ns-dcell-meta {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink2); white-space: nowrap;
}

.ns-dcell-dot { color: #c2ccd8; }

.ns-dcell-owner {
  flex: 0 0 auto; width: 168px; display: flex; align-items: center; gap: 8px; min-width: 0;
}

.ns-dl-avatar {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid;
  place-items: center; color: #fff; font-size: 10.5px; font-weight: 600;
}

.ns-dl-owner-name { font-size: 12.5px; color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 640px) {
  .ns-dcell { flex-wrap: wrap; gap: 8px 16px; }
  .ns-dcell-top { flex: 1 1 100%; }
  .ns-dcell-owner { width: auto; }
}

.ns-hero-card,
.ns-carousel-slide .ns-hero-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: box-shadow .12s;
}

.ns-hero-card:hover { box-shadow: var(--shadow); }

.ns-hero-thumb { height: 300px; background: #eef2f6; position: relative; overflow: hidden; }

.ns-hero-img { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block; }

.ns-hero-body { padding: 16px 20px; }

.ns-hero-name { font-size: 19px; font-weight: 700; }

.ns-hero-meta { font-size: 13px; color: var(--ink2); margin-top: 4px; display: flex; gap: 6px; align-items: center; }

.ns-hero-more { margin-top: 10px; font-size: 12.5px; color: var(--ink2); }

.ns-carousel { position: relative; display: grid;
  grid-template-columns: 40px 1fr 40px; align-items: center; gap: 10px; }

.ns-carousel-viewport { overflow: hidden; border-radius: var(--radius); }

.ns-carousel-track { display: flex; transition: transform .32s cubic-bezier(.4,0,.2,1); }

.ns-carousel-slide { flex: 0 0 100%; min-width: 100%; }

.ns-carousel-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow); transition: background .12s, border-color .12s;
}

.ns-carousel-arrow:hover { background: #f3f7fb; border-color: #c3d5ea; }

.ns-carousel-arrow:disabled { opacity: .35; cursor: default; box-shadow: none; }

.ns-carousel-dots { grid-column: 2; display: flex; justify-content: center; gap: 7px; margin-top: 12px; }

.ns-carousel-dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: #cdd8e3; cursor: pointer; transition: background .12s, transform .12s; }

.ns-carousel-dot:hover { background: #a9bccd; }

.ns-carousel-dot.is-active { background: var(--accent); transform: scale(1.25); }

.ns-resume-carousel { position: relative; display: grid;
  grid-template-columns: 40px 1fr 40px; align-items: center; gap: 10px; }

.ns-resume-carousel .ns-carousel-viewport { overflow: hidden; border-radius: 16px; padding: 5px 4px 10px; }

.ns-resume-card {
  display: flex; background: #fff; border: 1px solid #e0e8f2; border-radius: 16px;
  box-shadow: 0 3px 12px rgba(31,73,125,.06); overflow: hidden; min-height: 208px;
}

.ns-resume-thumb {
  flex: 0 0 264px; border-right: 1px solid #eef2f7; background: #f4f8fd;
  display: grid; place-items: center; padding: 16px 18px;
}

.ns-resume-thumb-svg { width: 100%; height: auto; display: block; }

.ns-resume-body { flex: 1; padding: 22px 26px; display: flex; flex-direction: column; align-items: flex-start; }

.ns-resume-title { margin: 0; font-size: 20px; font-weight: 500; color: #1a2733; letter-spacing: -.01em; }

.ns-resume-meta { margin: 4px 0 0; font-size: 12.5px; color: #7d8b9c; }

.ns-resume-thread {
  margin: 15px 0 20px; background: #f6f9fc; border-left: 3px solid var(--accent2);
  border-radius: 0 8px 8px 0; padding: 12px 15px; font-size: 14px; line-height: 1.5;
  color: #3b4b5b; display: flex; gap: 9px; align-items: flex-start;
}

.ns-resume-mark { color: var(--accent); font-size: 14px; line-height: 1.5; flex: 0 0 auto; }

.ns-resume-thread em { font-style: italic; color: #26364a; }

.ns-resume-cta {
  margin-top: auto; background: var(--accent); border: 1px solid var(--accent); color: #fff;
  border-radius: 9px; padding: 9px 18px; font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .12s;
}

.ns-resume-cta:hover { background: #023248; }

.ns-hero-carousel { position: relative; display: grid;
  grid-template-columns: 40px 1fr 40px; align-items: center; gap: 10px; }

.ns-hero-carousel .ns-carousel-viewport { overflow: hidden; border-radius: 16px; padding: 8px 0 12px; }

.ns-hero-carousel .ns-carousel-slide { display: flex; flex-direction: column; }

.ns-hero-continue-row { margin-top: 10px; display: flex; }

.ns-hero-continue {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); border: 1px solid var(--accent); color: #fff;
  border-radius: 9px; padding: 9px 18px; font: inherit; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .12s;
}

.ns-hero-continue:hover { background: #023248; }

.ns-hero-continue-ic { color: #cfe6f4; font-size: 13px; line-height: 1; }

.ns-sec--hero .ns-ans { padding: 14px 18px; }

.ns-sec--hero .ns-ans-why { margin-top: 10px; padding: 8px 12px; font-size: 13px; }

.ns-hero-carousel .ns-carousel-viewport { padding: 6px 0 8px; }

.ns-hero-carousel .ns-carousel-dots { margin-top: 8px; }

.ns-spotlight { display: flex; flex-direction: column; gap: 14px; }

.ns-metric { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }

.ns-metric-tag { font-size: 12px; color: var(--ink2); }

.ns-metric-val { font-size: 24px; font-weight: 800; margin: 4px 0; letter-spacing: -.02em; }

.ns-metric-delta { font-size: 12.5px; font-weight: 600; }

.ns-metric-delta.is-good { color: #1e7d43; }

.ns-metric-delta.is-bad { color: #c0392b; }

.ns-metric-note { margin-top: 3px; font-size: 11px; color: var(--ink2); }

.ns-sec--agentfield { margin-bottom: 34px; }

.ns-agent { display: flex; }

.ns-agent-field {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: stretch;
  background: #fff; border: 2px solid #cdddf0; border-radius: 999px;
  box-shadow: 0 12px 36px rgba(31,73,125,0.10), 0 2px 6px rgba(31,73,125,0.05);
  transition: border-color .18s, box-shadow .18s, border-radius .2s ease;
}

.ns-agent-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
}

.ns-agent-field.is-suggesting { border-radius: 24px; }

.ns-agent-field:hover { border-color: #b4cbe6; box-shadow: 0 16px 44px rgba(31,73,125,0.13), 0 2px 6px rgba(31,73,125,0.05); }

.ns-agent-field:focus-within { border-color: var(--nav-accent); box-shadow: 0 0 0 4px rgba(144,208,254,0.18), 0 16px 44px rgba(31,73,125,0.13); }

@property --ns-glow-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.ns-agent-field--glow::before {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border-radius: inherit;
  /* Light branded tints only — the darker blues read as a hard clashing ring
     against the calm page, so the halo uses airy sky/teal with a whisper of
     warmth. The stops repeat softly and land back on the start colour so the
     rotation has no seam. */
  background: conic-gradient(
    from var(--ns-glow-a),
    #90D0FE, #A9D9EC, #7FB8D4, #BBD6E8, #F3C9A8, #BBD6E8, #7FB8D4, #A9D9EC, #90D0FE
  );
  /* A heavier blur dissolves the conic's angular banding (the "square pixels"
     seen mid-rotation) into a smooth wash. */
  filter: blur(24px);
  opacity: 0;
  transition: opacity .28s ease;
  pointer-events: none;
}

.ns-agent-field--glow:focus-within::before {
  opacity: 0.32;
  animation: nsGlowSpin 5.6s linear infinite;
}

.ns-agent-field--glow:focus-within {
  box-shadow: 0 16px 44px rgba(31,73,125,0.15);
}

@media (prefers-reduced-motion: reduce) {
  .ns-agent-field--glow:focus-within::before { animation: none; }
}

.ns-agent-mark {
  flex: 0 0 auto; display: inline-flex; align-items: flex-end; justify-content: center;
  margin: 0 12px 0 4px;
}

.ns-agent-mark .typing-chart { display: flex; align-items: flex-end; gap: 3px; height: 16px; }

.ns-agent-mark .typing-bar {
  width: 3.5px; border-radius: 1px; transform-origin: bottom; transform: scaleY(1);
  animation-duration: 0.95s; animation-timing-function: ease-in-out; animation-iteration-count: 4;
}

.ns-agent-mark .typing-bar:nth-child(1) { background: #4e79a7; height: 9px; }

.ns-agent-mark .typing-bar:nth-child(2) { background: #f28e2b; height: 13px; animation-delay: 0.13s; }

.ns-agent-mark .typing-bar:nth-child(3) { background: #59a14f; height: 16px; animation-delay: 0.26s; }

.user-view:not(.is-convo-active):not(.is-inspecting) .ns-agent-field:focus-within .ns-agent-mark .typing-bar {
  animation-name: nsAgentUndulate;
}

.user-view.is-convo-active .ns-agent-mark .typing-bar,
.user-view.is-inspecting .ns-agent-mark .typing-bar {
  animation-name: none;
}

.user-view.is-convo-active:not(.is-inspecting) .ns-agent-field.is-greeting .ns-agent-mark .typing-bar {
  animation-name: nsAgentUndulate; animation-iteration-count: infinite;
}

.user-view.is-convo-active .ns-agent-field.is-typing .ns-agent-mark .typing-bar,
.user-view.is-inspecting .ns-agent-field.is-typing .ns-agent-mark .typing-bar {
  animation-name: nsAgentUndulate; animation-iteration-count: infinite;
}

@media (prefers-reduced-motion: reduce) {
  .ns-agent-mark .typing-bar { animation: none; }
}

.ns-greetrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.ns-agent-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  color: var(--ink); font-size: 18px; font-family: inherit;
  /* Textarea, not a single line input: it grows to fit a multi-line prompt
     (autoGrowInput caps + scrolls). resize off, line-height generous so
     descenders never crop, block display so it fills the field. */
  display: block; resize: none; line-height: 1.45; overflow-y: hidden;
  padding: 1px 0; margin: 0; max-height: 132px;
}

.ns-agent-input::placeholder { color: #8a97a5; }

.ns-agent-input.ph-rotator::placeholder { transition: color .45s ease; }

.ns-agent-input.ph-rotator.ph-fade::placeholder { color: transparent; }

.ns-agent-input.ph-rotator::-webkit-input-placeholder { transition: color .45s ease; }

.ns-agent-input.ph-rotator.ph-fade::-webkit-input-placeholder { color: transparent; }

.ns-agent-go {
  flex: 0 0 auto; border: 0; background: var(--accent); color: #fff;
  width: 38px; height: 38px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: background .15s;
}

.ns-agent-go:hover { background: #023248; }

.ns-agent-go .ns-send-glyph { display: block; margin-left: 0; }

.ns-agent-suggest {
  /* In-flow inside the field: the suggestions belong to the same surface as the
     input (no detached card, no gap). A hairline divides the input row from the
     list, and the field's own border + shadow wrap the whole thing. */
  position: relative; z-index: 1;
  background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0;
  box-shadow: none; margin: 0; padding: 7px;
  display: none; flex-direction: column;
  /* Never run off the bottom of the screen — cap to the space below the input
     row and scroll inside if the sections are taller than that. */
  max-height: min(560px, calc(100vh - 232px));
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: var(--f-field-border, #d8dde3) transparent;
  overscroll-behavior: contain;
}

.ns-agent-suggest::-webkit-scrollbar { width: 8px; }

.ns-agent-suggest::-webkit-scrollbar-track { background: transparent; }

.ns-agent-suggest::-webkit-scrollbar-thumb {
  background: var(--f-field-border, #d8dde3); border-radius: 999px;
  border: 2px solid #fff;
}

.ns-agent-suggest::-webkit-scrollbar-thumb:hover { background: var(--f-muted, #b8bfc7); }

.ns-agent-suggest.is-open {
  display: flex; animation: nsSuggestIn .14s ease-out;
}

.ns-agent-suggest-label {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink2);
  padding: 6px 12px 4px;
}

.ns-agent-suggest-item + .ns-agent-suggest-label,
.ns-suggest-cards + .ns-agent-suggest-label {
  margin-top: 5px; padding-top: 10px; border-top: 1px solid var(--line);
}

.ns-agent-suggest-item {
  display: flex; align-items: center; gap: 10px;
  text-align: left; border: 0; background: transparent; color: var(--ink);
  font: inherit; font-size: 14.5px; padding: 9px 12px; border-radius: 9px;
  cursor: pointer; transition: background .12s;
}

.ns-agent-suggest-item:hover,
.ns-agent-suggest-item:focus-visible {
  background: #f1f6fb; color: var(--accent); outline: 0;
}

.ns-agent-suggest-q { flex: 0 1 auto; }

.ns-agent-suggest-src {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  color: #2b6cb0; background: #e7f1fb; border: 1px solid #d3e5f7;
  padding: 4px 9px 4px 7px; border-radius: 999px; white-space: nowrap;
}

.ns-agent-suggest-src-ico {
  flex: 0 0 auto; display: inline-flex; width: 12px; height: 12px;
  color: #3f83c4;
}

.ns-agent-suggest-src-ico svg { width: 12px; height: 12px; display: block; }

.ns-agent-suggest-ic {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; color: var(--accent, #05628a); opacity: .8;
}

.ns-agent-suggest-ic svg { display: block; }

.ns-agent-suggest-recent .ns-agent-suggest-ic { color: var(--ink2); opacity: .7; }

.ns-agent-suggest-wb { align-items: center; gap: 11px; }

.ns-agent-suggest-thumb {
  flex: 0 0 auto; width: 40px; height: 30px; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line); background: #4e79a7; display: block;
}

.ns-agent-suggest-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ns-agent-suggest-wbtext { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.ns-agent-suggest-wb .ns-agent-suggest-q {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ns-agent-suggest-wbmeta {
  font-size: 12px; color: var(--ink2); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ns-agent-suggest-wb:hover .ns-agent-suggest-wbmeta { color: var(--accent); opacity: .8; }

.ns-suggest-cards {
  display: flex; gap: 10px; padding: 4px 12px 8px;
  overflow-x: auto; scrollbar-width: none;
}

.ns-suggest-cards::-webkit-scrollbar { display: none; }

.ns-suggest-card {
  flex: 0 0 152px; width: 152px; text-align: left;
  display: flex; flex-direction: column; gap: 7px;
  padding: 8px; border: 1px solid var(--line); border-radius: 11px;
  background: #fff; cursor: pointer; font: inherit;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}

.ns-suggest-card:hover,
.ns-suggest-card:focus-visible {
  border-color: var(--accent, #05628a); outline: 0;
  box-shadow: 0 6px 16px rgba(31,73,125,0.12); transform: translateY(-1px);
}

.ns-suggest-card-thumb {
  display: block; height: 56px; border-radius: 7px; overflow: hidden;
  background: #f5f8fc; padding: 8px 8px 6px;
}

.ns-suggest-card-thumb .ns-vizthumb-svg { width: 100%; height: 100%; display: block; }

.ns-suggest-card-title {
  font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.ns-suggest-card-meta { font-size: 11.5px; color: var(--ink2); line-height: 1; }

.ns-suggest-card--flat { justify-content: center; gap: 8px; min-height: 84px; }

.ns-suggest-card-kind {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  font-size: 11px; font-weight: 600; line-height: 1;
  color: #2b6cb0; background: #e7f1fb; border: 1px solid #d3e5f7;
  padding: 4px 9px 4px 7px; border-radius: 999px;
}

.ns-suggest-card-kind-ic { flex: 0 0 auto; display: inline-flex; color: #3f83c4; }

.ns-suggest-card-kind-ic svg { display: block; }

.ns-canvas-hist-thumb--flat { color: var(--f-muted, #5f6470); }

.ns-canvas-hist-thumb--flat svg { width: 16px; height: 16px; }

.ns-sec--agentfield.is-active .ns-agent-field {
  box-shadow: 0 4px 16px rgba(31,73,125,0.06);
}

.ns-sec--agentfield {
  --ns-thread-max: 632px;
  --ns-vizstrip-w: 156px;   /* preview-card rail width (holds thumb + title + Open) */
  --ns-vizstrip-gap: 16px;  /* gap between the thread and the rail */
}

.ns-sec--agentfield.is-active { --ns-thread-max: min(632px, calc(100vh - 250px)); }

.ns-sec--agentfield.is-active .ns-agent-body { margin-top: 18px; margin-bottom: 0; }

.ns-agent-body {
  display: flex; gap: var(--ns-vizstrip-gap); align-items: flex-start; margin-bottom: 12px;
  width: 100%;
}

.ns-agent-body:has(.ns-agent-vizstrip:not(:empty)) {
  width: calc(100% + var(--ns-vizstrip-w) + var(--ns-vizstrip-gap));
}

.ns-agent-body > .ns-thread { flex: 1 1 auto; min-width: 0; }

.ns-thread { display: flex; flex-direction: column; gap: 16px; }

.user-view.is-focus .ns-thread > .ns-ask-row:not(:first-child) { margin-top: 18px; }

.ns-sec--agentfield.is-active .ns-thread {
  max-height: var(--ns-thread-max); overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin; scrollbar-color: #ccd6e2 transparent;
}

.ns-sec--agentfield.is-active .ns-thread::-webkit-scrollbar { width: 8px; }

.ns-sec--agentfield.is-active .ns-thread::-webkit-scrollbar-thumb {
  background: #ccd6e2; border-radius: 8px; border: 2px solid #fff;
}

.ns-agent-vizstrip {
  flex: 0 0 var(--ns-vizstrip-w); width: var(--ns-vizstrip-w);
  display: flex; flex-direction: column; gap: 8px;
  max-height: var(--ns-thread-max); overflow-y: auto; padding: 2px 4px 2px 2px;
  scrollbar-width: thin; scrollbar-color: #ccd6e2 transparent;
}

.ns-agent-vizstrip:empty { display: none; }

.ns-vizthumb {
  flex: 0 0 auto; width: 100%; display: flex; flex-direction: column; gap: 8px;
  padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .14s, box-shadow .14s, transform .12s;
}

.ns-vizthumb:hover { border-color: #bcd0e8; transform: translateY(-1px); }

.ns-vizthumb.is-active {
  border-color: var(--accent); box-shadow: 0 0 0 2px rgba(5,98,138,.14);
}

.ns-vizthumb-hit {
  display: flex; flex-direction: column; gap: 7px; width: 100%;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  font: inherit; text-align: left; color: inherit;
}

.ns-vizthumb-canvas {
  width: 100%; height: 58px; border-radius: 8px; overflow: hidden;
  background: #f4f6f9; border: 1px solid var(--line); display: flex; align-items: stretch;
}

.ns-vizthumb-canvas .ns-vizthumb-svg { width: 100%; height: 100%; display: block; }

.ns-vizthumb-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.ns-vizthumb-cap {
  font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.ns-vizthumb-time { font-size: 11px; color: var(--ink2); }

.ns-vizthumb.is-active .ns-vizthumb-cap { color: var(--accent); }

.ns-vizthumb-open {
  align-self: stretch; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; height: 28px; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--accent); background: transparent; border: 1px solid var(--f-field-border, #e3e6ec);
  transition: background .14s, border-color .14s, color .14s;
}

.ns-vizthumb-open svg { width: 14px; height: 14px; }

.ns-vizthumb-open span { display: inline-flex; align-items: center; }

.ns-vizthumb-open:hover { background: var(--f-rail-hover, rgba(5,98,138,.06)); border-color: var(--accent); }

.ns-ans--flash { box-shadow: 0 0 0 3px rgba(5,98,138,.28), 0 4px 18px rgba(20,25,35,.05); }

.ns-convo-head { display: none; }

.ns-sec--agentfield:not(.is-active) .ns-agent-body { display: none; }

.ns-sec--agentfield.is-active .ns-convo { display: block; }

.ns-sec--agentfield.is-active .ns-convo-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 2px 14px;
}

.ns-convo-title {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--ink);
  letter-spacing: .01em;
}

.ns-convo-title-ic {
  display: inline-flex; color: var(--accent); flex: 0 0 auto;
}

.ns-convo-title-ic svg { width: 19px; height: 19px; }

.ns-convo-title-txt {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 60ch;
}

.ns-convo-tools { display: inline-flex; align-items: center; gap: 4px; }

.ns-convo-tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: none; background: none;
  color: var(--ink2); border-radius: 10px; cursor: pointer;
  transition: color .14s, background .14s;
}

.ns-convo-tool svg { width: 24px; height: 24px; }

.ns-convo-tool:hover { color: var(--ink); background: rgba(20,25,35,.06); }

.ns-convo-close:hover { color: #b42318; background: rgba(180,35,24,.08); }

.ns-sec--agentfield.is-active .ns-agent-body {
  width: 100%; margin: 0 0 14px;
}

.ns-sec--agentfield.is-active .ns-agent {
  position: sticky; bottom: 16px; z-index: 5;
}

.ns-sec--agentfield.is-active .ns-agent::before {
  content: ""; position: absolute; z-index: -1;
  left: -48px; right: -48px; top: 0; bottom: -16px;
  background: var(--bg, #fff);
}

.ns-sec--agentfield.is-active .ns-agent-field {
  box-shadow: 0 6px 20px rgba(20,25,35,.10), 0 1px 3px rgba(20,25,35,.08);
  /* Resting height matches the Home hero exactly (Erick, Sep 2): the docked
     composer no longer adds vertical padding to sit taller than Home. The input
     row keeps its own 16px padding, and autoGrowInput still grows the field for
     multi-line input — it just starts at the same size Home does. */
}

.ns-sec--agentfield.is-active .ns-agent-suggest {
  top: auto; bottom: calc(100% + 8px);
}

:scope.ns-auth-open { overflow: hidden; }

.ns-auth {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  background: #eef1f5;
  animation: gfAuthIn .18s ease-out;
}

.ns-auth-bar {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  height: 48px; padding: 0 14px;
  background: linear-gradient(135deg, var(--chrome) 0%, var(--chrome2) 100%);
  color: #fff;
}

.ns-auth-bar-title { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }

.ns-auth-bar-ic { display: inline-flex; color: #cfe6f4; }

.ns-auth-bar-sub {
  margin-left: 8px; padding: 2px 8px; border-radius: 6px;
  background: rgba(255,255,255,.14); font-size: 11px; font-weight: 600;
  color: #dbe7f2; letter-spacing: .04em; text-transform: uppercase;
}

.ns-auth-close {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08);
  color: #fff; border-radius: 8px; padding: 7px 12px; cursor: pointer;
  font: inherit; font-size: 12.5px; font-weight: 600;
  transition: background .14s, border-color .14s;
}

.ns-auth-close:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.5); }

.ns-auth-main { flex: 1 1 auto; min-height: 0; display: flex; }

.ns-auth-pane {
  flex: 0 0 auto; background: linear-gradient(160deg, var(--chrome), var(--chrome2));
  color: #dfe7f0; overflow-y: auto; padding: 12px 12px 16px;
}

.ns-auth-data { width: 216px; border-right: 1px solid rgba(255,255,255,.08); }

.ns-auth-marks { width: 168px; border-right: 1px solid rgba(255,255,255,.08); }

.ns-auth-tabs { display: flex; gap: 16px; font-size: 12.5px; font-weight: 600; color: #9fb2c6; margin-bottom: 12px; }

.ns-auth-tabs .is-active { color: #fff; border-bottom: 2px solid var(--nav-accent); padding-bottom: 4px; }

.ns-auth-src {
  display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  color: #eaf1f8; padding: 7px 8px; background: rgba(255,255,255,.06);
  border-radius: 7px; margin-bottom: 10px;
}

.ns-auth-src-ic { display: inline-flex; width: 15px; height: 15px; color: var(--nav-accent); }

.ns-auth-src-ic svg { width: 15px; height: 15px; }

.ns-auth-search {
  font-size: 12px; color: #8ba0b6; padding: 6px 9px; margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 7px;
}

.ns-auth-tree-h {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #8ba0b6; margin: 12px 0 6px;
}

.ns-auth-field {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #e2eaf3;
  padding: 5px 7px; border-radius: 6px; cursor: grab;
}

.ns-auth-field:hover { background: rgba(255,255,255,.07); }

.ns-auth-field-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 16px; border-radius: 3px; font-size: 9.5px; font-weight: 700;
  font-style: italic;
}

.ns-auth-field-ic.is-dim { background: #3a6ea5; color: #dbe9f8; }

.ns-auth-field-ic.is-measure { background: #1f7a54; color: #d7f0e4; font-style: normal; }

.ns-auth-mini-h {
  font-size: 11px; font-weight: 700; color: #b7c6d6; margin: 4px 0 6px;
}

.ns-auth-drop {
  height: 30px; border: 1px dashed rgba(255,255,255,.2); border-radius: 6px; margin-bottom: 14px;
}

.ns-auth-marktype {
  font-size: 12px; font-weight: 600; color: #eaf1f8; padding: 7px 9px;
  background: rgba(255,255,255,.06); border-radius: 7px; margin-bottom: 10px;
}

.ns-auth-markbtns { display: flex; flex-direction: column; gap: 6px; }

.ns-auth-markbtn {
  font-size: 12px; color: #cdd9e6; padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.14); border-radius: 7px;
}

.ns-auth-canvas {
  flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column;
  background: #fff; overflow: hidden;
}

.ns-auth-shelves {
  flex: 0 0 auto; border-bottom: 1px solid var(--line); padding: 8px 16px;
  display: flex; flex-direction: column; gap: 6px;
}

.ns-auth-shelf { display: flex; align-items: center; gap: 12px; }

.ns-auth-shelf-lab {
  width: 66px; flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--ink2);
}

.ns-auth-pill {
  font-size: 12px; font-weight: 600; color: #fff; padding: 4px 12px; border-radius: 999px;
}

.ns-auth-pill.is-dim { background: #3a6ea5; }

.ns-auth-pill.is-measure { background: #1f7a54; }

.ns-auth-sheet { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 18px 26px; }

.ns-auth-sheet-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }

.ns-auth-plot { max-width: 860px; }

.ns-auth-empty { color: var(--ink2); font-size: 14px; padding: 40px 0; }

.ns-auth-status {
  flex: 0 0 auto; border-top: 1px solid var(--line); padding: 7px 16px;
  font-size: 11.5px; color: var(--ink2); background: #f7f9fb;
}

.ns-auth-convo {
  flex: 0 0 auto; width: 380px; display: flex; flex-direction: column;
  background: var(--card); border-left: 1px solid var(--line);
  padding: 12px 14px 14px;
}

.ns-auth-convo-head {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}

.ns-auth-agent-title { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }

.ns-auth-agent-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
}

.ns-auth-agent-ic svg { width: 13px; height: 13px; }

.ns-auth-agent-name {
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ns-auth-agent-tools { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }

.ns-auth-agent-tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: none; border-radius: 6px;
  background: none; color: var(--ink2); cursor: pointer;
  transition: background .12s ease, color .12s ease;
}

.ns-auth-agent-tool:hover { background: rgba(20,25,35,.07); color: var(--ink); }

.ns-auth-agent-tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

.ns-auth-convo .ns-agent-body {
  display: block; flex: 1 1 auto; min-height: 0; width: 100%;
  margin: 12px 0; overflow-y: auto;
}

.ns-auth-convo .ns-agent-body.in-authoring .ns-agent-vizstrip { display: none; }

.ns-auth-convo .ns-thread { max-height: none; height: auto; }

.ns-auth-convo .ns-agent { flex: 0 0 auto; }

.ns-auth-convo .ns-agent-suggest { top: auto; bottom: calc(100% + 8px); }

.ns-ask-row { display: flex; justify-content: flex-end; }

.ns-ask-bubble {
  background: var(--accent); color: #fff; font-size: 14.5px; line-height: 1.4;
  padding: 10px 15px; border-radius: 16px 16px 4px 16px; max-width: 70%;
}

.ns-ans-loading {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink2); font-size: 13.5px; padding: 4px 2px;
}

.ns-ans-loading-txt.is-swap { animation: gfLoaderTxtSwap .32s ease-out; }

.ns-ans-loading > [class^="typing-"] {
  flex: 0 0 auto; transform: scale(1.4); transform-origin: left center; margin-right: 4px;
}

.typing-line { display: inline-flex; align-items: center; }

.typing-line svg { overflow: visible; }

.typing-line-path {
  fill: none; stroke: #4e79a7; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 17; stroke-dashoffset: 17;
  animation: gfTypingLineDraw 1.8s linear infinite;
}

.typing-line-dot { transform-box: fill-box; transform-origin: center; fill: #6f97c4; }

.typing-line-dot:nth-child(2) { animation: gfTypingLineDot1 1.8s ease-out infinite; }

.typing-line-dot:nth-child(3) { animation: gfTypingLineDot2 1.8s ease-out infinite; }

.typing-line-dot:nth-child(4) { animation: gfTypingLineDot3 1.8s ease-out infinite; }

.typing-line-dot:nth-child(5) { animation: gfTypingLineDot4 1.8s ease-out infinite; }

.typing-area { display: inline-flex; align-items: center; }

.typing-area svg { overflow: visible; }

.typing-area-line { stroke: #f28e2b; }

.typing-area-fill {
  fill: #f28e2b; opacity: 0.28;
  clip-path: inset(0 100% 0 0);
  animation: gfTypingAreaFill 1.8s linear infinite;
}

.typing-area-dot { transform-box: fill-box; transform-origin: center; fill: #f7b46b; }

.typing-area-dot:nth-child(3) { animation: gfTypingLineDot1 1.8s ease-out infinite; }

.typing-area-dot:nth-child(4) { animation: gfTypingLineDot2 1.8s ease-out infinite; }

.typing-area-dot:nth-child(5) { animation: gfTypingLineDot3 1.8s ease-out infinite; }

.typing-area-dot:nth-child(6) { animation: gfTypingLineDot4 1.8s ease-out infinite; }

.typing-pie { display: inline-flex; align-items: center; }

.typing-pie svg { overflow: visible; }

.typing-pie-base { fill: #4e79a7; stroke: none; }

.typing-pie-wedge {
  fill: none; stroke-width: 6; stroke-linecap: butt;
  stroke-dasharray: 100 100; stroke-dashoffset: 100;
}

.typing-pie-orange { stroke: #f28e2b; animation: gfTypingPieOrange 2.16s linear infinite; }

.typing-pie-green { stroke: #59a14f; animation: gfTypingPieGreen  2.16s linear infinite; }

.typing-pie-red { stroke: #e15759; animation: gfTypingPieRed    2.16s linear infinite; }

.typing-pie-blue { stroke: #4e79a7; animation: gfTypingPieBlue   2.16s linear infinite; }

.typing-donut { display: inline-flex; align-items: center; }

.typing-donut svg { overflow: visible; }

.typing-donut-base { fill: none; stroke: #6b9ac4; stroke-width: 3.2; }

.typing-donut-ring {
  fill: none; stroke-width: 3.2; stroke-linecap: butt;
  stroke-dasharray: 100 100; stroke-dashoffset: 100;
}

.typing-donut-orange { stroke: #f28e2b; animation: gfTypingPieOrange 2.16s linear infinite; }

.typing-donut-green { stroke: #59a14f; animation: gfTypingPieGreen  2.16s linear infinite; }

.typing-donut-red { stroke: #e15759; animation: gfTypingPieRed    2.16s linear infinite; }

.typing-donut-blue { stroke: #6b9ac4; animation: gfTypingPieBlue   2.16s linear infinite; }

.typing-hbar { display: inline-flex; align-items: center; }

.typing-hbar-track { fill: #e4e6e9; }

.typing-hbar-fill {
  transform-box: fill-box; transform-origin: left; transform: scaleX(0.35);
  animation: gfTypingHbarGrow 1.2s ease-in-out infinite;
}

.typing-hbar-fill.hb-a { fill: #4e79a7; animation-delay: 0s; }

.typing-hbar-fill.hb-b { fill: #f28e2b; animation-delay: 0.15s; }

.typing-hbar-fill.hb-c { fill: #59a14f; animation-delay: 0.3s; }

.typing-hbar-ref {
  fill: #545862; transform-box: fill-box; transform-origin: center;
  animation: gfTypingHbarRef 1.2s ease-in-out infinite;
}

.typing-hbar-ref.hb-a { animation-delay: 0s; }

.typing-hbar-ref.hb-b { animation-delay: 0.15s; }

.typing-hbar-ref.hb-c { animation-delay: 0.3s; }

.typing-treemap { display: inline-flex; align-items: center; }

.typing-tm { transform-box: fill-box; transform-origin: center; rx: 0.4; }

.typing-tm-a { fill: #6b9ac4; animation: gfTypingTmA 1.8s ease-in-out infinite; }

.typing-tm-g { fill: #a7c3de; animation: gfTypingTmG 1.8s ease-in-out infinite; }

.typing-tm-d { fill: #4e79a7; animation: gfTypingTmD 1.8s ease-in-out infinite; }

.typing-tm-c { fill: #8fb4d6; animation: gfTypingTmC 1.8s ease-in-out infinite; }

.typing-tm-e { fill: #f2a693; animation: gfTypingTmE 1.8s ease-in-out infinite; }

.typing-tm-f { fill: #e15759; animation: gfTypingTmF 1.8s ease-in-out infinite; }

.typing-sankey { display: inline-flex; align-items: center; }

.typing-sk-link { fill: none; stroke-linecap: butt; stroke-dasharray: 100 140; stroke-dashoffset: 120; }

.typing-sk-link-a { stroke: #89b2d3; stroke-width: 4.2; opacity: 0.6; animation: gfTypingSkBandA 2.4s linear infinite; }

.typing-sk-link-b { stroke: #f4b58e; stroke-width: 2.6; opacity: 0.6; animation: gfTypingSkBandB 2.4s linear infinite; }

.typing-sk-bar { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }

.typing-sk-lt { fill: #6b9ac4; animation: gfTypingSkLT 2.4s ease-out infinite; }

.typing-sk-lb { fill: #4e79a7; animation: gfTypingSkLB 2.4s ease-out infinite; }

.typing-sk-rt { fill: #f28e2b; animation: gfTypingSkRT 2.4s ease-out infinite; }

.typing-sk-rb { fill: #8fb4d6; animation: gfTypingSkRB 2.4s ease-out infinite; }

.typing-scatter { display: inline-flex; align-items: center; margin-left: -1px; }

.typing-dot { transform-box: fill-box; transform-origin: center; }

.typing-dot:nth-child(1) { fill: #4e79a7; animation: gfTypingScatterBlue   1.8s ease-in-out infinite; }

.typing-dot:nth-child(2) { fill: #f28e2b; animation: gfTypingScatterOrange 1.8s ease-in-out infinite; }

.typing-dot:nth-child(3) { fill: #59a14f; animation: gfTypingScatterGreen  1.8s ease-in-out infinite; }

.typing-dot:nth-child(4) { fill: #e15759; animation: gfTypingScatterRed    1.8s ease-in-out infinite; }

.typing-line.lv-2 .typing-line-path { stroke: #f28e2b; }

.typing-line.lv-2 .typing-line-dot { fill: #f7b46b; }

.typing-line.lv-3 .typing-line-path { stroke: #59a14f; }

.typing-line.lv-3 .typing-line-dot { fill: #59a14f; }

.typing-line.lv-4 .typing-line-path { stroke: #e15759; }

.typing-line.lv-4 .typing-line-dot { fill: #f2a693; }

.typing-scatter.lv-2 .typing-dot:nth-child(1) { fill: #f28e2b; }

.typing-scatter.lv-2 .typing-dot:nth-child(2) { fill: #59a14f; }

.typing-scatter.lv-2 .typing-dot:nth-child(3) { fill: #e15759; }

.typing-scatter.lv-2 .typing-dot:nth-child(4) { fill: #4e79a7; }

.typing-scatter.lv-3 .typing-dot:nth-child(1) { fill: #59a14f; }

.typing-scatter.lv-3 .typing-dot:nth-child(2) { fill: #e15759; }

.typing-scatter.lv-3 .typing-dot:nth-child(3) { fill: #4e79a7; }

.typing-scatter.lv-3 .typing-dot:nth-child(4) { fill: #f28e2b; }

.typing-scatter.lv-4 .typing-dot:nth-child(1) { fill: #e15759; }

.typing-scatter.lv-4 .typing-dot:nth-child(2) { fill: #4e79a7; }

.typing-scatter.lv-4 .typing-dot:nth-child(3) { fill: #f28e2b; }

.typing-scatter.lv-4 .typing-dot:nth-child(4) { fill: #59a14f; }

.typing-area.lv-2 .typing-area-line { stroke: #59a14f; }

.typing-area.lv-2 .typing-area-fill { fill: #59a14f; }

.typing-area.lv-2 .typing-area-dot { fill: #59a14f; }

.typing-area.lv-3 .typing-area-line { stroke: #e15759; }

.typing-area.lv-3 .typing-area-fill { fill: #e15759; }

.typing-area.lv-3 .typing-area-dot { fill: #f2a693; }

.typing-area.lv-4 .typing-area-line { stroke: #4e79a7; }

.typing-area.lv-4 .typing-area-fill { fill: #4e79a7; }

.typing-area.lv-4 .typing-area-dot { fill: #6f97c4; }

.typing-pie.lv-2 .typing-pie-base { fill: #f28e2b; }

.typing-pie.lv-2 .typing-pie-orange { stroke: #59a14f; }

.typing-pie.lv-2 .typing-pie-green { stroke: #e15759; }

.typing-pie.lv-2 .typing-pie-red { stroke: #4e79a7; }

.typing-pie.lv-2 .typing-pie-blue { stroke: #f28e2b; }

.typing-pie.lv-3 .typing-pie-base { fill: #59a14f; }

.typing-pie.lv-3 .typing-pie-orange { stroke: #e15759; }

.typing-pie.lv-3 .typing-pie-green { stroke: #4e79a7; }

.typing-pie.lv-3 .typing-pie-red { stroke: #f28e2b; }

.typing-pie.lv-3 .typing-pie-blue { stroke: #59a14f; }

.typing-pie.lv-4 .typing-pie-base { fill: #e15759; }

.typing-pie.lv-4 .typing-pie-orange { stroke: #4e79a7; }

.typing-pie.lv-4 .typing-pie-green { stroke: #f28e2b; }

.typing-pie.lv-4 .typing-pie-red { stroke: #59a14f; }

.typing-pie.lv-4 .typing-pie-blue { stroke: #e15759; }

.typing-donut.lv-2 .typing-donut-base { stroke: #f4b58e; }

.typing-donut.lv-2 .typing-donut-orange { stroke: #59a14f; }

.typing-donut.lv-2 .typing-donut-green { stroke: #e15759; }

.typing-donut.lv-2 .typing-donut-red { stroke: #4e79a7; }

.typing-donut.lv-2 .typing-donut-blue { stroke: #f4b58e; }

.typing-donut.lv-3 .typing-donut-base { stroke: #8fb4d6; }

.typing-donut.lv-3 .typing-donut-orange { stroke: #e15759; }

.typing-donut.lv-3 .typing-donut-green { stroke: #4e79a7; }

.typing-donut.lv-3 .typing-donut-red { stroke: #f28e2b; }

.typing-donut.lv-3 .typing-donut-blue { stroke: #8fb4d6; }

.typing-donut.lv-4 .typing-donut-base { stroke: #f2a693; }

.typing-donut.lv-4 .typing-donut-orange { stroke: #4e79a7; }

.typing-donut.lv-4 .typing-donut-green { stroke: #f28e2b; }

.typing-donut.lv-4 .typing-donut-red { stroke: #59a14f; }

.typing-donut.lv-4 .typing-donut-blue { stroke: #f2a693; }

.typing-hbar.lv-2 .typing-hbar-fill.hb-a { fill: #f28e2b; }

.typing-hbar.lv-2 .typing-hbar-fill.hb-b { fill: #59a14f; }

.typing-hbar.lv-2 .typing-hbar-fill.hb-c { fill: #e15759; }

.typing-hbar.lv-3 .typing-hbar-fill.hb-a { fill: #59a14f; }

.typing-hbar.lv-3 .typing-hbar-fill.hb-b { fill: #e15759; }

.typing-hbar.lv-3 .typing-hbar-fill.hb-c { fill: #4e79a7; }

.typing-hbar.lv-4 .typing-hbar-fill.hb-a { fill: #e15759; }

.typing-hbar.lv-4 .typing-hbar-fill.hb-b { fill: #4e79a7; }

.typing-hbar.lv-4 .typing-hbar-fill.hb-c { fill: #f28e2b; }

.typing-treemap.lv-2 .typing-tm-a { fill: #f4b58e; }

.typing-treemap.lv-2 .typing-tm-g { fill: #f7b46b; }

.typing-treemap.lv-2 .typing-tm-d { fill: #f28e2b; }

.typing-treemap.lv-2 .typing-tm-c { fill: #f2a693; }

.typing-treemap.lv-2 .typing-tm-e { fill: #89b2d3; }

.typing-treemap.lv-2 .typing-tm-f { fill: #59a14f; }

.typing-treemap.lv-3 .typing-tm-a { fill: #e15759; }

.typing-treemap.lv-3 .typing-tm-g { fill: #f4b58e; }

.typing-treemap.lv-3 .typing-tm-d { fill: #f2a693; }

.typing-treemap.lv-3 .typing-tm-c { fill: #f28e2b; }

.typing-treemap.lv-3 .typing-tm-e { fill: #6b9ac4; }

.typing-treemap.lv-3 .typing-tm-f { fill: #89b2d3; }

.typing-treemap.lv-4 .typing-tm-a { fill: #59a14f; }

.typing-treemap.lv-4 .typing-tm-g { fill: #8fb4d6; }

.typing-treemap.lv-4 .typing-tm-d { fill: #6b9ac4; }

.typing-treemap.lv-4 .typing-tm-c { fill: #89b2d3; }

.typing-treemap.lv-4 .typing-tm-e { fill: #f28e2b; }

.typing-treemap.lv-4 .typing-tm-f { fill: #f2a693; }

.typing-sankey.lv-2 .typing-sk-link-a { stroke: #f4b58e; }

.typing-sankey.lv-2 .typing-sk-link-b { stroke: #89b2d3; }

.typing-sankey.lv-2 .typing-sk-lt { fill: #f4b58e; }

.typing-sankey.lv-2 .typing-sk-lb { fill: #f28e2b; }

.typing-sankey.lv-2 .typing-sk-rt { fill: #59a14f; }

.typing-sankey.lv-2 .typing-sk-rb { fill: #6b9ac4; }

.typing-sankey.lv-3 .typing-sk-link-a { stroke: #89b2d3; }

.typing-sankey.lv-3 .typing-sk-link-b { stroke: #f4b58e; }

.typing-sankey.lv-3 .typing-sk-lt { fill: #59a14f; }

.typing-sankey.lv-3 .typing-sk-lb { fill: #4e79a7; }

.typing-sankey.lv-3 .typing-sk-rt { fill: #e15759; }

.typing-sankey.lv-3 .typing-sk-rb { fill: #8fb4d6; }

.typing-sankey.lv-4 .typing-sk-link-a { stroke: #f4b58e; }

.typing-sankey.lv-4 .typing-sk-link-b { stroke: #89b2d3; }

.typing-sankey.lv-4 .typing-sk-lt { fill: #f2a693; }

.typing-sankey.lv-4 .typing-sk-lb { fill: #e15759; }

.typing-sankey.lv-4 .typing-sk-rt { fill: #4e79a7; }

.typing-sankey.lv-4 .typing-sk-rb { fill: #a7c3de; }

@media (prefers-reduced-motion: reduce) {
  .typing-line-path { animation: none; stroke-dashoffset: 0; }
  .typing-line-dot, .typing-dot, .typing-area-dot { animation: none; transform: scale(0.85); opacity: 0.85; }
  .typing-area-fill { animation: none; clip-path: inset(0 0 0 0); }
  .typing-pie-wedge, .typing-donut-ring { animation: none; stroke-dashoffset: 100; }
  .typing-hbar-fill { animation: none; transform: scaleX(0.7); }
  .typing-hbar-ref { animation: none; transform: translateX(0); }
  .typing-tm { animation: none; transform: scale(1); opacity: 0.9; }
  .typing-sk-bar { animation: none; transform: scaleY(1); }
  .typing-sk-link { animation: none; stroke-dashoffset: 0; }
}

.ns-ans {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; box-shadow: 0 4px 18px rgba(20,25,35,.05);
  transition: opacity .28s ease, transform .28s ease;
}

.ns-ans.is-entering { opacity: 0; transform: translateY(10px); }

.ns-ans--chat,
.ns-ans--search { box-shadow: 0 3px 14px rgba(20,25,35,.045); }

.ns-ans--bubble {
  background: #f4f8fb; border-color: #e4edf4; box-shadow: none;
  padding: 14px 16px; margin-bottom: -4px;
}

.ns-thread > .ns-ans:not(.ns-ans--chat):not(.ns-ans--bubble),
.ns-thread > .ns-ans-followups { margin-left: 36px; }

.user-view.is-focus-home.is-convo-active .ns-thread > .ns-ans:not(.ns-ans--chat):not(.ns-ans--bubble),
.user-view.is-focus-home.is-convo-active .ns-thread > .ns-ans-followups { margin-left: 0; }

.user-view.is-focus-home.is-convo-active .ns-thread > .ns-ans-followups--out { padding-left: 0; }

.ns-agent-reply { display: flex; align-items: flex-start; gap: 10px; }

.ns-ans--chart .ns-agent-reply,
.ns-ans--search .ns-agent-reply { margin-bottom: 14px; }

.ns-agent-reply-ic {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; margin-top: 1px;
  background: #eaf2f8; color: var(--accent);
}

.ns-agent-reply-body { font-size: 14.5px; line-height: 1.5; color: var(--ink); }

.ns-search-results { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }

.ns-search-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font: inherit; cursor: pointer;
  transition: border-color .14s, background .14s, transform .12s;
}

.ns-search-row:hover { border-color: #bcd0e8; background: #f7fafd; transform: translateY(-1px); }

.ns-search-thumb {
  flex: 0 0 auto; width: 64px; height: 42px; border-radius: 7px; overflow: hidden;
}

.ns-search-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ns-search-body { flex: 1 1 auto; min-width: 0; }

.ns-search-name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ns-search-meta { font-size: 12.5px; color: var(--ink2); display: flex; align-items: center; gap: 7px; }

.ns-search-open { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: var(--accent); }

.ns-search-empty { margin-top: 12px; font-size: 13.5px; color: var(--ink2); }

.ns-ans-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

.ns-ans-tile { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; }

.ns-ans-titlewrap { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }

.ns-ans-thumb { display: none; }

.ns-ans-title { font-size: 16px; font-weight: 400; color: var(--ink); letter-spacing: -.01em; }

.ns-ans-fb { display: inline-flex; align-items: center; gap: 2px; margin-right: auto; }

.ns-ans-fb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  color: var(--ink2, #5f6470); background: transparent; border: 1px solid transparent;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}

.ns-ans-fb-btn:hover { background: var(--f-rail-hover, rgba(0,0,0,.05)); color: var(--ink, #1f2125); }

.ns-ans-fb-btn.is-on { color: var(--accent, #05628a); background: var(--f-rail-active, rgba(5,98,138,.12)); }

.ns-ans-fb-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(5,98,138,.28); }

.ns-ans-fb-info { position: relative; }

.ns-ans-fb-info.is-open { color: var(--accent, #05628a); background: var(--f-rail-active, rgba(5,98,138,.12)); }

.ns-ans-fb-pop {
  position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 40;
  min-width: 208px; max-width: 280px; padding: 10px 12px;
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(16,24,40,.16), 0 2px 6px rgba(16,24,40,.08);
  display: none; flex-direction: column; gap: 7px; cursor: default;
  text-align: left; white-space: normal;
}

.ns-ans-fb-info.is-open .ns-ans-fb-pop { display: flex; }

.ns-ans-fb-pop-row { display: flex; align-items: baseline; gap: 10px; }

.ns-ans-fb-pop-k {
  flex: 0 0 54px; font-size: 11px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink2, #5f6470);
}

.ns-ans-fb-pop-v { flex: 1 1 auto; font-size: 13px; font-weight: 600; color: var(--ink, #1f2125); }

.ns-ans-stat {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end;
  gap: 2px; text-align: right; background: transparent; border-radius: 0; padding: 0;
}

.ns-ans-stat-label { font-size: 12px; color: var(--ink2); font-weight: 600; align-self: flex-start; text-align: left; }

.ns-ans-stat-figure { display: flex; align-items: baseline; gap: 7px; }

.ns-ans-stat-val { font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }

.ns-ans-stat-delta { font-size: 13px; font-weight: 600; }

.ns-ans-stat-delta.is-good { color: #1e7d43; }

.ns-ans-stat-delta.is-bad { color: #c0392b; }

.ns-ans-stat-sub { font-size: 13px; font-weight: 500; color: var(--ink2); }

.ns-ans-titlewrap > .ns-ans-stat-figure { margin-top: 10px; text-align: left; }

.ns-ans-toolbar { display: flex; align-items: center; gap: 14px; margin: 12px 0 6px; }

.ns-ans-hint { font-size: 12px; color: var(--ink2); font-style: italic; }

.ns-viz-plot { width: 100%; margin-top: 4px; position: relative; }

.ns-viz-svg { width: 100%; height: 300px; display: block; overflow: visible; }

.ns-viz-svg--donut { height: 300px; }

.ns-viz-grid { stroke: #eef1f5; stroke-width: 1; }

.ns-viz-axis { fill: #8a97a5; font-size: 12px; font-family: var(--font); }

.ns-viz-bar { transition: opacity .12s; }

.ns-viz-bar:hover { opacity: .82; }

.ns-hero-anim {
  transition: x .5s cubic-bezier(.4,0,.2,1), y .5s cubic-bezier(.4,0,.2,1),
    width .5s cubic-bezier(.4,0,.2,1), height .5s cubic-bezier(.4,0,.2,1),
    fill .5s ease, opacity .42s ease;
}

.ns-hero-anim:hover { opacity: 1; }

.ns-viz-line { stroke-width: 2.5; }

.ns-viz-area { opacity: .10; }

.ns-viz-forecast { stroke-width: 2.5; stroke-dasharray: 5 4; opacity: .7; stroke-linecap: round; }

.ns-viz-forecast-dot { stroke-width: 2; }

.ns-viz-trend { stroke-width: 1.25; stroke-dasharray: 1 4; opacity: .5; stroke-linecap: round; }

.ns-viz-forecast-lbl { fill: #8a97a5; font-style: italic; }

.ns-viz-prev { stroke-width: 2.25; opacity: 1; stroke-linecap: round; }

.ns-viz-prev-dot { stroke-width: 2; opacity: 1; }

.ns-viz-goal { stroke: #747474; stroke-width: 1.5; stroke-dasharray: 6 4; opacity: .85; }

.ns-viz-goal-lbl { fill: #5c5c5c; font-size: 11.5px; font-weight: 600; font-family: var(--font); }

.ns-viz-legend {
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center;
  margin-top: 16px;
}

.ns-viz-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink2, #5f6470); }

.ns-viz-legend-sw { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 auto; }

.ns-viz-plot.is-viz-in .ns-viz-bar:not(.ns-viz-bar--stack),
.ns-viz-plot.is-viz-in .ns-viz-barstack {
  transform-box: fill-box; transform-origin: bottom;
  animation: gfBarGrow .42s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: calc(var(--bi, 0) * 55ms);
}

.ns-viz-plot.is-viz-in .ns-viz-line:not(.ns-viz-forecast) {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: gfLineDraw .72s ease .12s forwards;
}

.ns-viz-plot.is-viz-in .ns-viz-svg--donut {
  transform-origin: center;
  animation: gfDonutIn .5s cubic-bezier(.22,.61,.36,1) both;
}

@media (prefers-reduced-motion: reduce) {
  .ns-viz-plot.is-viz-in .ns-viz-bar:not(.ns-viz-bar--stack),
  .ns-viz-plot.is-viz-in .ns-viz-barstack { animation: none; transform: none; }
  .ns-viz-plot.is-viz-in .ns-viz-line:not(.ns-viz-forecast) {
    animation: none; stroke-dasharray: none; stroke-dashoffset: 0;
  }
  .ns-viz-plot.is-viz-in .ns-viz-svg--donut { transform: none; }
  .ns-viz-plot.is-viz-in .ns-viz-svg {
    animation: gfFadeIn .4s ease both;
  }
}

.ns-viz-dot { stroke: #fff; stroke-width: 1.5; transition: r .12s; cursor: default; }

.ns-viz-dot:hover { r: 6; }

.ns-pipe-line { stroke-width: 2.25; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.ns-pipe-dashed { stroke-dasharray: 6 5; opacity: .9; }

.ns-pipe-today { stroke: #c3ccdb; stroke-width: 1; stroke-dasharray: 3 3; opacity: .75; }

.ns-pipe-today-lbl { fill: #8a97a5; font-size: 11px; font-weight: 600; font-family: var(--font); }

.ns-pipe-endlbl { font-size: 13px; font-weight: 700; font-family: var(--font); }

.ns-pipe-leg-line { stroke-width: 2.5; stroke-linecap: round; }

.ns-pipe-leg-lbl { fill: #5f6470; font-size: 12px; font-family: var(--font); }

.ns-viz-plot.is-viz-in .ns-pipe-line { animation: gfFadeIn .7s ease both; }

.ns-viz-hbar { cursor: pointer; transition: opacity .12s; }

.ns-viz-hbar:hover { opacity: .82; }

.ns-viz-hbar.is-selected { stroke: var(--accent); stroke-width: 2.5; paint-order: stroke; }

.ns-viz-svg--hbar.has-sel .ns-viz-hbar { opacity: .38; }

.ns-viz-svg--hbar.has-sel .ns-viz-hbar.is-selected { opacity: 1; }

.ns-viz-plot.is-viz-in .ns-viz-hbar {
  transform-box: fill-box; transform-origin: left;
  animation: gfBarGrowX .42s cubic-bezier(.22,.61,.36,1) both;
  animation-delay: calc(var(--bi, 0) * 55ms);
}

@media (prefers-reduced-motion: reduce) {
  .ns-viz-plot.is-viz-in .ns-viz-hbar { animation: none; transform: none; }
}

.ns-hbar-overlay { position: absolute; inset: 0; pointer-events: none; font-family: var(--font); }

.ns-hbar-name {
  position: absolute; left: 0; transform: translateY(-50%);
  text-align: right; padding-right: 10px; box-sizing: border-box;
  font-size: 14px; color: var(--ink); line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ns-hbar-val {
  position: absolute; transform: translateY(-50%); margin-left: 8px;
  font-size: 14px; font-weight: 600; color: #5f6470; white-space: nowrap;
}

.ns-hbar-xlab {
  position: absolute; transform: translateX(-50%);
  font-size: 14px; color: #8a97a5; white-space: nowrap;
}

.ns-hbar-name--emblem {
  display: flex; align-items: center; justify-content: flex-end; gap: 6px;
}

.ns-hbar-emblem { flex: 0 0 auto; width: 16px; height: 16px; line-height: 0; }

.ns-hbar-emblem svg { width: 100%; height: 100%; display: block; }

.ns-hbar-nametext { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

.ns-flow {
  /* No panel background/border/shadow — the whole Sankey floats directly on the
     white card, matching the Top contributors chart. */
  background: transparent; color: #2b3648; border-radius: 12px;
  padding: 14px 16px 18px; font-family: var(--font, inherit);
}

.ns-flow-title { font-size: 14px; font-weight: 800; color: #1b2735; letter-spacing: -.2px; margin: 0 2px 10px; }

.ns-flow-totals { display: flex; align-items: flex-start; margin: 2px 2px 4px; }

.ns-flow-tot { display: flex; flex-direction: column; gap: 1px; }

.ns-flow-tot--delta { flex: 1; text-align: center; align-items: center; }

.ns-flow-tot--end { text-align: right; align-items: flex-end; }

.ns-flow-tot-date { font-size: 13px; color: #48566a; }

.ns-flow-tot-amt { font-size: 20px; font-weight: 800; color: #1b2735; letter-spacing: -.2px; }

.ns-flow-delta { font-size: 20px; font-weight: 800; }

.ns-flow-delta.is-up { color: #1a9e6b; }

.ns-flow-delta.is-down { color: #d0453f; }

.ns-flow-tot-sub { font-size: 13px; color: #48566a; text-transform: uppercase; letter-spacing: .06em; }

.ns-flow-plot { position: relative; margin-top: 6px; }

.ns-viz-svg--flow { width: 100%; display: block; overflow: visible; }

.ns-flow-baseline { stroke: rgba(70,90,120,.55); stroke-width: 1.1; stroke-dasharray: 3 4; }

.ns-flow-baseline-cap {
  fill: #8894a5; font-family: var(--font, inherit); font-size: 9.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}

.ns-flow-ribbon {
  fill-opacity: .46; stroke: var(--f-bg, #fbfbfa); stroke-width: .9;
  transition: fill-opacity .12s; cursor: pointer;
}

.ns-viz-svg--flow.has-hover .ns-flow-ribbon,
.ns-viz-svg--flow.has-sel .ns-flow-ribbon { fill-opacity: .16; }

.ns-viz-svg--flow.has-hover .ns-flow-ribbon.is-hover,
.ns-viz-svg--flow.has-sel .ns-flow-ribbon.is-selected { fill-opacity: .9; }

.ns-flow-node { cursor: pointer; }

.ns-flow-node.is-selected { stroke: #1b2735; stroke-width: 1.5; paint-order: stroke; }

.ns-flow-origin { fill-opacity: .5; pointer-events: none; }

.ns-viz-plot.is-viz-in .ns-flow-ribbon {
  animation: gfFadeIn .55s ease both; animation-delay: calc(var(--bi, 0) * 22ms);
}

@media (prefers-reduced-motion: reduce) {
  .ns-viz-plot.is-viz-in .ns-flow-ribbon { animation: none; }
}

.ns-flow-labels { position: absolute; inset: 0; pointer-events: none; }

.ns-flow-lbl {
  position: absolute; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0; line-height: 1.2; white-space: nowrap;
}

.ns-flow-lbl--L { text-align: right; align-items: flex-end; }

.ns-flow-lbl--R { text-align: left; align-items: flex-start; }

.ns-flow-lbl-name {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 400; letter-spacing: .01em; color: #48566a;
}

.ns-flow-lbl-val { font-size: 15px; font-weight: 400; color: #1b2735; }

.ns-viz-svg--bump { width: 100%; display: block; overflow: visible; }

.ns-bump-ribbon {
  fill-opacity: .9; stroke: rgba(255, 255, 255, .6); stroke-width: 1;
  transition: fill-opacity .12s; cursor: pointer;
}

.ns-viz-svg--bump.has-hover .ns-bump-ribbon,
.ns-viz-svg--bump.has-sel .ns-bump-ribbon { fill-opacity: .22; }

.ns-viz-svg--bump.has-hover .ns-bump-ribbon.is-hover,
.ns-viz-svg--bump.has-sel .ns-bump-ribbon.is-selected { fill-opacity: 1; }

.ns-bump-ribbon.is-selected { stroke: #05628A; stroke-width: 2; paint-order: stroke; }

.ns-bump-grid { stroke: #e7ebf0; stroke-width: 1; }

.ns-viz-plot.is-viz-in .ns-bump-ribbon {
  animation: gfFadeIn .55s ease both; animation-delay: calc(var(--bi, 0) * 60ms);
}

@media (prefers-reduced-motion: reduce) {
  .ns-viz-plot.is-viz-in .ns-bump-ribbon { animation: none; }
}

.ns-bump-overlay { position: absolute; inset: 0; pointer-events: none; font-family: var(--font); }

.ns-bump-qlab {
  position: absolute; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; color: #5f6470; white-space: nowrap;
}

.ns-bump-name {
  position: absolute; left: 0; transform: translateY(-50%);
  text-align: right; padding-right: 2px; box-sizing: border-box;
  font-size: 12.5px; font-weight: 700; color: var(--c, var(--ink)); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ns-bump-val {
  position: absolute; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 1px; line-height: 1.15; white-space: nowrap;
}

.ns-bump-amt { font-size: 12.5px; font-weight: 700; color: var(--c, var(--ink)); }

.ns-bump-move { font-weight: 700; font-size: 11px; }

.ns-bump-move.is-up { color: #2e8b57; }

.ns-bump-move.is-down { color: #c0392b; }

.ns-bump-move.is-flat { color: #8a97a5; }

.ns-viz-arc { transition: opacity .12s; }

.ns-viz-arc:hover { opacity: .82; }

.ns-viz-donut-total { fill: var(--ink); font-size: 22px; font-weight: 800; font-family: var(--font); }

.is-drillable { cursor: pointer; }

.ns-viz-bar { cursor: pointer; }

.ns-viz-bar.is-selected {
  stroke: var(--accent); stroke-width: 2.5; paint-order: stroke;
}

.ns-viz-xaxis { position: absolute; left: 0; right: 0; pointer-events: none; }

.ns-viz-xcell {
  position: absolute; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 3px;
  font-size: 12px; color: #8a97a5; line-height: 1;
}

.ns-viz-xlabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ns-viz-affd {
  pointer-events: auto; flex: 0 0 auto;
  width: 15px; height: 15px; padding: 0; border: none; background: none;
  display: inline-grid; place-items: center; cursor: pointer;
  font: inherit; font-size: 14px; line-height: 1; color: #b3bcc7;
  border-radius: 50%; transition: color .12s, background .12s;
}

.ns-viz-affd:hover { color: var(--accent); background: #eef4f8; }

.ns-viz-minus { font-weight: 700; }

.ns-ans-why {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 14px;
  background: #f6faf6; border-left: 3px solid #59a14f; border-radius: 0 8px 8px 0;
  padding: 10px 13px; font-size: 13.5px; line-height: 1.45; color: var(--ink);
}

.ns-ans-why-ic { flex: 0 0 auto; color: #59a14f; margin-top: 1px; }

.ns-ans-followups { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; margin-top: 14px; }

.ns-ans-followups-head { display: flex; align-items: center; gap: 10px; }

.ns-ans-followups-label { font-size: 12px; color: var(--ink2); font-weight: 600; }

.ns-ans-chiprow { display: flex; flex-wrap: wrap; gap: 8px; }

.ns-ans-shuffle {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--accent, #05628a);
  background: transparent; border: 0; padding: 3px 6px; border-radius: 999px;
  transition: background .14s ease, color .14s ease;
}

.ns-ans-shuffle svg { width: 13px; height: 13px; }

.ns-ans-shuffle:hover { background: var(--f-rail-hover, rgba(5,98,138,.08)); }

.ns-ans-shuffle:active svg { transform: rotate(180deg); transition: transform .2s ease; }

.ns-ans-chip {
  border: 1px solid var(--line); background: #fff; color: var(--accent);
  font: inherit; font-size: 13px; padding: 6px 13px; border-radius: 999px;
  cursor: pointer; transition: border-color .15s, background .15s;
}

.ns-ans-chip:hover { border-color: #9fbce0; background: #f4f8fc; }

.ns-story { margin: 6px 0 4px; }

.ns-story-label {
  display: flex; align-items: center; gap: 7px; margin: 0 0 10px;
  font-size: 12px; font-weight: 600; color: var(--ink2, #5f6470);
}

.ns-story-ic { display: inline-flex; color: #59a14f; }

.ns-story-ic svg { width: 15px; height: 15px; }

.ns-story-cards { display: flex; flex-wrap: wrap; gap: 10px; }

.ns-story-card {
  display: flex; align-items: center; gap: 11px; text-align: left;
  flex: 1 1 240px; min-width: 220px; max-width: 340px;
  padding: 10px 12px; background: #fff; cursor: pointer;
  border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 12px;
  font: inherit; transition: border-color .15s, box-shadow .15s, background .15s;
}

.ns-story-card:hover {
  border-color: #9fbce0; background: #fbfdff;
  box-shadow: 0 4px 14px rgba(20,25,35,.07);
}

.ns-story-thumb {
  flex: 0 0 auto; width: 52px; height: 34px; border-radius: 7px; overflow: hidden;
  background: var(--f-rail-bg, #f2f2ef); display: flex; align-items: center; justify-content: center;
}

.ns-story-thumb svg { width: 100%; height: 100%; }

.ns-story-meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.ns-story-title {
  font-size: 13.5px; font-weight: 500; color: var(--ink, #1f2125);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ns-story-stat { display: flex; align-items: baseline; gap: 7px; font-size: 12.5px; }

.ns-story-stat-val { font-weight: 600; color: var(--ink, #1f2125); }

.ns-story-stat-delta { font-weight: 600; }

.ns-story-stat-delta.is-good { color: #3d8b40; }

.ns-story-stat-delta.is-bad { color: #c0392b; }

.ns-story-stat-sub { color: var(--ink2, #5f6470); }

.ns-story-open {
  flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--accent, #05628a);
  opacity: 0; transition: opacity .15s;
}

.ns-story-card:hover .ns-story-open { opacity: 1; }

.ns-viz-tip {
  position: fixed; z-index: 9000; pointer-events: none;
  background: rgba(22,25,31,.94); color: #fff; font-size: 12.5px; line-height: 1.4;
  padding: 7px 10px; border-radius: 7px; box-shadow: 0 4px 14px rgba(0,0,0,.22);
  white-space: nowrap;
}

.ns-note-inner { padding: 2px 0; }

.ns-note-title { font-weight: 600; font-size: 19px; color: var(--ink); margin-bottom: 4px; }

.ns-note-body { margin: 0; font-size: 14.5px; color: var(--ink2); line-height: 1.5; max-width: 640px; }

.ns-note-author { margin-top: 8px; font-size: 12.5px; color: var(--ink2); font-style: italic; }

.ns-learn-list { display: flex; flex-direction: column; gap: 8px; }

.ns-learn { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px; cursor: pointer; }

.ns-learn:hover { border-color: var(--accent); }

.ns-learn-ic {
  width: 30px; height: 30px; border-radius: 8px; background: #eef2f6; color: var(--accent);
  display: grid; place-items: center; font-size: 13px;
}

.ns-learn-body { flex: 1 1 auto; }

.ns-learn-body b { font-size: 13.5px; display: block; }

.ns-learn-body small { color: var(--ink2); font-size: 12px; }

.ns-learn.is-pinned { border-color: var(--accent); background: #f5f9fc; }

.ns-learn-pin {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 700; color: var(--accent);
  background: #eaf2f8; border-radius: 20px; padding: 2px 8px; white-space: nowrap;
}

.ns-checklist { display: flex; flex-direction: column; gap: 7px; max-width: 460px; }

.ns-check { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px; font-size: 13.5px; }

.ns-check-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c2ccd6; display: grid; place-items: center; color: #fff; font-size: 12px; }

.ns-check.is-done .ns-check-box { background: #2e9e5b; border-color: #2e9e5b; }

.ns-check.is-done span:last-child { color: var(--ink2); text-decoration: line-through; }

.admin-modal-scrim { position: fixed; inset: 0; background: rgba(15,25,40,.42); display: grid; place-items: center; z-index: 200; }

.admin-modal { background: #fff; border-radius: 14px; padding: 22px; width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.28); }

.admin-modal--wide { width: 520px; }

.admin-modal-head { font-size: 17px; font-weight: 700; margin-bottom: 16px; }

.admin-modal-field { display: block; margin-bottom: 14px; }

.admin-modal-field span { display: block; font-size: 12.5px; color: var(--ink2); margin-bottom: 5px; }

.admin-modal-field input,
.admin-modal-field textarea {
  width: 100%; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px;
}

.admin-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }

.admin-btn { border: 1px solid transparent; background: var(--accent); color: #fff; font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 8px; cursor: pointer; }

.admin-btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; padding: 9px 16px; border-radius: 8px; cursor: pointer; }

.admin-source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }

.admin-source-opt { display: flex; align-items: center; gap: 11px; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px; cursor: pointer; font: inherit; }

.admin-source-opt:hover { border-color: var(--accent); background: #f6fafc; }

.admin-source-ic { width: 32px; height: 32px; border-radius: 8px; background: #eef2f6; color: var(--accent); display: grid; place-items: center; font-size: 15px; flex: 0 0 auto; }

.admin-source-opt small { display: block; color: var(--ink2); font-size: 11.5px; }

.admin-modal { max-height: 88vh; overflow: auto; }

.admin-modal-opt { display: inline; color: var(--ink3, #9aa4b1); font-weight: 400; text-transform: none; }

.admin-modal-hint { margin: -8px 0 14px; font-size: 11.5px; color: var(--ink2); line-height: 1.4; }

.admin-modal-hint b { font-weight: 600; color: var(--ink); }

.admin-chiprow { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }

.admin-chip {
  display: inline-flex; align-items: center; gap: 7px; background: #f1f4f8;
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px 4px 5px; font-size: 12.5px; max-width: 100%;
}

.admin-chip span { display: inline-flex; margin: 0; font-size: 12.5px; color: var(--ink); }

.admin-chip-thumb {
  width: 22px; height: 16px; border-radius: 3px; flex: 0 0 auto;
  background: #d7dee7 var(--chip-thumb) center/cover no-repeat;
}

.admin-chip-name { display: inline-block !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }

.admin-chip-x { border: 0; background: none; color: var(--ink2); cursor: pointer; font-size: 11px; padding: 0 1px; line-height: 1; flex: 0 0 auto; }

.admin-chip-x:hover { color: var(--ink); }

.admin-browse {
  display: inline-flex; align-items: center; gap: 6px; border: 1px dashed var(--line); background: #fff;
  color: var(--accent); font: inherit; font-size: 13px; padding: 7px 12px; border-radius: 8px; cursor: pointer;
}

.admin-browse:hover { border-color: var(--accent); background: #f6fafc; }

.admin-br-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-bottom: 10px; font-size: 12.5px; }

.admin-br-crumb { border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--accent); cursor: pointer; padding: 2px 4px; border-radius: 5px; }

.admin-br-crumb:last-child { color: var(--ink); font-weight: 600; }

.admin-br-crumb:hover { background: #f1f4f8; }

.admin-br-sep { color: var(--ink2); font-size: 12px; }

.admin-br-list {
  border: 1px solid var(--line); border-radius: 10px; overflow: auto; max-height: 46vh; margin-bottom: 10px;
}

.admin-br-row {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; font: inherit;
  padding: 9px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; cursor: pointer;
}

.admin-br-row:last-child { border-bottom: 0; }

.admin-br-row:hover { background: #f6fafc; }

.admin-br-ic { width: 18px; height: 18px; display: inline-flex; color: #c99b3f; flex: 0 0 auto; }

.admin-br-ic svg { width: 18px; height: 18px; }

.admin-br-folder .admin-br-name { font-weight: 500; }

.admin-br-name { font-size: 13.5px; color: var(--ink); }

.admin-br-count { margin-left: auto; font-size: 11.5px; color: var(--ink2); }

.admin-br-go { color: var(--ink2); font-size: 15px; flex: 0 0 auto; }

.admin-br-item { position: relative; }

.admin-br-item input[type="checkbox"] { width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--accent); }

.admin-br-thumb { width: 46px; height: 30px; border-radius: 4px; background: #d7dee7 center/cover no-repeat; flex: 0 0 auto; }

.admin-br-itemtext { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.admin-br-item .admin-br-meta { font-size: 11.5px; color: var(--ink2); }

.admin-br-check { margin-left: auto; color: var(--accent); font-size: 13px; opacity: 0; flex: 0 0 auto; }

.admin-br-item.is-on { background: #f0f7fb; }

.admin-br-item.is-on .admin-br-check { opacity: 1; }

.admin-br-selbar { font-size: 12px; color: var(--ink2); margin-bottom: 4px; }

.ns-card-thumb .ns-draft-flag {
  position: absolute; inset: 8px auto auto 8px;
  background: rgba(28,63,95,.9); color: #fff; opacity: 1 !important;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  padding: 2px 7px; border-radius: 4px; z-index: 2;
}

.ns-explore {
  display: grid; grid-template-columns: 232px 1fr; gap: 22px;
  padding: 12px 24px 60px; max-width: 940px; margin-left: auto; margin-right: auto; align-items: start;
}

.ns-explore-tree {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 8px; position: sticky; top: 12px;
  max-height: calc(100vh - 120px); overflow: auto;
}

.ns-explore-tree-head {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink2); padding: 6px 8px 8px;
}

.ns-tree-row {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 8px 5px 10px; border-radius: 6px; cursor: pointer;
  font-size: 13.5px; color: var(--ink); user-select: none;
}

.ns-tree-row:hover { background: #f0f4f8; }

.ns-tree-row.is-sel { background: #e7f0f6; color: var(--accent); font-weight: 600; }

.ns-tree-caret {
  width: 12px; flex: 0 0 auto; color: var(--ink2); font-size: 9px;
  transition: transform .12s ease; text-align: center;
}

.ns-tree-caret.is-open { transform: rotate(90deg); }

.ns-tree-caret.is-empty { visibility: hidden; }

.ns-tree-fi { width: 16px; height: 16px; flex: 0 0 auto; color: #c99b3f; display: inline-flex; }

.ns-tree-fi svg { width: 16px; height: 16px; }

.ns-tree-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ns-explore-crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }

.ns-explore-crumb {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-size: 13px; color: var(--ink2); font-family: inherit;
}

.ns-explore-crumb:last-child { color: var(--ink); font-weight: 600; cursor: default; }

.ns-explore-crumb:hover:not(:last-child) { color: var(--accent); text-decoration: underline; }

.ns-explore-crumb-sep { color: var(--ink2); font-size: 12px; }

.ns-folder-card { cursor: pointer; }

.ns-folder-thumb {
  height: 100px; display: flex; align-items: center; justify-content: center;
  background: #eef2f6;
}

.ns-folder-thumb svg { width: 76px; height: 58px; }

.ns-recycle { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

.ns-recycle-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--card);
}

.ns-recycle-row:last-child { border-bottom: 0; }

.ns-recycle-thumb {
  width: 64px; height: 42px; border-radius: 5px; flex: 0 0 auto;
  position: relative; overflow: hidden;
}

.ns-recycle-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.ns-recycle-body { flex: 1; min-width: 0; }

.ns-recycle-name { font-size: 14px; font-weight: 600; color: var(--ink); }

.ns-recycle-meta { font-size: 12px; color: var(--ink2); margin-top: 2px; }

.ns-recycle-left { font-size: 12px; color: var(--ink2); flex: 0 0 auto; }

.ns-recycle-restore {
  border: 1px solid var(--line); background: var(--card); color: var(--accent);
  font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 6px 14px; border-radius: 6px; flex: 0 0 auto;
}

.ns-recycle-restore:hover { background: #f0f7fb; border-color: var(--accent); }

.ns-pinned { padding: 8px 48px 0; max-width: 1120px; }

.ns-pinned .ns-sec { margin-bottom: 22px; }

.ns-pinned .ns-sec-title { display: flex; align-items: center; gap: 7px; }

.ns-pin-ico { display: inline-flex; width: 15px; height: 15px; color: var(--accent); }

.ns-pin-ico svg { width: 15px; height: 15px; }

.ns-explore-lead {
  padding: 6px 48px 0; max-width: 1120px;
  font-size: 16px; font-weight: 700; color: var(--ink);
}

.user-main .ns-explore-lead { font-weight: 500; }

.ns-gate {
  position: fixed; inset: 0; z-index: 9500;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #0d2438, #163f5f);
}

.ns-gate-card {
  width: min(92vw, 380px); background: #fff; border-radius: 16px;
  padding: 30px 28px 26px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}

.ns-gate-mark { width: 40px; height: 40px; margin-bottom: 6px; }

.ns-gate-mark svg { width: 100%; height: 100%; }

.ns-gate-title { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0; }

.ns-gate-sub { font-size: 13.5px; color: var(--ink2); line-height: 1.45; margin: 4px 0 14px; }

.ns-gate-input {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  outline: 0; transition: border-color .15s, box-shadow .15s;
}

.ns-gate-input:focus { border-color: #9fbce0; box-shadow: 0 0 0 3px rgba(5,98,138,.12); }

.ns-gate-err { color: #c0392b; font-size: 12.5px; margin-top: 8px; align-self: flex-start; }

.ns-gate-btn {
  width: 100%; margin-top: 14px; border: 0; border-radius: 10px; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  padding: 11px 14px; transition: background .15s;
}

.ns-gate-btn:hover { background: #023248; }

.ns-gate-btn:disabled { opacity: .7; cursor: default; }

.ns-import-btn {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 9px; cursor: pointer; align-self: flex-start;
  background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
  padding: 9px 15px; transition: background .15s, box-shadow .15s;
  box-shadow: 0 1px 2px rgba(20,25,35,.12);
}

.ns-import-btn:hover { background: #023248; }

.ns-import-plus { font-size: 17px; line-height: 1; font-weight: 500; }

.ns-asset-card { position: relative; }

.ns-asset-origin {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 20px; font-size: 11.5px; font-weight: 600;
  background: rgba(255,255,255,.92); color: #2a3542; box-shadow: 0 1px 3px rgba(20,25,35,.18);
  backdrop-filter: blur(2px);
}

.ns-asset-status {
  display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600;
  margin-right: 4px; vertical-align: baseline;
}

.ns-asset-status.is-ok { background: #e5f4ea; color: #1e7d43; }

.ns-asset-status.is-info { background: #fdf3dd; color: #9a6a00; }

.ns-asset-status.is-bad { background: #fbe6e6; color: #c0392b; }

.ns-asset-when { font-size: 12px; color: var(--ink2); margin-top: 4px; }

.ns-set-actions { display: inline-flex; gap: 8px; margin-top: 14px; align-self: flex-start; }

.ns-set-btn {
  font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 16px;
  border-radius: 9px; cursor: pointer; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); transition: background .15s, border-color .15s;
}

.ns-set-btn:hover { background: #eef4f8; }

.ns-set-btn.is-primary { background: var(--accent); border-color: var(--accent); color: #fff; }

.ns-set-btn.is-primary:hover { background: #023248; }

.ns-set-btn.is-saved { background: #1e7d43; border-color: #1e7d43; }

.ns-set-tabs {
  display: flex; gap: 2px; flex-wrap: wrap; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.ns-set-tab {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink2);
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 12px 9px; cursor: pointer; white-space: nowrap; margin-bottom: -1px;
}

.ns-set-tab:hover:not(:disabled) { color: var(--ink); }

.ns-set-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.ns-set-tab:disabled { opacity: .5; cursor: default; }

.ns-settings { max-width: 720px; }

.ns-settings .ns-sec + .ns-sec { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }

.ns-set-row { display: flex; align-items: flex-start; gap: 20px; }

.ns-set-txt { flex: 1 1 auto; min-width: 0; }

.ns-set-label { font-size: 14px; font-weight: 600; color: var(--ink); }

.ns-set-desc { font-size: 13px; color: var(--ink2); margin-top: 3px; line-height: 1.45; }

.ns-switch {
  flex: 0 0 auto; width: 40px; height: 22px; border-radius: 999px; padding: 0;
  border: 1px solid var(--line); background: #e6e6e3; cursor: pointer;
  position: relative; transition: background .16s ease, border-color .16s ease;
}

.ns-switch-knob {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(20,25,35,.28); transition: left .16s ease;
}

.ns-switch.is-on { background: var(--accent); border-color: var(--accent); }

.ns-switch.is-on .ns-switch-knob { left: 20px; }

.ns-logo-row { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }

.ns-logo-file {
  font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 16px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink); cursor: pointer; transition: background .15s;
}

.ns-logo-file:hover { background: #eef4f8; }

.ns-logo-previews { display: flex; gap: 16px; }

.ns-logo-box {
  width: 148px; height: 58px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); display: flex; align-items: center; justify-content: center; gap: 9px;
}

.ns-logo-box.is-collapsed { width: 58px; }

.ns-logo-box svg { width: 24px; height: 24px; }

.ns-logo-box-name { font-size: 14px; font-weight: 700; letter-spacing: .01em; color: var(--ink); }

.ns-logo-cap { font-size: 12px; color: var(--ink3, var(--ink2)); margin-top: 6px; text-align: center; }

.ns-set-select {
  font: inherit; font-size: 13.5px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px;
  min-width: 220px; cursor: pointer;
}

.ns-coll-tabs { display: flex; gap: 2px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }

.ns-coll-tab {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink2);
  background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 9px 12px 8px; margin-bottom: -1px; cursor: pointer;
}

.ns-coll-tab:hover { color: var(--ink); }

.ns-coll-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.ns-recycle-filter { display: inline-flex; align-items: center; gap: 8px; }

.ns-recycle-filter-label { font-size: 12.5px; font-weight: 600; color: var(--ink2); }

.ns-recycle-select { min-width: 180px; padding: 7px 11px; font-size: 13px; }

.ns-explore-scope { margin-top: 14px; align-self: flex-start; }

.ns-explore-scope .ns-set-select { min-width: 240px; }

.iw-scrim {
  position: fixed; inset: 0; z-index: 300; background: rgba(15,25,40,.5);
  display: grid; place-items: center; padding: 28px;
  animation: iw-fade .16s ease;
}

.iw-modal {
  background: #fff; border-radius: 16px; width: min(760px, 100%);
  max-height: calc(100vh - 56px); display: flex; flex-direction: column;
  box-shadow: 0 24px 70px rgba(15,25,40,.4); overflow: hidden;
  animation: iw-rise .2s cubic-bezier(.2,.7,.3,1);
}

.iw-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 24px 14px; border-bottom: 1px solid var(--line);
}

.iw-title { font-size: 19px; font-weight: 700; color: var(--ink); }

.iw-sub { font-size: 13px; color: var(--ink2); margin-top: 3px; max-width: 560px; }

.iw-close {
  margin-left: auto; flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 8px;
  background: #f1f3f6; color: #5a6472; font-size: 14px; cursor: pointer; transition: background .12s;
}

.iw-close:hover { background: #e4e8ee; }

.iw-steps {
  display: flex; gap: 6px; padding: 14px 24px; border-bottom: 1px solid var(--line);
  background: #fafbfc; flex-wrap: wrap;
}

.iw-step { display: flex; align-items: center; gap: 8px; padding-right: 8px; }

.iw-step:not(:last-child)::after {
  content: ""; width: 26px; height: 1px; background: var(--line); margin-left: 2px;
}

.iw-step-dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: #e4e8ee; color: #7d8b9c;
}

.iw-step-label { font-size: 13px; color: #97a0ad; font-weight: 500; }

.iw-step.is-cur .iw-step-dot { background: var(--accent); color: #fff; }

.iw-step.is-cur .iw-step-label { color: var(--ink); font-weight: 600; }

.iw-step.is-done .iw-step-dot { background: #1e7d43; color: #fff; }

.iw-step.is-done .iw-step-label { color: var(--ink2); }

.iw-body { padding: 22px 24px; overflow-y: auto; }

.iw-drop {
  border: 1.5px dashed #c2cede; border-radius: 12px; background: #f7fafc;
  padding: 26px 20px; text-align: center; color: #5b87c4; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  transition: border-color .13s, background .13s;
}

.iw-drop:hover { border-color: #9fbce0; background: #f1f7fc; }

.iw-drop-folder { color: #5b87c4; margin-bottom: 8px; }

.iw-drop .so-drop-main { font-size: 16px; font-weight: 600; color: #26364a; }

.iw-drop .so-drop-sub { font-size: 12.5px; color: #7d8b9c; margin-top: 5px; max-width: 440px; line-height: 1.5; }

.iw-browse-btn {
  margin-top: 14px; border: 1px solid #c2cede; border-radius: 9px; background: #fff; color: var(--accent);
  font: inherit; font-size: 13px; font-weight: 600; padding: 7px 16px; cursor: pointer;
  transition: background .13s, border-color .13s;
}

.iw-browse-btn:hover { background: #eef4f8; border-color: #9fbce0; }

.iw-detected { margin-top: 18px; border: 1px solid var(--line); border-radius: 11px; padding: 14px; background: #fafbfc; }

.iw-detected-head { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }

.iw-detected-sub { font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 14px 0 10px; }

.iw-files { display: flex; flex-wrap: wrap; gap: 6px; }

.iw-file {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px;
  background: #eef2f6; color: #45505d; font-size: 12px; font-weight: 500;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.iw-file.is-folder { background: #e7eef5; color: #345; font-weight: 600; }

.iw-contents { display: flex; flex-direction: column; gap: 7px; }

.iw-content { display: flex; align-items: center; gap: 10px; }

.iw-content-ic {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center;
  background: #eaf2f8; color: var(--accent); font-size: 13px;
}

.iw-content-name { font-size: 13px; font-weight: 600; color: var(--ink); }

.iw-content-type { font-size: 11.5px; color: var(--ink2); }

.iw-detected-data {
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--line);
  font-size: 12.5px; color: #56606d; display: flex; align-items: center; gap: 7px;
}

.iw-data-ic { color: var(--accent); font-size: 14px; }

.iw-panel { border: 1px solid var(--line); border-radius: 11px; padding: 14px; }

.iw-panel-head { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 9px; }

.iw-cols { display: flex; flex-wrap: wrap; gap: 6px; }

.iw-col {
  padding: 3px 9px; border-radius: 6px; background: #eef2f6; color: #45505d;
  font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums;
}

.iw-suggest {
  margin-top: 14px; display: flex; align-items: center; gap: 11px; padding: 12px 14px;
  border-radius: 11px; background: #eaf6ef; border: 1px solid #bfe3cc;
}

.iw-suggest-spark { flex: 0 0 auto; font-size: 18px; color: #1e7d43; }

.iw-suggest-lead { font-size: 13.5px; color: #1c3d29; }

.iw-suggest-sub { font-size: 12px; color: #3f6b4f; margin-top: 2px; }

.iw-map-label { font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 18px 0 10px; }

.iw-map-opts { display: flex; flex-direction: column; gap: 8px; }

.iw-map-opt {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 11px; background: #fff; padding: 10px 12px;
  font: inherit; transition: border-color .13s, background .13s, box-shadow .13s;
}

.iw-map-opt:hover { border-color: #b6c6dd; }

.iw-map-opt.is-sel { border-color: var(--accent); background: #f2f8fb; box-shadow: 0 0 0 1px var(--accent) inset; }

.iw-map-opt.is-best:not(.is-sel) { border-color: #bfe3cc; }

.iw-map-thumb {
  flex: 0 0 auto; width: 44px; height: 34px; border-radius: 6px; overflow: hidden;
  display: grid; place-items: center;
}

.iw-map-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.iw-map-thumb-ic { color: #fff; font-size: 15px; }

.iw-map-info { flex: 1 1 auto; min-width: 0; }

.iw-map-name { font-size: 13.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }

.iw-map-name .ns-cert { font-size: 11px; color: #1e7d43; font-weight: 700; }

.iw-best-badge { font-size: 10.5px; font-weight: 700; color: #1e7d43; background: #e5f4ea; padding: 1px 7px; border-radius: 20px; }

.iw-map-sub { font-size: 12px; color: var(--ink2); margin-top: 2px; }

.iw-map-right { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #56606d; font-variant-numeric: tabular-nums; }

.iw-map-radio { flex: 0 0 auto; font-size: 15px; color: #c2cede; }

.iw-map-opt.is-sel .iw-map-radio { color: var(--accent); }

.iw-checks-lead { font-size: 13px; color: var(--ink2); margin-bottom: 14px; }

.iw-checks { display: flex; flex-direction: column; gap: 11px; }

.iw-check { border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; border-left-width: 4px; }

.iw-check.is-pass { border-left-color: #1e7d43; }

.iw-check.is-info { border-left-color: #d9a300; background: #fffdf6; }

.iw-check.is-fail { border-left-color: #c0392b; background: #fdf6f6; }

.iw-check-top { display: flex; align-items: flex-start; gap: 11px; }

.iw-check-glyph {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff; margin-top: 1px;
}

.iw-check-glyph.is-pass { background: #1e7d43; }

.iw-check-glyph.is-info { background: #d9a300; }

.iw-check-glyph.is-fail { background: #c0392b; }

.iw-check-tt { flex: 1 1 auto; min-width: 0; }

.iw-check-title { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--ink); flex-wrap: wrap; }

.iw-check-tag { font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 20px; text-transform: uppercase; letter-spacing: .03em; }

.iw-check-tag.is-block { background: #eef2f6; color: #56606d; }

.iw-check-tag.is-soft { background: #f0ecf7; color: #7b5aa6; }

.iw-check-word { margin-left: auto; font-size: 12px; font-weight: 700; }

.iw-check-word.is-pass { color: #1e7d43; }

.iw-check-word.is-info { color: #9a6a00; }

.iw-check-word.is-fail { color: #c0392b; }

.iw-check-desc { font-size: 12.5px; color: var(--ink2); margin-top: 4px; }

.iw-check-detail { font-size: 13px; color: #3a4453; margin-top: 10px; line-height: 1.5; }

.iw-check-notes { margin: 9px 0 0; padding-left: 20px; }

.iw-check-notes li { font-size: 12.5px; color: #45505d; line-height: 1.55; }

.iw-check-fix {
  margin-top: 10px; font-size: 12.5px; color: #45505d; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 11px; line-height: 1.5;
}

.iw-block-banner {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 13px;
  background: #fbe6e6; color: #a02b1f; border: 1px solid #f0c2bd;
}

.iw-publish-sum { border: 1px solid var(--line); border-radius: 12px; padding: 15px; }

.iw-publish-rows { display: flex; flex-direction: column; gap: 9px; }

.iw-publish-row { display: flex; gap: 12px; font-size: 13px; }

.iw-publish-k { flex: 0 0 108px; color: var(--ink2); }

.iw-publish-v { flex: 1 1 auto; color: var(--ink); font-weight: 500; }

.iw-info-banner {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px; font-size: 12.8px; line-height: 1.5;
  background: #fffdf6; color: #7a5600; border: 1px solid #ecd9a6;
}

.iw-dest-label { font-size: 12.5px; font-weight: 700; color: var(--ink); margin: 18px 0 9px; }

.iw-dest {
  display: flex; align-items: center; gap: 12px; border: 1px solid var(--accent); background: #f2f8fb;
  border-radius: 11px; padding: 12px 14px;
}

.iw-dest-ic { font-size: 18px; }

.iw-dest-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }

.iw-dest-sub { font-size: 12px; color: var(--ink2); margin-top: 2px; }

.iw-success { text-align: center; padding: 20px 10px 8px; }

.iw-success-mark {
  width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: #1e7d43;
  color: #fff; font-size: 27px; display: grid; place-items: center;
  animation: iw-pop .3s cubic-bezier(.2,.9,.3,1.2);
}

.iw-success-title { font-size: 18px; font-weight: 700; color: var(--ink); }

.iw-success-sub { font-size: 13px; color: var(--ink2); margin-top: 6px; max-width: 440px; margin-left: auto; margin-right: auto; line-height: 1.5; }

.iw-footer {
  display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--line);
}

.iw-foot-hint { font-size: 12.5px; color: var(--ink2); }

.iw-foot-right { margin-left: auto; display: flex; gap: 9px; }

.iw-btn {
  border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink);
  font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 16px; cursor: pointer;
  transition: background .13s, border-color .13s, box-shadow .13s;
}

.iw-btn:hover { background: #f4f6f9; }

.iw-btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); }

.iw-btn--primary:hover { background: #023248; }

.iw-btn--primary.is-disabled { background: #c2cede; border-color: #c2cede; cursor: default; }

.iw-btn--primary.is-disabled:hover { background: #c2cede; }

@media (prefers-reduced-motion: reduce) {
  .iw-scrim, .iw-modal, .iw-success-mark { animation: none; }
}

.admin-alert-row { align-items: stretch; cursor: pointer; }

.admin-alert-row.is-selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

.admin-alert-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.admin-alert-toprow { display: flex; align-items: center; gap: 8px; min-width: 0; }

.admin-alert-name {
  font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.admin-alert-kind {
  display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto;
  font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
  border-radius: 20px; padding: 2px 7px 2px 5px;
}

.admin-alert-kind svg { width: 11px; height: 11px; }

.admin-alert-kind--threshold { color: #b23c17; background: #fdeee7; }

.admin-alert-kind--anomaly { color: #b23c17; background: #fdeee7; }

.admin-alert-kind--schedule { color: #611f69; background: #f3e9f4; }

.admin-alert-origin { font-size: 11px; }

.admin-block.is-inherited .admin-alert-origin { color: #97a0ad; }

.admin-block:not(.is-inherited) .admin-alert-origin { color: var(--accent); }

.admin-alert-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 1px; }

.admin-alert-chip {
  font-size: 10.5px; font-weight: 500; color: var(--ink2);
  background: #eef2f6; border-radius: 12px; padding: 2px 8px; white-space: nowrap;
}

.admin-alert-chip--dest { color: var(--accent); background: #eaf3f8; font-weight: 600; }

.admin-alert-chip--pers { color: #611f69; background: #f3e9f4; font-weight: 600; }

.admin-alert-actions { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }

.admin-block-x {
  border: 0; background: none; color: var(--ink2); cursor: pointer; font-size: 13px; padding: 2px 5px;
  opacity: 0; pointer-events: none; transition: opacity .12s ease;
}

.admin-alert-row:hover .admin-block-x,
.admin-alert-row:focus-within .admin-block-x { opacity: 1; pointer-events: auto; }

.admin-block-x:hover { color: #d64545; }

.admin-alert-empty { font-size: 12.5px; color: var(--ink2); padding: 14px 4px; line-height: 1.5; }

.admin-alert-libgrid { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow: auto; padding: 2px; }

.admin-alert-libopt { align-items: flex-start; }

.admin-alert-libic--threshold,
.admin-alert-libic--anomaly { color: #b23c17; background: #fdeee7; }

.admin-alert-libic--schedule { color: #611f69; background: #f3e9f4; }

.admin-alert-libkind {
  font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  color: var(--ink2); background: #eef2f6; border-radius: 10px; padding: 1px 6px; margin-left: 4px;
  vertical-align: middle;
}

.admin-modal-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin: 4px 0 2px; cursor: pointer; }

.admin-modal-check input { margin-top: 2px; }

.admin-modal-check small { color: var(--ink2); font-weight: 400; }

.admin-modal-field--row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.admin-modal-field--row > span { font-size: 12px; color: var(--ink2); }

.admin-modal-narrow { width: 120px; }

.admin-preview-wrap--slack { position: sticky; top: 12px; }

.admin-slack-preview { display: flex; justify-content: center; }

.slack-preview-inner { width: 100%; max-width: 520px; }

.slack-cap { font-size: 12px; color: var(--ink2); line-height: 1.5; margin-bottom: 12px; }

.slack-cap b { color: var(--ink); font-weight: 600; }

.slack-card {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow); font-family: Lato, "Benton Sans", -apple-system, "Segoe UI", sans-serif;
}

.slack-head {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #3f0e40; color: #fff;
}

.slack-workspace { font-weight: 800; font-size: 13px; }

.slack-chan { font-size: 12.5px; color: #d1c4d1; display: flex; align-items: center; gap: 5px; }

.slack-chan::before { content: "#"; opacity: .7; }

.slack-dm-dot { width: 8px; height: 8px; border-radius: 50%; background: #2eb67d; display: inline-block; }

.slack-chan:has(.slack-dm-dot)::before { content: ""; }

.slack-msg { display: flex; gap: 10px; padding: 13px 14px 11px; }

.slack-avatar {
  width: 36px; height: 36px; border-radius: 8px; background: #fff; border: 1px solid var(--line);
  display: grid; place-items: center; flex: 0 0 auto;
}

.slack-avatar .tab-flag { width: 22px; height: 22px; }

.slack-body { flex: 1; min-width: 0; }

.slack-byline { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #1d1c1d; }

.slack-byline b { font-weight: 800; }

.slack-app-badge {
  font-size: 9px; font-weight: 700; letter-spacing: .03em; color: #616061; background: #e8e8e8;
  border-radius: 3px; padding: 1px 4px; text-transform: uppercase;
}

.slack-time { font-size: 11.5px; color: #616061; font-weight: 400; }

.slack-attach {
  margin-top: 8px; border-left: 3px solid var(--slack-accent, #2eb67d); background: #fff;
  padding: 2px 0 2px 12px;
}

.slack-attach-kind {
  display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #616061;
  text-transform: uppercase; letter-spacing: .02em; margin-bottom: 3px;
}

.slack-attach-kind svg { width: 12px; height: 12px; }

.slack-attach-title { font-size: 14px; font-weight: 800; color: #1d1c1d; line-height: 1.3; }

.slack-attach-row { display: flex; align-items: center; gap: 14px; margin: 8px 0 6px; }

.slack-attach-val { font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }

.slack-spark { flex: 0 0 auto; }

.slack-attach-ctx { font-size: 12.5px; color: #454245; line-height: 1.5; }

.slack-attach-ctx b { font-weight: 800; color: #1d1c1d; }

.slack-attach-pers {
  margin-top: 7px; font-size: 11.5px; color: #611f69; background: #f3e9f4; border-radius: 6px;
  padding: 5px 8px; line-height: 1.4;
}

.slack-attach-actions { display: flex; gap: 8px; margin: 11px 0 3px; }

.slack-btn {
  font: inherit; font-size: 12.5px; font-weight: 700; border: 1px solid #d6d6d6; background: #fff;
  color: #1d1c1d; border-radius: 5px; padding: 6px 12px; cursor: pointer;
}

.slack-btn:hover { background: #f6f6f6; }

.slack-btn--primary { background: #007a5a; border-color: #007a5a; color: #fff; }

.slack-btn--primary:hover { background: #148567; }

.slack-reactions { display: flex; gap: 6px; margin-top: 9px; }

.slack-react {
  font-size: 12px; border: 1px solid #d6e2ef; background: #eef6fc; border-radius: 12px; padding: 1px 8px;
  color: #1264a3; display: inline-flex; align-items: center; gap: 4px;
}

.slack-react b { font-weight: 700; }

.slack-react--add { color: #616061; background: #fff; border-color: #d6d6d6; font-weight: 700; }

.slack-about {
  margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  background: #fafbfc;
}

.slack-about-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding: 3px 0; }

.slack-about-row span { color: var(--ink2); flex: 0 0 auto; }

.slack-about-row b { color: var(--ink); font-weight: 600; text-align: right; }

.slack-about-desc { margin-top: 8px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink2); line-height: 1.5; }

.slack-empty { text-align: center; color: var(--ink2); padding: 60px 20px; }

.slack-empty-ic { font-size: 30px; margin-bottom: 10px; }

.slack-empty-sub { font-size: 12px; margin-top: 4px; }

[hidden] { display: none !important; }

}

