/* ---------- fonts (self-hosted, SIL Open Font License — see fonts/LICENSE-*) ----------
   Served from this site: no third-party stylesheet blocks the first paint,
   and font-display:swap shows text in the fallback face immediately. The
   latin-ext files only download if a name needs those characters. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/inter-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/inter-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/inter-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/inter-latin-700-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/eb-garamond-latin-400-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/eb-garamond-latin-ext-400-normal.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/eb-garamond-latin-500-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:500;font-display:swap;src:url("../fonts/eb-garamond-latin-ext-500-normal.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/eb-garamond-latin-600-normal.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"EB Garamond";font-style:normal;font-weight:600;font-display:swap;src:url("../fonts/eb-garamond-latin-ext-600-normal.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"EB Garamond";font-style:italic;font-weight:400;font-display:swap;src:url("../fonts/eb-garamond-latin-400-italic.woff2") format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"EB Garamond";font-style:italic;font-weight:400;font-display:swap;src:url("../fonts/eb-garamond-latin-ext-400-italic.woff2") format("woff2");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

/* Daily Communion — app styles.
   Light by default with a sun/moon toggle. The timer, the chant player
   and the share card are always dark. Sans carries the interface; the
   serif is kept for the day's thought and for the numbers that matter
   (the streak, the clock, the counts). Every tap target is at least 44px. */

:root{
  --paper:#F7F4EC; --paper-2:#FFFFFF; --card:#FFFFFF;
  --line:#E6E0D2; --ink:#211E19; --ink-soft:#6B6457; --ink-dim:#A49C8C;
  --gold:#B5791E; --gold-soft:#F3E3C4; --gold-mid:#EBC98A; --gold-rgb:181,121,30;
  /* Timer ring: a filled night-indigo disc with a gold face. */
  --ring-1:#3A4E73; --ring-2:#22304A; --ring-fg:#E8C98A; --ring-glow:212,178,116; /* soft champagne gold */
  --moon:#3E5C85; --moon-soft:#DCE6F2;
  --lotus:#C2556B; --lotus-soft:#F3DCE1;
  --teal:#2E8B74; --teal-soft:#D9EEE7;
  --danger:#B5432E;
  --display:"EB Garamond",Georgia,serif;
  --body:"Inter",-apple-system,system-ui,sans-serif;
  --safe-top:max(24px,calc(env(safe-area-inset-top,0px) + 16px));
  /* The home indicator sits over the last ~34px, which was clipping
     the bottom button on the full-screen screens. */
  --safe-bot:max(28px,calc(env(safe-area-inset-bottom,0px) + 14px));
  --nav-h:calc(69px + max(8px,env(safe-area-inset-bottom,0px)));   /* the bottom bar, measured */
  color-scheme:light;
}
:root[data-theme="dark"]{
  --paper:#0D1017; --paper-2:#161B24; --card:#161B24;
  --line:#272E3B; --ink:#ECE8E0; --ink-soft:#8D8779; --ink-dim:#5E5A52;
  --gold:#D9A441; --gold-soft:#3A2E16; --gold-mid:#6B5325; --gold-rgb:217,164,65;
  --ring-1:#435B86; --ring-2:#27364F; --ring-fg:#F0C977; --ring-glow:240,216,168;
  --moon:#8FA6C4; --moon-soft:#1E2A3A;
  --lotus:#E38099; --lotus-soft:#3A2630;
  --teal:#4FBFA0; --teal-soft:#16302A;
  --danger:#E07A63;
  color-scheme:dark;
}
/* Always-dark surfaces. The explicit `color` matters: redefining --ink
   only changes what var(--ink) means inside this subtree, while text
   simply inherits body's already-computed colour unless told again. */
.dk{
  color:var(--ink); background:var(--paper); color-scheme:dark;
  --paper:#0D1017; --paper-2:#161B24; --card:#161B24;
  --line:#272E3B; --ink:#ECE8E0; --ink-soft:#8D8779; --ink-dim:#5E5A52;
  --gold:#D9A441; --gold-soft:#3A2E16; --gold-mid:#6B5325; --gold-rgb:217,164,65;
  --moon:#8FA6C4; --moon-soft:#1E2A3A;
}

*{box-sizing:border-box}
/* `hidden` only sets display:none at user-agent strength, so anything with
   its own `display` here would ignore it. This makes hidden mean hidden. */
[hidden]{display:none!important}
html,body{margin:0;min-height:100%}
body{
  background:var(--paper); color:var(--ink);
  font-family:var(--body); font-size:17px; line-height:1.5;
  -webkit-tap-highlight-color:transparent;
  -webkit-text-size-adjust:100%;
}
body.immersive{background:#0E1017}
#app{max-width:480px;margin:0 auto;min-height:100vh;display:flex;flex-direction:column}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
h1,h2,h3{margin:0;font-weight:inherit}

.ic{width:24px;height:24px;display:inline-block;vertical-align:middle;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round;flex:none}
.ic.sm{width:18px;height:18px}
.ic.lg{width:38px;height:38px}
.ic.xl{width:48px;height:48px}

/* The scroll indicator is hidden everywhere: the app is a set of
   screens, not a long document, and the grey line reads as chrome. */
html{scrollbar-width:none}
html::-webkit-scrollbar,body::-webkit-scrollbar,*::-webkit-scrollbar{width:0;height:0;display:none}

/* ---------- Screens ----------
   No banded headers anywhere: an eyebrow, a title, space. Every screen
   carries the safe-area inset itself, with extra room so a Dynamic Island
   never crops the first line. */
.screen{
  display:none;flex:1;
  padding:var(--safe-top) max(16px,env(safe-area-inset-right,0px)) var(--safe-bot) max(16px,env(safe-area-inset-left,0px));
}
.screen.on{display:block}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 12px}

.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:18px}
/* Font rule: serif for greetings, titles, tabs, big numbers and Start;
   sans for everything you read or tap. */
.title{font-family:var(--display);font-weight:500;font-size:30px;line-height:1.15;margin:6px 0 6px;letter-spacing:0;text-wrap:balance}
.title.sm{font-size:24px;margin-bottom:14px}
.sub{color:var(--ink-soft);font-size:15px;margin:0 0 12px}
.fine{color:var(--ink-dim);font-size:13px;margin:10px 0 0}
.eyebrow{font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-dim)}
.sec{font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-dim);font-weight:600;margin:24px 0 10px}
.center{text-align:center}
.mt16{margin-top:16px}
.mt8{margin-top:8px}
.danger{color:var(--danger)!important}

.hd{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:44px}
.hd .act{display:flex;align-items:center;gap:8px;color:var(--ink-soft)}

.themebtn,.iconbtn{
  width:44px;height:44px;border-radius:50%;border:1px solid var(--line);
  background:var(--card);display:inline-flex;align-items:center;justify-content:center;
  color:var(--ink-soft);flex:none;padding:0;
}
.iconbtn{border-color:transparent;background:transparent}
.iconbtn:disabled{opacity:.3}
.iconbtn.lg{width:48px;height:48px}
.iconbtn.on{color:var(--gold);background:var(--gold-soft)}

/* ---------- Buttons & inputs ---------- */
.btn{
  background:var(--gold);color:#17120A;border:none;border-radius:12px;
  padding:13px 18px;font-size:16px;font-weight:600;text-align:center;text-decoration:none;
  min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:8px;
}
.btn.ghost{background:transparent;border:1px solid var(--line);color:var(--ink)}
.btn.ghost.danger{border-color:var(--danger)}
.btn.sm{min-height:44px;padding:8px 14px;font-size:14.5px;border-radius:10px}
.btn.block{display:flex;width:100%}
.btn:disabled{opacity:.5;cursor:default}
.linkbtn{
  background:none;border:none;color:var(--gold);font-weight:600;font-size:15px;
  min-height:44px;padding:0 4px;display:inline-flex;align-items:center;justify-content:center;gap:6px;
}
.linkbtn.block{display:flex;width:100%;margin-top:6px}
.btnrow{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:12px}

input[type=text],input[type=tel],input[type=url],input[type=search],input[type=number],input[type=date],textarea,select{
  width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:10px;
  background:var(--paper-2);color:var(--ink);font-size:16px;min-height:48px;
}
select{width:auto;flex:1;min-width:0}
textarea{resize:vertical;line-height:1.5}
.field{display:block;margin-bottom:14px}
.flabel{display:block;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-dim);margin-bottom:6px}
.check{display:flex;align-items:center;gap:10px;min-height:44px;font-size:16px;margin-bottom:4px}
.check input{width:22px;height:22px;accent-color:var(--gold);flex:none}

.chips{display:flex;gap:7px;flex-wrap:wrap}
.chip{
  border:1px solid var(--line);border-radius:999px;padding:9px 15px;
  font-size:14.5px;background:transparent;color:var(--ink-soft);min-height:44px;
}
.chip.on{background:var(--gold);border-color:var(--gold);color:#fff}
.dk .chip.on{color:#17120A}

.pillrow{display:flex;gap:6px;margin:0 0 16px}
.pill{
  flex:1;text-align:center;padding:9px;border-radius:10px;border:1px solid var(--line);
  font-size:14.5px;background:transparent;color:var(--ink-soft);min-height:44px;
}
.pill.on{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.pillrow.sm .pill{min-height:40px;font-size:14px}
/* Screen tabs (Group, Admin, Journal) look like Meditate's: serif, gold underline. */
#group-pills,#adm-pills,#journal-pills{gap:28px;justify-content:center;border-bottom:1px solid var(--line);margin:0 0 18px}
#group-pills .pill,#adm-pills .pill,#journal-pills .pill{flex:none;background:none;border:0;border-radius:0;padding:10px 2px;min-height:48px;font-family:var(--display);font-size:21px;font-weight:400;color:var(--ink-dim);position:relative}
#group-pills .pill.on,#adm-pills .pill.on,#journal-pills .pill.on{background:none;color:var(--ink)}
#group-pills .pill.on::after,#adm-pills .pill.on::after,#journal-pills .pill.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:var(--gold)}

/* ---------- Rows ---------- */
.row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);min-height:56px;width:100%}
.row:last-child{border-bottom:none}
.row .m{flex:1;min-width:0;text-align:left}
.row .m b{display:block;font-size:16px;font-weight:600}
.row .m span{display:block;font-size:13.5px;color:var(--ink-soft);margin-top:2px}
.row .e{color:var(--ink-dim);display:flex;align-items:center}
button.row,a.row{background:none;border:none;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}
button.row:last-child,a.row:last-child{border-bottom:none}
.thumb{width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;flex:none}
.tone-gold{background:var(--gold-soft);color:var(--gold)}
.tone-moon{background:var(--moon-soft);color:var(--moon)}
.tone-lotus{background:var(--lotus-soft);color:var(--lotus)}
.tone-teal{background:var(--teal-soft);color:var(--teal)}
.thumb-img{overflow:hidden;background:var(--line)}
.thumb-img img{width:100%;height:100%;object-fit:cover}

/* ---------- Bottom nav: icons sit directly on the bar, no circle ---------- */
.nav{
  position:sticky;bottom:0;z-index:10;
  display:flex;border-top:1px solid var(--line);background:var(--paper-2);
  padding:6px max(10px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(10px,env(safe-area-inset-left,0px));
}
.nav button{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  background:none;border:none;color:var(--ink-soft);opacity:.85;font-size:12.5px;font-weight:500;letter-spacing:.02em;
  padding:6px 0;min-height:52px;
}
.nav button .ic{width:27px;height:27px}
.nav button.on{color:var(--gold);opacity:1}
body.splash-on .nav,body.immersive .nav,body.joining .nav{display:none}

.toast{
  position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);
  background:var(--ink);color:var(--paper);padding:11px 18px;border-radius:10px;
  font-size:14.5px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:60;
  max-width:calc(100% - 32px);text-align:center;
}
.toast.show{opacity:1}

/* ---------- Join ---------- */
.screen#screen-join.on{display:flex;flex-direction:column;justify-content:center}
.join{text-align:center;max-width:380px;margin:0 auto;width:100%}
.join-mark{color:var(--gold);margin-bottom:18px}
.join-title{font-family:var(--display);font-size:34px;line-height:1.15;margin:8px 0 10px}
.join-lede{color:var(--ink-soft);font-size:16px;line-height:1.6;margin:0 0 24px}
.notice{text-align:left;margin-bottom:20px}
.notice-h{font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);margin-bottom:8px;font-weight:600}
.notice p{margin:0;font-size:15px;line-height:1.65;color:var(--ink-soft)}
.join .field{text-align:left}
.join-status{color:var(--ink-soft);font-size:15px;min-height:22px;margin-top:14px}

