#kshetra-brief [data-ch-root],
#kshetra-brief [data-ch-root] * {
  box-sizing: border-box;
}

#kshetra-brief [data-ch-root] {
  --kc-bg: var(--surface);
  --kc-line: var(--line);
  --kc-ink: var(--fg);
  --kc-strong: var(--strong);
  --kc-muted: var(--muted);
  --kc-accent: var(--gold);
  /* D-D-385: a folded row's copy, and the fade of the next two cards (.peek, .peek2) that multiplies its words */
  --kc-fold-muted: var(--muted);
  --kc-peek-opacity: .82;
  --kc-peek2-opacity: .7;
  min-width: 0;
  max-width: 100%;
  color: var(--kc-ink);
  display: grid;
  gap: 14px;
}

/* D-D-385 (the v2.6.0 no-inert audit): a folded row's words read under the 4.5:1 text floor because the fade
   multiplies the ink — on the card two ahead (.58) the copy at 2.47:1 in the light theme and 3.88:1 in the dark. The
   dark theme fades that card to .7. On the light theme's white card even the near-black title fails at .58 and the
   gold "+" under about .85, so the light theme takes the site's deeper muted for the copy and fades of .94 / .88; the
   row still reads behind the open card. The light labels and eyebrows (the accent) read 4.02 to 4.32:1 on the light
   cards: the accent is the site's gold 8 % darker there, still gold. */
:root[data-theme="light"] #kshetra-brief [data-ch-root] {
  --kc-accent: #8e6a25;
  --kc-fold-muted: var(--muted-2);
  --kc-peek-opacity: .94;
  --kc-peek2-opacity: .88;
}

#kshetra-brief [data-ch-root] [hidden] {
  display: none !important;
}

#kshetra-brief [data-ch-root] button,
#kshetra-brief [data-ch-root] input,
#kshetra-brief [data-ch-root] textarea {
  font: inherit;
}

#kshetra-brief [data-ch-root] button {
  min-height: 44px;
  border: 1px solid var(--kc-line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--kc-strong);
  background: var(--kc-bg);
  cursor: pointer;
}

#kshetra-brief [data-ch-root] button:focus-visible,
#kshetra-brief [data-ch-root] input:focus-visible,
#kshetra-brief [data-ch-root] textarea:focus-visible,
#kshetra-brief [data-ch-root] summary:focus-visible {
  outline: 3px solid var(--kc-accent);
  outline-offset: 2px;
}

#kshetra-brief [data-ch-root] a,
#kshetra-brief [data-ch-root] summary {
  min-height: 44px;
}

#kshetra-brief [data-ch-root] summary {
  display: flex;
  align-items: center;
}

#kshetra-brief [data-ch-root] .kc-frame {
  position: sticky;
  top: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  z-index: 15;
  display: grid;
  /* D-D-366 (RP-F7): the second column is the menu's, on the name row; the rail and the status rows span both */
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  min-width: 0;
  margin: 0 -16px;
  padding: 8px 16px 7px;
  border-bottom: 1px solid var(--line);
  background: var(--bar-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#kshetra-brief [data-ch-root] .kc-rail {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  overflow: visible;
}

#kshetra-brief [data-ch-root] .kc-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 3px;
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#kshetra-brief [data-ch-root] .kc-chip[data-state="current"] {
  border-color: var(--gold-line);
  background: color-mix(in srgb, var(--gold-fg) 10%, transparent);
  color: var(--gold-fg);
  box-shadow: none;
}

#kshetra-brief[data-chapter-mode] > [data-strip],
#kshetra-brief[data-chapter-mode] [data-nav],
#kshetra-brief[data-chapter-mode] .k-nav,
#kshetra-brief[data-chapter-mode] [data-slot="path"] > .k-path-head,
#kshetra-brief[data-chapter-mode] [data-slot="path"] > .k-call-kind,
#kshetra-brief[data-chapter-mode] [data-slot="path"] > .k-call-text,
#kshetra-brief[data-chapter-mode] [data-slot="path"] > .k-preference,
#kshetra-brief[data-chapter-mode] [data-slot="path"] > .k-next,
#kshetra-brief[data-chapter-mode] [data-slot="path"] > .k-path-detail,
#kshetra-brief[data-chapter-mode] [data-slot="path"] > .k-hold-row,
#kshetra-brief[data-chapter-mode] [data-share-mint],
#kshetra-brief[data-chapter-mode] [data-share-open],
#kshetra-brief[data-chapter-mode] [data-share-copy],
body:has(#kshetra-brief[data-chapter-mode]) #kd-dock,
body:has(#kshetra-brief[data-chapter-mode]) .kd-dock {
  display: none !important;
}

#kshetra-brief[data-chapter-mode] [data-ch-root] .kc-step-interactive > [data-slot="path"] {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#kshetra-brief[data-chapter-mode] [data-ch-root] .kc-menu-panel [data-share-link] [data-share-mint] {
  display: inline-flex !important;
}

#kshetra-brief[data-chapter-mode] [data-ch-root] .kc-menu-panel [data-share-open] {
  display: inline-flex !important;
}

/* #226: in the menu the share button is a menu item: its words start where the other items' do (its own card
 * style centres them) */
#kshetra-brief[data-chapter-mode] [data-ch-root] .kc-menu-panel [data-share-open].kc-menu-item {
  justify-content: flex-start;
}

/* #221: only the menu's panel is lifted out of the flow, over the frame and the cards (the site bar, z-index 30,
 * stays above it). D-D-366 (RP-F7): the menu's wrapper sits in the sticky frame's name row, at its end — it was a
 * row of its own above the frame, reachable from a later chapter only by scrolling back. */
#kshetra-brief [data-ch-root] .kc-menu {
  position: relative;
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  margin-inline-start: auto;
}

#kshetra-brief [data-ch-root] .kc-menu-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--kc-gold-line);
  border-radius: 999px;
  color: var(--kc-gold);
  background: transparent;
}

#kshetra-brief [data-ch-root] .kc-menu-panel {
  position: absolute;
  z-index: 25;
  top: calc(100% + 4px);
  inset-inline-end: 0;
  display: grid;
  min-width: 220px;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--kc-gold-line);
  border-radius: 12px;
  background: var(--surface);
}

