@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/bodoni-moda.woff2) format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/figtree.woff2) format('woff2');
}

/* ---------- Velvet tokens ---------- */
:root {
  --bg: #17101B;
  --surface: #211826;
  --raised: #2A1F30;
  --ink: #F3E8EC;
  --muted: #AE9AA8;
  --faint: #6F5E6A;
  --line: #31253A;
  --accent: #E3B3A7;
  --accent-ink: #2A1720;
  --accent-soft: #3A2733;
  --danger: #E89A9A;
  --scrim: rgba(5, 2, 6, .55);
  --glass: rgba(33, 24, 38, .74);
  --font-d: 'Bodoni Moda', Georgia, serif;
  --font-b: 'Figtree', system-ui, -apple-system, sans-serif;
  --radius: 18px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); }
body {
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  overscroll-behavior-y: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* Scroll-edge fade under the status bar */
.edge {
  position: fixed; top: 0; left: 0; right: 0; height: calc(var(--safe-top) + 18px);
  background: linear-gradient(var(--bg) 55%, transparent);
  z-index: 5; pointer-events: none;
}

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(var(--safe-top) + 28px) 22px calc(var(--safe-bottom) + 112px);
}
.app.no-tabs { padding-bottom: calc(var(--safe-bottom) + 40px); }

/* ---------- Type ---------- */
.date { font-size: 14px; color: var(--muted); margin: 0; }
.title {
  font-family: var(--font-d); font-weight: 400;
  font-size: 40px; line-height: 1.05; letter-spacing: -0.015em;
  margin: 2px 0 0;
}
.head { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 12px; }
.head + .lede { margin-top: -12px; }
.lede { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.lede b { color: var(--ink); font-weight: 600; }
.sec { margin-top: 32px; }
.sec-h {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 0 0 2px; font-family: var(--font-d); font-weight: 400; font-size: 17px;
}
.sec-h small { font-family: var(--font-b); font-size: 13px; color: var(--muted); }
.empty { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.muted { color: var(--muted); }

/* ---------- The ring: her total inside, today's progress around it ---------- */
.total {
  display: grid; justify-items: center; align-self: start; gap: 4px; padding: 0; margin-top: -4px; border: 0; background: none;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ring { position: relative; width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 179, 167, .13), transparent 68%); }
.ring svg { width: 72px; height: 72px; transform: rotate(-90deg); overflow: visible; }
.ring .track { fill: none; stroke: var(--line); stroke-width: 2.6; }
.ring .arc {
  fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round;
  transition: stroke-dashoffset 700ms var(--ease-in-out);
  filter: drop-shadow(0 0 5px rgba(227, 179, 167, .6));
}
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-d); font-weight: 500; font-size: 32px; color: var(--ink); font-variant-numeric: lining-nums; }
.ring b[data-len="3"] { font-size: 25px; }
.ring b[data-len="4"] { font-size: 20px; }
.ring b[data-len="5"] { font-size: 16px; }
.total-word { font-size: 13px; line-height: 1.2; color: var(--muted); }

/* ---------- Rows ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.row {
  position: relative; display: grid; grid-template-columns: 30px 1fr auto; column-gap: 14px;
  align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.row:last-child { border-bottom: 0; }
.row-main { min-width: 0; padding: 4px 0; }
.row-title { display: block; font-size: 16px; line-height: 1.3; transition: color 200ms ease; overflow-wrap: anywhere; }
.row-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.row.is-done .row-title { color: var(--muted); }
.row.punish .row-sub { color: var(--accent); }
.row.punish .ck-ring { border-color: var(--accent); }
.row.overdue .row-sub { color: var(--danger); }
.meta { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pips { display: flex; gap: 4px; justify-content: flex-end; margin-top: 5px; }
.pips b { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color 200ms ease; }
.pips b.on { background: var(--accent); }
.bloom {
  position: absolute; inset: 0 -22px; pointer-events: none; opacity: 0;
  background: radial-gradient(120px 60px at 37px 50%, rgba(227, 179, 167, .22), transparent 70%);
}

/* ---------- The check: Velvet glow ---------- */
.check {
  position: relative; width: 30px; height: 30px; border: 0; padding: 0;
  background: none; border-radius: 50%; cursor: pointer;
}
.check::before { content: ''; position: absolute; inset: -9px; }
.check:disabled { cursor: default; }
.ck-ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--faint);
  transition: border-color 180ms ease, transform 120ms var(--ease-out), opacity 180ms ease;
}
.check:not(:disabled):active .ck-ring { transform: scale(.88); }
.ck-glow {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F8DCD3, var(--accent) 58%, #B98479);
  box-shadow: 0 0 18px rgba(227, 179, 167, .5);
  opacity: 0; transform: scale(.6);
  transition: opacity 220ms ease, transform 380ms var(--ease-out);
}
.ck-mark {
  position: absolute; left: 3px; top: 3px; width: 24px; height: 24px;
  fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 280ms var(--ease-out);
}
.is-done .ck-glow { opacity: 1; transform: scale(1); }
.is-done .ck-ring { opacity: 0; }
.is-done .ck-mark { stroke-dashoffset: 0; transition-delay: 90ms; }

