:root {
    --cream: #fdf2f6;
    --paper: #ffffff;
    --ink: #3a1d2f;
    --ink-2: #6b4059;
    --muted: #a27a8f;
    --line: #f5d9e5;
    --go: #e14f8e;
    --go-deep: #b8336f;
    --go-soft: #fbd7e6;
    --go-tint: #fdeef4;
    --stop: #d92d3f;
    --stop-deep: #9b1524;
    --stop-soft: #fbd3d8;
    --stop-tint: #fdecee;
    --safe: #23a26a;
    --safe-deep: #157148;
    --safe-soft: #cdeedc;
    --period: #e14f8e;
    --period-soft: #fbd7e6;
    --period-deep: #b8336f;
    --egg: #f4bd3a;
    --egg-deep: #b67a06;
    --amber: #e8906a;
    --amber-soft: #fde6da;
    --shadow-card: 0 1px 2px rgba(120, 30, 80, 0.05), 0 8px 24px -12px rgba(160, 40, 100, 0.22);
    --shadow-float: 0 14px 40px -12px rgba(150, 30, 90, 0.4);
    --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--cream);
    background-image: radial-gradient(1200px 600px at 50% -200px, #ffe4ef 0%, transparent 60%);
    color: var(--ink);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.display { font-family: var(--font-display); letter-spacing: -0.02em; font-variation-settings: 'opsz' 60, 'SOFT' 30; }
:focus-visible { outline: 2px solid var(--go); outline-offset: 2px; border-radius: 6px; }
input[type='number']::-webkit-inner-spin-button, input[type='number']::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type='number'] { -moz-appearance: textfield; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.card { background: var(--paper); border-radius: 22px; box-shadow: var(--shadow-card); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); padding: 16px; }
.muted { color: var(--muted); }
.muted-sm { color: var(--muted); font-size: 13px; font-weight: 500; }
.fine { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 0; }
.body-text { font-size: 15px; line-height: 1.55; color: var(--ink-2); margin: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; }
.pt-1 { padding-top: 4px; }
.px-1 { padding-left: 4px; padding-right: 4px; }
.neg-mt { margin-top: -8px; }
.center { text-align: center; }
.h1 { font-size: 26px; font-weight: 600; line-height: 1.2; margin: 2px 0 0; }
.h2 { font-size: 24px; font-weight: 600; line-height: 1.2; margin: 4px 0 0; }
.kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--go-deep); }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 16px; font-weight: 600; font-size: 15px; text-decoration: none; border: none; transition: transform 0.1s, background 0.15s; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(135deg, var(--go), var(--go-deep)); color: #fff; box-shadow: var(--shadow-card); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: var(--paper); border: 1px solid var(--line); color: var(--go-deep); }
.btn-secondary:hover { background: var(--go-tint); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--go-tint); }
.btn-block { width: 100%; }
.btn-sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px; }
.link-btn:hover { color: var(--ink); }
.link-danger:hover { color: var(--stop-deep); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: none; background: none; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--go-tint); }
.icon-disabled { opacity: 0.3; }
.back-link { display: inline-flex; align-items: center; gap: 4px; width: fit-content; border-radius: 999px; padding: 4px 8px; margin-left: -8px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.back-link:hover { color: var(--ink); }
.more-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--go-deep); text-decoration: none; }

/* -------------------------------------------------------------- forms */
.field { display: block; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field-hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; font-weight: 400; }
.input { width: 100%; height: 48px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); padding: 0 16px; font-size: 16px; }
.input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.input:focus { border-color: var(--go); outline: none; }
.textarea { height: auto; min-height: 96px; padding: 12px 16px; resize: none; line-height: 1.5; }
select.input { padding: 0 12px; }
.range { width: 100%; accent-color: var(--go); }
.code-input { font-family: ui-monospace, monospace; font-size: 22px; letter-spacing: 0.3em; text-transform: uppercase; text-align: center; }
.form-stack { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; }
.form-error { color: var(--stop-deep); font-size: 13px; margin: 12px 0 0; text-align: center; }
.form-foot { display: flex; align-items: center; gap: 12px; }
.save-note { font-size: 12.5px; color: var(--go-deep); font-weight: 600; }
.clear-opt { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; margin-left: 4px; font-size: 12px; color: var(--muted); }
.clear-opt input { accent-color: var(--muted); }

