/* 伴月：主題共用元件。大眾／女性化／專業／系統淺色／系統深色／自選。 */

body {
    /* 系統預設＝專業：冷白／藍灰 + soft teal CTA（公開場合最穩） */
    --bg: #eef1f6;
    --frame: #e1e6ef;
    --bg-elev: #ffffff;
    --ink: #1a2b56;
    --muted: #5b677a;
    --line: #d8dee8;
    --accent: #2ea89a;
    --accent-ink: #ffffff;
    --accent-soft: #d8f3ef;
    --period: #8a6a72;
    --period-soft: #f3eaea;
    --fertile: #8a7a52;
    --fertile-soft: #f4f0e4;
    --ovulation: #4a6a8a;
    --danger: #a05058;
    --danger-soft: #f3e8ea;
    --ok: #2f6d56;
    --ok-soft: #e6f2ec;
    --warn: #8a6a30;
    --warn-soft: #f4efe2;
    --shadow: 0 1px 2px rgba(26, 43, 86, 0.05), 0 8px 20px rgba(26, 43, 86, 0.05);
    --radius: 14px;
    --nav-h: 68px;
    --ring-period: #8a6a72;
    --ring-fertile: #b0a070;
    --ring-ovulation: #4a6a8a;
    --ring-today: #1a2b56;
    --ring-track: #e4e9f0;
    --ring-stroke: #d0d7e2;
    --ring-empty: #ffffff;
    --ring-text: #1a2b56;
    --ring-on: #ffffff;
    --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Segoe UI", sans-serif;
}

body.theme-mass {
    /* 大眾：暖奶油底 + coral CTA（唔好變粉紅） */
    --bg: #f7f3ee;
    --frame: #ebe4dc;
    --bg-elev: #efe8df;
    --ink: #2c2a28;
    --muted: #7a736c;
    --line: #e8e2da;
    --accent: #e07a5f;
    --accent-ink: #ffffff;
    --accent-soft: #fde8e1;
    --period: #c47a8a;
    --period-soft: #fde2e2;
    --fertile: #c4a05a;
    --fertile-soft: #fff2d4;
    --ovulation: #5a9ec9;
    --danger: #c45a6a;
    --danger-soft: #fde8ec;
    --ok: #3d9a72;
    --ok-soft: #e6f6ef;
    --warn: #b08930;
    --warn-soft: #fff6e0;
    --shadow: 0 1px 2px rgba(44, 42, 40, 0.04), 0 12px 28px rgba(44, 42, 40, 0.06);
    --radius: 18px;
    --ring-period: #c47a8a;
    --ring-fertile: #d4b06a;
    --ring-ovulation: #5a9ec9;
    --ring-today: #2c2a28;
    --ring-track: #efe9e2;
    --ring-stroke: #e0d8ce;
    --ring-empty: #f7f3ee;
    --ring-text: #2c2a28;
    --ring-on: #ffffff;
}

body.theme-feminine {
    /* 女性化：薰衣草／blush＋periwinkle，溫柔但唔同大眾珊瑚、專業 teal */
    --bg: #f4eef8;
    --frame: #ebe0f0;
    --bg-elev: #fffafc;
    --ink: #3a2a4a;
    --muted: #8a7088;
    --line: #eadce8;
    --accent: #7b8fd4;
    --accent-ink: #ffffff;
    --accent-soft: #e4e8fb;
    --period: #d4899a;
    --period-soft: #fde2e2;
    --fertile: #d4a86a;
    --fertile-soft: #fff2d4;
    --ovulation: #7eb8a8;
    --danger: #c45a72;
    --danger-soft: #fde8ee;
    --ok: #4a9a78;
    --ok-soft: #dff6e4;
    --warn: #c09050;
    --warn-soft: #fff2d4;
    --shadow: 0 8px 24px rgba(123, 143, 212, 0.10);
    --ring-period: #d4899a;
    --ring-fertile: #e0b070;
    --ring-ovulation: #7eb8a8;
    --ring-today: #3a2a4a;
    --ring-track: #f0e6f0;
    --ring-stroke: #e5d5e5;
    --ring-empty: #fffafc;
    --ring-text: #3a2a4a;
    --ring-on: #fffafc;
}