#kshetra-brief [data-ch-root] .kc-menu-panel[hidden] {
  display: none;
}

#kshetra-brief [data-ch-root] {
  --kc-gold: var(--gold-fg);
  --kc-gold-line: var(--gold-line);
  --kc-violet: var(--violet-fg);
  --kc-display: var(--display);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  gap: 16px;
  padding-bottom: 36px;
}

#kshetra-brief [data-ch-root] .kc-chip[data-state="done"] {
  border-color: var(--line);
  color: var(--fg);
}

#kshetra-brief [data-ch-root] .kc-chip[data-state="skipped"] {
  border-color: var(--line);
  color: var(--muted-2);
  opacity: .58;
}

#kshetra-brief [data-ch-root] .kc-rail-name {
  grid-column: 1;
  grid-row: 2;
  align-self: center;
  min-width: 0;
  margin: 0;
  padding: 0 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

#kshetra-brief [data-ch-root] .kc-chapter {
  display: grid;
  gap: 11px;
  min-width: 0;
}

#kshetra-brief [data-ch-root] .kc-card {
  display: grid;
  gap: 0;
  min-width: 0;
  padding: 18px 17px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: calc(var(--top-h) + 90px);
}

#kshetra-brief [data-ch-root] .kc-card[data-open="true"] {
  gap: 14px;
  padding: 20px 18px;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

#kshetra-brief [data-ch-root] .kc-card[data-ch-card="call"][data-open="true"] {
  border-color: var(--gold-line);
  background: var(--feature-bg);
}

#kshetra-brief [data-ch-root] .kc-card[data-ch-card="step"][data-open="true"] {
  border-left: 4px solid var(--clay-fg);
}

#kshetra-brief [data-ch-root] .kc-card-head {
  min-height: 44px;
  justify-content: flex-start;
  border: 0;
  border-radius: 0;
  padding: 0 28px 0 0;
  background: transparent;
  color: var(--strong);
  font-size: 16px;
  font-weight: 650;
  text-align: left;
}

#kshetra-brief [data-ch-root] .kc-card:not([data-open="true"]) .kc-card-head {
  display: none;
}

#kshetra-brief [data-ch-root] .kc-folded-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25px;
  gap: 2px 9px;
  min-height: 52px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

#kshetra-brief [data-ch-root] .kc-folded-title {
  grid-column: 1;
  color: var(--strong);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

#kshetra-brief [data-ch-root] .kc-folded-copy {
  grid-column: 1;
  overflow: hidden;
  color: var(--kc-fold-muted);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#kshetra-brief [data-ch-root] .kc-folded-plus {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-fg);
  font-family: var(--display);
  font-size: 18px;
}

#kshetra-brief [data-ch-root] .kc-card-body {
  display: grid;
  gap: 15px;
  min-width: 0;
}

#kshetra-brief [data-ch-root] .kc-label,
#kshetra-brief [data-ch-root] .kc-eyebrow {
  color: var(--gold-fg);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

#kshetra-brief [data-ch-root] .kc-step-action,
#kshetra-brief [data-ch-root] .kc-call-text,
#kshetra-brief [data-ch-root] .kc-door-title {
  font-family: var(--display);
  color: var(--strong);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  text-wrap: pretty;
}

#kshetra-brief [data-ch-root] .kc-question-text {
  font-family: var(--display);
  color: var(--strong);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.3;
  text-wrap: pretty;
}

#kshetra-brief [data-ch-root] .kc-door-badge {
  justify-self: start;
  padding: 3px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold-fg);
  font-size: 12px;
}

#kshetra-brief [data-ch-root] .kc-path-swipe {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

#kshetra-brief [data-ch-root] .kc-first-step-summary::after,
#kshetra-brief [data-ch-root] .kc-lens-toggle::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-fg);
}

#kshetra-brief [data-ch-root] details[open] > .kc-first-step-summary::after,
#kshetra-brief [data-ch-root] details[open] > .kc-lens-toggle::after { content: "−"; }

#kshetra-brief [data-ch-root] .kc-next {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--strong);
  font-size: 19px;
  font-weight: 700;
  text-align: left;
}

#kshetra-brief [data-ch-root] .kc-skip {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  justify-self: end;
  width: auto;
  margin-left: auto;
  min-height: 44px;
  padding: 0 12px;
  border-color: var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

#kshetra-brief [data-ch-root] .kc-quoted {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

#kshetra-brief [data-ch-root] .kc-strip {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

#kshetra-brief [data-ch-root] .kc-strip-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 8px;
  min-height: 54px;
  padding: 8px 32px 8px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  text-align: left;
}

#kshetra-brief [data-ch-root] .kc-strip-row::after {
  content: "›";
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-size: 23px;
}

#kshetra-brief [data-ch-root] .kc-row-title {
  grid-column: 1 / -1;
  color: var(--strong);
  font-weight: 650;
}

#kshetra-brief [data-ch-root] .kc-row-reversibility,
#kshetra-brief [data-ch-root] .kc-row-cost {
  color: var(--muted);
  font-size: 13px;
}

#kshetra-brief [data-ch-root] .kc-door-card {
  display: grid;
  gap: 12px;
  flex: 0 0 88%;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-2);
}

#kshetra-brief [data-ch-root] .kc-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

#kshetra-brief [data-ch-root] .kc-door-card {
  scroll-snap-align: start;
}

#kshetra-brief [data-ch-root] .kc-sheet-panel {
  position: relative;
  display: grid;
  gap: 16px;
  width: 100%;
  max-width: 30rem;
  max-height: calc(100dvh - 44px);
  margin: auto auto 0;
  padding: 22px 24px calc(30px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  border: 1px solid var(--gold-line);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: var(--sunken);
  box-shadow: var(--shadow-sheet);
}

#kshetra-brief [data-ch-root] .kc-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--scrim);
}

#kshetra-brief [data-ch-root] .kc-sheet-copy {
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.55;
}

#kshetra-brief [data-ch-root] .kc-sheet-start {
  min-height: 56px;
  border-color: var(--gold-line);
  color: var(--gold-fg);
}

