/* =========================================================================
   LogicStack: free Punjabi tools (hub + 3 tools)
   Load BEFORE fiber.css. Holds the page shell the app pages keep inline,
   plus the tool layouts. Signature: letters hanging from one amber line.
   ====================================================================== */

:root {
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --pa: 'Baloo Paaji 2', 'Noto Sans Gurmukhi', sans-serif;
  --paper: #FFFDF7;
  --fiber: linear-gradient(90deg, #19D3FF, #FFB000 70%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[lang="pa"] { font-family: var(--pa); }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
[hidden] { display: none !important; }
section { padding: 88px 0; position: relative; }

/* ---- site nav (same as app pages) ------------------------------------ */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-bottom: 1px solid var(--line); transition: background .35s ease, box-shadow .35s ease; }
.nav::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: var(--scroll-progress, 0%); max-width: 100%; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; transition: height .35s ease; }
.nav.scrolled .nav-inner { height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.nav-links { display: flex; gap: 30px; font-size: 15px; }
.nav-links a { position: relative; padding: 5px 0; transition: color .2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { position: relative; overflow: hidden; padding: 10px 22px; font-size: 14px; transition: transform .25s, box-shadow .25s; }
.nav-cta:hover { transform: translateY(-1px); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 18px; height: 2px; border-radius: 2px; position: relative; transition: transform .25s ease, top .25s ease, background .2s ease; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }
.mobile-menu { display: none; border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 16px 28px; font-size: 16px; border-top: 1px solid var(--line); }
.mobile-menu a:first-child { border-top: none; }
.mobile-menu .nav-cta { display: block; margin: 16px 28px; text-align: center; }
@media (max-width: 820px) { .nav-links, .nav-inner > .nav-cta { display: none; } .nav-toggle { display: flex; } }

/* ---- shared pieces --------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; font-size: 15px; transition: all .25s; cursor: pointer; border: 1.5px solid transparent; }
.btn-outline { background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.section-label { font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; margin-bottom: 16px; max-width: 22ch; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.ff-play { display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px; transition: all .25s; }
.ff-play:hover { transform: translateY(-2px); }
.ff-play svg { width: 27px; height: 27px; flex-shrink: 0; }
.ff-play .pl { line-height: 1.15; }
.ff-play .pl small { display: block; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; opacity: .72; }
.ff-play .pl b { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.ff-faq { max-width: 780px; margin-top: 32px; }
.ff-q { border-bottom: 1px solid var(--line); }
.ff-q summary { list-style: none; cursor: pointer; position: relative; padding: 20px 34px 20px 0; font-weight: 600; font-size: 16.5px; }
.ff-q summary::-webkit-details-marker { display: none; }
.ff-q summary::after { content: '+'; position: absolute; right: 6px; top: 17px; font-size: 22px; font-weight: 400; }
.ff-q[open] summary::after { content: '\2212'; }
.ff-q p { padding: 0 0 22px; font-size: 15px; color: var(--ink-mid); max-width: 66ch; }
.big-cta { text-align: center; padding: 104px 0; position: relative; overflow: hidden; }
.big-cta::before { content: ''; position: absolute; inset: 0; pointer-events: none; }
.big-cta .container { position: relative; }
.big-cta h2 { margin: 0 auto 20px; max-width: 18ch; }
.big-cta p { font-size: 18px; max-width: 50ch; margin: 0 auto 32px; }
.pt-stores { display: flex; flex-wrap: wrap; gap: 12px; }
.big-cta .pt-stores { justify-content: center; }
footer { padding: 56px 0 36px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 36px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 28px; }
.footer-nav { display: flex; gap: 28px; font-size: 14px; color: var(--ink-mid); flex-wrap: wrap; }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-dim); flex-wrap: wrap; gap: 12px; }

/* ---- alphabet band: all 35 letters, lined up with the page content ---- */
.pt-fiber { position: relative; overflow: hidden; padding: 15px 0 13px; background: var(--bg-warm); border-bottom: 1px solid var(--line); }
.pt-fiber::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--fiber); opacity: .75; }
.pt-fiber-row { display: flex; justify-content: space-between; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.pt-fiber-row span { font: 500 clamp(17px, 1.9vw, 23px)/1 var(--pa); color: var(--ink-dim); }
@media (max-width: 900px) { .pt-fiber-row span:nth-child(n+19) { display: none; } }
@media (max-width: 560px) { .pt-fiber-row span:nth-child(n+11) { display: none; } }

.pt-head { padding: 40px 0 32px; }
.crumbs { font-family: var(--mono); font-size: 12px; margin-bottom: 18px; }
.crumbs a:hover { color: var(--accent); }
.pt-head h1 { font-family: var(--display); font-weight: 300; letter-spacing: -0.04em; font-size: clamp(34px, 4.6vw, 58px); line-height: 1.08; max-width: 20ch; }
.pt-head h1 em { font-style: normal; font-weight: 600; color: #fff; }
.pt-lede { font-size: clamp(16.5px, 1.3vw, 19px); color: var(--ink-mid); max-width: 58ch; margin-top: 16px; }

/* ---- hub rows --------------------------------------------------------- */
.pt-hub { padding: 44px 0 88px; }
.pt-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; padding: 44px 0; border-bottom: 1px solid var(--line); }
.pt-row:first-child { border-top: 1px solid var(--line); }
.pt-row h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; margin-bottom: 10px; }
.pt-row p { color: var(--ink-mid); max-width: 48ch; margin-bottom: 16px; }
.pt-row .more { font-weight: 600; color: var(--accent); display: inline-block; transition: transform .2s; }
.pt-row:hover .more { transform: translateX(5px); }
.pt-sample { min-height: 112px; }
.pt-sample .big { display: block; font: 600 clamp(58px, 7vw, 92px)/1.1 var(--pa); color: var(--ink); white-space: nowrap; }
.pt-sample .cap { font-size: 14px; color: var(--ink-dim); }
.pt-sample svg { display: block; width: 100%; max-width: 420px; overflow: visible; }
.pt-sample svg text { font-family: var(--pa); font-weight: 600; font-size: 92px; }
@media (max-width: 760px) { .pt-row { grid-template-columns: 1fr; gap: 24px; padding: 34px 0; } }