body.theme-professional {
    /* 專業：冷白／藍灰 + 深藍字 + teal #2ea89a（公開場合舒服） */
    --bg: #eef1f6;
    --frame: #e1e6ef;
    --bg-elev: #ffffff;
    --ink: #1a2b56;
    --muted: #5b677a;
    --line: #d8dee8;
    --accent: #2ea89a;
    --accent-ink: #ffffff;
    --accent-soft: #d8f3ef;
    --period: #8a6a72;
    --period-soft: #f3eaea;
    --fertile: #8a7a52;
    --fertile-soft: #f4f0e4;
    --ovulation: #4a6a8a;
    --danger: #a05058;
    --danger-soft: #f3e8ea;
    --ok: #2f6d56;
    --ok-soft: #e6f2ec;
    --warn: #8a6a30;
    --warn-soft: #f4efe2;
    --shadow: 0 1px 2px rgba(26, 43, 86, 0.05), 0 8px 20px rgba(26, 43, 86, 0.05);
    --radius: 14px;
    --ring-period: #8a6a72;
    --ring-fertile: #b0a070;
    --ring-ovulation: #4a6a8a;
    --ring-today: #1a2b56;
    --ring-track: #e4e9f0;
    --ring-stroke: #d0d7e2;
    --ring-empty: #f8fafc;
    --ring-text: #1a2b56;
    --ring-on: #f8fafc;
}

body.theme-light {
    /* 系統淺色：淨白淺灰 + 中性藍灰 accent（同大眾珊瑚、專業 teal 分開） */
    --bg: #f4f6f8;
    --frame: #e6ebf0;
    --bg-elev: #ffffff;
    --ink: #1f2933;
    --muted: #6b7785;
    --line: #d9e0e7;
    --accent: #5b6b7c;
    --accent-ink: #ffffff;
    --accent-soft: #e8eef4;
    --period: #a87888;
    --period-soft: #f6e8ec;
    --fertile: #a89060;
    --fertile-soft: #f5efdf;
    --ovulation: #5a7fa0;
    --danger: #b85a68;
    --danger-soft: #f8e8eb;
    --ok: #3d8a6a;
    --ok-soft: #e6f3ed;
    --warn: #9a7a30;
    --warn-soft: #f7f0de;
    --shadow: 0 1px 2px rgba(31, 41, 51, 0.04), 0 10px 24px rgba(31, 41, 51, 0.06);
    --ring-period: #a87888;
    --ring-fertile: #c0a870;
    --ring-ovulation: #5a7fa0;
    --ring-today: #1f2933;
    --ring-track: #e8edf2;
    --ring-stroke: #d2dae3;
    --ring-empty: #ffffff;
    --ring-text: #1f2933;
    --ring-on: #ffffff;
}

body.theme-dark {
    /* 系統深色：深夜底 + 淺字 + soft teal accent */
    --bg: #12141a;
    --frame: #1a1d26;
    --bg-elev: #1c2029;
    --ink: #e8eaef;
    --muted: #9aa3b2;
    --line: #2a303c;
    --accent: #5ec4b6;
    --accent-ink: #10201c;
    --accent-soft: #243532;
    --period: #d49aa8;
    --period-soft: #3a2a30;
    --fertile: #d4b86a;
    --fertile-soft: #3a3424;
    --ovulation: #7eb8d4;
    --danger: #e08a96;
    --danger-soft: #3a2428;
    --ok: #6dcea0;
    --ok-soft: #24362e;
    --warn: #e0c06a;
    --warn-soft: #3a3420;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 14px 32px rgba(0, 0, 0, 0.35);
    --ring-period: #d49aa8;
    --ring-fertile: #d4b86a;
    --ring-ovulation: #7eb8d4;
    --ring-today: #e8eaef;
    --ring-track: #2a303c;
    --ring-stroke: #3a4250;
    --ring-empty: #1c2029;
    --ring-text: #e8eaef;
    --ring-on: #12141a;
}

body.theme-custom {
    /* 自選：實際色值由 body inline CSS variables 覆蓋（picker 預設色仍可用奶油＋珊瑚） */
}



* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: calc(var(--nav-h) + 28px + env(safe-area-inset-bottom));
}

body.page-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.3; }
h1 { font-size: 1.45rem; margin: 0; }
h2 { font-size: 1.25rem; margin: 0 0 8px; }
h3 { font-size: 1.05rem; margin: 0 0 12px; }
p { margin: 0 0 12px; }
a { color: var(--accent); }

.container {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 12px 16px 8px;
}

.header {
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 18px 16px 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
}

.header h1 { font-size: 1.45rem; }

.app-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 2px 14px;
}

.eyebrow {
    margin: 0 0 2px;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.lede { color: var(--muted); font-size: 15px; margin: 0 0 16px; }

.hint { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0 0 12px; }

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 13px;
    margin: 14px 0 4px;
}
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.btn-oauth {
    background: var(--bg-elev);
    color: var(--ink);
    border-color: var(--line);
}