@media (max-width: 420px) {
  #kshetra-brief [data-ch-root] .kc-frame { margin-inline: -14px; padding-inline: 14px; }
  #kshetra-brief [data-ch-root] .kc-card { padding: 16px 15px; }
  #kshetra-brief [data-ch-root] .kc-card[data-open="true"] { padding: 18px 16px; }
  #kshetra-brief [data-ch-root] .kc-step-action,
  #kshetra-brief [data-ch-root] .kc-call-text,
  #kshetra-brief [data-ch-root] .kc-door-title { font-size: 22px; }
}

#kshetra-brief [data-ch-root] .kc-menu-item {
  border: 0;
  text-align: left;
}

#kshetra-brief [data-ch-root] .kc-chapter {
  display: grid;
  gap: 12px;
  min-width: 0;
  scroll-margin-top: calc(var(--top-h) + env(safe-area-inset-top, 0px) + var(--kc-frame-h, 62px));
}

#kshetra-brief [data-ch-root] .kc-card,
#kshetra-brief [data-ch-root] .kc-door-card {
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--kc-line);
  border-radius: 20px;
  color: var(--kc-ink);
  background: var(--kc-bg);
  box-shadow: var(--shadow-sm);
}

#kshetra-brief [data-ch-root] .kc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--kc-strong);
  font-family: var(--display);
  font-size: 21px;
  text-align: left;
}

#kshetra-brief [data-ch-root] .kc-card-head::after {
  content: "+";
  flex: 0 0 auto;
  margin-left: 12px;
  color: var(--kc-accent);
  font-family: var(--sans);
}

#kshetra-brief [data-ch-root] .kc-card-preview {
  margin: 4px 0 0;
  color: var(--kc-muted);
  font-size: 14px;
}

#kshetra-brief [data-ch-root] .kc-quoted-subcard {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#kshetra-brief [data-ch-root] [data-open="true"] > .kc-card-head::after {
  content: "−";
}

#kshetra-brief [data-ch-root] .kc-card-body,
#kshetra-brief [data-ch-root] .kc-fold-body {
  min-width: 0;
}

#kshetra-brief [data-ch-root] .kc-card-body > :first-child {
  margin-top: 10px;
}

#kshetra-brief [data-ch-root] p {
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#kshetra-brief [data-ch-root] .kc-label,
#kshetra-brief [data-ch-root] .kc-kicker,
#kshetra-brief [data-ch-root] .kc-eyebrow {
  color: var(--kc-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
}

#kshetra-brief [data-ch-root] .kc-quote,
#kshetra-brief [data-ch-root] .kc-first-sentence {
  font-family: var(--display);
  font-size: 18px;
}

#kshetra-brief [data-ch-root] q {
  quotes: "“" "”";
}

#kshetra-brief [data-ch-root] .kc-sanskrit {
  font-family: var(--pro-serif, var(--display));
  font-size: 20px;
  line-height: 1.8;
}

#kshetra-brief [data-ch-root] .kc-translation,
#kshetra-brief [data-ch-root] .kc-teaching {
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.65;
}

#kshetra-brief [data-ch-root] .kc-citation {
  display: block;
  margin-top: 9px;
  color: var(--kc-muted);
  font-size: 14px;
}

#kshetra-brief [data-ch-root] .kc-gloss,
#kshetra-brief [data-ch-root] .kc-fold-title,
#kshetra-brief [data-ch-root] .kc-row-reversibility {
  color: var(--kc-muted);
}

#kshetra-brief [data-ch-root] .kc-strip {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

#kshetra-brief [data-ch-root] .kc-strip-row {
  display: grid;
  flex: 0 0 min(70vw, 220px);
  align-content: start;
  gap: 5px;
  min-height: 66px;
  border-radius: 14px;
  text-align: left;
}

#kshetra-brief [data-ch-root] .kc-strip-row[aria-current="true"] {
  border-color: var(--kc-accent);
}

#kshetra-brief [data-ch-root] .kc-carousel {
  display: flex;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

#kshetra-brief [data-ch-root] .kc-door-card {
  flex: 0 0 min(88%, 440px);
  scroll-snap-align: start;
}

#kshetra-brief [data-ch-root] .kc-door-position {
  margin: 0;
  color: var(--kc-muted);
  font-size: 13px;
}

#kshetra-brief [data-ch-root] .kc-door-title,
#kshetra-brief [data-ch-root] .kc-subtitle {
  color: var(--kc-strong);
  font-family: var(--display);
}

#kshetra-brief [data-ch-root] details {
  min-width: 0;
}

#kshetra-brief [data-ch-root] details > summary {
  min-height: 44px;
  padding: 11px 0;
  color: var(--kc-strong);
  cursor: pointer;
}

#kshetra-brief [data-ch-root] .kc-fold-title {
  font-weight: 650;
}

#kshetra-brief [data-ch-root] .kc-hold,
#kshetra-brief [data-ch-root] .kc-sheet-start {
  width: 100%;
  min-height: 48px;
  border-color: var(--gold-line);
  background: var(--feature-bg);
  color: var(--strong);
  font-weight: 700;
}

#kshetra-brief [data-ch-root] .kc-next:disabled {
  border-style: dashed;
  color: var(--kc-muted);
  opacity: 1;
}

#kshetra-brief [data-ch-root] .kc-cue {
  margin: 4px 5px 4px 0;
}

#kshetra-brief [data-ch-root] .kc-cue[aria-pressed="true"] {
  border-color: var(--kc-accent);
  box-shadow: inset 0 0 0 1px var(--kc-accent);
}

#kshetra-brief [data-ch-root] .kc-cue-label {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  color: var(--kc-muted);
}

#kshetra-brief [data-ch-root] .kc-cue-input,
#kshetra-brief [data-ch-root] .kc-premortem-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--kc-line);
  border-radius: 12px;
  color: var(--kc-ink);
  background: var(--bg);
}

#kshetra-brief [data-ch-root] .kc-copy,
#kshetra-brief [data-ch-root] .kc-premortem-add,
#kshetra-brief [data-ch-root] .kc-sheet-not-now,
#kshetra-brief [data-ch-root] .kc-sheet-retry {
  min-height: 44px;
  margin: 8px 6px 0 0;
}

#kshetra-brief [data-ch-root] .kc-folded-note,
#kshetra-brief [data-ch-root] .kc-not-now-line,
#kshetra-brief [data-ch-root] .kc-peace-line,
#kshetra-brief [data-ch-root] .kc-confidence {
  color: var(--kc-muted);
}

