/* saath: one stylesheet. Tokens first, then base, components, views. */

@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/bricolage-grotesque-700.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-400.woff2") format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/dm-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/caveat-500.woff2") format("woff2"); }

:root {
  --ground: #13111C;
  --surface: #1E1B2B;
  --surface-2: #292540;
  --line: #3A3555;
  --text: #F4F0EA;
  --muted: #ADA7C2;
  --paper: #F4F0EA;
  --ink: #13111C;
  --blue: #6AA5FF;
  --pink: #FF8DB5;
  --sun: #FFC857;
  --me: var(--blue);
  --partner: var(--pink);

  --ink-soft: #5D5870;
  --paper-line: #E2DCD2;
  --danger: #FF8A7A;

  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;

  --r-card: 22px;
  --col: 440px;
  --gutter: 20px;
  --tab-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --spring: cubic-bezier(.34, 1.5, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.45 var(--body);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }
body { margin: 0; min-height: 100dvh; overscroll-behavior-y: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--me); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* hidden switch used for the iPhone haptic tick */
.hx { position: fixed; left: -200px; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ---------- app column ---------- */
#app {
  position: relative;
  max-width: var(--col);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--ground);
}
@media (min-width: 600px) {
  html, body { background: #0D0B14; }
  #app { box-shadow: 0 0 0 1px #221F31, 0 30px 80px rgba(0,0,0,.35); }
}

.boot { position: fixed; inset: 0; display: grid; place-items: center; z-index: 1; }
#app[data-ready="true"] .boot { display: none; }
.boot-mark { display: flex; }
.boot-mark i { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); opacity: .85; animation: boot 1.6s var(--ease-in-out) infinite alternate; }
.boot-mark i + i { background: var(--pink); margin-left: -12px; mix-blend-mode: screen; animation-delay: -.8s; }
@keyframes boot { to { transform: scale(.82); opacity: .5; } }

#views { position: relative; }
.view {
  min-height: 100dvh;
  padding: calc(var(--safe-t) + 14px) var(--gutter) calc(var(--tab-h) + var(--safe-b) + 28px);
}
.view-join, .view-onboard { padding-bottom: calc(var(--safe-b) + 28px); }

/* ---------- type ---------- */
.wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font: 700 23px/1 var(--display);
  letter-spacing: -.02em;
}
.wordmark .mark { display: inline-flex; }
.wordmark .mark i { width: 13px; height: 13px; border-radius: 50%; background: var(--blue); }
.wordmark .mark i + i { background: var(--pink); margin-left: -5px; mix-blend-mode: screen; }
h1, h2, h3 { margin: 0; font-weight: 500; }
.h-view { font: 700 30px/1.1 var(--display); letter-spacing: -.02em; }
.h-sec { font: 500 14px/1 var(--body); color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 54px; padding: 0 26px;
  border-radius: 999px;
  font: 700 17px/1 var(--display);
  letter-spacing: -.005em;
  transition: transform .18s var(--ease-out), background-color .2s, opacity .2s;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--me); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn-soft { background: var(--surface-2); color: var(--text); }
.btn-ghost { color: var(--muted); min-height: 44px; padding: 0 14px; font: 500 15px/1 var(--body); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .38; pointer-events: none; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--muted);
  background: var(--surface);
  transition: transform .18s var(--ease-out), background-color .2s, color .2s;
}
.icon-btn:active { transform: scale(.92); background: var(--surface-2); }
.icon-btn svg, .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.link-btn { color: var(--muted); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; padding: 10px; }

/* ---------- tab bar ---------- */
.tabbar {
  position: fixed; z-index: 20;
  left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100%, var(--col));
  display: grid; grid-template-columns: repeat(3, 1fr);
  padding: 8px 14px calc(var(--safe-b) + 8px);
  background: rgba(19, 17, 28, .97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(58, 53, 85, .55);
}
.tab {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  height: 52px; justify-content: center;
  text-decoration: none; color: var(--muted);
  font: 500 12px/1 var(--body);
  transition: color .25s;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab svg .fill { fill: currentColor; stroke: none; }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] svg { stroke: var(--me); }
.tab[aria-current="page"] svg .fill { fill: var(--me); }
.tab:active svg { transform: scale(.9); }
.tab svg { transition: transform .15s var(--ease-out); }
.tab-pill {
  position: absolute; z-index: 0; top: 8px; left: 14px;
  width: calc((100% - 28px) / 3); height: 52px;
  border-radius: 18px;
  background: var(--surface);
  transition: transform .42s var(--spring);
}

/* ---------- offline pill, toast ---------- */
.offline-pill {
  position: fixed; z-index: 60; top: calc(var(--safe-t) + 10px); left: 50%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  font: 500 13px/1 var(--body);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  animation: drop-in .35s var(--ease-out);
}
.offline-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes drop-in { from { opacity: 0; transform: translate(-50%, -10px); } }