.text-link {
    color: var(--accent);
    font-weight: 650;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.card,
.history-card,
.stat-box,
.supply-station-card,
.notice-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 16px;
    margin-bottom: 14px;
    position: relative;
}

body.page-reminders > .container,
body.page-invite > .container,
body.page-accept > .container,
body.page-sos > .container,
body.page-period > .container,
body.page-email > .container,
body.page-privacy > .container,
body.page-auth .container {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 26px 20px 22px;
    margin-top: 16px;
    margin-bottom: 16px;
}

body.page-auth .container { width: min(420px, 100%); margin: 0; }

.wordmark {
    margin: 0;
    text-align: center;
    font-size: 13px;
    letter-spacing: 0.18em;
    color: var(--muted);
}

body.page-auth h1,
body.page-auth h2 { text-align: center; margin: 8px 0 18px; }

.card h2, .card h3 { margin-top: 0; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    margin: 6px 0 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-elev);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

textarea { min-height: 96px; resize: vertical; }

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

label { display: block; font-size: 14px; font-weight: 650; margin-top: 4px; }

.btn,
.btn-submit,
.btn-back-home,
body.page-auth button,
body.page-accept button,
body.page-period button,
body.page-sos .btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    margin: 10px 0;
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: var(--accent);
    color: var(--accent-ink);
    font: inherit;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.btn-secondary,
.btn-back-home {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-sos,
.btn-danger { background: var(--danger); color: #fff; }

.btn-quiet {
    background: transparent;
    color: var(--accent);
    border-color: transparent;
    min-height: 44px;
}

.btn-compact { width: auto; min-height: 44px; margin: 0; padding: 10px 14px; white-space: nowrap; }

.alert,
.flash,
.success,
.error {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 0;
    padding: 14px 16px;
    margin: 0;
    font: inherit;
    font-weight: 650;
    text-align: center;
    cursor: pointer;
}

.flash {
    position: sticky;
    top: 0;
    z-index: 30;
}

.error,
.success,
.alert {
    border-radius: 12px;
    margin: 0 0 12px;
}

.alert-success,
.flash-ok,
.success { background: var(--ok-soft); color: var(--ok); border: 1px solid transparent; }

.alert-error,
.flash-bad,
.error { background: var(--danger-soft); color: var(--danger); border: 1px solid transparent; }

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: stretch;
    min-height: var(--nav-h);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg-elev);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 20px rgba(28, 31, 30, 0.05);
}

.nav-tab {
    flex: 1;
    min-width: 64px;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}

.nav-tab.active { color: var(--accent); }

.nav-mark {
    width: 24px;
    height: 4px;
    border-radius: 99px;
    background: var(--line);
}

.nav-tab.active .nav-mark { background: var(--accent); }

.profile-menu {
    display: none;
    position: absolute;
    right: 10px;
    bottom: calc(100% + 8px);
    width: min(240px, calc(100vw - 24px));
    flex-direction: column;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
    z-index: 50;
}

.profile-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.profile-menu a.danger { color: var(--danger); }

.tab-bar {
    display: flex;
    gap: 8px;
    margin: 0 0 12px;
}

.tab-item {
    min-height: 44px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    color: var(--muted);
    cursor: pointer;
    position: relative;
}

.tab-item.active { color: var(--ink); font-weight: 750; }

.tab-item.active::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 6px;
    height: 3px;
    border-radius: 99px;
    background: var(--accent);
}

.circle-container {
    position: relative;
    width: min(340px, 100%);
    aspect-ratio: 1;
    margin: 8px auto 0;
}

#cycleCanvas { width: 100%; height: 100%; display: block; }

.month-label {
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 750;
}

.circle-center-box {
    position: absolute;
    top: 54%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46%;
    height: 46%;
    border-radius: 50%;
    background: var(--accent-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    padding: 8px;
}

.center-title { font-size: 13px; color: var(--muted); }
.center-days { font-size: 1.25rem; font-weight: 750; margin: 4px 0; }
.center-date { font-size: 12px; color: var(--muted); }

.legend-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 12px;
}

.legend-item { display: flex; align-items: center; gap: 6px; }

.legend-dot,
.legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot-period,
.legend-swatch { background: var(--ring-period); }
.dot-predict { background: var(--ring-empty); box-shadow: inset 0 0 0 1.5px var(--ring-period); }
.dot-fertile { background: var(--ring-fertile); }
.dot-ovulation { background: var(--ring-ovulation); }
.dot-today { background: var(--ring-empty); box-shadow: inset 0 0 0 2px var(--ring-today); width: 12px; height: 12px; }