/* ---------- Daily thought ---------- */
.screen.splash.on{
  display:flex;flex-direction:column;justify-content:center;text-align:center;
  padding-left:max(24px,env(safe-area-inset-left,0px));padding-right:max(24px,env(safe-area-inset-right,0px));
  cursor:pointer;
}
.quote-portrait{width:84px;height:84px;border-radius:50%;object-fit:cover;margin:0 auto 22px;border:2px solid var(--gold-soft)}
.q-eyebrow{font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-dim)}
.q-day{font-family:var(--display);font-size:21px;margin:8px 0 22px;color:var(--ink-soft)}
.q-word{font-family:var(--display);font-size:38px;line-height:1.1;margin-bottom:22px;color:var(--gold);text-wrap:balance}
.q-text{font-family:var(--display);font-size:22px;line-height:1.55;text-wrap:balance}
.q-attr{margin-top:26px;font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-soft)}
.q-src{font-size:13px;font-style:italic;color:var(--ink-dim);margin-top:4px}
.q-next{margin:34px auto 0;color:var(--gold);background:none;border:none;width:56px;height:56px;display:flex;align-items:center;justify-content:center}

/* ---------- Today ---------- */
.screen#screen-today.on{display:flex;flex-direction:column;
  padding-left:max(22px,env(safe-area-inset-left,0px));padding-right:max(22px,env(safe-area-inset-right,0px))}
/* The visible screen above the bottom bar: svh is the height with the
   browser's own bars showing, so the button is never under them. */
.tfold{display:flex;flex-direction:column;
  min-height:calc(100vh - var(--safe-top) - var(--nav-h));
  min-height:calc(100svh - var(--safe-top) - var(--nav-h))}
.streak-btn{
  display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 12px 0 9px;
  border:1px solid var(--line);border-radius:999px;background:var(--card);color:var(--lotus);font-size:17px;
}
.streak-btn .ic{width:21px;height:21px;transition:color .3s}
.streak-btn{transition:color .3s}
.streak-btn.idle{color:var(--ink-dim)}
.streak-btn.idle b{color:var(--ink-soft)}
.streak-btn b{color:var(--ink);font-variant-numeric:tabular-nums;font-weight:700}
/* Greeting: one line, serif, compact — the room goes to the practice. */
.greet{display:flex;align-items:center;gap:10px;margin:12px 0 22px;font-family:var(--display);font-weight:500;font-size:28px;line-height:1.15;letter-spacing:0;text-wrap:balance}
.namaste{font-size:.9em;line-height:1;flex:none}
.undo-ask{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-8px 0 18px;padding:10px 12px;border-radius:14px;background:var(--card);border:1px solid var(--line);font-size:14px}
.undo-ask span{flex:1;min-width:120px;color:var(--ink-soft)}
.yday + .undo-ask{margin-top:10px}

/* Morning / Evening cards: the sunrise or sunset spreads across the left
   of the card and fades into it; the card's text sits where the art has
   faded. The whole top of the card is the mark button. */