#kshetra-brief [data-ch-root] .kc-confidence {
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  text-align: left;
}

#kshetra-brief [data-ch-root] .kc-confidence-pct {
  white-space: nowrap;
}

#kshetra-brief [data-ch-root] .kc-karma-row {
  display: grid;
  grid-template-columns: minmax(56px, 1fr) auto minmax(70px, 2fr) 36px;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

#kshetra-brief [data-ch-root] .kc-karma-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--line-strong);
}

#kshetra-brief [data-ch-root] .kc-karma-bar::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: var(--kc-muted);
}

#kshetra-brief [data-ch-root] .kc-karma-marker {
  position: absolute;
  top: -4px;
  z-index: 1;
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: var(--kc-accent);
}

#kshetra-brief [data-ch-root] .kc-lenses {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
}

#kshetra-brief [data-ch-root] .kc-lenses dt,
#kshetra-brief [data-ch-root] .kc-lenses dd {
  margin: 0;
}

#kshetra-brief [data-ch-root] .kc-lens-note {
  display: block;
  color: var(--kc-muted);
  font-size: 14px;
}

#kshetra-brief [data-ch-root] .kc-ask {
  min-width: 0;
  margin: 8px 0;
  border-top: 1px solid var(--kc-line);
}

#kshetra-brief [data-ch-root] .kc-ask-toggle {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

#kshetra-brief [data-ch-root] .kc-ask-panel {
  min-width: 0;
  max-width: 100%;
  padding-top: 6px;
}

#kshetra-brief [data-ch-root] .kc-ask-panel [data-companion] {
  box-sizing: border-box;
  max-width: 100%;
}

#kshetra-brief [data-ch-root] .kc-step-interactive > [data-steps] {
  padding-left: 23px;
}

#kshetra-brief [data-ch-root] .kc-footer {
  min-width: 0;
  margin-top: 8px;
}

#kshetra-brief [data-ch-root] .kc-sheet {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  align-items: end;
  overflow-y: auto;
  padding: 12px;
  background: rgb(0 0 0 / .62);
}

#kshetra-brief [data-ch-root] .kc-sheet-panel {
  width: min(100%, 680px);
  max-height: min(92vh, 900px);
  overflow-y: auto;
  margin: 0 auto;
  padding: 23px 20px max(22px, env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--kc-line);
  border-radius: 22px 22px 12px 12px;
  color: var(--kc-ink);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  animation: kc-sheet-in .2s ease-out;
}

#kshetra-brief [data-ch-root] .kc-sheet-panel > :first-child {
  margin-top: 0;
}

#kshetra-brief [data-ch-root] .kc-scene {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
}

#kshetra-brief [data-ch-root] .kc-timeline {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

#kshetra-brief [data-ch-root] .kc-timeline-item::marker {
  color: var(--kc-accent);
}

#kshetra-brief [data-ch-root] .kc-sheet-price {
  color: var(--kc-strong);
  font-weight: 700;
}

#kshetra-brief [data-ch-root] .kc-sheet-start {
  margin: 10px 0;
}

#kshetra-brief [data-ch-root] .kc-copy-fallback {
  position: fixed;
  top: 0;
  left: -9999px;
}

@keyframes kc-sheet-in {
  from { transform: translateY(12px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}

@media (min-width: 600px) {
  #kshetra-brief [data-ch-root] .kc-sheet {
    align-items: center;
  }

  #kshetra-brief [data-ch-root] .kc-sheet-panel {
    border-radius: 22px;
  }

  #kshetra-brief [data-ch-root] .kc-card {
    padding: 22px;
  }
}

@media (max-width: 599px) {
  #kshetra-brief [data-ch-root] .kc-karma-row {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 4px 8px;
  }

  #kshetra-brief [data-ch-root] .kc-karma-label,
  #kshetra-brief [data-ch-root] .kc-karma-reversibility {
    grid-column: 1 / -1;
  }

  #kshetra-brief [data-ch-root] .kc-karma-reversibility {
    color: var(--kc-muted);
    font-size: 14px;
  }

  #kshetra-brief [data-ch-root] .kc-karma-bar {
    grid-column: 1;
  }

  #kshetra-brief [data-ch-root] .kc-karma-score {
    grid-column: 2;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  #kshetra-brief [data-ch-root] *,
  #kshetra-brief [data-ch-root] *::before,
  #kshetra-brief [data-ch-root] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

#kshetra-brief [data-ch-root] .kc-chapter-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 2px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

#kshetra-brief [data-ch-root] .kc-chapter-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

#kshetra-brief [data-ch-root] .kc-card.peek { opacity: var(--kc-peek-opacity); }
#kshetra-brief [data-ch-root] .kc-card.peek2 { opacity: var(--kc-peek2-opacity); }
#kshetra-brief [data-ch-root] .kc-card[data-open="true"] { opacity: 1; }

#kshetra-brief [data-ch-root] .kc-next::before {
  content: "↓";
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold-fg);
  font-size: 18px;
}

#kshetra-brief [data-ch-root] .kc-quoted-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  list-style: none;
  overflow: hidden;
  white-space: nowrap;
}

#kshetra-brief [data-ch-root] .kc-quoted-summary::-webkit-details-marker { display: none; }
#kshetra-brief [data-ch-root] .kc-quoted-summary::after {
  content: none;
  display: none;
}
#kshetra-brief [data-ch-root] .kc-quoted-summary .kc-label {
  flex: 0 0 auto;
  white-space: nowrap;
}
#kshetra-brief [data-ch-root] .kc-quoted-excerpt {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
#kshetra-brief [data-ch-root] .kc-quoted .kc-folded-plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin: 0 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-fg);
}
#kshetra-brief [data-ch-root] .kc-quote { display: block; padding: 10px 12px; font-family: var(--display); }
/* D-D-373 (round 6, item 13): inside the one You wrote row, each Facts question Sarathi asked and the answer given */
#kshetra-brief [data-ch-root] .kc-quoted-fact {
  display: grid;
  gap: 2px;
  margin: 2px 0 0;
  padding: 8px 12px 0;
  border-top: 1px solid var(--line);
}
#kshetra-brief [data-ch-root] .kc-quoted-question {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
#kshetra-brief [data-ch-root] .kc-quoted-fact .kc-quoted-answer { padding: 2px 0 6px; }
/* D-D-373 (round 5, item 4): "this" in the new step's caption, a small link to the call's "If you leave it as it is:" */
#kshetra-brief [data-ch-root] .kc-eyebrow-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#kshetra-brief [data-ch-root] .kc-verse {
  display: grid;
  gap: 12px;
  padding: 17px 16px;
  border: 1px solid var(--gold-line);
  border-radius: 17px;
  background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--gold-fg) 11%, var(--surface)), var(--surface));
  box-shadow: 0 0 24px color-mix(in srgb, var(--gold-fg) 8%, transparent);
}

