/* One look for every tab (the UX audit of 4 Nov 2026, diya-v52; owner, 3 Nov: "glass everywhere"). Loaded after phase2.css so these
   rules settle the layers of per-tab overrides before them. Tokens only. */

/* ---- one page title: the same display size per breakpoint, the same left edge, and a sub line in the UI face ---- */
:root{--tab-title:32px}
@media (min-width:1024px){:root{--tab-title:40px}}
#tab-today #t-title,#tab-log #p-title,#tab-log #p-tools-title,#tab-hist #j-title,#tab-friends #f-title,#tab-guide #ask-h{
  margin:0;min-height:0;max-width:none;font:400 var(--tab-title)/1.15 var(--font-display);letter-spacing:-.01em;word-spacing:normal;text-wrap:balance;color:var(--ink)}
#tab-today #t-title .title-tail{display:inline;margin:0;font-size:inherit;letter-spacing:inherit}
#tab-log .p2-paths-hero>p:last-child,#tab-log #p-band .sub,#tab-hist .j-hero>.scene-text .sub,#tab-friends .f-head .sub{
  margin:var(--sp-1h) 0 0;max-width:54ch;font:400 var(--fs-md)/24px var(--font-ui);color:var(--ink-mid);text-wrap:pretty}
#tab-log .p2-paths-hero h2{margin:0}
#tab-log .p2-paths-hero{padding-block:0}
#social-nav .f-head{margin-bottom:var(--sp-5)} /* 20px to its switch, as Jyotish's head to its first card */
/* every title lands on the same line: 66px under the status bar on a phone, 28px down the page on desktop (Practice, Friends and Jyotish set their own tops, Trident's band its own padding) */
@media (max-width:1023px){#tab-log{margin-top:-4px}#tab-friends{margin-top:-4px}#tab-jyotish{margin-top:-4px}}
@media (max-width:1023px){#f-live{gap:var(--sp-8)}} /* one rhythm: sections 32px apart on every phone tab, as Today, Practice and Jyotish (the 23 Nov polish pass) */
@media (min-width:1024px){#tab-log .p2-paths-hero{padding-top:4px}#tab-friends{margin-top:0;padding-top:28px}#tab-jyotish{padding-top:28px}}
@media (min-width:1024px){#tab-hist,#tab-friends,#tab-jyotish{width:100%;max-width:1120px;margin-inline:auto}#tab-friends>*{max-width:680px}} /* as wide as Today and Practice (Friends' column itself stays 680), so every title starts at one left edge */

/* ---- Journey's nature pill is Today's points pill: the same paper chip, radius, shadow and type ---- */
.nq-badge{min-height:var(--tap);border:1px solid rgb(43 33 51 / .14);border-radius:22px;background:var(--surface);box-shadow:0 1px 2px rgb(43 33 51 / .06),0 6px 18px -4px rgb(43 33 51 / .18);font:400 16px/20px var(--font-ui)}
.nq-badge-k{font-size:var(--fs-sm);line-height:18px}
.nq-badge-v{font:600 16px/20px var(--font-ui)}
/* the title block keeps one rhythm on every width (title, sub line 8px under it, the pill 16px under that); desktop's 2px gap left the pill 10px under the sub line */
#tab-hist .j-hero>.scene-text{gap:var(--sp-2)}

/* ---- Journey: points in the UI face like Today's pill, its kickers in flame, its lower cards in glass ---- */
.trail-summary{font:400 16px/1.5 var(--font-ui);color:var(--ink-mid)}
.trail-summary #j-rank-line{font:400 16px/1.5 var(--font-ui)}
.trail-summary #j-rank-line b{font:600 16px/1.5 var(--font-ui);color:var(--ink);margin-right:0;font-variant-numeric:tabular-nums}
#tab-hist :is(#h-week-h,.day-panel>span.small){font:500 var(--fs-sm)/1.4 var(--font-ui);color:var(--flame)}
#tab-hist :is(#h-week,#h-cal,#h-rows,#h-more,#j-paths,#h-day,#j-note,#journey-board .lb){border:1px solid var(--glass-edge);border-radius:24px;background:var(--glass-fill);box-shadow:var(--glass-shadow)}
#tab-hist #h-day{padding:var(--sp-4)}
#tab-hist #j-note{padding:var(--sp-4)}
/* the selected day: each sitting its own hairline-split entry, Edit and Delete 20px apart, the button 16px under the last entry */
#tab-hist #h-day .stack.hair{gap:var(--sp-1);padding-top:var(--sp-3);border-top:1px solid color-mix(in srgb,var(--flame) 12%,transparent)}
#tab-hist #h-day .stack.hair>.row{gap:var(--sp-5);margin-top:var(--sp-1h)}
#tab-hist #h-day>div:last-child{margin-top:var(--sp-2)}
/* the top rank has one medal: the map is sized to it, not to three */
.trail-count-1{height:200px}.trail-count-1 .trail-i-0{top:50px}
@media (max-width:363px){#h-cal .cal button:focus-visible{outline-offset:calc(-1 * var(--sp-1))}} /* the month's edge cells sit 5px from the card: the ring stays inside the cell */
#tab-hist #h-rows .trow .lab{font:400 var(--fs-lg)/1.3 var(--font-display)}
#tab-hist #h-more .trow .lab{font:400 var(--fs-lg)/1.3 var(--font-display)}
#lb-refresh{margin-top:var(--sp-3)}

/* ---- Trident AI: the title on the page's left edge, not inset by the old band ---- */
@media (min-width:1024px){:is(#p-band,#ask-band) .scene.primary-band .scene-text{padding:4px 0 12px}}

#tab-guide #ask-rest{border:1px solid var(--glass-edge);border-radius:24px;background:var(--glass-fill);box-shadow:var(--glass-shadow)} /* the resting card in the same glass */

/* ---- Your tools (the old Practice page, now the tools under Practice): glass like the other tabs, a status of its own no more ---- */
#practice-tools :is(.card,.rows,details.more,.p-room){border:1px solid var(--glass-edge);border-radius:24px;background:var(--glass-fill);box-shadow:var(--glass-shadow)}
#practice-tools #p-dhyana{padding:var(--sp-4)} /* the glass card keeps its own padding (the base rule has none) */
#practice-tools .p-common{background:none;border:0;box-shadow:none;padding:0} /* its rows are the glass cards, not the section round them */
#practice-tools .rows>.trow{background:none;border:0;border-radius:0;box-shadow:none;border-bottom:1px solid color-mix(in srgb,var(--flame) 8%,transparent)}
#practice-tools .rows>.trow:last-child{border-bottom:0}
#practice-tools .p-room{margin-bottom:var(--sp-4)}
#practice-tools .p-cols{margin-top:var(--sp-4)}
#practice-tools #p-dh>summary{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding-inline:var(--sp-4);list-style:none;font:400 var(--fs-lg)/1.3 var(--font-display);cursor:pointer}
#practice-tools #p-dh>summary::-webkit-details-marker{display:none}
#practice-tools #p-dh>summary::after{content:'';width:8px;height:8px;border-right:2px solid var(--ink-mid);border-bottom:2px solid var(--ink-mid);transform:rotate(-45deg);transition:transform var(--t-fast) var(--ease-decel)}
#practice-tools #p-dh[open]>summary::after{transform:rotate(45deg)}
@media (prefers-reduced-motion:reduce){#practice-tools #p-dh>summary::after{transition:none}}
#practice-tools .p-tools{flex-wrap:wrap;justify-content:flex-start}
#practice-tools .p-tools .btn{min-height:var(--tap);border:1px solid var(--glass-edge);border-radius:var(--r-pill);background:var(--glass-fill);box-shadow:var(--glass-shadow)}

/* ---- nothing is due: no halo behind the medal on a paused, waiting or off-day card, and none behind the first-run plaque ---- */
.ct-quiet .ct-today .ct-node::before{content:none}
:is(.p2-state-paused,.p2-state-waiting,.p2-state-off) .p2-today-art::before{content:none}
.fr-start-art{background:none}