/* ---------- Buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 20px; min-height: 46px;
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  transition: transform 120ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.block { width: 100%; }
.linkish {
  border: 0; background: none; padding: 6px 0; color: var(--accent); font-weight: 500; cursor: pointer;
  font-size: 14px;
}
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 14px; color: var(--muted); }
.input {
  width: 100%; border: 0; border-radius: 12px; padding: 12px 14px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 16px; line-height: 1.4;
}
.input::placeholder { color: var(--faint); }
textarea.input { resize: none; min-height: 76px; }
.input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.stepper { display: inline-grid; grid-template-columns: 46px 52px 46px; align-items: center; justify-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); width: max-content; }
.stepper button { width: 46px; height: 46px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--accent); }
.stepper button:disabled { color: var(--faint); cursor: default; }
.stepper output { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pair-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pair-fields .field { margin-bottom: 8px; }
.hint { margin: 0 0 18px; font-size: 13px; color: var(--muted); line-height: 1.45; }
select.input { width: 100%; }
.late { color: var(--danger); }
.error { color: var(--danger); font-size: 14px; margin: -6px 0 12px; }

/* ---------- Manage list ---------- */
.mrow {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.list li:last-child > .mrow { border-bottom: 0; }
.mrow .chev { width: 8px; height: 8px; border-right: 1.5px solid var(--faint); border-top: 1.5px solid var(--faint); transform: rotate(45deg); margin-right: 4px; }
.mrow.static { cursor: default; }
.add { font-family: var(--font-b); text-decoration: none; }

/* One kind of thing kept together: its heading, its plus and its rows on one panel. */
.group { margin-top: 18px; padding: 6px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.lede + .group, .title + .group, .fair + .group { margin-top: 26px; }
.group .sec-h { align-items: center; min-height: 56px; margin: 0; font-size: 22px; box-shadow: 0 1px rgba(227, 179, 167, .22); }
.group .mrow, .group .setting { border-bottom-color: rgba(243, 232, 236, .07); }
.group .empty { margin: 0; padding: 16px 0 14px; }
.group .btn.ghost { box-shadow: inset 0 0 0 1.5px rgba(243, 232, 236, .14); }
.group .time-btn { background: var(--raised); }
.group.quiet { background: none; }
.group.quiet .sec-h { color: var(--muted); font-size: 17px; }

/* The plus: the mark is drawn, so it sits exactly in the middle. The tap area is larger than the circle. */
.plus {
  position: relative; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: linear-gradient(var(--accent), var(--accent)) center / 13px 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 13px no-repeat, var(--accent-soft);
  transition: transform 140ms var(--ease-out);
}
.sec-h:has(> .plus) { align-items: center; }
.plus::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; }
.plus:active { transform: scale(.92); }

/* ---------- Overview ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 12px; }
.wk { display: grid; gap: 6px; justify-items: center; font-size: 12px; color: var(--muted); }
.wk .bar { position: relative; width: 100%; height: 48px; border-radius: 7px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.wk .fill { position: absolute; inset: 0; background: var(--accent); opacity: .8; transform-origin: bottom; transform: scaleY(0); transition: transform 600ms var(--ease-in-out); }
.wk.today { color: var(--ink); font-weight: 600; }
.wk.today .fill { opacity: 1; }
.wk.future .bar { background: transparent; box-shadow: inset 0 0 0 1px var(--line); opacity: .5; }
.wrow { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.wrow:last-child { border-bottom: 0; }
.feed li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .t { font-size: 15px; }
.feed .tm { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.feed .n { grid-column: 1 / -1; font-size: 14px; color: var(--muted); font-style: italic; }
.open-list { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.closes { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.closes .linkish { padding: 0; margin-left: 4px; text-decoration: none; }

/* ---------- Her view (owner preview) ---------- */
.preview-bar {
  position: sticky; top: 0; z-index: 7;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: calc(-1 * var(--safe-top) - 28px) -22px 0; padding: calc(var(--safe-top) + 12px) 22px 12px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
}
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; text-decoration: none; }
.back::before { content: ''; width: 8px; height: 8px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { border: 0; background: none; border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 500; color: var(--muted); cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.seg button[aria-selected="true"] { background: var(--accent-soft); color: var(--ink); }
.preview-note { margin: 16px 0 24px; font-size: 14px; color: var(--muted); }
.preview-frame { border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- Rules ---------- */
.rules { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: r; }
.rules li { counter-increment: r; display: grid; grid-template-columns: 28px 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.rules li:last-child { border-bottom: 0; }
.rules li::before { content: counter(r); font-family: var(--font-d); color: var(--accent); font-size: 19px; line-height: 1.2; }

/* ---------- Settings ---------- */
.setting { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting:last-child { border-bottom: 0; }
.setting p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.setting .input { width: auto; padding: 8px 12px; }
.setting select.input { padding-right: 34px; }
select.input { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }

/* ---------- Notifications ---------- */
.notice-card {
  margin: 0 0 26px; padding: 18px 18px 16px; border-radius: var(--radius);
  background: var(--accent-soft);
}
.notice-card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.45; }
.notice-card .nc-title { font-family: var(--font-d); font-size: 21px; color: var(--ink); margin-bottom: 6px; }
.nc-actions { display: flex; gap: 10px; margin-top: 14px; }
.nc-actions .btn { min-height: 42px; padding: 10px 18px; }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.row-btns .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }

/* ---------- Assignment of the day ---------- */
.assign {
  position: relative; margin: 26px -6px 0; padding: 16px 18px 6px; border-radius: var(--radius);
  background: radial-gradient(130% 120% at 0 0, rgba(227, 179, 167, .2), transparent 60%), var(--accent-soft);
  box-shadow: 0 0 34px -10px rgba(227, 179, 167, .35);
}
.assign-h { margin: 0; font-family: var(--font-d); font-weight: 400; font-size: 17px; color: var(--accent); }
.assign .row { border-bottom-color: rgba(227, 179, 167, .16); }
.assign .row-title { font-size: 18px; }
.assign .ck-ring { border-color: var(--accent); }
.assign .bloom { inset: 0 -18px; }
.reward-line { color: var(--accent); }
.cam { position: relative; width: 34px; height: 34px; margin-left: -2px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform 120ms var(--ease-out); }
.cam::before { content: ''; position: absolute; inset: -8px; }
.cam:active { transform: scale(.9); }
.cam svg { display: block; width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(227, 179, 167, .45)); }
.row.is-photo:not(.is-done) .check, .row.is-photo.is-done .cam { display: none; }
.photo-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-big .btn { padding: 12px 6px; white-space: nowrap; }
.assign .btn.ghost { box-shadow: inset 0 0 0 1.5px rgba(227, 179, 167, .35); }
.row.is-photo:not(.is-done) .more { grid-column: 1 / -1; }
.photo-acts.after { margin-top: 10px; }
.mrow.static .chip { padding: 9px 14px; }
.actions .wide { grid-column: 1 / -1; }
.mrow.static { display: block; }
.chips.in-field { margin: 0; }

/* ---------- Point rules ---------- */
.page-seg { margin: 0 0 22px; }
.seg a { display: block; text-align: center; text-decoration: none; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 500; color: var(--muted); }
.seg a[aria-selected="true"] { background: var(--accent-soft); color: var(--ink); }
.line .time-field { flex: none; min-width: 128px; }
.line .time-btn { text-align: center; }
.line .time-btn:not(.is-off) { color: var(--ink); }
.seg.wide.n3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.seg.wide.n3 button { padding: 9px 4px; }
.setting.stack { grid-template-columns: 1fr; }
.setting.stack .row-btns { justify-content: flex-start; }
.field .seg.wide { margin-bottom: 0; }
.seg.wide button { min-height: 40px; }
.sentence { margin: 0 0 20px; font-family: var(--font-d); font-size: 22px; line-height: 1.3; color: var(--accent); overflow-wrap: anywhere; }
.fair { margin: 14px 0 18px; padding: 14px 16px; border-radius: 14px; background: rgba(232, 154, 154, .12); color: var(--danger); font-size: 14px; line-height: 1.45; }
.line { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; color: var(--muted); font-size: 15px; }
.num { display: inline-grid; grid-template-columns: 44px 52px 44px; align-items: center; flex: none; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(243, 232, 236, .14); }
.num button { width: 44px; height: 44px; border: 0; background: none; color: var(--accent); font-size: 20px; cursor: pointer; }
.num-in { width: 100%; border: 0; background: none; text-align: center; font-size: 18px; font-weight: 600; color: var(--ink); padding: 8px 0; appearance: textfield; -moz-appearance: textfield; }
.num-in::-webkit-inner-spin-button, .num-in::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; }
.chips .chip { background: transparent; box-shadow: inset 0 0 0 1px rgba(243, 232, 236, .14); text-align: left; }
.chips .chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); box-shadow: none; }
.mrow.is-off .row-title { color: var(--muted); }
.setting .row-btns { align-items: center; }
.pause-note { margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.45; }
.warn { margin: 12px 0 0; color: var(--danger); font-size: 14px; }