#kshetra-brief [data-ch-root] .kc-verse-english {
  color: var(--strong);
  font-family: var(--display);
  font-size: 21px;
  font-style: italic;
  line-height: 1.5;
}

#kshetra-brief [data-ch-root] .kc-gloss {
  padding-left: 12px;
  border-left: 2px solid var(--gold-line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

#kshetra-brief [data-ch-root] .kc-sanskrit {
  color: var(--gold-fg);
  font-family: var(--dev);
  font-size: 16px;
  line-height: 1.8;
}

#kshetra-brief [data-ch-root] .kc-citation {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

#kshetra-brief [data-ch-root] .kc-strip {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

#kshetra-brief [data-ch-root] .kc-strip-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 4px 8px;
  min-height: 55px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

#kshetra-brief [data-ch-root] .kc-row-title { font-weight: 700; }
#kshetra-brief [data-ch-root] .kc-row-reversibility::after { content: " · "; color: var(--muted); }
#kshetra-brief [data-ch-root] .kc-row-cost { font-weight: 700; color: var(--strong); }
#kshetra-brief [data-ch-root] .kc-row-reversibility[data-tone="good"] { color: var(--good); }
#kshetra-brief [data-ch-root] .kc-row-reversibility[data-tone="warn"] { color: var(--warn); }

#kshetra-brief [data-ch-root] .kc-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
}

#kshetra-brief [data-ch-root] .kc-door-card {
  flex: 0 0 88%;
  align-content: start;
  min-height: 260px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-2);
  scroll-snap-align: start;
}

#kshetra-brief [data-ch-root] .kc-door-position {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

#kshetra-brief [data-ch-root] .kc-door-title {
  color: var(--strong);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
}

#kshetra-brief [data-ch-root] .kc-door-reversibility {
  justify-self: start;
  padding: 4px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold-fg);
  font-size: 12px;
}

#kshetra-brief [data-ch-root] .kc-door-consequences,
#kshetra-brief [data-ch-root] .kc-door-cost {
  color: var(--fg);
  font-size: 14px;
  line-height: 1.45;
}

#kshetra-brief [data-ch-root] .kc-door-consequences .kc-label,
#kshetra-brief [data-ch-root] .kc-door-cost .kc-label { color: var(--strong); font-weight: 700; }
#kshetra-brief [data-ch-root] .kc-next:disabled { justify-content: center; color: var(--muted); }

#kshetra-brief [data-ch-root] .kc-ask-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-weight: 700;
}
#kshetra-brief [data-ch-root] .kc-ask-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; color: var(--gold-fg); }
#kshetra-brief [data-ch-root] .kc-lens-toggle { min-height: 44px; color: var(--fg); font-weight: 650; list-style: none; }
#kshetra-brief [data-ch-root] .kc-lens-toggle::-webkit-details-marker { display: none; }
#kshetra-brief [data-ch-root] .kc-door-lenses-content { padding-left: 12px; border-left: 2px solid var(--line-strong); }
#kshetra-brief [data-ch-root] .kc-cue-heading { color: var(--strong); font-weight: 650; }
#kshetra-brief [data-ch-root] .kc-cue-another { justify-self: start; min-height: 44px; border-style: dashed; color: var(--muted); }
#kshetra-brief [data-ch-root] .kc-cue-label { display: grid; gap: 6px; }
#kshetra-brief [data-ch-root] .kc-hold {
  min-height: 56px;
  border: 1px solid var(--gold-line);
  background: var(--gold-fg);
  color: var(--bg);
  font-size: 16px;
  font-weight: 750;
}

#kshetra-brief [data-ch-root] .kc-fold-title {
  min-height: 50px;
  font-weight: 700;
}
#kshetra-brief [data-ch-root] .kc-fold-title::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold-fg);
  font-family: var(--display);
  font-size: 16px;
}
#kshetra-brief [data-ch-root] details[open] > .kc-fold-title::after { content: "−"; }

#kshetra-brief [data-ch-root] .kc-karma-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 48px;
  gap: 5px 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
#kshetra-brief [data-ch-root] .kc-karma-label { font-weight: 700; }
#kshetra-brief [data-ch-root] .kc-karma-reversibility { grid-column: 1; color: var(--muted); font-size: 12px; }
#kshetra-brief [data-ch-root] .kc-karma-bar {
  position: relative;
  grid-column: 1;
  height: 9px;
  border-radius: 99px;
  background: repeating-linear-gradient(135deg,var(--line) 0 3px,var(--surface-2) 3px 7px);
}
#kshetra-brief [data-ch-root] .kc-karma-bar::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--muted-2);
}
#kshetra-brief [data-ch-root] .kc-karma-marker {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--gold-fg);
  transform: translate(-50%,-50%);
}
#kshetra-brief [data-ch-root] .kc-karma-score { grid-column: 2; grid-row: 1 / span 2; color: var(--strong); font-weight: 750; text-align: right; }
#kshetra-brief [data-ch-root] .kc-reading-summary { margin: 10px 4px; color: var(--muted); font-family: var(--display); font-size: 18px; font-style: italic; }

#kshetra-brief [data-ch-root] .kc-sheet-handle {
  width: 38px;
  height: 4px;
  margin: 0 auto 2px;
  border-radius: 99px;
  background: var(--line-strong);
}
#kshetra-brief [data-ch-root] .kc-kicker {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--gold-line);
  color: var(--gold-fg);
  font-size: 13px;
  font-weight: 700;
}
#kshetra-brief [data-ch-root] .kc-scene-line {
  color: var(--strong);
  font-family: var(--display);
  font-size: 20px;
  line-height: 1.45;
}
#kshetra-brief [data-ch-root] .kc-scene + .kc-sheet-copy { padding-top: 14px; border-top: 1px solid var(--line); }
#kshetra-brief [data-ch-root] .kc-sheet-copy { font-family: var(--display); font-size: 16px; line-height: 1.5; }
#kshetra-brief [data-ch-root] .kc-sheet-copy:nth-of-type(3) { color: var(--gold-fg); font-style: italic; }