.toast-host { position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + var(--safe-b) + 18px); width: min(100% - 40px, 400px); display: grid; justify-items: center; pointer-events: none; }
.toast {
  padding: 12px 18px; border-radius: 16px;
  background: var(--paper); color: var(--ink);
  font: 500 15px/1.3 var(--body);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  animation: toast-in .35s var(--spring);
}
.toast.out { animation: toast-out .25s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- sheets ---------- */
.sheet-root { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.scrim { position: absolute; inset: 0; background: rgba(8, 7, 13, .62); opacity: 0; transition: opacity .3s; }
.sheet-root.open .scrim { opacity: 1; }
.sheet {
  position: relative;
  width: min(100%, var(--col));
  max-height: calc(100dvh - var(--safe-t) - 24px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.35);
  transform: translateY(102%);
  transition: transform .42s var(--ease-out);
  outline: none;
}
.sheet-root.open .sheet { transform: none; }
.sheet-root.dragging .sheet { transition: none; }
.sheet-head { padding: 10px 22px 6px; touch-action: none; cursor: grab; }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet-title { font: 700 22px/1.15 var(--display); letter-spacing: -.015em; }
.sheet-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.sheet-body { padding: 14px 22px 8px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.sheet-foot { display: flex; gap: 10px; align-items: center; padding: 10px 22px calc(var(--safe-b) + 16px); }
.sheet-foot .btn-primary { flex: 1; }

/* ---------- segmented ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--ground); border-radius: 999px; padding: 4px; position: relative; }
.seg button { position: relative; z-index: 1; height: 40px; border-radius: 999px; font: 500 15px/1 var(--body); color: var(--muted); transition: color .2s; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.seg button svg { width: 18px; height: 18px; }
.seg button[aria-pressed="true"] { color: var(--text); }
.seg-pill { position: absolute; z-index: 0; top: 4px; left: 4px; height: 40px; border-radius: 999px; background: var(--surface-2); transition: transform .35s var(--spring); }

/* ---------- switch (settings toggles) ---------- */
.toggle { appearance: none; -webkit-appearance: none; flex: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background-color .25s; margin: 0; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); transition: transform .3s var(--spring), background-color .25s; }
.toggle:checked { background: var(--me); }
.toggle:checked::after { transform: translateX(20px); background: var(--ink); }

/* =========================================================
   TODAY
   ========================================================= */
.top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.top-right { display: flex; align-items: center; gap: 12px; }
.date { color: var(--muted); font: 500 14px/1 var(--body); }

.streak { text-align: center; margin: 22px 0 4px; }
.streak-num { display: inline-flex; align-items: flex-start; gap: 4px; font: 700 76px/.92 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.streak-num .flame { width: 22px; height: 22px; margin-top: 6px; color: var(--sun); opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s var(--spring); }
.streak[data-live="true"] .flame { opacity: 1; transform: none; }
.streak-num .flame path { fill: currentColor; }
.streak-num .digits { display: inline-block; }
.streak-num .digits.roll { animation: roll .6s var(--spring); }
@keyframes roll { 0% { transform: translateY(40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.streak-label { margin-top: 6px; color: var(--muted); font: 500 15px/1.2 var(--body); }
.streak-label .best { color: #7F7898; }

/* stage: the two circles */
.stage {
  --d: min(146px, 40vw);
  --sep: calc(var(--d) * 1.1);
  position: relative;
  height: calc(var(--d) + 44px);
  margin: 10px auto 0;
  isolation: isolate;
}
.stage[data-mode="overlap"] { --sep: calc(var(--d) * .62); }
.stage[data-mode="merged"] { --sep: 0px; }
.orbs { position: absolute; inset: 0; }
.stage[data-mode="merged"] .orbs { animation: spin 80s linear infinite; }
.orbs::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: calc(var(--d) + 22px); height: calc(var(--d) + 22px);
  margin: calc((var(--d) + 22px) / -2) 0 0 calc((var(--d) + 22px) / -2);
  border-radius: 50%; border: 1.5px solid rgba(244, 240, 234, .22);
  opacity: 0; transform: scale(.9); transition: opacity .6s, transform .8s var(--spring);
  pointer-events: none;
}
.stage[data-mode="merged"] .orbs::after { opacity: 1; transform: none; transition-delay: .5s; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb {
  position: absolute; left: 50%; top: 50%;
  width: var(--d); height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%;
  transition: transform .7s var(--ease-in-out), clip-path .7s var(--ease-in-out);
  clip-path: polygon(-20% -20%, 120% -20%, 120% 120%, -20% 120%);
}
.orb-me { transform: translateX(calc(var(--sep) / -2)); color: var(--me); }
.orb-partner { transform: translateX(calc(var(--sep) / 2)); color: var(--partner); }
.stage[data-mode="merged"] .orb-me { clip-path: polygon(-20% -20%, 58% -20%, 42% 120%, -20% 120%); }
.stage[data-mode="merged"] .orb-partner { clip-path: polygon(58% -20%, 120% -20%, 120% 120%, 42% 120%); }

.orb-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transition: opacity .4s; }
.orb-ring circle { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-dasharray: .01 2.45; stroke-linecap: round; opacity: .9; }
.orb-me .orb-ring circle { animation: dash-turn 26s linear infinite; }
@keyframes dash-turn { to { stroke-dashoffset: -24.5; } }
.orb-tint { position: absolute; inset: 7px; border-radius: 50%; background: currentColor; opacity: .06; transition: opacity .4s; }
.orb-fill {
  position: absolute; inset: 0; border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform .55s var(--spring), opacity .3s;
}
.orb-partner .orb-fill { mix-blend-mode: screen; }
.orb.done .orb-fill { transform: scale(1); }
.orb.done .orb-ring, .orb.done .orb-tint { opacity: 0; }
.orb-me.holding .orb-fill { transition: none; }
.orb-progress { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); overflow: visible; opacity: 0; transition: opacity .25s; }
.orb-progress circle { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.orb-me.holding .orb-progress, .orb-me.draining .orb-progress { opacity: 1; }
.orb-hint { position: absolute; inset: 0; display: grid; place-items: center; font: 700 16px/1 var(--display); letter-spacing: .01em; color: var(--me); transition: opacity .3s; pointer-events: none; }
.orb-me.done .orb-hint, .orb-me.holding .orb-hint { opacity: 0; }
.orb-me { cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.orb-me.done { cursor: default; }
.orb-me.press { transform: translateX(calc(var(--sep) / -2)) scale(.95); transition: transform .25s var(--ease-out); }
.orb-me.pop { animation: pop .55s var(--spring); }
.orb-partner.pop { animation: pop-p .55s var(--spring); }
@keyframes pop { 0% { transform: translateX(calc(var(--sep) / -2)) scale(.93); } 45% { transform: translateX(calc(var(--sep) / -2)) scale(1.07); } 100% { transform: translateX(calc(var(--sep) / -2)) scale(1); } }
@keyframes pop-p { 0% { transform: translateX(calc(var(--sep) / 2)) scale(.93); } 45% { transform: translateX(calc(var(--sep) / 2)) scale(1.07); } 100% { transform: translateX(calc(var(--sep) / 2)) scale(1); } }

.lens {
  position: absolute; left: 50%; top: 50%;
  width: var(--d); height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  overflow: visible; pointer-events: none;
  opacity: 0; transform: scale(.8);
  transition: opacity .5s, transform .6s var(--spring);
}
.lens path { fill: #FFF4FA; }
.lens .glow { fill: #FFE6F6; filter: blur(9px); opacity: .55; }
.stage[data-mode="overlap"] .lens { opacity: 1; transform: none; transition-delay: .55s; }
.stage[data-mode="overlap"] .lens .glow { animation: lens-breathe 4.5s ease-in-out infinite; }
@keyframes lens-breathe { 50% { opacity: .2; } }

.names { position: relative; height: 44px; margin-top: 2px; }
.name {
  position: absolute; left: 50%; top: 0; width: 120px; margin-left: -60px;
  text-align: center; transition: transform .7s var(--ease-in-out), opacity .4s;
}
.stage-wrap { --d: min(146px, 40vw); }
.name-me { transform: translateX(calc(var(--d) * -.56)); }
.name-partner { transform: translateX(calc(var(--d) * .56)); }
.name b { display: block; font: 500 16px/1.25 var(--body); }
.name span { display: block; color: var(--muted); font-size: 14px; }
.name-together { width: 220px; margin-left: -110px; opacity: 0; }
.stage-wrap[data-mode="merged"] .name-me, .stage-wrap[data-mode="merged"] .name-partner { opacity: 0; }
.stage-wrap[data-mode="merged"] .name-together { opacity: 1; transition-delay: .4s; }
.name-me b { color: var(--me); }
.name-partner b { color: var(--partner); }
.name-together b span.a { color: var(--me); display: inline; font-size: inherit; }
.name-together b span.b { color: var(--partner); display: inline; font-size: inherit; }

.status-line { margin: 10px auto 0; max-width: 300px; text-align: center; color: var(--muted); font-size: 15px; min-height: 22px; }

.action { margin-top: 24px; display: grid; justify-items: center; gap: 10px; }
.hold-btn {
  position: relative; overflow: hidden;
  width: 100%; height: 62px; border-radius: 999px;
  background: color-mix(in srgb, var(--me) 14%, var(--surface));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--me) 55%, transparent);
  color: var(--me);
  font: 700 18px/1 var(--display);
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: transform .2s var(--ease-out);
}
.hold-btn.press { transform: scale(.975); }
.hold-btn .lbl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; pointer-events: none; }
.hold-btn .lbl svg { width: 20px; height: 20px; }
.hold-btn .hold-fill {
  position: absolute; inset: 0;
  background: var(--me); color: var(--ink);
  clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0 round 999px);
}
.hold-hint { margin: 0; color: #8C86A3; font-size: 13.5px; text-align: center; }
.done-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.done-row .tick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--me); color: var(--ink); }
.done-row .tick svg { width: 15px; height: 15px; stroke-width: 2.6; }
.action .btn-soft { width: 100%; }
.action .btn-soft svg { color: var(--partner); }
.timer-link { color: var(--muted); font-size: 14.5px; display: inline-flex; gap: 7px; align-items: center; padding: 8px 12px; border-radius: 999px; }
.timer-link svg { width: 18px; height: 18px; }

/* ---------- notes ---------- */
.notes { margin-top: 30px; display: grid; gap: 22px; justify-items: center; }
.notes:empty { display: none; }
.note-wrap { width: min(100%, 340px); perspective: 1400px; }
.note-wrap.drop { animation: note-drop .7s var(--spring) both; }
@keyframes note-drop { from { opacity: 0; transform: translateY(-28px) rotate(-4deg) scale(.96); } }
.note {
  position: relative;
  display: grid;
  transform: rotate(var(--tilt, -1.5deg));
  transform-style: preserve-3d;
  transition: transform .75s var(--ease-out);
}
.note.flipped { transform: rotate(var(--tilt, -1.5deg)) rotateY(180deg); }
.note-face {
  grid-area: 1 / 1;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--paper); color: var(--ink);
  border-radius: 20px;
  padding: 18px 20px 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 14px 34px rgba(0,0,0,.38), 0 2px 6px rgba(0,0,0,.25);
}
.note-back { transform: rotateY(180deg); }
.note.plain .note-back { transform: none; }
.note.plain .note-front { display: none; }
.note-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 500 13px/1 var(--body); color: var(--ink-soft); }
.note-meta .who { display: inline-flex; align-items: center; gap: 7px; }
.note-meta .who i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--partner)); }
.note-text { margin: 10px 0 0; font: 500 27px/1.12 var(--hand); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.note-drawing { margin-top: 10px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.note-drawing svg { width: 100%; height: 100%; }

/* sealed face */
.note-front { display: grid; justify-items: center; text-align: center; padding: 22px 20px 24px; overflow: hidden; }
.flap { position: absolute; inset: 0 0 auto 0; height: 58%; pointer-events: none; }
.flap path { fill: none; stroke: var(--paper-line); stroke-width: 1.5; }
.seal {
  position: relative; z-index: 1;
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--c, var(--partner)); color: var(--ink);
  box-shadow: 0 0 0 5px var(--paper), 0 0 0 6px var(--paper-line), 0 6px 14px rgba(0,0,0,.18);
  margin-top: 8px;
}
.seal svg { width: 28px; height: 28px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.seal .shackle { transform-origin: 16px 10px; transition: transform .35s var(--spring); }
.note-front h3 { position: relative; margin: 16px 0 0; font: 700 19px/1.2 var(--display); letter-spacing: -.01em; }
.note-front p { position: relative; margin: 4px 0 0; color: var(--ink-soft); font-size: 14.5px; }
.note.unlocking .seal .shackle { transform: translate(5px, -4px) rotate(28deg); }
.note.unlocking .seal { animation: seal-off .5s .3s var(--ease-out) forwards; }
@keyframes seal-off { 40% { transform: scale(1.14); } 100% { transform: scale(.2); opacity: 0; } }
.note.mine .note-face { box-shadow: 0 10px 26px rgba(0,0,0,.32), 0 2px 5px rgba(0,0,0,.22); }
.note-wrap.small { width: min(86%, 290px); }
.note-wrap.small .note-text { font-size: 23px; }
.note-sparkle { position: absolute; inset: 0; pointer-events: none; }

/* =========================================================
   COMPOSE
   ========================================================= */
.compose .seg { margin-bottom: 16px; }
.paper-field {
  position: relative;
  background: var(--paper); color: var(--ink);
  border-radius: 20px;
  transform: rotate(-.8deg);
  box-shadow: 0 10px 26px rgba(0,0,0,.3);
  padding: 14px 18px 30px;
}
.paper-field textarea {
  display: block; width: 100%; min-height: 180px; resize: none;
  border: 0; outline: 0; background: transparent;
  font: 500 28px/1.15 var(--hand); color: var(--ink);
  caret-color: var(--me);
}
.paper-field textarea::placeholder { color: #9E98AE; }
.paper-field .count { position: absolute; right: 16px; bottom: 10px; font: 500 12.5px/1 var(--body); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.paper-field .count.near { color: #C2533F; }

.pad-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; }
.pad {
  position: relative;
  width: min(100%, 52dvh, 380px); aspect-ratio: 1;
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.3);
  overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  cursor: crosshair;
}
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pad .pad-empty { position: absolute; inset: 0; display: grid; place-items: center; font: 500 24px/1 var(--hand); color: #A7A1B4; pointer-events: none; transition: opacity .2s; }
.tools { display: flex; align-items: center; gap: 4px; width: min(100%, 380px); justify-content: space-between; background: var(--paper); border-radius: 999px; padding: 4px 6px; min-width: 0; color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.swatches, .widths, .acts { display: flex; gap: 4px; align-items: center; }
.sw { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.sw i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); transition: transform .2s var(--spring), box-shadow .2s; }
.sw[aria-pressed="true"] i { transform: scale(1.1); box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 4.5px var(--ink); }
.wd { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); }
.wd i { display: block; border-radius: 50%; background: currentColor; }
.wd[aria-pressed="true"] { background: var(--paper-line); color: var(--ink); }
.acts .icon-btn { width: 38px; height: 38px; background: transparent; color: var(--ink); }
.acts .icon-btn:active { background: var(--paper-line); }
.acts .icon-btn svg { width: 21px; height: 21px; }
.acts .icon-btn[disabled] { opacity: .3; pointer-events: none; }
.compose-err { min-height: 20px; margin: 10px 0 0; color: var(--danger); font-size: 14px; text-align: center; }

/* =========================================================
   GUIDES
   ========================================================= */
.view-guides .h-view { margin: 14px 0 20px; }
.card { background: var(--surface); border-radius: var(--r-card); padding: 20px; }
.timer-card h2 { font: 700 21px/1.15 var(--display); letter-spacing: -.01em; }
.timer-card p { margin: 4px 0 16px; color: var(--muted); font-size: 15px; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 7px; }
.chip {
  height: 46px; min-width: 0; padding: 0 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  font: 700 17px/1 var(--display); font-variant-numeric: tabular-nums;
  transition: background-color .2s, color .2s, transform .15s var(--ease-out);
}
.chip small { font: 500 13px/1 var(--body); color: inherit; opacity: .7; margin-left: 2px; }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { background: var(--me); color: var(--ink); }
.chip.custom { font: 500 15px/1 var(--body); padding: 0 15px; }
.stepper { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.stepper .icon-btn { background: var(--surface-2); color: var(--text); width: 46px; height: 46px; }
.stepper input {
  width: 84px; height: 54px; text-align: center; border: 0; border-radius: 16px;
  background: var(--ground); color: var(--text);
  font: 700 28px/1 var(--display); font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper span { color: var(--muted); font-size: 15px; }
.timer-card .btn { margin-top: 18px; }

.list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 2px 12px; }
.add-form { display: flex; gap: 8px; }
.field {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--text);
  font-size: 16px; outline: none;
  transition: border-color .2s;
}
.field::placeholder { color: #7F7898; }
.field:focus { border-color: var(--me); }
.add-form .btn { min-height: 52px; padding: 0 20px; }
.form-err { min-height: 20px; margin: 8px 4px 0; color: var(--danger); font-size: 14px; }
.guides { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.guide {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 10px; padding-right: 6px; border-radius: 20px;
  background: var(--surface);
  animation: guide-in .45s var(--ease-out) both;
}
@keyframes guide-in { from { opacity: 0; transform: translateY(10px); } }
.guide.leaving { animation: guide-out .3s ease-in forwards; }
@keyframes guide-out { to { opacity: 0; transform: translateX(30px); } }
.guide a { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; text-decoration: none; }
.thumb { position: relative; flex: none; width: 104px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; }
.thumb .play span { width: 30px; height: 30px; border-radius: 50%; background: rgba(19,17,28,.6); display: grid; place-items: center; }
.thumb .play svg { width: 13px; height: 13px; fill: var(--text); margin-left: 2px; }
.guide-text { min-width: 0; }
.guide-title { font: 500 15px/1.3 var(--body); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-by { margin-top: 4px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.guide-by i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.guide .icon-btn { flex: none; background: transparent; width: 40px; height: 40px; }
.guide .icon-btn svg { width: 18px; height: 18px; }
.confirm-row { position: absolute; inset: 0; border-radius: 20px; background: var(--surface-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 10px 0 18px; animation: fade-in .2s ease-out; }
.confirm-row span { font-weight: 500; }
.confirm-row .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
.confirm-row .btn-soft { background: transparent; }
.confirm-row .danger { background: var(--danger); color: var(--ink); }
@keyframes fade-in { from { opacity: 0; } }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r-card); font-size: 15px; }

/* =========================================================
   TIMER (full screen)
   ========================================================= */
.timer-view {
  position: fixed; inset: 0; z-index: 40;
  background: var(--ground);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-t) + 18px) 24px calc(var(--safe-b) + 28px);
  animation: fade-in .5s ease-out;
}
.timer-view.out { animation: fade-out .35s ease-in forwards; }
@keyframes fade-out { to { opacity: 0; } }
.timer-top { width: min(100%, 392px); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 15px; }
.timer-mid { display: grid; justify-items: center; gap: 30px; }
.breath { --b: min(260px, 66vw); position: relative; width: var(--b); height: var(--b); display: grid; place-items: center; }
.breath-disc { position: absolute; inset: 9%; border-radius: 50%; background: var(--me); opacity: .14; animation: breathe 10s var(--ease-in-out) infinite; }
.breath-core { position: absolute; inset: 27%; border-radius: 50%; background: var(--me); opacity: .1; animation: breathe 10s var(--ease-in-out) infinite; animation-delay: -.4s; }
@keyframes breathe { 0%, 100% { transform: scale(.78); } 50% { transform: scale(1); } }
.timer-view.paused .breath-disc, .timer-view.paused .breath-core { animation-play-state: paused; }
.breath-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.breath-ring circle { fill: none; stroke-width: 2.5; }
.breath-ring .track { stroke: var(--surface-2); }
.breath-ring .prog { stroke: var(--me); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset 1s linear; }
.remaining { position: relative; font: 700 58px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.breath-word { color: var(--muted); font-size: 16px; min-height: 22px; transition: opacity .8s; }
.timer-ctrls { display: flex; gap: 12px; width: min(100%, 392px); }
.timer-ctrls .btn { flex: 1; }
.timer-view.ended .breath-disc { animation: none; transform: scale(1); opacity: .22; transition: opacity 1.2s, transform 1.2s; }
.timer-view.ended .breath-core { animation: none; opacity: 0; }
.timer-end { display: grid; justify-items: center; gap: 8px; text-align: center; }
.timer-end h2 { font: 700 30px/1.1 var(--display); letter-spacing: -.02em; }
.timer-end p { margin: 0; color: var(--muted); }
.timer-hold { position: relative; width: var(--b); height: var(--b); }
.big-hold { position: absolute; inset: 9%; border-radius: 50%; color: var(--me); touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; cursor: pointer; }
.big-hold .orb-fill { position: absolute; inset: 0; border-radius: 50%; background: currentColor; transform: scale(0); }
.big-hold .orb-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.big-hold .lbl { position: absolute; inset: 0; display: grid; place-items: center; font: 700 20px/1.15 var(--display); text-align: center; color: var(--me); transition: color .2s; }
.big-hold.done .lbl { color: var(--ink); }
.big-hold.done .orb-fill { transform: scale(1); transition: transform .5s var(--spring); }

/* =========================================================
   MONTH
   ========================================================= */
.month-head { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 18px; }
.month-head .h-view span { color: var(--muted); }
.month-nav { display: flex; gap: 8px; }
.month-nav .icon-btn[disabled] { opacity: .3; pointer-events: none; }
.weekdays, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.weekdays { margin-bottom: 6px; }
.weekdays span { text-align: center; color: #7F7898; font: 500 12px/1 var(--body); letter-spacing: .04em; }
.grid-wrap { overflow: hidden; touch-action: pan-y; margin: 0 -4px; padding: 0 4px; }
.grid { transition: transform .32s var(--ease-out), opacity .32s; }
.grid.out-l { transform: translateX(-36px); opacity: 0; }
.grid.out-r { transform: translateX(36px); opacity: 0; }
.grid.no-anim { transition: none; }
.day {
  position: relative;
  aspect-ratio: 1 / 1.14;
  border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 7px 0 9px;
  background: var(--surface);
  font: 500 13px/1 var(--body); font-variant-numeric: tabular-nums;
  color: var(--muted);
  transition: transform .15s var(--ease-out), background-color .2s;
}
.day:active { transform: scale(.93); }
.day.blank { background: transparent; pointer-events: none; }
.day.future { background: transparent; color: #4F4A68; pointer-events: none; }
.day.before { background: transparent; color: #5A5573; }
.day.active { color: var(--text); }
.day.today { box-shadow: inset 0 0 0 1.5px var(--text); color: var(--text); }
.day .marks { display: flex; align-items: center; justify-content: center; height: 12px; }
.day .dot { width: 9px; height: 9px; border-radius: 50%; }
.day .dot.me { background: var(--me); }
.day .dot.partner { background: var(--partner); }
.day .marks .dot + .dot { margin-left: 3px; }
.day .tog { width: 15px; height: 15px; border-radius: 50%; position: relative; overflow: hidden; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.3px rgba(244,240,234,.55); transform: rotate(18deg); margin-top: -2px; }
.day .tog::before, .day .tog::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; }
.day .tog::before { left: 0; background: var(--me); }
.day .tog::after { right: 0; background: var(--partner); }
.day .paper { position: absolute; top: 6px; right: 6px; width: 7px; height: 9px; border-radius: 1.5px; background: var(--paper); opacity: .85; transform: rotate(8deg); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 18px; color: var(--muted); font-size: 13.5px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.legend .tog { width: 13px; height: 13px; border-radius: 50%; overflow: hidden; position: relative; transform: rotate(18deg); }
.legend .tog::before, .legend .tog::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; }
.legend .tog::before { left: 0; background: var(--me); }
.legend .tog::after { right: 0; background: var(--partner); }
.legend .paper { width: 8px; height: 10px; border-radius: 1.5px; background: var(--paper); transform: rotate(8deg); }
.month-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.stat { background: var(--surface); border-radius: 18px; padding: 14px 12px; text-align: center; }
.stat b { display: block; font: 700 28px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.2; }
.month-msg { text-align: center; color: var(--muted); margin-top: 18px; font-size: 15px; }

.diary-who { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.diary-who .tog, .diary-who .dot { flex: none; }
.diary-who .dot { width: 10px; height: 10px; border-radius: 50%; }
.diary-who .dot + .dot { margin-left: -4px; }
.diary-who .tog { width: 18px; height: 18px; border-radius: 50%; position: relative; overflow: hidden; transform: rotate(18deg); }
.diary-who .tog::before, .diary-who .tog::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; }
.diary-who .tog::before { left: 0; background: var(--me); }
.diary-who .tog::after { right: 0; background: var(--partner); }
.diary-notes { display: grid; gap: 22px; justify-items: center; padding: 6px 0 12px; }
.diary-empty { color: var(--muted); text-align: center; padding: 14px 0 20px; }
.locked-mini {
  width: min(100%, 320px); display: flex; align-items: center; gap: 14px;
  background: var(--paper); color: var(--ink); border-radius: 18px; padding: 14px 16px;
  transform: rotate(1.2deg); box-shadow: 0 10px 26px rgba(0,0,0,.3);
}
.locked-mini .seal { width: 44px; height: 44px; margin: 0; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--paper-line); flex: none; }
.locked-mini .seal svg { width: 20px; height: 20px; }
.locked-mini b { display: block; font: 700 16px/1.2 var(--display); }
.locked-mini span { color: var(--ink-soft); font-size: 14px; }

/* =========================================================
   SETTINGS
   ========================================================= */
.set-list { display: grid; gap: 2px; border-radius: 20px; overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 15px 16px; background: var(--surface-2); }
.set-row .ico-wrap { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--ground); color: var(--me); }
.set-row .ico-wrap svg { width: 20px; height: 20px; }
.set-row .txt { flex: 1; min-width: 0; }
.set-row .txt b { display: block; font-weight: 500; }
.set-row .txt span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.set-row .btn { min-height: 38px; padding: 0 16px; font-size: 15px; flex: none; }
.set-row .btn-soft { background: var(--ground); }
.toggle:disabled { opacity: .4; }
.set-row .on-label { color: var(--me); font-weight: 500; font-size: 15px; }
.set-who { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding: 0 4px; color: var(--muted); font-size: 15px; }
.set-who b { color: var(--me); font-weight: 500; }
.set-who .btn { color: var(--danger); }

/* =========================================================
   JOIN (sign in)
   ========================================================= */
.view-join { display: flex; flex-direction: column; justify-content: center; gap: 0; min-height: 100dvh; }
.join-hero { display: grid; justify-items: center; text-align: center; margin-bottom: 30px; }
.join-mark { position: relative; width: 150px; height: 96px; margin-bottom: 20px; isolation: isolate; }
.join-mark i { position: absolute; top: 0; width: 96px; height: 96px; border-radius: 50%; }
.join-mark i:first-child { left: 0; background: var(--blue); animation: jm-a 6s var(--ease-in-out) infinite; }
.join-mark i:last-child { right: 0; background: var(--pink); mix-blend-mode: screen; animation: jm-b 6s var(--ease-in-out) infinite; }
@keyframes jm-a { 50% { transform: translateX(-8px); } }
@keyframes jm-b { 50% { transform: translateX(8px); } }
.join-hero .wordmark { font-size: 44px; letter-spacing: -.03em; }
.join-hero p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.who-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.who-btn {
  --c: var(--blue);
  position: relative;
  display: grid; justify-items: center; gap: 12px;
  padding: 20px 10px 18px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .25s, background-color .25s, transform .18s var(--ease-out);
  user-select: none; -webkit-user-select: none;
}
.who-btn:active { transform: scale(.97); }
.who-btn .c { width: 58px; height: 58px; border-radius: 50%; border: 2px dashed var(--c); transition: background-color .3s, border-color .3s, transform .4s var(--spring); }
.who-btn b { font: 700 19px/1 var(--display); letter-spacing: -.01em; }
.who-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 13%, var(--surface)); box-shadow: inset 0 0 0 2px var(--c); }
.who-btn[aria-pressed="true"] .c { background: var(--c); border-style: solid; transform: scale(1.06); }
.who-btn[aria-pressed="true"] b { color: var(--c); }
.join-form { display: grid; gap: 12px; margin-top: 14px; }
.join-form .field { height: 56px; text-align: center; font-size: 17px; }
.join-form .field:focus { border-color: var(--c, var(--line)); }
.join-form .btn { min-height: 56px; }
.join-form .btn-primary { background: var(--c, var(--paper)); }
.join-form:not([data-who]) .btn-primary { background: var(--surface-2); color: var(--muted); opacity: 1; }
.join-err { min-height: 22px; margin: 2px 0 0; color: var(--danger); font-size: 14.5px; text-align: center; }
.shake { animation: shake .42s var(--ease-out); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }

/* =========================================================
   ONBOARDING
   ========================================================= */
.onboard {
  position: fixed; inset: 0; z-index: 45;
  background: var(--ground);
  display: flex; justify-content: center;
  animation: fade-in .35s ease-out;
}
.onboard.out { animation: fade-out .3s ease-in forwards; }
.onboard-in { width: min(100%, var(--col)); display: flex; flex-direction: column; padding: calc(var(--safe-t) + 14px) 24px calc(var(--safe-b) + 22px); }
.ob-top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .35s var(--spring), background-color .3s; }
.ob-dots i.on { width: 22px; background: var(--me); }
.ob-stage { flex: 1; display: grid; align-content: center; justify-items: center; text-align: center; gap: 26px; min-height: 0; }
.ob-step { display: grid; justify-items: center; gap: 22px; animation: ob-in .45s var(--ease-out) both; }
@keyframes ob-in { from { opacity: 0; transform: translateX(22px); } }
.ob-step.back { animation-name: ob-in-back; }
@keyframes ob-in-back { from { opacity: 0; transform: translateX(-22px); } }
.ob-step h2 { font: 700 27px/1.15 var(--display); letter-spacing: -.02em; max-width: 320px; }
.ob-step p { margin: -10px 0 0; color: var(--muted); max-width: 310px; font-size: 16px; }
.ob-kicker { color: var(--me); font: 500 14px/1 var(--body); }
.ob-foot { display: grid; gap: 6px; }
.ob-foot .row { display: flex; gap: 10px; }
.ob-foot .row .btn { flex: 1; }

/* mock phone pieces */
.mock { width: min(300px, 80vw); border-radius: 26px; background: #F6F4F8; color: #1C1B22; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.45); text-align: left; position: relative; }
.mock-page { height: 120px; padding: 16px; display: grid; align-content: start; gap: 9px; background: var(--ground); }
.mock-page i { display: block; height: 9px; border-radius: 5px; background: #2B2740; }
.mock-page i:nth-child(1) { width: 40%; height: 12px; background: #3A3555; }
.mock-page i:nth-child(2) { width: 85%; }
.mock-page i:nth-child(3) { width: 62%; }
.mock-url { margin: 10px 12px 6px; height: 38px; border-radius: 12px; background: #E6E3EB; display: flex; align-items: center; justify-content: center; gap: 6px; font: 500 14px/1 var(--body); color: #3B3946; }
.mock-url svg { width: 12px; height: 12px; stroke: #6B6878; fill: none; stroke-width: 2; }
.mock-bar { display: flex; justify-content: space-around; align-items: center; height: 52px; padding: 0 8px 4px; color: #2F7BF6; }
.mock-bar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mock-bar .hl { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.mock-bar .hl::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 3px var(--me); animation: ring-pulse 1.8s ease-out infinite; }
@keyframes ring-pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.mock-bar .dim { opacity: .35; }
.mock-sheet { padding: 12px 12px 14px; background: #EFEDF2; display: grid; gap: 8px; }
.mock-sheet .app-row { display: flex; gap: 12px; align-items: center; padding: 6px 4px 10px; border-bottom: 1px solid #DCD9E1; }
.mock-sheet .app-row .ai { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.mock-sheet .app-row b { display: block; font: 500 14px/1.2 var(--body); }
.mock-sheet .app-row span { font-size: 12px; color: #77748A; }
.mock-row { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 14px; border-radius: 12px; background: #FFFFFF; font: 400 15px/1 var(--body); color: #1C1B22; }
.mock-row svg { width: 22px; height: 22px; fill: none; stroke: #1C1B22; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mock-row.dim { opacity: .45; }
.mock-row.hl { box-shadow: 0 0 0 2.5px var(--me); position: relative; z-index: 1; }
.home-mock { width: min(280px, 76vw); aspect-ratio: 1 / 1.05; border-radius: 30px; background: #2A2638; padding: 22px 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 10px; align-content: start; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.home-mock .ap { display: grid; justify-items: center; gap: 6px; font: 500 10.5px/1 var(--body); color: #CFCBDB; }
.home-mock .ap i { width: 46px; height: 46px; border-radius: 12px; background: #3C3752; }
.home-mock .ap.ours i { background: var(--ground) url("/icons/icon-192.png") center / cover; box-shadow: 0 0 0 2.5px var(--me); animation: app-bob 2.2s var(--ease-in-out) infinite; }
.home-mock .ap.ours { color: #fff; }
@keyframes app-bob { 50% { transform: translateY(-4px); } }
.android-menu { width: min(280px, 76vw); border-radius: 18px; background: #F3F1F6; color: #1C1B22; padding: 8px 0; box-shadow: 0 20px 50px rgba(0,0,0,.45); text-align: left; }
.android-menu div { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 18px; font-size: 15px; }
.android-menu div svg { width: 20px; height: 20px; fill: none; stroke: #444052; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.android-menu div.dim { opacity: .4; }
.android-menu div.hl { background: #E2DEEA; box-shadow: inset 3px 0 0 var(--me); }
.ob-icon { width: 120px; height: 120px; border-radius: 30px; background: var(--ground) url("/icons/icon-512.png") center / cover; box-shadow: 0 0 0 1px var(--line), 0 18px 40px rgba(0,0,0,.4); }
.bell-art { position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.bell-art svg { width: 54px; height: 54px; fill: none; stroke: var(--me); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transform-origin: 50% 12%; animation: ring 3.2s ease-in-out infinite; }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(13deg); } 80% { transform: rotate(-11deg); } 86% { transform: rotate(7deg); } 92% { transform: rotate(-4deg); } }
.notify-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: min(100%, 330px); text-align: left; }
.notify-list li { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 18px; padding: 13px 16px; font-size: 15.5px; }
.notify-list li i { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--partner); }
.notify-list li i.tg { width: 16px; height: 16px; position: relative; overflow: hidden; background: none; transform: rotate(18deg); }
.notify-list li i.tg::before, .notify-list li i.tg::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50%; }
.notify-list li i.tg::before { left: 0; background: var(--me); }
.notify-list li i.tg::after { right: 0; background: var(--partner); }
.notify-list li i.nt { width: 12px; height: 15px; border-radius: 2px; background: var(--paper); transform: rotate(6deg); }

/* ---------- fx ---------- */
.fx-layer { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.fx-ring { position: absolute; border-radius: 50%; border: 2px solid var(--c); }
.fx-spark { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }

/* ---------- view switch ---------- */
.view-enter { animation: view-in .26s var(--ease-out) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- small screens ---------- */
@media (max-width: 359px) {
  :root { --gutter: 16px; }
  .streak-num { font-size: 64px; }
  .h-view { font-size: 26px; }
  .chip.custom { padding: 0 11px; font-size: 14px; }
  .thumb { width: 88px; }
  .sw, .wd, .acts .icon-btn { width: 30px; height: 30px; }
  .sw i { width: 18px; height: 18px; }
  .tools { gap: 0; padding: 3px 4px; }
  .swatches, .widths, .acts { gap: 1px; }
  .acts .icon-btn svg { width: 19px; height: 19px; }
  .day { border-radius: 11px; }
  .day .paper { top: 4px; right: 4px; width: 6px; height: 8px; }
  .month-head .h-view { font-size: 24px; }
}
@media (max-height: 700px) {
  .streak { margin-top: 12px; }
  .streak-num { font-size: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .breath-disc, .breath-core { animation: none !important; }
}