/* ---- tool shell ------------------------------------------------------- */
.pt-tool { padding: 0 0 56px; }
.pt-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.pt-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.pt-hint { font-size: 13.5px; color: var(--ink-dim); margin-top: 6px; }
.pt-input { display: block; width: 100%; padding: 13px 16px; font-family: var(--sans); font-size: 16px; border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s; }
.pt-input:focus { outline: none; }
.pt-input[lang="pa"] { font-family: var(--pa); font-size: 20px; }
.pt-field + .pt-field { margin-top: 20px; }
.pt-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: 14.5px; font-weight: 500; color: var(--ink); transition: border-color .2s, background .2s, color .2s; }
.pt-chip:hover { border-color: var(--accent); }
.pt-chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; }
.pt-seg button { min-height: 40px; padding: 6px 18px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink-mid); }
.pt-seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pt-btn-main { background: var(--accent); color: var(--bg); border-radius: 99px; font-weight: 600; box-shadow: 0 8px 28px rgba(255,176,0,.22); }
.pt-btn-main:hover:not([disabled]) { background: var(--accent-light); }
.pt-status { font-size: 14px; color: var(--ink-dim); }

/* app panel: shown right below every tool result */
.pt-app { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin-top: 28px; padding: 22px 24px; border-radius: 18px; border: 1px solid rgba(255,176,0,.35); background: rgba(255,176,0,.05); }
.pt-app img { border-radius: 16px; }
.pt-app h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 4px; }
.pt-app p { font-size: 14.5px; color: var(--ink-mid); max-width: 52ch; }
@media (max-width: 1000px) { .pt-app { grid-template-columns: auto 1fr; } .pt-app .pt-stores { grid-column: 1 / -1; } }
@media (max-width: 520px) { .pt-app .ff-play { width: 100%; } }