@media (max-width: 599px) {
  #kshetra-brief [data-ch-root] .kc-frame { margin-inline: -14px; padding-inline: 14px; }
  #kshetra-brief [data-ch-root] .kc-card { padding: 15px; }
  #kshetra-brief [data-ch-root] .kc-card[data-open="true"] { padding: 18px 16px; }
  #kshetra-brief [data-ch-root] .kc-verse-english { font-size: 19px; }
}

#kshetra-brief [data-ch-root] {
  overflow-x: clip;
  /* D-D-366 (RP-F7): no scroll anchoring inside the reading — a card folding above the one the reader goes to
   * (goTo's one scroll) must not move the page a second time, or the new card lands above the viewport and the
   * sticky frame (the rail, the menu) leaves with it */
  overflow-anchor: none;
}

#kshetra-brief [data-ch-root] .kc-row-reversibility::after {
  content: none;
}

#kshetra-brief [data-ch-root] .kc-row-cost-line {
  color: var(--muted);
  font-size: 13px;
}

#kshetra-brief [data-ch-root] .kc-row-cost {
  color: var(--strong);
  font-weight: 700;
}

#kshetra-brief [data-ch-root] .kc-sheet-copy.kc-sheet-promise {
  color: var(--strong);
  font-style: normal;
}

#kshetra-brief [data-ch-root] .kc-sheet-copy.kc-sheet-relief {
  color: var(--gold-fg);
  font-style: italic;
}

#kshetra-brief[data-chapter-mode] [data-status],
#kshetra-brief[data-chapter-mode] [data-status-late] {
  position: static;
  top: auto;
  z-index: auto;
}

#kshetra-brief [data-ch-root] .kc-sheet {
  align-items: stretch;
  overflow: hidden;
  padding: 0;
}

#kshetra-brief [data-ch-root] .kc-sheet-panel {
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top, 0px)) 24px max(22px, env(safe-area-inset-bottom, 0px));
  border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-sheet);
  font-family: var(--sans);
  animation: none;
}

#kshetra-brief [data-ch-root] .kc-sheet-panel .kc-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  color: var(--gold-fg);
  font-family: var(--pro-serif, var(--display));
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .08em;
}

#kshetra-brief [data-ch-root] .kc-sheet-panel .kc-kicker::after {
  height: 1px;
  flex: 1;
  background: var(--gold-line);
  content: "";
}

#kshetra-brief [data-ch-root] .kc-scene-line,
#kshetra-brief [data-ch-root] .kc-sheet-copy.kc-sheet-promise,
#kshetra-brief [data-ch-root] .kc-sheet-copy.kc-sheet-relief {
  font-family: var(--pro-serif, var(--display));
}

#kshetra-brief [data-ch-root] .kc-scene-line {
  margin: 0;
  color: var(--strong);
  font-size: 20px;
  line-height: 1.45;
}

#kshetra-brief [data-ch-root] .kc-sheet-copy.kc-sheet-promise {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--strong);
  font-size: 17px;
  font-style: normal;
}

#kshetra-brief [data-ch-root] .kc-sheet-copy.kc-sheet-relief {
  color: var(--gold-fg);
  font-size: 17px;
  font-style: italic;
}

#kshetra-brief [data-ch-root] .kc-timeline {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 28px;
  list-style: none;
}

#kshetra-brief [data-ch-root] .kc-timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 9px;
  width: 1px;
  background: var(--gold-line);
  content: "";
}

#kshetra-brief [data-ch-root] .kc-timeline-item {
  position: relative;
  min-height: 20px;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.5;
}

#kshetra-brief [data-ch-root] .kc-timeline-item::before {
  position: absolute;
  top: .5em;
  left: -23px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-fg);
  box-shadow: 0 0 0 4px var(--surface);
  content: "";
}

#kshetra-brief [data-ch-root] .kc-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  color: var(--gold-fg);
  font-family: var(--display);
  font-size: 16px;
}

#kshetra-brief [data-ch-root] .kc-kicker::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--gold-line);
}

#kshetra-brief [data-ch-root] .kc-held-banner {
  margin: 0;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--gold-line);
  color: var(--gold-fg);
  font-family: var(--display);
  font-size: 20px;
}

#kshetra-brief [data-ch-root] .kc-when-label {
  color: var(--strong);
  font-weight: 700;
}

#kshetra-brief [data-ch-root] .kc-overthinker-title {
  margin: 0;
  color: var(--strong);
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
}

#kshetra-brief [data-ch-root] .kc-karma-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

#kshetra-brief [data-ch-root] .kc-karma-label {
  color: var(--strong);
  font-weight: 700;
}

#kshetra-brief [data-ch-root] .kc-karma-scoreline {
  display: flex;
  align-items: center;
  gap: 12px;
}

#kshetra-brief [data-ch-root] .kc-karma-bar {
  flex: 1;
  min-width: 0;
  height: 9px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--line) 0 3px, var(--surface-2) 3px 7px);
}

#kshetra-brief [data-ch-root] .kc-karma-bar::before {
  z-index: 2;
}

#kshetra-brief [data-ch-root] .kc-karma-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(135deg, var(--gold-fg) 0 3px, color-mix(in srgb, var(--gold-fg) 48%, var(--surface)) 3px 7px);
}

#kshetra-brief [data-ch-root] .kc-karma-score {
  color: var(--strong);
  font-weight: 750;
  white-space: nowrap;
}

#kshetra-brief [data-ch-root] .kc-karma-reversibility {
  justify-self: start;
  padding: 3px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  color: var(--gold-fg);
  font-size: 12px;
}

#kshetra-brief [data-ch-root] .kc-karma-note {
  margin: 0;
  color: var(--muted);
}

#kshetra-brief [data-ch-root] .kc-scores-about-paths {
  margin: 0;
  color: var(--muted);
}

#kshetra-brief [data-ch-root] .kc-confidence-title {
  margin-bottom: 0;
  color: var(--strong);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
}

