/* 6S Planner — calm devotional productivity. One family (Plus Jakarta Sans), night indigo + saffron, tulsi / kumkum for results. */
:root {
  --night: #1E2A4A; --night-2: #2B3A63; --saffron: #E8871E; --saffron-soft: #FDF1E3; --tulsi: #1B7A3A; --tulsi-soft: #E7F3EB;
  --kumkum: #D11F1F; --kumkum-soft: #FDE7E7; --peacock: #0F6A7C; --paper: #F5F7FB; --surface: #FFFFFF; --ink: #131C33; --ink-2: #414C68;
  --line: #E3E7F0; --line-2: #EEF1F6; --input: #FFFBF3;
  --c-sadhana: #E8871E; --c-sambandha: #2F6FD6; --c-siksha: #8A4FBF; --c-seva_meet: #3F8F5A; --c-seva_exec: #1F7A8C; --c-swasthya: #D9487D;
  --r-lg: 18px; --r-md: 12px; --r-sm: 9px;
  --lift: 0 1px 0 rgba(30,42,74,.04), 0 6px 18px -10px rgba(30,42,74,.22);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font: 500 15px/1.55 var(--font); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
a { color: var(--peacock); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(232,135,30,.55); outline-offset: 2px; border-radius: 10px; }
.muted { color: var(--ink-2); } .small { font-size: 13px; } .pad { padding: 16px; }

/* ---------- shell + navigation ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.nav { position: sticky; top: 0; height: 100vh; background: var(--night); color: #DCE3F2; padding: 22px 14px; display: flex; flex-direction: column; gap: 2px; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-size: 18px; color: #fff; padding: 2px 10px 22px; letter-spacing: -.01em; }
.nav .brand b { font-weight: 800; }
.nav a { color: #C9D2E6; text-decoration: none; padding: 10px 12px; border-radius: 12px; display: flex; gap: 12px; align-items: center; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: rgba(232,135,30,.16); color: #fff; font-weight: 700; box-shadow: inset 3px 0 0 var(--saffron); }
.main { padding: 30px 36px 100px; max-width: 1120px; width: 100%; min-width: 0; }

/* ---------- headings ---------- */
h1 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; margin: 0; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 17px; margin: 28px 0 10px; font-weight: 700; letter-spacing: -.01em; }
.top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.top p.muted, .top div.muted { margin: 4px 0 0; max-width: 64ch; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.grow { flex: 1; }

/* ---------- controls ---------- */
.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 15px; cursor: pointer; white-space: nowrap; font-weight: 600; font-size: 14px; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #C8D0E0; background: #FAFBFD; }
.btn.primary { background: var(--night); border-color: var(--night); color: #fff; }
.btn.primary:hover { background: var(--night-2); }
.btn.good { background: var(--tulsi-soft); border-color: #B9DCC4; color: var(--tulsi); }
.btn.bad { background: var(--kumkum-soft); border-color: #F0C4C0; color: var(--kumkum); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--line-2); }
.btn.wa { background: #1FAF55; border-color: #1FAF55; color: #fff; }
.btn.small { padding: 5px 11px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 4px 6px; color: var(--ink-2); font-weight: 600; font-size: 13px; cursor: pointer; border-radius: 8px; }
.link:hover { color: var(--ink); background: var(--line-2); }
.seg { display: inline-flex; background: var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; }
.seg .btn { border: 0; background: transparent; padding: 6px 13px; }
.seg .btn.on { background: var(--surface); box-shadow: var(--lift); color: var(--ink); }
.tog { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; display: inline-grid; place-items: center; font-size: 17px; font-weight: 800; color: #9AA4BC; transition: all .15s; }
.tog:hover { border-color: #C3CBDC; color: var(--ink); }
.tog.ok.on { background: var(--tulsi); border-color: var(--tulsi); color: #fff; }
.tog.no.on { background: var(--kumkum); border-color: var(--kumkum); color: #fff; }
input, select, textarea { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 11px; background: var(--surface); min-height: 38px; }
input.in, select.in, textarea.in { background: var(--input); }
input:focus, select:focus, textarea:focus { border-color: var(--saffron); outline: none; box-shadow: 0 0 0 3px rgba(232,135,30,.15); }
input[type=time] { width: 132px; } input[type=number] { width: 90px; } input[type=date] { width: 156px; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A6582' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center; }
select.in { background-color: var(--input); }
select[multiple] { background-image: none; padding-right: 11px; white-space: normal; min-height: 92px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); min-width: 0; }
label.f > span { font-weight: 700; color: var(--ink); }
label.f input, label.f select, label.f textarea { width: 100%; max-width: 100%; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form > *, .row > * { min-width: 0; }
.form .wide { grid-column: 1 / -1; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--lift); padding: 16px 18px; margin-bottom: 12px; }
.panel { background: var(--surface); border-radius: var(--r-lg); box-shadow: 0 18px 40px -18px rgba(30,42,74,.35); padding: 22px; margin: 6px 0 22px; border: 1px solid var(--line); }
.preview { background: #F3F8F4; border: 1px solid #CFE6D7; border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; white-space: pre-wrap; }
.empty { text-align: center; padding: 38px 16px; color: var(--ink-2); background: var(--surface); border-radius: var(--r-lg); border: 1.5px dashed var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--line-2); color: var(--ink-2); }
.chip[class*="cat-"]::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cat-sadhana { color: var(--c-sadhana); } .cat-sambandha { color: var(--c-sambandha); } .cat-siksha { color: var(--c-siksha); }
.cat-seva_meet { color: var(--c-seva_meet); } .cat-seva_exec { color: var(--c-seva_exec); } .cat-swasthya { color: var(--c-swasthya); }
.chip[class*="cat-"] { background: color-mix(in srgb, currentColor 11%, white); }
.state { font-weight: 700; font-size: 12.5px; white-space: nowrap; padding: 3px 10px; border-radius: 999px; }
.s-done { background: var(--tulsi-soft); color: var(--tulsi); } .s-not_done, .s-backlog { background: var(--kumkum-soft); color: var(--kumkum); }
.s-plan_date { background: var(--saffron-soft); color: #B4620A; } .s-planned, .s-open { background: #E8F1F4; color: var(--peacock); }
.s-progress { background: var(--saffron-soft); color: #9A4F00; } .s-later, .s-skipped { background: var(--line-2); color: var(--ink-2); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 12px 0 16px; }
.kpi { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--lift); padding: 14px 16px; color: var(--ink-2); font-size: 13px; }
.kpi b { display: block; font-size: 22px; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.kpi.red b { color: var(--kumkum); } .kpi.green b { color: var(--tulsi); }

/* ---------- Today: the day arc ---------- */
.hero { background: linear-gradient(180deg, #FFFFFF 0%, #FFF7EC 100%); border-radius: 24px; box-shadow: var(--lift); padding: 22px 24px 8px; margin-bottom: 22px; }
.hero-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.hero h1 { font-size: clamp(26px, 3vw, 34px); }
.hero .greet { color: var(--ink-2); margin-top: 6px; }
.daynav { display: inline-flex; align-items: center; gap: 2px; background: var(--paper); border-radius: 999px; padding: 4px; }
.daynav .btn { padding: 6px 12px; border-color: transparent; background: transparent; }
.daynav .btn:hover { background: #fff; }
.daynav .btn.primary { background: var(--night); color: #fff; }
.daynav input[type=date] { border: 0; background: transparent; min-height: 32px; width: 140px; box-shadow: none; }
.arc { width: 100%; max-height: 260px; display: block; margin-top: 6px; }
.arc .track { fill: none; stroke: #EFE3D2; stroke-width: 10; stroke-linecap: round; }
.arc .past { fill: none; stroke: url(#dawn); stroke-width: 10; stroke-linecap: round; }
.arc .tick { fill: var(--ink-2); font-size: 20px; font-weight: 600; }
.arc .bead { stroke: #fff; stroke-width: 4; }
.arc .bead.open { fill: #fff; stroke: var(--saffron); stroke-width: 5; }
.arc .bead.done { fill: var(--tulsi); } .arc .bead.not_done { fill: var(--kumkum); }
.arc .sun { fill: var(--saffron); }
.arc .glow { fill: rgba(232,135,30,.18); }
.arc .big { fill: var(--ink); font-size: 66px; font-weight: 800; letter-spacing: -2px; }
.arc .cap { fill: var(--ink-2); font-size: 21px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .arc .past { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 1.1s ease-out .1s forwards; } @keyframes draw { to { stroke-dashoffset: 0; } } }
.hero-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 2px 2px 14px; color: var(--ink-2); font-size: 14px; }
.hero-stats b { color: var(--ink); font-weight: 800; }
.meter { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; }
.meter .bar { flex: 1; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 4px 18px; position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--lift); }
.timeline::before { content: ""; position: absolute; left: 126px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.tl { display: grid; grid-template-columns: 90px 20px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; position: relative; }
.tl + .tl { border-top: 1px solid var(--line-2); }
.tl time { text-align: right; font-weight: 800; font-size: 15px; line-height: 1.25; }
.tl time small { display: block; font-weight: 500; color: var(--ink-2); font-size: 12.5px; }
.tl time .any { color: var(--ink-2); font-weight: 600; font-size: 13px; }
.tl .dot { width: 14px; height: 14px; border-radius: 50%; justify-self: center; background: #fff; border: 3px solid currentColor; z-index: 1; }
.tl.k-done .dot { background: var(--tulsi); border-color: var(--tulsi); }
.tl.k-not_done .dot { background: var(--kumkum); border-color: var(--kumkum); }
.tl-title { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.tl.k-done .tl-title { color: var(--ink-2); }
.tl-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.tl-acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.tl.skipped { opacity: .55; }

/* popovers (⋯ / Set date) */
.more { position: relative; }
.more summary { list-style: none; cursor: pointer; } .more summary::-webkit-details-marker { display: none; }
.more summary.btn.icon { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }
.more .pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 18px 40px -16px rgba(30,42,74,.35); padding: 14px; display: grid; gap: 12px; min-width: 240px; max-width: calc(100vw - 32px); }

/* ---------- Week ---------- */
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin: 4px 0 24px; }
.strip > div { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--lift); padding: 10px 8px 12px; text-align: center; font-size: 12.5px; cursor: pointer; color: var(--ink-2); border-top: 3px solid transparent; }
.strip > div b { display: block; font-size: 14px; color: var(--ink); font-weight: 800; }
.strip > div.today { border-top-color: var(--saffron); }
.strip .free { color: var(--tulsi); font-weight: 700; } .strip .full { color: var(--kumkum); font-weight: 800; }
.group { margin-bottom: 20px; }
.group > header { display: flex; align-items: center; gap: 10px; padding: 0 4px 8px; font-weight: 800; font-size: 15px; }
.group > header::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: currentColor; }
.group > header .muted { font-weight: 600; }
.rows { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--lift); }
.wrow { display: grid; grid-template-columns: minmax(200px, 1.3fr) auto minmax(180px, auto); gap: 14px; align-items: center; padding: 14px 16px; border-left: 4px solid transparent; }
.wrow:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; } .wrow:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); } .wrow:only-child { border-radius: var(--r-lg); }
.wrow + .wrow { border-top: 1px solid var(--line-2); }
.wrow .title { font-weight: 700; font-size: 15px; }
.wrow .sub { color: var(--ink-2); font-size: 13px; margin: 2px 0 6px; }
.wrow.st-done { background: linear-gradient(90deg, var(--tulsi-soft), #fff 70%); border-left-color: var(--tulsi); }
.wrow.st-backlog, .wrow.st-not_done { background: linear-gradient(90deg, var(--kumkum-soft), #fff 70%); border-left-color: var(--kumkum); }
.wrow.st-progress, .wrow.st-planned, .wrow.st-open, .wrow.st-plan_date { border-left-color: #F3C68E; }
.days { display: grid; grid-template-columns: repeat(7, 36px); gap: 5px; }
.day { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 11.5px; font-weight: 800; cursor: pointer; display: grid; place-items: center; color: #A0A9BF; transition: all .12s; padding: 0; }
.day:hover { border-color: #C3CBDC; }
.day.on { background: var(--saffron-soft); border-color: #F3C68E; color: #B4620A; }
.day.tick { background: var(--tulsi); border-color: var(--tulsi); color: #fff; }
.day.miss { background: var(--kumkum-soft); border-color: #F0C4C0; color: var(--kumkum); }
.day.skip { text-decoration: line-through; }
.day[disabled] { opacity: .3; cursor: default; }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.form .days { grid-template-columns: repeat(7, minmax(0, 1fr)); } .form .day { width: auto; min-width: 0; aspect-ratio: 1; height: auto; }

/* ---------- lists ---------- */
.list { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--lift); margin-bottom: 14px; }
.li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; }
.li + .li { border-top: 1px solid var(--line-2); }
.li .title { font-weight: 700; } .li .sub { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.li .end { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.datebadge { width: 52px; height: 56px; border-radius: 14px; background: var(--saffron-soft); color: #B4620A; display: grid; place-items: center; text-align: center; line-height: 1; padding: 6px 0; }
.datebadge b { display: block; font-size: 20px; font-weight: 800; color: var(--ink); }
.datebadge small { font-size: 11px; font-weight: 700; }
.datebadge.none { background: transparent; border: 2px dashed #E5C9A3; color: #C08A47; font-size: 20px; font-weight: 800; }
.month { margin: 22px 0 8px; font-weight: 800; font-size: 16px; display: flex; gap: 10px; align-items: baseline; }
.month .muted { font-weight: 600; font-size: 13px; }
.bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--tulsi); border-radius: 99px; }
.bar.red > i { background: var(--kumkum); }
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk > div { text-align: center; font-size: 12.5px; color: var(--ink-2); }
.vbar { height: 72px; background: var(--line-2); border-radius: 10px; display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 6px; }
.vbar > i { display: block; width: 100%; background: var(--tulsi); border-radius: 10px; }
.vbar.red > i { background: var(--kumkum); }
.sbars { display: flex; gap: 6px; align-items: flex-end; height: 130px; padding: 6px 0 22px; }
.sbars > div { flex: 1; background: #BFE0C9; border-radius: 8px 8px 3px 3px; position: relative; min-width: 8px; }
.sbars > div.low { background: #F2C2BD; }
.sbars > div span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--ink-2); white-space: nowrap; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--night); color: #fff; padding: 11px 18px; border-radius: 14px; box-shadow: 0 14px 34px -12px rgba(30,42,74,.6); z-index: 20; max-width: 92vw; font-weight: 600; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; inset: auto 0 0 0; height: auto; flex-direction: row; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); z-index: 10; gap: 2px; background: rgba(30,42,74,.97); }
  .nav .brand { display: none; }
  .nav a { flex: 0 0 auto; min-width: 70px; flex-direction: column; gap: 2px; font-size: 19px; padding: 6px 4px; justify-content: center; }
  .nav a span { font-size: 10.5px; font-weight: 600; }
  .nav a.on { box-shadow: inset 0 3px 0 var(--saffron); }
  .main { padding: 18px 14px 110px; }
  .hero { padding: 16px 14px 6px; border-radius: 20px; }
  .timeline { padding: 4px 12px; }
  .timeline::before { left: 86px; }
  .tl { grid-template-columns: 62px 16px minmax(0, 1fr); gap: 10px; }
  .tl time { font-size: 13.5px; }
  .tl-acts { grid-column: 3 / -1; justify-content: flex-start; }
  .more { position: static; }
  .more .pop { left: 10px; right: 10px; top: auto; bottom: calc(100% - 6px); min-width: 0; }
  .item, .tl, .li { position: relative; }
  .wrow { grid-template-columns: minmax(0, 1fr); }
  .tools { justify-content: flex-start; }
  .li { grid-template-columns: auto minmax(0, 1fr); }
  .li .end { grid-column: 1 / -1; justify-content: flex-start; }
  .strip { gap: 5px; } .strip > div { padding: 8px 2px 10px; font-size: 11px; }
  .days { grid-template-columns: repeat(7, minmax(0, 36px)); }
}

/* areas are coloured from settings (any area, not only the 6S) */
.chip.catc { background: color-mix(in srgb, currentColor 11%, white); }
.chip.catc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.catc:has(svg)::before { display: none; }
.group > header::before { display: none; }
.group > header .gname { color: var(--ink); }
.swatch { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 13%, white); cursor: pointer; }
.swatch input[type=color] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; border: 0; padding: 0; }
.li.area .row select { width: 130px; }
.li.retired { opacity: .55; }
/* long names wrap — never overlap the next column */
.title, .tl-title, .li .title, .wrow .title, .sub, .tl-meta span { overflow-wrap: anywhere; word-break: normal; }
.wrow > *, .li > *, .tl > * { min-width: 0; }
.wrow.arow { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; }
.role { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--saffron); }
.ic { flex: 0 0 auto; }
.nav a i { display: inline-flex; font-style: normal; }
@media (max-width: 900px) { .wrow.arow { grid-template-columns: minmax(0, 1fr); } .li.area { grid-template-columns: auto minmax(0, 1fr); } }

.arc .big tspan { letter-spacing: 0; font-weight: 600; }

/* ---------- public: board + sign-in ---------- */
body.public .shell { grid-template-columns: minmax(0, 1fr); }
body.public .nav { display: none; }
body.public .main { margin: 0 auto; }
.leads { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.lead { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--lift); padding: 18px; display: grid; gap: 14px; }
.lead header { display: flex; gap: 14px; align-items: center; }
.lead .title { font-size: 17px; font-weight: 800; }
.lead-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--ink-2); font-size: 14px; }
.lead-stats b { color: var(--ink); font-weight: 800; } .lead-stats b.red { color: var(--kumkum); }
.daystrip { position: relative; height: 34px; background: var(--line-2); border-radius: 10px; margin-top: 16px; }
.daystrip .hours { position: absolute; inset: -18px 0 auto 0; height: 16px; font-size: 11px; color: var(--ink-2); }
.daystrip .hours span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.daystrip .blk { position: absolute; top: 5px; bottom: 5px; border-radius: 6px; }
.daystrip .blk.cur { top: 2px; bottom: 2px; opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--saffron); }
.daystrip .nowline { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--saffron); border-radius: 2px; }
.login { max-width: 420px; margin: 6vh auto 0; display: grid; gap: 14px; text-align: center; }
.login .card { text-align: left; }
.login .brandmark { display: grid; place-items: center; }

/* board cards: nothing may leave the card */
.lead > *, .lead header > div:last-child { min-width: 0; }
.lead header > div:last-child { flex: 1; }
.lead .state { white-space: normal; line-height: 1.35; display: inline-flex; gap: 4px; align-items: flex-start; }
.daystrip { overflow: visible; max-width: 100%; }
.daystrip .blk { max-width: 100%; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ag { display: grid; grid-template-columns: 64px 4px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 4px; border-radius: 8px; font-size: 13.5px; }
.ag time { color: var(--ink); font-weight: 700; text-align: right; }
.ag .bar { width: 4px; height: 20px; border-radius: 2px; }
.ag .t { overflow-wrap: anywhere; }
.ag .r { font-weight: 800; font-size: 12.5px; } .ag .r .ic { stroke-width: 3; }
.ag.done .t { color: var(--tulsi); font-weight: 600; } .ag.done .r { color: var(--tulsi); }
.ag.not_done .r, .ag.not_done .t { color: var(--kumkum); font-weight: 700; }
.ag.now { background: var(--saffron-soft); box-shadow: inset 3px 0 0 var(--saffron); } .ag.now .r { color: #9A4F00; } .ag.now .t { font-weight: 700; }
.ag.past .t { color: var(--ink-2); }
/* flags + backlog accordion */
.flag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--kumkum); color: #fff; font-weight: 700; font-size: 12px; white-space: normal; line-height: 1.3; }
.tl.prio { box-shadow: inset 4px 0 0 var(--kumkum); }
.wrow.prio { border-left-color: var(--kumkum) !important; }
.acc { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--lift); margin-bottom: 10px; }
.acc > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 800; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.acc > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg); margin-left: 4px; flex: 0 0 auto; }
.acc[open] > summary::after { transform: rotate(-135deg); }
.acc .count { background: var(--kumkum-soft); color: var(--kumkum); border-radius: 999px; padding: 2px 10px; font-size: 13px; }
.acc > .list { box-shadow: none; margin: 0; border-top: 1px solid var(--line-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
@media (max-width: 900px) { .leads { grid-template-columns: minmax(0, 1fr); } }

/* ---------- professional polish ---------- */
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-weight: 800; color: #fff; background: var(--av); letter-spacing: .02em; }
.nav .me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px 10px 4px; border-top: 1px solid rgba(255,255,255,.08); color: #fff; }
.nav .me b { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.nav .me .link { color: #AFBBD6; padding: 2px 0; } .nav .me .link:hover { color: #fff; background: none; }
.nav .me .avatar { background: rgba(255,255,255,.1); color: #fff; }
.fs { border: 0; margin: 0 0 18px; padding: 0; }
.fs > legend { font-size: 12.5px; font-weight: 800; color: var(--ink-2); padding: 0 0 10px; letter-spacing: .01em; }
.fs + .fs { border-top: 1px solid var(--line-2); padding-top: 16px; }
.formbar { position: sticky; bottom: 0; background: var(--surface); padding: 12px 0 2px; margin-top: 6px; border-top: 1px solid var(--line-2); z-index: 2; }
.empty { display: grid; justify-items: center; gap: 6px; }
.empty .ic { color: #B9C2D6; } .empty b { color: var(--ink); font-size: 15px; }
.sk-wrap { display: grid; gap: 12px; }
.sk { height: 86px; border-radius: var(--r-lg); background: linear-gradient(90deg, #EDF0F6 25%, #F6F8FB 50%, #EDF0F6 75%); background-size: 200% 100%; }
.toast { display: flex; gap: 10px; align-items: center; }
.toast .ic { color: #F6C27A; }
.btn:active, .tog:active, .day:active { transform: scale(.96); }
@media (prefers-reduced-motion: no-preference) {
  .main.enter { animation: enter .22s ease-out; } @keyframes enter { from { transform: translateY(4px); } to { transform: none; } }
  .tog.on { animation: pop .22s ease-out; } @keyframes pop { 50% { transform: scale(1.12); } }
  .toast.in { animation: up .25s ease-out; } @keyframes up { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
  .sk { animation: shimmer 1.2s linear infinite; } @keyframes shimmer { to { background-position: -200% 0; } }
}
@media (max-width: 900px) { .nav .me { display: none; } }

/* password show / hide */
.pw { position: relative; display: block; }
.pw input { width: 100%; padding-right: 46px; }
.pw .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 34px; border: 0; background: transparent; color: var(--ink-2); border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.pw .eye:hover { background: var(--line-2); color: var(--ink); }
/* meeting requests: chat button, pop-up, time chips */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 15; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; padding: 14px 20px; background: var(--saffron); color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 14px 30px -10px rgba(232,135,30,.7); cursor: pointer; }
.fab:hover { background: #D97A12; }
.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(20,28,50,.45); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 22px; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; box-shadow: 0 30px 70px -20px rgba(20,28,50,.5); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.modal-head h2 { margin: 0; display: flex; gap: 8px; align-items: center; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; max-height: 210px; overflow-y: auto; padding: 2px; }
.slot { border: 1.5px solid #B9DCC4; background: var(--tulsi-soft); color: var(--tulsi); border-radius: 10px; padding: 8px 4px; font-weight: 700; font-size: 13px; cursor: pointer; }
.slot.busy { border-color: var(--line); background: var(--line-2); color: #6B7590; text-decoration: line-through; }
.slot.busy:not([disabled]) { border-color: #F0C4C0; background: var(--kumkum-soft); color: var(--kumkum); text-decoration: none; }
.slot.on { background: var(--night); border-color: var(--night); color: #fff; text-decoration: none; }
.slot[disabled] { cursor: not-allowed; }
.urgent { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: var(--ink-2); padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; }
.urgent.on { border-color: var(--kumkum); color: var(--kumkum); background: var(--kumkum-soft); }
.urgent input { accent-color: var(--kumkum); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.li.urgentrow { box-shadow: inset 4px 0 0 var(--kumkum); background: linear-gradient(90deg, var(--kumkum-soft), #fff 50%); }
.nav a { position: relative; }
.badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--kumkum); color: #fff; font-size: 11.5px; font-weight: 800; font-style: normal; display: grid; place-items: center; }
@media (max-width: 900px) { .fab { bottom: 18px; right: 14px; padding: 13px 16px; } .fab span { display: none; } .badge { position: absolute; top: 2px; right: 10px; margin: 0; } body:not(.public) .fab { bottom: 88px; } }

/* scroll buttons (shown only on long pages) */
.scrollbtns { position: fixed; right: 22px; bottom: 22px; z-index: 14; display: flex; flex-direction: column; gap: 8px; }
body.public .scrollbtns { bottom: 92px; }
.scrollbtns button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px -10px rgba(20,28,50,.45); }
.scrollbtns button:hover { border-color: var(--night); }
.scrollbtns button[hidden] { display: none; }
@media (max-width: 900px) {
  .scrollbtns { right: 14px; bottom: 92px; }
  body.public .scrollbtns { bottom: 86px; }
}

.scrollbtns button:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }
.toast[hidden] { display: none; }
/* IYF branding */
.emblem { display: block; border-radius: 50%; }
.login .brandmark .emblem { margin: 0 auto; }
.backlink { display: inline-flex; align-items: center; gap: 4px; justify-self: start; align-self: start; color: var(--ink-2); font-weight: 700; font-size: 14px; text-decoration: none; padding: 6px 10px 6px 4px; margin-left: -4px; border-radius: 8px; }
.backlink:hover { color: var(--ink); background: var(--line-2); }
.main > .backlink { margin-bottom: 6px; }
.login > p { margin: 0; }


/* board header: emblem | name */
.iyfbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.lockup { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lockup .vr { width: 1.5px; align-self: stretch; margin: 6px 0; background: var(--line); background: #C9D0DE; }
.lockup h1 { margin: 0; font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; }
.boardsub { margin: 10px 0 22px; max-width: 70ch; }
@media (max-width: 600px) { .lockup { gap: 12px; } .lockup .emblem { width: 44px; height: 44px; } .iyfbar > .row { width: 100%; } .iyfbar > .row .btn { flex: 1; justify-content: center; } }

/* meeting hours */
.meetline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; padding: 9px 11px; border-radius: 10px; background: var(--tulsi-soft); color: var(--ink); }
.meetline .ic { color: var(--tulsi); }
.meetline b { color: var(--tulsi); }
.meetline .muted { flex-basis: 100%; padding-left: 22px; font-size: 12.5px; }
.day.chk { position: relative; color: var(--ink-2); user-select: none; }
.day.chk input { position: absolute; opacity: 0; pointer-events: none; }
.day.chk:has(input:checked) { background: var(--night); border-color: var(--night); color: #fff; }
.day.chk:has(input:focus-visible) { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* overlapping items */
.daystrip .blk.clash { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.9); }
.daystrip .blk.cur.clash { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--saffron); }
.clashnote { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 12.5px; font-weight: 700; color: #9A4F00; }
.ag .clash { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--saffron-soft); color: #9A4F00; font-size: 11px; font-weight: 800; font-style: normal; white-space: nowrap; vertical-align: 1px; }
.urgent input[type=checkbox] { width: 16px; height: 16px; min-height: 0; min-width: 0; padding: 0; margin: 0; flex: 0 0 auto; box-shadow: none; }
.form .urgent { flex-direction: row; align-self: center; }

/* mentor card: only the present by default, the full day on request */
.dayfold { border-top: 1px solid var(--line); margin: 2px -2px 0; }
.dayfold > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 2px 2px; cursor: pointer; font-weight: 800; font-size: 14px; }
.dayfold > summary::-webkit-details-marker { display: none; }
.dayfold > summary .muted { font-weight: 600; font-size: 12.5px; margin-right: auto; }
.dayfold > summary .ic { transition: transform .2s; color: var(--ink-2); }
.dayfold[open] > summary .ic { transform: rotate(180deg); }
.dayfold > summary:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 8px; }
.foldbody { display: grid; gap: 12px; padding-top: 12px; }
@media (prefers-reduced-motion: reduce) { .dayfold > summary .ic { transition: none; } }

/* Today's sky: dawn red, noon blue, dusk orange, night indigo with stars and the moon */
.hero.sky { background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%); transition: background 1.2s ease; }
.hero.sky .arc .track { stroke: rgba(255,255,255,.55); }
.hero.sky .arc .tick { fill: rgba(19,28,51,.75); }
.hero.dark { color: #fff; }
.hero.dark h1, .hero.dark .hero-stats b { color: #fff; }
.hero.dark .greet, .hero.dark .hero-stats { color: rgba(255,255,255,.86); }
.hero.dark .arc .tick, .hero.dark .arc .cap { fill: rgba(255,255,255,.82); }
.hero.dark .arc .big { fill: #fff; }
.hero.dark .arc .track { stroke: rgba(255,255,255,.22); }
.hero.dark .bar { background: rgba(255,255,255,.2); }
.hero.dark .arc .bead.open { fill: #1E2A4A; }
.arc .star { fill: #fff; opacity: .8; }
.hero.dark .daynav input { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .arc .sunmark line { transform-origin: 0 0; animation: rays 18s linear infinite; } @keyframes rays { to { transform: rotate(45deg); } } }

@media (max-width: 600px) { .arc .tick { font-size: 30px; } .arc .cap { font-size: 30px; } .arc .big { font-size: 92px; } .arc .bead { r: 17; } }

.skychip { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; margin-right: 8px; vertical-align: -6px; background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom)); box-shadow: 0 2px 6px -2px rgba(20,28,50,.4); }
.li.memberedit { grid-template-columns: auto minmax(0,1fr) minmax(0,1fr) auto; align-items: end; }
@media (max-width: 700px) { .li.memberedit { grid-template-columns: minmax(0,1fr); } .li.memberedit .avatar { display: none; } }

/* reports: time bars + item list */
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.l-eng, .tb .eng { background: var(--tulsi); } .l-miss, .tb .miss { background: var(--kumkum); } .l-open, .tb .open { background: #F2B66B; } .l-free, .tb .free { background: #D6DEEA; }
.tbars { display: flex; gap: 3px; align-items: flex-end; padding: 12px 0 2px; }
.tb { flex: 1 1 0; min-width: 0; max-width: 46px; display: grid; gap: 4px; justify-items: center; }
.tb span { min-height: 14px; }
.tb .stack { width: 100%; height: 120px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 6px; overflow: hidden; background: var(--line-2); }
.tb .stack i { display: block; width: 100%; }
.tb span { font-size: 10.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.dayacc { display: grid; gap: 8px; }
.accd { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--lift); }
.accd > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; }
.accd > summary::-webkit-details-marker { display: none; }
.accd > summary .muted { margin-right: auto; font-size: 13px; }
.accd[open] > summary .ic { transform: rotate(180deg); }
.ilist { list-style: none; margin: 0; padding: 0 14px 12px; display: grid; gap: 6px; }
.ilist li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.ilist .dot { width: 10px; height: 10px; border-radius: 50%; }
.ilist .t { overflow-wrap: anywhere; font-weight: 600; }
.ilist .t .small { font-weight: 500; }

@media (max-width: 600px) { .rfilters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 10px; } .rfilters .f span { font-size: 12.5px; } }

.ag time small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.ag.past .t, .ag.past time { color: var(--ink-2); }
.dayfold > summary > span:first-child { margin-right: auto; }

/* Today's schedule as a calendar day: time runs down, overlapping events side by side (as Google Calendar shows them) */
.dgrid { position: relative; margin: 4px 0 2px; }
.dgrid .hl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.dgrid .hl span { position: absolute; left: 0; top: -9px; background: var(--surface); padding-right: 6px; font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.dgrid .evs { position: absolute; left: 52px; right: 0; top: 0; bottom: 0; }
.dgrid .ev { position: absolute; box-sizing: border-box; overflow: hidden; border-radius: 8px; padding: 3px 8px; background: color-mix(in srgb, var(--c) 16%, white); border-left: 4px solid var(--c); color: var(--ink); font-size: 12.5px; line-height: 1.3; }
.dgrid .ev b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dgrid .ev span { display: block; font-size: 11.5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgrid .ev.past { background: color-mix(in srgb, var(--c) 8%, white); }
.dgrid .ev.past b { color: var(--ink-2); }
.dgrid .ev.now { box-shadow: 0 0 0 2px var(--saffron); z-index: 2; }
.dgrid .nowbar { position: absolute; left: -6px; right: 0; height: 2px; background: var(--kumkum); z-index: 3; }
.dgrid .nowbar::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--kumkum); }