/* segmented */
.seg { display: grid; gap: 8px; }
.seg-opt { display: block; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); padding: 10px 8px; cursor: pointer; transition: transform 0.1s, background 0.15s; }
.seg-opt:hover { background: var(--go-tint); }
.seg-opt:active { transform: scale(0.98); }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-active { background: var(--go); border-color: var(--go); box-shadow: var(--shadow-card); }
.seg-active:hover { background: var(--go); }
.seg-label { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.seg-active .seg-label { color: #fff; }
.seg-hint { display: block; font-size: 11.5px; line-height: 1.2; margin-top: 2px; color: var(--muted); }
.seg-active .seg-hint { color: rgba(255, 255, 255, 0.8); }

/* toggle */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; cursor: pointer; text-align: left; width: 100%; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { position: relative; flex-shrink: 0; width: 48px; height: 28px; border-radius: 999px; background: var(--line); transition: background 0.2s; order: 2; }
.toggle-ui::after { content: ''; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: left 0.2s; }
.toggle input:checked + .toggle-ui { background: var(--go); }
.toggle input:checked + .toggle-ui::after { left: 22px; }
.toggle-text { order: 1; flex: 1; }
.toggle-label { display: block; font-size: 15px; font-weight: 500; }
.toggle-hint { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.toggle-card { padding-left: 16px; padding-right: 16px; }

/* pills + dots */
.pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; background: var(--go-tint); color: var(--ink-2); }
.pill-green { background: var(--go-soft); color: var(--go-deep); }
.pill-red { background: var(--stop-soft); color: var(--stop-deep); }
.pill-amber { background: var(--amber-soft); color: #9a4a2e; }
.pill-inverse { background: rgba(255, 255, 255, 0.2); color: #fff; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.light-dot { display: inline-block; border-radius: 999px; flex-shrink: 0; }
.dot-go { background: var(--safe); }
.dot-stop { background: var(--stop); }
.dot-pred { opacity: 0.5; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px; margin-bottom: 8px; }
.sec-title h2 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ onboarding */
.onboard { display: flex; min-height: 100dvh; width: 100%; max-width: 448px; margin: 0 auto; flex-direction: column; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); }
.onboard-inner { display: flex; flex: 1; flex-direction: column; }
.onboard-brand { margin-top: 32px; }
.brand-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { font-size: 22px; font-weight: 600; }
.onboard-ill { display: block; width: 100%; height: auto; margin-top: 32px; }
.onboard-title { margin-top: 32px; font-size: 38px; line-height: 1.05; font-weight: 600; }
.onboard-lede { margin-top: 16px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.onboard-actions { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 40px; }
.onboard-actions form { text-align: left; }
.onboard-alt-links { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 6px 22px; flex-basis: 100%; }
.onboard-alt-links form { margin: 0; }
.btn-ghost { background: transparent; color: var(--go-deep); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--go-tint); }
.center-hint { text-align: center; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.or-sep { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.row-gap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-gap .grow { flex: 1 1 120px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; margin: 6px 0; }
.check-row input { margin-top: 3px; accent-color: var(--go); }
.onboard-links { margin-top: 16px; text-align: left; font-size: 13px; display: flex; gap: 8px; }
.onboard-links a { color: var(--muted); }

/* wizard steps */
.step-form { display: flex; flex: 1; flex-direction: column; }
.step-head { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.step-dots { display: flex; gap: 6px; }
.step-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--line); transition: width 0.2s; }
.step-dot-done { background: var(--go); }
.step-dot-now { width: 24px; background: var(--go); }
.step-ill { display: block; width: 80%; height: auto; margin: 24px auto 0; }
.step-title { margin-top: 32px; font-size: 28px; font-weight: 600; line-height: 1.2; }
.step-sub { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.step-body { margin-top: 24px; }
.step-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 32px; }
.length-display { text-align: center; }
.length-num { font-size: 48px; font-weight: 600; line-height: 1; color: var(--go-deep); }
.length-unit { margin-top: 4px; font-size: 14px; color: var(--muted); }
.length-display + .range { margin-top: 16px; }
.invite-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.invite-card .invite-code { font-size: 28px; letter-spacing: 0.2em; }

/* -------------------------------------------------------------- app shell */
.app-frame { margin: 0 auto; min-height: 100dvh; width: 100%; display: flex; flex-direction: column; position: relative; }
.sidebar { display: none; }
.app-main { flex: 1; padding: max(16px, env(safe-area-inset-top)) 16px 112px; }
.page-wrap { width: 100%; max-width: 560px; margin: 0 auto; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; padding: 8px 16px max(14px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--cream) 60%, transparent); }
.tabbar-inner { display: flex; align-items: stretch; justify-content: space-between; padding: 6px; border-radius: 26px; }
.tab { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 2px; border-radius: 20px; padding: 8px 0; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; transition: background 0.15s; }
.tab:hover { color: var(--go-deep); }
.tab-active { background: var(--go); color: #fff; }
.tab-active:hover { color: #fff; }

/* ---------------------------------------------------------------- avatars */
.avatars { display: flex; padding-top: 4px; }
.avatars .avatar + .avatar { margin-left: -8px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; border: 2px solid var(--cream); font-size: 13px; font-weight: 700; flex-shrink: 0; }
.avatar-me { background: var(--go); color: #fff; }
.avatar-partner { background: var(--stop-soft); color: var(--stop-deep); }
.mavatar-cycle { background: var(--go-soft); color: var(--go-deep); border: none; }
.mavatar-partner { background: var(--stop-soft); color: var(--stop-deep); border: none; }

/* ------------------------------------------------------------------ hero */
.card-flush { padding: 0; overflow: hidden; }
.card-pad { padding: 20px; }
.ill-full { display: block; width: 100%; height: auto; }
.ill-full rect { rx: 0; }
.ill-compact { display: block; width: min(100%, 160px); height: auto; margin: 0 auto; }
.wins-hero { padding: 16px 16px 0; }
.wins-hero .ill-compact { margin-bottom: 4px; }
.hero-ill { position: relative; }
.today-status { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.today-status-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.today-status-main { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.status-chip { display: inline-flex; align-items: center; flex: none; margin-top: 2px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; color: #fff; }
.today-status-title { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.15; }
.today-status-msg { margin: 4px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.today-status .hero-next { margin-top: 6px; }
.today-status-why { padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.today-status-why .body-text { font-size: 14px; }
.today-streak { display: flex; align-items: center; gap: 10px; flex: none; padding: 8px 12px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; }
.today-streak .streak-icon { width: 36px; height: 36px; border-radius: 12px; }
.today-streak .streak-num { font-size: 15px; }
.today-note { margin: 0; padding: 12px 16px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.today-note .kicker { margin-right: 6px; }
@media (max-width: 700px) {
    .today-status-top { flex-direction: column; align-items: stretch; }
}
.hero-ill .ill-full rect { rx: 0; }
.card-flush > .hero-ill .ill-full, .card-flush > .ill-full { border-radius: 0; }
.day-chip { position: absolute; left: 16px; top: 16px; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 600; color: #fff; }
.day-chip-go { background: var(--safe); }
.day-chip-stop { background: var(--stop); }
.day-chip-rest { background: var(--period); }
.hero-headline { margin: 0; font-size: 38px; font-weight: 600; line-height: 1; }
.hero-headline-go { color: var(--safe-deep); }
.hero-headline-stop { color: var(--stop); }
.hero-headline-rest { color: var(--period); }
.hero-msg { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.hero-next { margin-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.hero-next .light-dot { flex-shrink: 0; }

/* ------------------------------------------------------------------ strip */
.strip { display: flex; gap: 4px; overflow-x: auto; padding: 8px 34px; scrollbar-width: none; scroll-behavior: smooth; }
.strip::-webkit-scrollbar { display: none; }
.strip-item { display: flex; flex: 1 0 46px; flex-direction: column; align-items: center; gap: 4px; border-radius: 16px; padding: 8px 0; text-decoration: none; }
.strip-wrap { position: relative; }
.strip-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); cursor: pointer; box-shadow: 0 4px 10px rgba(58,29,47,0.10); transition: opacity .15s; }
.strip-prev { left: 6px; }
.strip-next { right: 6px; }
.strip-nav:hover { color: var(--go-deep); border-color: var(--go-soft); }
.strip-nav[disabled] { opacity: 0; pointer-events: none; }
.strip-item:hover { background: var(--go-tint); }
.strip-today { background: var(--go-tint); }
.strip-dow { font-size: 10.5px; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.strip-cell { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.strip-none { background: var(--line); color: var(--muted); }
.strip-green { background: var(--safe); color: #fff; }
.strip-red { background: var(--stop); color: #fff; }
.strip-cell.predicted-stripes.strip-green { background-color: var(--safe-soft); color: var(--safe-deep); }
.strip-cell.predicted-stripes.strip-red { background-color: var(--stop-soft); color: var(--stop-deep); }
.strip-cell.strip-period { background: var(--period); color: #fff; }
.strip-cell.predicted-stripes.strip-period { background-color: var(--period-soft); color: var(--period-deep); }
.strip-today .strip-cell { outline: 2px solid var(--go-deep); outline-offset: 2px; }
.strip-dot { width: 6px; height: 6px; border-radius: 999px; background: transparent; }
.strip-dot-period { background: var(--period); }
.predicted-stripes { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.55) 0 3px, transparent 3px 7px); }

/* ------------------------------------------------------------------ lists */
.list-card { padding: 0; overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-decoration: none; color: var(--muted); }
.list-row + .list-row { border-top: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.list-row:hover { background: var(--go-tint); }
.list-text { flex: 1; font-size: 15px; line-height: 1.4; color: var(--ink); }
.prompt-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--go-tint); color: var(--go-deep); }
.prompt-amber { background: var(--amber-soft); color: #9a4a2e; }
.tip-row { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.4; }
.tip-heart { color: var(--go); margin-top: 2px; flex-shrink: 0; }
.tip-heart svg, .idea-heart svg { fill: currentColor; }
.note-amber { border-radius: 12px; background: var(--amber-soft); padding: 8px 12px; font-size: 13px; line-height: 1.4; color: #9a4a2e; margin: 0; }
.note-red { border-radius: 12px; background: var(--stop-tint); padding: 8px 12px; font-size: 13px; line-height: 1.4; color: var(--stop-deep); margin: 8px 0 0; }
.metric-label { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }

/* streak + ideas */
.streak-card { display: flex; align-items: center; gap: 16px; padding: 16px; text-decoration: none; }
.streak-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--go-tint); color: var(--go-deep); flex-shrink: 0; }
.streak-text { flex: 1; }
.streak-num { display: block; font-size: 20px; font-weight: 600; line-height: 1.2; }
.streak-sub { font-size: 13px; color: var(--muted); }
.streak-trophy { color: var(--go); }
.idea-row { display: grid; gap: 10px; }
.idea-card { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; }
.idea-heart { color: var(--go); margin-top: 4px; flex-shrink: 0; }
.idea-title { font-size: 15px; font-weight: 600; }
.idea-body { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.why-card { padding: 16px; }
.why-card summary { display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.why-card summary::-webkit-details-marker { display: none; }
.why-card summary svg { color: var(--muted); transition: transform 0.2s; }
.why-card[open] summary svg { transform: rotate(90deg); }
.why-body { margin-top: 12px; }

/* -------------------------------------------------------------------- log */
.log-date-wrap { position: relative; text-align: center; }
.log-date { font-size: 20px; font-weight: 600; line-height: 1.2; }
.date-overlay { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.day-banner { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 12px 16px; font-size: 14px; line-height: 1.4; }
.banner-green { background: var(--safe-soft); color: var(--safe-deep); }
.banner-red { background: var(--stop-soft); color: var(--stop-deep); }
.flash { background: var(--go-soft); color: var(--go-deep); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin: 0; }

/* --------------------------------------------------------------- calendar */
.cal-month { font-size: 22px; font-weight: 600; text-decoration: none; }
.cal-card { padding: 12px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.cal-week > div { padding: 4px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 8px; margin-top: 4px; }
.cal-item { position: relative; display: flex; flex-direction: column; align-items: center; padding: 2px 0 4px; text-decoration: none; }
.cal-cell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform 0.1s; }
.cal-item:hover .cal-cell { transform: scale(1.05); }
.cal-none { color: var(--muted); }
.cal-green { background: var(--safe); color: #fff; }
.cal-red { background: var(--stop); color: #fff; }
.cal-cell.predicted-stripes.cal-green { background-color: var(--safe-soft); color: var(--safe-deep); }
.cal-cell.predicted-stripes.cal-red { background-color: var(--stop-soft); color: var(--stop-deep); }
.cal-cell.cal-period { background: var(--period); color: #fff; }
.cal-cell.cal-period.cal-green { background: linear-gradient(135deg, var(--period) 50%, var(--safe) 50%); color: #fff; }
.cal-cell.cal-period.cal-red { background: linear-gradient(135deg, var(--period) 50%, var(--stop) 50%); color: #fff; }
.cal-cell.predicted-stripes.cal-period { background-color: var(--period-soft); color: var(--period-deep); }
.cal-cell.predicted-stripes.cal-period.cal-green { background: linear-gradient(135deg, var(--period-soft) 50%, var(--safe-soft) 50%); color: var(--ink); }
.cal-cell.predicted-stripes.cal-period.cal-red { background: linear-gradient(135deg, var(--period-soft) 50%, var(--stop-soft) 50%); color: var(--ink); }
.cal-cell.cal-ov { background: var(--egg); color: #5c3d04; box-shadow: inset 0 0 0 3px var(--egg-deep); }
.cal-cell > .ci-badge { position: absolute; width: 18px; height: 18px; right: -6px; bottom: -5px; padding: 1px; background: var(--paper); border-radius: 999px; box-shadow: 0 0 0 2px var(--paper); }
.cal-cell > .ci-log { position: absolute; width: 12px; height: 12px; left: -4px; top: -3px; padding: 1px; background: var(--paper); border-radius: 999px; box-shadow: 0 0 0 2px var(--paper); }
.cal-today { outline: 2px solid var(--go-deep); outline-offset: 2px; }
.cal-selected { outline: 2px solid var(--ink); outline-offset: 2px; outline-style: dashed; }
.cal-dots { display: flex; height: 6px; align-items: center; gap: 2px; margin-top: 4px; }
.cal-icons { display: flex; height: 16px; align-items: center; gap: 2px; margin-top: 4px; }
.predicted-stripes + .cal-icons { opacity: 0.55; }
.ci { display: inline-block; width: 15px; height: 15px; flex-shrink: 0; fill: currentColor; }
.ci-drop { color: var(--period-deep); }
.ci-bud, .ci-ripe { fill: none; stroke: currentColor; stroke-width: 2; color: #9a5424; }
.ci-bud .ci-yolk, .ci-ripe .ci-yolk { fill: currentColor; stroke: none; }
.ci-ripe { color: #9b1524; }
.ci-moon { color: var(--ink-2); }
.ci-tick { color: var(--safe-deep); }
.ci-egg { fill: var(--egg); stroke: var(--egg-deep); stroke-width: 1.6; }
.ci-shine { fill: rgba(255, 255, 255, 0.75); stroke: none; }
.ci-lips { color: var(--go); }
.ci-no-sex .ci-lips-shape { fill: var(--go); }
.ci-no-sex .ci-no { fill: none; stroke: var(--stop); stroke-width: 3.2; stroke-linecap: round; }
.ci-alert { color: var(--stop); }
.ci-cut { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.ci-cut-dot { fill: #fff; }
.ci-heart { color: var(--go-deep); }
.ci-heart.ci-sex-p { color: var(--amber); }
.ci-heart.ci-sex-u { color: var(--go-deep); }

.cal-tip {
    --tip-x: -50%;
    position: absolute; z-index: 20; bottom: calc(100% + 2px); left: 50%;
    display: flex; flex-direction: column; gap: 3px; width: 220px; padding: 10px 12px;
    background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 14px;
    box-shadow: var(--shadow-float); text-align: left; font-size: 12.5px; line-height: 1.35; color: var(--ink-2);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translate(var(--tip-x), 4px);
    transition: opacity 0.12s, transform 0.12s, visibility 0.12s;
}
.cal-tip-safe { border-left-color: var(--safe); }
.cal-tip-danger { border-left-color: var(--stop); }
.cal-tip-peak { border-left-color: var(--stop-deep); }
.cal-tip-why { margin-top: 2px; font-size: 12px; font-style: italic; color: var(--muted); }
.cal-tip-when { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.cal-tip-head { font-size: 15px; font-weight: 700; color: var(--ink); }
.cal-tip-safe .cal-tip-head { color: var(--safe-deep); }
.cal-tip-danger .cal-tip-head, .cal-tip-peak .cal-tip-head { color: var(--stop-deep); }
.cal-tip-line { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-weight: 600; color: var(--ink); }
.cal-tip-line .ci { width: 14px; height: 14px; }
.cal-grid > :nth-child(7n+1) .cal-tip { --tip-x: 0; left: 0; }
.cal-grid > :nth-child(7n) .cal-tip { --tip-x: 0; left: auto; right: 0; }
.cal-grid > :nth-child(-n+7) .cal-tip { bottom: auto; top: calc(100% + 2px); }
@media (hover: hover) {
    .cal-item:hover .cal-tip { opacity: 1; visibility: visible; transform: translate(var(--tip-x), 0); }
}
.cal-item:focus-visible .cal-tip { opacity: 1; visibility: visible; transform: translate(var(--tip-x), 0); }
.legend-item .ci { width: 14px; height: 14px; }
.dot-period { background: var(--period); }
.dot-ov { background: var(--egg); box-shadow: inset 0 0 0 2px var(--egg-deep); }
.c-dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; }
.c-period { background: var(--period); }
.c-ov { background: var(--stop-deep); }
.c-lh { background: var(--amber); }
.c-sex-p { background: var(--amber); }
.c-sex-u { background: var(--go); }
.legend-wrap { margin-top: 6px; padding: 10px 14px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.legend + .legend { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.legend-item { display: inline-flex; align-items: center; gap: 5px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 999px; }
.swatch-split { background: linear-gradient(135deg, var(--period) 50%, var(--safe) 50%); }
.dot-lg { background: var(--safe); }
.dot-lr { background: var(--stop); }
.dot-lp { background: var(--safe-soft); border: 1px solid var(--line); }
.day-detail { display: flex; flex-direction: column; gap: 16px; }
.day-verdict { font-size: 22px; font-weight: 600; line-height: 1.1; }
.day-sub { margin-top: 4px; font-size: 13px; font-weight: 500; opacity: 0.8; }

/* ------------------------------------------------------------------- wins */
.wins-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 16px; text-align: center; }
.wins-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.wins-stat + .wins-stat { border-left: 1px solid var(--line); }
.wins-stat-icon { color: var(--go); }
.wins-stat-v { font-size: 24px; font-weight: 600; line-height: 1.1; }
.wins-stat-l { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.badge-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.badge-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; }
.badge-off { opacity: 0.55; }
.badge-icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px; background: var(--line); color: var(--muted); }
.badge-icon-on { background: var(--go); color: #fff; }
.badge-title { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.badge-detail { display: block; margin-top: 2px; font-size: 12px; line-height: 1.35; color: var(--muted); }
.day-now { font-size: 30px; font-weight: 600; line-height: 1; }
.rhythm-side { text-align: right; font-size: 13px; color: var(--ink-2); }
.rhythm-side .muted { color: var(--muted); }
.bars { display: flex; gap: 3px; }
.bars-sm { gap: 2px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.bar { width: 100%; height: 56px; border-radius: 999px; }
.bars-sm .bar { height: 24px; }
.bar-go { background: var(--safe); }
.bar-stop { background: var(--stop); }
.bar-pred { opacity: 0.6; }
.bar-today { outline: 2px solid var(--go-deep); outline-offset: 2px; }
.mark-dot { width: 6px; height: 6px; border-radius: 999px; }
.bar-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.bar-head-d { font-weight: 600; }
.bar-ends { font-size: 11px; font-weight: 600; color: var(--muted); }

/* ------------------------------------------------------------------- more */
.invite-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 16px; background: var(--go-tint); padding: 12px 16px; }
.invite-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.invite-code { font-size: 26px; font-weight: 600; letter-spacing: 0.2em; }
.invite-btns { display: flex; gap: 4px; }
.member-row { display: flex; align-items: center; gap: 12px; }
.member-name { font-size: 15px; font-weight: 600; }
.accordion-card { padding: 0; overflow: hidden; }
.acc { border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.acc:last-child { border-bottom: none; }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { flex-shrink: 0; color: var(--muted); transition: transform 0.2s; }
.acc[open] summary svg { transform: rotate(180deg); }
.acc p { padding: 0 16px 16px; margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.stat-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-cell { border-radius: 16px; background: var(--go-tint); padding: 10px 12px; }
.stat-cell-v { font-size: 20px; font-weight: 600; line-height: 1.2; margin-top: 2px; }
.stat-sub { margin-left: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.action-list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.action-list form { margin: 0; }
.action-row { display: flex; align-items: center; gap: 12px; width: 100%; border-radius: 16px; padding: 12px; text-align: left; text-decoration: none; color: var(--ink); border: none; background: none; font-size: 15px; }
.action-row:hover { background: var(--go-tint); }
.action-row > svg { color: var(--muted); flex-shrink: 0; }
.action-text { flex: 1; font-weight: 500; display: block; }
.action-hint { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.action-danger, .action-danger > svg { color: var(--stop-deep); }
.disclaimer { padding: 0 8px 8px; text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* -------------------------------------------------------------- admin/CMS */
.app-wrap { max-width: 760px; margin: 0 auto; padding: 32px 20px 64px; }
.page h1 { font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.02em; }
.lede { color: var(--ink-2); font-size: 15px; }
.admin-auth { display: grid; place-items: center; min-height: 70dvh; }
.admin-auth-card { width: 100%; max-width: 420px; padding: 28px; }
.admin-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 4px; }
.admin-auth-card h1 { margin: 0 0 8px; }
.admin-intro { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.admin-form { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.admin-form textarea.input { height: auto; min-height: 80px; padding: 12px 16px; font-family: inherit; }
.admin-form .admin-body { font-family: ui-monospace, monospace; font-size: 13px; }
.admin-message { background: var(--go-soft); color: var(--go-deep); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; }
.admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.admin-top h1 { margin: 0 0 4px; }
.admin-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.admin-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2); background: var(--paper); }
.admin-tabs a.on, .admin-tabs a[aria-current='page'] { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.admin-card { margin-bottom: 16px; padding: 20px; }
.admin-card h2 { font-size: 17px; margin: 0 0 14px; }
.admin-card label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.admin-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.admin-field-wide { grid-column: 1 / -1; }
.color-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.color-field { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; font-size: 13px; }
.color-field input[type='color'] { width: 44px; height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--paper); }
.favicon-preview { width: 32px; height: 32px; vertical-align: middle; }
.inline { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 400 !important; }
.admin-actions { display: flex; gap: 12px; align-items: center; }
.admin-row-actions { white-space: nowrap; }
.admin-row-actions form { display: inline; }
.inline-form { display: inline; }
.table-scroll { overflow-x: auto; }
table.board { width: 100%; border-collapse: collapse; font-size: 14px; }
table.board th, table.board td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.board th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.cms-head { margin-bottom: 24px; }
.cms-page h1 { margin-top: 0; }
.cms-body { font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.cms-body h2 { font-family: var(--font-display); margin-top: 32px; }
.cms-body table { border-collapse: collapse; }
.cms-body th, .cms-body td { border: 1px solid var(--line); padding: 8px 12px; }
.cms-body a { color: var(--go-deep); }
.cms-foot { margin-top: 48px; font-size: 14px; }
.cms-foot a { color: var(--muted); }

/* ------------------------------------------------------- tips (public blog) */
.pub { display: flex; flex-direction: column; min-height: 100dvh; }
.pub-head { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--cream) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pub-head-inner, .pub-foot-inner { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pub-head .brand-name { font-size: 19px; }
.pub-nav { display: flex; align-items: center; gap: 18px; }
.pub-nav > a:not(.btn) { font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.pub-nav > a:not(.btn):hover, .pub-nav-on { color: var(--go-deep) !important; }
.pub-main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 32px 20px 64px; }
.pub-foot { border-top: 1px solid var(--line); }
.pub-foot-inner { flex-direction: column; align-items: flex-start; padding: 24px 20px 32px; }
.pub-foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.pub-foot-links a { color: var(--ink-2); }
.pub-foot .fine { max-width: 640px; }

.tips-hero { max-width: 720px; margin-bottom: 28px; }
.tips-title { font-size: 34px; line-height: 1.12; font-weight: 600; margin: 6px 0 12px; }
.tips-lede { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.tip-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tip-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.tip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.tip-card-title { font-size: 21px; line-height: 1.25; font-weight: 600; margin: 0; color: var(--ink); }
.tip-card-excerpt { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin: 0; flex: 1; }
.tip-card-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--go-deep); }
.tips-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

.home-tips { width: 100%; margin-top: 48px; }
.home-tips .sec-title { padding: 0; margin-bottom: 14px; }
.sec-title .home-tips-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--ink); }

.tip-article { max-width: 720px; margin: 0 auto; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--go-deep); }
.tip-title { font-size: 34px; line-height: 1.12; font-weight: 600; margin: 6px 0 10px; }
.tip-meta { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.tip-lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin: 0 0 8px; }
.tip-body, .tip-faq { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.tip-body h2, .tip-faq h2 { font-family: var(--font-display); font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin: 40px 0 10px; }
.tip-body h3, .tip-faq h3 { font-size: 17.5px; line-height: 1.35; color: var(--ink); margin: 26px 0 6px; }
.tip-body p, .tip-faq p { margin: 0 0 16px; }
.tip-body ul, .tip-body ol { padding-left: 22px; margin: 0 0 16px; }
.tip-body li { margin-bottom: 6px; }
.tip-body a { color: var(--go-deep); font-weight: 500; }
.tip-body strong { color: var(--ink); }
.tip-body table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; background: var(--paper); border-radius: 14px; overflow: hidden; }
.tip-body th, .tip-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tip-body th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: var(--go-tint); }
.tip-table-wrap { overflow-x: auto; }
.tip-key { background: var(--go-tint); border: 1px solid var(--go-soft); border-radius: 18px; padding: 16px 20px; margin: 20px 0 8px; }
.tip-key h2 { margin: 0 0 8px !important; font-size: 18px !important; font-family: var(--font-sans) !important; }
.tip-key ul { margin: 0; }
.tip-note { background: var(--amber-soft); color: #7a3b22; border-radius: 16px; padding: 14px 18px; margin: 20px 0; font-size: 15.5px; line-height: 1.6; }
.tip-sources { font-size: 14px; }
.tip-cta { display: flex; flex-direction: column; gap: 16px; padding: 22px; margin: 40px 0 16px; background: linear-gradient(135deg, var(--go-tint), var(--paper)); }
.tip-cta-title { font-size: 24px; font-weight: 600; margin: 0 0 6px; }
.tip-cta .btn { align-self: flex-start; }
.tip-disclaimer { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }
.tip-related { max-width: 1080px; margin: 48px auto 0; }
.tips-row { margin-top: 12px; color: var(--ink); }

/* language switcher */
.lang-switch { display: flex; gap: 8px; }
.lang-pill { padding: 8px 18px; font-size: 14px; text-decoration: none; }
.lang-pill:hover { background: var(--go-soft); color: var(--go-deep); }
.pill.lang-on { background: var(--go); color: #fff; }
.pill.lang-on:hover { background: var(--go); color: #fff; }


/* stacked content columns — become grids on desktop */
.today-grid, .cal-page, .wins-grid, .more-grid { display: flex; flex-direction: column; gap: 20px; }
.today-grid > .col, .cal-page > .col, .wins-grid > .col { display: flex; flex-direction: column; gap: 20px; }
.cal-hint { display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------- desktop web-app layout */
@media (min-width: 900px) {
    .app-frame { flex-direction: row; height: 100dvh; min-height: 0; }
    .sidebar { display: flex; flex-direction: column; width: 250px; flex-shrink: 0; background: var(--paper); border-right: 1px solid var(--line); padding: 22px 14px; }
    .sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
    .sidebar-brand .brand-name { font-size: 20px; }
    .sidebar-nav { display: flex; flex: 1; flex-direction: column; gap: 4px; padding-top: 16px; }
    .side-tab { display: flex; align-items: center; gap: 12px; border-radius: 14px; padding: 11px 14px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; transition: background 0.15s; }
    .side-tab:hover { background: var(--go-tint); color: var(--go-deep); }
    .side-tab-on { background: var(--go); color: #fff; box-shadow: var(--shadow-card); }
    .side-tab-on:hover { background: var(--go); color: #fff; }
    .side-tab-sep { margin-top: 10px; position: relative; }
    .side-tab-sep::before { content: ''; position: absolute; left: 14px; right: 14px; top: -7px; border-top: 1px solid var(--line); }
    .sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid var(--line); }
    .sidebar-foot .avatars { padding-top: 0; }
    .sidebar-name { font-size: 14px; font-weight: 600; }
    .app-main { flex: 1; overflow-y: auto; padding: 36px 44px 96px; }
    .page-wrap { max-width: 1060px; }
    .tabbar { display: none; }

    .idea-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cal-page { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
    .wins-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
    .wins-col-rhythm { grid-column: 1; grid-row: 1; }
    .wins-col-badges { grid-column: 2; grid-row: 1; }
    .more-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
    .more-grid > .disclaimer { grid-column: 1 / -1; }
    .log-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
    .log-form .form-foot { grid-column: 1 / -1; }
    .cal-cell { width: 44px; height: 44px; }
    .cal-icons { height: 20px; gap: 3px; }
    .cal-icons .ci { width: 19px; height: 19px; }

    /* onboarding welcome: two-pane hero */
    .onboard-wide { max-width: 1080px; padding: 48px 56px; }
    .onboard-welcome { display: grid; flex: none; margin: auto; width: 100%;
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
        grid-template-areas: "brand ill" "title ill" "lede ill" "actions ill" "links ill";
        column-gap: 72px; row-gap: 0; align-content: center; }
    .onboard-welcome .onboard-brand { grid-area: brand; margin-top: 0; }
    .onboard-welcome .onboard-ill { grid-area: ill; margin-top: 0; }
    .onboard-welcome .onboard-title { grid-area: title; margin-top: 28px; font-size: 56px; }
    .onboard-welcome .onboard-lede { grid-area: lede; font-size: 17px; }
    .onboard-welcome .onboard-actions { grid-area: actions; margin-top: 36px; padding-top: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .onboard-welcome .onboard-actions .btn { width: auto; }
    .onboard-welcome .onboard-actions form { margin-left: 8px; }
    .onboard-welcome .onboard-links { grid-area: links; margin-top: 28px; text-align: left; }
    .onboard-welcome .onboard-links a:first-child { margin-left: 0; }

    .tip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tips-title, .tip-title { font-size: 46px; }
    .tip-cta { flex-direction: row; align-items: center; justify-content: space-between; }
    .tip-cta .btn { align-self: center; flex-shrink: 0; }
    .home-tips { margin-top: 64px; }
}
@media (min-width: 640px) and (max-width: 899px) {
    .pub .tip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