.ci-group{
  position:relative;border:1px solid var(--line);border-radius:20px;background:var(--card);
  overflow:hidden;margin-bottom:18px;box-shadow:0 1px 2px rgba(0,0,0,.03);transition:border-color .2s;
}
.ci-group.done{border-color:var(--gold-mid)}
.ci-art{
  position:absolute;left:0;top:0;width:58%;height:124px;pointer-events:none;
  -webkit-mask-image:linear-gradient(to right,#000 28%,rgba(0,0,0,.55) 52%,transparent 100%);
  mask-image:linear-gradient(to right,#000 28%,rgba(0,0,0,.55) 52%,transparent 100%);
}
.ci-art .sc{position:absolute;inset:0;width:100%;height:100%}
.ci-art .sc-d{display:none}
:root[data-theme="dark"] .ci-art .sc-l{display:none}
:root[data-theme="dark"] .ci-art .sc-d{display:block}
.ci-art .glow{opacity:.62;transition:opacity .4s}
.ci-group.done .ci-art .glow{opacity:1}
.ci{
  position:relative;display:flex;align-items:flex-start;gap:10px;text-align:left;
  width:calc(100% - 118px);margin:0 0 0 118px;padding:14px 16px 8px 8px;
  border:0;border-radius:0;background:none;min-height:0;
}
.ci .lab{flex:1 1 auto;min-width:0}
.ci .lab b{display:block;font-family:var(--display);font-weight:500;font-size:21px;line-height:1.15}
.ci .lab .state{display:block;font-size:14px;color:var(--ink-soft);margin-top:3px}
.ci.on .lab .state{color:var(--gold);font-weight:500}
.ci .dot{
  width:32px;height:32px;border-radius:50%;flex:none;border:1.6px solid var(--ink-dim);
  display:flex;align-items:center;justify-content:center;color:#fff;transition:background .2s,border-color .2s;
}
.ci .dot .ic{opacity:0;transition:opacity .15s;stroke-width:2.6}
.ci.on .dot{background:var(--gold);border-color:var(--gold)}
.ci.on .dot .ic{opacity:1}
.ci:disabled{opacity:.7;cursor:wait}
.more{
  position:relative;display:flex;align-items:center;gap:8px;
  width:calc(100% - 118px - 16px);margin:0 16px 0 118px;padding:0;min-height:44px;
  background:none;border:0;border-top:1px solid var(--line);
  color:var(--gold);font-size:14px;text-align:left;
}
.more .more-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.more.has .more-label{color:var(--ink-soft)}
.more .ic{width:16px;height:16px}
.more-chev{transition:transform .18s}
.ci-group.open .more-chev{transform:rotate(90deg)}
.detail{position:relative;border-top:1px solid var(--line);padding:16px;background:var(--card)}
#detail-morning .chip.on{background:var(--gold);border-color:var(--gold);color:#fff}
#detail-evening .chip.on{background:var(--moon);border-color:var(--moon);color:#fff}
.detail-status{font-size:12.5px;color:var(--ink-dim);min-height:18px;margin-top:10px;text-align:right}

.ringzone{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:210px;padding:20px 0}
/* Narrow phones: the text starts a little further left, so the card
   titles stay on one line. */
@media (max-width:380px){
  .ci{width:calc(100% - 96px);margin-left:96px;padding-right:12px}
  .more{width:calc(100% - 96px - 12px);margin:0 12px 0 96px}
  .ci .lab b{font-size:19.5px}
  .ci .dot{width:30px;height:30px}
}
/* Short screens (small phones, or Safari with its bars showing): a little
   tighter, so Meditate still fits above the bottom bar. */
@media (max-height:720px){
  .greet{margin:6px 0 16px;font-size:26px}
  .ci-group{margin-bottom:12px}
  .ringzone{min-height:170px;padding:12px 0}
  .ringbtn{width:140px;height:140px}
  .ringbtn .ic.eye{width:46px;height:46px}
}
.ringwrap{display:flex;justify-content:center}
.ringbtn{
  width:164px;height:164px;border-radius:50%;border:none;
  background:radial-gradient(circle at 50% 35%,var(--ring-1),var(--ring-2));color:var(--ring-fg);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  box-shadow:0 0 0 7px rgba(var(--ring-glow),.24),0 0 26px 6px rgba(var(--ring-glow),.42);
  animation:ringpulse 2.6s ease-in-out infinite;
}
.ringbtn .ic{width:42px;height:42px}
.ringbtn .ic.eye{width:52px;height:52px}
.ringbtn .t{font-weight:600;font-size:13.5px;letter-spacing:.2em;text-transform:uppercase;margin-top:9px}
@keyframes ringpulse{
  0%,100%{box-shadow:0 0 0 7px rgba(var(--ring-glow),.24),0 0 26px 6px rgba(var(--ring-glow),.42)}
  50%{box-shadow:0 0 0 13px rgba(var(--ring-glow),.13),0 0 40px 12px rgba(var(--ring-glow),.55)}
}
@media (prefers-reduced-motion:reduce){.ringbtn{animation:none}}

.yday{
  padding-top:14px;border-top:1px solid var(--line);
  display:flex;flex-direction:column;gap:6px;
  font-size:15px;color:var(--ink-soft);
}
.yrow{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:48px}
.yrow-l{font-size:14.5px;color:var(--ink-soft);white-space:nowrap}
.yrow + .undo-ask{margin-top:0}
.yday-l small{display:block;font-size:12.5px;color:var(--ink-dim)}
.yday .marks{color:var(--gold);display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.ypill{
  display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:0 13px;border-radius:999px;
  border:1px dashed var(--line);background:transparent;color:var(--ink-soft);font-size:14px;
}
.ypill.on{border-style:solid;cursor:default}
.ypill.am.on{background:var(--gold-soft);border-color:var(--gold);color:var(--gold)}
.ypill.pm.on{background:var(--moon-soft);border-color:var(--moon);color:var(--moon)}
.ypill:not(.on):disabled{opacity:.5}

/* ---------- Group ---------- */
.counts{display:flex;gap:11px;margin-bottom:6px}
.cbox{flex:1;border:1px solid var(--line);border-radius:16px;padding:16px 12px;text-align:center;background:var(--card)}
.cbox .l{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-dim);margin-bottom:8px}
.cbox .v{font-family:var(--display);font-size:40px;line-height:1;font-variant-numeric:tabular-nums}
.cbox.am .v{color:var(--gold)} .cbox.pm .v{color:var(--moon)}
.cbox .o{font-size:13px;color:var(--ink-soft);margin-top:4px}
.bar{height:3px;background:var(--line);border-radius:3px;margin-top:12px;position:relative;overflow:hidden}
.bar i{position:absolute;left:0;top:0;bottom:0;display:block;border-radius:3px;width:0;transition:width .5s}
.cbox.am .bar i{background:var(--gold)} .cbox.pm .bar i{background:var(--moon)}

/* Who has sat today: a circle per person, first name underneath. */
.g42{display:grid;grid-template-columns:repeat(5,1fr);gap:14px 6px}
.av{display:flex;flex-direction:column;align-items:center;gap:6px;background:none;border:0;padding:0;min-width:0;color:var(--ink)}
.av-c{
  position:relative;width:48px;height:48px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-size:15px;font-weight:600;letter-spacing:.02em;
  background:hsl(var(--h) 38% 90%);color:hsl(var(--h) 32% 34%);
}
:root[data-theme="dark"] .av-c{background:hsl(var(--h) 22% 22%);color:hsl(var(--h) 40% 78%)}
/* A linked member's Google photo, over the initials underneath — which
   stay as both the loading state and the permanent fallback if the photo
   never loads (offline, a dead link, a slow first load). */
.av-photo{position:absolute;inset:0;border-radius:50%;width:100%;height:100%;
  object-fit:cover;opacity:0;transition:opacity .2s}
.av-photo.loaded{opacity:1}
.av.sat .av-c{box-shadow:0 0 0 2.5px var(--paper),0 0 0 4.5px var(--gold)}
.av-b{position:absolute;bottom:-4px;width:19px;height:19px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid var(--paper)}
.av-b .ic{width:11px;height:11px;stroke-width:2.4}
.av-b.am{right:-5px;background:var(--gold);color:#fff}
.av-b.pm{left:-5px;background:var(--moon);color:#fff}
.av-c .av-b.am:only-of-type{right:-5px}
.av-n{font-size:12px;line-height:1.2;color:var(--ink-soft);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.av.sat .av-n{color:var(--ink)}

/* v26.18: the member's own avatar — Today's header (button, opens
   profile) and the profile screen's own topbar (plain, already there).
   Wraps a `.av-c` sized to fill it; see ui.js#paintOwnAvatar. */
.hdr-av{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--card);
  padding:0;overflow:visible;flex:none;display:inline-flex}
.hdr-av .av-c{overflow:hidden;border-radius:50%}
.hdr-av .av-c{width:100%;height:100%;font-size:14px}
.hdr-av.lg{width:56px;height:56px}
.hdr-av.lg .av-c{font-size:17px}

.pt{
  aspect-ratio:1;border-radius:10px;border:1px solid var(--line);background:var(--card);
  display:flex;align-items:center;justify-content:center;min-height:44px;padding:0;
  font-family:var(--display);font-size:14px;font-weight:600;color:var(--ink-dim);
}
.pt.both{background:var(--gold);border-color:var(--gold);color:#fff}
.pt.am{background:var(--gold-soft);border-color:var(--gold-soft);color:var(--gold)}
.pt.pm{background:var(--moon-soft);border-color:var(--moon-soft);color:var(--moon)}

.gstats{display:flex;gap:11px;margin-top:20px}
.gstat{flex:1;border:1px solid var(--line);border-radius:16px;padding:14px;background:var(--card)}
.gstat .v{font-family:var(--display);font-size:34px;line-height:1;color:var(--gold);font-variant-numeric:tabular-nums}
.gstat .v small{font-size:.55em;color:var(--ink-soft);font-family:var(--body)}
.gstat .l{font-size:13px;color:var(--ink-soft);margin-top:6px;line-height:1.35}

.heat{display:grid;grid-template-columns:repeat(10,1fr);gap:5px}
.hc{aspect-ratio:1;border-radius:4px;background:var(--line);opacity:.6}
.hc.l1{background:var(--moon-soft);opacity:1}
.hc.l2{background:var(--gold-mid);opacity:1}
.hc.l3{background:var(--gold);opacity:1}
.legend{display:flex;align-items:center;gap:5px;justify-content:flex-end;margin-top:10px;font-size:12px;color:var(--ink-dim)}
.legend .hc{width:12px;height:12px;aspect-ratio:auto}

.streakring{position:relative;width:200px;height:200px;margin:10px auto 0}
.streakring svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}
.ring-track{fill:none;stroke:var(--line);stroke-width:2.5}
.ring-fill{fill:none;stroke:var(--gold);stroke-width:2.5;stroke-linecap:round;transition:stroke-dasharray .6s}
.streakring .inner{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.streakring .num{font-family:var(--display);font-size:68px;line-height:1;color:var(--gold);font-variant-numeric:tabular-nums}
.streakring .cap{font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-soft);margin-top:6px}
.nextmark{text-align:center;font-size:15px;color:var(--ink-soft);margin:14px 0 0}

/* ---------- Profile sheet ---------- */
.sheet-wrap{position:fixed;inset:0;z-index:40;background:rgba(10,8,4,.42);display:flex;align-items:flex-end;justify-content:center}
.sheet{
  width:100%;max-width:480px;background:var(--paper);border-radius:22px 22px 0 0;
  padding:10px max(18px,env(safe-area-inset-right,0px)) calc(24px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));
  transform:translateY(100%);transition:transform .18s ease-out;max-height:88vh;overflow:auto;
}
.sheet-wrap.open .sheet{transform:none}
.sheet-grab{width:40px;height:4px;border-radius:4px;background:var(--line);margin:4px auto 6px}

/* ---------- Install-steps guide (v26.22) ---------- */
.install-steps{margin:0 0 18px;padding-left:22px;color:var(--ink-soft);font-size:15px;line-height:1.5}
.install-steps li{margin-bottom:10px}
.install-steps li:last-child{margin-bottom:0}
.install-steps b{color:var(--ink);font-weight:600}
.install-steps svg{vertical-align:-3px;margin:0 2px;color:var(--gold)}

/* ---------- Chants ---------- */
.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:999px;background:var(--paper-2);padding:0 14px;margin-bottom:12px;color:var(--ink-dim)}
.search input{border:none;background:transparent;padding:10px 0;min-height:46px}
.search input:focus{outline:none}
#chant-chips{margin-bottom:8px}
.chant-thumb{background:linear-gradient(145deg,#2A3240,#3A4556);color:#F0C977}
.row-thumb{width:64px;height:36px;border-radius:8px;object-fit:cover;flex:none;background:linear-gradient(145deg,#2A3240,#3A4556)}
.chant-note{margin:6px 0 10px}

.player{
  position:fixed;inset:0;z-index:30;overflow-y:auto;
  padding:var(--safe-top) max(18px,env(safe-area-inset-right,0px)) calc(28px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));
}
.player > *{max-width:480px;margin-left:auto;margin-right:auto}
.yt-frame{position:relative;width:100%;aspect-ratio:16/9;border-radius:14px;overflow:hidden;background:#000}
.yt-frame iframe,.yt-frame #yt-host{position:absolute;inset:0;width:100%;height:100%;border:0}
.cp-title{font-family:var(--display);font-size:25px;line-height:1.2;text-align:center;margin-top:18px}
.cp-sub{font-size:14px;color:var(--ink-soft);text-align:center;margin-top:4px;min-height:20px}
#cp-seek{display:block;width:100%;margin:18px auto 2px;accent-color:var(--gold);height:28px}
.cp-times{display:flex;justify-content:space-between;font-size:12.5px;color:var(--ink-dim);font-variant-numeric:tabular-nums}
.cp-ctrls{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:10px}
.playbtn{width:72px;height:72px;border-radius:50%;border:none;background:var(--gold);color:#17120A;display:flex;align-items:center;justify-content:center}
.playbtn .ic{width:32px;height:32px}
.lyrtoggle{border-top:1px solid var(--line);margin-top:20px;padding-top:4px}
.lyrtoggle summary{
  display:flex;align-items:center;justify-content:space-between;min-height:48px;cursor:pointer;list-style:none;
  font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-soft);
}
.lyrtoggle summary::-webkit-details-marker{display:none}
.lyrtoggle summary svg{transition:transform .18s}
.lyrtoggle[open] summary svg{transform:rotate(180deg)}
.lyrics{white-space:pre-line;font-family:var(--display);font-size:19px;line-height:1.75;color:var(--ink-soft);padding-bottom:12px}

/* ---------- Meditation lead-in (v26.23): prayer, then chant, before the
   timer. Prayer deliberately reuses the Spiritual Diary's own .q-eyebrow/
   .q-text/.q-attr classes (see "Daily thought" above) rather than
   inventing new ones, so the two screens read as the same voice. The
   chant screen reuses .yt-frame/.cp-title/.cp-sub/.playbtn/.lyrtoggle/
   .lyrics from the real chant player above, just without .player's fixed
   overlay positioning, since #screen-timer is already the full screen. */
#timer-leadin-prayer,.li-screen{
  display:flex;flex-direction:column;min-height:calc(100vh - var(--safe-top) - var(--safe-bot));
  min-height:calc(100svh - var(--safe-top) - var(--safe-bot));
}
.li-chrome{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;margin-bottom:6px}
.li-dots{display:flex;align-items:center;justify-content:center;gap:7px}
.li-dot{width:6px;height:6px;border-radius:50%;background:var(--line)}
.li-dot.on{background:var(--gold);width:15px;border-radius:3px}
.li-prayer-mid{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:0;padding:0 8px}
.li-prayer-mid .q-eyebrow{margin-bottom:0}
#li-prayer-text{margin-top:22px;max-width:320px}
#li-prayer-attr{margin-top:26px}
.li-chant-eyebrow{text-align:center;margin:2px 0 14px}
.li-continue{margin-top:28px}
.cp-row{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px}

/* ---------- Timer ---------- */
.screen#screen-timer.on{display:flex;flex-direction:column}
#preset-chips{margin:0 0 16px}
.seg{
  background:var(--paper-2);border:1px solid var(--line);border-radius:12px;
  padding:6px 8px 6px 15px;display:flex;justify-content:space-between;align-items:center;gap:10px;
  margin-bottom:8px;font-size:16px;min-height:52px;
}
.seg.quiet .nm{color:var(--ink-soft)}
.seg .du{background:none;border:none;color:var(--ink-soft);font-variant-numeric:tabular-nums;min-height:44px;min-width:64px;padding:0 8px;text-align:right;border-radius:8px;font-size:16px}
.seg .du:hover{color:var(--gold)}
.du-input{width:84px!important;min-height:40px!important;padding:6px 10px!important;text-align:right}
.seg .tag,.segctl .tag{
  font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--gold);
  border:1px solid var(--gold);border-radius:999px;padding:3px 10px;margin-right:8px;
}
.timer-total{text-align:center;font-size:14px;color:var(--ink-soft);margin:14px 0 6px;font-variant-numeric:tabular-nums}
/* Start: one wide, softly rounded champagne button (Timer and presets). */
.startbtn{
  display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:56px;border-radius:28px;
  margin:28px 0 0;border:none;background:var(--gold);color:#17120A;
  font-family:var(--body);font-size:18px;font-weight:700;letter-spacing:.02em;
  box-shadow:0 6px 20px rgba(var(--gold-rgb),.18);
}
.startbtn .play{width:17px;height:17px}
.startbtn:disabled{opacity:.4}

#timer-run{display:flex;flex-direction:column;flex:1;justify-content:center;
  min-height:calc(100vh - var(--safe-top) - var(--safe-bot));
  min-height:calc(100svh - var(--safe-top) - var(--safe-bot))}
.run-seg{text-align:center;font-size:12.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--gold)}
.run-seg.muted,.run-clock.muted{color:var(--ink-soft)}
.run-clock{text-align:center;font-family:var(--display);font-size:80px;line-height:1;font-variant-numeric:tabular-nums;margin-top:18px}
.run-sub{text-align:center;font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-dim);margin-top:14px}
.run-bar{height:3px;background:var(--line);border-radius:3px;margin:32px 0 10px;position:relative;overflow:hidden}
.run-bar i{position:absolute;left:0;top:0;bottom:0;width:0;background:var(--gold);border-radius:3px;display:block;transition:width .25s linear}
.run-total{text-align:center;font-size:13.5px;color:var(--ink-soft);font-variant-numeric:tabular-nums}
#run-checklist{margin-top:24px}
.ctrlrow{display:flex;gap:12px;margin-top:28px}
#run-controls{justify-content:center;margin-top:52px}
/* Scoped to the run screen's own pause control — 68px is intentional
   there (a bigger target mid-sitting), but must never widen the shared
   .iconbtn base rule (44x44, styles.css ~line 126) used everywhere else,
   Journal/Prayers/Activity/Chants' back buttons included. */
#run-controls .iconbtn{width:68px;height:68px;border-radius:50%;background:none;border:1px solid var(--line);
  color:var(--ink);display:flex;align-items:center;justify-content:center;flex:none}
#run-controls .iconbtn .ic{width:26px;height:26px}
#run-controls .iconbtn:active{background:var(--card)}
.ctrlrow .btn{flex:1}

.exrow{
  display:flex;align-items:center;gap:12px;width:100%;text-align:left;
  padding:18px 16px;border:1px solid var(--line);border-radius:12px;background:var(--paper-2);font-size:16px;
}
.exrow .cb{width:26px;height:26px;border-radius:7px;border:1.5px solid var(--gold-mid);flex:none;display:flex;align-items:center;justify-content:center;color:var(--paper)}
.exrow .cb .ic{opacity:0}
.exrow.on .cb{background:var(--gold);border-color:var(--gold)}
.exrow.on .cb .ic{opacity:1}
.exrow.on .nm{color:var(--ink-soft);text-decoration:line-through}