#kshetra-brief [data-ch-root] .kc-premortem-reply {
  padding: 10px 12px;
  border-left: 2px solid var(--gold-line);
  background: var(--surface-2);
}

#kshetra-brief [data-ch-root] .kc-row-title {
  grid-column: 1 / -1;
}

#kshetra-brief [data-ch-root] .kc-row-detail {
  display: block;
  grid-column: 1 / -1;
  min-width: 0;
  text-align: left;
}

#kshetra-brief [data-ch-root] .kc-row-reversibility {
  display: inline;
  white-space: nowrap;
}

#kshetra-brief [data-ch-root] .kc-row-cost-line {
  display: inline;
  flex: none;
  min-width: 0;
  margin-left: 4px;
  text-align: left;
}

/* D-D-366 (RP-F7): the scroll margins read the sticky frame's measured height (--kc-frame-h, chapters.js
 * _syncFrameHeight — the name row carries the menu now, and a status line adds a row): a card, a support row or a
 * step brought into view starts under the frame, never beneath it. The fixed numbers before (180px, 210px, +120px,
 * +130px) assumed the 79px frame. */
#kshetra-brief [data-ch-root] .kc-card {
  scroll-margin-top: calc(var(--top-h) + env(safe-area-inset-top, 0px) + var(--kc-frame-h, 108px) + 12px);
}

#kshetra-brief [data-ch-root] .kc-chapter-divider ~ .kc-card {
  scroll-margin-top: calc(var(--top-h) + env(safe-area-inset-top, 0px) + var(--kc-frame-h, 108px) + 42px);
}

#kshetra-brief [data-ch-root] .kc-karma-bar {
  background: var(--surface-2);
}

#kshetra-brief [data-ch-root] .kc-door-reversibility[data-tone="good"],
#kshetra-brief [data-ch-root] .kc-karma-reversibility[data-tone="good"] {
  color: var(--good);
  border-color: var(--good);
}

#kshetra-brief [data-ch-root] .kc-door-reversibility[data-tone="warn"],
#kshetra-brief [data-ch-root] .kc-karma-reversibility[data-tone="warn"] {
  color: var(--warn);
  border-color: var(--warn);
}

/* Round 4 (item 2): support rows are scrolled to once, clear of the sticky site bar and the chapter rail. */
#kshetra-brief [data-ch-root] [data-support] {
  scroll-margin-top: calc(var(--top-h) + env(safe-area-inset-top, 0px) + var(--kc-frame-h, 108px) + 12px);
  scroll-margin-bottom: 24px;
}

/* Round 4 (item 3): the status lines ride the sticky frame, under the rail and its chapter name — a line set
 * while the person reads a card lower down is in view there. */
#kshetra-brief [data-ch-root] .kc-frame {
  grid-template-rows: auto auto auto;
}

#kshetra-brief [data-ch-root] .kc-frame > .kc-status-holder {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 3;
  gap: 2px;
  min-width: 0;
}

#kshetra-brief[data-chapter-mode] [data-ch-root] .kc-frame [data-status]:not([data-limited]):not([data-stage="retry_exhausted"]):not([data-stage="resume_unavailable"]),
#kshetra-brief[data-chapter-mode] [data-ch-root] .kc-frame [data-status-late] {
  min-height: 0;
  padding: 6px 2px 2px;
  border-bottom: 0;
  background: transparent;
  font-size: 15px;
}

#kshetra-brief[data-chapter-mode] [data-ch-root] .kc-frame [data-status][data-limited],
#kshetra-brief[data-chapter-mode] [data-ch-root] .kc-frame [data-status][data-stage="retry_exhausted"],
#kshetra-brief[data-chapter-mode] [data-ch-root] .kc-frame [data-status][data-stage="resume_unavailable"] {
  min-height: 0;
  margin-top: 6px;
  padding: 8px 12px;
  font-size: 15px;
}

/* Round 4 (item 5): the base's own controls and lines, moved in from the hidden slots. */
#kshetra-brief [data-ch-root] .kc-door-not {
  justify-self: start;
  padding: 3px 10px;
  border: 1px solid color-mix(in srgb, var(--bad) 55%, transparent);
  border-radius: 999px;
  color: var(--bad);
  font-size: 12px;
  font-weight: 650;
}

#kshetra-brief [data-ch-root] .kc-strip-row .kc-door-not {
  grid-column: 1 / -1;
  padding: 1px 8px;
}

#kshetra-brief [data-ch-root] .kc-walk {
  justify-self: start;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 16px;
  font-weight: 650;
  white-space: normal;
  text-align: left;
}

#kshetra-brief [data-ch-root] .kc-walk:disabled {
  border-color: var(--gold-line);
  color: var(--gold-fg);
  opacity: 1;
  cursor: default;
}

#kshetra-brief [data-ch-root] .kc-door-deeper {
  display: grid;
  gap: 10px;
  min-width: 0;
}

#kshetra-brief [data-ch-root] .kc-door-deeper > [data-deeper] {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

#kshetra-brief [data-ch-root] .kc-door-deeper > [data-deep-option] {
  min-width: 0;
  margin: 0;
}

#kshetra-brief [data-ch-root] .kc-card-body > [data-call-kind] {
  justify-self: start;
}

#kshetra-brief [data-ch-root] .kc-card-body > .k-checked {
  margin: -4px 0 0;
  font-size: 14px;
}

#kshetra-brief [data-ch-root] .kc-ask-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  padding: 0 0 8px;
}

#kshetra-brief [data-ch-root] .kc-ask-live .kd-dock-meta {
  flex-wrap: wrap;
  justify-content: flex-start !important;
  min-width: 0;
  margin: 0;
}

#kshetra-brief [data-ch-root] .kc-ask-live .kd-btn[data-k-ask-dock] {
  width: auto;
  max-width: 100%;
  min-height: 44px;
  border: 1px solid var(--kc-line);
  background: transparent;
  box-shadow: none;
  color: var(--kc-strong);
  font-size: 15px;
  font-weight: 650;
}

#kshetra-brief [data-ch-root] .kc-ask-live .kd-btn.k-dock-pro {
  width: auto;
  max-width: 100%;
  min-height: 44px;
  border: 0;
  background: var(--cta-bg);
  color: var(--cta-ink);
  font-weight: 700;
}