.pt-copy { padding: 16px 0 64px; }
.pt-copy h2 { font-family: var(--display); font-weight: 300; letter-spacing: -0.04em; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; margin-bottom: 14px; }
.pt-copy h2 em { font-style: normal; font-weight: 600; color: #fff; }
.pt-copy > .container > p { color: var(--ink-mid); max-width: 66ch; }
.pt-others { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---- worksheet maker -------------------------------------------------- */
.ws-layout { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; align-items: start; }
.ws-controls { position: sticky; top: 84px; }
.ws-rows { display: grid; gap: 6px; }
.ws-row { display: grid; grid-template-columns: repeat(5, 1fr) 46px; gap: 6px; }
.ws-l { min-height: 56px; padding: 2px 0; border-radius: 10px; border: 1px solid var(--line); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; transition: background .15s, border-color .15s, color .15s; }
.ws-l b { font: 500 26px/1 var(--pa); }
.ws-l small { font-size: 9.5px; color: var(--ink-dim); margin-top: 2px; }
.ws-l:hover { border-color: var(--accent); }
.ws-l[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.ws-l[aria-pressed="true"] small { color: rgba(7,11,31,.72); }
.ws-all { border-radius: 10px; border: 1px dashed var(--line); font-size: 12px; color: var(--ink-dim); }
.ws-all:hover { border-color: var(--accent); color: var(--ink); }
.ws-quick { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.ws-quick button { font-size: 13.5px; color: var(--accent); font-weight: 600; min-height: 32px; }
.ws-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ws-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.ws-fit { overflow: hidden; border-radius: 6px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.8); background: #fff; }
.ws-empty { padding: 56px 24px; text-align: center; color: var(--ink-dim); border: 1px dashed var(--line); border-radius: 18px; }
.ws-after { margin-top: 12px; font-size: 14px; color: var(--signal); }
@media (max-width: 940px) { .ws-layout { grid-template-columns: 1fr; } .ws-controls { position: static; } }

/* the sheet itself: real paper size in CSS px (96 per inch) */
.ws-sheet { background: #fff; color: #15151c; padding: 44px 48px 30px; display: flex; flex-direction: column; font-family: 'Sora', system-ui, sans-serif; transform-origin: 0 0; }
.ws-sheet-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 10px; border-bottom: 3px solid #15151c; }
.ws-sheet-title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.ws-sheet-title span { font: 500 24px/1 var(--pa); margin-left: 8px; }
.ws-sheet-fields { display: flex; gap: 22px; font-size: 13px; white-space: nowrap; }
.ws-sheet-fields b { display: inline-block; font-weight: 600; min-width: 130px; border-bottom: 1px solid #15151c; padding: 0 4px; }
.ws-sheet-fields .date b { min-width: 86px; }
.ws-sheet-how { font-size: 12.5px; color: #4b4b57; margin: 8px 0 6px; }
.ws-lines { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.ws-line { display: grid; grid-template-columns: repeat(6, 1fr); align-items: start; }
.ws-line.word { grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
.ws-cell { position: relative; }
.ws-cell svg { display: block; width: 100%; height: auto; overflow: visible; }
.ws-cell text { font-family: var(--pa); font-weight: 500; }
.ws-cap { font-size: 12.5px; color: #33333d; line-height: 1.2; margin-top: -2px; text-align: center; }
.ws-cap span { font: 500 15px/1 var(--pa); margin-right: 4px; }
.ws-sheet-foot { display: flex; justify-content: space-between; gap: 18px; font-size: 11.5px; color: #4b4b57; border-top: 1px solid #c8c8d0; padding-top: 8px; margin-top: 8px; }
.ws-sheet-foot b { color: #15151c; font-weight: 600; }

@media print {
  html, body { background: #fff !important; overflow: visible !important; color: #000 !important; }
  .nav, footer, .pt-head, .pt-fiber, .ws-controls, .pt-app, .pt-copy, .big-cta, main > section:not(.pt-tool), .cmp-sources, .pt-print-hide { display: none !important; }
  .pt-tool, .pt-tool .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .ws-layout, .ws-preview { display: block !important; }
  .ws-fit { width: auto !important; height: auto !important; overflow: visible !important; box-shadow: none !important; border-radius: 0 !important; break-after: page; }
  .ws-fit:last-child { break-after: auto; }
  .ws-sheet { transform: none !important; }
  .ws-sheet, .ws-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- relation finder -------------------------------------------------- */
.rl-box { padding: 26px 26px 28px; }
.rl-path { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14.5px; min-height: 44px; }
.rl-path button { min-height: 36px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-mid); }
.rl-path button:hover { border-color: var(--accent); color: var(--ink); }
.rl-path button:last-of-type { color: var(--ink); border-color: rgba(25,211,255,.5); }
.rl-path i { font-style: normal; color: var(--ink-dim); }
.rl-result { margin: 18px -26px 0; }
.rl-result::before { content: ''; display: block; height: 1px; background: var(--fiber); opacity: .75; }
.rl-result-in { padding: 8px 26px 6px; min-height: 186px; }
.rl-pa { display: block; font: 600 clamp(56px, 8vw, 100px)/1.12 var(--pa); color: #fff; }
.rl-pa.start { font-weight: 500; color: var(--ink-dim); }
.rl-say { font-size: clamp(21px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.rl-who { color: var(--ink-mid); margin-top: 2px; }
.rl-note { font-family: 'Sora', 'Baloo Paaji 2', 'Noto Sans Gurmukhi', sans-serif; font-size: 14.5px; color: var(--ink-dim); margin-top: 8px; max-width: 62ch; }
.pt-copy h2.reveal { font-family: var(--display); }
.pt-copy .ff-q summary, .pt-copy .ff-q p { font-family: 'Sora', 'Baloo Paaji 2', 'Noto Sans Gurmukhi', sans-serif; }
.rl-next { margin-top: 20px; }
.rl-next-t { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.rl-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 40px; margin-top: 26px; }
.rl-tables h3 { font-size: 15px; font-weight: 600; color: var(--signal); margin-bottom: 6px; letter-spacing: -0.01em; }
.rl-tables table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rl-tables td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; color: var(--ink-mid); }
.rl-tables td:first-child { font: 500 20px/1.2 var(--pa); color: var(--ink); white-space: nowrap; }
.rl-tables td:nth-child(2) { color: var(--ink); font-weight: 500; white-space: nowrap; }
@media (max-width: 800px) { .rl-tables { grid-template-columns: 1fr; } }

/* ---- name writer ------------------------------------------------------ */
.nm-layout { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 28px; align-items: start; }
.nm-card { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); background: #070B1F; }
.nm-row { display: flex; gap: 10px; }
.nm-row .pt-input { flex: 1; min-width: 0; font-size: 19px; }
.nm-try { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-dim); }
.nm-try button { min-height: 36px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); font-size: 13.5px; }
.nm-try button:hover { border-color: var(--accent); }
.nm-status { display: inline-block; margin-top: 18px; padding: 4px 12px; border-radius: 99px; font-size: 13px; font-weight: 600; background: rgba(25,211,255,.1); color: var(--signal); }
.nm-status.guess { background: rgba(255,176,0,.12); color: var(--accent); }
.nm-explain { font-size: 14px; color: var(--ink-mid); margin-top: 8px; }
.nm-section { margin-top: 20px; }
.nm-letters { display: flex; flex-wrap: wrap; gap: 8px; }
.nm-letter { min-width: 64px; padding: 8px 10px 6px; text-align: center; border: 1px solid var(--line); border-radius: 12px; }
.nm-letter b { display: block; font: 500 30px/1.05 var(--pa); }
.nm-letter small { font-size: 11.5px; color: var(--ink-dim); }
.nm-error { color: var(--accent); font-size: 14.5px; margin-top: 12px; }
@media (max-width: 860px) { .nm-layout { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .ff-play, .pt-row .more { transition: none; }
}

/* ---- hub: tools grouped by what they are for -------------------------- */
.pt-group { margin-top: 48px; }
.pt-group:first-child { margin-top: 0; }
.pt-group-t { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin-bottom: 14px; }
.pt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.pt-card { display: flex; flex-direction: column; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .2s, background .2s; }
.pt-card:hover { border-color: rgba(255,176,0,.4); background: var(--surface-hover); }
.pt-card .pa { font: 600 40px/1.3 var(--pa); color: var(--ink); white-space: nowrap; overflow: hidden; }
.pt-card h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; margin: 6px 0; }
.pt-card p { font-size: 14.5px; color: var(--ink-mid); margin-bottom: 14px; flex: 1; }
.pt-card .more { font-size: 14.5px; font-weight: 600; color: var(--accent); }

/* ---- flashcards ------------------------------------------------------- */
.fc-sets { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 1fr); }
.fc-card { position: relative; border: 1px dashed #a9a9b6; margin: -.5px; display: flex; min-width: 0; min-height: 0; }
.fc-half { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px; text-align: center; }
.fc-fold { border-left: 1px dotted #a9a9b6; }
.fc-pa { font-family: var(--pa); font-weight: 600; line-height: 1.2; color: #15151c; }
.fc-say { font-size: 15px; font-weight: 600; color: #15151c; margin-top: 2px; }
.fc-en { font-size: 14px; color: #4b4b57; margin-top: 2px; }
.fc-en.big { font-size: 22px; font-weight: 600; color: #15151c; margin: 0; }

/* ---- family tree ------------------------------------------------------ */
.ft-sheet { padding: 0 !important; display: block !important; }
.ft-sheet svg { display: block; width: 100%; height: 100%; }
.ft-sheet svg text.pa { font-family: var(--pa); }
.ft-sheet svg text.en { font-family: 'Sora', system-ui, sans-serif; }
.ft-group-t { font-size: 13px; font-weight: 600; color: var(--signal); margin: 18px 0 8px; }
.ft-group-t:first-child { margin-top: 0; }
.ft-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ft-fields label { font-size: 13px; font-weight: 500; color: var(--ink-mid); display: block; }
.ft-fields label b { font: 500 16px/1.2 var(--pa); color: var(--ink); margin-right: 4px; }
.ft-fields .pt-input { margin-top: 4px; padding: 9px 12px; font-size: 15px; }
.ft-wide { grid-column: 1 / -1; }
.ft-check { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14.5px; min-height: 32px; cursor: pointer; }
.ft-check input { width: 18px; height: 18px; flex: none; }

/* ---- numbers ---------------------------------------------------------- */
.nb-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 28px; align-items: start; }
.nb-out-d { font: 500 clamp(36px, 5vw, 56px)/1.2 var(--pa); color: var(--accent); word-break: break-all; }
.nb-out-w { font: 600 clamp(26px, 3.4vw, 42px)/1.3 var(--pa); color: #fff; }
.nb-out-r { font-size: 16px; color: var(--ink-mid); margin-top: 2px; }
.nb-err { color: var(--accent); font-size: 14.5px; margin-top: 10px; }
.nb-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin: 40px 0 16px; }
.nb-head h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 300; letter-spacing: -0.04em; }
.nb-head h2 em { font-style: normal; font-weight: 600; color: #fff; }
.nb-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.nb-grid li { padding: 10px 10px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; }
.nb-a { font-family: var(--mono); font-size: 11.5px; color: var(--ink-dim); display: flex; justify-content: space-between; align-items: baseline; }
.nb-d { font: 500 18px/1 var(--pa); color: var(--accent); }
.nb-w { font: 500 20px/1.3 var(--pa); color: var(--ink); margin-top: 4px; }
.nb-r { font-size: 12.5px; color: var(--ink-dim); overflow-wrap: anywhere; }
.nb-print-t { display: none; }
@media (max-width: 760px) { .nb-row { grid-template-columns: 1fr; } }
@media print {
  .nb-finder, .nb-head { display: none !important; }
  .nb-print-t { display: block !important; font-size: 18pt; font-weight: 600; color: #000 !important; margin-bottom: 8pt; }
  .nb-grid { grid-template-columns: repeat(10, 1fr) !important; gap: 0 !important; }
  .nb-grid li { border: .5pt solid #999 !important; border-radius: 0 !important; background: #fff !important; padding: 5pt 3pt !important; break-inside: avoid; }
  .nb-grid li * { color: #000 !important; }
  .nb-w { font-size: 11pt !important; }
  .nb-r { font-size: 7pt !important; }
}

/* ---- baby names ------------------------------------------------------- */
.bn-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.bn-letters { display: grid; grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); gap: 6px; }
.bn-l { min-height: 48px; border-radius: 10px; border: 1px solid var(--line); font: 500 23px/1 var(--pa); transition: background .15s, border-color .15s, color .15s; }
.bn-l:hover:not([disabled]) { border-color: var(--accent); }
.bn-l[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.bn-l[disabled] { opacity: .28; cursor: not-allowed; }
.bn-count { font-size: 14.5px; color: var(--ink-mid); margin: 22px 0 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bn-count button { color: var(--accent); font-weight: 600; font-size: 14px; min-height: 32px; }
.bn-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 28px; }
.bn-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bn-list li[hidden] { display: none; }
.bn-n { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bn-pa { font: 600 26px/1.25 var(--pa); color: var(--ink); }
.bn-ro { font-size: 15px; font-weight: 600; }
.bn-tag { font-size: 11.5px; color: var(--ink-dim); }
.bn-m { font-size: 14px; color: var(--ink-mid); grid-column: 1; }
.bn-trace { grid-column: 2; grid-row: 1 / span 2; font-size: 13.5px; font-weight: 600; color: var(--accent); padding: 6px 2px; }
.bn-empty { padding: 44px 16px; text-align: center; color: var(--ink-dim); }
@media (max-width: 620px) { .bn-tools { grid-template-columns: 1fr; } .bn-list { grid-template-columns: 1fr; } }

/* ---- reading quiz + daily puzzle: one centered stage ------------------ */
.qz-stage { max-width: 680px; margin: 0 auto; }
.qz-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink-dim); margin-bottom: 8px; }
.qz-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 24px; }
.qz-bar i { display: block; height: 100%; background: var(--fiber); transition: width .25s; }
.qz-prompt { font-size: clamp(21px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 6px; }
.qz-show { font: 600 clamp(30px, 4.6vw, 42px)/1.3 var(--pa); color: #fff; margin: 8px 0 4px; }
.qz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.qz-opt { min-height: 76px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; font-weight: 500; transition: border-color .15s, background .15s; }
.qz-opt[lang="pa"] { font: 500 32px/1.2 var(--pa); }
.qz-opt:hover:not([disabled]) { border-color: var(--accent); }
.qz-opt.right { background: rgba(25,211,255,.14); border-color: var(--signal); }
.qz-opt.wrong { background: rgba(255,176,0,.1); border-color: var(--accent); }
.qz-skip { display: block; margin: 14px auto 0; font-size: 14px; color: var(--ink-dim); min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.qz-level { font-size: clamp(30px, 4.4vw, 44px); font-weight: 300; letter-spacing: -0.04em; line-height: 1.12; margin: 4px 0 8px; }
.qz-level b { font-weight: 600; color: #fff; }
.qz-parts { display: grid; gap: 8px; margin: 18px 0; }
.qz-part { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.qz-part span:last-child { color: var(--ink-dim); white-space: nowrap; }
.qz-plan { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.qz-plan a { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.qz-plan a:hover { border-color: var(--accent); }
.qz-fine { font-size: 13px; color: var(--ink-dim); margin-top: 14px; }

.dz-clue { text-align: center; font-size: clamp(30px, 4.6vw, 44px); font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.dz-sub { text-align: center; font-size: 14.5px; color: var(--ink-dim); min-height: 24px; }
.dz-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0; min-height: 72px; }
.dz-slot { min-width: 62px; height: 72px; padding: 0 8px; border-bottom: 3px solid var(--line); display: flex; align-items: center; justify-content: center; font: 600 38px/1 var(--pa); color: #fff; }
.dz-slot.next { border-bottom-color: var(--accent); }
.dz-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dz-tile { min-width: 66px; height: 66px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font: 500 32px/1 var(--pa); transition: border-color .15s, opacity .15s; }
.dz-tile:hover:not([disabled]) { border-color: var(--accent); }
.dz-tile[disabled] { opacity: .25; cursor: default; }
.dz-tile.miss { animation: dz-miss .32s; border-color: var(--accent); }
@keyframes dz-miss { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.dz-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.dz-score { text-align: center; font-size: 34px; letter-spacing: .12em; color: var(--accent); margin: 8px 0; }
.dz-done-t { text-align: center; font-size: clamp(26px, 3.4vw, 36px); font-weight: 300; letter-spacing: -0.04em; }
.dz-done-t b { font-weight: 600; color: #fff; }
.dz-meta { text-align: center; font-size: 14.5px; color: var(--ink-mid); }
.dz-words { list-style: none; margin-top: 20px; }
.dz-words li { display: flex; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-mid); }
.dz-words b { font: 600 24px/1.2 var(--pa); color: var(--ink); min-width: 110px; }
.dz-words span:last-child { margin-left: auto; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .dz-tile.miss { animation: none; } .qz-bar i { transition: none; } }

/* headings that only receive focus from script, for screen readers */
.qz-prompt:focus, .qz-level:focus, .dz-clue:focus, .dz-done-t:focus { outline: none; }

/* ---- hub: wide card for the map --------------------------------------- */
.pt-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; }
.pt-card.wide img { width: 170px; height: auto; flex: none; }
.pt-card.wide > div { min-width: 0; }
.pt-card.wide p { max-width: 54ch; }
.pt-card.wide .more { display: inline-block; }
.pt-hub .mp-credit { margin-top: 14px; }
@media (max-width: 620px) { .pt-card.wide { flex-direction: column-reverse; align-items: flex-start; } }

/* ---- map of Punjab ---------------------------------------------------- */
.mp-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.mp-chip i { width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; background: var(--c); }
.mp-chip [lang="pa"] { font-size: 17px; line-height: 1; }
.mp-chip[aria-pressed="true"] [lang="pa"] { color: inherit; }
.r-majha { --c: #FFB000; }
.r-doaba { --c: #19D3FF; }
.r-malwa { --c: #9B8CFF; }
.mp-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px; align-items: start; }
.mp-map svg { display: block; width: 100%; height: auto; max-height: 86vh; }
.mp-d { cursor: pointer; }
path.mp-d, .mp-d .dot { fill: var(--c); fill-opacity: .34; stroke: #070B1F; stroke-width: 3; transition: fill-opacity .15s, fill .15s; }
.mp-d .dot { fill-opacity: 1; stroke: #fff; stroke-width: 5; }
.mp-d .hit { fill: transparent; }
path.mp-d:hover { fill-opacity: .62; }
.mp-d:focus { outline: none; }
path.mp-d:focus-visible { stroke: #fff; stroke-width: 6; }
.mp-d:focus-visible .dot { stroke: var(--accent); stroke-width: 9; }
path.mp-d.on { fill-opacity: 1; stroke: #fff; stroke-width: 6; }
.mp-d.on .dot { fill: #fff; stroke: var(--accent); stroke-width: 9; }
path.mp-d.dim { fill-opacity: .08; }
.mp-d.dim .dot { fill-opacity: .25; stroke-opacity: .25; }
path.mp-d.right, .mp-d.right .dot { fill: #19D3FF; fill-opacity: 1; }
path.mp-d.wrong, .mp-d.wrong .dot { fill: #FFB000; fill-opacity: 1; }
path.mp-d.hint { fill: #fff; fill-opacity: 1; animation: mp-hint 1s ease-in-out infinite alternate; }
.mp-d.hint .dot { fill: #fff; stroke: var(--accent); stroke-width: 12; }
@keyframes mp-hint { to { fill-opacity: .45; } }
.mp-ut { fill: rgba(139,147,196,.35); stroke: #070B1F; stroke-width: 3; }
.mp-label { font-family: var(--pa); font-weight: 500; fill: #fff; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(7,11,31,.72); stroke-width: 5; stroke-linejoin: round; }
.mp-label.muted { fill: var(--ink-dim); }
.mp-playing .mp-label { display: none; }
.mp-info { position: sticky; top: 84px; min-height: 250px; background: #0E1430; }
.mp-pa { font: 600 clamp(38px, 4.4vw, 54px)/1.25 var(--pa); color: #fff; }
.mp-en { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.mp-tag { display: inline-block; margin-top: 8px; padding: 3px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--c); border: 1px solid var(--c); }
.mp-fact { font-family: 'Sora', 'Baloo Paaji 2', 'Noto Sans Gurmukhi', sans-serif; font-size: 15px; color: var(--ink-mid); margin-top: 12px; }
.mp-find { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin-top: 6px; }
.mp-score { font-size: clamp(40px, 5vw, 56px); font-weight: 600; letter-spacing: -0.04em; color: #fff; line-height: 1.15; }
.mp-credit { font-size: 12.5px; color: var(--ink-dim); margin-top: 14px; max-width: 90ch; }
.mp-credit a { text-decoration: underline; text-underline-offset: 2px; }
.mp-print-t { display: none; }
#mpTables td:first-child, #mpTables td:nth-child(2) { white-space: normal; }
#mpTables td:nth-child(3) { font-size: 13.5px; }
@media (max-width: 860px) {
  .mp-layout { grid-template-columns: 1fr; gap: 14px; }
  .mp-info { order: -1; top: 64px; z-index: 5; min-height: 176px; padding: 14px 18px; }
  .mp-pa { font-size: 32px; }
  .mp-en { font-size: 17px; }
  .mp-fact { font-size: 14px; margin-top: 6px; }
  .mp-label { display: none; }
}
@media print {
  .mp-bar, .mp-info, .mp-credit { display: none !important; }
  .mp-print-t { display: block !important; font-size: 15pt; font-weight: 600; color: #000 !important; font-family: 'Sora', 'Baloo Paaji 2', sans-serif; margin-bottom: 10pt; }
  .mp-layout { display: block !important; }
  path.mp-d, .mp-ut { fill: #fff !important; stroke: #222 !important; stroke-width: 2.5 !important; }
  .mp-d .dot { fill: #222 !important; stroke: #fff !important; }
  .mp-label, .mp-playing .mp-label { display: block !important; fill: #000 !important; stroke: #fff !important; }
}
@media (prefers-reduced-motion: reduce) { path.mp-d.hint { animation: none; } path.mp-d, .mp-d .dot { transition: none; } }

/* map: English mode */
.mp-lang-en .mp-chip [lang="pa"] { display: none; }
.mp-lang-en .mp-label { font-family: 'Sora', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; }
.mp-pa.latin { font-family: var(--sans); letter-spacing: -0.04em; line-height: 1.12; font-size: clamp(30px, 3.2vw, 40px); }
.mp-pa.latin + .mp-tag { margin-top: 10px; }
@media (max-width: 860px) { .mp-pa.latin { font-size: 26px; } }

/* ---- family safety tools: shared ------------------------------------- */
.fs-private { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(25,211,255,.07); border: 1px solid rgba(25,211,255,.25); font-size: 13.5px; color: var(--ink-mid); }
.fs-private svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.fs-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fs-row2 .pt-input, .fs-field .pt-input { padding: 10px 12px; font-size: 15px; }
.fs-field { margin-top: 14px; }
.fs-field label, .fs-field .pt-label { font-size: 13.5px; }
.fs-segs { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-top: 16px; }
.pt-card .ico { width: 64px; height: 64px; margin: -4px 0 8px -4px; filter: drop-shadow(0 10px 16px rgba(0,0,0,.35)); }

/* ---- emergency ID cards (on paper) ------------------------------------ */
.idc-sheet { padding: 40px !important; }
.idc-grid { flex: 1; display: grid; justify-content: center; align-content: start; gap: 14px; }
.idc-grid.wallet { grid-template-columns: repeat(2, 324px); grid-auto-rows: 204px; --s: 1; }
.idc-grid.tag { grid-template-columns: repeat(2, 352px); grid-auto-rows: 262px; --s: 1.28; }
.idc { --c: #C62828; border: 1.5px dashed #9a9aa8; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; background: #fff; color: #15151c; font-family: 'Sora', system-ui, sans-serif; }
.idc.navy { --c: #18244D; } .idc.teal { --c: #0B7A8C; }
.idc-band { background: var(--c); color: #fff; font-weight: 700; letter-spacing: .08em; font-size: calc(11px * var(--s)); padding: calc(7px * var(--s)) 12px; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.idc-band i { font-style: normal; font-weight: 600; letter-spacing: 0; opacity: .85; }
.idc-body { flex: 1; padding: calc(8px * var(--s)) 12px calc(9px * var(--s)); display: flex; flex-direction: column; gap: calc(4px * var(--s)); min-height: 0; }
.idc-name { font-weight: 700; font-size: calc(17px * var(--s)); line-height: 1.15; letter-spacing: -0.01em; }
.idc-call { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; }
.idc-call span { font-size: calc(10px * var(--s)); color: #555; }
.idc-call b { font-size: calc(15px * var(--s)); letter-spacing: .01em; white-space: nowrap; overflow: hidden; }
.idc-line { display: inline-block; min-width: 120px; border-bottom: 1px solid #9a9aa8; height: 1em; }
.idc-med { margin-top: auto; font-size: calc(10px * var(--s)); line-height: 1.3; padding: calc(4px * var(--s)) 7px; border-radius: 6px; background: #FDECEA; color: #7f1d1d; }
.idc.navy .idc-med, .idc.teal .idc-med { background: #EEF2F7; color: #1f2a44; }
.idc-med b { font-weight: 700; }
.idc-note { font-size: calc(10px * var(--s)); color: #333; line-height: 1.3; }

/* ---- phone contract (on paper) ---------------------------------------- */
.pc-sheet { padding: 48px 56px 34px !important; color: #15151c; font-family: 'Sora', system-ui, sans-serif; }
.pc-title { text-align: center; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.pc-sub { text-align: center; font-size: 14px; color: #4b4b57; margin-top: 4px; }
.pc-rule-top { height: 3px; width: 70px; margin: 14px auto 18px; background: linear-gradient(90deg, #19D3FF, #FFB000); border-radius: 3px; }
.pc-body { flex: 1; columns: 2; column-gap: 34px; }
.pc-sec { break-inside: avoid; margin-bottom: 14px; }
.pc-sec h3 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #18244D; border-bottom: 1.5px solid #18244D; padding-bottom: 3px; margin-bottom: 6px; }
.pc-sec ul { list-style: none; }
.pc-sec li { position: relative; padding-left: 20px; font-size: 12.5px; line-height: 1.45; margin: 4px 0; }
.pc-sec li::before { content: ''; position: absolute; left: 0; top: 3px; width: 11px; height: 11px; border: 1.5px solid #18244D; border-radius: 3px; }
.pc-sec.parents h3 { color: #B45F06; border-color: #B45F06; }
.pc-sec.parents li::before { border-color: #B45F06; }
.pc-review { font-size: 12.5px; color: #333; margin: 6px 0 0; padding: 8px 12px; border-radius: 8px; background: #F4F5F9; }
.pc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; margin-top: 22px; }
.pc-sign div { border-top: 1.5px solid #15151c; padding-top: 5px; font-size: 11.5px; color: #4b4b57; }

/* ---- location troubleshooter ------------------------------------------ */
.fx-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.fx-steps { list-style: none; counter-reset: fx; margin-top: 8px; }
.fx-steps li { counter-increment: fx; border-bottom: 1px solid var(--line); }
.fx-steps label { display: grid; grid-template-columns: 22px 28px 1fr; gap: 10px; align-items: start; padding: 14px 2px; cursor: pointer; font-size: 15.5px; line-height: 1.5; color: var(--ink-mid); }
.fx-steps input { width: 20px; height: 20px; margin-top: 2px; }
.fx-steps label::before { content: counter(fx); grid-column: 2; grid-row: 1; font-family: var(--mono); font-size: 13px; color: var(--signal); padding-top: 3px; }
.fx-steps input { grid-column: 1; grid-row: 1; }
.fx-steps span { grid-column: 3; grid-row: 1; }
.fx-steps b { color: var(--ink); font-weight: 600; }
.fx-steps input:checked ~ span { color: var(--ink-dim); text-decoration: line-through; text-decoration-color: rgba(139,147,196,.5); }
.fx-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.fx-head h2 { font-size: clamp(21px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; }
.fx-progress { font-size: 14px; color: var(--ink-dim); }
.fx-note { font-size: 14px; color: var(--ink-mid); margin-top: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,176,0,.3); background: rgba(255,176,0,.06); }
.fx-note b { color: var(--accent); }
@media (max-width: 560px) { .fs-row2 { grid-template-columns: 1fr; } }

/* ---- locator comparison + aging checklist ------------------------------ */
.cmp { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-mid); }
.cmp thead th { font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--line); }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 18%; }
.cmp .us { background: rgba(255,176,0,.06); color: var(--ink); }
.cmp thead .us { color: var(--accent); border-top: 2px solid var(--accent); border-radius: 10px 10px 0 0; }
.cmp-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 30px; }
.cmp-picks .pt-card h2 { font-size: 17px; }
.cmp-picks .pt-card p { margin-bottom: 0; }
.cmp-picks .pt-card.us { border-color: rgba(255,176,0,.45); background: rgba(255,176,0,.05); }
.cmp-sources { margin-top: 34px; }
.cmp-sources h2 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.cmp-sources ul { list-style: disc; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-mid); }
.cmp-sources a { color: var(--accent); }
.pc-sec li.ag-done::before { background: #18244D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.2 2.2L9.5 3.7' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }

/* BabyCue tools */
.bc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.bc-stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(255,255,255,.02); }
.bc-stat b { display: block; font-size: clamp(17px, 1.8vw, 21px); font-weight: 600; letter-spacing: -0.02em; color: var(--accent); }
.bc-stat span { display: block; font-size: 13px; color: var(--ink-dim); margin-top: 4px; }
.bc-day { list-style: none; margin-top: 12px; border-left: 2px solid rgba(255,176,0,.35); padding-left: 0; }
.bc-day li { display: grid; grid-template-columns: 170px 1fr; gap: 14px; align-items: baseline; padding: 10px 0 10px 18px; position: relative; border-bottom: 1px solid var(--line); }
.bc-day li:last-child { border-bottom: 0; }
.bc-day li::before { content: ''; position: absolute; left: -7px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.bc-time { font-family: 'JetBrains Mono', monospace; font-size: 14px; color: var(--ink); white-space: nowrap; }
.bc-day b { font-weight: 600; }
.bc-day small { display: block; font-size: 13px; color: var(--ink-dim); margin-top: 2px; }
.bc-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: start; }
.bc-result { text-align: center; position: sticky; top: 90px; }
.bc-big { font-size: clamp(40px, 5.5vw, 60px); font-weight: 700; letter-spacing: -0.04em; color: var(--accent); line-height: 1.1; margin-top: 6px; }
.bc-big-l { font-size: 14px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: .14em; margin-top: 6px; }
.bc-day-total { font-size: 15px; color: var(--ink-mid); margin-top: 14px; }
.bc-result .fx-note, .bc-result .pt-hint { text-align: left; }
@media (max-width: 760px) {
  .bc-grid { grid-template-columns: 1fr; }
  .bc-result { position: static; }
  .bc-stats { grid-template-columns: 1fr; }
  .bc-day li { grid-template-columns: 1fr; gap: 2px; }
}
.bl-body { flex: 1; display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.bl-day { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.bl-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #18244D; border-bottom: 3px solid; border-image: linear-gradient(90deg, #19D3FF, #FFB000) 1; padding-bottom: 6px; margin-bottom: 8px; }
.bl-top > span:last-child { font-size: 12.5px; font-weight: 500; color: #4b4b57; display: flex; align-items: flex-end; gap: 6px; }
.bl-line { display: inline-block; width: 150px; border-bottom: 1.2px solid #15151c; height: 14px; }
.bl-line.short { width: 60px; }
.bl-table { width: 100%; border-collapse: collapse; flex: 1; table-layout: fixed; }
.bl-table th { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #18244D; text-align: left; padding: 5px 6px; border-bottom: 1.5px solid #18244D; background: #F4F5F9; }
.bl-table td { border-bottom: 1px solid #c8c8d0; border-right: 1px solid #e3e3ea; padding: 0 6px; height: 1px; }
.bl-table td:last-child { border-right: 0; }
.bl-table th:first-child, .bl-table td:first-child { width: 13%; }
.bl-box { display: block; width: 13px; height: 13px; border: 1.5px solid #18244D; border-radius: 3px; margin: 0 auto; }
.bl-table th:nth-last-child(3), .bl-table th:nth-last-child(4) { width: 7%; text-align: center; }
.bl-table th:last-child { width: 22%; }
.bl-sum { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 12px; font-weight: 600; color: #18244D; margin-top: 8px; }
.bl-sum span { display: flex; align-items: flex-end; gap: 6px; }
.bc-day li.bc-past { opacity: .5; }
.bc-day li.bc-now::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(255,176,0,.18); }
.bc-day li.bc-now b { color: var(--accent); }
.bc-units { display: flex; align-items: center; gap: 8px; }
.bc-units .pt-input { min-width: 0; }
.bc-units span { font-size: 14px; color: var(--ink-dim); white-space: nowrap; }
.gr-row { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line); }
.gr-row:last-child { border-bottom: 0; }
.gr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gr-top span { font-size: 15px; color: var(--ink-mid); font-weight: 600; }
.gr-top b { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.gr-bar { position: relative; height: 10px; border-radius: 99px; margin: 12px 0 8px; background: linear-gradient(90deg, rgba(255,90,90,.45) 0 2%, rgba(25,211,255,.25) 2% 25%, rgba(25,211,255,.45) 25% 75%, rgba(25,211,255,.25) 75% 98%, rgba(255,90,90,.45) 98%); }
.gr-bar i { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--accent); }
.gr-row small { font-size: 13.5px; color: var(--ink-dim); }
.ms-lines { display: grid; gap: 22px; padding-top: 14px; }
.ms-lines i { display: block; border-bottom: 1px solid #b9b9c4; }
.cg-sos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 12px; margin-bottom: 14px; }
.cg-sos div { border: 2px solid #C62828; border-radius: 10px; padding: 8px 12px; }
.cg-sos b { display: block; color: #C62828; font-size: 15px; font-weight: 700; }
.cg-sos span { font-size: 13px; color: #15151c; }
.cg-contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin-bottom: 16px; }
.cg-contacts div { border-bottom: 1.2px solid #15151c; padding-bottom: 4px; min-height: 52px; }
.cg-contacts small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #18244D; font-weight: 600; }
.cg-contacts b { font-size: 14px; font-weight: 600; margin-right: 10px; }
.cg-contacts span { font-size: 14px; color: #333; }
.cg-text { font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cg-always li::before { display: none; }
.cg-always li { padding-left: 0; }
textarea.pt-input { resize: vertical; min-height: 64px; font-family: inherit; line-height: 1.45; }
.ms-sheet .pc-sec { margin-bottom: 22px; }
.ms-sheet .pc-sec h3 { font-size: 13px; margin-bottom: 10px; }
.ms-sheet .pc-sec li { font-size: 14.5px; line-height: 1.5; margin: 9px 0; padding-left: 24px; }
.ms-sheet .pc-sec li::before { top: 4px; width: 13px; height: 13px; }
.ms-sheet .ms-lines { gap: 30px; padding-top: 18px; }
.cg-sheet .pc-sec { margin-bottom: 20px; }
.cg-sheet .pc-sec h3 { font-size: 13px; margin-bottom: 8px; }
.cg-sheet .cg-text { font-size: 14px; }
.cg-sheet .cg-always li { font-size: 13.5px; margin: 7px 0; }
.cg-sheet .ms-lines { gap: 26px; }
.cg-tonight { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin: -4px 0 18px; font-size: 13px; font-weight: 600; color: #18244D; }
.cg-tonight span { display: flex; align-items: flex-end; gap: 8px; }
.cg-tonight i { flex: 1; border-bottom: 1.2px solid #15151c; height: 16px; }