.rabbit-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    background: var(--ok-soft);
    color: var(--ok);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 750;
}

.rabbit-badge.is-period,
.rabbit-badge.warning {
    background: var(--period-soft);
    color: var(--period);
}

.status-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(76px, 1fr));
    gap: 8px;
}

.status-item { text-align: center; text-decoration: none; color: inherit; margin: 0; }

.status-hit,
form.status-item button {
    width: 100%;
    min-height: 48px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.status-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--accent-soft);
    border: 1px solid var(--line);
}

.status-label { font-size: 13px; color: var(--ink); }

/* 今日：柔和文字 chip，固定同一橫行 */
.today-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 6px;
    width: 100%;
}
.today-chip-form {
    margin: 0;
    display: flex;
    flex: 1 1 0;
    min-width: 0;
}
.today-chip,
.today-chip-form .today-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    min-height: 40px;
    padding: 8px 4px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
}
.today-chip-primary {
    background: var(--accent);
    border-color: transparent;
    color: var(--accent-ink);
}
.today-chip-soft {
    background: var(--accent-soft);
    border-color: transparent;
    color: var(--ink);
    cursor: default;
}
.home-hero-today h3 { margin-bottom: 12px; }


.supply-tag {
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 4px;
}

.supply-title { font-size: 1.15rem; font-weight: 750; margin-bottom: 10px; }

.supply-box {
    background: var(--accent-soft);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    color: var(--ink);
}

.supply-highlight { color: var(--accent); font-weight: 750; }

.delivery-grid { display: flex; gap: 8px; }

.delivery-btn {
    flex: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    font-weight: 750;
    font-size: 13px;
    border-radius: 12px;
    padding: 10px;
}

.btn-panda { background: #d70f64; color: #fff; }
.btn-meituan,
.btn-keeta { background: #ffc300; color: #2d3748; }

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 12px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 88px;
    padding: 12px 8px;
    text-decoration: none;
    text-align: center;
    color: var(--ink);
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: 14px;
    font-weight: 650;
}

.action-btn:active { transform: scale(0.98); }

.action-emoji { font-size: 22px; line-height: 1; }

.action-btn-sos {
    border-color: var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
}

.more-panel {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 0 0 14px;
    padding: 0 14px;
}

.more-panel > summary {
    min-height: 48px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: var(--muted);
    font-weight: 650;
    list-style: none;
}

.more-panel > summary::-webkit-details-marker { display: none; }

.more-panel[open] { padding-bottom: 4px; }

.quiet-stack.nested {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.empty-guide {
    margin: 0 0 12px;
}

.empty-guide .btn { margin-top: 12px; }

.reply-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.reply-chip {
    border: 1px solid var(--line);
    background: var(--accent-soft);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.reply-chip:active { transform: scale(0.98); }

.digest-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0 8px;
    padding: 12px;
    background: var(--accent-soft);
    border-radius: calc(var(--radius) - 4px);
}

.digest-toggle input { margin-top: 3px; }

@media (max-width: 380px) {
    .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.quiet-stack {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 0 0 14px;
    padding: 0 14px;
}

.quiet-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 8px 0;
    text-decoration: none;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 15px;
}

.quiet-stack .quiet-link:first-child { border-top: 0; }

.sos-panel {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin: 0 0 14px;
    padding: 0 14px;
}

.sos-panel summary {
    min-height: 52px;
    display: flex;
    align-items: center;
    font-weight: 700;
    cursor: pointer;
}

.sos-panel[open] { padding-bottom: 8px; }

.now-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
    padding: 20px 18px 16px;
    margin: 0 0 12px;
}

.now-card.is-alert { border-color: var(--danger); }

.now-kicker {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.now-card h2 { font-size: 1.65rem; margin: 0; }

.now-figure {
    margin: 8px 0 0;
    font-size: 3rem;
    font-weight: 750;
    line-height: 1;
    letter-spacing: -0.03em;
}

.now-figure span {
    margin-left: 6px;
    font-size: 1rem;
    font-weight: 650;
    color: var(--muted);
}

.now-detail { color: var(--muted); margin: 8px 0 0; }

.now-card .btn { margin: 16px 0 0; }

.page-home .circle-container { width: min(280px, 100%); margin-top: 0; }

.page-home .rabbit-badge {
    position: static;
    display: inline-flex;
    margin: 0 0 8px;
}

.debug-box {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: 13px;
}

.debug-box summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }

.stack { display: flex; gap: 8px; }
.stack form { flex: 1; margin: 0; }

.reply-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
    background: var(--accent-soft);
    border-bottom: 1px solid var(--line);
}

