@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&family=Noto+Serif+SC:wght@500;600;700&display=swap');

:root {
  --ink: #3e3a37;
  --muted: #817a74;
  --line: #e9e1d8;
  --paper: #fffdf9;
  --canvas: #f8f4ee;
  --cream: #f5ede2;
  --coral: #c96f61;
  --coral-soft: #f7dfd6;
  --green: #7a9b7c;
  --green-soft: #e6eee5;
  --yellow: #d3a758;
  --yellow-soft: #f7ecd1;
  --shadow: 0 12px 34px rgba(100, 75, 54, .07);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: "DM Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif; font-size: 15px; line-height: 1.6; }
button, a { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: radial-gradient(circle at top, #fff8f1 0, var(--canvas) 58%); }
.auth-shell { width: min(1120px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; gap: 24px; align-items: stretch; }
.auth-intro, .auth-panel { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,249,.9); box-shadow: var(--shadow); }
.auth-intro { padding: 34px; display: flex; flex-direction: column; justify-content: center; }
.auth-intro h1 { margin-top: 8px; font-size: clamp(30px, 4vw, 48px); max-width: 13ch; }
.auth-intro p:last-child { max-width: 40ch; color: var(--muted); }
.auth-panel { padding: 22px; }
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.auth-tab { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fffaf5; color: #756b63; }
.auth-tab.active { border-color: var(--coral); background: var(--coral-soft); color: #9e5548; font-weight: 700; }
.auth-view h2 { margin-top: 4px; font-size: 25px; }
.auth-helper { margin: 8px 0 18px; color: var(--muted); font-size: 13px; }
.auth-link-row { margin: -8px 0 18px; display: flex; justify-content: space-between; gap: 10px; color: #8c7f74; font-size: 12px; }
.auth-link-row button { padding: 0; border: 0; background: none; color: var(--coral); font: inherit; cursor: pointer; }
.auth-form { display: grid; gap: 0; }
.auth-form .form-field { margin-bottom: 14px; }
.auth-reset { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
/* 一个账号属于多个家庭时的选择面板 */
.family-picker { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }
.family-picker[hidden] { display: none; }
.family-picker h3 { margin: 2px 0 14px; font-size: 18px; font-family: "Noto Serif SC", serif; }
.family-picker-list { display: grid; gap: 8px; margin-bottom: 16px; }
.family-picker-item { display: grid; gap: 3px; width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.family-picker-item:hover { border-color: #d6c7ba; background: #fffaf5; }
.family-picker-item strong { font-size: 14px; }
.family-picker-item small { color: var(--muted); font-size: 11px; }
.auth-reset h3 { margin: 2px 0 14px; font-size: 18px; font-family: "Noto Serif SC", serif; }
.auth-submit { width: 100%; margin-top: 6px; }
.auth-message { min-height: 22px; margin: 16px 2px 0; color: var(--green); font-size: 13px; }
.auth-message.error { color: var(--coral); }
.account-modal { width: min(100%, 460px); padding: 24px; border: 1px solid #eadbd0; border-radius: 18px; background: var(--paper); box-shadow: 0 24px 70px rgba(64, 44, 30, .2); }
.account-summary { margin-top: 18px; display: grid; gap: 12px; }
.account-summary > div { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fffaf5; }
.account-summary strong { display: block; margin-top: 4px; font-size: 17px; }
.account-summary small { display: block; margin-top: 4px; color: var(--muted); }
.account-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 260px; flex: 0 0 260px; padding: 28px 18px 20px; background: #fcfaf6; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 11px 30px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--coral); color: white; font-family: "Noto Serif SC", serif; font-size: 20px; box-shadow: 0 5px 14px rgba(201,111,97,.24); }
.brand strong { display: block; font-size: 14px; letter-spacing: .02em; }
.brand span, .switcher-copy small, .profile-button small { display: block; color: var(--muted); font-size: 11px; }
.eyebrow { margin: 0; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.family-switcher { padding: 0 8px 23px; border-bottom: 1px solid var(--line); }
.family-switcher-button, .profile-button { width: 100%; border: 0; background: transparent; display: flex; align-items: center; gap: 9px; padding: 10px 3px; text-align: left; }
.family-switcher-button > svg, .profile-button > svg { margin-left: auto; color: #aaa09a; width: 15px; }
.switcher-copy { min-width: 0; flex: 1; }
.switcher-copy strong { font-size: 13px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto; font-size: 13px; font-weight: 700; }
.avatar-family { background: var(--coral-soft); color: var(--coral); }
.avatar-user { background: #ded8ce; color: #5b554f; }
.avatar-child { width: 52px; height: 52px; background: var(--yellow-soft); color: #ad7e2f; font-family: "Noto Serif SC", serif; font-size: 20px; }
.avatar-mom { background: #f1d7ca; color: #9e5d4c; }
.avatar-small { width: 25px; height: 25px; font-size: 10px; }
.nav-list { padding: 22px 0; display: grid; gap: 5px; }
.nav-item { min-height: 44px; padding: 0 12px; border-radius: 10px; display: flex; align-items: center; gap: 12px; color: #78716b; font-size: 14px; transition: background .2s, color .2s, transform .2s; }
.nav-item:hover { background: #f6eee5; color: var(--ink); transform: translateX(2px); }
.sortable-main-item { cursor: grab; }
.sortable-main-item:active, .sortable-main-item.dragging { cursor: grabbing; opacity: .55; }
.nav-item.active { background: var(--coral-soft); color: #9e5548; font-weight: 700; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: #dedbd5; color: #77716b; font-size: 11px; }
.nav-badge.warm { background: var(--yellow-soft); color: #9b762e; }
.customize-nav-button { width: 100%; min-height: 42px; padding: 0 12px; border: 1px dashed #d9c9bc; border-radius: 10px; display: flex; align-items: center; gap: 10px; background: rgba(255,253,249,.45); color: #927d6e; font-size: 12px; }
.customize-nav-button:hover { border-color: var(--coral); background: var(--coral-soft); color: #9e5548; }
.customize-nav-button svg:last-child { width: 14px; margin-left: auto; }
.nav-custom-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--yellow); }
.nav-private-mark { margin-left: auto; color: #a98972; font-size: 10px; }
.custom-nav-group { margin: 9px 0 2px; padding-top: 8px; border-top: 1px solid #f0e8df; }
.custom-submenu { margin: -1px 0 3px; padding: 2px 0 4px 20px; border-top: 0; border-left: 1px solid #eaded3; }
.custom-submenu .custom-nav-item { min-height: 34px; padding-left: 14px; }
.custom-nav-group-label { min-height: 28px; padding: 0 12px; display: flex; align-items: center; gap: 8px; color: #9a8c81; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.custom-nav-group-label svg { width: 14px; color: #b18c6e; }
.custom-nav-group-label small { margin-left: auto; min-width: 17px; height: 17px; border-radius: 9px; display: grid; place-items: center; background: #f1e9df; color: #9b8879; font-size: 9px; font-weight: 500; }
.custom-nav-group .custom-nav-item { min-height: 38px; padding-left: 28px; font-size: 12px; }
.sidebar-bottom { margin-top: auto; }
.privacy-note { margin: 12px 8px 10px; padding: 11px; border: 1px solid #eee5dc; border-radius: 10px; display: flex; align-items: center; gap: 8px; color: #978e86; font-size: 11px; }
.privacy-note svg { width: 15px; color: var(--green); }
.profile-button { border-top: 1px solid var(--line); padding: 16px 4px 0; }

.main-content { min-width: 0; flex: 1; }
.topbar { height: 77px; padding: 0 5.5%; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; background: rgba(255,253,249,.68); }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.breadcrumb svg { width: 14px; }
.breadcrumb strong { color: var(--ink); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .more-button { width: 42px; height: 42px; border: 0; border-radius: 50%; display: grid; place-items: center; background: transparent; color: #746c65; position: relative; }
.icon-button:hover, .more-button:hover { background: #f2eae1; }
.notification span { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--coral); color: #fff; position: absolute; top: 2px; right: 1px; border: 1px solid var(--paper); font-size: 10px; font-weight: 700; line-height: 1; }
.notification span[hidden] { display: none; }
.user-chip { height: 42px; padding: 3px 6px 3px 3px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); display: flex; align-items: center; gap: 8px; }
.user-chip-name { font-size: 12px; }
.user-chip svg { width: 14px; margin-left: 2px; color: #a49b92; }
.page-content { max-width: 1480px; margin: 0 auto; padding: 42px 5.5% 70px; }
.module-page-template { width: 100%; max-width: 1280px; margin: 0 auto; }
.welcome-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.welcome-expand-button { min-height: 40px; padding: 0 8px; color: #a25b4f; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Noto Serif SC", serif; letter-spacing: 0; }
h1 { max-width: 740px; margin: 7px 0 9px; font-size: clamp(24px, 3vw, 36px); line-height: 1.32; font-weight: 600; }
h2 { margin: 3px 0 0; font-size: 22px; line-height: 1.35; font-weight: 600; }
h3 { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 600; }
.welcome-copy { color: var(--muted); margin-bottom: 0; }
.welcome-copy strong { color: var(--coral); font-size: 18px; }
.family-command-center { margin: 0 0 28px; padding: 18px 22px; border: 1px solid #e6d7ca; border-radius: var(--radius); background: #fffaf4; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr) auto; gap: 22px; align-items: center; }
.family-command-main { display: flex; align-items: start; gap: 14px; min-width: 0; }
.family-command-icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); }
.family-command-icon svg { width: 22px; height: 22px; }
.family-command-title-row { display: flex; align-items: center; gap: 10px; }
.family-command-date { margin: 0; color: #9a8a7d; font-size: 10px; white-space: nowrap; }
.family-command-main h2 { margin: 4px 0 4px; font-size: 23px; }
.family-command-main p:not(.eyebrow) { margin: 0; max-width: 560px; color: var(--muted); font-size: 12px; }
.family-member-strip { margin-top: 13px; display: flex; align-items: center; gap: 0; }
.family-member-avatar { width: 27px; height: 27px; margin-right: -5px; border: 2px solid #fffaf4; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: #66806a; font-size: 10px; font-weight: 700; }
.family-member-avatar:nth-child(2) { background: var(--coral-soft); color: #a85a4d; }
.family-member-avatar:nth-child(3) { background: var(--yellow-soft); color: #9b762e; }
.family-member-strip small { margin-left: 13px; color: var(--muted); font-size: 11px; }
.family-command-status { padding-left: 22px; border-left: 1px solid #eaded4; }
.family-command-status > div:first-child span { display: block; color: var(--muted); font-size: 10px; }
.family-command-status > div:first-child strong { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; }
.family-command-metrics { display: flex; gap: 13px; margin-top: 14px; }
.family-command-metrics span { color: var(--muted); font-size: 10px; white-space: nowrap; }
.family-command-metrics strong { margin-right: 3px; color: var(--ink); font-family: "DM Sans", "Noto Sans SC", sans-serif; font-size: 18px; }
.family-command-actions { display: grid; gap: 2px; align-content: center; min-width: 150px; }
.family-command-actions .text-button { min-height: 38px; padding: 0 0 0 15px; border-left: 1px solid #eaded4; white-space: nowrap; }
.family-announcements-panel { margin: -10px 0 28px; padding: 19px 22px 14px; border: 1px solid #e6c9b8; border-left: 4px solid var(--coral); border-radius: var(--radius); background: #fff9f3; box-shadow: var(--shadow); }
.family-announcements-heading { display: flex; align-items: center; gap: 12px; }
.family-announcements-heading-icon { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); }
.family-announcements-heading > div:nth-child(2) { min-width: 0; }
.family-announcements-heading h2 { margin-top: 2px; font-size: 20px; }
.family-announcements-heading .outline-button { width: auto; min-height: 38px; margin-left: auto; padding: 0 12px; }
.family-announcement-list { margin-top: 12px; }
.family-announcement-item { min-width: 0; padding: 12px 2px; border-top: 1px solid #f0e3d9; display: flex; align-items: start; gap: 12px; }
.family-announcement-item > i { margin-top: 2px; flex: 0 0 auto; color: var(--coral); width: 17px; }
.family-announcement-copy { min-width: 0; flex: 1; }
.family-announcement-copy strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.family-announcement-copy p { margin: 4px 0 0; color: #756b63; font-size: 12px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.family-announcement-copy small { display: block; margin-top: 5px; color: #a09286; font-size: 10px; }
.family-announcement-archive { flex: 0 0 auto; padding: 5px 7px; border: 0; border-radius: 6px; background: transparent; color: #9b887a; font-size: 11px; }
.family-announcement-archive:hover { background: var(--coral-soft); color: #9e5548; }
/* 已归档分组：默认收起，避免和当前事项抢注意力 */
.family-announcement-archived { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.family-announcement-archived summary { cursor: pointer; color: var(--muted); font-size: 11px; list-style: none; }
.family-announcement-archived summary::-webkit-details-marker { display: none; }
.family-announcement-archived summary::before { content: "▸ "; }
.family-announcement-archived[open] summary::before { content: "▾ "; }
.family-announcement-archived summary:hover { color: var(--ink); }
.family-announcement-archived summary span { font-variant-numeric: tabular-nums; }
.family-announcement-item.is-archived { opacity: .72; }
.family-announcement-item.is-archived strong { font-weight: 600; }
.family-assets-panel { margin: 0 0 28px; }
.family-assets-heading { display: flex; align-items: center; gap: 12px; }
.family-assets-heading-icon { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); }
.family-assets-heading > div:nth-child(2) { min-width: 0; }
.family-assets-heading h2 { margin-top: 2px; font-size: 20px; }
.family-assets-heading .outline-button { width: auto; min-height: 38px; margin-left: auto; padding: 0 12px; }
.family-assets-content { min-height: 78px; margin-top: 10px; display: flex; align-items: center; }
.family-assets-summary { width: 100%; display: flex; align-items: end; gap: 18px; }
.family-assets-amount { font-family: "DM Sans", "Noto Sans SC", sans-serif; font-size: 30px; line-height: 1.15; font-weight: 700; color: var(--ink); }
.family-assets-amount small { margin-left: 5px; color: var(--muted); font-size: 12px; font-weight: 500; }
.family-assets-meta { color: var(--muted); font-size: 11px; }
.family-assets-private { width: 100%; padding: 13px 15px; border-radius: 10px; background: #f5f0e9; color: #887b70; font-size: 12px; }
/* ── 家庭资产模块页 ── */
.assets-summary-panel { margin-bottom: 16px; }
.assets-split { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 10px; }
.assets-split span { color: var(--muted); font-size: 12px; }
.assets-split strong { margin-left: 7px; color: var(--ink); font-family: "DM Sans", "Noto Sans SC", sans-serif; font-size: 15px; font-variant-numeric: tabular-nums; }
.assets-other-currencies { margin: 8px 0 0; color: #9a9087; font-size: 11px; }
.assets-updated { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.assets-visibility { display: flex; align-items: center; gap: 8px; }
.assets-visibility > span { color: var(--muted); font-size: 11px; }
.assets-visibility select { min-height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; }
.assets-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.assets-column { padding-top: 18px; }
.asset-group { margin-top: 14px; }
.asset-group:first-of-type { margin-top: 6px; }
.asset-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.asset-group-head h3 { font-family: "Noto Serif SC", serif; font-size: 15px; }
.asset-group-head span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.asset-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f5f0e9; }
.asset-row:last-child { border-bottom: 0; }
.asset-row-name { flex: 1; min-width: 0; }
.asset-row-name strong { display: block; font-size: 13px; font-weight: 600; }
.asset-row-name small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.asset-row-amount { color: var(--ink); font-family: "DM Sans", "Noto Sans SC", sans-serif; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.asset-row-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .2s; }
.asset-row:hover .asset-row-actions, .asset-row:focus-within .asset-row-actions { opacity: 1; }
.asset-row-actions .icon-button { width: 30px; height: 30px; }
.asset-row-actions .icon-button svg { width: 14px; height: 14px; }
.asset-column-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 2px solid var(--line); }
.asset-column-total span { color: var(--muted); font-size: 12px; }
.asset-column-total strong { font-family: "DM Sans", "Noto Sans SC", sans-serif; font-size: 16px; font-variant-numeric: tabular-nums; }
.family-space-link { display: flex; flex-direction: column; align-items: start; min-height: 205px; transition: border-color .2s, transform .2s; }
.family-space-link:hover { border-color: #d9c3b4; transform: translateY(-2px); }
.family-space-link .eyebrow { margin: 18px 0 5px; }
.family-space-link h3 { font-size: 19px; }
.family-space-link p:not(.eyebrow) { margin: 8px 0 20px; color: var(--muted); font-size: 12px; }
.family-space-link .small-link { margin-top: auto; margin-left: 0; display: flex; align-items: center; gap: 6px; color: var(--coral); font-size: 11px; }
.family-people-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.family-person-card { min-height: 126px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; box-shadow: var(--shadow); }
.family-person-avatar { width: 43px; height: 43px; border-radius: 50%; display: grid; place-items: center; background: #e9e4dd; color: #615b54; font-size: 15px; font-weight: 700; }
.family-person-card.parent .family-person-avatar { background: var(--coral-soft); color: #a85a4d; }
.family-person-card.child .family-person-avatar { background: var(--green-soft); color: #66806a; }
.family-person-card.other .family-person-avatar { background: var(--yellow-soft); color: #9b762e; }
.family-person-copy { min-width: 0; }
.family-person-copy h3 { margin: 2px 0 3px; font-size: 16px; overflow-wrap: anywhere; }
.family-person-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.family-person-copy small { display: inline-block; margin-top: 10px; padding: 3px 7px; border-radius: 5px; background: #f5efe8; color: #85776b; font-size: 10px; }
.family-person-link { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #a59a90; }
.family-person-link:hover { background: var(--coral-soft); color: var(--coral); }
.home-summary-section { margin: 0 0 34px; }
.home-summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.home-summary-card { min-height: 118px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; transition: transform .2s, border-color .2s, box-shadow .2s; }
.home-summary-card:hover { transform: translateY(-2px); border-color: #d9c3b4; box-shadow: 0 15px 36px rgba(100, 75, 54, .11); }
.home-summary-icon { width: 35px; height: 35px; border-radius: 10px; display: grid; place-items: center; }
.summary-task .home-summary-icon { background: var(--green-soft); color: var(--green); }
.summary-approval .home-summary-icon { background: var(--coral-soft); color: var(--coral); }
.summary-result .home-summary-icon { background: var(--yellow-soft); color: #ab8134; }
.summary-message .home-summary-icon { background: #e9e3ef; color: #82729a; }
.home-summary-card span, .home-summary-card small, .home-summary-card strong { display: block; }
.home-summary-card span { color: var(--muted); font-size: 11px; }
.home-summary-card strong { margin-top: 2px; font-family: "DM Sans", "Noto Sans SC", sans-serif; font-size: 27px; line-height: 1.2; font-weight: 700; }
.home-summary-card small { margin-top: 4px; color: #9a9087; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-arrow { width: 15px; color: #b4aaa2; }
.home-live-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; margin-top: 14px; }
.home-live-panel { min-height: 220px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.home-live-panel .section-heading { margin-bottom: 9px; }
.overview-live-list { display: grid; gap: 0; }
.overview-live-item { min-height: 54px; padding: 10px 0; border-bottom: 1px solid #f1ebe4; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.overview-live-item:last-child { border-bottom: 0; }
.overview-live-item > div:nth-child(2) { min-width: 0; }
.overview-live-item strong, .overview-live-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-live-item strong { font-size: 12px; }
.overview-live-item small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.overview-live-status { padding: 4px 7px; border-radius: 6px; background: #f6efe8; color: #9b887a; font-size: 10px; white-space: nowrap; }
.overview-live-status.urgent { background: var(--coral-soft); color: #a85a4d; }
.overview-live-status.done { background: var(--green-soft); color: #66806a; }
.overview-live-status.unread { background: var(--yellow-soft); color: #9b762e; }
.overview-live-icon { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: #f5eee7; color: #9a8778; }
.overview-live-icon svg { width: 15px; }
.overview-empty { padding: 28px 8px; color: var(--muted); font-size: 12px; text-align: center; }
.overview-empty-cluster { margin: 0 0 28px; padding: 18px 22px; border: 1px dashed #dccabd; border-radius: var(--radius); background: rgba(255,253,249,.72); display: flex; align-items: center; gap: 14px; color: var(--muted); }
.overview-empty-cluster[hidden] { display: none; }
.overview-empty-cluster-icon { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: var(--yellow-soft); color: #ad812f; }
.overview-empty-cluster-icon svg { width: 18px; }
.overview-empty-cluster strong { display: block; color: var(--ink); font-size: 14px; }
.overview-empty-cluster p { margin: 3px 0 0; font-size: 12px; line-height: 1.55; }
.overview-empty-cluster .outline-button { width: auto; min-width: 150px; margin: 0 0 0 auto; flex: 0 0 auto; }
.family-timeline-panel { margin: 0 0 28px; }
.family-timeline-heading { display: flex; align-items: center; gap: 12px; }
.family-timeline-heading > div:nth-child(2) { min-width: 0; }
.family-timeline-heading h2 { margin-top: 2px; font-size: 20px; }
.family-timeline-heading .outline-button { width: auto; min-height: 38px; margin-left: auto; padding: 0 12px; }
/* 首页时间线只放最近 3 条，完整记录在时间线模块 */
.family-timeline-more { margin-left: auto; white-space: nowrap; }
.family-timeline-more + .outline-button { margin-left: 0; }
.family-timeline-list { display: grid; gap: 0; margin-top: 14px; }
.family-timeline-item { display: grid; grid-template-columns: 92px 16px minmax(0, 1fr); gap: 12px; min-height: 78px; padding: 12px 0; border-bottom: 1px solid #f1ebe4; }
.family-timeline-item:last-child { border-bottom: 0; }
.family-timeline-date strong, .family-timeline-date span { display: block; }
.family-timeline-date strong { color: var(--ink); font-size: 12px; }
.family-timeline-date span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.family-timeline-dot { position: relative; width: 12px; height: 12px; margin-top: 3px; border: 3px solid var(--coral); border-radius: 50%; background: #fff9f3; }
.family-timeline-item:not(:last-child) .family-timeline-dot::after { content: ""; position: absolute; top: 9px; left: 2px; width: 2px; height: 66px; background: #efd9ca; }
.family-timeline-copy { min-width: 0; }
.family-timeline-copy h3 { font-size: 14px; font-weight: 700; }
.family-timeline-copy p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.family-timeline-copy small { display: block; margin-top: 6px; color: #a99484; font-size: 10px; }
/* 家庭时间线模块（独立页面；首页只放最近 3 条） */
.timeline-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.timeline-filter-chip { min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font: inherit; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.timeline-filter-chip:hover { border-color: #d6c7ba; color: var(--ink); }
.timeline-filter-chip.active { border-color: var(--coral); background: var(--coral-soft); color: #9e5548; font-weight: 700; }
.timeline-filter-chip span { font-variant-numeric: tabular-nums; opacity: .75; }
.timeline-month-stack { display: grid; gap: 24px; }
.timeline-month-heading { display: flex; align-items: baseline; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.timeline-month-heading h2 { font-family: "Noto Serif SC", serif; font-size: 16px; }
.timeline-month-heading span { color: var(--muted); font-size: 11px; }
.timeline-month-group .family-timeline-list { margin-top: 0; }
.primary-button, .quiet-button, .outline-button { min-height: 44px; border-radius: 10px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.primary-button:disabled, .quiet-button:disabled, .outline-button:disabled, button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.primary-button:active:not(:disabled), .quiet-button:active:not(:disabled), .outline-button:active:not(:disabled) { transform: translateY(1px); }
.primary-button { padding: 0 17px; background: var(--coral); color: white; box-shadow: 0 7px 16px rgba(201,111,97,.2); }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(201,111,97,.25); }
.quiet-button { padding: 0 12px; color: #887b71; background: transparent; font-size: 13px; }
.quiet-button:hover { background: #f3ebe2; color: var(--ink); }
.outline-button { width: 100%; margin-top: 20px; border-color: var(--line); background: rgba(255,255,255,.5); color: #746b64; font-size: 13px; }
.outline-button:hover { background: white; border-color: #d6c7ba; }
.phase-banner { padding: 22px 24px; border: 1px solid #e8d9cb; border-radius: var(--radius); background: linear-gradient(102deg, #f7e8dc, #fbf3e9 68%, #f2eadf); display: flex; align-items: center; gap: 18px; box-shadow: var(--shadow); }
.phase-icon, .panel-icon { width: 39px; height: 39px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 auto; }
.phase-icon { background: rgba(255,255,255,.65); color: var(--coral); }
.phase-copy { min-width: 220px; flex: 1; }
.phase-copy h2 { font-size: 20px; }
.phase-copy p { margin: 3px 0 0; color: #82766d; font-size: 13px; }
.phase-progress { width: 210px; }
.progress-label { display: flex; justify-content: space-between; color: #887970; font-size: 11px; margin-bottom: 7px; }
.progress-label strong { color: var(--coral); }
.progress-track { height: 7px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.7); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--coral); }
.phase-progress small { display: block; margin-top: 7px; color: #9b8d82; font-size: 10px; }
.text-button, .small-link { border: 0; background: transparent; color: #a25b4f; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.text-button { padding: 8px 0 8px 15px; border-left: 1px solid rgba(150,113,90,.2); }
.text-button svg, .small-link svg { width: 14px; }
.section-block { margin-top: 42px; }
.module-page-section { max-width: 1060px; margin-top: 10px; }
.module-page-section .section-heading { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.module-hero { margin-bottom: 28px; padding: 25px 28px; border: 1px solid #e8d9cb; border-radius: var(--radius); background: linear-gradient(102deg, #f7e8dc, #fbf3e9 68%, #f2eadf); display: flex; align-items: end; justify-content: space-between; gap: 24px; box-shadow: var(--shadow); }
.module-hero h1 { margin-bottom: 7px; font-size: clamp(26px, 3vw, 36px); }
.module-hero p:last-child { max-width: 650px; margin-bottom: 0; color: #82766d; }
.approval-type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.approval-type-card { min-height: 182px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr auto; gap: 10px 12px; align-items: start; text-align: left; }
.approval-type-card:hover { border-color: #d7b9a8; transform: translateY(-1px); }
.approval-type-card strong { align-self: center; font-size: 17px; }
.approval-type-card p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.approval-type-card small { grid-column: 1 / -1; color: #9e8f84; font-size: 10px; }
.approval-type-card > svg { width: 16px; color: #af8c72; margin-top: 4px; }
.approval-type-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); }
.approval-type-icon svg { width: 18px; }
.approval-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.approval-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fffdf9; box-shadow: var(--shadow); }
.approval-card-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.approval-card-title { min-width: 0; }
.approval-card h3 { font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.approval-card-head p { margin-top: 4px; line-height: 1.45; overflow-wrap: anywhere; }
.approval-card-desc { margin: 10px 0 0; color: var(--muted); font-size: 12px; white-space: pre-wrap; }
.approval-actions { margin-top: 12px; display: flex; gap: 8px; }
.approval-actions .outline-button, .approval-actions .quiet-button { width: auto; margin-top: 0; }
.approval-empty { padding: 18px 0; color: var(--muted); font-size: 13px; text-align: center; }
.approval-page-shell { display: grid; gap: 22px; }
.approval-page-intro { padding-top: 18px; }
.approval-page-intro .module-panel-heading { margin-bottom: 12px; align-items: start; }
.approval-page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.approval-history-link { margin-left: 0; }
.approval-page-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.approval-page-stats span { padding: 11px 13px; border-radius: 10px; border: 1px solid #e9ddd0; background: #fffaf5; color: #72665d; font-size: 12px; display: grid; gap: 4px; }
.approval-page-stats strong { color: var(--ink); font-size: 17px; }
.approval-summary-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(220px, .85fr)); gap: 14px; align-items: start; }
.approval-summary-panel { min-width: 0; }
.approval-summary-panel-primary { border-color: #e6c8bb; background: #fffaf4; }
.approval-summary-panel-primary .section-heading h2 { font-size: 23px; }
.approval-summary-panel-primary .approval-summary-list { background: #fffdf9; }
.approval-summary-panel-primary.is-empty { padding-bottom: 14px; }
.approval-summary-panel-primary.is-empty .section-heading { margin-bottom: 8px; }
.approval-summary-panel-primary.is-empty .section-heading > div > p:not(.eyebrow) { display: none; }
.approval-summary-panel-primary.is-empty .approval-summary-list { min-height: 0; padding: 8px 10px; }
.approval-summary-panel-primary.is-empty .approval-empty { padding: 10px 0; }
.approval-summary-panel-primary.is-empty .approval-summary-foot { display: none; }
.approval-summary-panel-secondary { box-shadow: none; background: rgba(255,253,249,.72); }
.approval-summary-panel-secondary .section-heading h2 { font-size: 19px; }
.approval-summary-block { display: grid; gap: 14px; }
.approval-summary-list { min-height: 142px; padding: 10px; border: 1px solid #efe3d7; border-radius: 14px; background: var(--cream); box-shadow: none; display: grid; gap: 8px; align-content: start; }
.approval-empty.compact { min-height: 92px; padding: 14px 0; }
.approval-summary-panel { padding-top: 18px; }
.approval-summary-panel .section-heading { margin-bottom: 10px; align-items: center; }
.approval-summary-panel .count-badge { margin-left: auto; }
.approval-summary-foot { display: flex; justify-content: flex-end; padding-top: 2px; }
.approval-card.compact { padding: 10px 12px; border-radius: 10px; }
.approval-card.compact .approval-card-desc { display: none; }
.approval-card.compact .approval-card-meta { margin-top: 6px; }
.approval-card.compact .approval-card-foot { margin-top: 6px; gap: 8px; }
.approval-card.compact .approval-card-head { gap: 10px; }
.approval-card.compact h3 { font-size: 16px; line-height: 1.35; }
.approval-card.compact .approval-card-head p { margin-top: 2px; line-height: 1.3; }
.approval-card.compact .approval-created-at { line-height: 1.25; }
.approval-card.compact .approval-card-controls .outline-button,
.approval-card.compact .approval-card-controls .quiet-button { min-height: 40px; }
.approval-history-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.approval-history-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #eadccd; border-radius: 999px; background: #fffaf5; color: #7b6f66; font-size: 12px; }
.approval-history-chip strong { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral-soft); color: #9e5548; display: grid; place-items: center; font-size: 11px; }
.approval-history-stack { display: grid; gap: 12px; }
.approval-history-panel .approval-summary-list { min-height: 160px; padding: 10px; gap: 8px; }
.approval-history-panel .approval-card { max-width: 860px; padding: 12px; border-radius: 10px; }
.approval-history-panel .approval-card h3 { font-size: 16px; line-height: 1.35; }
.approval-history-panel .approval-card-head { gap: 10px; }
.approval-history-panel .approval-card-head p { margin-top: 2px; line-height: 1.35; }
.approval-history-panel .approval-card-desc { margin-top: 8px; }
.approval-history-panel .approval-card-meta { margin-top: 7px; }
.approval-history-panel .approval-card-foot { margin-top: 8px; gap: 8px; }
.approval-detail-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) 340px; gap: 14px; align-items: start; }
.approval-detail-form { min-width: 0; }
.approval-detail-side { padding: 20px; }
.approval-detail-note { margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: #faf4ec; display: flex; align-items: start; gap: 8px; color: #7f7269; font-size: 12px; }
.approval-detail-note svg { width: 15px; color: var(--yellow); flex: 0 0 auto; }
.approval-perspective-list { margin-top: 14px; display: grid; gap: 10px; }
.approval-perspective-list div { padding: 12px 13px; border-radius: 10px; background: #fffaf5; border: 1px solid #f1e4d9; }
.approval-perspective-list strong { display: block; margin-bottom: 3px; font-size: 13px; }
.approval-perspective-list span { color: var(--muted); font-size: 12px; }
.approval-chain-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px; margin-top: 10px; }
.approval-user-pool { display: grid; gap: 8px; padding: 12px; border: 1px dashed #dbcbbd; border-radius: 12px; background: #fffaf5; min-height: 180px; }
.approval-user-chip { padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); display: grid; gap: 2px; text-align: left; }
.approval-user-chip:hover { border-color: #d7b9a8; background: #fff7f2; }
.approval-user-chip span { font-size: 13px; font-weight: 700; }
.approval-user-chip small { color: var(--muted); font-size: 11px; }
.approval-chain-target { display: grid; gap: 10px; }
.approval-chain-list { min-height: 180px; margin: 0; padding: 12px; border: 1px solid #e8d9cb; border-radius: 12px; background: #fffdf9; list-style: none; display: flex; gap: 10px; overflow-x: auto; align-items: stretch; }
.approval-chain-empty { min-width: 180px; min-height: 155px; display: grid; place-items: center; color: var(--muted); font-size: 12px; border: 1px dashed #e1d1c3; border-radius: 10px; background: #fffaf5; }
.approval-chain-step { min-width: 168px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); display: flex; align-items: center; gap: 10px; }
.approval-chain-step.active { border-color: var(--coral); background: var(--coral-soft); }
.approval-step-index { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--coral); font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.approval-chain-step > div { min-width: 0; display: grid; gap: 2px; }
.approval-chain-step span { font-weight: 700; font-size: 13px; }
.approval-chain-step small { color: var(--muted); font-size: 11px; }
.approval-chain-step .icon-button { margin-left: auto; width: 30px; height: 30px; flex: 0 0 auto; }
.approval-chain-hint { padding: 12px 14px; border-radius: 10px; background: #faf4ec; display: grid; gap: 3px; }
.approval-chain-hint strong { font-size: 12px; }
.approval-chain-hint span { color: var(--muted); font-size: 12px; }
.approval-chain-progress { padding: 10px 12px; border-radius: 10px; background: #fff7ef; color: #8f665b; font-size: 12px; border: 1px solid #eadbcc; }
.approval-card-meta { margin-top: 10px; display: grid; gap: 4px; color: #8b7f75; font-size: 11px; }
.approval-card-meta span { color: var(--coral); font-weight: 700; }
.approval-card-meta small { line-height: 1.45; overflow-wrap: anywhere; }
.approval-card-foot { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.approval-created-at { color: #8b7f75; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.approval-card-controls { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; min-width: 0; }
.approval-card-controls .outline-button,
.approval-card-controls .quiet-button { width: auto; min-width: 76px; flex: 0 0 auto; margin-top: 0; padding: 0 12px; white-space: nowrap; }
.approval-flow-strip { margin-top: 12px; display: flex; gap: 8px; align-items: center; overflow-x: auto; padding-bottom: 4px; }
.approval-flow-node { min-width: 118px; padding: 9px 10px; border: 1px solid #e7d9cc; border-radius: 10px; background: #fffdf9; display: grid; gap: 3px; text-align: left; }
.approval-flow-node strong { color: #9a887b; font-size: 14px; }
.approval-flow-node small { color: var(--muted); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.approval-flow-node em { color: #8b7f75; font-size: 10px; font-style: normal; }
.approval-flow-node.current { border-color: var(--coral); background: var(--coral-soft); }
.approval-flow-node.approved { border-color: #cfe0cf; background: var(--green-soft); }
.approval-flow-node.approved strong, .approval-flow-node.approved em { color: #4f6b52; }
.approval-flow-node.rejected { border-color: #ecc9c3; background: #f6e0dc; }
.approval-flow-node.rejected strong, .approval-flow-node.rejected em { color: #b4544a; }
.approval-flow-node.pending em { color: #8a6a1f; }
.approval-status { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; flex: none; background: #f1e9df; color: #6f6459; }
.approval-status.approval-pending { background: var(--yellow-soft); color: #8a6a1f; }
.approval-status.approval-approved { background: var(--green-soft); color: #4f6b52; }
.approval-status.approval-rejected { background: #f6e0dc; color: #b4544a; }
.approval-page-stats strong, .approval-status, .approval-history-chip strong, .approval-flow-node strong, .count-badge { font-variant-numeric: tabular-nums; }
.approval-timeline-added { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.approval-timeline-added::before { content: "✓"; color: var(--green); font-weight: 700; }
.approval-flow-arrow { width: 14px; flex: 0 0 auto; color: #b39b8a; }
.approval-waiting-note { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #faf4ec; color: #8f665b; font-size: 12px; }
.approval-decision-modal { width: min(100%, 520px); }
/* ── 站内信：一个收件箱 ──
   原来的做法是三个等权面板并排（写私信 / 系统提醒 / 家庭私信），
   外加一个 0-0-13 的三连统计格。没有焦点，12 张同规格卡片叠成一长条。
   现在收成一个收件箱：私信保持卡片（人的消息，值得读），
   系统提醒压成回执行（机器消息，一屏扫十几条）。 */
.inbox-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inbox-header h1 { margin: 3px 0 0; font-size: 26px; letter-spacing: -0.01em; }
.inbox-summary { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.inbox-summary strong { color: var(--coral); font-size: 14px; font-variant-numeric: tabular-nums; }
.inbox-actions { display: flex; gap: 8px; align-items: center; min-height: 44px; }
/* 写私信是低频操作，收进原生 <details>，默认不占版面 */
.compose-drawer { margin: 18px 0 0; border: 1px solid var(--line); border-radius: 10px; background: #fffaf5; }
.compose-drawer > summary { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; color: #8b6f5f; font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.compose-drawer > summary::-webkit-details-marker { display: none; }
.compose-drawer > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .18s cubic-bezier(.23, 1, .32, 1); }
.compose-drawer[open] > summary::after { transform: rotate(180deg); }
.compose-drawer > summary:hover { color: var(--ink); }
.compose-form { padding: 2px 14px 14px; }
.inbox-stream { margin-top: 24px; display: grid; gap: 26px; }
.inbox-group-head { display: flex; align-items: baseline; gap: 8px; padding-bottom: 8px; }
.inbox-group-head h2 { font-size: 16px; }
.inbox-group-head span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.inbox-group-head em { margin-left: auto; color: #a49a91; font-size: 11px; font-style: normal; }
.inbox-empty { margin: 0; padding: 13px 0; color: var(--muted); font-size: 12px; }
/* 私信：卡片，保留呼吸 */
.message-list { display: grid; gap: 10px; }
.message-card { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.message-card.unread { border-color: #d8b9a9; background: #fff8f3; }
.message-card-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.message-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.message-card-head h3 { font-size: 15px; }
.message-card-head time { flex: 0 0 auto; color: #a49a91; font-size: 11px; font-variant-numeric: tabular-nums; }
.message-body { margin: 0; color: #6f665f; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.message-card-foot small { color: var(--muted); font-size: 11px; }
.message-card-foot .outline-button { width: auto; min-height: 30px; margin-top: 0; padding: 0 10px; font-size: 11px; }
/* 系统提醒：回执行，靠分界线而不是卡片 */
.receipt-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.receipt-row { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid #f5f0e9; font-size: 13px; }
.receipt-row.is-unread { background: #fffaf6; }
.receipt-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; }
.receipt-row.is-unread .receipt-dot { background: var(--coral); }
.receipt-result { flex: 0 0 auto; min-width: 42px; padding: 2px 8px; border-radius: 6px; text-align: center; font-size: 11px; font-weight: 600; }
.receipt-result.is-approved { background: var(--green-soft); color: #4f6f52; }
.receipt-result.is-rejected { background: var(--coral-soft); color: #9e5548; }
.receipt-result.is-plain { background: #f2e8de; color: #8b6f5f; }
.receipt-subject { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.receipt-row.is-unread .receipt-subject { font-weight: 600; }
.receipt-note { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.receipt-row time { flex: 0 0 auto; margin-left: auto; color: #a49a91; font-size: 11px; font-variant-numeric: tabular-nums; }
.receipt-read { flex: 0 0 auto; border: 0; background: transparent; color: var(--coral); font: inherit; font-size: 11px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.receipt-row:hover .receipt-read, .receipt-read:focus-visible { opacity: 1; }
.module-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.module-grid.three { grid-template-columns: repeat(3, 1fr); }
.module-panel { padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.module-panel > .panel-icon { margin-bottom: 19px; }
.module-panel h3 { margin: 5px 0 5px; font-size: 19px; }
.module-panel p:not(.eyebrow) { min-height: 43px; margin-bottom: 17px; color: var(--muted); font-size: 12px; }
.module-panel .small-link { margin-left: 0; }
.module-lower { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; }
.module-panel.wide { min-width: 0; }
.module-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.module-panel-heading h2 { margin: 0; font-size: 20px; }
.agreement-list { margin-top: 19px; display: grid; gap: 13px; }
.agreement-list div { display: flex; align-items: start; gap: 10px; padding: 11px 12px; border-radius: 9px; background: #faf5ef; color: #716860; font-size: 13px; }
.agreement-list svg { width: 16px; flex: 0 0 auto; color: var(--green); }
.shortcut-list { margin-top: 16px; display: grid; gap: 6px; }
.shortcut-list button { padding: 11px 9px; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; gap: 10px; text-align: left; color: #756b63; font-size: 13px; }
.shortcut-list button:hover { background: #faf1e8; color: var(--coral); }
.shortcut-list svg { width: 17px; color: var(--coral); }
.child-profile-large { margin-bottom: 14px; padding: 22px; border: 1px solid #e6c8bb; border-radius: var(--radius); background: linear-gradient(145deg, #fffdf9, #fff8f2); display: flex; align-items: center; gap: 16px; }
.child-profile-large h2 { margin: 4px 0; font-size: 22px; }
.child-profile-large p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.profile-progress { margin-left: auto; display: grid; grid-template-columns: auto auto; gap: 0 9px; color: var(--muted); font-size: 11px; }
.profile-progress strong { color: var(--coral); font-size: 18px; }
.child-profile-large .outline-button { width: auto; margin: 0 0 0 10px; padding: 0 14px; }
.module-lower .module-panel { min-height: 200px; }
.module-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 14px; }
.module-stat-grid > div { min-height: 104px; padding: 17px 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.module-stat-grid span, .module-stat-grid strong, .module-stat-grid small { display: block; }
.module-stat-grid span { color: var(--muted); font-size: 11px; }
.module-stat-grid strong { margin-top: 3px; font-family: "DM Sans", "Noto Sans SC", sans-serif; font-size: 27px; line-height: 1.2; }
.module-stat-grid small { margin-top: 4px; color: #9a9087; font-size: 10px; }
.task-board { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 14px; }
.task-board-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.task-lower-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-top: 14px; }
.task-empty-state { max-width: 760px; padding: 34px; text-align: center; }
.task-empty-state .panel-icon { margin: 0 auto 14px; }
.task-empty-state h2 { margin: 4px 0 8px; font-size: 22px; }
.task-empty-state p:not(.eyebrow) { max-width: 460px; margin: 0 auto; color: var(--muted); font-size: 13px; }
.task-empty-state .outline-button { width: auto; min-width: 180px; margin: 20px auto 0; }
.task-column h2 { font-family: "Noto Serif SC", serif; font-size: 19px; }
.task-column h2 span { color: var(--coral); font-family: "DM Sans", sans-serif; font-size: 13px; }
.board-task { margin-top: 14px; padding: 14px; border: 1px solid #eee5dc; border-radius: 10px; background: #fffaf5; display: grid; gap: 3px; }
.board-task strong { font-size: 13px; font-weight: 600; }
.board-task small { color: var(--muted); font-size: 11px; }
.board-task .task-complete-button { width: auto; min-height: 32px; margin-top: 7px; padding: 0 9px; border: 1px solid #dbe7da; border-radius: 8px; background: var(--green-soft); color: #66806a; display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; }
.board-task .task-complete-button:hover { border-color: #b8d0b9; background: #dce9db; }
.task-complete-button svg { width: 14px; }
.task-priority { color: var(--coral); font-size: 10px; font-weight: 700; }
.task-priority.urgent { color: #a85a4d; }
.task-priority.done { color: #66806a; }
/* 「重要」标记：优先级字段此前只写不读，这里补上显示。
   用中性描边而不是强调色 —— 珊瑚色已经同时承担品牌、"当前轮到"、逾期三件事，不再加第四件。 */
.task-priority-mark { display: inline-block; margin-left: 7px; padding: 1px 7px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: 10px; font-weight: 700; vertical-align: 1px; }
/* 一行摘要：取代原先把三个列标题各说一遍的统计格 */
.task-summary-line { margin: 14px 0 4px; color: var(--muted); font-size: 13px; }
.task-summary-line strong { color: var(--ink); font-family: "DM Sans", "Noto Sans SC", sans-serif; font-size: 17px; font-variant-numeric: tabular-nums; }
.task-summary-line em.urgent { font-style: normal; color: #a85a4d; }
/* 看板固定 3 列：列数随数据增减会让整块宽度跳变，观感上很不稳 */
.task-lower-single { grid-template-columns: minmax(0, 1fr); }
.task-all-done .outline-button { width: auto; min-width: 160px; margin: 20px auto 0; }
.completed-task { display: flex; align-items: center; gap: 9px; }
.completed-task svg { width: 17px; color: var(--green); }
.completed-task .task-restore-button { margin-left: auto; padding: 4px 8px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; }
.completed-task .task-restore-button:hover { border-color: #d6c7ba; color: var(--ink); background: #fff; }
.member-task { margin-top: 10px; padding: 10px 0; border-bottom: 1px solid #f1ebe4; display: flex; align-items: center; gap: 9px; }
.member-task span:nth-child(2) { flex: 1; }
.member-task strong, .member-task small { display: block; }
.member-task strong { font-size: 12px; }
.member-task small { color: var(--muted); font-size: 10px; }
.member-task > svg { width: 15px; color: #b4aaa2; }
.file-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.file-summary > div { padding: 17px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); display: grid; grid-template-columns: auto 1fr; gap: 1px 11px; align-items: center; box-shadow: var(--shadow); }
.file-summary .panel-icon { grid-row: span 2; }
.file-summary strong, .file-summary small { display: block; }
.file-summary strong { font-size: 13px; }
.file-summary small { color: var(--muted); font-size: 11px; }
.file-list, .health-list { margin-top: 16px; }
.file-list > div, .health-list > div { min-height: 61px; padding: 9px 0; border-bottom: 1px solid #f1ebe4; display: flex; align-items: center; gap: 11px; }
.file-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.file-icon svg { width: 17px; }
.file-icon.doc { background: var(--coral-soft); color: var(--coral); }
.file-icon.image { background: var(--green-soft); color: var(--green); }
.file-icon.report { background: var(--yellow-soft); color: #a17b34; }
.file-list > div > span:nth-child(2), .health-list > div > span:nth-child(2) { flex: 1; }
.file-list strong, .file-list small, .health-list strong, .health-list small { display: block; }
.file-list strong, .health-list strong { font-size: 12px; }
.file-list small, .health-list small { color: var(--muted); font-size: 10px; }
.file-list em, .health-list em { color: #9d9289; font-size: 10px; font-style: normal; }
.date-tag { width: 48px; color: var(--coral); font-size: 11px; font-weight: 700; }
.section-heading { margin-bottom: 16px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-heading-note { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.overview-grid { display: grid; grid-template-columns: 1.15fr 1.25fr 1fr; gap: 14px; }
.panel, .child-card, .add-child-card, .timeline-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel { min-height: 215px; padding: 20px; }
.panel-topline, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-heading > div { display: flex; align-items: center; gap: 10px; }
.panel-icon.coral { background: var(--coral-soft); color: var(--coral); }
.panel-icon.green { background: var(--green-soft); color: var(--green); }
.panel-icon.yellow { background: var(--yellow-soft); color: #b48735; }
.status-pill, .selected-label, .timeline-type { color: var(--coral); font-size: 11px; font-weight: 700; }
.focus-panel h3 { margin-top: 27px; font-size: 22px; }
.focus-panel p { margin: 6px 0 30px; color: var(--muted); font-size: 13px; }
.panel-footer, .announcement-byline, .timeline-meta { display: flex; align-items: center; gap: 7px; color: #9a918a; font-size: 11px; }
.panel-footer > span { display: flex; align-items: center; gap: 5px; }
.panel-footer svg { width: 14px; }
.small-link { margin-left: auto; }
.count-badge { min-width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; background: var(--green-soft); color: #678269; font-size: 12px; font-weight: 700; }
.task-list { list-style: none; margin: 18px 0 9px; padding: 0; }
.task-list li { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f1ebe4; font-size: 12px; }
.task-list li:last-child { border-bottom: 0; }
.overview-task-panel-item { width: 100%; display: flex; align-items: center; gap: 8px; color: inherit; }
.overview-task-panel-item > span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-task-panel-item small { margin-left: auto; color: #b1a79e; font-size: 10px; white-space: nowrap; }
.overview-task-panel-item:hover { color: var(--coral); }
.task-list li small { margin-left: auto; color: #b1a79e; font-size: 10px; }
.check-button { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: #b5c3b5; display: grid; place-items: center; }
.check-button:hover { color: var(--green); }
.check-button svg { width: 18px; }
.list-link { margin-top: 0; }
.announcement { min-height: 72px; margin: 22px 0 12px; color: #766d66; font-size: 13px; line-height: 1.75; }
.more-button { width: 28px; height: 28px; margin-left: auto; }
.more-button svg { width: 17px; }
.children-grid { display: grid; grid-template-columns: minmax(260px, 370px) minmax(260px, 370px); gap: 14px; }
.child-card { padding: 20px; border-color: #e6c8bb; background: linear-gradient(145deg, #fffdf9, #fff8f2); }
.child-card-top { display: flex; align-items: start; justify-content: space-between; }
.selected-label { display: flex; align-items: center; gap: 4px; padding: 5px 7px; border-radius: 6px; background: var(--coral-soft); font-size: 10px; }
.selected-label svg { width: 13px; }
.child-card h3 { margin: 18px 0 5px; font-size: 21px; }
.child-card p { color: var(--muted); font-size: 12px; }
.child-stats { display: flex; gap: 18px; margin-top: 19px; color: var(--muted); font-size: 11px; }
.child-stats strong { color: var(--ink); font-size: 18px; margin-right: 3px; }
.add-child-card { min-height: 245px; padding: 30px; border-style: dashed; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255,253,249,.42); }
.add-child-card:hover { background: var(--paper); border-color: #d8b9a9; }
.add-child-card > span { width: 43px; height: 43px; margin-bottom: 12px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--coral); }
.add-child-card strong { font-size: 14px; }
.add-child-card small { max-width: 200px; margin-top: 5px; color: var(--muted); font-size: 11px; }
.timeline-section { padding-bottom: 20px; }
.timeline { position: relative; padding: 5px 0 0 128px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 15px; bottom: 28px; width: 1px; background: #ded3c9; }
.timeline-item { position: relative; min-height: 148px; display: grid; grid-template-columns: 110px minmax(0, 650px); gap: 24px; align-items: start; }
.timeline-dot { position: absolute; left: -123px; top: 12px; width: 11px; height: 11px; border: 3px solid var(--canvas); border-radius: 50%; box-sizing: content-box; }
.coral-dot { background: var(--coral); box-shadow: 0 0 0 1px #d79a8e; }
.green-dot { background: var(--green); box-shadow: 0 0 0 1px #aac3ac; }
.timeline-date { padding-top: 10px; color: #988d84; font-size: 11px; }
.timeline-card { padding: 18px 20px; }
.timeline-card h3 { margin: 6px 0 5px; font-size: 17px; }
.timeline-card p { margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.green-type { color: #6e936f; }
.timeline-meta .more-button { margin-left: auto; }
.custom-section[hidden] { display: none; }
.custom-section-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.custom-content-card { min-height: 156px; padding: 20px; border: 1px dashed #dccabd; border-radius: var(--radius); background: rgba(255,253,249,.68); display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; }
.custom-content-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--yellow-soft); color: #ad812f; }
.custom-content-card h3 { margin: 5px 0 3px; font-size: 17px; }
.custom-content-card p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.custom-content-card .small-link { grid-column: 1 / -1; justify-self: start; margin-left: 0; }
.custom-module-empty { max-width: 680px; min-height: 310px; padding: 45px 34px; border: 1px dashed #dccabd; border-radius: var(--radius); background: rgba(255,253,249,.68); text-align: center; box-shadow: var(--shadow); }
.custom-empty-icon { width: 57px; height: 57px; margin: 0 auto 18px; border-radius: 17px; display: grid; place-items: center; background: var(--yellow-soft); color: #ad812f; }
.custom-empty-icon svg { width: 25px; height: 25px; }
.custom-module-empty h2 { margin: 6px 0 8px; font-size: 23px; }
.custom-module-empty > p:not(.eyebrow) { margin: 0 auto 21px; max-width: 420px; color: var(--muted); font-size: 13px; }
.custom-module-empty .outline-button { width: auto; padding: 0 16px; margin: 0; }
.module-hero-actions, .designer-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.family-id-chip { min-width: 190px; padding: 12px 15px; border: 1px solid #e8d9cb; border-radius: 11px; background: rgba(255,255,255,.58); }
.family-id-chip span, .family-id-chip strong { display: block; }
.family-id-chip span { color: var(--muted); font-size: 10px; }
.family-id-chip strong { margin-top: 3px; color: var(--coral); font-size: 13px; word-break: break-all; }
.family-settings-panel { margin-top: 16px; padding: 20px; }
.family-settings-form { display: grid; gap: 12px; margin-top: 14px; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.section-heading h2 { margin: 3px 0 0; font-size: 19px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.section-heading svg { width: 22px; color: var(--coral); }
.members-heading { margin-top: 18px; }
.members-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.member-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid #f1ebe4; }
.member-card-head h2 { margin: 0; font-size: 19px; }
.member-card-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.admin-badge { margin-left: auto; padding: 5px 9px; border-radius: 999px; background: var(--coral-soft); color: #9e5548; font-size: 11px; font-weight: 700; }
.member-account-meta { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; color: #756b63; font-size: 12px; }
.member-account-meta span { padding: 6px 10px; border-radius: 999px; background: #fff8f2; }
.member-reset-button { width: auto; margin-top: 12px; }
.member-permission-list { margin-top: 14px; display: grid; gap: 7px; }
.member-permission-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #fffaf5; color: #756b63; font-size: 12px; }
.member-permission-list small { color: var(--green); font-size: 10px; white-space: nowrap; }
.designer-topbar { margin-bottom: 25px; padding: 25px 28px; border: 1px solid #e8d9cb; border-radius: var(--radius); background: linear-gradient(102deg, #f7e8dc, #fbf3e9 68%, #f2eadf); display: flex; align-items: end; justify-content: space-between; gap: 24px; box-shadow: var(--shadow); }
.designer-topbar h1 { margin-bottom: 7px; font-size: clamp(25px, 3vw, 34px); }
.designer-topbar p:last-child { margin-bottom: 0; color: #82766d; }
.designer-layout { display: block; }
.designer-palette, .designer-canvas { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.designer-palette { margin-bottom: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.designer-panel-heading, .designer-canvas-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.designer-panel-heading { margin: 0 6px 0 0; display: block; }
.designer-panel-heading span { color: var(--muted); font-size: 10px; }
.designer-palette-item { width: auto; min-height: 40px; padding: 0 10px; border: 1px solid #eee5dc; border-radius: 9px; background: #fffaf5; display: flex; align-items: center; gap: 9px; color: #756b63; font-size: 12px; text-align: left; }
.designer-palette-item + .designer-palette-item { margin-top: 0; }
.designer-palette-item:hover { border-color: #d8b9a9; background: var(--coral-soft); color: #9e5548; }
.designer-palette-item svg:last-child { width: 14px; margin-left: auto; color: #b4a195; }
.designer-tip { margin: 0 0 0 auto; padding: 9px 11px; border-radius: 9px; background: #faf5ef; display: flex; align-items: start; gap: 8px; color: #9a8d83; font-size: 11px; }
.designer-tip svg { width: 15px; flex: 0 0 auto; color: var(--yellow); }
.designer-canvas { position: relative; min-height: 480px; background: #fcfaf6; }
.designer-canvas-heading { grid-column: 1 / -1; }
.designer-preview-grid .designer-live-block { margin-top: 0; }
.designer-live-block { min-height: 150px; padding: 20px; border: 1px solid var(--line); border-top: 3px solid var(--coral); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.designer-preview-grid.tone-green .designer-live-block { border-top-color: var(--green); }
.designer-preview-grid.tone-yellow .designer-live-block { border-top-color: var(--yellow); }
.designer-canvas-heading { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.designer-canvas-heading h2 { margin: 3px 0 0; font-size: 19px; }
.designer-status { padding: 5px 8px; border-radius: 6px; background: var(--yellow-soft); color: #97732e; font-size: 10px; font-weight: 700; }
.designer-edit-block { position: absolute; margin: 0; padding: 16px; border: 1px solid #e5d9cf; border-radius: 11px; background: var(--paper); }
.designer-edit-block:hover { border-color: #d8b9a9; }
.designer-edit-block.dragging { opacity: .55; }
.designer-edit-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.designer-live-block > .designer-edit-heading { margin-bottom: 13px; }
.designer-drag-handle { width: 28px; height: 28px; display: grid; place-items: center; color: #b3a69c; cursor: grab; }
.designer-drag-handle svg { width: 17px; }
.designer-drag-handle:active { cursor: grabbing; }
.designer-block-type { display: flex; align-items: center; gap: 6px; color: #8f665b; font-size: 11px; font-weight: 700; }
.designer-block-type svg { width: 15px; }
.designer-delete { width: 32px; height: 32px; margin-left: auto; color: #b6aaa1; }
.designer-delete:hover { color: var(--coral); background: var(--coral-soft); }
.designer-field { display: grid; gap: 6px; margin-top: 10px; }
.designer-field > span { color: #756b63; font-size: 11px; font-weight: 700; }
.designer-field input, .designer-field textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; outline: 0; background: #fffaf5; color: var(--ink); font: inherit; font-size: 12px; resize: vertical; }
.designer-field input { min-height: 40px; }
.designer-field input:focus, .designer-field textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(201,111,97,.13); }
.designer-order { display: block; margin-top: 10px; color: #b0a39a; font-size: 10px; }
.designer-dropzone { min-height: 300px; border: 1px dashed #d9c9bc; border-radius: 11px; display: grid; place-content: center; justify-items: center; gap: 7px; color: #9a8b80; text-align: center; }
.designer-dropzone svg { width: 25px; color: var(--coral); }
.designer-dropzone strong { color: #756b63; font-size: 13px; }
.designer-dropzone span { font-size: 11px; }
.designer-preview-grid { position: relative; display: block; }
.designer-preview-block { position: absolute; border-top: 3px solid var(--coral); }
.designer-preview-grid.tone-green .designer-preview-block { border-top-color: var(--green); }
.designer-preview-grid.tone-yellow .designer-preview-block { border-top-color: var(--yellow); }
.designer-preview-block { min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }
.record-preview-block { display: grid; gap: 12px; }
.record-summary { margin: 0; color: var(--muted); font-size: 13px; }
.record-entries { display: grid; gap: 10px; }
.record-entry { position: relative; padding: 12px 12px 12px 22px; border: 1px solid #ede1d7; border-radius: 12px; background: #fffaf5; display: grid; gap: 8px; }
.record-entry-dot { position: absolute; left: 8px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 3px rgba(201,111,97,.12); }
.record-entry-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #7f736b; font-size: 11px; }
.record-entry-meta strong { color: var(--ink); font-size: 12px; }
.record-entry p { margin: 0; color: var(--muted); font-size: 12px; }
.record-entry-edit { padding-right: 44px; }
.record-field { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--paper); color: var(--ink); font: inherit; font-size: 12px; }
.record-field:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(201,111,97,.13); }
.record-content { min-height: 78px; resize: vertical; }
.record-add-button { width: auto; margin-top: 10px; padding: 0 14px; }
.record-delete { position: absolute; right: 10px; top: 10px; width: 30px; height: 30px; color: #b6aaa1; }
.record-delete:hover { color: var(--coral); background: var(--coral-soft); }
.designer-settings { display: flex; align-items: center; gap: 8px; }
.designer-settings label { display: flex; align-items: center; gap: 5px; color: #8f8177; font-size: 10px; }
.designer-settings select { min-height: 30px; padding: 0 7px; border: 1px solid var(--line); border-radius: 7px; background: #fffaf5; color: var(--ink); font: inherit; }
.designer-preview-block h3 { margin: 6px 0 9px; font-size: 18px; }
.designer-preview-block > p:last-child { margin: 0; color: var(--muted); font-size: 13px; white-space: pre-wrap; }
.designer-live-content { min-height: 42px; padding: 5px; border-radius: 6px; outline: 0; }
.designer-live-content:focus, .designer-live-block h3:focus { background: #fffaf5; box-shadow: 0 0 0 3px rgba(201,111,97,.13); }
.designer-live-block h3 { margin: 6px 0 9px; font-size: 18px; }
.designer-resize-handle { position: absolute; right: 4px; bottom: 4px; width: 14px; height: 14px; border-right: 2px solid #c5a99a; border-bottom: 2px solid #c5a99a; cursor: nwse-resize; }
.designer-live-block .designer-checklist, .designer-live-block .designer-date-value, .designer-live-block .designer-media-placeholder, .designer-live-block .designer-file-placeholder { margin-top: 12px; }
.designer-checklist { display: grid; gap: 8px; color: #756b63; font-size: 12px; }
.designer-checklist label { display: flex; align-items: start; gap: 7px; }
.designer-checklist input { margin-top: 4px; accent-color: var(--coral); }
.designer-date-value { display: block; margin-top: 15px; color: var(--coral); font-size: 26px; font-family: "DM Sans", sans-serif; }
.designer-media-placeholder, .designer-file-placeholder { min-height: 72px; padding: 14px; border: 1px dashed #d9c9bc; border-radius: 9px; display: flex; align-items: center; gap: 8px; color: #9a8b80; font-size: 11px; }
.designer-media-placeholder svg, .designer-file-placeholder svg { width: 20px; color: var(--yellow); }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; padding: 24px; display: grid; place-items: center; background: rgba(61, 48, 38, .28); backdrop-filter: blur(3px); }
.modal-backdrop[hidden] { display: none; }
.customize-modal { width: min(100%, 520px); max-height: min(720px, calc(100vh - 48px)); overflow: auto; padding: 26px; border: 1px solid #eadbd0; border-radius: 18px; background: var(--paper); box-shadow: 0 24px 70px rgba(64, 44, 30, .2); }
.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.modal-header h2 { margin-top: 5px; font-size: 22px; }
.modal-intro { margin: 16px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.form-field { display: grid; gap: 7px; margin-bottom: 16px; }
.form-field > span { color: #6d625b; font-size: 12px; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #fffaf5; color: var(--ink); font: inherit; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(201,111,97,.13); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* 三字段一行（任务弹窗的 截止日期 / 优先级 / 重复） */
.form-row-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.access-control-field { margin-top: 2px; }
.member-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: -6px 0 15px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; background: #fffaf5; }
.member-options[hidden] { display: none; }
.member-option { display: flex; align-items: center; gap: 7px; color: #756b63; font-size: 12px; }
.member-option input { accent-color: var(--coral); }
.modal-actions { display: flex; align-items: center; justify-content: end; gap: 8px; margin-top: 22px; }
.existing-tabs { margin-top: 27px; padding-top: 20px; border-top: 1px solid var(--line); }
.existing-tabs-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.existing-tabs-heading span { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; background: var(--cream); color: #947c6d; font-size: 11px; }
.custom-tab-list { display: grid; gap: 6px; }
.custom-tab-row { min-height: 45px; padding: 6px 4px; display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #f1ebe4; }
.custom-row-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; background: var(--cream); color: #a37b47; }
.custom-row-icon svg { width: 15px; }
.custom-tab-row strong, .custom-tab-row small { display: block; }
.custom-tab-row strong { font-size: 12px; }
.custom-tab-row small { color: var(--muted); font-size: 10px; }
.custom-remove { margin-left: auto; color: #b6aaa1; }
.custom-remove:hover { color: var(--coral); background: var(--coral-soft); }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 12px 16px; border: 1px solid #d9c8ba; border-radius: 10px; background: #fffdf9; box-shadow: 0 10px 30px rgba(70,45,30,.15); color: #6c5e54; font-size: 13px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 3px solid rgba(201,111,97,.38); outline-offset: 3px; }
@media (max-width: 1050px) {
  .sidebar { width: 220px; flex-basis: 220px; }
  .overview-grid { grid-template-columns: 1fr 1fr; }
  .family-panel { grid-column: span 2; min-height: 160px; }
  .announcement { min-height: auto; }
  .home-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-command-center { grid-template-columns: 1fr 1fr; }
  .overview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .family-command-actions { grid-column: 1 / -1; grid-template-columns: minmax(0, 220px); justify-content: end; }
  .family-command-actions .text-button { justify-content: center; border-left: 0; border-top: 1px solid #eaded4; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; padding: 14px 16px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 2px 13px; }
  .family-switcher, .sidebar-bottom { display: none; }
  .nav-list { padding: 5px 0 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-item { min-width: max-content; min-height: 40px; padding: 0 11px; gap: 7px; font-size: 12px; }
  .nav-item svg { width: 16px; }
  .nav-badge { display: none; }
  .customize-nav-button { width: auto; min-width: 150px; margin-top: 5px; }
  .custom-nav-group { min-width: max-content; margin: 5px 0 0; padding: 0; border-top: 0; display: flex; align-items: center; gap: 3px; }
  .custom-nav-group-label { min-height: 38px; padding: 0 8px; border-radius: 8px; background: #f8f0e8; }
  .custom-nav-group .custom-nav-item { min-height: 38px; padding: 0 10px; }
  .topbar { height: 61px; padding: 0 16px; }
  .user-chip-name, .user-chip > svg { display: none; }
  .user-chip { border: 0; padding: 3px; }
  .page-content { padding: 28px 16px 60px; }
  .welcome-row { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 23px; }
  .primary-button { width: 100%; }
  h1 { font-size: 27px; }
  .phase-banner { align-items: start; flex-wrap: wrap; padding: 17px; gap: 12px; }
  .phase-copy { min-width: 0; flex-basis: calc(100% - 55px); }
  .phase-progress { width: 100%; padding-left: 0; }
  .text-button { width: 100%; padding: 8px 0 0; border-left: 0; border-top: 1px solid rgba(150,113,90,.2); justify-content: space-between; }
  .section-block { margin-top: 32px; }
  .section-heading { align-items: start; flex-direction: column; }
  .section-heading .quiet-button { padding-left: 0; }
  .overview-grid, .children-grid { grid-template-columns: 1fr; }
  .family-panel { grid-column: auto; }
  .home-live-grid { grid-template-columns: 1fr; }
  .family-announcements-panel { margin: -5px 0 24px; padding: 16px 15px 10px; }
  .family-announcements-heading { gap: 9px; }
  .family-announcements-heading-icon { width: 34px; height: 34px; }
  .family-announcements-heading h2 { font-size: 18px; }
  .family-announcements-heading .outline-button { min-height: 36px; padding: 0 8px; font-size: 11px; }
  .family-timeline-heading { gap: 9px; }
  .family-timeline-heading h2 { font-size: 18px; }
  .family-timeline-heading .outline-button { min-height: 36px; padding: 0 8px; font-size: 11px; }
  .family-timeline-item { grid-template-columns: 72px 14px minmax(0, 1fr); gap: 8px; }
  .family-announcement-item { gap: 8px; }
  .family-announcement-archive { padding: 4px; font-size: 10px; }
  .family-assets-panel { padding: 16px 15px 10px; }
  .family-assets-heading { gap: 9px; }
  .family-assets-heading-icon { width: 34px; height: 34px; }
  .family-assets-heading h2 { font-size: 18px; }
  .family-assets-heading .outline-button { min-height: 36px; padding: 0 8px; font-size: 11px; }
  .family-assets-summary { align-items: start; flex-direction: column; gap: 4px; }
  .overview-empty-cluster { align-items: start; flex-wrap: wrap; padding: 16px 15px; }
  .overview-empty-cluster .outline-button { width: 100%; margin-left: 0; }
  .module-stat-grid { grid-template-columns: 1fr; }
  .family-command-center { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .family-command-status { padding: 15px 0 0; border-left: 0; border-top: 1px solid #eaded4; }
  .family-command-actions { grid-column: auto; min-width: 0; }
  .family-command-actions .text-button { justify-content: space-between; }
  .welcome-expand-button { width: 100%; justify-content: flex-start; padding-left: 0; }
  .overview-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 24px; }
  .timeline::before { left: 3px; }
  .timeline-item { display: block; min-height: 0; padding-bottom: 24px; }
  .timeline-dot { left: -26px; top: 11px; }
  .timeline-date { padding: 0 0 8px; }
  .timeline-card { padding: 16px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .inbox-header h1 { font-size: 22px; }
  .receipt-row { flex-wrap: wrap; gap: 6px 8px; }
  .receipt-note { display: none; }
  .receipt-row time { margin-left: auto; }
  .receipt-read { opacity: 1; }
  .customize-modal { padding: 20px; }
  .module-hero { align-items: start; flex-direction: column; padding: 20px; }
  .module-hero .primary-button { width: 100%; }
  .module-grid.three, .module-lower, .task-board, .task-lower-grid, .file-summary, .assets-columns { grid-template-columns: 1fr; }
  .asset-row-actions { opacity: 1; }
  .approval-type-grid, .approval-grid, .approval-detail-layout, .approval-summary-grid { grid-template-columns: 1fr; }
  .approval-chain-layout { grid-template-columns: 1fr; }
  .members-grid { grid-template-columns: 1fr; }
  .designer-topbar { align-items: start; flex-direction: column; padding: 20px; }
  .designer-actions { width: 100%; }
  .designer-actions > button { flex: 1; }
  .designer-settings { flex-wrap: wrap; }
  .designer-canvas-heading { align-items: start; flex-direction: column; }
  .designer-palette { align-items: stretch; }
  .designer-panel-heading { width: 100%; }
  .designer-palette-item { flex: 1 1 calc(50% - 7px); }
  .designer-tip { width: 100%; margin-left: 0; }
  .child-profile-large { align-items: start; flex-wrap: wrap; }
  .profile-progress { margin-left: 0; }
  .child-profile-large .outline-button { width: 100%; margin-left: 0; }
  .file-list em, .health-list em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (max-width: 760px) {
  .approval-page-stats { grid-template-columns: 1fr; }
  .approval-type-modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approval-type-card { min-height: 120px; padding: 14px; }
  .approval-card-head { gap: 10px; }
  .approval-status { padding: 0 8px; font-size: 11px; }
  .approval-card-foot { align-items: stretch; flex-direction: column; gap: 8px; }
  .approval-card-controls { justify-content: flex-start; }
  .approval-card-controls .approval-actions { margin-top: 0; }
}
.approval-type-modal { width: min(100%, 980px); }
.approval-type-modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; }
.approval-print-page { padding: 18px; }
.approval-print-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.approval-print-sheet { max-width: 820px; margin: 0 auto; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf9; box-shadow: var(--shadow); }
.approval-print-header { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid #e8d9cb; margin-bottom: 18px; }
.approval-print-header h1 { margin: 6px 0 8px; font-size: 28px; }
.approval-print-meta { display: grid; gap: 6px; min-width: 240px; color: #6f6359; font-size: 12px; }
.approval-print-block { margin-top: 18px; }
.approval-print-block h2 { margin-bottom: 10px; font-size: 18px; }
.approval-participation-note { padding: 14px 16px; border: 1px solid #eadccd; border-radius: 10px; background: #fffaf5; }
.approval-participation-note p { margin: 6px 0 0; color: #756b63; font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.approval-participation-note p strong { color: var(--ink); }
.approval-excluded-members { padding-bottom: 8px; border-bottom: 1px solid #eee4da; }
.approval-print-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.approval-print-table th, .approval-print-table td { border: 1px solid #e6dbcf; padding: 8px 9px; vertical-align: top; text-align: left; }
.approval-note-grid { display: grid; gap: 10px; }
.approval-note-card { padding: 12px 13px; border: 1px solid #e6dbcf; border-radius: 10px; background: #fffaf5; }
.approval-note-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.approval-note-head strong { font-size: 13px; }
.approval-note-head span { color: var(--coral); font-size: 12px; font-weight: 700; }
.approval-view-button { margin-top: 0; width: fit-content; white-space: nowrap; }
.approval-review-actions { display: flex; gap: 8px; margin-top: 18px; }
.approval-review-actions .outline-button, .approval-review-actions .quiet-button { width: auto; }

@media print {
  body { background: #fff; }
  .sidebar, .topbar, .toast, .approval-print-toolbar, .no-print { display: none !important; }
  .app-shell, .main-content, .page-content { display: block; padding: 0; margin: 0; max-width: none; }
  .module-slot { padding: 0; }
  .approval-print-page { padding: 0; }
  .approval-print-sheet { max-width: none; margin: 0; padding: 16mm; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
  .approval-print-header, .approval-print-block, .approval-note-card, .approval-print-table { break-inside: avoid; }
  .module-panel, .approval-card { box-shadow: none !important; }
  @page { size: A4 portrait; margin: 14mm; }
}
