/* Topic Engine · Onboarding upgrade PR-3: signed-in Home dashboard + logged-out demo (te-home.*.js). */
html.teh-on #root > div > section:not(.teh),
html.teh-on #root > div > .te-dbt { display: none !important; }
.teh { --teh-navy: #1E1B4B; --teh-gold: #D6BA73; --teh-ink: #1C1917; --teh-mute: #6B665C; --teh-rule: #E4E0D6; --teh-bg: #FDFCF8;
  --teh-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Bengali", "Noto Sans Devanagari", sans-serif;
  font-family: var(--teh-font);
  color: var(--teh-ink); box-sizing: border-box; }
.teh *, .teh *::before, .teh *::after { box-sizing: border-box; }
#teh-dash { background: var(--teh-bg); max-width: 1120px; margin: 0 auto; padding: 28px 20px 48px; min-height: 60vh; }
.teh-bi { display: inline-flex; flex-direction: column; gap: 1px; }
.teh-en { display: block; }
/* Indian language: smaller than English but never below 12px, roomy line-height so matras and conjuncts stay whole */
.teh-l2 { display: block; font-size: max(12px, .84em); font-weight: 500; line-height: 1.55; color: var(--teh-mute); }
.teh-top { margin-bottom: 18px; }
.teh-h1 { font: 700 28px/1.25 Georgia, "Times New Roman", serif; color: var(--teh-navy); margin: 0 0 4px; display: flex; flex-direction: column; }
.teh-h1 .teh-l2 { font: 500 17px/1.5 var(--teh-font); }
.teh-sub { font-size: 15px; color: var(--teh-mute); margin: 4px 0 0; line-height: 1.55; }
.teh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.teh-card { background: #fff; border: 1px solid var(--teh-rule); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(30,27,75,.04); }
.teh-card h2, .teh-demo h2 { font: 700 15px/1.35 var(--teh-font); color: var(--teh-navy); margin: 0 0 10px; letter-spacing: .01em; }
.teh-card h2 .teh-l2 { font-size: 13px; }
.teh-muted { color: var(--teh-mute); font-size: 14px; line-height: 1.55; margin: 6px 0; }
.teh-small { color: var(--teh-mute); font-size: 12.5px; line-height: 1.55; margin: 8px 0; }
.teh-small .teh-l2 { font-size: 12px; }
.teh-big { font-size: 16px; font-weight: 600; margin: 4px 0 6px; line-height: 1.45; }
.teh-ok { color: #166534; font-weight: 600; margin: 10px 0 0; }
.teh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.teh-row, .teh-tool { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; color: inherit; }
.teh-row:hover, .teh-tool:hover, .teh-row:focus-visible, .teh-tool:focus-visible { background: #F6F4EE; border-color: var(--teh-rule); outline: none; }
.teh-ico { width: 26px; height: 26px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #EEF0FF; color: var(--teh-navy); font-size: 14px; }
.teh-wt { display: flex; flex-direction: column; min-width: 0; }
.teh-wt b { font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.teh-wt small { font-size: 12.5px; color: var(--teh-mute); margin-top: 2px; }
.teh-tools { display: grid; gap: 6px; }
.teh-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
.teh-link { color: #3730A3; font-weight: 600; font-size: 14px; text-decoration: none; display: inline-flex; align-items: flex-start; gap: 4px; }
.teh-link:hover { text-decoration: underline; }
.teh-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; border: 0; border-radius: 10px; background: var(--teh-navy); color: #fff; font: 700 14px/1.3 var(--teh-font); cursor: pointer; text-decoration: none; text-align: left; }
.teh-btn .teh-l2 { color: #E7E5F5; font-size: 12px; }
.teh-btn[disabled] { opacity: .6; cursor: progress; }
.teh-btn:focus-visible, .teh-plain:focus-visible, .teh-in:focus-visible, .teh-link:focus-visible { outline: 3px solid var(--teh-gold); outline-offset: 2px; }
.teh-plain { background: none; border: 0; padding: 6px 2px; color: var(--teh-mute); font: 500 13px/1.4 var(--teh-font); cursor: pointer; text-decoration: underline; text-align: left; }
.teh-check { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.teh-check li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.teh-check li.done { color: var(--teh-mute); }
.teh-tick { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid #A8A29E; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.teh-check li.done .teh-tick { background: #166534; border-color: #166534; color: #fff; }
.teh-find { margin-top: 16px; }
.teh-in { width: 100%; min-height: 44px; border: 1.5px solid #CFCDC3; border-radius: 10px; padding: 10px 12px; font: 400 15px/1.4 var(--teh-font); background: #fff; color: var(--teh-ink); }
.teh-res { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.teh-chip { display: inline-block; padding: 6px 11px; border-radius: 999px; background: #F1EEE6; color: var(--teh-navy); font-size: 13px; font-weight: 600; text-decoration: none; }
.teh-chip:hover { background: #E7E2D4; }
.teh-pill { position: fixed; left: 16px; bottom: 16px; z-index: 2147482000; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--teh-gold); background: var(--teh-navy); color: #fff; font: 700 13px/1.3 ui-sans-serif, system-ui, sans-serif; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.teh-pill .teh-l2 { color: #E7E5F5; }
/* demo (signed-out marketing page) */
.teh-demo { background: #F6F4EE; border-top: 1px solid var(--teh-rule); border-bottom: 1px solid var(--teh-rule); }
.teh-demo-in { max-width: 760px; margin: 0 auto; padding: 40px 20px 44px; }
.teh-demo h2 { font: 700 24px/1.3 Georgia, "Times New Roman", serif; display: flex; flex-direction: column; }
.teh-demo h2 .teh-l2 { font: 500 16px/1.5 var(--teh-font); }
.teh-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.teh-form .teh-in { flex: 1 1 320px; }
.teh-msg { margin-top: 10px; font-size: 14px; color: var(--teh-mute); min-height: 1em; }
.teh-result { margin-top: 12px; }
.teh-result:empty { display: none; }
.teh-result { background: #fff; border: 1px solid var(--teh-rule); border-radius: 14px; padding: 16px 18px; }
.teh-result h3 { font: 700 14px/1.4 var(--teh-font); color: var(--teh-navy); margin: 14px 0 6px; display: flex; flex-direction: column; }
.teh-live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #166534; }
.teh-live .teh-l2 { text-transform: none; letter-spacing: 0; }
.teh-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; }
.teh-q { font: italic 15px/1.5 Georgia, serif; margin: 8px 0; }
.teh-verdict { font-size: 15.5px; font-weight: 600; line-height: 1.5; padding: 10px 12px; border-radius: 10px; margin: 8px 0; background: #F5F5F4; }
.teh-r-low { background: #DCFCE7; color: #14532D; }
.teh-r-medium { background: #FEF3C7; color: #78350F; }
.teh-r-high { background: #FEE2E2; color: #7F1D1D; }
.teh-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.teh-cta .teh-btn { background: #B45309; }
.teh-jump { display: inline-flex; margin-top: 10px; color: #92400E; font-weight: 700; font-size: 14px; text-decoration: none; }
.teh-jump:hover { text-decoration: underline; }
@media (max-width: 560px) {
  #teh-dash { padding: 18px 12px 36px; }
  .teh-h1 { font-size: 23px; }
  .teh-grid { grid-template-columns: 1fr; }
  .teh-demo-in { padding: 28px 14px 32px; }
  .teh-form .teh-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .teh * { transition: none !important; } }

/* fix1: hide the bundle's signed-out header buttons while a stored sign-in is being checked (max 6 s, see te-home.js 1d) */
/* visibility (not display) so the mast keeps the buttons' width and does not jump when Sign out appears */
html.teh-authwait [data-teh-auth]{visibility:hidden!important}

/* first-paint: hide Check my topic "Sign in to use this depth" notices while a stored session is being checked (max 6 s) */
html.teh-authwait [data-teh-auth-depth]{visibility:hidden!important}

/* welcome-2: finish-your-profile card on the signed-in Home dashboard, plus a compact bar
   when the app shell is showing on "/" instead of the dashboard. */
.teh-card.teh-finish { border-color: #E6D7A3; border-top: 3px solid #D6BA73; grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.teh-card.teh-finish h2 { margin-bottom: 2px; }
.teh-finish-bar { position: sticky; top: 0; z-index: 2147480500; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0; padding: 10px 18px 10px 18px; background: #FDF8EA; color: #1C1917; border-bottom: 1px solid #E6D7A3; box-shadow: 0 2px 10px rgba(30,27,75,.06); }
.teh-finish-title { margin: 0; font-weight: 700; font-size: 15px; color: #1E1B4B; }
.teh-finish-title .teh-l2, .teh-card.teh-finish h2 .teh-l2, .teh-card.teh-finish .teh-muted .teh-l2 { color: #3F3A36; font-weight: 600; }
@media (min-width: 901px) { .teh-finish-bar { padding-left: 72px; } }