.reply-copy { font-size: 14px; }
.reply-quote {
    margin-top: 6px;
    padding: 8px 12px;
    background: var(--bg-elev);
    border-radius: 10px;
    border-left: 3px solid var(--accent);
    font-weight: 700;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(20, 22, 21, 0.72);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));
    overflow: auto;
}

/* SOS 開啟時藏底欄，避免蓋住彈窗按鈕 */
body:has(#sosModal) .bottom-nav {
    visibility: hidden;
    pointer-events: none;
}

.modal-card {
    width: min(440px, 100%);
    max-width: 100%;
    min-width: 0;
    max-height: min(85vh, calc(100dvh - var(--nav-h) - 48px));
    overflow: auto;
    margin: auto 0;
    background: var(--bg-elev);
    border-radius: 18px;
    padding: 22px 16px;
    border: 1px solid var(--line);
}

.modal-alert { border-top: 4px solid var(--danger); }

.modal-kicker { color: var(--danger); text-align: center; margin: 8px 0; }

.quote-box,
.advice-box {
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: left;
}

.quote-box { background: var(--danger-soft); color: var(--danger); font-weight: 700; }
.advice-box { background: var(--warn-soft); }

.field-label { font-size: 13px; margin-bottom: 6px; }

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.month-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    font-size: 24px;
    cursor: pointer;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    text-align: center;
}

.weekday,
.day,
.calendar-grid > div {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.weekday { color: var(--muted); font-size: 12px; font-weight: 750; min-height: 32px; }

.day {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    font-size: 15px;
}

.day.today { box-shadow: inset 0 0 0 2px var(--ink); font-weight: 750; }

.day.period {
    background: var(--period-soft);
    color: var(--period);
    border-color: var(--period);
    font-weight: 750;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 8px 0 14px;
}

.choice {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    font-weight: 500;
}

.choice input { width: 20px; height: 20px; margin: 0; }

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    font-weight: 500;
}

.symptom-tag {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 13px;
}

.log-item {
    background: var(--bg);
    border-radius: 14px;
    padding: 14px;
    margin: 12px 0;
}

.star { color: var(--fertile); letter-spacing: 1px; }

.tip,
.notification,
.disclaimer,
.invite-box {
    border-radius: 14px;
    padding: 14px;
    margin: 12px 0;
    background: var(--accent-soft);
}

.tip, .notification { border-left: 4px solid var(--accent); }
.disclaimer { background: var(--warn-soft); color: var(--warn); border-left: 4px solid var(--warn); }
.tip-source { margin: 8px 0 0; font-size: 13px; line-height: 1.45; }
.tip-source a { color: var(--accent); font-weight: 650; }
.health-note { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--warn); }
.invite-code, #inviteLink, .invite-box {
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: 0.02em;
    color: var(--accent);
    overflow-wrap: anywhere;
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    min-height: 76px;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-elev);
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.theme-option-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-option input { width: 20px; height: 20px; margin: 0; flex: none; }

.theme-option:has(input:checked),
.theme-option.is-current {
    border-color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent), var(--shadow);
}

.theme-default-tag {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    font-style: normal;
    font-size: 11px;
    font-weight: 750;
    vertical-align: middle;
    background: var(--accent-soft);
    color: var(--accent);
}

.theme-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px 4px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border: 1px dashed var(--line);
}

.theme-preview {
    display: block;
    width: min(148px, 42vw);
    height: auto;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: #fff;
}

.theme-option.is-current .theme-preview,
.theme-option:has(input:checked) .theme-preview {
    width: min(200px, 58vw);
}

.theme-preview-caption {
    font-size: 11px;
    font-weight: 650;
    color: var(--muted);
    letter-spacing: 0.04em;
}