/* ---------- Streak blocks and rules, inside an opened row ---------- */
.fold { display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 9px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(45deg); transition: transform 200ms var(--ease-out); }
.row.open .fold { transform: translateY(3px) rotate(225deg); }
.streak { padding: 4px 0 0 8px; margin-left: -8px !important; }
#app .sk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.sk-head b { font-family: var(--font-d); font-weight: 500; font-size: 26px; line-height: 1; color: var(--accent); margin-right: 3px; font-variant-numeric: lining-nums; }
.sk-grid { display: grid; gap: 7px; margin: 0 -8px; padding: 2px 8px 8px; }
.sk-line { display: flex; align-items: center; gap: 7px; }
.sk-line i { position: relative; flex: none; width: 19px; height: 19px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #4A3A52; }
.sk-line i.on { background: linear-gradient(150deg, #F3CFC5, var(--accent) 55%, #C9968A); box-shadow: none; }
.sk-line i.today:not(.on) { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 12px -1px rgba(227, 179, 167, .4); }
.sk-line i.today.on { box-shadow: 0 0 14px 1px rgba(227, 179, 167, .6); }
.sk-line em { margin-left: 8px; font-style: normal; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sk-line em.got { color: var(--accent); }
#app .panel-rules { display: grid; gap: 3px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* ---------- Her rewards ---------- */
div.total { cursor: default; }
.vault .sec-h { font-size: 22px; margin-bottom: 10px; }
.buy.priced { grid-template-columns: 52px 1fr auto; gap: 12px; padding: 14px 0; }
.price { font-family: var(--font-d); font-weight: 500; font-size: 27px; line-height: 1; color: var(--accent); font-variant-numeric: lining-nums; }
.price small { display: block; margin-top: 4px; font-family: var(--font-b); font-size: 11.5px; color: var(--muted); }
.price.long { font-size: 21px; }
.far .price { color: var(--muted); }
.togo { display: grid; justify-items: center; gap: 3px; min-width: 58px; color: var(--muted); }
.togo svg { width: 26px; height: 26px; transform: rotate(-90deg); fill: none; stroke: var(--line); stroke-width: 3.4; }
.togo circle + circle { stroke: var(--accent); }
.togo small { font-size: 12px; white-space: nowrap; }
.group .buy, .group .wrow { border-bottom-color: rgba(243, 232, 236, .07); }
.group.warm { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(227, 179, 167, .16); }
.group .ledger { padding: 8px 0 10px; }
.head + .group { margin-top: 22px; }

/* ---------- Time field and wheel ---------- */
.time-btn { text-align: left; cursor: pointer; font-variant-numeric: tabular-nums; transition: transform 120ms var(--ease-out); }
.time-btn:active { transform: scale(.98); }
.time-btn.is-off { color: var(--muted); }
.setting .time-btn { min-width: 84px; min-height: 44px; text-align: center; }
.stepper.day { grid-template-columns: 44px 58px 44px; }
.wheels {
  position: relative; display: grid; grid-template-columns: 96px 20px 96px; justify-content: center; align-items: center; margin: 0 0 18px;
}
.wheels::before { content: ''; position: absolute; left: 0; right: 0; top: 88px; height: 44px; border-radius: 14px; background: var(--accent-soft); }
.wheel {
  position: relative; height: 220px; padding: 88px 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
  scroll-snap-type: y mandatory; scrollbar-width: none; text-align: center; border-radius: 14px;
  -webkit-mask-image: linear-gradient(transparent, #000 38%, #000 62%, transparent); mask-image: linear-gradient(transparent, #000 38%, #000 62%, transparent);
}
.wheel::-webkit-scrollbar { display: none; }
.wheel-row {
  height: 44px; line-height: 44px; scroll-snap-align: center; cursor: pointer; font-size: 22px; color: var(--muted);
  font-variant-numeric: tabular-nums; transition: color 120ms ease; user-select: none; -webkit-user-select: none;
}
.wheel-row.on { color: var(--ink); font-weight: 600; }
.wheel-colon { position: relative; text-align: center; font-size: 22px; font-weight: 600; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.quick .chip { padding: 11px 4px; background: transparent; box-shadow: inset 0 0 0 1px rgba(243, 232, 236, .14); font-variant-numeric: tabular-nums; }
.quick .chip.on { background: var(--accent-soft); color: var(--accent); }

/* ---------- Points, photos, rewards ---------- */
.pill {
  display: inline-block; margin: 14px 0 0; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-size: 14px; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; border: 0; cursor: pointer;
}
.preview-note .linkish { padding: 0 4px; }
.pt { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pt.on { color: var(--accent); }
.meta .pt.on { display: block; margin-top: 2px; }
.feed .tm .pt { margin-left: 8px; }
.bonus { color: var(--accent); }
.row-main[data-open] { border: 0; background: none; text-align: left; width: 100%; cursor: pointer; }
.more { grid-column: 2 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 240ms var(--ease-out); }
.row.open .more { grid-template-rows: 1fr; }
.row { scroll-margin: calc(var(--safe-top) + 80px) 0 calc(var(--safe-bottom) + 96px); }
.more-in { overflow: hidden; min-height: 0; opacity: 0; visibility: hidden; transition: opacity 180ms ease, visibility 180ms; }
.row.open .more-in { opacity: 1; visibility: visible; }
.more-in > * { margin: 0 0 12px; }
.more-in > :first-child { margin-top: 10px; }
#app .more-in .input { margin: 2px 2px 12px; width: calc(100% - 4px); min-height: 64px; }
#app .panel-hint { font-size: 14px; color: var(--muted); line-height: 1.45; }
.photo-row { display: flex; gap: 12px; align-items: center; }
.photo-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 0; border-radius: 999px; padding: 11px 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: transform 120ms var(--ease-out);
}
.chip:active { transform: scale(.97); }
.chip:disabled { opacity: .6; }
.thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tile {
  grid-column: 1 / -1; justify-self: start; margin-top: 8px; padding: 22px 26px; border: 0; border-radius: 14px; cursor: pointer;
  color: var(--ink); font-size: 14px; font-weight: 500;
  background: radial-gradient(circle at 30% 25%, rgba(227, 179, 167, .35), transparent 60%), linear-gradient(135deg, var(--raised), var(--accent-soft));
}
.bonus-line { grid-column: 1 / -1; font-size: 14px; color: var(--accent); margin-top: 4px; }
.bonus-line .linkish { margin-left: 8px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.viewer {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(5, 2, 6, .94);
  padding: calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 84px);
}
.viewer .media { max-width: 100%; max-height: calc(100dvh - 130px); object-fit: contain; background: #000; border-radius: 14px; -webkit-touch-callout: none; user-select: none; }
.viewer-acts { position: absolute; bottom: calc(var(--safe-bottom) + 20px); display: flex; gap: 10px; }
.viewer-acts .btn { padding: 12px 18px; white-space: nowrap; }
/* Approve or decline a photo: the logo's heart, or a cross. */
.viewer.has-review { padding-bottom: calc(var(--safe-bottom) + 236px); background: #050206; }
.viewer.has-review [data-save] { background: var(--raised); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.viewer.has-review > .media { max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 262px); }
.review { position: absolute; left: 0; right: 0; bottom: calc(var(--safe-bottom) + 94px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 30px; cursor: default; }
.review p { width: 100%; margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.rv { display: grid; place-items: center; width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: var(--raised); box-shadow: inset 0 0 0 1.5px rgba(243, 232, 236, .12); cursor: pointer; transition: transform 140ms var(--ease-out), opacity 200ms ease; }
.rv:active { transform: scale(.92); }
.rv svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.rv.yes { width: 84px; height: 84px; background: radial-gradient(circle at 50% 40%, #3A2733, var(--raised) 75%); box-shadow: inset 0 0 0 1.5px rgba(227, 179, 167, .38), 0 0 28px -6px rgba(168, 50, 74, .8); }
.rv.yes img { width: 50px; height: 50px; pointer-events: none; transition: transform 420ms var(--ease-out); }
.rv:disabled { cursor: default; }
.is-approved .rv.no, .is-approved .review p, .is-approved .viewer-acts { opacity: 0; transition: opacity 200ms ease; }
.is-approved .rv.yes { transform: scale(1.12); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 60px 6px rgba(168, 50, 74, .9); transition: transform 320ms var(--ease-out), box-shadow 420ms ease; }
.photo-tile.wide { display: block; width: 100%; margin-top: 12px; padding: 18px; }
.viewer .btn.ghost { background: var(--raised); }
.balance { margin: 12px 0 0; color: var(--muted); font-size: 16px; }
.balance b { font-family: var(--font-d); font-weight: 400; font-size: 44px; line-height: 1; color: var(--accent); margin-right: 4px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.actions .btn { padding: 12px 8px; font-size: 14.5px; white-space: nowrap; }
.reward { margin-top: 10px; padding: 18px; border-radius: var(--radius); background: var(--accent-soft); }
.reward h3 { margin: 0; font-family: var(--font-d); font-weight: 400; font-size: 23px; line-height: 1.2; overflow-wrap: anywhere; }
.reward p { margin: 6px 0 14px; color: var(--muted); font-size: 14px; }
.buy { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.buy:last-child { border-bottom: 0; }
.buy .btn { min-height: 42px; padding: 9px 18px; }
.seg.wide { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.more-opts { margin: 0 0 18px; }
.more-opts summary { padding: 8px 0 14px; color: var(--accent); font-weight: 500; font-size: 15px; cursor: pointer; }
.pick { list-style: none; margin: 0 0 16px; padding: 0; }
.pick label { display: flex; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.sheet-text { margin: 0 0 20px; color: var(--muted); line-height: 1.5; }

/* Bringing things over from Obedience */
.imp-title { margin-top: 14px; }
.imp-seg { margin: 18px 0 12px; }
.imp-rules { margin-top: 18px; }
.imp-rules .num { box-shadow: inset 0 0 0 1.5px var(--line); }
.imp-rules .line { color: var(--ink); margin-bottom: 10px; }
.imp-label { margin: 18px 0 8px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.imp-rules .seg.wide { margin-bottom: 0; }
.imp-result { margin-top: 22px; padding: 8px 18px 8px; border-radius: var(--radius); background: var(--surface); }
.imp-result .hint { margin: 10px 0 12px; }
.imp-result .more-opts { margin: 0 0 6px; }
.imp-steps { margin-bottom: 20px; }
.imp-note { margin: 14px 0 0; }
.imp-item { border-bottom: 1px solid var(--line); }
.imp-item:last-child { border-bottom: 0; }
.imp-row { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: center; padding: 14px 0; cursor: pointer; }
.imp-row input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--faint); cursor: pointer; transition: background-color 160ms ease, box-shadow 160ms ease; }
.imp-row input:checked { box-shadow: none; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1720' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.6 3.6 7.6-8.2'/%3E%3C/svg%3E") center / 20px no-repeat; }
.imp-row:has(:disabled) { cursor: default; opacity: .55; }
.imp-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0 0 14px 36px; }
.imp-opts .seg button { min-height: 38px; }
.imp-extra { border-top: 1px solid var(--line); }
.imp-foot { margin-top: 36px; text-align: center; }
.imp-foot .hint { margin: 12px 0 14px; }

/* ---------- Sign-in ---------- */
.signin { min-height: calc(100dvh - var(--safe-top) - 80px); display: grid; align-content: center; justify-items: center; text-align: center; gap: 0; }
.signin .mark { width: 96px; height: auto; margin-bottom: 22px; filter: drop-shadow(0 0 26px rgba(168, 50, 74, .5)); }
.signin .title { font-size: 48px; }
.signin p { color: var(--muted); max-width: 30ch; margin: 12px 0 30px; }
.signin .btn { min-width: 240px; }
.signin .g { width: 18px; height: 18px; }
.signin .dev { margin-top: 26px; display: grid; gap: 10px; }
.signin .notice { color: var(--danger); margin: -14px 0 24px; max-width: 32ch; font-size: 14px; }

.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.days button { height: 44px; width: 100%; padding: 0; border: 0; border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color 160ms ease, color 160ms ease, transform 120ms var(--ease-out); }
.days button:active { transform: scale(.95); }
.days button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.field small { font-size: 13px; color: var(--accent); line-height: 1.4; }

.await .row.asked { padding: 12px 0; border-bottom: 1px solid rgba(227, 179, 167, .16); }
.await .row.asked:last-child { padding-bottom: 2px; border-bottom: 0; }
.await .row.asked .ck-ring { border-color: var(--accent); }
.await .row.asked .bloom { inset: 0 -18px; }

.price-up { color: var(--accent); }
.sheet .line[hidden] { display: none; }

/* ---------- Saved photos ---------- */
.kept { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.kept-open { display: grid; grid-template-columns: 1fr auto; gap: 8px 10px; align-items: baseline; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; transition: transform 120ms var(--ease-out); }
.kept-open:active { transform: scale(.98); }
.kept-img { grid-column: 1 / -1; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--surface); }
.kept-img img { display: block; width: 100%; height: 100%; object-fit: cover; filter: blur(16px) saturate(.9); transform: scale(1.14); }
.kept-t { min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.kept-d { font-size: 13px; color: var(--muted); white-space: nowrap; }
.kept-note { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 14px 0 0; padding: 10px 16px; border-radius: 14px; background: var(--accent-soft); font-size: 14px; line-height: 1.45; }
.kept-note[hidden] { display: none; }
.kept-note .linkish { flex: none; padding: 8px 0 8px 10px; }

/* ---------- Points list, new rewards, approvals ---------- */
.ledger { list-style: none; margin: 4px 0 0; padding: 0; }
.ledger li { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: baseline; padding: 6px 0; font-size: 14px; line-height: 1.35; }
.lg-d { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lg-t { min-width: 0; overflow-wrap: anywhere; }
.lg-head { display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; margin: -8px 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.lg-head .chev { width: 7px; height: 7px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: translateX(-1px) rotate(-45deg); transition: transform 200ms var(--ease-out); } /* points right when closed */
.lg-head[aria-expanded="true"] .chev { transform: translateY(-2px) rotate(45deg); } /* points down when open */
.new-dot { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; box-shadow: 0 0 8px rgba(227, 179, 167, .7); }
.total .ring::before, .total .ring::after { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; pointer-events: none; }
.total.has-new .ring::before { animation: pulse 2.8s var(--ease-out) infinite; }
.total.has-new .ring::after { animation: pulse 2.8s var(--ease-out) 500ms infinite; }
@keyframes pulse { 0% { opacity: 0; transform: scale(1); } 12% { opacity: .7; } 60%, 100% { opacity: 0; transform: scale(1.34); } }
.tabs a.has-new::before { content: ''; position: absolute; left: calc(50% + 30px); top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px rgba(227, 179, 167, .7); }
.waiting { color: var(--accent); }
.row.is-waiting .cam svg { filter: none; opacity: .55; }
.else-line { text-align: center; }
.await { margin-top: 26px; padding: 18px; border-radius: var(--radius); background: var(--accent-soft); }
.await .sec-h { margin-bottom: 4px; color: var(--accent); }
.await li { padding: 10px 0 12px; border-bottom: 1px solid rgba(227, 179, 167, .16); }
.await li:last-child { border-bottom: 0; padding-bottom: 0; }
.await-acts { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 12px; }
.await .btn.ghost { box-shadow: inset 0 0 0 1.5px rgba(227, 179, 167, .35); }

/* ---------- Tab bar ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  display: flex; justify-content: center; gap: 8px;
  padding: 8px 12px calc(var(--safe-bottom) + 10px);
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 -1px 0 var(--line);
}
.tabs a {
  position: relative; flex: 0 1 140px; text-align: center; text-decoration: none;
  padding: 12px 4px 14px; font-size: 14px; font-weight: 500; color: var(--muted);
  -webkit-tap-highlight-color: transparent;
}
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after {
  content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}

/* ---------- Sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.sheet-wrap.open { pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 280ms ease; }
.sheet-wrap.open .scrim { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px;
  max-height: calc(100dvh - var(--safe-top) - 24px); overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 22px calc(var(--safe-bottom) + 24px);
  border-radius: 28px 28px 0 0; background: var(--raised);
  transform: translateY(100%); transition: transform 440ms var(--ease-drawer);
}
.sheet-wrap.open .sheet { transform: translateY(0); }
.sheet.kb { padding-bottom: 16px; border-radius: 28px; }
.grab { width: 38px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 16px; }
.sheet .btn.ghost, .sheet .btn.danger { box-shadow: inset 0 0 0 1.5px rgba(243, 232, 236, .14); }
.sheet .input { background-color: var(--bg); }
.sheet .stepper { box-shadow: inset 0 0 0 1.5px rgba(243, 232, 236, .14); }
.sheet-head {
  position: sticky; top: -10px; z-index: 3; display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  margin: 0 -22px 8px; padding: 10px 22px; background: linear-gradient(var(--raised) 82%, transparent);
}
.sheet-head .linkish { flex: none; padding: 10px 0 10px 14px; font-size: 15px; color: var(--muted); }
.sheet h2 { margin: 0; font-family: var(--font-d); font-weight: 400; font-size: 28px; letter-spacing: -0.015em; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 12px; right: 12px; top: calc(var(--safe-top) + 10px); z-index: 50;
  max-width: 520px; margin: 0 auto; padding: 14px 16px; border-radius: 18px;
  background: var(--glass); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line);
  font-size: 15px;
  transform: translateY(calc(-100% - var(--safe-top) - 20px));
  transition: transform 420ms var(--ease-drawer);
  pointer-events: none;
}
.toast.show { transform: translateY(0); }

/* ---------- Vault ---------- */
.vault-card {
  position: relative; display: grid; grid-template-columns: 76px 1fr; gap: 14px 16px; margin-top: 12px; padding: 16px;
  border-radius: var(--radius); background: linear-gradient(150deg, #2C1E30 0%, #1F1623 65%);
  box-shadow: inset 0 0 0 1px rgba(227, 179, 167, .12), 0 14px 34px -22px rgba(0, 0, 0, .9);
}
.vc-body { min-width: 0; align-self: center; }
.vc-kind { margin: 0 0 3px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.vc-body h3 { margin: 0; font-family: var(--font-d); font-weight: 400; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.vc-teaser { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.vc-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(227, 179, 167, .1); }
.vc-price { font-size: 15px; font-variant-numeric: tabular-nums; }
.vc-price small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.vc-price .vc-gone { color: var(--accent); }
.vc-foot .btn { min-height: 42px; padding: 9px 22px; }

/* The cover: velvet doors with a seam, a glow behind them that shows when they open. */
.v-cover {
  position: relative; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; isolation: isolate;
  background: #1A121D; box-shadow: inset 0 0 0 1px rgba(227, 179, 167, .18);
}
.v-cover.small { width: 56px; height: 56px; border-radius: 14px; }
.v-cover .v-glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(closest-side, rgba(227, 179, 167, .55), rgba(227, 179, 167, 0)); opacity: 0; transform: scale(.6); transition: opacity 520ms var(--ease-out), transform 620ms var(--ease-out); }
.v-cover .v-half {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 1;
  background: radial-gradient(140% 120% at 30% 15%, #4A3140 0%, #2A1C2C 55%, #1A121D 100%);
  transition: transform 560ms var(--ease-in-out);
}
.v-cover .v-half.l { left: 0; background-size: 200% 100%; background-position: 0 0; box-shadow: inset -1px 0 0 rgba(227, 179, 167, .28); }
.v-cover .v-half.r { right: 0; background-size: 200% 100%; background-position: 100% 0; }
.v-cover .v-glyph { position: relative; z-index: 2; transition: transform 560ms var(--ease-out), color 400ms ease; }
.v-cover::after {
  content: ''; position: absolute; inset: -40%; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(243, 232, 236, .13) 50%, transparent 58%);
  transform: translateX(-60%); animation: sheen 7s var(--ease-in-out) infinite;
}
@keyframes sheen { 0%, 62% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.v-cover.is-opening .v-half.l { transform: translateX(-101%); }
.v-cover.is-opening .v-half.r { transform: translateX(101%); }
.v-cover.is-opening .v-glow { opacity: 1; transform: scale(1.15); }
.v-cover.is-opening .v-glyph { transform: scale(1.18); color: var(--ink); }
.v-cover.is-opening::after { animation: none; opacity: 0; }
.v-glyph { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--accent); }
.v-cover.small .v-glyph { width: 26px; height: 26px; }

.vault-mine { margin-top: 10px; }
.vault-mine .mrow, .v-row { grid-template-columns: auto 1fr auto; gap: 14px; }
.vm-text, .v-row-text { min-width: 0; }
.v-thumb { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: radial-gradient(140% 120% at 30% 15%, #4A3140 0%, #2A1C2C 60%); }
.v-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v-thumb .v-glyph { width: 24px; height: 24px; }
.v-thumb.is-video .v-glyph { position: absolute; color: var(--ink); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.v-mini { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.v-mini .v-glyph { width: 22px; height: 22px; }
.v-mini.is-open { background: var(--accent-soft); }
.v-mini.is-expired .v-glyph, .v-mini.is-uploading .v-glyph { color: var(--faint); }
.v-mini.is-failed .v-glyph { color: var(--danger); }
.v-mini.is-processing { animation: breathe-soft 1.8s ease-in-out infinite; }
@keyframes breathe-soft { 50% { box-shadow: inset 0 0 0 1px var(--accent); } }
.v-progress { position: relative; display: block; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--line); overflow: hidden; }
.v-progress::before { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); border-radius: 3px; background: var(--accent); transition: width 300ms var(--ease-out); }
.up { display: grid; gap: 8px; margin: 0 0 14px; }
.up .v-progress { margin: 0; }
.up-text { font-size: 13px; color: var(--muted); }
.v-sheet-top { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 18px; }
.v-sheet-top .hint { margin: 0; }
.v-sheet-top .btn { padding: 10px 18px; }
.v-sheet-top .v-cover::after { animation: none; }
.file-pick { display: grid; justify-items: center; gap: 8px; margin-bottom: 16px; }
.file-pick img, .file-pick video { max-width: 100%; max-height: 220px; border-radius: 14px; background: #000; }
.file-pick audio { width: 100%; }
.file-pick .hint { margin: 0; text-align: center; overflow-wrap: anywhere; }

/* Recording */
.rec { display: grid; justify-items: center; gap: 10px; margin-bottom: 6px; }
.rec .field { width: 100%; }
.rec-meter { width: 100%; height: 64px; display: flex; align-items: center; gap: 3px; }
.rec-meter i { flex: 1; height: var(--h, 4%); min-height: 3px; border-radius: 99px; background: rgba(243, 232, 236, .18); transition: height 90ms linear, background-color 200ms ease; }
.rec.is-recording .rec-meter i { background: var(--accent); }
.rec-time { margin: 2px 0 0; font-family: var(--font-d); font-size: 34px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.rec-btn { display: grid; place-items: center; width: 78px; height: 78px; margin-top: 6px; border: 0; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 3px var(--accent); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rec-btn span { width: 58px; height: 58px; border-radius: 50%; background: var(--accent); transition: width 240ms var(--ease-out), height 240ms var(--ease-out), border-radius 240ms var(--ease-out); }
.rec-btn:active span { transform: scale(.94); }
.rec-btn:disabled { opacity: .4; cursor: default; }
.rec.is-recording .rec-btn span { width: 28px; height: 28px; border-radius: 7px; }
.rec.is-recording .rec-btn { animation: rec-ring 1.6s ease-out infinite; }
@keyframes rec-ring { 0% { box-shadow: inset 0 0 0 3px var(--accent), 0 0 0 0 rgba(227, 179, 167, .45); } 100% { box-shadow: inset 0 0 0 3px var(--accent), 0 0 0 18px rgba(227, 179, 167, 0); } }
.rec-hint { margin: 0; text-align: center; }
.cam-stage { position: relative; display: grid; place-items: center; width: 100%; min-height: 220px; border-radius: 18px; overflow: hidden; background: #0B070D; }
.cam-stage video { display: block; width: 100%; max-height: 46dvh; object-fit: contain; }
.cam-stage video.mirror { transform: scaleX(-1); }
.cam-time { position: absolute; top: 12px; left: 12px; padding: 5px 12px 5px 26px; border-radius: 99px; background: rgba(11, 7, 13, .7); font-size: 14px; font-variant-numeric: tabular-nums; }
.cam-time[hidden] { display: none; }
.cam-time::before { content: ''; position: absolute; left: 11px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--accent); animation: rec-dot 1.6s ease-in-out infinite; }
@keyframes rec-dot { 50% { opacity: .25; } }
.cam-flip { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(11, 7, 13, .7); cursor: pointer; }
.cam-flip[hidden] { display: none; }
.cam-flip svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.group .v-mini { background: var(--raised); }
.v-add .v-mini { background: var(--accent-soft); box-shadow: none; }
.group .v-mini.is-open { background: var(--accent-soft); }
.group .v-progress { background: rgba(243, 232, 236, .1); }
.group .row.asked:last-child { border-bottom: 0; }
.rec .pair { width: 100%; margin: 4px 0 6px; }
.rec.is-video { margin-bottom: 18px; }

/* The player */
.vplayer {
  position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; overflow-y: auto;
  padding: calc(var(--safe-top) + 68px) 22px calc(var(--safe-bottom) + 32px);
  background: radial-gradient(90% 60% at 50% 32%, #3A2431 0%, #1C131F 55%, #0E0911 100%);
  opacity: 0; transition: opacity 240ms ease;
}
.vplayer.open { opacity: 1; }
.vp-close { position: absolute; top: calc(var(--safe-top) + 14px); right: 16px; padding: 9px 18px; }
.vp-stage { width: min(100%, 560px); display: grid; justify-items: center; gap: 16px; text-align: center; transform: translateY(14px); transition: transform 460ms var(--ease-out); }
.vplayer.open .vp-stage { transform: none; }
.vp-head { width: 100%; }
.vp-kicker { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.vp-title { margin: 8px 0 0; font-family: var(--font-d); font-weight: 400; font-size: clamp(30px, 9vw, 46px); line-height: 1.08; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.vp-teaser { margin: 10px auto 0; max-width: 32em; color: var(--muted); font-size: 15px; line-height: 1.45; }
.is-video .vp-title, .is-photo .vp-title { font-size: clamp(24px, 6vw, 32px); }
.vp-wave { position: relative; width: 100%; height: 112px; margin-top: 22px; cursor: pointer; touch-action: none; --p: 0%; }
.vp-wave:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 6px; border-radius: 8px; }
.vp-bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; pointer-events: none; }
.vp-bars i { flex: 1; height: var(--h); min-height: 3px; border-radius: 99px; background: rgba(243, 232, 236, .17); }
.vp-bars.is-lit { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.vp-bars.is-lit i { background: var(--accent); }
.vplayer.open .vp-bars i { animation: bar-in 640ms var(--ease-out) both; animation-delay: calc(var(--i) * 5ms + 120ms); }
@keyframes bar-in { from { transform: scaleY(.04); opacity: 0; } }
.vp-times { width: 100%; display: flex; justify-content: space-between; margin-top: -6px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vp-play { display: grid; place-items: center; width: 78px; height: 78px; margin-top: 8px; border: 0; border-radius: 50%; background: var(--accent); color: var(--accent-ink); cursor: pointer; box-shadow: 0 12px 40px -10px rgba(227, 179, 167, .55); transition: transform 160ms var(--ease-out); -webkit-tap-highlight-color: transparent; }
.vp-play:active { transform: scale(.94); }
.vp-play svg { width: 30px; height: 30px; fill: currentColor; }
.is-playing .vp-play { animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 12px 60px -4px rgba(227, 179, 167, .8); } }
.vp-video { width: 100%; max-height: calc(100dvh - 280px); border-radius: 16px; background: #000; }
.vp-photo { max-width: 100%; max-height: calc(100dvh - 250px); border-radius: 16px; object-fit: contain; }

@media (hover: hover) and (pointer: fine) {
  .btn.ghost:hover, .btn.danger:hover { background: var(--surface); }
  .mrow:hover .row-title { color: var(--accent); }
  .tabs a:hover { color: var(--ink); }
  .group .btn.ghost:hover { background: var(--raised); }
  .plus:hover { background-color: #4A3240; }
}

@media (prefers-reduced-motion: reduce) {
  .total.has-new .ring::before { animation: none; opacity: .5; transform: scale(1.12); }
  .total.has-new .ring::after { animation: none; }
  .toast, .sheet, .ring .arc, .wk .fill { transition-duration: 1ms !important; }
  .plus:active, .rv:active, .is-approved .rv.yes { transform: none; }
  .toast:not(.show) { opacity: 0; }
  .ck-glow { transform: none !important; }
  .cam-time::before, .v-cover::after, .v-mini.is-processing, .rec.is-recording .rec-btn, .is-playing .vp-play, .vplayer.open .vp-bars i { animation: none; }
  .vplayer, .vp-stage, .rec-btn span, .rec-meter i { transition-duration: 1ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .tabs, .toast { background: var(--raised); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Relationships: the partner's name opens the list ---------- */
.who {
  font: inherit; letter-spacing: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; border-radius: 10px;
  transition: transform 140ms var(--ease-out);
}
.who:active { transform: scale(.97); }
.who-chev {
  width: 9px; height: 9px; margin-top: -6px; flex: none;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg);
}
.rels { margin-top: 6px; }
.rel { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid rgba(243, 232, 236, .07); }
.rel:last-child { border-bottom: 0; }
.rel-pick {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 12px 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
}
.rel-pick:active .rel-mono { transform: scale(.94); }
.rel-mono {
  flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  font-family: var(--font-d); font-size: 20px; color: var(--muted);
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform 140ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.rel.is-here .rel-mono { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 18px rgba(227, 179, 167, .28); }
.rel.is-here .row-sub { color: var(--accent); }
.rel-mono.is-add {
  background: linear-gradient(var(--accent), var(--accent)) center / 13px 1.5px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 1.5px 13px no-repeat, var(--accent-soft);
  box-shadow: none;
}
.rel .linkish { flex: none; padding: 10px 0 10px 8px; }
@media (prefers-reduced-motion: reduce) { .who, .rel-mono { transition: none; } }

/* Video assignments */
.viewer video.media { width: 100%; }
.video-up { display: grid; gap: 8px; margin-top: 12px; }
.video-up[hidden] { display: none; }
.video-up .v-progress { margin: 0; }
.thumb.video { position: relative; }
.thumb.video::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(11, 7, 13, .55) 0 14px, transparent 15px), linear-gradient(transparent, transparent); pointer-events: none; }
.thumb.video::before { content: ''; position: absolute; z-index: 1; left: 50%; top: 50%; margin: -6px 0 0 -4px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); pointer-events: none; }

/* Trimming a video before it is sent */
.trim-video { display: block; width: 100%; max-height: 40dvh; border-radius: 14px; background: #000; object-fit: contain; }
.trim-range { position: relative; height: 44px; margin: 18px 6px 4px; }
.trim-range::before { content: ''; position: absolute; left: 0; right: 0; top: 20px; height: 4px; border-radius: 4px; background: var(--line); }
.trim-fill { position: absolute; top: 20px; height: 4px; border-radius: 4px; background: var(--accent); }
.trim-range input { position: absolute; left: -6px; top: 0; width: calc(100% + 12px); height: 44px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.trim-range input::-webkit-slider-runnable-track { background: none; height: 44px; }
.trim-range input::-moz-range-track { background: none; }
.trim-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 40px; margin-top: 2px; border: 0; border-radius: 9px; background: var(--accent); box-shadow: 0 0 0 3px rgba(23, 16, 27, .9), 0 2px 10px rgba(0, 0, 0, .5); cursor: grab; }
.trim-range input::-moz-range-thumb { pointer-events: auto; width: 26px; height: 40px; border: 0; border-radius: 9px; background: var(--accent); cursor: grab; }
.trim-times { margin: 6px 0 14px; text-align: center; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.trim .photo-big { margin-top: 6px; }

/* Changes the owner made by hand, on her Today */
.notes { margin: 14px 0 0; padding: 12px 16px 6px; border-radius: 14px; background: var(--accent-soft); }
.notes-h { margin: 0 0 4px; font-family: var(--font-b); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.notes ul { margin: 0; padding: 0; list-style: none; }
.notes li { display: flex; gap: 14px; padding: 8px 0; font-size: 15px; line-height: 1.4; }
.notes li + li { box-shadow: 0 -1px rgba(227, 179, 167, .18); }
.nt-d { flex: none; width: 54px; color: var(--muted); font-size: 13px; padding-top: 2px; }
.nt-t { min-width: 0; overflow-wrap: anywhere; }
.nt-t b { font-weight: 600; }

/* Sending a video in the background: a thin bar at the very top, and a small label under it */
.up-bar { position: fixed; z-index: 60; top: 0; left: 0; right: 0; pointer-events: none; }
.up-fill { display: block; height: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 400ms var(--ease-out); box-shadow: 0 0 10px rgba(227, 179, 167, .6); }
.up-bar.is-waiting .up-fill { background: var(--muted); box-shadow: none; animation: up-wait 1.6s ease-in-out infinite; }
@keyframes up-wait { 50% { opacity: .35; } }
.up-pill { position: fixed; top: auto; bottom: calc(var(--safe-bottom) + 76px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 14px; border-radius: 99px; background: rgba(34, 24, 40, .92); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--muted); white-space: nowrap; pointer-events: auto; font-variant-numeric: tabular-nums; }
.up-pill button { padding: 4px 10px; border: 0; border-radius: 99px; background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .up-fill { transition: none; } .up-bar.is-waiting .up-fill { animation: none; } }

/* Her habits (every day + this week) share one panel; the two lists are its sub-headings. */
.habits .sec { margin-top: 0; padding-bottom: 6px; }
.habits .sec + .sec { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px; }
.habits .sec .sec-h { min-height: 0; padding: 12px 0 4px; box-shadow: none; font-family: var(--font-b); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.habits > .sec-h { padding-top: 0; }
.habits .sec .sec-h small { text-transform: none; letter-spacing: 0; }

/* Delete lives inside the opened photo or video, as a small trash icon. */
.viewer-trash { position: absolute; top: calc(var(--safe-top) + 14px); right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.viewer-trash svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.viewer-trash:disabled { opacity: .5; }

/* The owner's try-out: her screen inside a frame, with her own tab bar at its bottom. */
.her-frame { display: flex; flex-direction: column; height: calc(100svh - 190px); min-height: 440px; border-radius: 30px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 0 44px -14px rgba(227, 179, 167, .3); }
.her-frame .preview-frame { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-top: 0; padding: 14px 16px 24px; }
.her-tabs { display: flex; justify-content: center; gap: 6px; padding: 4px 8px 10px; background: var(--glass); box-shadow: 0 -1px 0 var(--line); }
.her-tabs button { position: relative; flex: 0 1 100px; border: 0; background: none; padding: 12px 4px 14px; font: 500 14px var(--font-b); color: var(--muted); cursor: pointer; }
.her-tabs button[aria-current="page"] { color: var(--ink); }
.her-tabs button[aria-current="page"]::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }

.preview-bar { justify-content: flex-start; }
.preview-title { font-family: var(--font-d); font-size: 18px; color: var(--ink); padding-left: 14px; margin-left: 2px; box-shadow: -1px 0 var(--line); }
.preview-reset { margin-left: auto; font-size: 14px; }
.preview-bar + .her-frame { margin-top: 16px; }
.lede + .page-seg { margin-top: 16px; }

/* In the Vault list the pictures are blurred; only the opened photo or video is sharp. */
.vault-list .v-thumb img { filter: blur(9px); transform: scale(1.3); }

/* One habit's photos and videos: the latest large, swipe through, a strip along the bottom. */
.gallery { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: #050206; }
.g-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; padding: calc(var(--safe-top) + 12px) 14px 8px; }
.g-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.g-btn.is-ghost { background: none; box-shadow: none; }
.g-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.g-title { text-align: center; min-width: 0; }
.g-title b { display: block; font-family: var(--font-d); font-weight: 400; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-title span { font-size: 13px; color: var(--muted); }
.g-stage { flex: 1; min-height: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.g-stage::-webkit-scrollbar { display: none; }
.g-slide { flex: none; width: 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: grid; place-items: center; padding: 6px 14px; }
.g-media { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; background: #000; -webkit-touch-callout: none; user-select: none; }
.g-bottom { padding: 6px 0 calc(var(--safe-bottom) + 14px); }
.g-count { margin: 0 0 8px; text-align: center; font-size: 13px; color: var(--muted); }
.g-strip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px; scrollbar-width: none; }
.g-strip::-webkit-scrollbar { display: none; }
.g-thumb { position: relative; flex: none; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 11px; overflow: hidden; cursor: pointer; display: grid; place-items: center; background: radial-gradient(140% 120% at 30% 15%, #4A3140, #2A1C2C 60%); opacity: .55; transition: opacity 160ms ease, transform 160ms ease; }
.g-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(7px); transform: scale(1.35); }
.g-thumb .v-glyph { position: relative; width: 22px; height: 22px; color: var(--ink); filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.g-thumb.on { opacity: 1; box-shadow: 0 0 0 2px var(--accent); transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .g-thumb { transition: none; } }

/* Owner's overview: what is open in one card, streaks and weekly habits in panels, Latest as a timeline. */
.ov-card { margin-top: 18px; padding: 16px 18px 14px; border-radius: 20px; background: radial-gradient(130% 120% at 0 0, rgba(227, 179, 167, .2), transparent 60%), var(--accent-soft); box-shadow: 0 0 34px -12px rgba(227, 179, 167, .35); }
.ov-card.is-calm { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ov-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.ov-top small { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.ov-card.is-calm .ov-top small { color: var(--muted); }
.ov-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(227, 179, 167, .7); }
.ov-check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.ov-check svg { width: 14px; height: 14px; fill: none; stroke: var(--accent-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ov-open { list-style: none; margin: 0; padding: 0; }
.ov-open li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid rgba(227, 179, 167, .14); font-family: var(--font-d); font-size: 19px; }
.ov-open li:first-child { border-top: 0; }
.ov-open em { font-family: var(--font-b); font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.ov-open .more { font-family: var(--font-b); font-size: 14px; color: var(--muted); }
.ov-card.is-calm .ov-open li { font-size: 16px; color: var(--muted); }
.ov-card .week { gap: 7px; margin-top: 12px; }
.ov-card .wk .bar { height: 30px; border-radius: 9px; background: rgba(23, 16, 27, .45); }
.ov-card.is-calm .wk .bar { background: var(--bg); }
.wrow > span:first-child { flex: 1; min-width: 0; }
.wrow .blocks { display: inline-flex; gap: 4px; margin-right: 12px; }
.blocks i { width: 12px; height: 12px; border-radius: 4px; box-shadow: inset 0 0 0 1.4px #4A3A52; }
.blocks i.on { background: var(--accent); box-shadow: none; }
.seg3 { display: inline-flex; gap: 4px; margin-right: 12px; }
.seg3 i { width: 22px; height: 8px; border-radius: 4px; background: #3a2c42; }
.seg3 i.on { background: var(--accent); }
.wrow .muted { white-space: nowrap; }
.tl { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 1.5px solid var(--line); }
.tl .tday { margin: 14px 0 4px -14px; padding-left: 18px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.tl .ev { position: relative; display: block; padding: 10px 0 12px 16px; border: 0; }
.tl .ed { position: absolute; left: -20px; top: 17px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); }
.tl .ed.big { background: var(--accent); }
.tl .et { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tl .et b { font-weight: 500; font-size: 15.5px; }
.tl .n { display: block; margin-top: 2px; }
.ev-thumb { display: block; width: 64px; height: 64px; margin-top: 10px; border-radius: 14px; padding: 0; border: 0; cursor: pointer; }
.ev-thumb img { filter: blur(9px); transform: scale(1.3); }
.tl .bonus-line { display: block; margin-top: 8px; }
.tl .tm { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl .tm .pt { margin-left: 8px; }
.tl .n { font-size: 14px; color: var(--muted); font-style: italic; }