#kshetra-brief [data-ch-root] .kc-ask-live .k-dock-note,
#kshetra-brief [data-ch-root] .kc-ask-live .k-dock-cap {
  color: var(--kc-muted);
  font-size: 13px;
}

/* Round 4 (item 7): a step reached by its link (#step-1, the journal's "See your step") lands below the sticky
 * site bar and the chapter frame, never under them. */
#kshetra-brief [data-ch-root] [data-steps] [data-step-n] {
  scroll-margin-top: calc(var(--top-h) + env(safe-area-inset-top, 0px) + var(--kc-frame-h, 108px) + 22px);
}

/* Round 4: while an option's Deep Reading panel is open in its card, the other cards keep their own height. */
#kshetra-brief [data-ch-root] .kc-carousel:has([data-deep-option]) {
  align-items: flex-start;
}

.kc-line-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block: 12px;
  max-width: 100%;
}

.kc-line-share[hidden] { display: none; }

.kc-line-share-button {
  min-height: 44px;
  max-width: 100%;
  padding: 8px 14px;
  border: 1px solid var(--kc-line, var(--line-strong));
  border-radius: 12px;
  background: transparent;
  color: var(--kc-strong, var(--strong));
  font: inherit;
  cursor: pointer;
}

.kc-line-share-url {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#kshetra-brief [data-ch-root] .kc-line-share-button,
.kc-line-share-button,
.kc-line-share-url {
  font: 400 16px/1.5 var(--sans);
}

/* #212: in chapter mode the call card holds the call, so the opening "You" bubble and the
 * lead line ("Sarathi lays out N paths") repeat what the chapters already show */
#kshetra-brief[data-chapter-mode] > [data-you],
#kshetra-brief[data-chapter-mode] [data-line="lead_options"],
#kshetra-brief[data-chapter-mode] [data-line="lead_options_none"],
#kshetra-brief[data-chapter-mode] [data-line="lead_call"],
#kshetra-brief[data-chapter-mode] [data-line="lead_answer"] {
  display: none !important;
}

/* #212: the strip moved into the correct fold keeps its assumption and clarify chips; its
 * one-line restatement repeats the question card, and the memory prompt is the call card's own row (D-D-366) */
#kshetra-brief [data-ch-root] .kc-strip-holder .k-heard,
#kshetra-brief [data-ch-root] .kc-strip-holder .k-outcome-prompt {
  display: none;
}

/* D-D-366: the memory prompt's row under the call — the prompt, the earlier reading it asks about, and the link to
 * that reading's step, where the answer is given */
#kshetra-brief [data-ch-root] .kc-outcome-holder {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 2px 0 0;
  padding: 10px 12px;
  border-left: 2px solid var(--gold-line);
  background: var(--surface-2);
}

#kshetra-brief [data-ch-root] .kc-outcome-holder[hidden] {
  display: none;
}

#kshetra-brief [data-ch-root] .kc-outcome-prompt {
  margin: 0;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

#kshetra-brief [data-ch-root] .kc-outcome-about {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#kshetra-brief [data-ch-root] .kc-outcome-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  color: var(--gold-fg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* #212: the Sarathi card's own title names the panel, so the panel's title row is not drawn twice */
#kshetra-brief [data-ch-root] .kc-ask-panel .k-companion-head > .k-title {
  display: none;
}

/* #216: the companion box shows its whole placeholder at 390px */
#kshetra-brief [data-ch-root] .kc-ask-panel textarea.k-composer-input {
  min-height: 98px;
  min-height: calc(3lh + 25px);
  field-sizing: content;
}

#kshetra-brief [data-ch-root] .kc-why-verse {
  display: grid;
  gap: 6px;
}

#kshetra-brief [data-ch-root] .kc-premortem-reply > p {
  margin: 0;
}

#kshetra-brief [data-ch-root] .kc-premortem-reply > p + p {
  margin-top: 8px;
}

#kshetra-brief [data-ch-root] .kc-premortem-reply .k-who {
  display: block;
  margin-bottom: 2px;
  color: var(--gold-fg);
  font-size: 14px;
  font-weight: 650;
}

/* D-D-345 (the call first, KSHETRA_CALL_FIRST): the rail of eight chips scrolls sideways inside
 * its own box at 390px — today's chips shrink and clip instead, and the page never scrolls
 * sideways. Every rule is scoped to the flag's attribute so the flag-off page draws exactly as today. */
#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-rail {
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-confidence-inline {
  font-weight: 600;
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] [data-ch-overthinker] .kc-card-body {
  display: grid;
  gap: 14px;
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] [data-ch-overthinker] .kc-card-body > :first-child {
  margin-top: 0;
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-overthinker-lede {
  margin: 0;
  color: var(--strong);
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-scores-about-paths {
  margin-top: -8px;
  font-size: 13px;
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-karma-board {
  border-top: 1px solid var(--line);
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] [data-ch-karma-row] {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-karma-label {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-karma-scoreline {
  grid-column: 2;
  grid-row: 1;
  gap: 6px;
  min-width: 0;
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-karma-reversibility {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  max-width: 100%;
  padding: 3px 6px;
  font-size: 12px;
  text-align: center;
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-karma-note {
  grid-column: 1 / -1;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  #kshetra-brief [data-ch-root][data-ch-order="call-first"] [data-ch-karma-row] {
    grid-template-columns: minmax(0, 1fr) 7rem;
  }

  #kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-karma-label {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-karma-scoreline {
    grid-column: 1;
    grid-row: 2;
  }

  #kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-karma-reversibility {
    grid-column: 2;
    grid-row: 2;
    white-space: nowrap;
    max-width: none;
    justify-self: end;
  }
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-scored-lenses .kc-door-lenses {
  margin: 16px 0 0;
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-lens-path {
  margin: 0 0 8px;
  color: var(--strong);
  font-size: 14px;
  overflow-wrap: anywhere;
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] [data-ch-lens-line] {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  overflow-wrap: anywhere;
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-lens-line .kc-lens-score {
  flex-shrink: 0;
  margin: 0;
  color: var(--strong);
}

#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-rail::-webkit-scrollbar {
  display: none;
}
#kshetra-brief [data-ch-root][data-ch-order="call-first"] .kc-chip {
  flex: 0 0 auto;
  min-width: 0;
}