#timer-done{display:flex;flex-direction:column;justify-content:center;flex:1;text-align:center;min-height:calc(100vh - 120px)}
.done-title{font-family:var(--display);font-size:32px}
.done-sub{font-size:15px;color:var(--ink-soft);margin:6px 0 24px;font-variant-numeric:tabular-nums}
.done-card{text-align:left;margin-bottom:16px}
.done-card .flabel{margin:4px 0 10px}

/* ---------- More & book ---------- */
.more-hero{margin:0 0 14px;border-radius:16px;overflow:hidden;background:var(--line)}
.more-hero img{display:block;width:100%;max-height:260px;object-fit:cover}
.linkrow .e{color:var(--ink-dim)}
.disclaimer{text-align:center;font-size:12.5px;color:var(--ink-dim);line-height:1.6;margin:28px 0 8px}
.book{text-align:center;max-width:360px;margin:0 auto}
.book-cover{width:170px;max-width:100%;border-radius:10px;box-shadow:0 12px 30px rgba(30,24,10,.22);margin:6px auto 20px;display:block}
.slot{
  width:160px;height:220px;margin:6px auto 20px;border:1px dashed var(--gold);border-radius:12px;
  background:var(--gold-soft);color:var(--gold);font-size:12px;letter-spacing:.06em;text-transform:uppercase;
  display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.6;padding:12px;
}
.book-title{font-family:var(--display);font-size:26px;margin-bottom:8px}
.book .btn{margin-top:8px}

/* ---------- Share card ---------- */
.share-wrap{
  position:fixed;inset:0;z-index:45;overflow-y:auto;display:flex;flex-direction:column;
  padding:var(--safe-top) max(18px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));
}
.share-wrap > *{width:100%;max-width:420px;margin-left:auto;margin-right:auto}
.share-stage{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:300px;margin-bottom:16px}
#share-img{width:100%;max-width:360px;aspect-ratio:1080/1350;border-radius:14px;box-shadow:0 16px 40px rgba(0,0,0,.5);object-fit:contain}
#share-img:not([src]){display:none}

/* ---------- Admin ---------- */
.screen.admin .adm{color:var(--moon)}