@media (min-width: 520px) {
    .theme-option {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .theme-option-main { flex: 1 1 auto; min-width: 0; }
    .theme-preview-wrap {
        flex: 0 0 auto;
        min-width: 160px;
        padding: 12px;
    }
    .theme-preview { width: 132px; }
    .theme-option.is-current .theme-preview,
    .theme-option:has(input:checked) .theme-preview { width: 168px; }
}

.swatch { width: 46px; height: 46px; border-radius: 12px; flex: none; border: 1px solid var(--line); }
.swatch-mass { background: linear-gradient(145deg, #f7f3ee 42%, #e07a5f 42%); }
.swatch-feminine { background: linear-gradient(145deg, #e8e7ff 42%, #7b8fd4 42%); }
.swatch-professional { background: linear-gradient(145deg, #e1f0ff 42%, #2ea89a 42%); }
.swatch-light { background: linear-gradient(145deg, #f4f6f8 42%, #5b6b7c 42%); }
.swatch-dark { background: linear-gradient(145deg, #12141a 42%, #5ec4b6 42%); }
.swatch-custom { background: conic-gradient(from 210deg, #e07a5f, #7b8fd4, #2ea89a, #5b6b7c, #e07a5f); }

.custom-colors {
    margin: 8px 0 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-elev);
}
.custom-colors .section-title {
    margin: 0 0 6px;
    font-size: 1rem;
}
.color-field { margin: 12px 0 0; }
.color-field label {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 6px;
}
.color-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.color-row input[type="color"] {
    width: 48px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    flex: none;
}
.color-row input[type="text"] {
    flex: 1;
    min-height: 44px;
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.02em;
}

.theme-copy { display: flex; flex-direction: column; gap: 2px; }
.theme-copy small { color: var(--muted); font-weight: 450; }

.meta-time { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.sos-bubble, .response-bubble { border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.sos-bubble { background: var(--danger-soft); border-left: 4px solid var(--danger); }
.response-bubble { background: var(--ok-soft); border-left: 4px solid var(--ok); }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; background: var(--accent-soft); color: var(--accent); }
.badge-pending { background: var(--danger-soft); color: var(--danger); }
.badge-replied { background: var(--accent-soft); color: var(--accent); }
.badge-food { background: var(--ok-soft); color: var(--ok); }

.stat-grid { display: flex; gap: 10px; margin-bottom: 14px; }
.stat-box { flex: 1; text-align: center; }
.stat-num { font-size: 1.4rem; font-weight: 750; color: var(--accent); margin-top: 4px; }
.record-item { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.record-item:last-child { border-bottom: 0; }
.record-date { font-weight: 750; }
.record-meta, .fine { font-size: 12px; color: var(--muted); }
.flow-badge { background: var(--period-soft); color: var(--period); border-radius: 999px; padding: 4px 8px; font-size: 12px; font-weight: 750; white-space: nowrap; }

.suggestion-box { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.suggestion-title { font-size: 13px; color: var(--muted); font-weight: 750; margin-bottom: 8px; }
.suggestion-item {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px;
    min-height: 44px;
    cursor: pointer;
    font-size: 13px;
}
.subtitle { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.form-group { margin-bottom: 12px; }
.empty { text-align: center; color: var(--muted); padding: 24px 0; }

.tags-grid { position: relative; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.tag-label {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--bg);
    cursor: pointer;
}
.tag-checkbox:checked + .tag-label,
.tag-checkbox:focus-visible + .tag-label {
    border-color: var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
    font-weight: 750;
}

.section-title { display: block; font-weight: 750; margin-bottom: 8px; }
.back-link { display: block; text-align: center; margin: 8px 0 4px; }
.back-link a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px; }

@media (max-width: 420px) {
    .choice-grid { grid-template-columns: 1fr; }
    .status-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .center-days, .center-title, .center-date { overflow-wrap: anywhere; }
    .center-days { font-size: 1.05rem; }
    .delivery-grid, .stack, .stat-grid, .meta-time, .record-item { flex-direction: column; align-items: stretch; }
    .delivery-btn { font-size: 15px; }
    .flow-badge, .btn-compact { white-space: normal; }
    .calendar-grid { gap: 3px; }
    .day, .weekday, .calendar-grid > div { min-height: 44px; font-size: 14px; }
    .header h1, .now-card h2 { font-size: 1.45rem; }
    .page-symptoms .card, .page-calendar .card, .page-appearance .card { padding: 16px 14px; }
}

/* Home primary block: now-do inside ring card + 今日 */
.home-hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 16px;
}

.home-hero-primary {
    margin: 0;
    padding-top: 14px;
}

.home-hero-now {
    margin: 0 0 12px;
    padding: 0 0 14px;
    border-bottom: 1px solid var(--line);
}

.home-hero-now.is-alert {
    border-bottom-color: var(--danger);
}

.home-hero-now .now-kicker {
    margin: 0 0 4px;
}

.home-hero-now h2 {
    font-size: 1.35rem;
    margin: 0;
}

.home-hero-now .now-figure {
    margin: 6px 0 0;
    font-size: 2.4rem;
}

.home-hero-now .now-detail {
    margin: 6px 0 0;
}

.home-hero-now .btn {
    margin: 12px 0 0;
    width: auto;
    min-width: 0;
    display: inline-flex;
}

.home-hero .tab-bar {
    margin: 0 0 8px;
}

.home-hero-today {
    margin: 0;
}

/* Collapsed recent logs on symptoms */
.recent-logs {
    padding-top: 8px;
    padding-bottom: 8px;
}

.recent-logs-summary {
    list-style: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 750;
    min-height: 44px;
    display: flex;
    align-items: center;
    color: var(--ink);
}

.recent-logs-summary::-webkit-details-marker { display: none; }

.recent-logs-summary::after {
    content: "展開";
    margin-left: auto;
    font-size: 13px;
    font-weight: 650;
    color: var(--muted);
}

.recent-logs[open] .recent-logs-summary::after {
    content: "收起";
}

.recent-logs[open] {
    padding-bottom: 14px;
}

/* Invite QR */
.invite-qr {
    text-align: center;
    margin: 16px 0;
    padding: 14px 10px;
    border-radius: 14px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: 0;
}

.invite-qr-canvas {
  display: inline-block;
  margin: 12px auto;
  padding: 8px;
  background: #fff;
  border-radius: 12px;
}
.invite-qr-canvas img,
.invite-qr-canvas canvas {
  display: block;
  margin: 0 auto;
}
.invite-qr-img {
    display: block;
    width: 200px;
    height: 200px;
    margin: 12px auto 8px;
    border-radius: 12px;
    background: #fff;
}

.invite-qr-hint {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}

.scan-panel {
    margin: 8px 0 4px;
    padding: 10px;
    border-radius: 14px;
    background: #1c1917;
    border: 1px solid var(--line);
}

.scan-panel video {
    display: block;
    width: 100%;
    max-height: 320px;
    border-radius: 12px;
    background: #111;
    object-fit: cover;
}

.scan-panel .btn {
    margin-bottom: 0;
}

body.page-accept .hint {
    text-align: left;
}


/* ========== Theme-adaptive home dashboard (A Professional / B Mass / C Feminine) ========== */
.theme-show-pro,
.theme-show-mass,
.theme-show-fem,
.theme-show-generic { display: none; }

body.theme-professional .theme-show-pro,
body.theme-light .theme-show-pro,
body.theme-dark .theme-show-pro,
body.theme-custom .theme-show-pro,
body.theme-professional .theme-show-generic,
body.theme-light .theme-show-generic,
body.theme-dark .theme-show-generic,
body.theme-custom .theme-show-generic,
body.theme-mass .theme-show-mass,
body.theme-feminine .theme-show-fem { display: block; }

body.theme-professional .week-strip.theme-show-pro,
body.theme-light .week-strip.theme-show-pro,
body.theme-dark .week-strip.theme-show-pro,
body.theme-custom .week-strip.theme-show-pro,
body.theme-professional .week-strip.theme-show-generic,
body.theme-light .week-strip.theme-show-generic,
body.theme-dark .week-strip.theme-show-generic,
body.theme-custom .week-strip.theme-show-generic { display: grid; }

body.theme-professional .home-link-grid.theme-show-pro,
body.theme-light .home-link-grid.theme-show-pro,
body.theme-dark .home-link-grid.theme-show-pro,
body.theme-custom .home-link-grid.theme-show-pro,
body.theme-professional .home-link-grid.theme-show-generic,
body.theme-light .home-link-grid.theme-show-generic,
body.theme-dark .home-link-grid.theme-show-generic,
body.theme-custom .home-link-grid.theme-show-generic,
body.theme-feminine .home-link-grid.theme-show-fem,
body.theme-feminine .home-link-grid.fem-dual { display: grid; }

body.theme-mass .mass-stack.theme-show-mass { display: flex; flex-direction: column; }
body.theme-feminine .status-phase-badge.theme-show-fem { display: inline-flex; }
body.theme-feminine .home-submark.theme-show-fem { display: block; }
body.theme-feminine .chip-row { display: flex; }

body.theme-mass .theme-hide-mass,
body.theme-feminine .theme-hide-fem { display: none !important; }

.home-app-bar {
    align-items: center;
    padding-bottom: 8px;
}
.home-app-bar .home-wordmark {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ink);
}
body.theme-mass .home-app-bar {
    justify-content: center;
}
body.theme-mass .home-app-bar .icon-btn { position: absolute; right: 18px; }
body.theme-feminine .home-wordmark-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
}
body.theme-feminine .home-app-bar { justify-content: space-between; }
body.theme-feminine .home-submark {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-size: 18px;
    box-shadow: var(--shadow);
}
body.theme-feminine .icon-btn {
    background: rgba(255,255,255,0.85);
    border: 0;
}

.home-status-card {
    margin: 0;
    padding: 18px 16px 16px;
    text-align: center;
}
body.theme-feminine.page-home {
    background:
        radial-gradient(120% 80% at 10% 0%, #efe6f8 0%, transparent 55%),
        radial-gradient(100% 70% at 100% 10%, #f8e9ef 0%, transparent 50%),
        var(--bg);
}
body.theme-feminine .home-status-card {
    background: rgba(255,250,252,0.92);
    border: 0;
    box-shadow: 0 10px 28px rgba(123, 143, 212, 0.12);
}

.status-ring {
    --p: 45;
    width: min(220px, 70vw);
    aspect-ratio: 1;
    margin: 4px auto 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        conic-gradient(var(--accent) calc(var(--p) * 1%), var(--ring-track) 0);
    position: relative;
}
body.theme-mass .status-ring {
    background:
        conic-gradient(#5b8a8a calc(var(--p) * 1%), #e8e2da 0);
}
body.theme-feminine .status-ring {
    background:
        conic-gradient(#7b8fd4 0%, #d4a0c0 calc(var(--p) * 1%), var(--ring-track) 0);
}
.status-ring::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    background: var(--bg-elev);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
}
body.theme-professional .status-ring::before { inset: 12px; }
body.theme-mass .status-ring::before { background: var(--bg); }
.status-ring-inner {
    position: relative;
    z-index: 1;
    padding: 12px;
    max-width: 70%;
}
.status-day-num {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.03em;
}
body.theme-feminine .status-day-num { color: #7b8fd4; }
.status-day-label {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
    font-weight: 650;
}
.status-phase-badge {
    display: inline-flex;
    margin-top: 10px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 750;
}
.status-mass-label {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.2;
}
.status-mass-sub {
    margin-top: 6px;
    font-size: 13px;
    color: var(--muted);
}

.week-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin: 4px 0 0;
}
.week-strip-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 650;
}
.week-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line);
}
.week-strip-day.is-today { color: var(--accent); }
.week-strip-day.is-today .week-dot { background: var(--accent); transform: scale(1.25); }

.home-link-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 12px;
}
body.theme-feminine .home-link-grid.fem-dual {
    grid-template-columns: 1fr 1fr;
}
.home-link-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 14px;
    border-radius: var(--radius);
    background: var(--bg-elev);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--ink);
    min-height: 64px;
}
.home-link-card .link-ico {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 18px;
    flex: 0 0 auto;
}
.home-link-card strong {
    display: block;
    font-size: 15px;
}
.home-link-card small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}
.home-link-card .chev {
    margin-left: auto;
    color: var(--muted);
    font-size: 18px;
}

.mass-stack { margin: 0 0 12px; display: flex; flex-direction: column; gap: 10px; }
.mass-progress-card {
    margin: 0;
    padding: 16px;
    background: var(--bg-elev);
}
.mass-progress-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
}
.progress-track {
    height: 10px;
    border-radius: 999px;
    background: #e8e2da;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: #5b8a8a;
    width: 0%;
}
.btn-pill {
    border-radius: 999px !important;
    min-height: 52px;
    font-size: 16px;
    font-weight: 750;
}

.fem-chip-card { margin: 0 0 12px; }
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}
.chip-row:last-child { margin-bottom: 0; }
.chip-row-label {
    width: 100%;
    font-size: 13px;
    font-weight: 750;
    color: var(--muted);
    margin-bottom: 2px;
}
.soft-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}
.soft-chip.is-on {
    background: var(--accent-soft);
    border-color: transparent;
    color: var(--accent);
}
.fem-cta {
    margin: 0 0 12px;
    border-radius: 16px !important;
    min-height: 52px;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding-left: 18px;
    padding-right: 18px;
    background: linear-gradient(120deg, #7b8fd4, #9aa8e0) !important;
    border: 0 !important;
}

.cycle-detail {
    margin: 0 0 12px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--bg-elev);
    box-shadow: var(--shadow);
}
.cycle-detail > summary {
    list-style: none;
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 750;
    min-height: 48px;
    display: flex;
    align-items: center;
}
.cycle-detail > summary::-webkit-details-marker { display: none; }
.cycle-detail > summary::after {
    content: "展開";
    margin-left: auto;
    font-size: 13px;
    font-weight: 650;
    color: var(--muted);
}
.cycle-detail[open] > summary::after { content: "收起"; }
.cycle-detail .home-hero-primary {
    border: 0;
    box-shadow: none;
    margin: 0;
    padding-top: 0;
}

body.theme-mass .action-grid { display: none; }