.adm-sec{margin-bottom:28px}
.adm-sec > .card + .card{margin-top:10px}
.adm-sec > input[type=search]{margin:12px 0 4px}
.mrow{border-bottom:1px solid var(--line)}
.mrow:last-child{border-bottom:none}
.mrow .row{border-bottom:none}
.mhead{background:none;border:none;padding:0;text-align:left;min-height:44px;display:flex;flex-direction:column;justify-content:center}
.medit{padding:4px 0 16px}
.invite-out{margin-top:12px}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13.5px;word-break:break-all;background:var(--paper);padding:10px;border-radius:8px}
.msg{white-space:pre-line;font-size:15px;line-height:1.7;margin:0 0 14px}
.segedit{border:1px solid var(--line);border-radius:12px;padding:10px;margin-bottom:8px;background:var(--paper)}
.seghead{display:flex;align-items:center;gap:2px;margin-bottom:8px}
.seghead .segname{flex:1;min-width:0}
.seghead .iconbtn{width:36px;height:40px;flex:none}
.segctl{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.segctl .segmins{width:80px;min-height:44px}
.segctl .pill{flex:none;padding:8px 12px}
.linkedit{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.linkedit .btnrow{margin-top:0}
.imgslot{padding:12px 0;border-bottom:1px solid var(--line)}
.imgslot:last-child{border-bottom:none}
.imgslot .m b{display:block;font-weight:600}
.imgslot .m span{font-size:13.5px;color:var(--ink-soft)}
.imgslot input{margin-top:10px}
.imgprev{display:block;max-width:140px;max-height:140px;border-radius:10px;margin-top:10px;object-fit:cover}

/* ---------- Your practice: four stats, calendar, charts, milestones ---------- */
.gstats.g4{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.gstats.g4 .gstat .v{font-size:30px}
.calcard{margin-top:18px;padding:16px 10px 12px}
.calcard.plain{border:0;padding:4px 0 0;background:none}
.cal-head{display:flex;align-items:center;justify-content:space-between;gap:6px}
.cal-title{font-family:var(--display);font-size:24px;line-height:1.2;text-align:center;flex:1}
.cal-sub{text-align:center;font-size:14px;color:var(--ink-soft);margin:2px 0 12px}
.cal-dow,.cal-grid{display:grid;grid-template-columns:repeat(7,1fr)}
.cal-dow span{text-align:center;font-size:12px;color:var(--ink-dim);padding-bottom:6px}
.cd{position:relative;height:44px;display:flex;align-items:center;justify-content:center}
.cd i{position:relative;z-index:1;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  font-style:normal;font-size:13.5px;font-variant-numeric:tabular-nums;color:var(--ink-soft);background:color-mix(in srgb,var(--line) 70%,transparent)}
.cd.pad i{display:none}
.cd.future i{opacity:.45}
.cal-grid.run .cd.on i{background:var(--gold);color:#fff;font-weight:600}
.cal-grid.run .cd.jl::before,.cal-grid.run .cd.jr::after{content:"";position:absolute;top:4px;bottom:4px;background:var(--gold)}
.cal-grid.run .cd.jl::before{left:0;right:50%}
.cal-grid.run .cd.jr::after{left:50%;right:0}
.cal-grid:not(.run) .cd.l1 i{background:var(--moon-soft);color:var(--ink)}
.cal-grid:not(.run) .cd.l2 i{background:var(--gold-mid);color:var(--ink)}
.cal-grid:not(.run) .cd.l3 i{background:var(--gold);color:#fff;font-weight:600}
.cd.today i{box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--gold)}
.cd i .ic{width:17px;height:17px;color:#FFE7A8}
#me-charts,#me-practices,#me-milestones{margin-top:14px}
.chart-h{display:flex;flex-direction:column;gap:2px;margin:14px 0 10px}
.chart-h b{font-family:var(--display);font-size:22px;font-weight:500;line-height:1.2}
.chart-h span{font-size:13.5px;color:var(--ink-soft)}
.bars{display:flex;align-items:flex-end;gap:5px;height:166px;padding-top:16px;box-sizing:border-box;position:relative;border-bottom:1px solid var(--line);margin-bottom:36px}
.bcol{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;justify-content:flex-end;position:relative}
.bstack{display:flex;flex-direction:column-reverse;border-radius:5px 5px 2px 2px;overflow:hidden;min-height:0}
.bstack i{display:block;min-height:3px}
.bstack i.am{background:var(--gold)}
.bstack i.pm{background:var(--moon)}
.bstack i.mn{background:var(--teal)}
.blab{position:absolute;left:50%;top:calc(100% + 5px);transform:translateX(-50%);font-size:11px;color:var(--ink-dim);white-space:nowrap;
  display:flex;flex-direction:column;align-items:center;line-height:1.25}
.blab2{font-size:10.5px;color:var(--ink-soft);font-weight:600}
.bval{font-size:11px;color:var(--ink-soft);text-align:center;margin-bottom:3px;font-variant-numeric:tabular-nums;white-space:nowrap}
.bcol.cur .blab{color:var(--ink)}
.legend-note{flex-basis:100%;font-size:12.5px;color:var(--ink-dim)}
.legend.left{justify-content:flex-start;margin-top:8px;flex-wrap:wrap}
.hc.pmc{background:var(--moon);opacity:1}
.prow{display:grid;grid-template-columns:108px 1fr 40px;align-items:center;gap:10px;padding:6px 0;font-size:15px}
.pbar{height:10px;border-radius:6px;background:var(--line);overflow:hidden}
.pbar i{display:block;height:100%;background:var(--gold);border-radius:6px}
.pv{text-align:right;color:var(--ink-soft);font-variant-numeric:tabular-nums}
.ms-stars{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:6px;color:var(--gold);margin:6px auto 0;background:none;border:0;padding:6px 10px;border-radius:12px;min-height:44px}
.ms-i{flex:none}
.ms-i.t0{width:20px;height:20px}
.ms-i.t1{width:24px;height:24px}
.ms-i.t2{width:27px;height:27px}
.ms-i.t3{width:27px;height:27px}
.ms-i.dim{opacity:.3}
.ms-gap{width:6px}
.ms-tierkey{display:flex;justify-content:center;gap:14px;font-size:12.5px;color:var(--ink-soft);margin:2px 0 4px}
.ms-tierkey span{display:inline-flex;align-items:center;gap:5px;color:var(--ink-soft)}
.ms-tierkey .ms-i{width:17px;height:17px;color:var(--gold)}
.ms-title{font-family:var(--display);font-size:26px;text-align:center;margin-top:8px}
.ms-key{display:grid;grid-template-columns:1fr;gap:2px;margin:12px 0 14px;padding:12px 14px;border-radius:12px;background:var(--paper);font-size:13.5px;line-height:1.4}
.ms-key dt{font-weight:600;color:var(--ink);white-space:nowrap}
.ms-key dd{margin:0 0 8px;color:var(--ink-soft)}
.ms-key dd:last-child{margin-bottom:0}

.ms-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line);font-size:15.5px}
.ms-row .ic{color:var(--gold)}
.ms-row span:nth-child(2){flex:1}
.ms-d{color:var(--ink-dim);font-size:13px}

/* ---------- Meditate: Timer / Presets tabs ---------- */
.tm-top{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;margin:0 0 22px;border-bottom:1px solid var(--line)}
.tm-tabs{display:flex;justify-content:center;gap:28px}
.tm-tab{background:none;border:none;color:var(--ink-dim);font-family:var(--display);font-size:21px;padding:12px 2px 10px;min-height:48px;position:relative;-webkit-tap-highlight-color:transparent}
.tm-tab.on{color:var(--ink)}
.tm-tab.on::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:var(--gold)}
.tm-top .themebtn{margin-bottom:4px}
/* Meditate palette: deep charcoal, champagne, warm ivory. */
#screen-timer{
  --paper:#0E1017; --paper-2:#191C25; --card:#191C25; --line:#262A35;
  --ink:#F3EFE7; --ink-soft:#969187; --ink-dim:#5F5B54;
  --gold:#D5A852; --gold-soft:#2C2416; --gold-mid:#5E4A26; --gold-rgb:213,168,82; --champ:#D7B77B;
}
.tm-dur{margin:8px 0 0}
.tm-dial{display:flex;align-items:center;justify-content:center;gap:14px}
.tm-ring{
  width:min(214px,54vw);aspect-ratio:1;flex:none;border-radius:50%;
  border:1.5px solid rgba(215,183,123,.75);
  box-shadow:0 0 22px rgba(215,183,123,.10),inset 0 0 22px rgba(215,183,123,.06);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.tm-cap{font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--ink-soft)}
.tm-unit{font-size:15px;color:var(--ink-soft)}
.tm-step{position:relative;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);background:none;color:var(--ink-soft);display:flex;align-items:center;justify-content:center;flex:none}
.tm-step::before{content:"";position:absolute;inset:-6px;border-radius:50%}
.tm-step:disabled{opacity:.35}
.tm-durval{background:none;border:none;color:var(--ink);padding:2px 8px;border-radius:12px;margin:6px 0 2px}
.tm-durval b{font-family:var(--display);font-weight:400;font-size:76px;line-height:1;font-variant-numeric:tabular-nums}
.tm-durinput{width:110px!important;font-size:44px!important;text-align:center;font-family:var(--display)!important;min-height:64px!important;margin:6px 0 2px}
.tm-quick{justify-content:center}
.tm-quick .chip{min-width:52px;justify-content:center}
.ivchips{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ivchip{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:4px 6px 4px 12px;border-radius:999px;border:1px solid var(--gold);color:var(--ink);background:none;font-size:14px;font-variant-numeric:tabular-nums}
.ivchip .ic{width:16px;height:16px;color:var(--ink-soft)}
.ivchip.past{opacity:.45;text-decoration:line-through}
.ivnone{font-size:14px;color:var(--ink-dim)}
.ivadd{display:inline-flex;align-items:center;gap:6px}
.ivadd input{width:84px!important;min-height:38px!important;padding:6px 10px!important;text-align:center}

/* Presets tab: tiles */
.ptiles{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.ptile{display:flex;flex-direction:column;align-items:flex-start;text-align:left;min-height:178px;padding:16px 14px 14px;border-radius:22px;border:1px solid var(--line);color:var(--ink);background:var(--card);font:inherit;-webkit-tap-highlight-color:transparent;transition:transform .12s ease,border-color .12s ease;min-width:0}
.ptile:active{transform:scale(.98);border-color:var(--gold-mid)}
.ptile.t-k{background:radial-gradient(120% 90% at 100% 0%,#3A2E16 0%,var(--card) 62%)}
.ptile .pt-e{margin-bottom:-2px}
.ptile.t-n{background:radial-gradient(120% 90% at 100% 0%,#1E2A3A 0%,var(--card) 62%)}
.ptile.t-s{background:radial-gradient(120% 90% at 100% 0%,#16302A 0%,var(--card) 62%)}
.ptile.t-y{background:radial-gradient(120% 90% at 100% 0%,#3A1E36 0%,var(--card) 62%)}
.pt-e{font-size:10px;letter-spacing:.13em;text-transform:uppercase;color:var(--moon,#8FA6C4)}
.ptile.t-k .pt-e{color:var(--gold)}
.ptile.t-y .pt-e{color:#D9A0CE}
.ptile{gap:10px;min-height:186px}
.pt-n{font-family:var(--display);font-weight:500;font-size:20.5px;line-height:1.15;overflow-wrap:anywhere}
.pt-chip{display:inline-flex;align-items:center;gap:7px;padding:5px 12px 5px 9px;border-radius:999px;background:rgba(213,168,82,.13);border:1px solid rgba(213,168,82,.28);font-size:14px;font-weight:500;font-variant-numeric:tabular-nums}
.pt-chip .ic{width:15px;height:15px;color:var(--champ,var(--gold))}
.pt-s{font-size:12px;color:var(--ink-soft);line-height:1.4;margin-top:auto;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Presets: one preset, opened */
.pd-head{display:flex;align-items:flex-start;gap:12px;margin:0 0 12px}
.pd-head .themebtn{flex:none;margin-top:2px}
.pd-t{min-width:0}
.pd-t h2{font-family:var(--display);font-weight:500;font-size:26px;line-height:1.15;margin:0}
.pd-t p{margin:3px 0 0;font-size:13px;color:var(--ink-soft)}
#segment-list .seg,#pe-segment-list .seg{gap:12px;background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:8px 2px;min-height:58px}
#segment-list .seg .nm,#pe-segment-list .seg .nm{flex:1;min-width:0}
#segment-list .seg .tag,#pe-segment-list .seg .tag{margin-right:0}
#pe-add-row{margin-top:14px}
#pe-add-row select{max-width:280px}
.pdot{width:8px;height:8px;border-radius:50%;background:var(--gold);flex:none}
.seg.quiet .pdot{background:var(--ink-dim)}
.seg.ck .pdot{background:var(--teal,#4FBFA0)}
.tpill{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:4px 12px 4px 14px;border-radius:999px;border:1px solid var(--gold-mid);background:var(--gold-soft);color:var(--ink);font:inherit;font-size:15px;font-variant-numeric:tabular-nums;flex:none}
.tpill .ic{width:13px;height:13px;opacity:.75}
.tpill.chg{border-color:var(--gold);color:var(--gold)}
.tpill.open{border-color:var(--gold);box-shadow:0 0 0 3px rgba(var(--gold-rgb),.15)}
.tped{display:flex;align-items:center;justify-content:center;gap:18px;margin:4px 0 8px 20px;padding:10px 12px;border:1px solid var(--gold-mid);border-radius:18px;background:var(--card)}
.tped b{min-width:76px;text-align:center;font-weight:500;font-size:17px;font-variant-numeric:tabular-nums}
.tm-step.sm{width:44px;height:44px}
#timer-reset{margin-top:10px}
#bell-pick{margin-top:16px}
.bellgrps{display:flex;flex-direction:column;gap:12px}
.bellgrp-l{display:block;font-size:12px;color:var(--ink-soft);margin:0 0 6px}

/* Timer tab: bell settings as fold-away rows */
/* Bell settings: one panel, rows divided, each folds open. */
#tm-bells,#bell-pick{gap:0;margin-top:40px;background:var(--card);border:1px solid var(--line);border-radius:18px;overflow:hidden}
#bell-pick{margin-top:16px}
details.tmrow{border-top:1px solid var(--line)}
details.tmrow:first-child{border-top:0}
summary.tmrow-h{list-style:none;display:flex;align-items:center;gap:14px;min-height:56px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:transparent}
summary.tmrow-h::-webkit-details-marker{display:none}
.tmrow-ic{width:21px;height:21px;color:var(--champ,var(--gold));flex:none}
.tmrow-l{flex:1;font-size:15.5px;color:var(--ink)}
.tmrow-v{font-size:14.5px;color:var(--ink-soft);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tmrow-chev{color:var(--ink-dim);flex:none;transition:transform .18s ease}
details.tmrow[open] .tmrow-chev{transform:rotate(180deg)}
.tmrow-b{padding:0 16px 16px 51px}
.tmrow-hint{font-size:12.5px;color:var(--ink-dim);margin:0 0 10px}
.tmrow-b .chips .chip{font-size:14px;min-height:38px;padding:6px 12px}

/* after the ending bell: "You completed" + extra time */
#timer-complete{display:flex;flex-direction:column;flex:1;text-align:center;justify-content:center;
  min-height:calc(100vh - var(--safe-top) - var(--safe-bot));
  min-height:calc(100svh - var(--safe-top) - var(--safe-bot))}
.cp-mid{display:flex;flex-direction:column;align-items:center}
#cp-continue{margin-top:52px}
.cp-label{font-size:16px;color:var(--ink-soft);letter-spacing:.02em}
.cp-time{font-family:var(--display);font-size:88px;line-height:1.05;font-variant-numeric:tabular-nums;margin:10px 0 12px}
.cp-add{display:inline-flex;align-items:center;gap:10px;background:none;border:none;color:var(--ink-soft);font-size:17px;font-variant-numeric:tabular-nums;min-height:48px;padding:4px 6px 4px 10px;border-radius:999px;-webkit-tap-highlight-color:transparent}
.cp-plus{width:34px;height:34px;border-radius:50%;background:var(--card);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;color:var(--ink)}
.cp-add:not(:disabled):active .cp-plus{background:var(--gold);color:#17120A}
.cp-add:disabled{opacity:1}
.cp-add.added{color:var(--gold)}
.cp-add.added .cp-plus{display:none}
.cp-note{font-size:13px;color:var(--ink-dim);margin-top:8px;max-width:30ch}
.cp-note:empty{margin-top:0}
#cp-discard{color:var(--ink-soft)}
#timer-complete .btn.block{margin-top:24px}

/* ---------- timer bells ---------- */
.bellpick{display:flex;flex-direction:column;gap:14px;margin:18px 0 6px}
.bellrow{border:1px solid var(--line);border-radius:16px;padding:12px 14px;background:var(--card)}
.bell-l{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.bell-l b{font-weight:600;font-size:15px}
.bell-l span{font-size:12.5px;color:var(--ink-soft)}
.bellrow .chips .chip{font-size:14px;min-height:38px;padding:6px 12px}

/* ---------- joining ---------- */
.join-hello{font-family:var(--display);font-size:26px;color:var(--gold);margin:6px 0 -4px}
.join .field{text-align:left}

/* ---------- admin: requests, folds, preset order ---------- */
.reqrow{display:flex;flex-direction:column;gap:8px;padding:12px 0;border-top:1px solid var(--line)}
.reqrow:first-child{border-top:0;padding-top:0}
.reqrow .m{display:flex;flex-direction:column}
.reqrow .m span{font-size:13px;color:var(--ink-soft)}
/* v26.21: the requester's Google photo, admin's own picker to attach a
   request to an existing member instead of creating a new one. */
.reqwho{display:flex;align-items:center;gap:10px}
.reqphoto{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:none}
.check.sm{font-size:14px;margin:0}
details.older{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}
details.older summary,details.fold>summary{cursor:pointer;color:var(--ink-soft);font-size:14.5px;padding:8px 0;list-style-position:inside}
details.fold{margin-top:14px;border:1px solid var(--line);border-radius:16px;padding:6px 14px 14px;background:var(--card)}
details.fold>summary{font-weight:600;color:var(--ink)}
details.fold[open]>summary{margin-bottom:8px}
.row.prerow{gap:2px}
.row.prerow .m{flex:1;min-width:0}
.row.prerow .iconbtn{width:36px;height:40px;flex:none}

/* ---------- admin: chant review ---------- */
.check.rv{min-height:0;align-items:flex-start;font-size:14px;line-height:1.4;margin:6px 0}
.check.rv input{margin-top:3px;flex:none}
.check.rv small{color:var(--ink-soft);font-size:13px}
.check.rv a{color:var(--gold);font-size:13px;white-space:nowrap}
#watch-list{margin-bottom:0}
#chant-lib-back{margin-bottom:6px}

/* ---------- admin: folding sections ---------- */
details.adm-sec{margin-bottom:10px;border:1px solid var(--line);border-radius:18px;background:var(--card);overflow:hidden}
details.adm-sec > summary.adm-h{list-style:none;display:flex;align-items:center;gap:10px;min-height:56px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:transparent}
details.adm-sec > summary.adm-h::-webkit-details-marker{display:none}
.adm-t{flex:1;min-width:0;font-weight:600;font-size:16.5px;color:var(--ink)}
.adm-badge{min-width:26px;height:24px;padding:0 8px;border-radius:999px;background:var(--gold-soft);color:var(--gold);font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums}
.adm-chev{color:var(--ink-dim);transition:transform .18s ease}
details.adm-sec[open] > summary .adm-chev{transform:rotate(180deg)}
.adm-body{padding:2px 14px 16px}
.adm-body > .card{box-shadow:none}
.adm-body > .card + .card{margin-top:10px}
.adm-body > input[type=search]{margin:4px 0 8px;width:100%}
.adm-chips{margin:2px 0 8px}
.adm-count{margin:0 0 8px}
.adm-all{font-size:14px;white-space:nowrap}

/* ---------- start-up skeleton ---------- */
body.booting .nav{display:none}
.boot-brand{display:flex;align-items:center;gap:10px;color:var(--gold);font-family:var(--display);font-size:22px;margin:6px 0 30px}
.boot-brand .ic{width:26px;height:26px}
.boot-brand span{color:var(--ink)}
.sk{background:var(--line);border-radius:14px;opacity:.6}
.sk-eyebrow{width:42%;height:12px;border-radius:6px;margin-bottom:16px}
.sk-title{width:68%;height:30px;border-radius:10px;margin-bottom:28px}
.sk-card{height:82px;margin-bottom:14px;border-radius:20px}
.sk-ring{width:150px;height:150px;border-radius:50%;margin:34px auto 0;opacity:.45}
@media (prefers-reduced-motion:no-preference){
  .sk{animation:sk-breathe 1.6s ease-in-out infinite}
  @keyframes sk-breathe{50%{opacity:.35}}
}
/* Today painted from the snapshot: quietly marked as not yet live. */
body.provisional .ci .state{opacity:.75}
.ypill.ghost{border-style:dashed;opacity:.5;min-width:64px;justify-content:center}

/* ---------- Save your streak: a full tappable card, like Dark mode's ---------- */
details.yday > summary.yday-h{list-style:none;display:flex;align-items:center;gap:12px;min-height:56px;cursor:pointer;-webkit-tap-highlight-color:transparent}
details.yday > summary.yday-h::-webkit-details-marker{display:none}
.yday-h .m{flex:1;min-width:0}
/* v26.21: title above description, two lines — .row's own b/span rule
   doesn't reach here since this summary isn't a .row. */
.yday-h .m b{display:block;font-size:16px;font-weight:600;color:var(--ink)}
.yday-h .m span{display:block;font-size:13.5px;color:var(--ink-soft);margin-top:2px}
.yday-chev{color:var(--ink-dim);flex:none}
details.yday[open] #backlog-rows{margin-top:14px}
details.yday[open] #poke-grid{margin-top:14px}
details.yday[open] #my-profile-body{margin-top:14px}

/* Member card (group.js openMemberCard): tapped from an avatar in The
   Group. Reuses .sheet/.sheet-wrap/.hdr-av/.av-c/.ms-stars. */
.mc-head{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.mc-line{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line);font-size:14.5px;color:var(--ink-soft)}
.mc-line:first-of-type{border-top:0}
.mc-line .ic{flex:none;color:var(--ink-dim)}
#mc-milestones{margin:8px 0}
details.yday{display:block;padding-top:0;border-top:0}
/* "Save your streak" now matches every other settings card/row exactly —
   the v26.21 golden-accent background/border it used to carry is
   removed, so it carries .card's own plain background, border and
   (inherited, same as any other row) ink-bright heading text; copy,
   action and icon are unchanged.
   "Nudge a fellow meditator" (#poke-fold) and "Your details"
   (#my-profile-fold) use the same details.yday.card shape, whose shared
   rule above zeroes only the TOP padding (padding-top:0) — .card's own
   padding:18px still applies to right/bottom/left, so the closed row
   sits flush at the top with a full 18px of air below it. Restoring
   padding-top here, on each of these three cards individually (not the
   shared details.yday rule, which stays as-is), balances top and bottom
   without touching anything else about any of them. */
#backlog{padding-top:18px}
#poke-fold{padding-top:18px;background:radial-gradient(120% 160% at 100% 0%,#514020 0%,#2C2921 48%,var(--card) 100%);border-color:#6B542A}
[data-theme="light"] #poke-fold{background:radial-gradient(120% 160% at 100% 0%,#F6DFA7 0%,#FAEFD7 48%,var(--card) 100%);border-color:#DAB975}
/* #my-profile-fold also gets a top margin, on top of the same
   padding-top fix the other two folds get above: the Activity card
   right before it has no heading of its own any more (that moved inside
   "Your details"'s own summary), so nothing was providing space between
   the two — they rendered flush against each other. Its position on the
   page is fixed and unique, so a plain margin-top on this one id (rather
   than a general .card + .card rule, which would also affect cards
   elsewhere that already get their own spacing from a preceding
   <h2 class="sec">) is all this one adjacency needs. */
#my-profile-fold{padding-top:18px;margin-top:16px}

/* ---------- After a sitting: the bloom (bloom.js) ----------
   Always dark, and sized to the visible screen so Continue is never
   below the fold. The eye zooms in, the run fills to today, and on a
   milestone day the star at the end catches light. */
#screen-bloom{
  --paper:#0E1017; --paper-2:#191C25; --card:#191C25; --line:#262A35;
  --ink:#F3EFE7; --ink-soft:#969187; --ink-dim:#5F5B54;
  --gold:#D5A852; --gold-soft:#2C2416; --gold-mid:#5E4A26; --gold-rgb:213,168,82; --champ:#D7B77B;
}
.screen#screen-bloom.on{display:flex;flex-direction:column;text-align:center;justify-content:center;
  min-height:calc(100vh - var(--safe-top) - var(--safe-bot));
  min-height:calc(100svh - var(--safe-top) - var(--safe-bot))}
.bl-mid{display:flex;flex-direction:column;align-items:center;width:100%}
.bl-stack{width:100%;margin-top:48px}

.bl-art{position:relative;width:172px;height:172px;display:flex;align-items:center;justify-content:center}
.bl-glow,.bl-halo{position:absolute;inset:0;border-radius:50%;pointer-events:none;
  background:radial-gradient(circle,rgba(var(--gold-rgb),.34) 0%,rgba(var(--gold-rgb),.12) 42%,transparent 68%)}
.bl-glow{opacity:.5;transform:scale(1.12)}
.bl-halo{opacity:0}
.bl-eye{width:142px;height:142px;position:relative;display:block}

.bl-num{font-family:var(--display);font-size:70px;line-height:1;font-weight:500;
  font-variant-numeric:tabular-nums;margin:20px 0 2px;color:var(--ink)}
.bl-cap{font-family:var(--display);font-size:22px;color:var(--ink);opacity:.92}

.bl-panel,.bl-coll{width:min(318px,88%);margin:28px auto 0}
.bl-panel.out{opacity:0;transform:translateY(-6px);transition:opacity .4s,transform .4s}
.bl-days{display:grid;margin-bottom:9px}
.bl-days span{font-size:12.5px;color:var(--ink-dim);font-weight:500}
.bl-days span.past{color:var(--ink-soft)}
.bl-days span.now{color:var(--gold)}
.bl-track{position:relative;height:13px;border-radius:999px;background:var(--line)}
.bl-fill{position:absolute;left:0;top:0;bottom:0;width:0;border-radius:999px;display:block;
  background:linear-gradient(90deg,rgba(var(--gold-rgb),.5),var(--gold));
  transition:width 1.05s cubic-bezier(.3,.8,.3,1)}
.bl-knob{position:absolute;top:50%;left:0;width:17px;height:17px;border-radius:50%;
  background:#FBF2E0;transform:translate(-50%,-50%) scale(0);opacity:0;
  box-shadow:0 0 0 4px rgba(var(--gold-rgb),.22),0 0 16px 4px rgba(var(--gold-rgb),.45);
  transition:left 1.05s cubic-bezier(.3,.8,.3,1),transform .4s,opacity .4s}
.bl-knob.show{transform:translate(-50%,-50%) scale(1);opacity:1}
.bl-ms{position:absolute;right:-3px;top:50%;transform:translate(50%,-50%);
  width:30px;height:30px;border-radius:50%;background:var(--card);border:1px solid var(--line);
  display:flex;align-items:center;justify-content:center;color:var(--ink-dim);
  transition:background .45s,color .45s,border-color .45s,transform .45s}
.bl-ms .ic{width:15px;height:15px}
.bl-ms.lit{background:var(--gold);border-color:var(--gold);color:#17120A;
  transform:translate(50%,-50%) scale(1.25)}
.bl-burst{position:absolute;right:-3px;top:50%;width:30px;height:30px;border-radius:50%;
  transform:translate(50%,-50%);border:2px solid var(--gold);opacity:0;pointer-events:none}
.bl-burst.go{animation:blRipple .9s ease-out forwards}
.bl-burst.b2.go{animation-delay:.16s}
.bl-line{margin:14px auto 0;font-size:14px;color:var(--ink-soft);line-height:1.55;max-width:31ch}
.bl-line b{color:var(--ink);font-weight:600}
.bl-coll{opacity:0;transform:translateY(8px);transition:opacity .45s ease-out,transform .45s ease-out}
.bl-coll.in{opacity:1;transform:none}
.bl-coll-k{font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-dim)}
.bl-coll .ms-stars{margin-top:10px;min-height:40px}
.bl-coll .bl-line b{color:var(--gold)}
.ms-i.fresh{animation:blLand .72s cubic-bezier(.22,.95,.3,1) both}

@keyframes blHalo{0%{opacity:0;transform:scale(.55)}38%{opacity:1}100%{opacity:0;transform:scale(1.65)}}
@keyframes blFlash{0%{opacity:0;transform:scale(.8)}30%{opacity:1}100%{opacity:0;transform:scale(1.55)}}
@keyframes blEye{0%{opacity:0;transform:scale(.52)}60%{opacity:1;transform:scale(1.05)}100%{opacity:1;transform:scale(1)}}
@keyframes blRing{from{stroke-dashoffset:42}to{stroke-dashoffset:0}}
@keyframes blStar{0%{opacity:0;transform:scale(.3)}70%{opacity:1;transform:scale(1.18)}100%{opacity:1;transform:scale(1)}}
@keyframes blRise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
@keyframes blUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes blRipple{0%{opacity:.9;transform:translate(50%,-50%) scale(1)}100%{opacity:0;transform:translate(50%,-50%) scale(3.4)}}
@keyframes blLand{0%{opacity:0;transform:translateY(-34px) scale(1.9)}
  65%{opacity:1;transform:translateY(2px) scale(.92)}100%{opacity:1;transform:none}}

#screen-bloom.play .bl-halo{animation:blHalo 1.5s ease-out .15s both}
#screen-bloom.play .bl-eyeg{transform-origin:12px 12px;animation:blEye .85s cubic-bezier(.22,.9,.3,1) both}
#screen-bloom.play .bl-ring{stroke-dasharray:42;animation:blRing 1s cubic-bezier(.4,0,.2,1) .1s both}
#screen-bloom.play .bl-star{transform-origin:12px 12px;animation:blStar .6s cubic-bezier(.22,.9,.3,1) .62s both}
#screen-bloom.play .bl-num{animation:blRise .6s cubic-bezier(.22,.9,.3,1) .9s both}
#screen-bloom.play .bl-cap{animation:blUp .5s ease-out 1.04s both}
#screen-bloom.play .bl-panel{animation:blUp .5s ease-out 1.2s both}
#screen-bloom.play .bl-stack{animation:blUp .5s ease-out 1.4s both}
#screen-bloom.flash .bl-halo{animation:blFlash .85s ease-out both}

@media (prefers-reduced-motion:reduce){
  #screen-bloom.play *{animation-duration:.01ms!important;animation-delay:0ms!important}
  .bl-fill,.bl-knob{transition-duration:.01ms!important}
}
@media (max-height:700px){
  .bl-art{width:148px;height:148px}
  .bl-eye{width:122px;height:122px}
  .bl-num{font-size:60px;margin-top:14px}
  .bl-panel,.bl-coll{margin-top:22px}
}

/* The Kriyaban question on the group-join form. */
.join-kb{justify-content:center;margin-top:4px}
.join-kbnote{margin:0 0 4px;text-align:center}

/* v26.21: "signed in as ___", shown on the join-request form once the
   single Google door has resolved a never-seen account's name/photo. */
.jr-who{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 18px}
.jr-email{color:var(--ink-soft);font-size:14px}

/* ---------- Your Practice, v26 ----------
   Four tiles, then the calendar, the milestones, and a period of its
   own: Days, Weeks, Months, All time. */
.tiles4{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 14px}
.tiles4 .tile{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:13px 14px}
.tiles4 .tile b{display:block;font-family:var(--display);font-size:25px;line-height:1.1;
  font-weight:500;font-variant-numeric:tabular-nums}
.tiles4 .tile span{display:block;font-size:12px;color:var(--ink-soft);margin-top:3px}

.ptabs{display:flex;gap:18px;border-bottom:1px solid var(--line);margin:18px 0 14px}
.ptab{background:none;border:none;padding:0 0 9px;font-family:var(--display);font-size:19px;
  font-weight:500;color:var(--ink-soft);border-bottom:2px solid transparent;margin-bottom:-1px}
.ptab.on{color:var(--ink);border-bottom-color:var(--gold)}

.pchart{width:100%;display:block;overflow:visible;touch-action:manipulation}
.pchart .pax{font-size:9.5px;fill:var(--ink-dim)}
.pchart .pgrid{stroke:var(--line);stroke-width:1}
.plegend{display:flex;gap:14px;justify-content:center;margin-top:10px;font-size:12px;color:var(--ink-soft)}
.plegend i{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:5px;vertical-align:-1px}
.plegend{flex-wrap:wrap}
.pnote{display:block;width:100%;font-size:11px;color:var(--ink-dim);text-align:center;margin-top:4px}
.pempty{font-size:13px;color:var(--ink-dim);text-align:center;padding:24px 10px;line-height:1.55}

.prow{display:grid;grid-template-columns:92px 1fr 28px;align-items:center;gap:10px;margin-bottom:9px;font-size:13.5px}
.ptrack{height:11px;border-radius:999px;background:var(--line);overflow:hidden}
.ptrack i{display:block;height:100%;border-radius:999px;background:var(--gold)}
.pn{text-align:right;color:var(--ink-soft);font-variant-numeric:tabular-nums;font-size:13px}

.trow{display:flex;justify-content:space-between;gap:12px;padding:7px 0;font-size:13.5px}
.trow span{color:var(--ink-soft)}
.trow b{font-weight:600;font-variant-numeric:tabular-nums}
.tgrp{font-size:11.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--ink-dim);margin:14px 0 4px}
.tgrp:first-child{margin-top:4px}

.bartip{position:fixed;z-index:60;background:var(--paper-2);border:1px solid var(--line);
  border-radius:10px;padding:7px 10px;font-size:12.5px;color:var(--ink);
  pointer-events:none;opacity:0;transition:opacity .15s;white-space:nowrap;
  box-shadow:0 6px 20px rgba(0,0,0,.45)}
.bartip.on{opacity:1}

/* the milestone rule, only inside See all */
.ms-fold{display:none;margin:14px 0 2px;padding:16px 15px;background:var(--paper);
  border:1px solid var(--line);border-radius:14px;text-align:center}
.ms-open .ms-fold{display:block}
.ms-fold h4{font-family:var(--display);font-size:20px;font-weight:500;margin:0 0 10px}
.ms-rule{margin:0 0 14px;font-size:13.5px;color:var(--ink-soft);line-height:1.55}
.ms-tiers{display:flex;justify-content:center;gap:17px;color:var(--gold);
  font-size:12.5px;font-variant-numeric:tabular-nums}
.ms-tiers span{display:flex;align-items:center;gap:5px}
.ms-tiers .ic{width:15px;height:15px}

/* ---------- Library, Journal, Prayers (v26) ---------- */
.libgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 22px}
.libtile{background:var(--card);border:1px solid var(--line);border-radius:16px;
  padding:16px 8px 13px;color:var(--ink);display:flex;flex-direction:column;
  align-items:center;gap:10px;font-family:var(--sans)}
.libtile .ic{width:26px;height:26px;color:var(--gold)}
.libtile span{font-size:12.5px}
.libtile:active{background:var(--paper-2)}

.librow-wrap{margin-bottom:20px}
.rowh{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 4px}
.rowh b{font-family:var(--display);font-size:19px;font-weight:500}
.rowsub{margin:0 0 10px;font-size:13px}
.rowsee{background:none;border:none;color:var(--gold);font-size:13.5px;font-weight:600;
  padding:4px 0 4px 10px;flex:none}
.scroller{display:flex;gap:11px;overflow-x:auto;margin:0 -22px;padding:0 22px 4px;align-items:flex-start;
  scrollbar-width:none}
.scroller::-webkit-scrollbar{display:none}
.vid{flex:none;width:168px;background:none;border:none;padding:0;text-align:left;color:var(--ink)}
.vid.sq{width:112px}
.vthumb,.sqthumb{border-radius:11px;overflow:hidden;background:var(--paper-2);
  border:1px solid var(--line);display:block}
.vthumb{width:168px;height:94px}
.sqthumb{width:112px;height:112px}
.vthumb img,.sqthumb img{width:100%;height:100%;object-fit:cover;display:block}
.vid p{margin:7px 0 0;font-size:12.5px;line-height:1.35}
.vid small{color:var(--ink-dim);font-size:11px}

.jquote{margin:0 0 22px;padding-left:13px;border-left:2px solid var(--gold-mid);
  font-family:var(--display);font-size:16px;font-style:italic;line-height:1.6;color:var(--ink-soft)}
.jquote cite{display:block;font-style:normal;font-family:var(--sans);font-size:12px;
  color:var(--ink-dim);margin-top:8px}
.jrow{display:grid;grid-template-columns:44px 1fr;gap:14px;margin-bottom:20px;
  background:none;border:none;padding:0;text-align:left;color:var(--ink);width:100%}
.jdate span{display:block;font-size:10.5px;letter-spacing:.1em;color:var(--ink-dim)}
.jdate b{font-family:var(--display);font-size:23px;font-weight:500}
.jbody{border-left:1px solid var(--line);padding-left:14px}
.jtime{font-size:11.5px;color:var(--ink-dim)}
.jtext{margin:5px 0 0;font-size:14.5px;line-height:1.55;white-space:pre-wrap}
.jyear{font-family:var(--display);font-size:20px;margin:4px 0 16px}

/* ---------- Activity (v26.14): grouped by exact date, not month — a
   day with several sittings gets one heading and several slim rows,
   never a repeated date box per row (that's the Journal's `.jrow`
   layout above, built for one entry a day; Activity needs the
   opposite). Each row is just "what + when" on the left, duration on
   the right — nothing invented when a time or duration was never
   recorded. */
.act-day{font-family:var(--display);font-size:16px;font-weight:500;color:var(--ink);
  margin:22px 0 2px}
.act-day:first-child{margin-top:4px}
.act-row{display:flex;align-items:baseline;justify-content:space-between;gap:14px;
  width:100%;padding:10px 0;border:none;border-bottom:1px solid var(--line);
  background:none;text-align:left;color:var(--ink);font:inherit}
.act-row:last-of-type{border-bottom:none}
/* A check-in with no linked sitting — nothing to open, so it's a plain
   row, not a button; slightly dimmed to read as "on record" vs "tap
   for details" like the rows around it. */
.act-row-bare{opacity:.78;cursor:default}
.act-what{flex:1;min-width:0;font-size:14.5px;line-height:1.4}
.act-dur{flex:none;font-size:13px;color:var(--ink-soft);font-variant-numeric:tabular-nums;white-space:nowrap}

.jsheet{position:fixed;inset:0;z-index:50;background:rgba(5,7,11,.72);
  display:flex;align-items:flex-end}
.jsheet[hidden]{display:none}
.jsheet-in{background:var(--paper-2);border-top:1px solid var(--line);
  border-radius:20px 20px 0 0;padding:18px 20px calc(18px + env(safe-area-inset-bottom,0px));width:100%}
.jsheet-in textarea{width:100%;background:var(--paper);color:var(--ink);
  border:1px solid var(--line);border-radius:14px;padding:13px;font:400 15px/1.55 var(--sans);
  resize:none;margin-bottom:12px}
.linkbtn.danger{color:var(--danger)}

.pray{border-radius:16px;padding:16px 17px;margin-bottom:12px;border:1px solid transparent}
.pray p{margin:0;font-family:var(--display);font-size:15.5px;line-height:1.68}
.pray.a{background:var(--gold-soft);border-color:#4B3C1D}
.pray.b{background:var(--moon-soft);border-color:#283749}
.pray.c{background:var(--lotus-soft);border-color:#4A3240}
.pray.d{background:var(--teal-soft);border-color:#1E4038}
.pray .pk{display:block;font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-dim);margin-bottom:8px}

/* ---------- Admin announcement on Today (v26) ---------- */
.ann{display:flex;flex-wrap:wrap;align-items:flex-start;gap:6px 10px;background:var(--gold-soft);
  border:1px solid var(--gold-mid);border-radius:14px;padding:12px 13px;margin:0 0 16px}
.ann[hidden]{display:none}
.ann .ann-e{font-size:16px;line-height:1.45;flex:none;order:1}
.ann p{margin:0;font-size:13.5px;line-height:1.5;flex:1;order:2}
.ann a{color:var(--gold);text-decoration:none;font-weight:600;font-size:13.5px;
  flex-basis:100%;margin-left:26px;order:4}
.ann a[hidden]{display:none}
.ann button{background:none;border:none;color:var(--ink-dim);font-size:19px;
  line-height:1;padding:0 2px;flex:none;align-self:flex-start;order:3}

/* ---------- Install-on-your-phone card on Today (v26.22) ---------- */
.install-card{display:flex;align-items:center;gap:12px;width:100%;
  margin:0 0 16px;font:inherit;text-align:left;color:inherit}
.install-card > svg{flex:none;color:var(--gold)}
.install-card .install-txt{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.install-card .install-txt span{font-size:13px;color:var(--ink-soft);font-weight:400;line-height:1.4}

/* ---------- The checklist step (v26) ---------- */
.ck-wait{text-align:center;font-size:12.5px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--gold);margin:0 0 16px}
.ck-hint{margin:10px 0 16px}
#run-checklist .exrow{border-width:1.5px;border-color:var(--gold-mid)}
#run-checklist .btn[disabled]{background:var(--line);color:var(--ink-dim)}
#run-checklist .btn{transition:background .3s,color .3s}

/* The altar behind a sitting (v26.14 redesign). .altar-wrap is a
   <picture> near the top of the screen, sized as a flex pane; the real
   <img> inside it is left to size itself by its own intrinsic ratio
   (width/height:auto, capped by max-width/max-height:100% of the pane)
   rather than stretched to fill the pane — so the rounded corners below
   land on the photo's own edges, with no oversized, letterboxed card
   around it and no fill color needed behind it. Not a full-bleed
   background with a dark scrim behind the clock, either: the clock and
   controls sit BELOW/beside the image, in their own space against the
   screen's ordinary dark background, so the photo stays clear and
   undimmed.

   Two different source images, chosen by the <picture> itself (a
   landscape <source>, an img for everything else) with no JS involved —
   each still shown with NO cropping, `contain`-style sizing, always:
   losing part of the picture to a crop previously hid some of the six
   gurus, which is never acceptable here.
   - Portrait: altar-portrait.jpg, a grid of all six, cropped tight to
     the collage itself (1000x903 — the source had a blank strip under
     the bottom row, now gone), in a pane sized to that same ratio so it
     fills the pane with no letterboxing either.
   - Landscape (below): altar.jpg, the wide arches panorama. */
#screen-timer{position:relative}
.altar-wrap{display:none}
/* min-height:0 overrides #timer-run's own base rule, which sizes it to
   very nearly the full screen height (min-height:calc(100vh - ...)) —
   correct when #timer-run is the screen's only content, but here the
   altar image already claims real vertical space above it, so keeping
   that min-height forced the two together past the viewport and into a
   scroll. #timer-run should just take the room it actually needs. */
#screen-timer.altar-on #timer-run{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;min-height:0}
#screen-timer.altar-on .altar-wrap{
  display:flex;align-items:center;justify-content:center;
  width:100%;aspect-ratio:1000/903;flex:none;
  margin-top:10px;
}
#screen-timer.altar-on .altar-img{
  display:block;width:auto;height:auto;max-width:100%;max-height:100%;
  border-radius:22px;
}
#screen-timer.altar-on #timer-run .run-seg{margin-top:24px}
#screen-timer.altar-on #timer-run .run-clock{font-size:46px}
#screen-timer.altar-on #timer-run .ctrlrow{margin-top:24px;padding-top:0}

/* Landscape: side by side, not full-bleed. The altar keeps its own
   rounded photo (as in portrait), sized to most of the screen's width;
   the clock and controls sit in a plain panel on the right, set off by
   a thin rule — not a floating card over the photo. (Structure only,
   taken from a wide-layout reference the user shared; none of its own
   type, gold arches, or color treatment carried over — those stay this
   app's own, same as everywhere else.) */
@media (orientation:landscape){
  /* #app is capped at 480px and centered everywhere else in the app (the
     phone-card look, even on a wide desktop browser) — right for every
     other screen, but it kept this split to a narrow column in the
     middle of a wide landscape phone screen with blank bars either side.
     Lift the cap only while the altar timer screen is actually showing,
     so this is the one view that uses the full wide screen. */
  #app:has(#screen-timer.altar-on){max-width:none}
  /* `.screen#screen-timer.on.altar-on`, not just `#screen-timer.altar-on`:
     the base layout rule `.screen#screen-timer.on{flex-direction:column}`
     carries two classes to this rule's one, which under CSS specificity
     beats it regardless of source order — the row layout below was
     silently never applying without the extra `.screen.on` here to match
     that weight and win on top of it. */
  .screen#screen-timer.on.altar-on{flex-direction:row;align-items:stretch;gap:0}
  #screen-timer.altar-on .altar-wrap{
    flex:1 1 65%;width:auto;height:auto;aspect-ratio:auto;
  }
  #screen-timer.altar-on #timer-run{
    flex:1 1 35%;min-height:0;
    justify-content:center;align-items:center;
    margin-left:28px;padding-left:28px;border-left:1px solid var(--line);
  }
  #screen-timer.altar-on #timer-run .run-clock{font-size:64px}
  #screen-timer.altar-on #timer-run #run-checklist{width:100%;max-width:280px}
}
.altarrow{display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:var(--card);border:1px solid var(--line);border-radius:14px;
  padding:13px 15px;margin:14px 0 0;font-size:14.5px}
.altarrow input{position:absolute;opacity:0;pointer-events:none}
.altarrow .sw{width:44px;height:26px;border-radius:999px;background:var(--line);
  position:relative;flex:none;transition:background .25s}
.altarrow .sw::after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;
  border-radius:50%;background:var(--ink-soft);transition:transform .25s,background .25s}
.altarrow input:checked + .sw{background:var(--gold-mid)}
.altarrow input:checked + .sw::after{transform:translateX(18px);background:var(--gold)}
/* On a full-screen surface there is no bottom bar, so a toast at 92px
   lands on the primary button. Put it at the top instead. */
body.immersive .toast{bottom:auto;top:calc(var(--safe-top) + 8px)}

.jmore{display:block;margin:18px auto 4px}

/* ---------- Admin: deleting a member ---------- */
.dzone{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}
.dzone h4{font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-dim);margin:0 0 4px}
.btn.danger,button.danger.sm{border-color:var(--danger)}
.dlist{margin:10px 0 14px;padding-left:20px;color:var(--ink);font-size:14.5px;line-height:1.5}
.dlist li{margin:6px 0}

/* Signed-in gate: nothing but the gate while it is up. */
body.gated .nav,body.gated #bottom-nav{display:none}

/* AoY read-along home entry (2026-11-18): small gold circle, bottom-right
   above the nav, Today screen only (visibility wired in index.html). */
.aoy-entry-btn{
  position:fixed; right:16px;
  bottom:calc(78px + env(safe-area-inset-bottom,0px));
  width:52px; height:52px; border-radius:50%;
  background:linear-gradient(160deg,#EAC16E,#CD9430); border:2px solid var(--gold); color:#17120A;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px;
  font-family:var(--display); font-weight:600; font-size:10px; letter-spacing:.4px;
  box-shadow:0 2px 10px rgba(0,0,0,.18); z-index:20; cursor:pointer;
}
.aoy-entry-btn .ic{width:20px;height:20px}
.aoy-entry-btn:active{transform:scale(.96)}

/* Part B: Notifications. .jrow/.jdate/.jbody/.jtime/.jtext are reused
   as-is from the Journal list above — same dated-row shape, nothing new
   needed for a read notification. .unread adds only what's different:
   a filled dot where the date normally has nothing above it, and a
   slightly bolder line, so an unread row reads as "new" at a glance. */
.jrow.unread .jtext{font-weight:600;color:var(--ink)}
/* Notifications: the bell lives in a small flex group with the avatar on
   the right of the Profile topbar (the topbar itself is space-between,
   so a bare third child would land in the middle, not where it visually
   belongs). The dot is red — the one place in this app that's
   deliberately not the gold accent — and absolutely positioned over the
   bell's own circular button, not a separate element in the flow. */
.topbar-right{display:flex;align-items:center;gap:10px}
#notif-bell{position:relative}
#notif-bell-ic{color:var(--ink-soft);transition:color .2s ease,fill .2s ease}
#notif-bell-ic.unread{color:#E53935;fill:#E53935}
/* Red dot at bell's top-right, shown only when unread */
.bell-dot{position:absolute;top:5px;right:6px;width:8px;height:8px;border-radius:50%;background:#E53935;border:2px solid var(--card);display:none}
#notif-bell-ic.unread~.bell-dot{display:block}

/* ---------- Daily Introspection ---------- */
/* (intro-card removed from Today — entry point is now My Diary > Introspection tab) */
.intro-screen{position:fixed;inset:0;z-index:200;background:var(--paper);overflow-y:auto;padding:0 20px calc(40px + env(safe-area-inset-bottom,0px))}
.demo-active .intro-screen{top:28px}
.intro-layer{max-width:500px;margin:0 auto;padding-top:calc(12px + env(safe-area-inset-top,0px))}
.intro-topbar{display:flex;align-items:center;gap:10px;padding:8px 0 4px}
.intro-topbar .themebtn{flex:none}
.intro-layer>.title{margin:0 0 2px}
.intro-guide-link{display:block;font-size:12px;opacity:.5;margin:0 0 16px}
.intro-private{font-size:12px;opacity:.5;margin:0 0 8px}
.intro-quote{margin:0 0 24px;padding:12px 16px;border-left:3px solid rgba(244,180,26,.4);font-family:'EB Garamond',serif;font-size:16px;font-style:italic;line-height:1.5;opacity:.7}
.intro-q{margin:0 0 20px}
.intro-label{display:block;font-weight:600;font-size:14px;margin:0 0 8px}
.intro-helper{font-size:12px;opacity:.5;margin:0 0 6px}
.intro-chips{display:flex;flex-wrap:wrap;gap:8px}
.intro-chip{padding:7px 14px;border-radius:20px;border:1.5px solid rgba(255,255,255,.12);background:transparent;color:var(--ink);font-size:13px;cursor:pointer;transition:background .15s,border-color .15s}
.intro-chip.on{background:rgba(244,180,26,.18);border-color:rgba(244,180,26,.5);color:#f4b41a}
.intro-ta{width:100%;padding:10px 12px;border-radius:10px;border:1.5px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:var(--ink);font:14px/1.5 Inter,system-ui,sans-serif;resize:vertical}
.intro-ta:focus{border-color:rgba(244,180,26,.4);outline:none}
.intro-dropdown{position:relative}
.intro-dd-btn{width:100%;text-align:left;padding:9px 14px;border-radius:10px;border:1.5px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:var(--ink);font-size:13px;cursor:pointer}
.intro-dd-btn.open{border-color:rgba(244,180,26,.4)}
.intro-dd-list{position:absolute;left:0;right:0;top:100%;margin-top:4px;background:var(--card);border-radius:10px;border:1px solid rgba(255,255,255,.10);padding:6px 0;z-index:10;max-height:200px;overflow-y:auto}
.intro-dd-item{display:flex;align-items:center;gap:8px;padding:7px 14px;font-size:13px;cursor:pointer}
.intro-dd-item:hover{background:rgba(255,255,255,.04)}
.intro-dd-item input{accent-color:#f4b41a}
.intro-confirm{text-align:center;padding:60px 20px}
.intro-confirm-icon{font-size:28px;margin-bottom:12px}
.intro-confirm-h{font-size:22px;margin:0 0 24px}
.intro-affirm{font-family:var(--display);font-size:22px;line-height:1.55;font-style:normal;font-weight:normal;opacity:1;margin:0 0 32px;padding:0 12px;text-align:center;border:none;text-wrap:balance}
/* Light theme overrides */
[data-theme="light"] .intro-chip{border-color:rgba(0,0,0,.12)}
[data-theme="light"] .intro-chip.on{background:rgba(244,180,26,.12);border-color:rgba(200,150,20,.5)}
[data-theme="light"] .intro-ta{border-color:rgba(0,0,0,.12);background:rgba(0,0,0,.03)}
[data-theme="light"] .intro-dd-btn{border-color:rgba(0,0,0,.12);background:rgba(0,0,0,.03)}
[data-theme="light"] .intro-dd-list{border-color:rgba(0,0,0,.08)}

/* Unread dot on Today avatar — overlaps top-right edge */
/* Avatar wrapper: positions the unread dot relative to the avatar circle */
.av-wrap{position:relative;display:inline-flex;flex:none}
.av-unread-dot{position:absolute;bottom:-1px;left:-1px;width:15.4px;height:15.4px;border-radius:50%;background:#E53935;border:2px solid var(--card);cursor:pointer;z-index:1;box-shadow:0 0 6px 1px rgba(229,57,53,.35)}

/* Introspection diary entry cards */
.intro-entry-card{display:flex;flex-direction:column;padding:16px 18px;margin:0 0 10px;border-radius:16px;border:1px solid var(--line);background:var(--card);cursor:pointer;transition:transform .12s ease}
.intro-entry-card:active{transform:scale(.98)}
.intro-entry-header{font-family:var(--display);font-weight:500;font-size:18px;line-height:27px;color:var(--ink);margin-bottom:8px}
.intro-entry-body{width:100%}
.intro-row{display:flex;gap:8px;font-size:14px;line-height:21px;margin-bottom:4px}
.intro-row-label{color:var(--ink-dim);flex:none;min-width:95px}
.intro-row-value{color:var(--ink-soft)}

/* Sticky Add introspection button at top of Introspection tab */
/* Sticky under app topbar; demo banner is 28px fixed, so offset accordingly.
   Normal mode (no banner): top:0 suffices. The .demo-active class on
   body is set by app.js when DEMO is true. */
#intro-add{position:sticky;top:0;z-index:5;padding-bottom:4px;margin-top:0}
.demo-active #intro-add{top:28px}

/* Poke hand icon: exact original silhouette via CSS mask on the
   extracted PNG. currentColor fills the shape; the PNG alpha defines
   the geometry — no SVG redraw, no stroke interference. */
.poke-hand-ic{display:inline-block;width:18px;height:18px;flex:none;vertical-align:middle;
  background:#B5781B;
  -webkit-mask:url(../icons/poke-hand.png) center/contain no-repeat;
  mask:url(../icons/poke-hand.png) center/contain no-repeat}

/* How to Introspect guide */
.guide-list{margin:12px 0 16px;padding-left:20px;font-size:15px;line-height:1.6;color:var(--ink)}
.guide-list li{margin-bottom:8px}
.guide-credit{font-size:13px;color:var(--ink-dim);margin:0 0 20px;font-style:italic}

/* Demo banner (28px fixed) overlaps .screen's --safe-top (24px).
   Add the difference so topbar back buttons clear the banner. */
.demo-active #screen-today,.demo-active #screen-journal{padding-top:calc(var(--safe-top) + 8px)}

/* Guide link in Introspection list tab */
.intro-list-guide{display:block;font-size:13px;opacity:.6;margin:0 0 12px}

/* Dark mode guide text contrast — intro paragraphs, quotes, attribution */
/* Dark guide contrast: no compounded opacity. All ≥4.5:1 on #0D1017.
   #B0ACA5 = 7.0:1, #9B9790 = 5.4:1, #8D8779 (ink-soft) = 4.5:1 */
[data-theme="dark"] .intro-screen .sub{color:#B0ACA5}
[data-theme="dark"] .intro-screen .jquote{color:#B0ACA5}
[data-theme="dark"] .intro-screen .jquote cite{color:#9B9790}
[data-theme="dark"] .intro-screen .guide-credit{color:#9B9790}

/* Opening quote on Introspection list home */
.intro-list-quote{margin:0 0 16px;padding:0;border:none;font-family:var(--display);font-size:16px;font-style:italic;line-height:1.6;color:var(--ink-soft)}
/* List quote dark: #B0ACA5 = 7.0:1 on #0D1017 */
[data-theme="dark"] .intro-list-quote{color:#B0ACA5}
